altair-static 4.2.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/100.js +1 -0
- package/build/dist/267.js +1 -0
- package/build/dist/3rdpartylicenses.txt +512 -0
- package/build/dist/471.js +1 -1
- package/build/dist/790.js +1 -1
- package/build/dist/794.js +1 -1
- package/build/dist/873.js +1 -1
- package/build/dist/929.js +1 -0
- package/build/dist/assets/i18n/default.json +7 -1
- package/build/dist/main.js +1 -1
- package/build/dist/styles.css +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.js +4 -1
- package/build/index.test.d.ts +1 -0
- package/build/index.test.js +17 -6
- package/build/utils/get-altair-html.d.ts +1 -0
- package/build/utils/get-dist.d.ts +1 -0
- package/package.json +4 -4
- package/src/index.test.ts +21 -6
- package/src/index.ts +6 -3
- package/tsconfig.json +1 -0
- package/build/dist/283.js +0 -1
- package/build/dist/672.js +0 -1
- package/build/dist/709.js +0 -1
- package/build/dist/866.js +0 -1
- package/build/index.js.map +0 -1
- package/build/index.test.js.map +0 -1
- package/build/utils/get-altair-html.js.map +0 -1
- package/build/utils/get-dist.js.map +0 -1
- package/scripts/prepare_dist.js +0 -77
package/build/dist/672.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";var L,vt={15672:(L,H,G)=>{const Ae=Symbol("Comlink.proxy"),$=Symbol("Comlink.endpoint"),ee=Symbol("Comlink.releaseProxy"),fe=Symbol("Comlink.thrown"),_e=e=>"object"==typeof e&&null!==e||"function"==typeof e,ht=new Map([["proxy",{canHandle:e=>_e(e)&&e[Ae],serialize(e){const{port1:n,port2:t}=new MessageChannel;return jn(e,n),[t,[t]]},deserialize:e=>(e.start(),function(e,n){return Gn(e,[],void 0)}(e))}],["throw",{canHandle:e=>_e(e)&&fe 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 jn(e,n=self){n.addEventListener("message",function t(r){if(!r||!r.data)return;const{id:i,type:a,path:s}=Object.assign({path:[]},r.data),o=(r.data.argumentList||[]).map(Ce);let u;try{const c=s.slice(0,-1).reduce((p,v)=>p[v],e),l=s.reduce((p,v)=>p[v],e);switch(a){case 0:u=l;break;case 1:c[s.slice(-1)[0]]=Ce(r.data.value),u=!0;break;case 2:u=l.apply(c,o);break;case 3:u=function(e){return Object.assign(e,{[Ae]:!0})}(new l(...o));break;case 4:{const{port1:p,port2:v}=new MessageChannel;jn(e,v),u=function(e,n){return Tt.set(e,n),e}(p,[p])}break;case 5:u=void 0}}catch(c){u={value:c,[fe]:0}}Promise.resolve(u).catch(c=>({value:c,[fe]:0})).then(c=>{const[l,p]=Yn(c);n.postMessage(Object.assign(Object.assign({},l),{id:i}),p),5===a&&(n.removeEventListener("message",t),mt(n))})}),n.start&&n.start()}function mt(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function dn(e){if(e)throw new Error("Proxy has been released and is not useable")}function Gn(e,n=[],t=function(){}){let r=!1;const i=new Proxy(t,{get(a,s){if(dn(r),s===ee)return()=>Ke(e,{type:5,path:n.map(o=>o.toString())}).then(()=>{mt(e),r=!0});if("then"===s){if(0===n.length)return{then:()=>i};const o=Ke(e,{type:0,path:n.map(u=>u.toString())}).then(Ce);return o.then.bind(o)}return Gn(e,[...n,s])},set(a,s,o){dn(r);const[u,c]=Yn(o);return Ke(e,{type:1,path:[...n,s].map(l=>l.toString()),value:u},c).then(Ce)},apply(a,s,o){dn(r);const u=n[n.length-1];if(u===$)return Ke(e,{type:4}).then(Ce);if("bind"===u)return Gn(e,n.slice(0,-1));const[c,l]=yt(o);return Ke(e,{type:2,path:n.map(p=>p.toString()),argumentList:c},l).then(Ce)},construct(a,s){dn(r);const[o,u]=yt(s);return Ke(e,{type:3,path:n.map(c=>c.toString()),argumentList:o},u).then(Ce)}});return i}function Qr(e){return Array.prototype.concat.apply([],e)}function yt(e){const n=e.map(Yn);return[n.map(t=>t[0]),Qr(n.map(t=>t[1]))]}const Tt=new WeakMap;function Yn(e){for(const[n,t]of ht)if(t.canHandle(e)){const[r,i]=t.serialize(e);return[{type:3,name:n,value:r},i]}return[{type:0,value:e},Tt.get(e)||[]]}function Ce(e){switch(e.type){case 3:return ht.get(e.name).deserialize(e.value);case 0:return e.value}}function Ke(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 a(s){!s.data||!s.data.id||s.data.id!==i||(e.removeEventListener("message",a),r(s.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:i},n),t)})}var Xr=G(67729);function F(e,n){if(!Boolean(e))throw new Error(n)}var f=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 hn(e){return(hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Me(e){return"object"==hn(e)&&null!==e}var Et="function"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator",oe=("function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol,"function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag");function Qn(e,n){for(var a,t=/\r\n|[\n\r]/g,r=1,i=n+1;(a=t.exec(e.body))&&a.index<n;)r+=1,i=n+1-(a.index+a[0].length);return{line:r,column:i}}function zr(e){return gt(e.source,Qn(e.source,e.start))}function gt(e,n){var t=e.locationOffset.column-1,r=mn(t)+e.body,i=n.line-1,s=n.line+(e.locationOffset.line-1),u=n.column+(1===n.line?t:0),c="".concat(e.name,":").concat(s,":").concat(u,"\n"),l=r.split(/\r\n|[\n\r]/g),p=l[i];if(p.length>120){for(var v=Math.floor(u/80),m=u%80,h=[],T=0;T<p.length;T+=80)h.push(p.slice(T,T+80));return c+It([["".concat(s),h[0]]].concat(h.slice(1,v+1).map(function(g){return["",g]}),[[" ",mn(m-1)+"^"],["",h[v+1]]]))}return c+It([["".concat(s-1),l[i-1]],["".concat(s),p],["",mn(u-1)+"^"],["".concat(s+1),l[i+1]]])}function It(e){var n=e.filter(function(r){return void 0!==r[1]}),t=Math.max.apply(Math,n.map(function(r){return r[0].length}));return n.map(function(r){var a=r[1];return function(e,n){return mn(e-n.length)+n}(t,r[0])+(a?" | "+a:" |")}).join("\n")}function mn(e){return Array(e+1).join(" ")}function yn(e){return(yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Nt(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 Ot(e,n){return!n||"object"!==yn(n)&&"function"!=typeof n?en(e):n}function en(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kn(e){var n="function"==typeof Map?new Map:void 0;return(Kn=function(r){if(null===r||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(r))return r;if("function"!=typeof r)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(r))return n.get(r);n.set(r,i)}function i(){return Tn(r,arguments,tn(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),nn(i,r)})(e)}function Tn(e,n,t){return(Tn=bt()?Reflect.construct:function(i,a,s){var o=[null];o.push.apply(o,a);var c=new(Function.bind.apply(i,o));return s&&nn(c,s.prototype),c}).apply(null,arguments)}function bt(){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 nn(e,n){return(nn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(e,n)}function tn(e){return(tn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}var E=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&&nn(e,n)}(t,e);var n=function(e){var n=bt();return function(){var i,r=tn(e);if(n){var a=tn(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Ot(this,i)}}(t);function t(r,i,a,s,o,u,c){var l,p,v,m,h;(function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")})(this,t),h=n.call(this,r);var I,T=Array.isArray(i)?0!==i.length?i:void 0:i?[i]:void 0,g=a;!g&&T&&(g=null===(I=T[0].loc)||void 0===I?void 0:I.source);var x,A=s;!A&&T&&(A=T.reduce(function(Y,z){return z.loc&&Y.push(z.loc.start),Y},[])),A&&0===A.length&&(A=void 0),s&&a?x=s.map(function(Y){return Qn(a,Y)}):T&&(x=T.reduce(function(Y,z){return z.loc&&Y.push(Qn(z.loc.source,z.loc.start)),Y},[]));var M=c;if(null==M&&null!=u){var j=u.extensions;Me(j)&&(M=j)}return Object.defineProperties(en(h),{name:{value:"GraphQLError"},message:{value:r,enumerable:!0,writable:!0},locations:{value:null!==(l=x)&&void 0!==l?l:void 0,enumerable:null!=x},path:{value:null!=o?o:void 0,enumerable:null!=o},nodes:{value:null!=T?T:void 0},source:{value:null!==(p=g)&&void 0!==p?p:void 0},positions:{value:null!==(v=A)&&void 0!==v?v:void 0},originalError:{value:u},extensions:{value:null!==(m=M)&&void 0!==m?m:void 0,enumerable:null!=M}}),null!=u&&u.stack?(Object.defineProperty(en(h),"stack",{value:u.stack,writable:!0,configurable:!0}),Ot(h)):(Error.captureStackTrace?Error.captureStackTrace(en(h),t):Object.defineProperty(en(h),"stack",{value:Error().stack,writable:!0,configurable:!0}),h)}return function(e,n,t){n&&Nt(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"+zr(i.loc))}else if(e.source&&e.locations)for(var a=0,s=e.locations;a<s.length;a++)n+="\n\n"+gt(e.source,s[a]);return n}(this)}},{key:oe,get:function(){return"Object"}}]),t}(Kn(Error));function ae(e,n,t){return new E("Syntax Error: ".concat(t),void 0,e,[n])}function ue(e,n){if(!Boolean(e))throw new Error(null!=n?n:"Unexpected invariant triggered.")}const Jn="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function pe(e){var n=e.prototype.toJSON;"function"==typeof n||ue(0),e.prototype.inspect=n,Jn&&(e.prototype[Jn]=n)}var St=function(){function e(t,r,i){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=i}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();pe(St);var K=function(){function e(t,r,i,a,s,o,u){this.kind=t,this.start=r,this.end=i,this.line=a,this.column=s,this.value=u,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function Dt(e){return null!=e&&"string"==typeof e.kind}pe(K);var d=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 En(e){return(En="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function D(e){return gn(e,[])}function gn(e,n){switch(En(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(Jn)];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:gn(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(gn(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(i){return i+": "+gn(e[i],n)}).join(", ")+" }"}(e,t)}(e,n);default:return String(e)}}const Ee=function(n,t){return n instanceof t};function At(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 _t=function(){function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof n||F(0,"Body must be a string. Received: ".concat(D(n),".")),this.body=n,this.name=t,this.locationOffset=r,this.locationOffset.line>0||F(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||F(0,"column in locationOffset is 1-indexed and must be positive.")}return function(e,n,t){n&&At(e.prototype,n)}(e,[{key:oe,get:function(){return"Source"}}]),e}(),w=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 Lt(e){var n=e.split(/\r\n|[\n\r]/g),t=function(e){for(var n,t=!0,r=!0,i=0,a=null,s=0;s<e.length;++s)switch(e.charCodeAt(s)){case 13:10===e.charCodeAt(s+1)&&++s;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&&xt(n[i]);)++i;for(var a=n.length;a>i&&xt(n[a-1]);)--a;return n.slice(i,a).join("\n")}function xt(e){for(var n=0;n<e.length;++n)if(" "!==e[n]&&"\t"!==e[n])return!1;return!0}var di=function(){function e(t){var r=new K(d.SOF,0,0,0,0,null);this.source=t,this.lastToken=r,this.token=r,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 r=this.token;if(r.kind!==d.EOF)do{var i;r=null!==(i=r.next)&&void 0!==i?i:r.next=mi(this,r)}while(r.kind===d.COMMENT);return r},e}();function Pe(e){return isNaN(e)?d.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function mi(e,n){for(var t=e.source,r=t.body,i=r.length,a=n.end;a<i;){var s=r.charCodeAt(a),o=e.line,u=1+a-e.lineStart;switch(s){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(d.BANG,a,a+1,o,u,n);case 35:return Ti(t,a,o,u,n);case 36:return new K(d.DOLLAR,a,a+1,o,u,n);case 38:return new K(d.AMP,a,a+1,o,u,n);case 40:return new K(d.PAREN_L,a,a+1,o,u,n);case 41:return new K(d.PAREN_R,a,a+1,o,u,n);case 46:if(46===r.charCodeAt(a+1)&&46===r.charCodeAt(a+2))return new K(d.SPREAD,a,a+3,o,u,n);break;case 58:return new K(d.COLON,a,a+1,o,u,n);case 61:return new K(d.EQUALS,a,a+1,o,u,n);case 64:return new K(d.AT,a,a+1,o,u,n);case 91:return new K(d.BRACKET_L,a,a+1,o,u,n);case 93:return new K(d.BRACKET_R,a,a+1,o,u,n);case 123:return new K(d.BRACE_L,a,a+1,o,u,n);case 124:return new K(d.PIPE,a,a+1,o,u,n);case 125:return new K(d.BRACE_R,a,a+1,o,u,n);case 34:return 34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2)?Ii(t,a,o,u,n,e):gi(t,a,o,u,n);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Ei(t,a,s,o,u,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 Oi(t,a,o,u,n)}throw ae(t,a,yi(s))}return new K(d.EOF,i,i,e.line,1+a-e.lineStart,n)}function yi(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(Pe(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(Pe(e),".")}function Ti(e,n,t,r,i){var s,a=e.body,o=n;do{s=a.charCodeAt(++o)}while(!isNaN(s)&&(s>31||9===s));return new K(d.COMMENT,n,o,t,r,i,a.slice(n+1,o))}function Ei(e,n,t,r,i,a){var s=e.body,o=t,u=n,c=!1;if(45===o&&(o=s.charCodeAt(++u)),48===o){if((o=s.charCodeAt(++u))>=48&&o<=57)throw ae(e,u,"Invalid number, unexpected digit after 0: ".concat(Pe(o),"."))}else u=Xn(e,u,o),o=s.charCodeAt(u);if(46===o&&(c=!0,o=s.charCodeAt(++u),u=Xn(e,u,o),o=s.charCodeAt(u)),(69===o||101===o)&&(c=!0,(43===(o=s.charCodeAt(++u))||45===o)&&(o=s.charCodeAt(++u)),u=Xn(e,u,o),o=s.charCodeAt(u)),46===o||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(o))throw ae(e,u,"Invalid number, expected digit but got: ".concat(Pe(o),"."));return new K(c?d.FLOAT:d.INT,n,u,r,i,a,s.slice(n,u))}function Xn(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 ae(e,i,"Invalid number, expected digit but got: ".concat(Pe(a),"."))}function gi(e,n,t,r,i){for(var a=e.body,s=n+1,o=s,u=0,c="";s<a.length&&!isNaN(u=a.charCodeAt(s))&&10!==u&&13!==u;){if(34===u)return c+=a.slice(o,s),new K(d.STRING,n,s+1,t,r,i,c);if(u<32&&9!==u)throw ae(e,s,"Invalid character within String: ".concat(Pe(u),"."));if(++s,92===u){switch(c+=a.slice(o,s-1),u=a.charCodeAt(s)){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:var l=Ni(a.charCodeAt(s+1),a.charCodeAt(s+2),a.charCodeAt(s+3),a.charCodeAt(s+4));if(l<0){var p=a.slice(s+1,s+5);throw ae(e,s,"Invalid character escape sequence: \\u".concat(p,"."))}c+=String.fromCharCode(l),s+=4;break;default:throw ae(e,s,"Invalid character escape sequence: \\".concat(String.fromCharCode(u),"."))}o=++s}}throw ae(e,s,"Unterminated string.")}function Ii(e,n,t,r,i,a){for(var s=e.body,o=n+3,u=o,c=0,l="";o<s.length&&!isNaN(c=s.charCodeAt(o));){if(34===c&&34===s.charCodeAt(o+1)&&34===s.charCodeAt(o+2))return l+=s.slice(u,o),new K(d.BLOCK_STRING,n,o+3,t,r,i,Lt(l));if(c<32&&9!==c&&10!==c&&13!==c)throw ae(e,o,"Invalid character within String: ".concat(Pe(c),"."));10===c?(++o,++a.line,a.lineStart=o):13===c?(10===s.charCodeAt(o+1)?o+=2:++o,++a.line,a.lineStart=o):92===c&&34===s.charCodeAt(o+1)&&34===s.charCodeAt(o+2)&&34===s.charCodeAt(o+3)?(l+=s.slice(u,o)+'"""',u=o+=4):++o}throw ae(e,o,"Unterminated string.")}function Ni(e,n,t,r){return In(e)<<12|In(n)<<8|In(t)<<4|In(r)}function In(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Oi(e,n,t,r,i){for(var a=e.body,s=a.length,o=n+1,u=0;o!==s&&!isNaN(u=a.charCodeAt(o))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++o;return new K(d.NAME,n,o,t,r,i,a.slice(n,o))}var zn=function(){function e(t,r){var i=function(e){return Ee(e,_t)}(t)?t:new _t(t);this._lexer=new di(i),this._options=r}var n=e.prototype;return n.parseName=function(){var r=this.expectToken(d.NAME);return{kind:f.NAME,value:r.value,loc:this.loc(r)}},n.parseDocument=function(){var r=this._lexer.token;return{kind:f.DOCUMENT,definitions:this.many(d.SOF,this.parseDefinition,d.EOF),loc:this.loc(r)}},n.parseDefinition=function(){if(this.peek(d.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(d.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},n.parseOperationDefinition=function(){var r=this._lexer.token;if(this.peek(d.BRACE_L))return{kind:f.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(r)};var a,i=this.parseOperationType();return this.peek(d.NAME)&&(a=this.parseName()),{kind:f.OPERATION_DEFINITION,operation:i,name:a,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(r)}},n.parseOperationType=function(){var r=this.expectToken(d.NAME);switch(r.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(r)},n.parseVariableDefinitions=function(){return this.optionalMany(d.PAREN_L,this.parseVariableDefinition,d.PAREN_R)},n.parseVariableDefinition=function(){var r=this._lexer.token;return{kind:f.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(d.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(d.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(r)}},n.parseVariable=function(){var r=this._lexer.token;return this.expectToken(d.DOLLAR),{kind:f.VARIABLE,name:this.parseName(),loc:this.loc(r)}},n.parseSelectionSet=function(){var r=this._lexer.token;return{kind:f.SELECTION_SET,selections:this.many(d.BRACE_L,this.parseSelection,d.BRACE_R),loc:this.loc(r)}},n.parseSelection=function(){return this.peek(d.SPREAD)?this.parseFragment():this.parseField()},n.parseField=function(){var a,s,r=this._lexer.token,i=this.parseName();return this.expectOptionalToken(d.COLON)?(a=i,s=this.parseName()):s=i,{kind:f.FIELD,alias:a,name:s,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(d.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},n.parseArguments=function(r){return this.optionalMany(d.PAREN_L,r?this.parseConstArgument:this.parseArgument,d.PAREN_R)},n.parseArgument=function(){var r=this._lexer.token,i=this.parseName();return this.expectToken(d.COLON),{kind:f.ARGUMENT,name:i,value:this.parseValueLiteral(!1),loc:this.loc(r)}},n.parseConstArgument=function(){var r=this._lexer.token;return{kind:f.ARGUMENT,name:this.parseName(),value:(this.expectToken(d.COLON),this.parseValueLiteral(!0)),loc:this.loc(r)}},n.parseFragment=function(){var r=this._lexer.token;this.expectToken(d.SPREAD);var i=this.expectOptionalKeyword("on");return!i&&this.peek(d.NAME)?{kind:f.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(r)}:{kind:f.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(r)}},n.parseFragmentDefinition=function(){var r,i=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(r=this._options)||void 0===r?void 0:r.experimentalFragmentVariables)?{kind:f.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}:{kind:f.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}},n.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},n.parseValueLiteral=function(r){var i=this._lexer.token;switch(i.kind){case d.BRACKET_L:return this.parseList(r);case d.BRACE_L:return this.parseObject(r);case d.INT:return this._lexer.advance(),{kind:f.INT,value:i.value,loc:this.loc(i)};case d.FLOAT:return this._lexer.advance(),{kind:f.FLOAT,value:i.value,loc:this.loc(i)};case d.STRING:case d.BLOCK_STRING:return this.parseStringLiteral();case d.NAME:switch(this._lexer.advance(),i.value){case"true":return{kind:f.BOOLEAN,value:!0,loc:this.loc(i)};case"false":return{kind:f.BOOLEAN,value:!1,loc:this.loc(i)};case"null":return{kind:f.NULL,loc:this.loc(i)};default:return{kind:f.ENUM,value:i.value,loc:this.loc(i)}}case d.DOLLAR:if(!r)return this.parseVariable()}throw this.unexpected()},n.parseStringLiteral=function(){var r=this._lexer.token;return this._lexer.advance(),{kind:f.STRING,value:r.value,block:r.kind===d.BLOCK_STRING,loc:this.loc(r)}},n.parseList=function(r){var i=this,a=this._lexer.token;return{kind:f.LIST,values:this.any(d.BRACKET_L,function(){return i.parseValueLiteral(r)},d.BRACKET_R),loc:this.loc(a)}},n.parseObject=function(r){var i=this,a=this._lexer.token;return{kind:f.OBJECT,fields:this.any(d.BRACE_L,function(){return i.parseObjectField(r)},d.BRACE_R),loc:this.loc(a)}},n.parseObjectField=function(r){var i=this._lexer.token,a=this.parseName();return this.expectToken(d.COLON),{kind:f.OBJECT_FIELD,name:a,value:this.parseValueLiteral(r),loc:this.loc(i)}},n.parseDirectives=function(r){for(var i=[];this.peek(d.AT);)i.push(this.parseDirective(r));return i},n.parseDirective=function(r){var i=this._lexer.token;return this.expectToken(d.AT),{kind:f.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(r),loc:this.loc(i)}},n.parseTypeReference=function(){var i,r=this._lexer.token;return this.expectOptionalToken(d.BRACKET_L)?(i=this.parseTypeReference(),this.expectToken(d.BRACKET_R),i={kind:f.LIST_TYPE,type:i,loc:this.loc(r)}):i=this.parseNamedType(),this.expectOptionalToken(d.BANG)?{kind:f.NON_NULL_TYPE,type:i,loc:this.loc(r)}:i},n.parseNamedType=function(){var r=this._lexer.token;return{kind:f.NAMED_TYPE,name:this.parseName(),loc:this.loc(r)}},n.parseTypeSystemDefinition=function(){var r=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(r.kind===d.NAME)switch(r.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(r)},n.peekDescription=function(){return this.peek(d.STRING)||this.peek(d.BLOCK_STRING)},n.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},n.parseSchemaDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");var a=this.parseDirectives(!0),s=this.many(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);return{kind:f.SCHEMA_DEFINITION,description:i,directives:a,operationTypes:s,loc:this.loc(r)}},n.parseOperationTypeDefinition=function(){var r=this._lexer.token,i=this.parseOperationType();this.expectToken(d.COLON);var a=this.parseNamedType();return{kind:f.OPERATION_TYPE_DEFINITION,operation:i,type:a,loc:this.loc(r)}},n.parseScalarTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");var a=this.parseName(),s=this.parseDirectives(!0);return{kind:f.SCALAR_TYPE_DEFINITION,description:i,name:a,directives:s,loc:this.loc(r)}},n.parseObjectTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");var a=this.parseName(),s=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),u=this.parseFieldsDefinition();return{kind:f.OBJECT_TYPE_DEFINITION,description:i,name:a,interfaces:s,directives:o,fields:u,loc:this.loc(r)}},n.parseImplementsInterfaces=function(){var r;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(r=this._options)||void 0===r?void 0:r.allowLegacySDLImplementsInterfaces)){var i=[];this.expectOptionalToken(d.AMP);do{i.push(this.parseNamedType())}while(this.expectOptionalToken(d.AMP)||this.peek(d.NAME));return i}return this.delimitedMany(d.AMP,this.parseNamedType)},n.parseFieldsDefinition=function(){var r;return!0===(null===(r=this._options)||void 0===r?void 0:r.allowLegacySDLEmptyFields)&&this.peek(d.BRACE_L)&&this._lexer.lookahead().kind===d.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(d.BRACE_L,this.parseFieldDefinition,d.BRACE_R)},n.parseFieldDefinition=function(){var r=this._lexer.token,i=this.parseDescription(),a=this.parseName(),s=this.parseArgumentDefs();this.expectToken(d.COLON);var o=this.parseTypeReference(),u=this.parseDirectives(!0);return{kind:f.FIELD_DEFINITION,description:i,name:a,arguments:s,type:o,directives:u,loc:this.loc(r)}},n.parseArgumentDefs=function(){return this.optionalMany(d.PAREN_L,this.parseInputValueDef,d.PAREN_R)},n.parseInputValueDef=function(){var r=this._lexer.token,i=this.parseDescription(),a=this.parseName();this.expectToken(d.COLON);var o,s=this.parseTypeReference();this.expectOptionalToken(d.EQUALS)&&(o=this.parseValueLiteral(!0));var u=this.parseDirectives(!0);return{kind:f.INPUT_VALUE_DEFINITION,description:i,name:a,type:s,defaultValue:o,directives:u,loc:this.loc(r)}},n.parseInterfaceTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");var a=this.parseName(),s=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),u=this.parseFieldsDefinition();return{kind:f.INTERFACE_TYPE_DEFINITION,description:i,name:a,interfaces:s,directives:o,fields:u,loc:this.loc(r)}},n.parseUnionTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");var a=this.parseName(),s=this.parseDirectives(!0),o=this.parseUnionMemberTypes();return{kind:f.UNION_TYPE_DEFINITION,description:i,name:a,directives:s,types:o,loc:this.loc(r)}},n.parseUnionMemberTypes=function(){return this.expectOptionalToken(d.EQUALS)?this.delimitedMany(d.PIPE,this.parseNamedType):[]},n.parseEnumTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");var a=this.parseName(),s=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();return{kind:f.ENUM_TYPE_DEFINITION,description:i,name:a,directives:s,values:o,loc:this.loc(r)}},n.parseEnumValuesDefinition=function(){return this.optionalMany(d.BRACE_L,this.parseEnumValueDefinition,d.BRACE_R)},n.parseEnumValueDefinition=function(){var r=this._lexer.token,i=this.parseDescription(),a=this.parseName(),s=this.parseDirectives(!0);return{kind:f.ENUM_VALUE_DEFINITION,description:i,name:a,directives:s,loc:this.loc(r)}},n.parseInputObjectTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");var a=this.parseName(),s=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();return{kind:f.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:a,directives:s,fields:o,loc:this.loc(r)}},n.parseInputFieldsDefinition=function(){return this.optionalMany(d.BRACE_L,this.parseInputValueDef,d.BRACE_R)},n.parseTypeSystemExtension=function(){var r=this._lexer.lookahead();if(r.kind===d.NAME)switch(r.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(r)},n.parseSchemaExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var i=this.parseDirectives(!0),a=this.optionalMany(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);if(0===i.length&&0===a.length)throw this.unexpected();return{kind:f.SCHEMA_EXTENSION,directives:i,operationTypes:a,loc:this.loc(r)}},n.parseScalarTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var i=this.parseName(),a=this.parseDirectives(!0);if(0===a.length)throw this.unexpected();return{kind:f.SCALAR_TYPE_EXTENSION,name:i,directives:a,loc:this.loc(r)}},n.parseObjectTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var i=this.parseName(),a=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===a.length&&0===s.length&&0===o.length)throw this.unexpected();return{kind:f.OBJECT_TYPE_EXTENSION,name:i,interfaces:a,directives:s,fields:o,loc:this.loc(r)}},n.parseInterfaceTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var i=this.parseName(),a=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===a.length&&0===s.length&&0===o.length)throw this.unexpected();return{kind:f.INTERFACE_TYPE_EXTENSION,name:i,interfaces:a,directives:s,fields:o,loc:this.loc(r)}},n.parseUnionTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var i=this.parseName(),a=this.parseDirectives(!0),s=this.parseUnionMemberTypes();if(0===a.length&&0===s.length)throw this.unexpected();return{kind:f.UNION_TYPE_EXTENSION,name:i,directives:a,types:s,loc:this.loc(r)}},n.parseEnumTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var i=this.parseName(),a=this.parseDirectives(!0),s=this.parseEnumValuesDefinition();if(0===a.length&&0===s.length)throw this.unexpected();return{kind:f.ENUM_TYPE_EXTENSION,name:i,directives:a,values:s,loc:this.loc(r)}},n.parseInputObjectTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var i=this.parseName(),a=this.parseDirectives(!0),s=this.parseInputFieldsDefinition();if(0===a.length&&0===s.length)throw this.unexpected();return{kind:f.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:a,fields:s,loc:this.loc(r)}},n.parseDirectiveDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(d.AT);var a=this.parseName(),s=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var u=this.parseDirectiveLocations();return{kind:f.DIRECTIVE_DEFINITION,description:i,name:a,arguments:s,repeatable:o,locations:u,loc:this.loc(r)}},n.parseDirectiveLocations=function(){return this.delimitedMany(d.PIPE,this.parseDirectiveLocation)},n.parseDirectiveLocation=function(){var r=this._lexer.token,i=this.parseName();if(void 0!==w[i.value])return i;throw this.unexpected(r)},n.loc=function(r){var i;if(!0!==(null===(i=this._options)||void 0===i?void 0:i.noLocation))return new St(r,this._lexer.lastToken,this._lexer.source)},n.peek=function(r){return this._lexer.token.kind===r},n.expectToken=function(r){var i=this._lexer.token;if(i.kind===r)return this._lexer.advance(),i;throw ae(this._lexer.source,i.start,"Expected ".concat(Ft(r),", found ").concat(Hn(i),"."))},n.expectOptionalToken=function(r){var i=this._lexer.token;if(i.kind===r)return this._lexer.advance(),i},n.expectKeyword=function(r){var i=this._lexer.token;if(i.kind!==d.NAME||i.value!==r)throw ae(this._lexer.source,i.start,'Expected "'.concat(r,'", found ').concat(Hn(i),"."));this._lexer.advance()},n.expectOptionalKeyword=function(r){var i=this._lexer.token;return i.kind===d.NAME&&i.value===r&&(this._lexer.advance(),!0)},n.unexpected=function(r){var i=null!=r?r:this._lexer.token;return ae(this._lexer.source,i.start,"Unexpected ".concat(Hn(i),"."))},n.any=function(r,i,a){this.expectToken(r);for(var s=[];!this.expectOptionalToken(a);)s.push(i.call(this));return s},n.optionalMany=function(r,i,a){if(this.expectOptionalToken(r)){var s=[];do{s.push(i.call(this))}while(!this.expectOptionalToken(a));return s}return[]},n.many=function(r,i,a){this.expectToken(r);var s=[];do{s.push(i.call(this))}while(!this.expectOptionalToken(a));return s},n.delimitedMany=function(r,i){this.expectOptionalToken(r);var a=[];do{a.push(i.call(this))}while(this.expectOptionalToken(r));return a},e}();function Hn(e){var n=e.value;return Ft(e.kind)+(null!=n?' "'.concat(n,'"'):"")}function Ft(e){return function(e){return e===d.BANG||e===d.DOLLAR||e===d.AMP||e===d.PAREN_L||e===d.PAREN_R||e===d.SPREAD||e===d.COLON||e===d.EQUALS||e===d.AT||e===d.BRACKET_L||e===d.BRACKET_R||e===d.BRACE_L||e===d.PIPE||e===d.BRACE_R}(e)?'"'.concat(e,'"'):e}var Di={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"]},rn=Object.freeze({});function kt(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Di,r=void 0,i=Array.isArray(e),a=[e],s=-1,o=[],u=void 0,c=void 0,l=void 0,p=[],v=[],m=e;do{var h=++s===a.length,T=h&&0!==o.length;if(h){if(c=0===v.length?void 0:p[p.length-1],u=l,l=v.pop(),T){if(i)u=u.slice();else{for(var g={},I=0,A=Object.keys(u);I<A.length;I++){var x=A[I];g[x]=u[x]}u=g}for(var M=0,j=0;j<o.length;j++){var Y=o[j][0],z=o[j][1];i&&(Y-=M),i&&null===z?(u.splice(Y,1),M++):u[Y]=z}}s=r.index,a=r.keys,o=r.edits,i=r.inArray,r=r.prev}else{if(c=l?i?s:a[s]:void 0,null==(u=l?l[c]:m))continue;l&&p.push(c)}var we,ne=void 0;if(!Array.isArray(u)){if(!Dt(u))throw new Error("Invalid AST Node: ".concat(D(u),"."));var Re=Wn(n,u.kind,h);if(Re){if((ne=Re.call(n,u,c,l,p,v))===rn)break;if(!1===ne){if(!h){p.pop();continue}}else if(void 0!==ne&&(o.push([c,ne]),!h)){if(!Dt(ne)){p.pop();continue}u=ne}}}void 0===ne&&T&&o.push([c,u]),h?p.pop():(r={inArray:i,index:s,keys:a,edits:o,prev:r},a=(i=Array.isArray(u))?u:null!==(we=t[u.kind])&&void 0!==we?we:[],s=-1,o=[],l&&v.push(l),l=u)}while(void 0!==r);return 0!==o.length&&(m=o[o.length-1][1]),m}function wi(e){var n=new Array(e.length);return{enter:function(r){for(var i=0;i<e.length;i++)if(null==n[i]){var a=Wn(e[i],r.kind,!1);if(a){var s=a.apply(e[i],arguments);if(!1===s)n[i]=r;else if(s===rn)n[i]=rn;else if(void 0!==s)return s}}},leave:function(r){for(var i=0;i<e.length;i++)if(null==n[i]){var a=Wn(e[i],r.kind,!0);if(a){var s=a.apply(e[i],arguments);if(s===rn)n[i]=rn;else if(void 0!==s&&!1!==s)return s}}else n[i]===r&&(n[i]=null)}}}function Wn(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 s=a[n];if("function"==typeof s)return s}}}function Rt(e){return e.kind===f.OPERATION_DEFINITION||e.kind===f.FRAGMENT_DEFINITION}function an(e){return e.kind===f.SCALAR_TYPE_DEFINITION||e.kind===f.OBJECT_TYPE_DEFINITION||e.kind===f.INTERFACE_TYPE_DEFINITION||e.kind===f.UNION_TYPE_DEFINITION||e.kind===f.ENUM_TYPE_DEFINITION||e.kind===f.INPUT_OBJECT_TYPE_DEFINITION}function Zn(e){return e.kind===f.SCALAR_TYPE_EXTENSION||e.kind===f.OBJECT_TYPE_EXTENSION||e.kind===f.INTERFACE_TYPE_EXTENSION||e.kind===f.UNION_TYPE_EXTENSION||e.kind===f.ENUM_TYPE_EXTENSION||e.kind===f.INPUT_OBJECT_TYPE_EXTENSION}function Le(e,n){var t="string"==typeof e?[e,n]:[void 0,e],r=t[0],a=" Did you mean ";r&&(a+=r+" ");var s=t[1].map(function(c){return'"'.concat(c,'"')});switch(s.length){case 0:return"";case 1:return a+s[0]+"?";case 2:return a+s[0]+" or "+s[1]+"?"}var o=s.slice(0,5),u=o.pop();return a+o.join(", ")+", or "+u+"?"}function Pt(e,n){for(var t=0,r=0;t<e.length&&r<n.length;){var i=e.charCodeAt(t),a=n.charCodeAt(r);if(Nn(i)&&Nn(a)){var s=0;do{++t,s=10*s+i-$n,i=e.charCodeAt(t)}while(Nn(i)&&s>0);var o=0;do{++r,o=10*o+a-$n,a=n.charCodeAt(r)}while(Nn(a)&&o>0);if(s<o)return-1;if(s>o)return 1}else{if(i<a)return-1;if(i>a)return 1;++t,++r}}return e.length-n.length}var $n=48;function Nn(e){return!isNaN(e)&&$n<=e&&e<=57}function Ve(e,n){for(var t=Object.create(null),r=new Ri(e),i=Math.floor(.4*e.length)+1,a=0;a<n.length;a++){var s=n[a],o=r.measure(s,i);void 0!==o&&(t[s]=o)}return Object.keys(t).sort(function(u,c){var l=t[u]-t[c];return 0!==l?l:Pt(u,c)})}var Ri=function(){function e(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Vt(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}return e.prototype.measure=function(r,i){if(this._input===r)return 0;var a=r.toLowerCase();if(this._inputLowerCase===a)return 1;var s=Vt(a),o=this._inputArray;if(s.length<o.length){var u=s;s=o,o=u}var c=s.length,l=o.length;if(!(c-l>i)){for(var p=this._rows,v=0;v<=l;v++)p[0][v]=v;for(var m=1;m<=c;m++){for(var h=p[(m-1)%3],T=p[m%3],g=T[0]=m,I=1;I<=l;I++){var x=Math.min(h[I]+1,T[I-1]+1,h[I-1]+(s[m-1]===o[I-1]?0:1));m>1&&I>1&&s[m-1]===o[I-2]&&s[m-2]===o[I-1]&&(x=Math.min(x,p[(m-2)%3][I-2]+1)),x<g&&(g=x),T[I]=x}if(g>i)return}var j=p[c%3][l];return j<=i?j:void 0}},e}();function Vt(e){for(var n=e.length,t=new Array(n),r=0;r<n;++r)t[r]=e.charCodeAt(r);return t}const sn=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},On=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function W(e){return kt(e,{leave:Vi})}var Vi={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return O(n.definitions,"\n\n")+"\n"},OperationDefinition:function(n){var t=n.operation,r=n.name,i=Q("(",O(n.variableDefinitions,", "),")"),a=O(n.directives," "),s=n.selectionSet;return r||a||i||"query"!==t?O([t,O([r,i]),a,s]," "):s},VariableDefinition:function(n){var a=n.directives;return n.variable+": "+n.type+Q(" = ",n.defaultValue)+Q(" ",O(a," "))},SelectionSet:function(n){return de(n.selections)},Field:function(n){var r=n.name,i=n.arguments,a=n.directives,s=n.selectionSet,o=Q("",n.alias,": ")+r,u=o+Q("(",O(i,", "),")");return u.length>80&&(u=o+Q("(\n",bn(O(i,"\n")),"\n)")),O([u,O(a," "),s]," ")},Argument:function(n){return n.name+": "+n.value},FragmentSpread:function(n){return"..."+n.name+Q(" ",O(n.directives," "))},InlineFragment:function(n){var r=n.directives,i=n.selectionSet;return O(["...",Q("on ",n.typeCondition),O(r," "),i]," ")},FragmentDefinition:function(n){var r=n.typeCondition,i=n.variableDefinitions,a=n.directives,s=n.selectionSet;return"fragment ".concat(n.name).concat(Q("(",O(i,", "),")")," ")+"on ".concat(r," ").concat(Q("",O(a," ")," "))+s},IntValue:function(n){return n.value},FloatValue:function(n){return n.value},StringValue:function(n,t){var r=n.value;return n.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],s="\\"===e[e.length-1],o=!r||a||s||t,u="";return o&&!(r&&i)&&(u+="\n"+n),u+=n?e.replace(/\n/g,"\n"+n):e,o&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}(r,"description"===t?"":" "):JSON.stringify(r)},BooleanValue:function(n){return n.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(n){return n.value},ListValue:function(n){return"["+O(n.values,", ")+"]"},ObjectValue:function(n){return"{"+O(n.fields,", ")+"}"},ObjectField:function(n){return n.name+": "+n.value},Directive:function(n){return"@"+n.name+Q("(",O(n.arguments,", "),")")},NamedType:function(n){return n.name},ListType:function(n){return"["+n.type+"]"},NonNullType:function(n){return n.type+"!"},SchemaDefinition:ve(function(e){var t=e.operationTypes;return O(["schema",O(e.directives," "),de(t)]," ")}),OperationTypeDefinition:function(n){return n.operation+": "+n.type},ScalarTypeDefinition:ve(function(e){return O(["scalar",e.name,O(e.directives," ")]," ")}),ObjectTypeDefinition:ve(function(e){var r=e.directives,i=e.fields;return O(["type",e.name,Q("implements ",O(e.interfaces," & ")),O(r," "),de(i)]," ")}),FieldDefinition:ve(function(e){var t=e.arguments,r=e.type,i=e.directives;return e.name+(Ut(t)?Q("(\n",bn(O(t,"\n")),"\n)"):Q("(",O(t,", "),")"))+": "+r+Q(" ",O(i," "))}),InputValueDefinition:ve(function(e){var i=e.directives;return O([e.name+": "+e.type,Q("= ",e.defaultValue),O(i," ")]," ")}),InterfaceTypeDefinition:ve(function(e){var r=e.directives,i=e.fields;return O(["interface",e.name,Q("implements ",O(e.interfaces," & ")),O(r," "),de(i)]," ")}),UnionTypeDefinition:ve(function(e){var r=e.types;return O(["union",e.name,O(e.directives," "),r&&0!==r.length?"= "+O(r," | "):""]," ")}),EnumTypeDefinition:ve(function(e){var r=e.values;return O(["enum",e.name,O(e.directives," "),de(r)]," ")}),EnumValueDefinition:ve(function(e){return O([e.name,O(e.directives," ")]," ")}),InputObjectTypeDefinition:ve(function(e){var r=e.fields;return O(["input",e.name,O(e.directives," "),de(r)]," ")}),DirectiveDefinition:ve(function(e){var t=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+e.name+(Ut(t)?Q("(\n",bn(O(t,"\n")),"\n)"):Q("(",O(t,", "),")"))+(r?" repeatable":"")+" on "+O(i," | ")}),SchemaExtension:function(n){var r=n.operationTypes;return O(["extend schema",O(n.directives," "),de(r)]," ")},ScalarTypeExtension:function(n){return O(["extend scalar",n.name,O(n.directives," ")]," ")},ObjectTypeExtension:function(n){var i=n.directives,a=n.fields;return O(["extend type",n.name,Q("implements ",O(n.interfaces," & ")),O(i," "),de(a)]," ")},InterfaceTypeExtension:function(n){var i=n.directives,a=n.fields;return O(["extend interface",n.name,Q("implements ",O(n.interfaces," & ")),O(i," "),de(a)]," ")},UnionTypeExtension:function(n){var i=n.types;return O(["extend union",n.name,O(n.directives," "),i&&0!==i.length?"= "+O(i," | "):""]," ")},EnumTypeExtension:function(n){var i=n.values;return O(["extend enum",n.name,O(n.directives," "),de(i)]," ")},InputObjectTypeExtension:function(n){var i=n.fields;return O(["extend input",n.name,O(n.directives," "),de(i)]," ")}};function ve(e){return function(n){return O([n.description,e(n)],"\n")}}function O(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(n=null==e?void 0:e.filter(function(r){return r}).join(t))&&void 0!==n?n:""}function de(e){return Q("{\n",bn(O(e,"\n")),"\n}")}function Q(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=n&&""!==n?e+n+t:""}function bn(e){return Q(" ",e.replace(/\n/g,"\n "))}function Ui(e){return-1!==e.indexOf("\n")}function Ut(e){return null!=e&&e.some(Ui)}const Je=Object.entries||function(e){return Object.keys(e).map(function(n){return[n,e[n]]})};function Ne(e,n){return e.reduce(function(t,r){return t[n(r)]=r,t},Object.create(null))}function Oe(e,n){for(var t=Object.create(null),r=0,i=Je(e);r<i.length;r++){var a=i[r],s=a[0];t[s]=n(a[1],s)}return t}function se(e){if(null===Object.getPrototypeOf(e))return e;for(var n=Object.create(null),t=0,r=Je(e);t<r.length;t++){var i=r[t];n[i[0]]=i[1]}return n}function et(e,n,t){return e.reduce(function(r,i){return r[n(i)]=t(i),r},Object.create(null))}function jt(e){return e}function nt(e,n){switch(e.kind){case f.NULL:return null;case f.INT:return parseInt(e.value,10);case f.FLOAT:return parseFloat(e.value);case f.STRING:case f.ENUM:case f.BOOLEAN:return e.value;case f.LIST:return e.values.map(function(t){return nt(t,n)});case f.OBJECT:return et(e.fields,function(t){return t.name.value},function(t){return nt(t.value,n)});case f.VARIABLE:return null==n?void 0:n[e.name.value]}ue(0,"Unexpected value node: "+D(e))}function Bt(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 qe(e,n,t){return n&&Bt(e.prototype,n),t&&Bt(e,t),e}function tt(e){return be(e)||Z(e)||J(e)||ce(e)||le(e)||re(e)||ie(e)||B(e)}function be(e){return Ee(e,Se)}function Z(e){return Ee(e,ge)}function J(e){return Ee(e,wn)}function ce(e){return Ee(e,An)}function le(e){return Ee(e,We)}function re(e){return Ee(e,Ln)}function ie(e){return Ee(e,X)}function B(e){return Ee(e,_)}function rt(e){return be(e)||le(e)||re(e)||Sn(e)&&rt(e.ofType)}function Ue(e){return be(e)||le(e)}function Xe(e){return Z(e)||J(e)||ce(e)}function je(e){return J(e)||ce(e)}function X(e){if(!(this instanceof X))return new X(e);this.ofType=function(e){if(!tt(e))throw new Error("Expected ".concat(D(e)," to be a GraphQL type."));return e}(e)}function _(e){if(!(this instanceof _))return new _(e);this.ofType=function(e){if(!function(e){return tt(e)&&!B(e)}(e))throw new Error("Expected ".concat(D(e)," to be a GraphQL nullable type."));return e}(e)}function Sn(e){return ie(e)||B(e)}function Be(e){if(e){for(var n=e;Sn(n);)n=n.ofType;return n}}function Dn(e){return"function"==typeof e?e():e}function ze(e){return e&&e.length>0?e:void 0}X.prototype.toString=function(){return"["+String(this.ofType)+"]"},X.prototype.toJSON=function(){return this.toString()},Object.defineProperty(X.prototype,oe,{get:function(){return"GraphQLList"}}),pe(X),_.prototype.toString=function(){return String(this.ofType)+"!"},_.prototype.toJSON=function(){return this.toString()},Object.defineProperty(_.prototype,oe,{get:function(){return"GraphQLNonNull"}}),pe(_);var Se=function(){function e(t){var r,i,a,s=null!==(r=t.parseValue)&&void 0!==r?r:jt;this.name=t.name,this.description=t.description,this.specifiedByUrl=t.specifiedByUrl,this.serialize=null!==(i=t.serialize)&&void 0!==i?i:jt,this.parseValue=s,this.parseLiteral=null!==(a=t.parseLiteral)&&void 0!==a?a:function(o,u){return s(nt(o,u))},this.extensions=t.extensions&&se(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=ze(t.extensionASTNodes),"string"==typeof t.name||F(0,"Must provide name."),null==t.specifiedByUrl||"string"==typeof t.specifiedByUrl||F(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(D(t.specifiedByUrl),".")),null==t.serialize||"function"==typeof t.serialize||F(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.')),t.parseLiteral&&("function"==typeof t.parseValue&&"function"==typeof t.parseLiteral||F(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var n=e.prototype;return n.toConfig=function(){var r;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!==(r=this.extensionASTNodes)&&void 0!==r?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},qe(e,[{key:oe,get:function(){return"GraphQLScalarType"}}]),e}();pe(Se);var ge=function(){function e(t){this.name=t.name,this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=t.extensions&&se(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=ze(t.extensionASTNodes),this._fields=Qt.bind(void 0,t),this._interfaces=Yt.bind(void 0,t),"string"==typeof t.name||F(0,"Must provide name."),null==t.isTypeOf||"function"==typeof t.isTypeOf||F(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(D(t.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:Kt(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()},qe(e,[{key:oe,get:function(){return"GraphQLObjectType"}}]),e}();function Yt(e){var n,t=null!==(n=Dn(e.interfaces))&&void 0!==n?n:[];return Array.isArray(t)||F(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function Qt(e){var n=Dn(e.fields);return He(n)||F(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Oe(n,function(t,r){var i;He(t)||F(0,"".concat(e.name,".").concat(r," field config must be an object.")),!("isDeprecated"in t)||F(0,"".concat(e.name,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"==typeof t.resolve||F(0,"".concat(e.name,".").concat(r," field resolver must be a function if ")+"provided, but got: ".concat(D(t.resolve),"."));var a=null!==(i=t.args)&&void 0!==i?i:{};He(a)||F(0,"".concat(e.name,".").concat(r," args must be an object with argument names as keys."));var s=Je(a).map(function(o){var c=o[1];return{name:o[0],description:c.description,type:c.type,defaultValue:c.defaultValue,deprecationReason:c.deprecationReason,extensions:c.extensions&&se(c.extensions),astNode:c.astNode}});return{name:r,description:t.description,type:t.type,args:s,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&se(t.extensions),astNode:t.astNode}})}function He(e){return Me(e)&&!Array.isArray(e)}function Kt(e){return Oe(e,function(n){return{description:n.description,type:n.type,args:Jt(n.args),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}function Jt(e){return et(e,function(n){return n.name},function(n){return{description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}function qt(e){return B(e.type)&&void 0===e.defaultValue}pe(ge);var wn=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&se(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=ze(t.extensionASTNodes),this._fields=Qt.bind(void 0,t),this._interfaces=Yt.bind(void 0,t),"string"==typeof t.name||F(0,"Must provide name."),null==t.resolveType||"function"==typeof t.resolveType||F(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(D(t.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 r;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Kt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(r=this.extensionASTNodes)&&void 0!==r?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},qe(e,[{key:oe,get:function(){return"GraphQLInterfaceType"}}]),e}();pe(wn);var An=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&se(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=ze(t.extensionASTNodes),this._types=Ji.bind(void 0,t),"string"==typeof t.name||F(0,"Must provide name."),null==t.resolveType||"function"==typeof t.resolveType||F(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(D(t.resolveType),"."))}var n=e.prototype;return n.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},n.toConfig=function(){var r;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(r=this.extensionASTNodes)&&void 0!==r?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},qe(e,[{key:oe,get:function(){return"GraphQLUnionType"}}]),e}();function Ji(e){var n=Dn(e.types);return Array.isArray(n)||F(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),n}pe(An);var We=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&se(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=ze(t.extensionASTNodes),this._values=function(e,n){return He(n)||F(0,"".concat(e," values must be an object with value names as keys.")),Je(n).map(function(t){var r=t[0],i=t[1];return He(i)||F(0,"".concat(e,".").concat(r,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(D(i),".")),!("isDeprecated"in i)||F(0,"".concat(e,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),{name:r,description:i.description,value:void 0!==i.value?i.value:r,isDeprecated:null!=i.deprecationReason,deprecationReason:i.deprecationReason,extensions:i.extensions&&se(i.extensions),astNode:i.astNode}})}(this.name,t.values),this._valueLookup=new Map(this._values.map(function(r){return[r.value,r]})),this._nameLookup=Ne(this._values,function(r){return r.name}),"string"==typeof t.name||F(0,"Must provide name.")}var n=e.prototype;return n.getValues=function(){return this._values},n.getValue=function(r){return this._nameLookup[r]},n.serialize=function(r){var i=this._valueLookup.get(r);if(void 0===i)throw new E('Enum "'.concat(this.name,'" cannot represent value: ').concat(D(r)));return i.name},n.parseValue=function(r){if("string"!=typeof r){var i=D(r);throw new E('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(i,".")+_n(this,i))}var a=this.getValue(r);if(null==a)throw new E('Value "'.concat(r,'" does not exist in "').concat(this.name,'" enum.')+_n(this,r));return a.value},n.parseLiteral=function(r,i){if(r.kind!==f.ENUM){var a=W(r);throw new E('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(a,".")+_n(this,a),r)}var s=this.getValue(r.value);if(null==s){var o=W(r);throw new E('Value "'.concat(o,'" does not exist in "').concat(this.name,'" enum.')+_n(this,o),r)}return s.value},n.toConfig=function(){var r,i=et(this.getValues(),function(a){return a.name},function(a){return{description:a.description,value:a.value,deprecationReason:a.deprecationReason,extensions:a.extensions,astNode:a.astNode}});return{name:this.name,description:this.description,values:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(r=this.extensionASTNodes)&&void 0!==r?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},qe(e,[{key:oe,get:function(){return"GraphQLEnumType"}}]),e}();function _n(e,n){return Le("the enum value",Ve(n,e.getValues().map(function(i){return i.name})))}pe(We);var Ln=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&se(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=ze(t.extensionASTNodes),this._fields=Xi.bind(void 0,t),"string"==typeof t.name||F(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 r,i=Oe(this.getFields(),function(a){return{description:a.description,type:a.type,defaultValue:a.defaultValue,extensions:a.extensions,astNode:a.astNode}});return{name:this.name,description:this.description,fields:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(r=this.extensionASTNodes)&&void 0!==r?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},qe(e,[{key:oe,get:function(){return"GraphQLInputObjectType"}}]),e}();function Xi(e){var n=Dn(e.fields);return He(n)||F(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Oe(n,function(t,r){return!("resolve"in t)||F(0,"".concat(e.name,".").concat(r," field has a resolve property, but Input Types cannot define resolvers.")),{name:r,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&se(t.extensions),astNode:t.astNode}})}function zi(e){return B(e.type)&&void 0===e.defaultValue}pe(Ln);var it=2147483647,at=-2147483648,Zi=new Se({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=on(e);if("boolean"==typeof n)return n?1:0;var t=n;if("string"==typeof n&&""!==n&&(t=Number(n)),!On(t))throw new E("Int cannot represent non-integer value: ".concat(D(n)));if(t>it||t<at)throw new E("Int cannot represent non 32-bit signed integer value: "+D(n));return t},parseValue:function(e){if(!On(e))throw new E("Int cannot represent non-integer value: ".concat(D(e)));if(e>it||e<at)throw new E("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(n){if(n.kind!==f.INT)throw new E("Int cannot represent non-integer value: ".concat(W(n)),n);var t=parseInt(n.value,10);if(t>it||t<at)throw new E("Int cannot represent non 32-bit signed integer value: ".concat(n.value),n);return t}}),na=new Se({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=on(e);if("boolean"==typeof n)return n?1:0;var t=n;if("string"==typeof n&&""!==n&&(t=Number(n)),!sn(t))throw new E("Float cannot represent non numeric value: ".concat(D(n)));return t},parseValue:function(e){if(!sn(e))throw new E("Float cannot represent non numeric value: ".concat(D(e)));return e},parseLiteral:function(n){if(n.kind!==f.FLOAT&&n.kind!==f.INT)throw new E("Float cannot represent non numeric value: ".concat(W(n)),n);return parseFloat(n.value)}});function on(e){if(Me(e)){if("function"==typeof e.valueOf){var n=e.valueOf();if(!Me(n))return n}if("function"==typeof e.toJSON)return e.toJSON()}return e}var q=new Se({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=on(e);if("string"==typeof n)return n;if("boolean"==typeof n)return n?"true":"false";if(sn(n))return n.toString();throw new E("String cannot represent value: ".concat(D(e)))},parseValue:function(e){if("string"!=typeof e)throw new E("String cannot represent a non string value: ".concat(D(e)));return e},parseLiteral:function(n){if(n.kind!==f.STRING)throw new E("String cannot represent a non string value: ".concat(W(n)),n);return n.value}}),he=new Se({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var n=on(e);if("boolean"==typeof n)return n;if(sn(n))return 0!==n;throw new E("Boolean cannot represent a non boolean value: ".concat(D(n)))},parseValue:function(e){if("boolean"!=typeof e)throw new E("Boolean cannot represent a non boolean value: ".concat(D(e)));return e},parseLiteral:function(n){if(n.kind!==f.BOOLEAN)throw new E("Boolean cannot represent a non boolean value: ".concat(W(n)),n);return n.value}}),Xt=new Se({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=on(e);if("string"==typeof n)return n;if(On(n))return String(n);throw new E("ID cannot represent value: ".concat(D(e)))},parseValue:function(e){if("string"==typeof e)return e;if(On(e))return e.toString();throw new E("ID cannot represent value: ".concat(D(e)))},parseLiteral:function(n){if(n.kind!==f.STRING&&n.kind!==f.INT)throw new E("ID cannot represent a non-string and non-integer value: "+W(n),n);return n.value}}),st=Object.freeze([q,Zi,na,he,Xt]);const Ie=Object.values||function(e){return Object.keys(e).map(function(n){return e[n]})};function xn(e){return(xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function un(e,n){if(B(n)){var t=un(e,n.ofType);return(null==t?void 0:t.kind)===f.NULL?null:t}if(null===e)return{kind:f.NULL};if(void 0===e)return null;if(ie(n)){var r=n.ofType,i=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(l){return l};if(null==e||"object"!==xn(e))return null;if(Array.isArray(e))return e.map(n);var t=e[Et];if("function"==typeof t){for(var a,r=t.call(e),i=[],s=0;!(a=r.next()).done;++s)i.push(n(a.value,s));return i}var o=e.length;if("number"==typeof o&&o>=0&&o%1==0){for(var u=[],c=0;c<o;++c){if(!Object.prototype.hasOwnProperty.call(e,c))return null;u.push(n(e[String(c)],c))}return u}return null}(e);if(null!=i){for(var a=[],s=0;s<i.length;s++){var u=un(i[s],r);null!=u&&a.push(u)}return{kind:f.LIST,values:a}}return un(e,r)}if(re(n)){if(!Me(e))return null;for(var c=[],l=0,p=Ie(n.getFields());l<p.length;l++){var v=p[l],m=un(e[v.name],v.type);m&&c.push({kind:f.OBJECT_FIELD,name:{kind:f.NAME,value:v.name},value:m})}return{kind:f.OBJECT,fields:c}}if(Ue(n)){var h=n.serialize(e);if(null==h)return null;if("boolean"==typeof h)return{kind:f.BOOLEAN,value:h};if("number"==typeof h&&sn(h)){var T=String(h);return zt.test(T)?{kind:f.INT,value:T}:{kind:f.FLOAT,value:T}}if("string"==typeof h)return le(n)?{kind:f.ENUM,value:h}:n===Xt&&zt.test(h)?{kind:f.INT,value:h}:{kind:f.STRING,value:h};throw new TypeError("Cannot convert value to AST: ".concat(D(h),"."))}ue(0,"Unexpected input type: "+D(n))}var zt=/^-?(?:0|[1-9][0-9]*)$/,ot=new ge({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:q,resolve:function(t){return t.description}},types:{description:"A list of all types supported by this server.",type:new _(new X(new _(me))),resolve:function(t){return Ie(t.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new _(me),resolve:function(t){return t.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:me,resolve:function(t){return t.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:me,resolve:function(t){return t.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new _(new X(new _(Ht))),resolve:function(t){return t.getDirectives()}}}}}),Ht=new ge({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 _(q),resolve:function(t){return t.name}},description:{type:q,resolve:function(t){return t.description}},isRepeatable:{type:new _(he),resolve:function(t){return t.isRepeatable}},locations:{type:new _(new X(new _(Wt))),resolve:function(t){return t.locations}},args:{type:new _(new X(new _(Fn))),resolve:function(t){return t.args}}}}}),Wt=new We({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:w.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:w.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:w.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:w.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:w.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:w.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:w.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:w.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:w.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:w.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:w.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:w.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:w.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:w.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:w.UNION,description:"Location adjacent to a union definition."},ENUM:{value:w.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:w.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:w.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:w.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),me=new ge({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 _(er),resolve:function(t){return be(t)?te.SCALAR:Z(t)?te.OBJECT:J(t)?te.INTERFACE:ce(t)?te.UNION:le(t)?te.ENUM:re(t)?te.INPUT_OBJECT:ie(t)?te.LIST:B(t)?te.NON_NULL:void ue(0,'Unexpected type: "'.concat(D(t),'".'))}},name:{type:q,resolve:function(t){return void 0!==t.name?t.name:void 0}},description:{type:q,resolve:function(t){return void 0!==t.description?t.description:void 0}},specifiedByUrl:{type:q,resolve:function(t){return void 0!==t.specifiedByUrl?t.specifiedByUrl:void 0}},fields:{type:new X(new _(Zt)),args:{includeDeprecated:{type:he,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(Z(t)||J(t)){var a=Ie(t.getFields());return i?a:a.filter(function(s){return null==s.deprecationReason})}}},interfaces:{type:new X(new _(me)),resolve:function(t){if(Z(t)||J(t))return t.getInterfaces()}},possibleTypes:{type:new X(new _(me)),resolve:function(t,r,i,a){var s=a.schema;if(je(t))return s.getPossibleTypes(t)}},enumValues:{type:new X(new _($t)),args:{includeDeprecated:{type:he,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(le(t)){var a=t.getValues();return i?a:a.filter(function(s){return null==s.deprecationReason})}}},inputFields:{type:new X(new _(Fn)),args:{includeDeprecated:{type:he,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(re(t)){var a=Ie(t.getFields());return i?a:a.filter(function(s){return null==s.deprecationReason})}}},ofType:{type:me,resolve:function(t){return void 0!==t.ofType?t.ofType:void 0}}}}}),Zt=new ge({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 _(q),resolve:function(t){return t.name}},description:{type:q,resolve:function(t){return t.description}},args:{type:new _(new X(new _(Fn))),args:{includeDeprecated:{type:he,defaultValue:!1}},resolve:function(t,r){return r.includeDeprecated?t.args:t.args.filter(function(a){return null==a.deprecationReason})}},type:{type:new _(me),resolve:function(t){return t.type}},isDeprecated:{type:new _(he),resolve:function(t){return null!=t.deprecationReason}},deprecationReason:{type:q,resolve:function(t){return t.deprecationReason}}}}}),Fn=new ge({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 _(q),resolve:function(t){return t.name}},description:{type:q,resolve:function(t){return t.description}},type:{type:new _(me),resolve:function(t){return t.type}},defaultValue:{type:q,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(t){var a=un(t.defaultValue,t.type);return a?W(a):null}},isDeprecated:{type:new _(he),resolve:function(t){return null!=t.deprecationReason}},deprecationReason:{type:q,resolve:function(t){return t.deprecationReason}}}}}),$t=new ge({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 _(q),resolve:function(t){return t.name}},description:{type:q,resolve:function(t){return t.description}},isDeprecated:{type:new _(he),resolve:function(t){return null!=t.deprecationReason}},deprecationReason:{type:q,resolve:function(t){return t.deprecationReason}}}}}),te=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),er=new We({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:te.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:te.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:te.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:te.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:te.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:te.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:te.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:te.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),ut=(new _(ot),new _(q),new _(q),Object.freeze([ot,Ht,Wt,me,Zt,Fn,$t,er]));function nr(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 s=a[i];an(s)&&(r[s.name.value]=!0)}var o=Object.keys(t).concat(Object.keys(r));return{NamedType:function(c,l,p,v,m){var h=c.name.value;if(!t[h]&&!r[h]){var T,g=null!==(T=m[2])&&void 0!==T?T:p,I=null!=g&&function(e){return!Array.isArray(e)&&(function(e){return e.kind===f.SCHEMA_DEFINITION||an(e)||e.kind===f.DIRECTIVE_DEFINITION}(e)||function(e){return e.kind===f.SCHEMA_EXTENSION||Zn(e)}(e))}(g);if(I&&function(e){return-1!==tr.indexOf(e)}(h))return;var A=Ve(h,I?tr.concat(o):o);e.reportError(new E('Unknown type "'.concat(h,'".')+Le(A),c))}}}}var tr=[].concat(st,ut).map(function(e){return e.name});function De(e,n){var t;return n.kind===f.LIST_TYPE?(t=De(e,n.type))&&new X(t):n.kind===f.NON_NULL_TYPE?(t=De(e,n.type))&&new _(t):n.kind===f.NAMED_TYPE?e.getType(n.name.value):void ue(0,"Unexpected type node: "+D(n))}const rr=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[Et];if("function"==typeof r){for(var s,i=r.call(e),a=[],o=0;!(s=i.next()).done;++o)if(a.push(n.call(t,s.value,o)),o>9999999)throw new TypeError("Near-infinite iteration.");return a}var u=e.length;if("number"==typeof u&&u>=0&&u%1==0){for(var c=[],l=0;l<u;++l)Object.prototype.hasOwnProperty.call(e,l)&&c.push(n.call(t,e[l],l));return c}return[]};function cn(e,n,t){return n===t||(B(t)?!!B(n)&&cn(e,n.ofType,t.ofType):B(n)?cn(e,n.ofType,t):ie(t)?!!ie(n)&&cn(e,n.ofType,t.ofType):!ie(n)&&je(t)&&(J(n)||Z(n))&&e.isSubType(t,n))}function ar(e,n,t){return n===t||(je(n)?je(t)?e.getPossibleTypes(n).some(function(r){return e.isSubType(t,r)}):e.isSubType(n,t):!!je(t)&&e.isSubType(t,n))}function sr(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 or(e){return Ee(e,xe)}var xe=function(){function e(t){var r,i;this.name=t.name,this.description=t.description,this.locations=t.locations,this.isRepeatable=null!==(r=t.isRepeatable)&&void 0!==r&&r,this.extensions=t.extensions&&se(t.extensions),this.astNode=t.astNode,t.name||F(0,"Directive must be named."),Array.isArray(t.locations)||F(0,"@".concat(t.name," locations must be an Array."));var a=null!==(i=t.args)&&void 0!==i?i:{};Me(a)&&!Array.isArray(a)||F(0,"@".concat(t.name," args must be an object with argument names as keys.")),this.args=Je(a).map(function(s){var u=s[1];return{name:s[0],description:u.description,type:u.type,defaultValue:u.defaultValue,deprecationReason:u.deprecationReason,extensions:u.extensions&&se(u.extensions),astNode:u.astNode}})}var n=e.prototype;return n.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Jt(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&&sr(e.prototype,n)}(e,[{key:oe,get:function(){return"GraphQLDirective"}}]),e}();pe(xe);var xa=new xe({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[w.FIELD,w.FRAGMENT_SPREAD,w.INLINE_FRAGMENT],args:{if:{type:new _(he),description:"Included when true."}}}),Fa=new xe({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[w.FIELD,w.FRAGMENT_SPREAD,w.INLINE_FRAGMENT],args:{if:{type:new _(he),description:"Skipped when true."}}}),ur=new xe({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[w.FIELD_DEFINITION,w.ARGUMENT_DEFINITION,w.INPUT_FIELD_DEFINITION,w.ENUM_VALUE],args:{reason:{type:q,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"}}}),cr=new xe({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[w.SCALAR],args:{url:{type:new _(q),description:"The URL that specifies the behaviour of this scalar."}}}),Fe=Object.freeze([xa,Fa,ur,cr]);function lr(e){for(var n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():Fe,i=0;i<r.length;i++){var a=r[i];n[a.name]=a.locations}for(var s=e.getDocument().definitions,o=0;o<s.length;o++){var u=s[o];u.kind===f.DIRECTIVE_DEFINITION&&(n[u.name.value]=u.locations.map(function(c){return c.value}))}return{Directive:function(l,p,v,m,h){var T=l.name.value,g=n[T];if(g){var I=function(e){var n=e[e.length-1];switch(!Array.isArray(n)||ue(0),n.kind){case f.OPERATION_DEFINITION:return function(e){switch(e){case"query":return w.QUERY;case"mutation":return w.MUTATION;case"subscription":return w.SUBSCRIPTION}ue(0,"Unexpected operation: "+D(e))}(n.operation);case f.FIELD:return w.FIELD;case f.FRAGMENT_SPREAD:return w.FRAGMENT_SPREAD;case f.INLINE_FRAGMENT:return w.INLINE_FRAGMENT;case f.FRAGMENT_DEFINITION:return w.FRAGMENT_DEFINITION;case f.VARIABLE_DEFINITION:return w.VARIABLE_DEFINITION;case f.SCHEMA_DEFINITION:case f.SCHEMA_EXTENSION:return w.SCHEMA;case f.SCALAR_TYPE_DEFINITION:case f.SCALAR_TYPE_EXTENSION:return w.SCALAR;case f.OBJECT_TYPE_DEFINITION:case f.OBJECT_TYPE_EXTENSION:return w.OBJECT;case f.FIELD_DEFINITION:return w.FIELD_DEFINITION;case f.INTERFACE_TYPE_DEFINITION:case f.INTERFACE_TYPE_EXTENSION:return w.INTERFACE;case f.UNION_TYPE_DEFINITION:case f.UNION_TYPE_EXTENSION:return w.UNION;case f.ENUM_TYPE_DEFINITION:case f.ENUM_TYPE_EXTENSION:return w.ENUM;case f.ENUM_VALUE_DEFINITION:return w.ENUM_VALUE;case f.INPUT_OBJECT_TYPE_DEFINITION:case f.INPUT_OBJECT_TYPE_EXTENSION:return w.INPUT_OBJECT;case f.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===f.INPUT_OBJECT_TYPE_DEFINITION?w.INPUT_FIELD_DEFINITION:w.ARGUMENT_DEFINITION}}(h);I&&-1===g.indexOf(I)&&e.reportError(new E('Directive "@'.concat(T,'" may not be used on ').concat(I,"."),l))}else e.reportError(new E('Unknown directive "@'.concat(T,'".'),l))}}}function fr(e){for(var n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():Fe,i=0;i<r.length;i++){var a=r[i];n[a.name]=!a.isRepeatable}for(var s=e.getDocument().definitions,o=0;o<s.length;o++){var u=s[o];u.kind===f.DIRECTIVE_DEFINITION&&(n[u.name.value]=!u.repeatable)}var c=Object.create(null),l=Object.create(null);return{enter:function(v){if(null!=v.directives){var m;if(v.kind===f.SCHEMA_DEFINITION||v.kind===f.SCHEMA_EXTENSION)m=c;else if(an(v)||Zn(v)){var h=v.name.value;void 0===(m=l[h])&&(l[h]=m=Object.create(null))}else m=Object.create(null);for(var T=0,g=v.directives;T<g.length;T++){var I=g[T],A=I.name.value;n[A]&&(m[A]?e.reportError(new E('The directive "@'.concat(A,'" can only be used once at this location.'),[m[A],I])):m[A]=I)}}}}}function pr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function vr(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pr(Object(t),!0).forEach(function(r){Ma(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pr(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Ma(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function dr(e){for(var n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():Fe,i=0;i<r.length;i++){var a=r[i];n[a.name]=a.args.map(function(p){return p.name})}for(var s=e.getDocument().definitions,o=0;o<s.length;o++){var u=s[o];if(u.kind===f.DIRECTIVE_DEFINITION){var c,l=null!==(c=u.arguments)&&void 0!==c?c:[];n[u.name.value]=l.map(function(p){return p.name.value})}}return{Directive:function(v){var m=v.name.value,h=n[m];if(v.arguments&&h)for(var T=0,g=v.arguments;T<g.length;T++){var I=g[T],A=I.name.value;if(-1===h.indexOf(A)){var x=Ve(A,h);e.reportError(new E('Unknown argument "'.concat(A,'" on directive "@').concat(m,'".')+Le(x),I))}}return!1}}}function hr(e){var n=Object.create(null);return{Field:function(){n=Object.create(null)},Directive:function(){n=Object.create(null)},Argument:function(r){var i=r.name.value;return n[i]?e.reportError(new E('There can be only one argument named "'.concat(i,'".'),[n[i],r.name])):n[i]=r.name,!1}}}function Ge(e,n){var t=e.getInputType();if(t){var r=Be(t);if(!Ue(r)){var i=D(t);return void e.reportError(new E('Expected value of type "'.concat(i,'", found ').concat(W(n),"."),n))}try{if(void 0===r.parseLiteral(n,void 0)){var s=D(t);e.reportError(new E('Expected value of type "'.concat(s,'", found ').concat(W(n),"."),n))}}catch(u){var o=D(t);e.reportError(u instanceof E?u:new E('Expected value of type "'.concat(o,'", found ').concat(W(n),"; ")+u.message,n,void 0,void 0,void 0,u))}}}function mr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function yr(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?mr(Object(t),!0).forEach(function(r){Ua(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):mr(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Ua(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Tr(e){for(var n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():Fe,i=0;i<r.length;i++){var a=r[i];n[a.name]=Ne(a.args.filter(qt),function(p){return p.name})}for(var s=e.getDocument().definitions,o=0;o<s.length;o++){var u=s[o];if(u.kind===f.DIRECTIVE_DEFINITION){var c,l=null!==(c=u.arguments)&&void 0!==c?c:[];n[u.name.value]=Ne(l.filter(Ba),function(p){return p.name.value})}}return{Directive:{leave:function(v){var m=v.name.value,h=n[m];if(h)for(var T,I=Ne(null!==(T=v.arguments)&&void 0!==T?T:[],function(z){return z.name.value}),A=0,x=Object.keys(h);A<x.length;A++){var M=x[A];if(!I[M]){var j=h[M].type,Y=tt(j)?D(j):W(j);e.reportError(new E('Directive "@'.concat(m,'" argument "').concat(M,'" of type "').concat(Y,'" is required, but it was not provided.'),v))}}}}}}function Ba(e){return e.type.kind===f.NON_NULL_TYPE&&null==e.defaultValue}function Ya(e,n,t,r,i){return B(r)&&!B(n)?(null!=t&&t.kind!==f.NULL||void 0!==i)&&cn(e,n,r.ofType):cn(e,n,r)}const ct=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 Er(e){return Array.isArray(e)?e.map(function(n){var r=n[1];return'subfields "'.concat(n[0],'" conflict because ')+Er(r)}).join(" and "):e}function kn(e,n,t,r,i,a,s){var o=e.getFragment(s);if(o){var u=pt(e,t,o),c=u[0],l=u[1];if(a!==c){lt(e,n,t,r,i,a,c);for(var p=0;p<l.length;p++)kn(e,n,t,r,i,a,l[p])}}}function Rn(e,n,t,r,i,a,s){if(a!==s&&!r.has(a,s,i)){r.add(a,s,i);var o=e.getFragment(a),u=e.getFragment(s);if(o&&u){var c=pt(e,t,o),l=c[0],p=c[1],v=pt(e,t,u),h=v[1];lt(e,n,t,r,i,l,v[0]);for(var T=0;T<h.length;T++)Rn(e,n,t,r,i,a,h[T]);for(var g=0;g<p.length;g++)Rn(e,n,t,r,i,p[g],s)}}}function lt(e,n,t,r,i,a,s){for(var o=0,u=Object.keys(a);o<u.length;o++){var c=u[o],l=s[c];if(l)for(var p=a[c],v=0;v<p.length;v++)for(var m=0;m<l.length;m++){var h=gr(e,t,r,i,c,p[v],l[m]);h&&n.push(h)}}}function gr(e,n,t,r,i,a,s){var o=a[0],u=a[1],c=a[2],l=s[0],p=s[1],v=s[2],m=r||o!==l&&Z(o)&&Z(l);if(!m){var h,T,g=u.name.value,I=p.name.value;if(g!==I)return[[i,'"'.concat(g,'" and "').concat(I,'" are different fields')],[u],[p]];if(!function(e,n){return e.length===n.length&&e.every(function(t){var r=ct(n,function(i){return i.name.value===t.name.value});return!!r&&function(e,n){return W(e)===W(n)}(t.value,r.value)})}(null!==(h=u.arguments)&&void 0!==h?h:[],null!==(T=p.arguments)&&void 0!==T?T:[]))return[[i,"they have differing arguments"],[u],[p]]}var M=null==c?void 0:c.type,j=null==v?void 0:v.type;if(M&&j&&ft(M,j))return[[i,'they return conflicting types "'.concat(D(M),'" and "').concat(D(j),'"')],[u],[p]];var Y=u.selectionSet,z=p.selectionSet;return Y&&z?function(e,n,t,r){if(e.length>0)return[[n,e.map(function(i){return i[0]})],e.reduce(function(i,a){return i.concat(a[1])},[t]),e.reduce(function(i,a){return i.concat(a[2])},[r])]}(function(e,n,t,r,i,a,s,o){var u=[],c=Cn(e,n,i,a),l=c[0],p=c[1],v=Cn(e,n,s,o),m=v[0],h=v[1];if(lt(e,u,n,t,r,l,m),0!==h.length)for(var T=0;T<h.length;T++)kn(e,u,n,t,r,l,h[T]);if(0!==p.length)for(var g=0;g<p.length;g++)kn(e,u,n,t,r,m,p[g]);for(var I=0;I<p.length;I++)for(var A=0;A<h.length;A++)Rn(e,u,n,t,r,p[I],h[A]);return u}(e,n,t,m,Be(M),Y,Be(j),z),i,u,p):void 0}function ft(e,n){return ie(e)?!ie(n)||ft(e.ofType,n.ofType):!!ie(n)||(B(e)?!B(n)||ft(e.ofType,n.ofType):!!B(n)||!(!Ue(e)&&!Ue(n))&&e!==n)}function Cn(e,n,t,r){var i=n.get(r);if(!i){var a=Object.create(null),s=Object.create(null);Ir(e,t,r,a,s),i=[a,Object.keys(s)],n.set(r,i)}return i}function pt(e,n,t){var r=n.get(t.selectionSet);if(r)return r;var i=De(e.getSchema(),t.typeCondition);return Cn(e,n,i,t.selectionSet)}function Ir(e,n,t,r,i){for(var a=0,s=t.selections;a<s.length;a++){var o=s[a];switch(o.kind){case f.FIELD:var u=o.name.value,c=void 0;(Z(n)||J(n))&&(c=n.getFields()[u]);var l=o.alias?o.alias.value:u;r[l]||(r[l]=[]),r[l].push([n,o,c]);break;case f.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case f.INLINE_FRAGMENT:var p=o.typeCondition,v=p?De(e.getSchema(),p):n;Ir(e,v,o.selectionSet,r,i)}}}var ke,Za=function(){function e(){this._data=Object.create(null)}var n=e.prototype;return n.has=function(r,i,a){var s=this._data[r],o=s&&s[i];return void 0!==o&&(!1!==a||!1===o)},n.add=function(r,i,a){this._pairSetAdd(r,i,a),this._pairSetAdd(i,r,a)},n._pairSetAdd=function(r,i,a){var s=this._data[r];s||(s=Object.create(null),this._data[r]=s),s[i]=a},e}();function Nr(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(i){var a=i.name.value;t[a]?e.reportError(new E('There can be only one input field named "'.concat(a,'".'),[t[a],i.name])):t[a]=i.name}}}function is(e,n){return!!(Z(e)||J(e)||re(e))&&null!=e.getFields()[n]}function Ze(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var os=(Ze(ke={},f.SCALAR_TYPE_DEFINITION,f.SCALAR_TYPE_EXTENSION),Ze(ke,f.OBJECT_TYPE_DEFINITION,f.OBJECT_TYPE_EXTENSION),Ze(ke,f.INTERFACE_TYPE_DEFINITION,f.INTERFACE_TYPE_EXTENSION),Ze(ke,f.UNION_TYPE_DEFINITION,f.UNION_TYPE_EXTENSION),Ze(ke,f.ENUM_TYPE_DEFINITION,f.ENUM_TYPE_EXTENSION),Ze(ke,f.INPUT_OBJECT_TYPE_DEFINITION,f.INPUT_OBJECT_TYPE_EXTENSION),ke);Object.freeze([function(e){return{Document:function(t){for(var r=0,i=t.definitions;r<i.length;r++){var a=i[r];Rt(a)||e.reportError(new E("The ".concat(a.kind===f.SCHEMA_DEFINITION||a.kind===f.SCHEMA_EXTENSION?"schema":'"'+a.name.value+'"'," definition is not executable."),a))}return!1}}},function(e){var n=Object.create(null);return{OperationDefinition:function(r){var i=r.name;return i&&(n[i.value]?e.reportError(new E('There can be only one operation named "'.concat(i.value,'".'),[n[i.value],i])):n[i.value]=i),!1},FragmentDefinition:function(){return!1}}},function(e){var n=0;return{Document:function(r){n=r.definitions.filter(function(i){return i.kind===f.OPERATION_DEFINITION}).length},OperationDefinition:function(r){!r.name&&n>1&&e.reportError(new E("This anonymous operation must be the only defined operation.",r))}}},function(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new E(t.name?'Subscription "'.concat(t.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",t.selectionSet.selections.slice(1)))}}},nr,function(e){return{InlineFragment:function(t){var r=t.typeCondition;if(r){var i=De(e.getSchema(),r);if(i&&!Xe(i)){var a=W(r);e.reportError(new E('Fragment cannot condition on non composite type "'.concat(a,'".'),r))}}},FragmentDefinition:function(t){var r=De(e.getSchema(),t.typeCondition);if(r&&!Xe(r)){var i=W(t.typeCondition);e.reportError(new E('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(i,'".'),t.typeCondition))}}}},function(e){return{VariableDefinition:function(t){var r=De(e.getSchema(),t.type);if(r&&!rt(r)){var i=t.variable.name.value,a=W(t.type);e.reportError(new E('Variable "$'.concat(i,'" cannot be non-input type "').concat(a,'".'),t.type))}}}},function(e){return{Field:function(t){var r=e.getType(),i=t.selectionSet;if(r)if(Ue(Be(r))){if(i){var a=t.name.value,s=D(r);e.reportError(new E('Field "'.concat(a,'" must not have a selection since type "').concat(s,'" has no subfields.'),i))}}else if(!i){var o=t.name.value,u=D(r);e.reportError(new E('Field "'.concat(o,'" of type "').concat(u,'" must have a selection of subfields. Did you mean "').concat(o,' { ... }"?'),t))}}}},function(e){return{Field:function(t){var r=e.getParentType();if(r&&!e.getFieldDef()){var a=e.getSchema(),s=t.name.value,o=Le("to use an inline fragment on",function(e,n,t){if(!je(n))return[];for(var r=new Set,i=Object.create(null),a=0,s=e.getPossibleTypes(n);a<s.length;a++){var o=s[a];if(o.getFields()[t]){r.add(o),i[o.name]=1;for(var u=0,c=o.getInterfaces();u<c.length;u++){var l,p=c[u];!p.getFields()[t]||(r.add(p),i[p.name]=(null!==(l=i[p.name])&&void 0!==l?l:0)+1)}}}return rr(r).sort(function(v,m){var h=i[m.name]-i[v.name];return 0!==h?h:J(v)&&e.isSubType(v,m)?-1:J(m)&&e.isSubType(m,v)?1:Pt(v.name,m.name)}).map(function(v){return v.name})}(a,r,s));""===o&&(o=Le(function(e,n){return Z(e)||J(e)?Ve(n,Object.keys(e.getFields())):[]}(r,s))),e.reportError(new E('Cannot query field "'.concat(s,'" on type "').concat(r.name,'".')+o,t))}}}},function(e){var n=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(r){var i=r.name.value;return n[i]?e.reportError(new E('There can be only one fragment named "'.concat(i,'".'),[n[i],r.name])):n[i]=r.name,!1}}},function(e){return{FragmentSpread:function(t){var r=t.name.value;e.getFragment(r)||e.reportError(new E('Unknown fragment "'.concat(r,'".'),t.name))}}},function(e){var n=[],t=[];return{OperationDefinition:function(i){return n.push(i),!1},FragmentDefinition:function(i){return t.push(i),!1},Document:{leave:function(){for(var i=Object.create(null),a=0;a<n.length;a++)for(var o=0,u=e.getRecursivelyReferencedFragments(n[a]);o<u.length;o++)i[u[o].name.value]=!0;for(var l=0;l<t.length;l++){var p=t[l],v=p.name.value;!0!==i[v]&&e.reportError(new E('Fragment "'.concat(v,'" is never used.'),p))}}}}},function(e){return{InlineFragment:function(t){var r=e.getType(),i=e.getParentType();if(Xe(r)&&Xe(i)&&!ar(e.getSchema(),r,i)){var a=D(i),s=D(r);e.reportError(new E('Fragment cannot be spread here as objects of type "'.concat(a,'" can never be of type "').concat(s,'".'),t))}},FragmentSpread:function(t){var r=t.name.value,i=function(e,n){var t=e.getFragment(n);if(t){var r=De(e.getSchema(),t.typeCondition);if(Xe(r))return r}}(e,r),a=e.getParentType();if(i&&a&&!ar(e.getSchema(),i,a)){var s=D(a),o=D(i);e.reportError(new E('Fragment "'.concat(r,'" cannot be spread here as objects of type "').concat(s,'" can never be of type "').concat(o,'".'),t))}}}},function(e){var n=Object.create(null),t=[],r=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(s){return i(s),!1}};function i(a){if(!n[a.name.value]){var s=a.name.value;n[s]=!0;var o=e.getFragmentSpreads(a.selectionSet);if(0!==o.length){r[s]=t.length;for(var u=0;u<o.length;u++){var c=o[u],l=c.name.value,p=r[l];if(t.push(c),void 0===p){var v=e.getFragment(l);v&&i(v)}else{var m=t.slice(p),h=m.slice(0,-1).map(function(T){return'"'+T.name.value+'"'}).join(", ");e.reportError(new E('Cannot spread fragment "'.concat(l,'" within itself')+(""!==h?" via ".concat(h,"."):"."),m))}t.pop()}r[s]=void 0}}}},function(e){var n=Object.create(null);return{OperationDefinition:function(){n=Object.create(null)},VariableDefinition:function(r){var i=r.variable.name.value;n[i]?e.reportError(new E('There can be only one variable named "$'.concat(i,'".'),[n[i],r.variable.name])):n[i]=r.variable.name}}},function(e){var n=Object.create(null);return{OperationDefinition:{enter:function(){n=Object.create(null)},leave:function(r){for(var i=e.getRecursiveVariableUsages(r),a=0;a<i.length;a++){var o=i[a].node,u=o.name.value;!0!==n[u]&&e.reportError(new E(r.name?'Variable "$'.concat(u,'" is not defined by operation "').concat(r.name.value,'".'):'Variable "$'.concat(u,'" is not defined.'),[o,r]))}}},VariableDefinition:function(r){n[r.variable.name.value]=!0}}},function(e){var n=[];return{OperationDefinition:{enter:function(){n=[]},leave:function(r){for(var i=Object.create(null),a=e.getRecursiveVariableUsages(r),s=0;s<a.length;s++)i[a[s].node.name.value]=!0;for(var c=0,l=n;c<l.length;c++){var p=l[c],v=p.variable.name.value;!0!==i[v]&&e.reportError(new E(r.name?'Variable "$'.concat(v,'" is never used in operation "').concat(r.name.value,'".'):'Variable "$'.concat(v,'" is never used.'),p))}}},VariableDefinition:function(r){n.push(r)}}},lr,fr,function(e){return vr(vr({},dr(e)),{},{Argument:function(t){var r=e.getArgument(),i=e.getFieldDef(),a=e.getParentType();if(!r&&i&&a){var s=t.name.value,u=Ve(s,i.args.map(function(c){return c.name}));e.reportError(new E('Unknown argument "'.concat(s,'" on field "').concat(a.name,".").concat(i.name,'".')+Le(u),t))}}})},hr,function(e){return{ListValue:function(t){if(!ie(function(e){if(e)return B(e)?e.ofType:e}(e.getParentInputType())))return Ge(e,t),!1},ObjectValue:function(t){var r=Be(e.getInputType());if(!re(r))return Ge(e,t),!1;for(var i=Ne(t.fields,function(l){return l.name.value}),a=0,s=Ie(r.getFields());a<s.length;a++){var o=s[a];if(!i[o.name]&&zi(o)){var c=D(o.type);e.reportError(new E('Field "'.concat(r.name,".").concat(o.name,'" of required type "').concat(c,'" was not provided.'),t))}}},ObjectField:function(t){var r=Be(e.getParentInputType());if(!e.getInputType()&&re(r)){var a=Ve(t.name.value,Object.keys(r.getFields()));e.reportError(new E('Field "'.concat(t.name.value,'" is not defined by type "').concat(r.name,'".')+Le(a),t))}},NullValue:function(t){var r=e.getInputType();B(r)&&e.reportError(new E('Expected value of type "'.concat(D(r),'", found ').concat(W(t),"."),t))},EnumValue:function(t){return Ge(e,t)},IntValue:function(t){return Ge(e,t)},FloatValue:function(t){return Ge(e,t)},StringValue:function(t){return Ge(e,t)},BooleanValue:function(t){return Ge(e,t)}}},function(e){return yr(yr({},Tr(e)),{},{Field:{leave:function(t){var r,i=e.getFieldDef();if(!i)return!1;for(var s=Ne(null!==(r=t.arguments)&&void 0!==r?r:[],function(v){return v.name.value}),o=0,u=i.args;o<u.length;o++){var c=u[o];if(!s[c.name]&&qt(c)){var p=D(c.type);e.reportError(new E('Field "'.concat(i.name,'" argument "').concat(c.name,'" of type "').concat(p,'" is required, but it was not provided.'),t))}}}}})},function(e){var n=Object.create(null);return{OperationDefinition:{enter:function(){n=Object.create(null)},leave:function(r){for(var i=e.getRecursiveVariableUsages(r),a=0;a<i.length;a++){var s=i[a],o=s.node,u=s.type,c=s.defaultValue,l=o.name.value,p=n[l];if(p&&u){var v=e.getSchema(),m=De(v,p.type);if(m&&!Ya(v,m,p.defaultValue,u,c)){var h=D(m),T=D(u);e.reportError(new E('Variable "$'.concat(l,'" of type "').concat(h,'" used in position expecting type "').concat(T,'".'),[p,o]))}}}}},VariableDefinition:function(r){n[r.variable.name.value]=r}}},function(e){var n=new Za,t=new Map;return{SelectionSet:function(i){for(var a=function(e,n,t,r,i){var a=[],s=Cn(e,n,r,i),o=s[0],u=s[1];if(function(e,n,t,r,i){for(var a=0,s=Je(i);a<s.length;a++){var o=s[a],u=o[0],c=o[1];if(c.length>1)for(var l=0;l<c.length;l++)for(var p=l+1;p<c.length;p++){var v=gr(e,t,r,!1,u,c[l],c[p]);v&&n.push(v)}}}(e,a,n,t,o),0!==u.length)for(var c=0;c<u.length;c++){kn(e,a,n,t,!1,o,u[c]);for(var l=c+1;l<u.length;l++)Rn(e,a,n,t,!1,u[c],u[l])}return a}(e,t,n,e.getParentType(),i),s=0;s<a.length;s++){var o=a[s],u=o[0],c=u[0],p=o[1],v=o[2],m=Er(u[1]);e.reportError(new E('Fields "'.concat(c,'" conflict because ').concat(m,". Use different aliases on the fields to fetch both if this was intentional."),p.concat(v)))}}}},Nr]);var ls=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(),s=0;return{SchemaDefinition:function(u){a?e.reportError(new E("Cannot define a new schema within a schema extension.",u)):(s>0&&e.reportError(new E("Must provide only one schema definition.",u)),++s)}}},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(a){for(var s,o=null!==(s=a.operationTypes)&&void 0!==s?s:[],u=0;u<o.length;u++){var c=o[u],l=c.operation,p=t[l];r[l]?e.reportError(new E("Type for ".concat(l," already defined in the schema. It cannot be redefined."),c)):p?e.reportError(new E("There can be only one ".concat(l," type in schema."),[p,c])):t[l]=c}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(i){var a=i.name.value;if(null==t||!t.getType(a))return n[a]?e.reportError(new E('There can be only one type named "'.concat(a,'".'),[n[a],i.name])):n[a]=i.name,!1;e.reportError(new E('Type "'.concat(a,'" already exists in the schema. It cannot also be defined in this type definition.'),i.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(a){var s,o=a.name.value;r[o]||(r[o]=Object.create(null));for(var u=null!==(s=a.values)&&void 0!==s?s:[],c=r[o],l=0;l<u.length;l++){var p=u[l],v=p.name.value,m=t[o];le(m)&&m.getValue(v)?e.reportError(new E('Enum value "'.concat(o,".").concat(v,'" already exists in the schema. It cannot also be defined in this type extension.'),p.name)):c[v]?e.reportError(new E('Enum value "'.concat(o,".").concat(v,'" can only be defined once.'),[c[v],p.name])):c[v]=p.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(a){var s,o=a.name.value;r[o]||(r[o]=Object.create(null));for(var u=null!==(s=a.fields)&&void 0!==s?s:[],c=r[o],l=0;l<u.length;l++){var p=u[l],v=p.name.value;is(t[o],v)?e.reportError(new E('Field "'.concat(o,".").concat(v,'" already exists in the schema. It cannot also be defined in this type extension.'),p.name)):c[v]?e.reportError(new E('Field "'.concat(o,".").concat(v,'" can only be defined once.'),[c[v],p.name])):c[v]=p.name}return!1}},function(e){var n=Object.create(null),t=e.getSchema();return{DirectiveDefinition:function(i){var a=i.name.value;if(null==t||!t.getDirective(a))return n[a]?e.reportError(new E('There can be only one directive named "@'.concat(a,'".'),[n[a],i.name])):n[a]=i.name,!1;e.reportError(new E('Directive "@'.concat(a,'" already exists in the schema. It cannot be redefined.'),i.name))}}},nr,lr,fr,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];an(a)&&(t[a.name.value]=a)}return{ScalarTypeExtension:s,ObjectTypeExtension:s,InterfaceTypeExtension:s,UnionTypeExtension:s,EnumTypeExtension:s,InputObjectTypeExtension:s};function s(o){var p,u=o.name.value,c=t[u],l=null==n?void 0:n.getType(u);if(c?p=os[c.kind]:l&&(p=function(e){return be(e)?f.SCALAR_TYPE_EXTENSION:Z(e)?f.OBJECT_TYPE_EXTENSION:J(e)?f.INTERFACE_TYPE_EXTENSION:ce(e)?f.UNION_TYPE_EXTENSION:le(e)?f.ENUM_TYPE_EXTENSION:re(e)?f.INPUT_OBJECT_TYPE_EXTENSION:void ue(0,"Unexpected type: "+D(e))}(l)),p){if(p!==o.kind){var v=function(e){switch(e){case f.SCALAR_TYPE_EXTENSION:return"scalar";case f.OBJECT_TYPE_EXTENSION:return"object";case f.INTERFACE_TYPE_EXTENSION:return"interface";case f.UNION_TYPE_EXTENSION:return"union";case f.ENUM_TYPE_EXTENSION:return"enum";case f.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}ue(0,"Unexpected kind: "+D(e))}(o.kind);e.reportError(new E("Cannot extend non-".concat(v,' type "').concat(u,'".'),c?[c,o]:o))}}else{var m=Object.keys(t);n&&(m=m.concat(Object.keys(n.getTypeMap())));var h=Ve(u,m);e.reportError(new E('Cannot extend type "'.concat(u,'" because it is not defined.')+Le(h),o.name))}}},dr,hr,Nr,Tr]),vs=function(e){function n(r,i,a){var s;return(s=e.call(this,r,a)||this)._schema=i,s}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(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}var n=e.prototype;return n.reportError=function(r){this._onError(r)},n.getDocument=function(){return this._ast},n.getFragment=function(r){var i=this._fragments;return i||(this._fragments=i=this.getDocument().definitions.reduce(function(a,s){return s.kind===f.FRAGMENT_DEFINITION&&(a[s.name.value]=s),a},Object.create(null))),i[r]},n.getFragmentSpreads=function(r){var i=this._fragmentSpreads.get(r);if(!i){i=[];for(var a=[r];0!==a.length;)for(var o=0,u=a.pop().selections;o<u.length;o++){var c=u[o];c.kind===f.FRAGMENT_SPREAD?i.push(c):c.selectionSet&&a.push(c.selectionSet)}this._fragmentSpreads.set(r,i)}return i},n.getRecursivelyReferencedFragments=function(r){var i=this._recursivelyReferencedFragments.get(r);if(!i){i=[];for(var a=Object.create(null),s=[r.selectionSet];0!==s.length;)for(var o=s.pop(),u=0,c=this.getFragmentSpreads(o);u<c.length;u++){var p=c[u].name.value;if(!0!==a[p]){a[p]=!0;var v=this.getFragment(p);v&&(i.push(v),s.push(v.selectionSet))}}this._recursivelyReferencedFragments.set(r,i)}return i},e}());function br(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 Sr=function(){function e(t){var r;this.__validationErrors=!0===t.assumeValid?[]:void 0,Me(t)||F(0,"Must provide configuration object."),!t.types||Array.isArray(t.types)||F(0,'"types" must be Array if provided but got: '.concat(D(t.types),".")),!t.directives||Array.isArray(t.directives)||F(0,'"directives" must be Array if provided but got: '+"".concat(D(t.directives),".")),this.description=t.description,this.extensions=t.extensions&&se(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=t.extensionASTNodes,this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=null!==(r=t.directives)&&void 0!==r?r:Fe;var i=new Set(t.types);if(null!=t.types)for(var a=0,s=t.types;a<s.length;a++){var o=s[a];i.delete(o),ye(o,i)}null!=this._queryType&&ye(this._queryType,i),null!=this._mutationType&&ye(this._mutationType,i),null!=this._subscriptionType&&ye(this._subscriptionType,i);for(var u=0,c=this._directives;u<c.length;u++){var l=c[u];if(or(l))for(var p=0,v=l.args;p<v.length;p++)ye(v[p].type,i)}ye(ot,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var h=0,T=rr(i);h<T.length;h++){var g=T[h];if(null!=g){var I=g.name;if(I||F(0,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[I])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(I,'".'));if(this._typeMap[I]=g,J(g))for(var A=0,x=g.getInterfaces();A<x.length;A++){var M=x[A];if(J(M)){var j=this._implementationsMap[M.name];void 0===j&&(j=this._implementationsMap[M.name]={objects:[],interfaces:[]}),j.interfaces.push(g)}}else if(Z(g))for(var Y=0,z=g.getInterfaces();Y<z.length;Y++){var ne=z[Y];if(J(ne)){var Re=this._implementationsMap[ne.name];void 0===Re&&(Re=this._implementationsMap[ne.name]={objects:[],interfaces:[]}),Re.objects.push(g)}}}}}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(r){return this.getTypeMap()[r]},n.getPossibleTypes=function(r){return ce(r)?r.getTypes():this.getImplementations(r).objects},n.getImplementations=function(r){var i=this._implementationsMap[r.name];return null!=i?i:{objects:[],interfaces:[]}},n.isPossibleType=function(r,i){return this.isSubType(r,i)},n.isSubType=function(r,i){var a=this._subTypeMap[r.name];if(void 0===a){if(a=Object.create(null),ce(r))for(var s=0,o=r.getTypes();s<o.length;s++)a[o[s].name]=!0;else{for(var c=this.getImplementations(r),l=0,p=c.objects;l<p.length;l++)a[p[l].name]=!0;for(var m=0,h=c.interfaces;m<h.length;m++)a[h[m].name]=!0}this._subTypeMap[r.name]=a}return void 0!==a[i.name]},n.getDirectives=function(){return this._directives},n.getDirective=function(r){return ct(this.getDirectives(),function(i){return i.name===r})},n.toConfig=function(){var r;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Ie(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(r=this.extensionASTNodes)&&void 0!==r?r:[],assumeValid:void 0!==this.__validationErrors}},function(e,n,t){n&&br(e.prototype,n)}(e,[{key:oe,get:function(){return"GraphQLSchema"}}]),e}();function ye(e,n){var t=Be(e);if(!n.has(t))if(n.add(t),ce(t))for(var r=0,i=t.getTypes();r<i.length;r++)ye(i[r],n);else if(Z(t)||J(t)){for(var s=0,o=t.getInterfaces();s<o.length;s++)ye(o[s],n);for(var c=0,l=Ie(t.getFields());c<l.length;c++){var p=l[c];ye(p.type,n);for(var v=0,m=p.args;v<m.length;v++)ye(m[v].type,n)}}else if(re(t))for(var T=0,g=Ie(t.getFields());T<g.length;T++)ye(g[T].type,n);return n}function Ye(e,n,t){if(e){if(e.kind===f.VARIABLE){var r=e.name.value;if(null==t||void 0===t[r])return;var i=t[r];return null===i&&B(n)?void 0:i}if(B(n))return e.kind===f.NULL?void 0:Ye(e,n.ofType,t);if(e.kind===f.NULL)return null;if(ie(n)){var a=n.ofType;if(e.kind===f.LIST){for(var s=[],o=0,u=e.values;o<u.length;o++){var c=u[o];if(Dr(c,t)){if(B(a))return;s.push(null)}else{var l=Ye(c,a,t);if(void 0===l)return;s.push(l)}}return s}var p=Ye(e,a,t);return void 0===p?void 0:[p]}if(re(n)){if(e.kind!==f.OBJECT)return;for(var v=Object.create(null),m=Ne(e.fields,function(M){return M.name.value}),h=0,T=Ie(n.getFields());h<T.length;h++){var g=T[h],I=m[g.name];if(I&&!Dr(I.value,t)){var A=Ye(I.value,g.type,t);if(void 0===A)return;v[g.name]=A}else if(void 0!==g.defaultValue)v[g.name]=g.defaultValue;else if(B(g.type))return}return v}if(Ue(n)){var x;try{x=n.parseLiteral(e,t)}catch(M){return}return void 0===x?void 0:x}ue(0,"Unexpected input type: "+D(n))}}function Dr(e,n){return e.kind===f.VARIABLE&&(null==n||void 0===n[e.name.value])}function wr(e,n,t){var r=n.directives&&ct(n.directives,function(i){return i.name.value===e.name});if(r)return function(e,n,t){for(var r,i={},s=Ne(null!==(r=n.arguments)&&void 0!==r?r:[],function(I){return I.name.value}),o=0,u=e.args;o<u.length;o++){var c=u[o],l=c.name,p=c.type,v=s[l];if(v){var m=v.value,h=m.kind===f.NULL;if(m.kind===f.VARIABLE){var T=m.name.value;if(null==t||!Ar(t,T)){if(void 0!==c.defaultValue)i[l]=c.defaultValue;else if(B(p))throw new E('Argument "'.concat(l,'" of required type "').concat(D(p),'" ')+'was provided the variable "$'.concat(T,'" which was not provided a runtime value.'),m);continue}h=null==t[T]}if(h&&B(p))throw new E('Argument "'.concat(l,'" of non-null type "').concat(D(p),'" ')+"must not be null.",m);var g=Ye(m,p,t);if(void 0===g)throw new E('Argument "'.concat(l,'" has invalid value ').concat(W(m),"."),m);i[l]=g}else if(void 0!==c.defaultValue)i[l]=c.defaultValue;else if(B(p))throw new E('Argument "'.concat(l,'" of required type "').concat(D(p),'" ')+"was not provided.",n)}return i}(e,r,t)}function Ar(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function _r(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_r(Object(t),!0).forEach(function(r){Es(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_r(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Es(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var xr=Ne(st.concat(ut),function(e){return e.name});function Mn(e){var n=wr(ur,e);return null==n?void 0:n.reason}function Fr(e){var n=wr(cr,e);return null==n?void 0:n.url}function $e(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===d.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 Lt("\n"+t)}}function Is(e,n){null!=e&&e.kind===f.DOCUMENT||F(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]:ls,r=[],i=new vs(e,n,function(s){r.push(s)}),a=t.map(function(s){return s(i)});return kt(e,wi(a)),r}(e);if(0!==n.length)throw new Error(n.map(function(t){return t.message}).join("\n\n"))}(e);var r=function(e,n,t){for(var r,i,a,s,l,o=[],u=Object.create(null),c=[],p=[],v=0,m=n.definitions;v<m.length;v++){var h=m[v];if(h.kind===f.SCHEMA_DEFINITION)l=h;else if(h.kind===f.SCHEMA_EXTENSION)p.push(h);else if(an(h))o.push(h);else if(Zn(h)){var T=h.name.value,g=u[T];u[T]=g?g.concat([h]):[h]}else h.kind===f.DIRECTIVE_DEFINITION&&c.push(h)}if(0===Object.keys(u).length&&0===o.length&&0===c.length&&0===p.length&&null==l)return e;for(var I=Object.create(null),A=0,x=e.types;A<x.length;A++){var M=x[A];I[M.name]=function(e){return ut.some(function(n){return e.name===n.name})}(y=M)||function(e){return st.some(function(n){return e.name===n.name})}(y)?y:be(y)?function(y){for(var S,N=y.toConfig(),b=null!==(S=u[N.name])&&void 0!==S?S:[],k=N.specifiedByUrl,P=0;P<b.length;P++){var V;k=null!==(V=Fr(b[P]))&&void 0!==V?V:k}return new Se(C(C({},N),{},{specifiedByUrl:k,extensionASTNodes:N.extensionASTNodes.concat(b)}))}(y):Z(y)?function(y){var S,N=y.toConfig(),b=null!==(S=u[N.name])&&void 0!==S?S:[];return new ge(C(C({},N),{},{interfaces:function(){return[].concat(y.getInterfaces().map(Qe),Un(b))},fields:function(){return C(C({},Oe(N.fields,kr)),Vn(b))},extensionASTNodes:N.extensionASTNodes.concat(b)}))}(y):J(y)?function(y){var S,N=y.toConfig(),b=null!==(S=u[N.name])&&void 0!==S?S:[];return new wn(C(C({},N),{},{interfaces:function(){return[].concat(y.getInterfaces().map(Qe),Un(b))},fields:function(){return C(C({},Oe(N.fields,kr)),Vn(b))},extensionASTNodes:N.extensionASTNodes.concat(b)}))}(y):ce(y)?function(y){var S,N=y.toConfig(),b=null!==(S=u[N.name])&&void 0!==S?S:[];return new An(C(C({},N),{},{types:function(){return[].concat(y.getTypes().map(Qe),Ur(b))},extensionASTNodes:N.extensionASTNodes.concat(b)}))}(y):le(y)?function(y){var S,N=y.toConfig(),b=null!==(S=u[y.name])&&void 0!==S?S:[];return new We(C(C({},N),{},{values:C(C({},N.values),Vr(b)),extensionASTNodes:N.extensionASTNodes.concat(b)}))}(y):re(y)?function(y){var S,N=y.toConfig(),b=null!==(S=u[N.name])&&void 0!==S?S:[];return new Ln(C(C({},N),{},{fields:function(){return C(C({},Oe(N.fields,function(P){return C(C({},P),{},{type:we(P.type)})})),Pr(b))},extensionASTNodes:N.extensionASTNodes.concat(b)}))}(y):void ue(0,"Unexpected type: "+D(y))}for(var y,j=0;j<o.length;j++){var Y,z=o[j],ne=z.name.value;I[ne]=null!==(Y=xr[ne])&&void 0!==Y?Y:Rs(z)}var Re=C(C({query:e.query&&Qe(e.query),mutation:e.mutation&&Qe(e.mutation),subscription:e.subscription&&Qe(e.subscription)},l&&Cr([l])),Cr(p));return C(C({description:null===(r=l)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value},Re),{},{types:Ie(I),directives:[].concat(e.directives.map(function(y){var S=y.toConfig();return new xe(C(C({},S),{},{args:Oe(S.args,Rr)}))}),c.map(function(y){var S=y.locations.map(function(N){return N.value});return new xe({name:y.name.value,description:$e(y,t),locations:S,isRepeatable:y.repeatable,args:Mr(y.arguments),astNode:y})})),extensions:void 0,astNode:null!==(a=l)&&void 0!==a?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(p),assumeValid:null!==(s=null==t?void 0:t.assumeValid)&&void 0!==s&&s});function we(y){return ie(y)?new X(we(y.ofType)):B(y)?new _(we(y.ofType)):Qe(y)}function Qe(y){return I[y.name]}function kr(y){return C(C({},y),{},{type:we(y.type),args:Oe(y.args,Rr)})}function Rr(y){return C(C({},y),{},{type:we(y.type)})}function Cr(y){for(var S={},N=0;N<y.length;N++)for(var b,P=null!==(b=y[N].operationTypes)&&void 0!==b?b:[],V=0;V<P.length;V++){var U=P[V];S[U.operation]=Pn(U.type)}return S}function Pn(y){var S,N=y.name.value,b=null!==(S=xr[N])&&void 0!==S?S:I[N];if(void 0===b)throw new Error('Unknown type: "'.concat(N,'".'));return b}function ln(y){return y.kind===f.LIST_TYPE?new X(ln(y.type)):y.kind===f.NON_NULL_TYPE?new _(ln(y.type)):Pn(y)}function Vn(y){for(var S=Object.create(null),N=0;N<y.length;N++)for(var b,P=null!==(b=y[N].fields)&&void 0!==b?b:[],V=0;V<P.length;V++){var U=P[V];S[U.name.value]={type:ln(U.type),description:$e(U,t),args:Mr(U.arguments),deprecationReason:Mn(U),astNode:U}}return S}function Mr(y){for(var S=null!=y?y:[],N=Object.create(null),b=0;b<S.length;b++){var k=S[b],P=ln(k.type);N[k.name.value]={type:P,description:$e(k,t),defaultValue:Ye(k.defaultValue,P),deprecationReason:Mn(k),astNode:k}}return N}function Pr(y){for(var S=Object.create(null),N=0;N<y.length;N++)for(var b,P=null!==(b=y[N].fields)&&void 0!==b?b:[],V=0;V<P.length;V++){var U=P[V],fn=ln(U.type);S[U.name.value]={type:fn,description:$e(U,t),defaultValue:Ye(U.defaultValue,fn),deprecationReason:Mn(U),astNode:U}}return S}function Vr(y){for(var S=Object.create(null),N=0;N<y.length;N++)for(var b,P=null!==(b=y[N].values)&&void 0!==b?b:[],V=0;V<P.length;V++){var U=P[V];S[U.name.value]={description:$e(U,t),deprecationReason:Mn(U),astNode:U}}return S}function Un(y){for(var S=[],N=0;N<y.length;N++)for(var b,P=null!==(b=y[N].interfaces)&&void 0!==b?b:[],V=0;V<P.length;V++)S.push(Pn(P[V]));return S}function Ur(y){for(var S=[],N=0;N<y.length;N++)for(var b,P=null!==(b=y[N].types)&&void 0!==b?b:[],V=0;V<P.length;V++)S.push(Pn(P[V]));return S}function Rs(y){var S,N=y.name.value,b=$e(y,t),k=null!==(S=u[N])&&void 0!==S?S:[];switch(y.kind){case f.OBJECT_TYPE_DEFINITION:var P=k,V=[y].concat(P);return new ge({name:N,description:b,interfaces:function(){return Un(V)},fields:function(){return Vn(V)},astNode:y,extensionASTNodes:P});case f.INTERFACE_TYPE_DEFINITION:var U=k,fn=[y].concat(U);return new wn({name:N,description:b,interfaces:function(){return Un(fn)},fields:function(){return Vn(fn)},astNode:y,extensionASTNodes:U});case f.ENUM_TYPE_DEFINITION:var jr=k,Cs=[y].concat(jr);return new We({name:N,description:b,values:Vr(Cs),astNode:y,extensionASTNodes:jr});case f.UNION_TYPE_DEFINITION:var Br=k,Ms=[y].concat(Br);return new An({name:N,description:b,types:function(){return Ur(Ms)},astNode:y,extensionASTNodes:Br});case f.SCALAR_TYPE_DEFINITION:var Ps=k;return new Se({name:N,description:b,specifiedByUrl:Fr(y),astNode:y,extensionASTNodes:Ps});case f.INPUT_OBJECT_TYPE_DEFINITION:var Gr=k,Vs=[y].concat(Gr);return new Ln({name:N,description:b,fields:function(){return Pr(Vs)},astNode:y,extensionASTNodes:Gr})}ue(0,"Unexpected type definition node: "+D(y))}}({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},e,n);if(null==r.astNode)for(var i=0,a=r.types;i<a.length;i++){var s=a[i];switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s}}for(var o=r.directives,u=function(p){var v=Fe[p];o.every(function(m){return m.name!==v.name})&&o.push(v)},c=0;c<Fe.length;c++)u(c);return new Sr(r)}jn(class{constructor(n){this.searchIndex=[],n&&this.updateSchema(n)}updateSchema(n){this.schema=function(e,n){return Is(function(e,n){return new zn(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})}(n)}generateSearchIndex(){if(!this.schema)return[];let n=[];var e;(e=this.schema,[e.getQueryType(),e.getMutationType(),e.getSubscriptionType()].filter(Boolean)).forEach(i=>{n=[...n,...this.getTypeIndices(i,!0,n)]});const r=this.schema.getTypeMap();return Object.keys(r).forEach(i=>{/^__/.test(i)||(n=[...n,...this.getTypeIndices(r[i],!1,n)])}),this.searchIndex=n,n}getFieldsIndices(n,t,r,i){let a=[];return Object.keys(n).forEach(s=>{const o=n[s],u={search:o.name,name:o.name,description:o.description?o.description:"",args:o.args?o.args.map(c=>({name:c.name,description:c.description})):[],cat:"field",type:t.name,isQuery:r,highlight:"field"};a=[...a,u],o.args&&o.args.length&&o.args.forEach(c=>{a=[...a,{...u,search:c.name,highlight:"argument"}]}),o.type&&(a=[...a,...this.getTypeIndices(o.type,!1,[...i,...a]).filter(c=>!!c)])}),a}getTypeIndices(n,t,r){let i=null;if(!n.name)return[];if(r.some(s=>s.name===n.name&&"type"===s.cat))return[];n.getFields&&(i=n.getFields());const a=[{search:n.name,name:n.name,cat:"type",description:n.description?n.description:"",isRoot:t,highlight:"type"}];return i?[...a,...this.getFieldsIndices(i,n,t,[...r,...a]).filter(s=>!!s)]:a}searchDocs(n){return this.searchIndex.length?new Xr.Z(this.searchIndex,{keys:["search"],threshold:.4}).search(n).map(r=>r.item):[]}generateQuery(n,t,r){let i="",a=!1;if(!this.schema)return;switch(t){case this.schema.getQueryType()&&this.schema.getQueryType().name:i+="query";break;case this.schema.getMutationType()&&this.schema.getMutationType().name:i+="mutation";break;case this.schema.getSubscriptionType()&&this.schema.getSubscriptionType().name:i+="subscription";break;default:i+=`fragment _____ on ${t}`,a=!0}const s=this.generateFieldData(n,t,[],1,r);if(!s)return;i+=`{\n${s.query}\n}`;const o={...s.meta};return o.hasArgs=a||o.hasArgs,{query:i,meta:o}}cleanName(n){return n.replace(/[\[\]!]/g,"")}generateFieldData(n,t,r,i,a={}){if(!(n&&t&&r&&this.schema))return{query:"",meta:{}};const s=a.tabSize||2,o=this.schema.getType(t),u=o&&o.getFields()[n];if(!u)return{query:"",meta:{}};const c={hasArgs:!1};let l=" ".repeat(i*s)+u.name;u.args&&u.args.length&&(c.hasArgs=!0,l+=`(${u.args.reduce((g,I)=>g+", "+I.name+": ______","").substring(2)})`);const p=this.cleanName(u.type.inspect()),v=this.schema.getType(p);if(r.filter(T=>T.type===p).length)return{query:"",meta:{}};if(i>=(a.addQueryDepthLimit||0))return{query:"",meta:{}};const m=v&&v.getFields&&v.getFields();let h="";return m&&(h=Object.keys(m).reduce((T,g)=>{if(r.filter(x=>x.name===g&&x.type===p).length)return"";const I=this.generateFieldData(g,p,[...r,{name:n,type:p}],i+1,a);if(!I)return T;const A=I.query;return c.hasArgs=c.hasArgs||I.meta.hasArgs||!1,A?T+"\n"+A:T},"").substring(1)),h&&(l+=`{\n${h}\n`,l+=" ".repeat(i*s)+"}"),{query:l,meta:c}}})}},dt={};function R(L){var H=dt[L];if(void 0!==H)return H.exports;var G=dt[L]={exports:{}};return vt[L](G,G.exports,R),G.exports}R.m=vt,R.x=()=>{var L=R.O(void 0,[729],()=>R(15672));return R.O(L)},L=[],R.O=(H,G,Ae,$)=>{if(!G){var fe=1/0;for(ee=0;ee<L.length;ee++){for(var[G,Ae,$]=L[ee],_e=!0,Te=0;Te<G.length;Te++)(!1&$||fe>=$)&&Object.keys(R.O).every(Bn=>R.O[Bn](G[Te]))?G.splice(Te--,1):(_e=!1,$<fe&&(fe=$));if(_e){L.splice(ee--,1);var vn=Ae();void 0!==vn&&(H=vn)}}return H}$=$||0;for(var ee=L.length;ee>0&&L[ee-1][2]>$;ee--)L[ee]=L[ee-1];L[ee]=[G,Ae,$]},R.d=(L,H)=>{for(var G in H)R.o(H,G)&&!R.o(L,G)&&Object.defineProperty(L,G,{enumerable:!0,get:H[G]})},R.f={},R.e=L=>Promise.all(Object.keys(R.f).reduce((H,G)=>(R.f[G](L,H),H),[])),R.u=L=>L+".js",R.miniCssF=L=>{},R.o=(L,H)=>Object.prototype.hasOwnProperty.call(L,H),(()=>{var L;R.tu=H=>(void 0===L&&(L={createScriptURL:G=>G},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(L=trustedTypes.createPolicy("angular#bundler",L))),L.createScriptURL(H))})(),R.p="",(()=>{var L={672:1};R.f.i=($,ee)=>{L[$]||importScripts(R.tu(R.p+R.u($)))};var G=self.webpackChunkaltair_app=self.webpackChunkaltair_app||[],Ae=G.push.bind(G);G.push=$=>{var[ee,fe,_e]=$;for(var Te in fe)R.o(fe,Te)&&(R.m[Te]=fe[Te]);for(_e&&_e(R);ee.length;)L[ee.pop()]=1;Ae($)}})(),(()=>{var L=R.x;R.x=()=>R.e(729).then(L)})(),R.x()})();
|
package/build/dist/709.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[709],{71709:(J,O,l)=>{Object.defineProperty(O,"__esModule",{value:!0}),O.GraphQLWsSubscriptionProvider=void 0;const n=l(71251),i=l(52999),p=l(41104);O.GraphQLWsSubscriptionProvider=class extends n.SubscriptionProvider{createClient(){this.client=p.createClient({url:this.subscriptionUrl,connectionParams:this.connectionParams,on:{connected:()=>{var f,e;null==(e=null==(f=this.extraOptions)?void 0:f.onConnected)||e.call(f,void 0,void 0)},error:f=>{var e,r;null==(r=null==(e=this.extraOptions)?void 0:e.onConnected)||r.call(e,f,void 0)}}})}execute(f){if(this.createClient(),!this.client)throw new Error("Could not create subscription client!");return new i.Observable(e=>this.client.subscribe({query:f.query,variables:f.variables,operationName:f.operationName},{next:(...r)=>e.next(...r),error:(...r)=>e.error(...r),complete:()=>e.complete()}))}close(){var f;null==(f=this.client)||f.dispose(),this.client=void 0}}},41104:function(J,O,l){var n=this&&this.__createBinding||(Object.create?function(p,b,h,f){void 0===f&&(f=h),Object.defineProperty(p,f,{enumerable:!0,get:function(){return b[h]}})}:function(p,b,h,f){void 0===f&&(f=h),p[f]=b[h]}),i=this&&this.__exportStar||function(p,b){for(var h in p)"default"!==h&&!Object.prototype.hasOwnProperty.call(b,h)&&n(b,p,h)};Object.defineProperty(O,"__esModule",{value:!0}),i(l(15917),O),i(l(53876),O),i(l(58394),O)},15917:(J,O,l)=>{l.r(O),l.d(O,{GRAPHQL_TRANSPORT_WS_PROTOCOL:()=>i.GRAPHQL_TRANSPORT_WS_PROTOCOL,MessageType:()=>i.MessageType,isMessage:()=>i.isMessage,parseMessage:()=>i.parseMessage,stringifyMessage:()=>i.stringifyMessage,createClient:()=>b});var n=l(8239),i=l(58394),p=l(18458);function b(e){const{url:r,connectionParams:u,lazy:x=!0,onNonLazyError:X=console.error,lazyCloseTimeout:T=0,keepAlive:N=0,disablePong:W,retryAttempts:j=5,retryWait:z=function(){var o=(0,n.Z)(function*(d){let a=1e3;for(let y=0;y<d;y++)a*=2;yield new Promise(y=>setTimeout(y,a+Math.floor(2700*Math.random()+300)))});return function(d){return o.apply(this,arguments)}}(),isFatalConnectionProblem:D=(o=>!h(o)),on:t,webSocketImpl:I,generateID:B=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,g=>{const d=16*Math.random()|0;return("x"==g?d:3&d|8).toString(16)})},jsonMessageReplacer:Q,jsonMessageReviver:H}=e;let K;if(I){if(!function(e){return"function"==typeof e&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}(I))throw new Error("Invalid WebSocket implementation provided");K=I}else"undefined"!=typeof WebSocket?K=WebSocket:"undefined"!=typeof global?K=global.WebSocket||global.MozWebSocket:"undefined"!=typeof window&&(K=window.WebSocket||window.MozWebSocket);if(!K)throw new Error("WebSocket implementation missing");const Z=K,E=(()=>{const o=(()=>{const d={};return{on:(a,y)=>(d[a]=y,()=>{delete d[a]}),emit(a){var y;"id"in a&&(null===(y=d[a.id])||void 0===y||y.call(d,a))}}})(),g={connecting:(null==t?void 0:t.connecting)?[t.connecting]:[],connected:(null==t?void 0:t.connected)?[t.connected]:[],ping:(null==t?void 0:t.ping)?[t.ping]:[],pong:(null==t?void 0:t.pong)?[t.pong]:[],message:(null==t?void 0:t.message)?[o.emit,t.message]:[o.emit],closed:(null==t?void 0:t.closed)?[t.closed]:[],error:(null==t?void 0:t.error)?[t.error]:[]};return{onMessage:o.on,on(d,a){const y=g[d];return y.push(a),()=>{y.splice(y.indexOf(a),1)}},emit(d,...a){for(const y of g[d])y(...a)}}})();let w,S=0,Y=!1,k=0,v=!1;function ee(){return c.apply(this,arguments)}function c(){return(c=(0,n.Z)(function*(){const[o,g]=yield null!=w?w:w=new Promise((y,L)=>(0,n.Z)(function*(){if(Y){if(yield z(k),!S)return w=void 0,L({code:1e3,reason:"All Subscriptions Gone"});k++}E.emit("connecting");const s=new Z("function"==typeof r?yield r():r,i.GRAPHQL_TRANSPORT_WS_PROTOCOL);let G;function U(){isFinite(N)&&N>0&&(clearTimeout(G),G=setTimeout(()=>{s.readyState===Z.OPEN&&(s.send((0,i.stringifyMessage)({type:i.MessageType.Ping})),E.emit("ping",!1,void 0))},N))}s.onerror=P=>{E.emit("error",P)},s.onclose=P=>{w=void 0,clearTimeout(G),E.emit("closed",P),L(P)},s.onopen=(0,n.Z)(function*(){try{s.send((0,i.stringifyMessage)({type:i.MessageType.ConnectionInit,payload:"function"==typeof u?yield u():u},Q)),U()}catch(P){s.close(4400,P instanceof Error?P.message:new Error(P).message)}});let _=!1;s.onmessage=({data:P})=>{try{const m=(0,i.parseMessage)(P,H);if(E.emit("message",m),"ping"===m.type||"pong"===m.type)return E.emit(m.type,!0,m.payload),void("pong"===m.type?U():W||(s.send((0,i.stringifyMessage)(m.payload?{type:i.MessageType.Pong,payload:m.payload}:{type:i.MessageType.Pong})),E.emit("pong",!1,m.payload)));if(_)return;if(m.type!==i.MessageType.ConnectionAck)throw new Error(`First message cannot be of type ${m.type}`);_=!0,E.emit("connected",s,m.payload),Y=!1,k=0,y([s,new Promise((M,$)=>s.addEventListener("close",$))])}catch(m){s.close(4400,m instanceof Error?m.message:new Error(m).message)}}})());o.readyState===Z.CLOSING&&(yield g);let d=()=>{};const a=new Promise(y=>d=y);return[o,d,Promise.race([a.then(()=>{if(!S){const y=()=>o.close(1e3,"Normal Closure");isFinite(T)&&T>0?setTimeout(()=>{!S&&o.readyState===Z.OPEN&&y()},T):y()}}),g])]})).apply(this,arguments)}function q(o){if(h(o)&&[1002,1011,4400,4401,4409,4429].includes(o.code))throw o;if(v)return!1;if(h(o)&&1e3===o.code)return S>0;if(!j||k>=j||D(o))throw o;return Y=!0}return x||(0,n.Z)(function*(){for(S++;;)try{const[,,o]=yield ee();yield o}catch(o){try{if(!q(o))return}catch(g){return null==X?void 0:X(g)}}})(),{on:E.on,subscribe(o,g){const d=B();let a=!1,y=!1,L=()=>{S--,a=!0};return(0,n.Z)(function*(){for(S++;;)try{const[s,G,U]=yield ee();if(a)return G();const _=E.onMessage(d,P=>{switch(P.type){case i.MessageType.Next:return void g.next(P.payload);case i.MessageType.Error:return y=!0,a=!0,g.error(P.payload),void L();case i.MessageType.Complete:return a=!0,void L()}});return s.send((0,i.stringifyMessage)({id:d,type:i.MessageType.Subscribe,payload:o},Q)),L=()=>{!a&&s.readyState===Z.OPEN&&s.send((0,i.stringifyMessage)({id:d,type:i.MessageType.Complete},Q)),S--,a=!0,G()},void(yield U.finally(_))}catch(s){if(!q(s))return}})().catch(g.error).then(()=>{y||g.complete()}),()=>{a||L()}},dispose:()=>(0,n.Z)(function*(){if(v=!0,w){const[o]=yield w;o.close(1e3,"Normal Closure")}})()}}function h(e){return(0,p.Kn)(e)&&"code"in e&&"reason"in e}},58394:(J,O,l)=>{l.r(O),l.d(O,{GRAPHQL_TRANSPORT_WS_PROTOCOL:()=>i,MessageType:()=>p,isMessage:()=>b,parseMessage:()=>h,stringifyMessage:()=>f});var n=l(18458);const i="graphql-transport-ws";var p=(()=>{return(e=p||(p={})).ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",p;var e})();function b(e){if((0,n.Kn)(e)){if(!(0,n.ND)(e,"type"))return!1;switch(e.type){case p.ConnectionInit:return!(0,n.nr)(e,"payload")||void 0===e.payload||(0,n.Kn)(e.payload);case p.ConnectionAck:case p.Ping:case p.Pong:return!(0,n.nr)(e,"payload")||void 0===e.payload||(0,n.Kn)(e.payload);case p.Subscribe:return(0,n.ND)(e,"id")&&(0,n.O2)(e,"payload")&&(!(0,n.nr)(e.payload,"operationName")||null==e.payload.operationName||"string"==typeof e.payload.operationName)&&(0,n.ND)(e.payload,"query")&&(!(0,n.nr)(e.payload,"variables")||null==e.payload.variables||(0,n.O2)(e.payload,"variables"))&&(!(0,n.nr)(e.payload,"extensions")||null==e.payload.extensions||(0,n.O2)(e.payload,"extensions"));case p.Next:return(0,n.ND)(e,"id")&&(0,n.O2)(e,"payload");case p.Error:return(0,n.ND)(e,"id")&&(0,n.Ox)(e.payload);case p.Complete:return(0,n.ND)(e,"id");default:return!1}}return!1}function h(e,r){if(b(e))return e;if("string"!=typeof e)throw new Error("Message not parsable");const u=JSON.parse(e,r);if(!b(u))throw new Error("Invalid message");return u}function f(e,r){if(!b(e))throw new Error("Cannot stringify invalid message");return JSON.stringify(e,r)}},53876:(J,O,l)=>{l.r(O),l.d(O,{makeServer:()=>X});var n=l(8239),i=l(51724),p=l(48682),b=l(69251),h=l(89790),f=l(86403),e=l(98001),r=l(58394),u=l(18458);function X(T){const{schema:N,context:W,roots:j,validate:z,execute:D,subscribe:t,connectionInitWaitTimeout:I=3e3,onConnect:B,onDisconnect:Q,onClose:H,onSubscribe:K,onOperation:Z,onNext:E,onError:w,onComplete:S,jsonMessageReviver:Y,jsonMessageReplacer:k}=T;return{opened(v,ee){const c={connectionInitReceived:!1,acknowledged:!1,subscriptions:{},extra:ee};if(v.protocol!==r.GRAPHQL_TRANSPORT_WS_PROTOCOL)return v.close(1002,"Protocol Error"),function(){var o=(0,n.Z)(function*(g,d){yield null==H?void 0:H(c,g,d)});return function(g,d){return o.apply(this,arguments)}}();const q=I>0&&isFinite(I)?setTimeout(()=>{c.connectionInitReceived||v.close(4408,"Connection initialisation timeout")},I):null;return v.onMessage(function(){var o=(0,n.Z)(function*(d){var a,y,L;let s;try{s=(0,r.parseMessage)(d,Y)}catch(_){return v.close(4400,"Invalid message received")}switch(s.type){case r.MessageType.ConnectionInit:{if(c.connectionInitReceived)return v.close(4429,"Too many initialisation requests");c.connectionInitReceived=!0,(0,u.Kn)(s.payload)&&(c.connectionParams=s.payload);const _=yield null==B?void 0:B(c);return!1===_?v.close(4403,"Forbidden"):(yield v.send((0,r.stringifyMessage)((0,u.Kn)(_)?{type:r.MessageType.ConnectionAck,payload:_}:{type:r.MessageType.ConnectionAck},k)),void(c.acknowledged=!0))}case r.MessageType.Ping:return void(yield v.send((0,r.stringifyMessage)(s.payload?{type:r.MessageType.Pong,payload:s.payload}:{type:r.MessageType.Pong})));case r.MessageType.Pong:return;case r.MessageType.Subscribe:{if(!c.acknowledged)return v.close(4401,"Unauthorized");const{id:_,payload:P}=s;if(_ in c.subscriptions)return v.close(4409,`Subscriber for ${_} already exists`);c.subscriptions[_]=null;const m={next:(A=(0,n.Z)(function*(C,R){let V={id:_,type:r.MessageType.Next,payload:C};const re=yield null==E?void 0:E(c,V,R,C);re&&(V=Object.assign(Object.assign({},V),{payload:re})),yield v.send((0,r.stringifyMessage)(V,k))}),function(R,V){return A.apply(this,arguments)}),error:function(){var A=(0,n.Z)(function*(C){let R={id:_,type:r.MessageType.Error,payload:C};const V=yield null==w?void 0:w(c,R,C);V&&(R=Object.assign(Object.assign({},R),{payload:V})),yield v.send((0,r.stringifyMessage)(R,k))});return function(R){return A.apply(this,arguments)}}(),complete:function(){var A=(0,n.Z)(function*(C){const R={id:_,type:r.MessageType.Complete};yield null==S?void 0:S(c,R),C&&(yield v.send((0,r.stringifyMessage)(R,k)))});return function(R){return A.apply(this,arguments)}}()};let M;const $=yield null==K?void 0:K(c,s);if($){if((0,u.Ox)($))return yield m.error($);if(Array.isArray($))throw new Error("Invalid return value from onSubscribe hook, expected an array of GraphQLError objects");M=$}else{if(!N)throw new Error("The GraphQL schema is not provided");const A={operationName:P.operationName,document:(0,i.Qc)(P.query),variableValues:P.variables};M=Object.assign(Object.assign({},A),{schema:"function"==typeof N?yield N(c,s,A):N});const C=(null!=z?z:p.Gu)(M.schema,M.document);if(C.length>0)return yield m.error(C)}const ne=(0,b.getOperationAST)(M.document,M.operationName);if(!ne)return yield m.error([new h._("Unable to identify operation")]);let F;"rootValue"in M||(M.rootValue=null==j?void 0:j[ne.operation]),"contextValue"in M||(M.contextValue="function"==typeof W?yield W(c,s,M):W),F="subscription"===ne.operation?yield(null!=t?t:f.L)(M):yield(null!=D?D:e.ht)(M);const te=yield null==Z?void 0:Z(c,s,M,F);if(te&&(F=te),(0,u.D0)(F))if(_ in c.subscriptions){c.subscriptions[_]=F;try{for(var U,G=function(T){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W,N=T[Symbol.asyncIterator];return N?N.call(T):(T="function"==typeof __values?__values(T):T[Symbol.iterator](),W={},j("next"),j("throw"),j("return"),W[Symbol.asyncIterator]=function(){return this},W);function j(D){W[D]=T[D]&&function(t){return new Promise(function(I,B){!function(D,t,I,B){Promise.resolve(B).then(function(Q){D({value:Q,done:I})},t)}(I,B,(t=T[D](t)).done,t.value)})}}}(F);!(U=yield G.next()).done;){const A=U.value;yield m.next(A,M)}}catch(A){a={error:A}}finally{try{U&&!U.done&&(y=G.return)&&(yield y.call(G))}finally{if(a)throw a.error}}}else F.return();else _ in c.subscriptions&&(yield m.next(F,M));return yield m.complete(_ in c.subscriptions),void delete c.subscriptions[_]}case r.MessageType.Complete:return yield null===(L=c.subscriptions[s.id])||void 0===L?void 0:L.return(),void delete c.subscriptions[s.id];default:throw new Error(`Unexpected message of type ${s.type} received`)}var A});return function(d){return o.apply(this,arguments)}}()),function(){var o=(0,n.Z)(function*(g,d){q&&clearTimeout(q);for(const a of Object.values(c.subscriptions))yield null==a?void 0:a.return();c.acknowledged&&(yield null==Q?void 0:Q(c,g,d)),yield null==H?void 0:H(c,g,d)});return function(g,d){return o.apply(this,arguments)}}()}}}},18458:(J,O,l)=>{l.d(O,{Kn:()=>i,D0:()=>p,Ox:()=>b,nr:()=>h,O2:()=>f,ND:()=>r});const n=Object.prototype.hasOwnProperty;function i(u){return"object"==typeof u&&null!==u}function p(u){return"function"==typeof Object(u)[Symbol.asyncIterator]}function b(u){return Array.isArray(u)&&u.length>0&&u.every(x=>"message"in x)}function h(u,x){return n.call(u,x)}function f(u,x){return n.call(u,x)&&i(u[x])}function r(u,x){return n.call(u,x)&&"string"==typeof u[x]}}}]);
|
package/build/dist/866.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[866],{71251:(me,R)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.SubscriptionProvider=void 0,R.SubscriptionProvider=class{constructor(b,B,_t){this.subscriptionUrl=b,this.connectionParams=B,this.extraOptions=_t}}},52999:(me,R,z)=>{z.r(R),z.d(R,{ArgumentOutOfRangeError:()=>vn,AsyncSubject:()=>Nt,BehaviorSubject:()=>Ce,ConnectableObservable:()=>je,EMPTY:()=>I,EmptyError:()=>gt,NEVER:()=>de,NotFoundError:()=>dn,Notification:()=>cn,NotificationKind:()=>nt,ObjectUnsubscribedError:()=>Rt,Observable:()=>h,ReplaySubject:()=>ke,Scheduler:()=>vt,SequenceError:()=>pn,Subject:()=>q,Subscriber:()=>J,Subscription:()=>S,TimeoutError:()=>oe,UnsubscriptionError:()=>W,VirtualAction:()=>Yt,VirtualTimeScheduler:()=>Qe,animationFrame:()=>Ge,animationFrameScheduler:()=>zt,animationFrames:()=>Te,asap:()=>De,asapScheduler:()=>Mt,async:()=>Dt,asyncScheduler:()=>dt,bindCallback:()=>Sn,bindNodeCallback:()=>_n,combineLatest:()=>Pn,concat:()=>Cn,config:()=>T,connectable:()=>Rn,defer:()=>it,empty:()=>Je,firstValueFrom:()=>hn,forkJoin:()=>Vn,from:()=>Z,fromEvent:()=>St,fromEventPattern:()=>he,generate:()=>zn,identity:()=>F,iif:()=>Yn,interval:()=>Wn,isObservable:()=>sn,lastValueFrom:()=>ln,merge:()=>Gn,never:()=>Qn,noop:()=>A,observable:()=>L,of:()=>re,onErrorResumeNext:()=>Kn,pairs:()=>Xn,partition:()=>$n,pipe:()=>Ie,queue:()=>Ye,queueScheduler:()=>Ut,race:()=>tr,range:()=>nr,scheduled:()=>te,throwError:()=>ie,timer:()=>ve,using:()=>rr,zip:()=>ir});var Y=function(t,n){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])})(t,n)};function b(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}Y(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}function ut(t,n){var r,i,o,u,e={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(f){return function(s){return function(f){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,i&&(o=2&f[0]?i.return:f[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,f[1])).done)return o;switch(i=0,o&&(f=[2&f[0],o.value]),f[0]){case 0:case 1:o=f;break;case 4:return e.label++,{value:f[1],done:!1};case 5:e.label++,i=f[1],f=[0];continue;case 7:f=e.ops.pop(),e.trys.pop();continue;default:if(!(o=(o=e.trys).length>0&&o[o.length-1])&&(6===f[0]||2===f[0])){e=0;continue}if(3===f[0]&&(!o||f[1]>o[0]&&f[1]<o[3])){e.label=f[1];break}if(6===f[0]&&e.label<o[1]){e.label=o[1],o=f;break}if(o&&e.label<o[2]){e.label=o[2],e.ops.push(f);break}o[2]&&e.ops.pop(),e.trys.pop();continue}f=n.call(t,e)}catch(s){f=[6,s],i=0}finally{r=o=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,s])}}}function V(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var i,u,r=e.call(t),o=[];try{for(;(void 0===n||n-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){u={error:a}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(u)throw u.error}}return o}function w(t,n){for(var e=0,r=n.length,i=t.length;e<r;e++,i++)t[i]=n[e];return t}function P(t){return this instanceof P?(this.v=t,this):new P(t)}function be(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=e.apply(t,n||[]),o=[];return i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i;function u(l){r[l]&&(i[l]=function(d){return new Promise(function(y,m){o.push([l,d,y,m])>1||a(l,d)})})}function a(l,d){try{!function(l){l.value instanceof P?Promise.resolve(l.value.v).then(f,s):p(o[0][2],l)}(r[l](d))}catch(y){p(o[0][3],y)}}function f(l){a("next",l)}function s(l){a("throw",l)}function p(l,d){l(d),o.shift(),o.length&&a(o[0][0],o[0][1])}}function v(t){return"function"==typeof t}function j(t){var e=t(function(r){Error.call(r),r.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var W=j(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(r,i){return i+1+") "+r.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function G(t,n){if(t){var e=t.indexOf(n);0<=e&&t.splice(e,1)}}var S=function(){function t(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._teardowns=null}return t.prototype.unsubscribe=function(){var n,e,r,i,o;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var a=V(u),c=a.next();!c.done;c=a.next())c.value.remove(this)}catch(m){n={error:m}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(n)throw n.error}}else u.remove(this);var s=this.initialTeardown;if(v(s))try{s()}catch(m){o=m instanceof W?m.errors:[m]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var l=V(p),d=l.next();!d.done;d=l.next()){var y=d.value;try{xt(y)}catch(m){o=null!=o?o:[],m instanceof W?o=w(w([],g(o)),g(m.errors)):o.push(m)}}}catch(m){r={error:m}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}if(o)throw new W(o)}},t.prototype.add=function(n){var e;if(n&&n!==this)if(this.closed)xt(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(n)}},t.prototype._hasParent=function(n){var e=this._parentage;return e===n||Array.isArray(e)&&e.includes(n)},t.prototype._addParent=function(n){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n},t.prototype._removeParent=function(n){var e=this._parentage;e===n?this._parentage=null:Array.isArray(e)&&G(e,n)},t.prototype.remove=function(n){var e=this._teardowns;e&&G(e,n),n instanceof t&&n._removeParent(this)},t.EMPTY=((n=new t).closed=!0,n),t;var n}(),At=S.EMPTY;function It(t){return t instanceof S||t&&"closed"in t&&v(t.remove)&&v(t.add)&&v(t.unsubscribe)}function xt(t){v(t)?t():t.unsubscribe()}var T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Q={setTimeout:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=Q.delegate;return((null==e?void 0:e.setTimeout)||setTimeout).apply(void 0,w([],g(t)))},clearTimeout:function(t){var n=Q.delegate;return((null==n?void 0:n.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Ot(t){Q.setTimeout(function(){var n=T.onUnhandledError;if(!n)throw t;n(t)})}function A(){}var Se=at("C",void 0,void 0);function at(t,n,e){return{kind:t,value:n,error:e}}var J=function(t){function n(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,It(e)&&e.add(r)):r.destination=Ae,r}return b(n,t),n.create=function(e,r,i){return new ct(e,r,i)},n.prototype.next=function(e){this.isStopped?st(function(t){return at("N",t,void 0)}(e),this):this._next(e)},n.prototype.error=function(e){this.isStopped?st(function(t){return at("E",void 0,t)}(e),this):(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped?st(Se,this):(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(S),ct=function(t){function n(e,r,i){var u,o=t.call(this)||this;if(v(e))u=e;else if(e){var a;u=e.next,r=e.error,i=e.complete,o&&T.useDeprecatedNextContext?(a=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:a=e,u=null==u?void 0:u.bind(a),r=null==r?void 0:r.bind(a),i=null==i?void 0:i.bind(a)}return o.destination={next:u?ft(u,o):A,error:ft(null!=r?r:Pt,o),complete:i?ft(i,o):A},o}return b(n,t),n}(J);function ft(t,n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{t.apply(void 0,w([],g(e)))}catch(i){if(T.useDeprecatedSynchronousErrorHandling){if(!n._syncErrorHack_isSubscribing)throw i;n.__syncError=i}else Ot(i)}}}function Pt(t){throw t}function st(t,n){var e=T.onStoppedNotification;e&&Q.setTimeout(function(){return e(t,n)})}var Ae={closed:!0,next:A,error:Pt,complete:A},L="function"==typeof Symbol&&Symbol.observable||"@@observable";function F(t){return t}function Ie(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return jt(t)}function jt(t){return 0===t.length?F:1===t.length?t[0]:function(e){return t.reduce(function(r,i){return i(r)},e)}}var h=function(){function t(n){n&&(this._subscribe=n)}return t.prototype.lift=function(n){var e=new t;return e.source=this,e.operator=n,e},t.prototype.subscribe=function(n,e,r){var i=function(t){return t&&t instanceof J||function(t){return t&&v(t.next)&&v(t.error)&&v(t.complete)}(t)&&It(t)}(n)?n:new ct(n,e,r);if(T.useDeprecatedSynchronousErrorHandling)this._deprecatedSyncErrorSubscribe(i);else{var u=this.operator,a=this.source;i.add(u?u.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}return i},t.prototype._deprecatedSyncErrorSubscribe=function(n){var e=n;e._syncErrorHack_isSubscribing=!0;var r=this.operator;if(r)n.add(r.call(n,this.source));else try{n.add(this._subscribe(n))}catch(o){e.__syncError=o}for(var i=e;i;){if("__syncError"in i)try{throw i.__syncError}finally{n.unsubscribe()}i=i.destination}e._syncErrorHack_isSubscribing=!1},t.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(e){n.error(e)}},t.prototype.forEach=function(n,e){var r=this;return new(e=Tt(e))(function(i,o){var u;u=r.subscribe(function(a){try{n(a)}catch(c){o(c),null==u||u.unsubscribe()}},o,i)})},t.prototype._subscribe=function(n){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(n)},t.prototype[L]=function(){return this},t.prototype.pipe=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.length?jt(n)(this):this},t.prototype.toPromise=function(n){var e=this;return new(n=Tt(n))(function(r,i){var o;e.subscribe(function(u){return o=u},function(u){return i(u)},function(){return r(o)})})},t.create=function(n){return new t(n)},t}();function Tt(t){var n;return null!==(n=null!=t?t:T.Promise)&&void 0!==n?n:Promise}function Ft(t){return v(null==t?void 0:t.lift)}function C(t){return function(n){if(Ft(n))return n.lift(function(e){try{return t(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}var E=function(t){function n(e,r,i,o,u){var a=t.call(this,e)||this;return a.onFinalize=u,a._next=r?function(c){try{r(c)}catch(f){e.error(f)}}:t.prototype._next,a._error=o?function(c){try{o(c)}catch(f){e.error(f)}finally{this.unsubscribe()}}:t.prototype._error,a._complete=i?function(){try{i()}catch(c){e.error(c)}finally{this.unsubscribe()}}:t.prototype._complete,a}return b(n,t),n.prototype.unsubscribe=function(){var e,r=this.closed;t.prototype.unsubscribe.call(this),!r&&(null===(e=this.onFinalize)||void 0===e||e.call(this))},n}(J),je=function(t){function n(e,r){var i=t.call(this)||this;return i.source=e,i.subjectFactory=r,i._subject=null,i._refCount=0,i._connection=null,Ft(e)&&(i.lift=e.lift),i}return b(n,t),n.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},n.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},n.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},n.prototype.connect=function(){var e=this,r=this._connection;if(!r){r=this._connection=new S;var i=this.getSubject();r.add(this.source.subscribe(new E(i,void 0,function(){e._teardown(),i.complete()},function(o){e._teardown(),i.error(o)},function(){return e._teardown()}))),r.closed&&(this._connection=null,r=S.EMPTY)}return r},n.prototype.refCount=function(){return C(function(t,n){var e=null;t._refCount++;var r=new E(n,void 0,void 0,void 0,function(){if(!t||t._refCount<=0||0<--t._refCount)e=null;else{var i=t._connection,o=e;e=null,i&&(!o||i===o)&&i.unsubscribe(),n.unsubscribe()}});t.subscribe(r),r.closed||(e=t.connect())})(this)},n}(h),Ct={now:function(){return(Ct.delegate||performance).now()},delegate:void 0},N={schedule:function(t){var n=requestAnimationFrame,e=cancelAnimationFrame,r=N.delegate;r&&(n=r.requestAnimationFrame,e=r.cancelAnimationFrame);var i=n(function(o){e=void 0,t(o)});return new S(function(){return null==e?void 0:e(i)})},requestAnimationFrame:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=N.delegate;return((null==e?void 0:e.requestAnimationFrame)||requestAnimationFrame).apply(void 0,w([],g(t)))},cancelAnimationFrame:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=N.delegate;return((null==e?void 0:e.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,w([],g(t)))},delegate:void 0};function Te(t){return t?kt(t):Fe}function kt(t){var n=N.schedule;return new h(function(e){var r=new S,i=t||Ct,o=i.now(),u=function(a){var c=i.now();e.next({timestamp:t?c:a,elapsed:c-o}),e.closed||r.add(n(u))};return r.add(n(u)),r})}var ht,Fe=kt(),Rt=j(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),q=function(t){function n(){var e=t.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return b(n,t),n.prototype.lift=function(e){var r=new Vt(this,this);return r.operator=e,r},n.prototype._throwIfClosed=function(){if(this.closed)throw new Rt},n.prototype.next=function(e){var r,i;if(this._throwIfClosed(),!this.isStopped){var o=this.observers.slice();try{for(var u=V(o),a=u.next();!a.done;a=u.next())a.value.next(e)}catch(f){r={error:f}}finally{try{a&&!a.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}},n.prototype.error=function(e){if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;for(var r=this.observers;r.length;)r.shift().error(e)}},n.prototype.complete=function(){if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;for(var e=this.observers;e.length;)e.shift().complete()}},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},n.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},n.prototype._innerSubscribe=function(e){var r=this,u=r.observers;return r.hasError||r.isStopped?At:(u.push(e),new S(function(){return G(u,e)}))},n.prototype._checkFinalizedStatuses=function(e){var r=this,u=r.isStopped;r.hasError?e.error(r.thrownError):u&&e.complete()},n.prototype.asObservable=function(){var e=new h;return e.source=this,e},n.create=function(e,r){return new Vt(e,r)},n}(h),Vt=function(t){function n(e,r){var i=t.call(this)||this;return i.destination=e,i.source=r,i}return b(n,t),n.prototype.next=function(e){var r,i;null===(i=null===(r=this.destination)||void 0===r?void 0:r.next)||void 0===i||i.call(r,e)},n.prototype.error=function(e){var r,i;null===(i=null===(r=this.destination)||void 0===r?void 0:r.error)||void 0===i||i.call(r,e)},n.prototype.complete=function(){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===r||r.call(e)},n.prototype._subscribe=function(e){var r,i;return null!==(i=null===(r=this.source)||void 0===r?void 0:r.subscribe(e))&&void 0!==i?i:At},n}(q),Ce=function(t){function n(e){var r=t.call(this)||this;return r._value=e,r}return b(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return!r.closed&&e.next(this._value),r},n.prototype.getValue=function(){var e=this,o=e._value;if(e.hasError)throw e.thrownError;return this._throwIfClosed(),o},n.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},n}(q),lt={now:function(){return(lt.delegate||Date).now()},delegate:void 0},ke=function(t){function n(e,r,i){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===i&&(i=lt);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,r),o}return b(n,t),n.prototype.next=function(e){var r=this,o=r._buffer,u=r._infiniteTimeWindow,a=r._timestampProvider,c=r._windowTime;r.isStopped||(o.push(e),!u&&o.push(a.now()+c)),this._trimBuffer(),t.prototype.next.call(this,e)},n.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),o=this._infiniteTimeWindow,a=this._buffer.slice(),c=0;c<a.length&&!e.closed;c+=o?1:2)e.next(a[c]);return this._checkFinalizedStatuses(e),r},n.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,i=e._timestampProvider,o=e._buffer,u=e._infiniteTimeWindow,a=(u?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!u){for(var c=i.now(),f=0,s=1;s<o.length&&o[s]<=c;s+=2)f=s;f&&o.splice(0,f+1)}},n}(q),Nt=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}return b(n,t),n.prototype._checkFinalizedStatuses=function(e){var r=this,o=r._hasValue,u=r._value,c=r.isStopped;r.hasError?e.error(r.thrownError):c&&(o&&e.next(u),e.complete())},n.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},n.prototype.complete=function(){var e=this,r=e._hasValue,i=e._value;e._isComplete||(this._isComplete=!0,r&&t.prototype.next.call(this,i),t.prototype.complete.call(this))},n}(q),Re=function(t){function n(e,r){return t.call(this)||this}return b(n,t),n.prototype.schedule=function(e,r){return void 0===r&&(r=0),this},n}(S),H={setInterval:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=H.delegate;return((null==e?void 0:e.setInterval)||setInterval).apply(void 0,w([],g(t)))},clearInterval:function(t){var n=H.delegate;return((null==n?void 0:n.clearInterval)||clearInterval)(t)},delegate:void 0},M=function(t){function n(e,r){var i=t.call(this,e,r)||this;return i.scheduler=e,i.work=r,i.pending=!1,i}return b(n,t),n.prototype.schedule=function(e,r){if(void 0===r&&(r=0),this.closed)return this;this.state=e;var i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,r)),this.pending=!0,this.delay=r,this.id=this.id||this.requestAsyncId(o,this.id,r),this},n.prototype.requestAsyncId=function(e,r,i){return void 0===i&&(i=0),H.setInterval(e.flush.bind(e,this),i)},n.prototype.recycleAsyncId=function(e,r,i){if(void 0===i&&(i=0),null!=i&&this.delay===i&&!1===this.pending)return r;H.clearInterval(r)},n.prototype.execute=function(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(e,r);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(e,r){var o,i=!1;try{this.work(e)}catch(u){i=!0,o=!!u&&u||new Error(u)}if(i)return this.unsubscribe(),o},n.prototype.unsubscribe=function(){if(!this.closed){var r=this.id,i=this.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,G(o,this),null!=r&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},n}(Re),Ve=1,K={};function qt(t){return t in K&&(delete K[t],!0)}var Ne=function(t){var n=Ve++;return K[n]=!0,ht||(ht=Promise.resolve()),ht.then(function(){return qt(n)&&t()}),n},qe=function(t){qt(t)},X={setImmediate:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=X.delegate;return((null==e?void 0:e.setImmediate)||Ne).apply(void 0,w([],g(t)))},clearImmediate:function(t){var n=X.delegate;return((null==n?void 0:n.clearImmediate)||qe)(t)},delegate:void 0},Le=function(t){function n(e,r){var i=t.call(this,e,r)||this;return i.scheduler=e,i.work=r,i}return b(n,t),n.prototype.requestAsyncId=function(e,r,i){return void 0===i&&(i=0),null!==i&&i>0?t.prototype.requestAsyncId.call(this,e,r,i):(e.actions.push(this),e._scheduled||(e._scheduled=X.setImmediate(e.flush.bind(e,void 0))))},n.prototype.recycleAsyncId=function(e,r,i){if(void 0===i&&(i=0),null!=i&&i>0||null==i&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,i);0===e.actions.length&&(X.clearImmediate(r),e._scheduled=void 0)},n}(M),vt=function(){function t(n,e){void 0===e&&(e=t.now),this.schedulerActionCtor=n,this.now=e}return t.prototype.schedule=function(n,e,r){return void 0===e&&(e=0),new this.schedulerActionCtor(this,n).schedule(r,e)},t.now=lt.now,t}(),D=function(t){function n(e,r){void 0===r&&(r=vt.now);var i=t.call(this,e,r)||this;return i.actions=[],i._active=!1,i._scheduled=void 0,i}return b(n,t),n.prototype.flush=function(e){var r=this.actions;if(this._active)r.push(e);else{var i;this._active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=r.shift());if(this._active=!1,i){for(;e=r.shift();)e.unsubscribe();throw i}}},n}(vt),Mt=new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return b(n,t),n.prototype.flush=function(e){this._active=!0,this._scheduled=void 0;var i,r=this.actions,o=-1;e=e||r.shift();var u=r.length;do{if(i=e.execute(e.state,e.delay))break}while(++o<u&&(e=r.shift()));if(this._active=!1,i){for(;++o<u&&(e=r.shift());)e.unsubscribe();throw i}},n}(D))(Le),De=Mt,dt=new D(M),Dt=dt,Ue=function(t){function n(e,r){var i=t.call(this,e,r)||this;return i.scheduler=e,i.work=r,i}return b(n,t),n.prototype.schedule=function(e,r){return void 0===r&&(r=0),r>0?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},n.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},n.prototype.requestAsyncId=function(e,r,i){return void 0===i&&(i=0),null!=i&&i>0||null==i&&this.delay>0?t.prototype.requestAsyncId.call(this,e,r,i):e.flush(this)},n}(M),Ut=new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return b(n,t),n}(D))(Ue),Ye=Ut,Be=function(t){function n(e,r){var i=t.call(this,e,r)||this;return i.scheduler=e,i.work=r,i}return b(n,t),n.prototype.requestAsyncId=function(e,r,i){return void 0===i&&(i=0),null!==i&&i>0?t.prototype.requestAsyncId.call(this,e,r,i):(e.actions.push(this),e._scheduled||(e._scheduled=N.requestAnimationFrame(function(){return e.flush(void 0)})))},n.prototype.recycleAsyncId=function(e,r,i){if(void 0===i&&(i=0),null!=i&&i>0||null==i&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,i);0===e.actions.length&&(N.cancelAnimationFrame(r),e._scheduled=void 0)},n}(M),zt=new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return b(n,t),n.prototype.flush=function(e){this._active=!0,this._scheduled=void 0;var i,r=this.actions,o=-1;e=e||r.shift();var u=r.length;do{if(i=e.execute(e.state,e.delay))break}while(++o<u&&(e=r.shift()));if(this._active=!1,i){for(;++o<u&&(e=r.shift());)e.unsubscribe();throw i}},n}(D))(Be),Ge=zt,Qe=function(t){function n(e,r){void 0===e&&(e=Yt),void 0===r&&(r=1/0);var i=t.call(this,e,function(){return i.frame})||this;return i.maxFrames=r,i.frame=0,i.index=-1,i}return b(n,t),n.prototype.flush=function(){for(var o,u,r=this.actions,i=this.maxFrames;(u=r[0])&&u.delay<=i&&(r.shift(),this.frame=u.delay,!(o=u.execute(u.state,u.delay))););if(o){for(;u=r.shift();)u.unsubscribe();throw o}},n.frameTimeFactor=10,n}(D),Yt=function(t){function n(e,r,i){void 0===i&&(i=e.index+=1);var o=t.call(this,e,r)||this;return o.scheduler=e,o.work=r,o.index=i,o.active=!0,o.index=e.index=i,o}return b(n,t),n.prototype.schedule=function(e,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return t.prototype.schedule.call(this,e,r);this.active=!1;var i=new n(this.scheduler,this.work);return this.add(i),i.schedule(e,r)}return S.EMPTY},n.prototype.requestAsyncId=function(e,r,i){void 0===i&&(i=0),this.delay=e.frame+i;var o=e.actions;return o.push(this),o.sort(n.sortActions),!0},n.prototype.recycleAsyncId=function(e,r,i){void 0===i&&(i=0)},n.prototype._execute=function(e,r){if(!0===this.active)return t.prototype._execute.call(this,e,r)},n.sortActions=function(e,r){return e.delay===r.delay?e.index===r.index?0:e.index>r.index?1:-1:e.delay>r.delay?1:-1},n}(M),I=new h(function(t){return t.complete()});function Je(t){return t?function(t){return new h(function(n){return t.schedule(function(){return n.complete()})})}(t):I}function pt(t,n){return new h(function(e){var r=0;return n.schedule(function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())})})}var mt=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function Bt(t){return v(null==t?void 0:t.then)}var Wt="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Gt(t,n){return new h(function(e){var r;return e.add(n.schedule(function(){r=t[Wt](),function(t,n,e,r){void 0===r&&(r=0);var i=n.schedule(function(){try{e.call(this)}catch(o){t.error(o)}},r);t.add(i)}(e,n,function(){var i=r.next(),o=i.value;i.done?e.complete():(e.next(o),this.schedule())})})),function(){return v(null==r?void 0:r.return)&&r.return()}})}function Qt(t,n){if(!t)throw new Error("Iterable cannot be null");return new h(function(e){var r=new S;return r.add(n.schedule(function(){var i=t[Symbol.asyncIterator]();r.add(n.schedule(function(){var o=this;i.next().then(function(u){u.done?e.complete():(e.next(u.value),o.schedule())})}))})),r})}function Jt(t){return v(t[L])}function Ht(t){return v(null==t?void 0:t[Wt])}function Kt(t){return Symbol.asyncIterator&&v(null==t?void 0:t[Symbol.asyncIterator])}function Xt(t){return new TypeError("You provided "+(null!==t&&"object"==typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Zt(t){return be(this,arguments,function(){var e,r,i;return ut(this,function(u){switch(u.label){case 0:e=t.getReader(),u.label=1;case 1:u.trys.push([1,,9,10]),u.label=2;case 2:return[4,P(e.read())];case 3:return r=u.sent(),i=r.value,r.done?[4,P(void 0)]:[3,5];case 4:return[2,u.sent()];case 5:return[4,P(i)];case 6:return[4,u.sent()];case 7:return u.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function $t(t){return v(null==t?void 0:t.getReader)}function te(t,n){if(null!=t){if(Jt(t))return function(t,n){return new h(function(e){var r=new S;return r.add(n.schedule(function(){var i=t[L]();r.add(i.subscribe({next:function(o){r.add(n.schedule(function(){return e.next(o)}))},error:function(o){r.add(n.schedule(function(){return e.error(o)}))},complete:function(){r.add(n.schedule(function(){return e.complete()}))}}))})),r})}(t,n);if(mt(t))return pt(t,n);if(Bt(t))return function(t,n){return new h(function(e){return n.schedule(function(){return t.then(function(r){e.add(n.schedule(function(){e.next(r),e.add(n.schedule(function(){return e.complete()}))}))},function(r){e.add(n.schedule(function(){return e.error(r)}))})})})}(t,n);if(Kt(t))return Qt(t,n);if(Ht(t))return Gt(t,n);if($t(t))return function(t,n){return Qt(Zt(t),n)}(t,n)}throw Xt(t)}function Z(t,n){return n?te(t,n):_(t)}function _(t){if(t instanceof h)return t;if(null!=t){if(Jt(t))return function(t){return new h(function(n){var e=t[L]();if(v(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(mt(t))return ee(t);if(Bt(t))return function(t){return new h(function(n){t.then(function(e){n.closed||(n.next(e),n.complete())},function(e){return n.error(e)}).then(null,Ot)})}(t);if(Kt(t))return ne(t);if(Ht(t))return function(t){return new h(function(n){var e,r;try{for(var i=V(t),o=i.next();!o.done;o=i.next())if(n.next(o.value),n.closed)return}catch(a){e={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}n.complete()})}(t);if($t(t))return function(t){return ne(Zt(t))}(t)}throw Xt(t)}function ee(t){return new h(function(n){for(var e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}function ne(t){return new h(function(n){(function(t,n){var e,r,i,o;return function(t,n,e,r){return new(e||(e=Promise))(function(o,u){function a(s){try{f(r.next(s))}catch(p){u(p)}}function c(s){try{f(r.throw(s))}catch(p){u(p)}}function f(s){s.done?o(s.value):function(o){return o instanceof e?o:new e(function(u){u(o)})}(s.value).then(a,c)}f((r=r.apply(t,n||[])).next())})}(this,void 0,void 0,function(){var a;return ut(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),e=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=V(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(u){return new Promise(function(a,c){!function(o,u,a,c){Promise.resolve(c).then(function(f){o({value:f,done:a})},u)}(a,c,(u=t[o](u)).done,u.value)})}}}(t),c.label=1;case 1:return[4,e.next()];case 2:if((r=c.sent()).done)return[3,4];if(n.next(r.value),n.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=c.sent(),i={error:a},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(o=e.return)?[4,o.call(e)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}})})})(t,n).catch(function(e){return n.error(e)})})}function $(t,n){return n?pt(t,n):ee(t)}function tt(t){return t&&v(t.schedule)}function yt(t){return t[t.length-1]}function bt(t){return v(yt(t))?t.pop():void 0}function et(t){return tt(yt(t))?t.pop():void 0}function an(t,n){return"number"==typeof yt(t)?t.pop():n}function re(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=et(t);return e?pt(t,e):$(t)}function ie(t,n){var e=v(t)?t:function(){return t},r=function(i){return i.error(e())};return new h(n?function(i){return n.schedule(r,0,i)}:r)}var nt=(()=>{return(t=nt||(nt={})).NEXT="N",t.ERROR="E",t.COMPLETE="C",nt;var t})(),cn=function(){function t(n,e,r){this.kind=n,this.value=e,this.error=r,this.hasValue="N"===n}return t.prototype.observe=function(n){return function(t,n){var e,r,i,u=t.kind,a=t.value,c=t.error;if("string"!=typeof u)throw new TypeError('Invalid notification, missing "kind"');"N"===u?null===(e=n.next)||void 0===e||e.call(n,a):"E"===u?null===(r=n.error)||void 0===r||r.call(n,c):null===(i=n.complete)||void 0===i||i.call(n)}(this,n)},t.prototype.do=function(n,e,r){var i=this,o=i.kind,a=i.error;return"N"===o?null==n?void 0:n(i.value):"E"===o?null==e?void 0:e(a):null==r?void 0:r()},t.prototype.accept=function(n,e,r){var i;return v(null===(i=n)||void 0===i?void 0:i.next)?this.observe(n):this.do(n,e,r)},t.prototype.toObservable=function(){var n=this,e=n.kind,i=n.error,o="N"===e?re(n.value):"E"===e?ie(function(){return i}):"C"===e?I:0;if(!o)throw new TypeError("Unexpected notification kind "+e);return o},t.createNext=function(n){return new t("N",n)},t.createError=function(n){return new t("E",void 0,n)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t}();function sn(t){return!!t&&(t instanceof h||v(t.lift)&&v(t.subscribe))}var gt=j(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function ln(t,n){var e="object"==typeof n;return new Promise(function(r,i){var u,o=!1;t.subscribe({next:function(a){u=a,o=!0},error:i,complete:function(){o?r(u):e?r(n.defaultValue):i(new gt)}})})}function hn(t,n){var e="object"==typeof n;return new Promise(function(r,i){var o=new ct({next:function(u){r(u),o.unsubscribe()},error:i,complete:function(){e?r(n.defaultValue):i(new gt)}});t.subscribe(o)})}var vn=j(function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}),dn=j(function(t){return function(e){t(this),this.name="NotFoundError",this.message=e}}),pn=j(function(t){return function(e){t(this),this.name="SequenceError",this.message=e}}),oe=j(function(t){return function(e){void 0===e&&(e=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}});function yn(t,n){return void 0===n&&(n=0),C(function(e,r){r.add(t.schedule(function(){return e.subscribe(r)},n))})}function ue(t,n){return C(function(e,r){var i=0;e.subscribe(new E(r,function(o){r.next(t.call(n,o,i++))}))})}var bn=Array.isArray;function U(t){return ue(function(n){return function(t,n){return bn(n)?t.apply(void 0,w([],g(n))):t(n)}(t,n)})}function wn(t,n){return void 0===n&&(n=0),C(function(e,r){e.subscribe(new E(r,function(i){return r.add(t.schedule(function(){return r.next(i)},n))},function(){return r.add(t.schedule(function(){return r.complete()},n))},function(i){return r.add(t.schedule(function(){return r.error(i)},n))}))})}function rt(t,n,e,r){if(e){if(!tt(e))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return rt(t,n,r).apply(this,i).pipe(U(e))};r=e}return r?function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return rt(t,n).apply(this,i).pipe(yn(r),wn(r))}:function(){for(var i=this,o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];var a=new Nt,c=!0;return new h(function(f){var s=a.subscribe(f);if(c){c=!1;var p=!1,l=!1;n.apply(i,w(w([],g(o)),[function(){for(var d=[],y=0;y<arguments.length;y++)d[y]=arguments[y];if(t){var m=d.shift();if(null!=m)return void a.error(m)}a.next(1<d.length?d:d[0]),l=!0,p&&a.complete()}])),l&&a.complete(),p=!0}return s})}}function Sn(t,n,e){return rt(!1,t,n,e)}function _n(t,n,e){return rt(!0,t,n,e)}var En=Array.isArray,An=Object.getPrototypeOf,In=Object.prototype,xn=Object.keys;function ae(t){if(1===t.length){var n=t[0];if(En(n))return{args:n,keys:null};if(function(t){return t&&"object"==typeof t&&An(t)===In}(n)){var e=xn(n);return{args:e.map(function(r){return n[r]}),keys:e}}}return{args:t,keys:null}}function ce(t,n){return t.reduce(function(e,r,i){return e[r]=n[i],e},{})}function Pn(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=et(t),r=bt(t),i=ae(t),o=i.args,u=i.keys;if(0===o.length)return Z([],e);var a=new h(jn(o,e,u?function(c){return ce(u,c)}:F));return r?a.pipe(U(r)):a}function jn(t,n,e){return void 0===e&&(e=F),function(r){fe(n,function(){for(var i=t.length,o=new Array(i),u=i,a=i,c=function(s){fe(n,function(){var p=Z(t[s],n),l=!1;p.subscribe(new E(r,function(d){o[s]=d,l||(l=!0,a--),a||r.next(e(o.slice()))},function(){--u||r.complete()}))},r)},f=0;f<i;f++)c(f)},r)}}function fe(t,n,e){t?e.add(t.schedule(n)):n()}function wt(t,n,e){return void 0===e&&(e=1/0),v(n)?wt(function(r,i){return ue(function(o,u){return n(r,o,i,u)})(_(t(r,i)))},e):("number"==typeof n&&(e=n),C(function(r,i){return function(t,n,e,r,i,o,u,a){var c=[],f=0,s=0,p=!1,l=function(){p&&!c.length&&!f&&n.complete()},d=function(m){return f<r?y(m):c.push(m)},y=function(m){f++;var k=!1;_(e(m,s++)).subscribe(new E(n,function(x){n.next(x)},function(){k=!0},void 0,function(){if(k)try{f--;for(;c.length&&f<r;)O=void 0,O=c.shift(),y(O);l()}catch(O){n.error(O)}var O}))};return t.subscribe(new E(n,d,function(){p=!0,l()})),function(){}}(r,i,t,e)}))}function se(t){return void 0===t&&(t=1/0),wt(F,t)}function Fn(){return se(1)}function Cn(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Fn()($(t,et(t)))}function it(t){return new h(function(n){_(t()).subscribe(n)})}var kn={connector:function(){return new q},resetOnDisconnect:!0};function Rn(t,n){void 0===n&&(n=kn);var e=null,r=n.connector,i=n.resetOnDisconnect,o=void 0===i||i,u=r(),a=new h(function(c){return u.subscribe(c)});return a.connect=function(){return(!e||e.closed)&&(e=it(function(){return t}).subscribe(u),o&&e.add(function(){return u=r()})),e},a}function Vn(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=bt(t),r=ae(t),i=r.args,o=r.keys,u=new h(function(a){var c=i.length;if(c)for(var f=new Array(c),s=c,p=c,l=function(y){var m=!1;_(i[y]).subscribe(new E(a,function(k){m||(m=!0,p--),f[y]=k},function(){(!--s||!m)&&(p||a.next(o?ce(o,f):f),a.complete())}))},d=0;d<c;d++)l(d);else a.complete()});return e?u.pipe(U(e)):u}var Nn=["addListener","removeListener"],qn=["addEventListener","removeEventListener"],Ln=["on","off"];function St(t,n,e,r){if(v(e)&&(r=e,e=void 0),r)return St(t,n,e).pipe(U(r));var i=g(function(t){return v(t.addEventListener)&&v(t.removeEventListener)}(t)?qn.map(function(a){return function(c){return t[a](n,c,e)}}):function(t){return v(t.addListener)&&v(t.removeListener)}(t)?Nn.map(le(t,n)):function(t){return v(t.on)&&v(t.off)}(t)?Ln.map(le(t,n)):[],2),o=i[0],u=i[1];if(!o&&mt(t))return wt(function(a){return St(a,n,e)})($(t));if(!o)throw new TypeError("Invalid event target");return new h(function(a){var c=function(){for(var f=[],s=0;s<arguments.length;s++)f[s]=arguments[s];return a.next(1<f.length?f:f[0])};return o(c),function(){return u(c)}})}function le(t,n){return function(e){return function(r){return t[e](n,r)}}}function he(t,n,e){return e?he(t,n).pipe(U(e)):new h(function(r){var i=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return r.next(1===u.length?u[0]:u)},o=t(i);return v(n)?function(){return n(i,o)}:void 0})}function zn(t,n,e,r,i){var o,u,a,c;function f(){var s;return ut(this,function(p){switch(p.label){case 0:s=c,p.label=1;case 1:return!n||n(s)?[4,a(s)]:[3,4];case 2:p.sent(),p.label=3;case 3:return s=e(s),[3,1];case 4:return[2]}})}return 1===arguments.length?(c=(o=t).initialState,n=o.condition,e=o.iterate,a=void 0===(u=o.resultSelector)?F:u,i=o.scheduler):(c=t,!r||tt(r)?(a=F,i=r):a=r),it(i?function(){return Gt(f(),i)}:f)}function Yn(t,n,e){return it(function(){return t()?n:e})}function ve(t,n,e){void 0===t&&(t=0),void 0===e&&(e=Dt);var r=-1;return null!=n&&(tt(n)?e=n:r=n),new h(function(i){var o=function(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;o<0&&(o=0);var u=0;return e.schedule(function(){i.closed||(i.next(u++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Wn(t,n){return void 0===t&&(t=0),void 0===n&&(n=dt),t<0&&(t=0),ve(t,t,n)}function Gn(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=et(t),r=an(t,1/0),i=t;return i.length?1===i.length?_(i[0]):se(r)($(i,e)):I}var de=new h(A);function Qn(){return de}var Jn=Array.isArray;function ot(t){return 1===t.length&&Jn(t[0])?t[0]:t}function Hn(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=ot(t);return C(function(r,i){var o=w([r],g(e)),u=function(){if(!i.closed)if(o.length>0){var a=void 0;try{a=_(o.shift())}catch(f){return void u()}var c=new E(i,void 0,A,A);i.add(a.subscribe(c)),c.add(u)}else i.complete()};u()})}function Kn(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Hn(ot(t))(I)}function Xn(t,n){return Z(Object.entries(t),n)}function Zn(t,n){return function(e,r){return!t.call(n,e,r)}}function pe(t,n){return C(function(e,r){var i=0;e.subscribe(new E(r,function(o){return t.call(n,o,i++)&&r.next(o)}))})}function $n(t,n,e){return[pe(n,e)(_(t)),pe(Zn(n,e))(_(t))]}function tr(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===(t=ot(t)).length?_(t[0]):new h(er(t))}function er(t){return function(n){for(var e=[],r=function(o){e.push(_(t[o]).subscribe(new E(n,function(u){if(e){for(var a=0;a<e.length;a++)a!==o&&e[a].unsubscribe();e=null}n.next(u)})))},i=0;e&&!n.closed&&i<t.length;i++)r(i)}}function nr(t,n,e){if(null==n&&(n=t,t=0),n<=0)return I;var r=n+t;return new h(e?function(i){var o=t;return e.schedule(function(){o<r?(i.next(o++),this.schedule()):i.complete()})}:function(i){for(var o=t;o<r&&!i.closed;)i.next(o++);i.complete()})}function rr(t,n){return new h(function(e){var r=t(),i=n(r);return(i?_(i):I).subscribe(e),function(){r&&r.unsubscribe()}})}function ir(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=bt(t),r=ot(t);return r.length?new h(function(i){var o=r.map(function(){return[]}),u=r.map(function(){return!1});i.add(function(){o=u=null});for(var a=function(f){_(r[f]).subscribe(new E(i,function(s){if(o[f].push(s),o.every(function(l){return l.length})){var p=o.map(function(l){return l.shift()});i.next(e?e.apply(void 0,w([],g(p))):p),o.some(function(l,d){return!l.length&&u[d]})&&i.complete()}},function(){u[f]=!0,!o[f].length&&i.complete()}))},c=0;!i.closed&&c<r.length;c++)a(c);return function(){o=u=null}}):I}}}]);
|
package/build/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,6DAAoD;AAiBpD;;;GAGG;AACU,QAAA,oBAAoB,GAAG,CAAC,UAAyB,EAAE,EAAE,EAAE;IAChE,OAAO;6BAEC,qBAAqB,CAAC,OAAO,EAAE;QAC3B,aAAa;QACb,uBAAuB;QACvB,cAAc;QACd,kBAAkB;QAClB,yBAAyB;QACzB,0BAA0B;QAC1B,gBAAgB;QAChB,qBAAqB;QACrB,0BAA0B;QAC1B,iBAAiB;QACjB,8BAA8B;QAC9B,6BAA6B;QAC7B,eAAe;QACf,mBAAmB;KACtB,CACL;KACH,CAAC;AACN,CAAC,CAAA;AAED;;;GAGG;AACU,QAAA,YAAY,GAAG,CAAC,UAAyB,EAAE,EAAE,EAAE;IACxD,MAAM,UAAU,GAAG,yBAAa,EAAE,CAAC;IACnC,MAAM,cAAc,GAAG,4BAAoB,CAAC,OAAO,CAAC,CAAC;IACrD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC;IACxC,IAAI,OAAO,CAAC,oCAAoC,EAAE;QAC9C,OAAO,UAAU;aACZ,OAAO,CAAC,UAAU,EAAE,eAAe,OAAO,IAAI,CAAC;aAC/C,OAAO,CAAC,SAAS,EAAE,mDAAmD,CAAC,CAAC;KAChF;SAAM;QACH,OAAO,UAAU;aACZ,OAAO,CAAC,UAAU,EAAE,eAAe,OAAO,IAAI,CAAC;aAC/C,OAAO,CAAC,SAAS,EAAE,WAAW,cAAc,kBAAkB,CAAC,CAAC;KACxE;AACL,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,aAA4B,EAAE,IAAmC,EAAE,EAAE;IAChG,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;SACtC,MAAM,CAAC,CAAC,GAAQ,EAAoC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;SAC1E,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,0BAA0B,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IAErE,OAAO,CAAE,GAAG,EAAE,GAAG,QAAQ,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC/C,CAAC,CAAC;AACF,SAAS,0BAA0B,CAAC,MAAW,EAAE,YAAuC;IACpF,IAAI,MAAM,EAAE;QACR,QAAQ,OAAO,MAAM,EAAE;YACnB,KAAK,QAAQ;gBACX,OAAO,GAAG,YAAY,KAAK,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC;SAC1D;QACD,OAAO,GAAG,YAAY,OAAO,MAAM,KAAK,CAAC;KAC5C;IACD,OAAO,EAAE,CAAC;AACd,CAAC;AAED,6CAAoD;AAA3C,4GAAA,gBAAgB,OAAA;AAEzB,kBAAe,oBAAY,CAAC"}
|
package/build/index.test.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":";;AAAA,2BAAkC;AAClC,+BAA+B;AAC/B,mCAA6D;AAC7D,yDAAyD;AAEzD,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM,MAAM,GAAG,4BAAoB,CAAC;YAClC,OAAO,EAAE,GAAG;YACZ,YAAY,EAAE;;QAEZ;YACF,WAAW,EAAE,6BAA6B;YAC1C,cAAc,EAAE;gBACd,iBAAiB,EAAE,sBAAsB;aAC1C;YACD,eAAe,EAAE;gBACf,KAAK,EAAE,MAAM;aACd;SACF,CAAC,CAAC;QACH,MAAM,SAAS,GAAG,QAAQ,CAAC;;;QAGvB,MAAM;wBACU,CAAC,EAAE,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC;YACxB,YAAY,EAAE;;QAEZ;YACF,WAAW,EAAE,6BAA6B;YAC1C,cAAc,EAAE;gBACd,iBAAiB,EAAE,sBAAsB;aAC1C;YACD,eAAe,EAAE;gBACf,KAAK,EAAE,MAAM;aACd;SACF,CAAC,CAAC;QAEH,MAAM,CAAC,MAAM,CAAC,CAAC,eAAe,EAAE,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACtC,aAAqB,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QAC1C,aAAqB,CAAC,OAAO,CAAC,eAAe,CAAC,iBAAY,CAAC,cAAO,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;QACvG,MAAM,CAAC,oBAAY,CAAC;YAClB,OAAO,EAAE,GAAG;YACZ,YAAY,EAAE;;QAEZ;YACF,WAAW,EAAE,6BAA6B;YAC1C,gBAAgB,EAAE,iBAAiB;SACpC,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-altair-html.js","sourceRoot":"","sources":["../../src/utils/get-altair-html.ts"],"names":[],"mappings":";;AAAA,2BAAkC;AAClC,+BAA+B;AAC/B,yCAA8C;AAE9C,SAAwB,aAAa;IACnC,OAAO,iBAAY,CAAC,cAAO,CAAC,2BAAgB,EAAE,EAAE,YAAY,CAAC,EAAE,MAAM,CAAC,CAAC;AACzE,CAAC;AAFD,gCAEC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-dist.js","sourceRoot":"","sources":["../../src/utils/get-dist.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B;;GAEG;AACU,QAAA,gBAAgB,GAAG,GAAG,EAAE,CAAC,cAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC"}
|
package/scripts/prepare_dist.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
const ncp = require('ncp').ncp;
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
|
|
5
|
-
ncp.limit = 16;
|
|
6
|
-
|
|
7
|
-
const deleteFolderRecursive = function(path) {
|
|
8
|
-
if (fs.existsSync(path)) {
|
|
9
|
-
fs.readdirSync(path).forEach(function(file, index){
|
|
10
|
-
var curPath = path + "/" + file;
|
|
11
|
-
if (fs.lstatSync(curPath).isDirectory()) { // recurse
|
|
12
|
-
deleteFolderRecursive(curPath);
|
|
13
|
-
} else { // delete file
|
|
14
|
-
fs.unlinkSync(curPath);
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
fs.rmdirSync(path);
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const distSrc = path.join(__dirname, '../node_modules/altair-app/dist'); // From the altair-app dist folder
|
|
22
|
-
const distDestination = path.join(__dirname, '../build/dist'); // To altair-static dist folder
|
|
23
|
-
deleteFolderRecursive(distDestination);
|
|
24
|
-
fs.mkdirSync(distDestination, { recursive: true });
|
|
25
|
-
|
|
26
|
-
const srcDir = path.resolve(__dirname, '../src');
|
|
27
|
-
const buildDir = path.resolve(__dirname, '../build');
|
|
28
|
-
|
|
29
|
-
const indexHtmlFile = path.join(distDestination, 'index.html');
|
|
30
|
-
|
|
31
|
-
// const cdnFile = fileName => `https://cdn.jsdelivr.net/npm/altair-static/dist/${fileName}`;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Copy dist files into dist directory.
|
|
35
|
-
* Set base to ./
|
|
36
|
-
* Set the scripts and styles in template.html
|
|
37
|
-
* Add template.html to dist directory.
|
|
38
|
-
*/
|
|
39
|
-
ncp(distSrc, distDestination, function (err) {
|
|
40
|
-
if (err) {
|
|
41
|
-
return console.error(err);
|
|
42
|
-
}
|
|
43
|
-
console.log('Done copying dist folder!');
|
|
44
|
-
|
|
45
|
-
// let indexHtmlStr = fs.readFileSync(indexHtmlFile, 'utf8');
|
|
46
|
-
|
|
47
|
-
// Adjust the base URL to be relative to the current path
|
|
48
|
-
// indexHtmlStr = indexHtmlStr.replace('<base href="/">', '<base href="https://cdn.jsdelivr.net/npm/altair-static/dist/">'
|
|
49
|
-
// /*'<base href="./">'*/);
|
|
50
|
-
|
|
51
|
-
// Write the new string back to file
|
|
52
|
-
// fs.writeFileSync(indexHtmlFile, indexHtmlStr, 'utf8');
|
|
53
|
-
|
|
54
|
-
try {
|
|
55
|
-
const stats = JSON.parse(fs.readFileSync(path.resolve(distSrc, 'stats.json')));
|
|
56
|
-
|
|
57
|
-
let htmlString = fs.readFileSync(path.resolve(srcDir, 'index.html'), 'utf8')
|
|
58
|
-
// Set base to ./
|
|
59
|
-
.replace('<base href="/">', '<base href="./">')
|
|
60
|
-
// Set scripts and styles
|
|
61
|
-
.replace('[% STYLES_FILE %]', stats.assetsByChunkName.styles)
|
|
62
|
-
.replace('[% RUNTIME_SCRIPT %]', stats.assetsByChunkName.runtime)
|
|
63
|
-
.replace('[% POLYFILLS_SCRIPT %]', stats.assetsByChunkName.polyfills)
|
|
64
|
-
.replace('[% MAIN_SCRIPT %]', stats.assetsByChunkName.main);
|
|
65
|
-
|
|
66
|
-
fs.writeFileSync(path.join(distDestination, 'index.html'), htmlString);
|
|
67
|
-
|
|
68
|
-
// Remove stats.json after writing index.html file (the file is too big and not useful anymore)
|
|
69
|
-
fs.unlinkSync(path.resolve(distDestination, 'stats.json'));
|
|
70
|
-
|
|
71
|
-
// Remove README assets
|
|
72
|
-
deleteFolderRecursive(path.join(distDestination, 'assets/img/readme'));
|
|
73
|
-
|
|
74
|
-
} catch(err) {
|
|
75
|
-
console.error('stats.json not found', err);
|
|
76
|
-
}
|
|
77
|
-
});
|