@jackchuka/gql-ingest 1.3.0 → 1.5.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/bin/cli.js CHANGED
@@ -1,50 +1,228 @@
1
1
  #!/usr/bin/env node
2
- var pr=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var ar=pr((xo,Yi)=>{Yi.exports={name:"@jackchuka/gql-ingest",version:"1.3.0",description:"A CLI tool for ingesting data from CSV files into a GraphQL API",type:"module",main:"dist/cli.js",bin:{"gql-ingest":"bin/cli.js"},scripts:{build:"node esbuild.config.js","build:types":"tsc --emitDeclarationOnly","build:all":"npm run build && npm run build:types",dev:"ts-node src/cli.ts",test:"jest","test:watch":"jest --watch",prepublishOnly:"npm run build:all"},keywords:["graphql","cli","csv","ingest","api"],author:"jackchuka",license:"MIT",repository:{type:"git",url:"https://github.com/jackchuka/gql-ingest.git"},dependencies:{commander:"^14.0.0","csv-parser":"^3.0.0","graphql-request":"^7.2.0","js-yaml":"^4.1.0"},devDependencies:{"@types/jest":"^30.0.0","@types/js-yaml":"^4.0.9","@types/node":"^24.0.4",esbuild:"^0.25.5",jest:"^30.0.3","ts-jest":"^29.4.0","ts-node":"^10.9.0",typescript:"^5.3.0"},files:["dist/**/*","src/**/*"]}});import{Command as Hi}from"commander";import{GraphQLClient as $i}from"graphql-request";import tr from"fs";import Ni from"path";function ke(e){return typeof e>"u"||e===null}function hr(e){return typeof e=="object"&&e!==null}function dr(e){return Array.isArray(e)?e:ke(e)?[]:[e]}function mr(e,r){var n,o,i,l;if(r)for(l=Object.keys(r),n=0,o=l.length;n<o;n+=1)i=l[n],e[i]=r[i];return e}function gr(e,r){var n="",o;for(o=0;o<r;o+=1)n+=e;return n}function yr(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var xr=ke,vr=hr,Ar=dr,Cr=gr,wr=yr,br=mr,C={isNothing:xr,isObject:vr,toArray:Ar,repeat:Cr,isNegativeZero:wr,extend:br};function Ie(e,r){var n="",o=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
3
-
4
- `+e.mark.snippet),o+" "+n):o}function q(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=Ie(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}q.prototype=Object.create(Error.prototype);q.prototype.constructor=q;q.prototype.toString=function(r){return this.name+": "+Ie(this,r)};var E=q;function ee(e,r,n,o,i){var l="",t="",c=Math.floor(i/2)-1;return o-r>c&&(l=" ... ",r=o-c+l.length),n-o>c&&(t=" ...",n=o+c-t.length),{str:l+e.slice(r,n).replace(/\t/g,"\u2192")+t,pos:o-r+l.length}}function re(e,r){return C.repeat(" ",r-e.length)+e}function Er(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var n=/\r?\n|\r|\0/g,o=[0],i=[],l,t=-1;l=n.exec(e.buffer);)i.push(l.index),o.push(l.index+l[0].length),e.position<=l.index&&t<0&&(t=o.length-2);t<0&&(t=o.length-1);var c="",s,u,f=Math.min(e.line+r.linesAfter,i.length).toString().length,a=r.maxLength-(r.indent+f+3);for(s=1;s<=r.linesBefore&&!(t-s<0);s++)u=ee(e.buffer,o[t-s],i[t-s],e.position-(o[t]-o[t-s]),a),c=C.repeat(" ",r.indent)+re((e.line-s+1).toString(),f)+" | "+u.str+`
5
- `+c;for(u=ee(e.buffer,o[t],i[t],e.position,a),c+=C.repeat(" ",r.indent)+re((e.line+1).toString(),f)+" | "+u.str+`
6
- `,c+=C.repeat("-",r.indent+f+3+u.pos)+`^
7
- `,s=1;s<=r.linesAfter&&!(t+s>=i.length);s++)u=ee(e.buffer,o[t+s],i[t+s],e.position-(o[t]-o[t+s]),a),c+=C.repeat(" ",r.indent)+re((e.line+s+1).toString(),f)+" | "+u.str+`
8
- `;return c.replace(/\n$/,"")}var Sr=Er,Fr=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_r=["scalar","sequence","mapping"];function Tr(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(o){r[String(o)]=n})}),r}function Rr(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(Fr.indexOf(n)===-1)throw new E('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=Tr(r.styleAliases||null),_r.indexOf(this.kind)===-1)throw new E('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var w=Rr;function xe(e,r){var n=[];return e[r].forEach(function(o){var i=n.length;n.forEach(function(l,t){l.tag===o.tag&&l.kind===o.kind&&l.multi===o.multi&&(i=t)}),n[i]=o}),n}function Or(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function o(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(o);return e}function ie(e){return this.extend(e)}ie.prototype.extend=function(r){var n=[],o=[];if(r instanceof w)o.push(r);else if(Array.isArray(r))o=o.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(n=n.concat(r.implicit)),r.explicit&&(o=o.concat(r.explicit));else throw new E("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(l){if(!(l instanceof w))throw new E("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(l.loadKind&&l.loadKind!=="scalar")throw new E("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(l.multi)throw new E("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),o.forEach(function(l){if(!(l instanceof w))throw new E("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(ie.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(o),i.compiledImplicit=xe(i,"implicit"),i.compiledExplicit=xe(i,"explicit"),i.compiledTypeMap=Or(i.compiledImplicit,i.compiledExplicit),i};var Lr=ie,Dr=new w("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),kr=new w("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Ir=new w("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Pr=new Lr({explicit:[Dr,kr,Ir]});function Mr(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function Nr(){return null}function jr(e){return e===null}var $r=new w("tag:yaml.org,2002:null",{kind:"scalar",resolve:Mr,construct:Nr,predicate:jr,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function qr(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function Br(e){return e==="true"||e==="True"||e==="TRUE"}function Yr(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Hr=new w("tag:yaml.org,2002:bool",{kind:"scalar",resolve:qr,construct:Br,predicate:Yr,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Ur(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Gr(e){return 48<=e&&e<=55}function Wr(e){return 48<=e&&e<=57}function Kr(e){if(e===null)return!1;var r=e.length,n=0,o=!1,i;if(!r)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===r)return!0;if(i=e[++n],i==="b"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;o=!0}return o&&i!=="_"}if(i==="x"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(!Ur(e.charCodeAt(n)))return!1;o=!0}return o&&i!=="_"}if(i==="o"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(!Gr(e.charCodeAt(n)))return!1;o=!0}return o&&i!=="_"}}if(i==="_")return!1;for(;n<r;n++)if(i=e[n],i!=="_"){if(!Wr(e.charCodeAt(n)))return!1;o=!0}return!(!o||i==="_")}function Qr(e){var r=e,n=1,o;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),o=r[0],(o==="-"||o==="+")&&(o==="-"&&(n=-1),r=r.slice(1),o=r[0]),r==="0")return 0;if(o==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function Vr(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!C.isNegativeZero(e)}var Xr=new w("tag:yaml.org,2002:int",{kind:"scalar",resolve:Kr,construct:Qr,predicate:Vr,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Zr=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Jr(e){return!(e===null||!Zr.test(e)||e[e.length-1]==="_")}function zr(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var en=/^[-+]?[0-9]+e/;function rn(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(C.isNegativeZero(e))return"-0.0";return n=e.toString(10),en.test(n)?n.replace("e",".e"):n}function nn(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||C.isNegativeZero(e))}var on=new w("tag:yaml.org,2002:float",{kind:"scalar",resolve:Jr,construct:zr,predicate:nn,represent:rn,defaultStyle:"lowercase"}),tn=Pr.extend({implicit:[$r,Hr,Xr,on]}),ln=tn,Pe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Me=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function cn(e){return e===null?!1:Pe.exec(e)!==null||Me.exec(e)!==null}function sn(e){var r,n,o,i,l,t,c,s=0,u=null,f,a,h;if(r=Pe.exec(e),r===null&&(r=Me.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],o=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(n,o,i));if(l=+r[4],t=+r[5],c=+r[6],r[7]){for(s=r[7].slice(0,3);s.length<3;)s+="0";s=+s}return r[9]&&(f=+r[10],a=+(r[11]||0),u=(f*60+a)*6e4,r[9]==="-"&&(u=-u)),h=new Date(Date.UTC(n,o,i,l,t,c,s)),u&&h.setTime(h.getTime()-u),h}function un(e){return e.toISOString()}var an=new w("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:cn,construct:sn,instanceOf:Date,represent:un});function fn(e){return e==="<<"||e===null}var pn=new w("tag:yaml.org,2002:merge",{kind:"scalar",resolve:fn}),se=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
9
- \r`;function hn(e){if(e===null)return!1;var r,n,o=0,i=e.length,l=se;for(n=0;n<i;n++)if(r=l.indexOf(e.charAt(n)),!(r>64)){if(r<0)return!1;o+=6}return o%8===0}function dn(e){var r,n,o=e.replace(/[\r\n=]/g,""),i=o.length,l=se,t=0,c=[];for(r=0;r<i;r++)r%4===0&&r&&(c.push(t>>16&255),c.push(t>>8&255),c.push(t&255)),t=t<<6|l.indexOf(o.charAt(r));return n=i%4*6,n===0?(c.push(t>>16&255),c.push(t>>8&255),c.push(t&255)):n===18?(c.push(t>>10&255),c.push(t>>2&255)):n===12&&c.push(t>>4&255),new Uint8Array(c)}function mn(e){var r="",n=0,o,i,l=e.length,t=se;for(o=0;o<l;o++)o%3===0&&o&&(r+=t[n>>18&63],r+=t[n>>12&63],r+=t[n>>6&63],r+=t[n&63]),n=(n<<8)+e[o];return i=l%3,i===0?(r+=t[n>>18&63],r+=t[n>>12&63],r+=t[n>>6&63],r+=t[n&63]):i===2?(r+=t[n>>10&63],r+=t[n>>4&63],r+=t[n<<2&63],r+=t[64]):i===1&&(r+=t[n>>2&63],r+=t[n<<4&63],r+=t[64],r+=t[64]),r}function gn(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var yn=new w("tag:yaml.org,2002:binary",{kind:"scalar",resolve:hn,construct:dn,predicate:gn,represent:mn}),xn=Object.prototype.hasOwnProperty,vn=Object.prototype.toString;function An(e){if(e===null)return!0;var r=[],n,o,i,l,t,c=e;for(n=0,o=c.length;n<o;n+=1){if(i=c[n],t=!1,vn.call(i)!=="[object Object]")return!1;for(l in i)if(xn.call(i,l))if(!t)t=!0;else return!1;if(!t)return!1;if(r.indexOf(l)===-1)r.push(l);else return!1}return!0}function Cn(e){return e!==null?e:[]}var wn=new w("tag:yaml.org,2002:omap",{kind:"sequence",resolve:An,construct:Cn}),bn=Object.prototype.toString;function En(e){if(e===null)return!0;var r,n,o,i,l,t=e;for(l=new Array(t.length),r=0,n=t.length;r<n;r+=1){if(o=t[r],bn.call(o)!=="[object Object]"||(i=Object.keys(o),i.length!==1))return!1;l[r]=[i[0],o[i[0]]]}return!0}function Sn(e){if(e===null)return[];var r,n,o,i,l,t=e;for(l=new Array(t.length),r=0,n=t.length;r<n;r+=1)o=t[r],i=Object.keys(o),l[r]=[i[0],o[i[0]]];return l}var Fn=new w("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:En,construct:Sn}),_n=Object.prototype.hasOwnProperty;function Tn(e){if(e===null)return!0;var r,n=e;for(r in n)if(_n.call(n,r)&&n[r]!==null)return!1;return!0}function Rn(e){return e!==null?e:{}}var On=new w("tag:yaml.org,2002:set",{kind:"mapping",resolve:Tn,construct:Rn}),Ne=ln.extend({implicit:[an,pn],explicit:[yn,wn,Fn,On]}),R=Object.prototype.hasOwnProperty,U=1,je=2,$e=3,G=4,ne=1,Ln=2,ve=3,Dn=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,kn=/[\x85\u2028\u2029]/,In=/[,\[\]\{\}]/,qe=/^(?:!|!!|![a-z\-]+!)$/i,Be=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ae(e){return Object.prototype.toString.call(e)}function F(e){return e===10||e===13}function D(e){return e===9||e===32}function S(e){return e===9||e===32||e===10||e===13}function I(e){return e===44||e===91||e===93||e===123||e===125}function Pn(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function Mn(e){return e===120?2:e===117?4:e===85?8:0}function Nn(e){return 48<=e&&e<=57?e-48:-1}function Ce(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
10
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function jn(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Ye=new Array(256),He=new Array(256);for(L=0;L<256;L++)Ye[L]=Ce(L)?1:0,He[L]=Ce(L);var L;function $n(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||Ne,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ue(e,r){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=Sr(n),new E(r,n)}function p(e,r){throw Ue(e,r)}function W(e,r){e.onWarning&&e.onWarning.call(null,Ue(e,r))}var we={YAML:function(r,n,o){var i,l,t;r.version!==null&&p(r,"duplication of %YAML directive"),o.length!==1&&p(r,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(o[0]),i===null&&p(r,"ill-formed argument of the YAML directive"),l=parseInt(i[1],10),t=parseInt(i[2],10),l!==1&&p(r,"unacceptable YAML version of the document"),r.version=o[0],r.checkLineBreaks=t<2,t!==1&&t!==2&&W(r,"unsupported YAML version of the document")},TAG:function(r,n,o){var i,l;o.length!==2&&p(r,"TAG directive accepts exactly two arguments"),i=o[0],l=o[1],qe.test(i)||p(r,"ill-formed tag handle (first argument) of the TAG directive"),R.call(r.tagMap,i)&&p(r,'there is a previously declared suffix for "'+i+'" tag handle'),Be.test(l)||p(r,"ill-formed tag prefix (second argument) of the TAG directive");try{l=decodeURIComponent(l)}catch{p(r,"tag prefix is malformed: "+l)}r.tagMap[i]=l}};function T(e,r,n,o){var i,l,t,c;if(r<n){if(c=e.input.slice(r,n),o)for(i=0,l=c.length;i<l;i+=1)t=c.charCodeAt(i),t===9||32<=t&&t<=1114111||p(e,"expected valid JSON character");else Dn.test(c)&&p(e,"the stream contains non-printable characters");e.result+=c}}function be(e,r,n,o){var i,l,t,c;for(C.isObject(n)||p(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),t=0,c=i.length;t<c;t+=1)l=i[t],R.call(r,l)||(r[l]=n[l],o[l]=!0)}function P(e,r,n,o,i,l,t,c,s){var u,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,f=i.length;u<f;u+=1)Array.isArray(i[u])&&p(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Ae(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&Ae(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),o==="tag:yaml.org,2002:merge")if(Array.isArray(l))for(u=0,f=l.length;u<f;u+=1)be(e,r,l[u],n);else be(e,r,l,n);else!e.json&&!R.call(n,i)&&R.call(r,i)&&(e.line=t||e.line,e.lineStart=c||e.lineStart,e.position=s||e.position,p(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(r,i,{configurable:!0,enumerable:!0,writable:!0,value:l}):r[i]=l,delete n[i];return r}function ue(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):p(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function A(e,r,n){for(var o=0,i=e.input.charCodeAt(e.position);i!==0;){for(;D(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(F(i))for(ue(e),i=e.input.charCodeAt(e.position),o++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&o!==0&&e.lineIndent<n&&W(e,"deficient indentation"),o}function V(e){var r=e.position,n;return n=e.input.charCodeAt(r),!!((n===45||n===46)&&n===e.input.charCodeAt(r+1)&&n===e.input.charCodeAt(r+2)&&(r+=3,n=e.input.charCodeAt(r),n===0||S(n)))}function ae(e,r){r===1?e.result+=" ":r>1&&(e.result+=C.repeat(`
11
- `,r-1))}function qn(e,r,n){var o,i,l,t,c,s,u,f,a=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),S(d)||I(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),S(i)||n&&I(i)))return!1;for(e.kind="scalar",e.result="",l=t=e.position,c=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),S(i)||n&&I(i))break}else if(d===35){if(o=e.input.charCodeAt(e.position-1),S(o))break}else{if(e.position===e.lineStart&&V(e)||n&&I(d))break;if(F(d))if(s=e.line,u=e.lineStart,f=e.lineIndent,A(e,!1,-1),e.lineIndent>=r){c=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=t,e.line=s,e.lineStart=u,e.lineIndent=f;break}}c&&(T(e,l,t,!1),ae(e,e.line-s),l=t=e.position,c=!1),D(d)||(t=e.position+1),d=e.input.charCodeAt(++e.position)}return T(e,l,t,!1),e.result?!0:(e.kind=a,e.result=h,!1)}function Bn(e,r){var n,o,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,o=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(T(e,o,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)o=e.position,e.position++,i=e.position;else return!0;else F(n)?(T(e,o,i,!0),ae(e,A(e,!1,r)),o=i=e.position):e.position===e.lineStart&&V(e)?p(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);p(e,"unexpected end of the stream within a single quoted scalar")}function Yn(e,r){var n,o,i,l,t,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return T(e,n,e.position,!0),e.position++,!0;if(c===92){if(T(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),F(c))A(e,!1,r);else if(c<256&&Ye[c])e.result+=He[c],e.position++;else if((t=Mn(c))>0){for(i=t,l=0;i>0;i--)c=e.input.charCodeAt(++e.position),(t=Pn(c))>=0?l=(l<<4)+t:p(e,"expected hexadecimal character");e.result+=jn(l),e.position++}else p(e,"unknown escape sequence");n=o=e.position}else F(c)?(T(e,n,o,!0),ae(e,A(e,!1,r)),n=o=e.position):e.position===e.lineStart&&V(e)?p(e,"unexpected end of the document within a double quoted scalar"):(e.position++,o=e.position)}p(e,"unexpected end of the stream within a double quoted scalar")}function Hn(e,r){var n=!0,o,i,l,t=e.tag,c,s=e.anchor,u,f,a,h,d,m=Object.create(null),y,x,v,g;if(g=e.input.charCodeAt(e.position),g===91)f=93,d=!1,c=[];else if(g===123)f=125,d=!0,c={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),g=e.input.charCodeAt(++e.position);g!==0;){if(A(e,!0,r),g=e.input.charCodeAt(e.position),g===f)return e.position++,e.tag=t,e.anchor=s,e.kind=d?"mapping":"sequence",e.result=c,!0;n?g===44&&p(e,"expected the node content, but found ','"):p(e,"missed comma between flow collection entries"),x=y=v=null,a=h=!1,g===63&&(u=e.input.charCodeAt(e.position+1),S(u)&&(a=h=!0,e.position++,A(e,!0,r))),o=e.line,i=e.lineStart,l=e.position,M(e,r,U,!1,!0),x=e.tag,y=e.result,A(e,!0,r),g=e.input.charCodeAt(e.position),(h||e.line===o)&&g===58&&(a=!0,g=e.input.charCodeAt(++e.position),A(e,!0,r),M(e,r,U,!1,!0),v=e.result),d?P(e,c,m,x,y,v,o,i,l):a?c.push(P(e,null,m,x,y,v,o,i,l)):c.push(y),A(e,!0,r),g=e.input.charCodeAt(e.position),g===44?(n=!0,g=e.input.charCodeAt(++e.position)):n=!1}p(e,"unexpected end of the stream within a flow collection")}function Un(e,r){var n,o,i=ne,l=!1,t=!1,c=r,s=0,u=!1,f,a;if(a=e.input.charCodeAt(e.position),a===124)o=!1;else if(a===62)o=!0;else return!1;for(e.kind="scalar",e.result="";a!==0;)if(a=e.input.charCodeAt(++e.position),a===43||a===45)ne===i?i=a===43?ve:Ln:p(e,"repeat of a chomping mode identifier");else if((f=Nn(a))>=0)f===0?p(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):t?p(e,"repeat of an indentation width identifier"):(c=r+f-1,t=!0);else break;if(D(a)){do a=e.input.charCodeAt(++e.position);while(D(a));if(a===35)do a=e.input.charCodeAt(++e.position);while(!F(a)&&a!==0)}for(;a!==0;){for(ue(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!t||e.lineIndent<c)&&a===32;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!t&&e.lineIndent>c&&(c=e.lineIndent),F(a)){s++;continue}if(e.lineIndent<c){i===ve?e.result+=C.repeat(`
12
- `,l?1+s:s):i===ne&&l&&(e.result+=`
13
- `);break}for(o?D(a)?(u=!0,e.result+=C.repeat(`
14
- `,l?1+s:s)):u?(u=!1,e.result+=C.repeat(`
15
- `,s+1)):s===0?l&&(e.result+=" "):e.result+=C.repeat(`
16
- `,s):e.result+=C.repeat(`
17
- `,l?1+s:s),l=!0,t=!0,s=0,n=e.position;!F(a)&&a!==0;)a=e.input.charCodeAt(++e.position);T(e,n,e.position,!1)}return!0}function Ee(e,r){var n,o=e.tag,i=e.anchor,l=[],t,c=!1,s;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),s=e.input.charCodeAt(e.position);s!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,p(e,"tab characters must not be used in indentation")),!(s!==45||(t=e.input.charCodeAt(e.position+1),!S(t))));){if(c=!0,e.position++,A(e,!0,-1)&&e.lineIndent<=r){l.push(null),s=e.input.charCodeAt(e.position);continue}if(n=e.line,M(e,r,$e,!1,!0),l.push(e.result),A(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>r)&&s!==0)p(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return c?(e.tag=o,e.anchor=i,e.kind="sequence",e.result=l,!0):!1}function Gn(e,r,n){var o,i,l,t,c,s,u=e.tag,f=e.anchor,a={},h=Object.create(null),d=null,m=null,y=null,x=!1,v=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),g=e.input.charCodeAt(e.position);g!==0;){if(!x&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,p(e,"tab characters must not be used in indentation")),o=e.input.charCodeAt(e.position+1),l=e.line,(g===63||g===58)&&S(o))g===63?(x&&(P(e,a,h,d,m,null,t,c,s),d=m=y=null),v=!0,x=!0,i=!0):x?(x=!1,i=!0):p(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=o;else{if(t=e.line,c=e.lineStart,s=e.position,!M(e,n,je,!1,!0))break;if(e.line===l){for(g=e.input.charCodeAt(e.position);D(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),S(g)||p(e,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(P(e,a,h,d,m,null,t,c,s),d=m=y=null),v=!0,x=!1,i=!1,d=e.tag,m=e.result;else if(v)p(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=f,!0}else if(v)p(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=f,!0}if((e.line===l||e.lineIndent>r)&&(x&&(t=e.line,c=e.lineStart,s=e.position),M(e,r,G,!0,i)&&(x?m=e.result:y=e.result),x||(P(e,a,h,d,m,y,t,c,s),d=m=y=null),A(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===l||e.lineIndent>r)&&g!==0)p(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return x&&P(e,a,h,d,m,null,t,c,s),v&&(e.tag=u,e.anchor=f,e.kind="mapping",e.result=a),v}function Wn(e){var r,n=!1,o=!1,i,l,t;if(t=e.input.charCodeAt(e.position),t!==33)return!1;if(e.tag!==null&&p(e,"duplication of a tag property"),t=e.input.charCodeAt(++e.position),t===60?(n=!0,t=e.input.charCodeAt(++e.position)):t===33?(o=!0,i="!!",t=e.input.charCodeAt(++e.position)):i="!",r=e.position,n){do t=e.input.charCodeAt(++e.position);while(t!==0&&t!==62);e.position<e.length?(l=e.input.slice(r,e.position),t=e.input.charCodeAt(++e.position)):p(e,"unexpected end of the stream within a verbatim tag")}else{for(;t!==0&&!S(t);)t===33&&(o?p(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),qe.test(i)||p(e,"named tag handle cannot contain such characters"),o=!0,r=e.position+1)),t=e.input.charCodeAt(++e.position);l=e.input.slice(r,e.position),In.test(l)&&p(e,"tag suffix cannot contain flow indicator characters")}l&&!Be.test(l)&&p(e,"tag name cannot contain such characters: "+l);try{l=decodeURIComponent(l)}catch{p(e,"tag name is malformed: "+l)}return n?e.tag=l:R.call(e.tagMap,i)?e.tag=e.tagMap[i]+l:i==="!"?e.tag="!"+l:i==="!!"?e.tag="tag:yaml.org,2002:"+l:p(e,'undeclared tag handle "'+i+'"'),!0}function Kn(e){var r,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&p(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!S(n)&&!I(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&p(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function Qn(e){var r,n,o;if(o=e.input.charCodeAt(e.position),o!==42)return!1;for(o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!S(o)&&!I(o);)o=e.input.charCodeAt(++e.position);return e.position===r&&p(e,"name of an alias node must contain at least one character"),n=e.input.slice(r,e.position),R.call(e.anchorMap,n)||p(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],A(e,!0,-1),!0}function M(e,r,n,o,i){var l,t,c,s=1,u=!1,f=!1,a,h,d,m,y,x;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,l=t=c=G===n||$e===n,o&&A(e,!0,-1)&&(u=!0,e.lineIndent>r?s=1:e.lineIndent===r?s=0:e.lineIndent<r&&(s=-1)),s===1)for(;Wn(e)||Kn(e);)A(e,!0,-1)?(u=!0,c=l,e.lineIndent>r?s=1:e.lineIndent===r?s=0:e.lineIndent<r&&(s=-1)):c=!1;if(c&&(c=u||i),(s===1||G===n)&&(U===n||je===n?y=r:y=r+1,x=e.position-e.lineStart,s===1?c&&(Ee(e,x)||Gn(e,x,y))||Hn(e,y)?f=!0:(t&&Un(e,y)||Bn(e,y)||Yn(e,y)?f=!0:Qn(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&p(e,"alias node should not have any properties")):qn(e,y,U===n)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):s===0&&(f=c&&Ee(e,x))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&p(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),a=0,h=e.implicitTypes.length;a<h;a+=1)if(m=e.implicitTypes[a],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(R.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,d=e.typeMap.multi[e.kind||"fallback"],a=0,h=d.length;a<h;a+=1)if(e.tag.slice(0,d[a].tag.length)===d[a].tag){m=d[a];break}m||p(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&p(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):p(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function Vn(e){var r=e.position,n,o,i,l=!1,t;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(t=e.input.charCodeAt(e.position))!==0&&(A(e,!0,-1),t=e.input.charCodeAt(e.position),!(e.lineIndent>0||t!==37));){for(l=!0,t=e.input.charCodeAt(++e.position),n=e.position;t!==0&&!S(t);)t=e.input.charCodeAt(++e.position);for(o=e.input.slice(n,e.position),i=[],o.length<1&&p(e,"directive name must not be less than one character in length");t!==0;){for(;D(t);)t=e.input.charCodeAt(++e.position);if(t===35){do t=e.input.charCodeAt(++e.position);while(t!==0&&!F(t));break}if(F(t))break;for(n=e.position;t!==0&&!S(t);)t=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}t!==0&&ue(e),R.call(we,o)?we[o](e,o,i):W(e,'unknown document directive "'+o+'"')}if(A(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,A(e,!0,-1)):l&&p(e,"directives end mark is expected"),M(e,e.lineIndent-1,G,!1,!0),A(e,!0,-1),e.checkLineBreaks&&kn.test(e.input.slice(r,e.position))&&W(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&V(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,A(e,!0,-1));return}if(e.position<e.length-1)p(e,"end of the stream or a document separator is expected");else return}function Ge(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
18
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new $n(e,r),o=e.indexOf("\0");for(o!==-1&&(n.position=o,p(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Vn(n);return n.documents}function Xn(e,r,n){r!==null&&typeof r=="object"&&typeof n>"u"&&(n=r,r=null);var o=Ge(e,n);if(typeof r!="function")return o;for(var i=0,l=o.length;i<l;i+=1)r(o[i])}function Zn(e,r){var n=Ge(e,r);if(n.length!==0){if(n.length===1)return n[0];throw new E("expected a single document in the stream, but found more")}}var Jn=Xn,zn=Zn,We={loadAll:Jn,load:zn},Ke=Object.prototype.toString,Qe=Object.prototype.hasOwnProperty,fe=65279,ei=9,B=10,ri=13,ni=32,ii=33,oi=34,oe=35,ti=37,li=38,ci=39,si=42,Ve=44,ui=45,K=58,ai=61,fi=62,pi=63,hi=64,Xe=91,Ze=93,di=96,Je=123,mi=124,ze=125,b={};b[0]="\\0";b[7]="\\a";b[8]="\\b";b[9]="\\t";b[10]="\\n";b[11]="\\v";b[12]="\\f";b[13]="\\r";b[27]="\\e";b[34]='\\"';b[92]="\\\\";b[133]="\\N";b[160]="\\_";b[8232]="\\L";b[8233]="\\P";var gi=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],yi=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function xi(e,r){var n,o,i,l,t,c,s;if(r===null)return{};for(n={},o=Object.keys(r),i=0,l=o.length;i<l;i+=1)t=o[i],c=String(r[t]),t.slice(0,2)==="!!"&&(t="tag:yaml.org,2002:"+t.slice(2)),s=e.compiledTypeMap.fallback[t],s&&Qe.call(s.styleAliases,c)&&(c=s.styleAliases[c]),n[t]=c;return n}function vi(e){var r,n,o;if(r=e.toString(16).toUpperCase(),e<=255)n="x",o=2;else if(e<=65535)n="u",o=4;else if(e<=4294967295)n="U",o=8;else throw new E("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+C.repeat("0",o-r.length)+r}var Ai=1,Y=2;function Ci(e){this.schema=e.schema||Ne,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=C.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=xi(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Y:Ai,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Se(e,r){for(var n=C.repeat(" ",r),o=0,i=-1,l="",t,c=e.length;o<c;)i=e.indexOf(`
19
- `,o),i===-1?(t=e.slice(o),o=c):(t=e.slice(o,i+1),o=i+1),t.length&&t!==`
20
- `&&(l+=n),l+=t;return l}function te(e,r){return`
21
- `+C.repeat(" ",e.indent*r)}function wi(e,r){var n,o,i;for(n=0,o=e.implicitTypes.length;n<o;n+=1)if(i=e.implicitTypes[n],i.resolve(r))return!0;return!1}function Q(e){return e===ni||e===ei}function H(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==fe||65536<=e&&e<=1114111}function Fe(e){return H(e)&&e!==fe&&e!==ri&&e!==B}function _e(e,r,n){var o=Fe(e),i=o&&!Q(e);return(n?o:o&&e!==Ve&&e!==Xe&&e!==Ze&&e!==Je&&e!==ze)&&e!==oe&&!(r===K&&!i)||Fe(r)&&!Q(r)&&e===oe||r===K&&i}function bi(e){return H(e)&&e!==fe&&!Q(e)&&e!==ui&&e!==pi&&e!==K&&e!==Ve&&e!==Xe&&e!==Ze&&e!==Je&&e!==ze&&e!==oe&&e!==li&&e!==si&&e!==ii&&e!==mi&&e!==ai&&e!==fi&&e!==ci&&e!==oi&&e!==ti&&e!==hi&&e!==di}function Ei(e){return!Q(e)&&e!==K}function $(e,r){var n=e.charCodeAt(r),o;return n>=55296&&n<=56319&&r+1<e.length&&(o=e.charCodeAt(r+1),o>=56320&&o<=57343)?(n-55296)*1024+o-56320+65536:n}function er(e){var r=/^\n* /;return r.test(e)}var rr=1,le=2,nr=3,ir=4,k=5;function Si(e,r,n,o,i,l,t,c){var s,u=0,f=null,a=!1,h=!1,d=o!==-1,m=-1,y=bi($(e,0))&&Ei($(e,e.length-1));if(r||t)for(s=0;s<e.length;u>=65536?s+=2:s++){if(u=$(e,s),!H(u))return k;y=y&&_e(u,f,c),f=u}else{for(s=0;s<e.length;u>=65536?s+=2:s++){if(u=$(e,s),u===B)a=!0,d&&(h=h||s-m-1>o&&e[m+1]!==" ",m=s);else if(!H(u))return k;y=y&&_e(u,f,c),f=u}h=h||d&&s-m-1>o&&e[m+1]!==" "}return!a&&!h?y&&!t&&!i(e)?rr:l===Y?k:le:n>9&&er(e)?k:t?l===Y?k:le:h?ir:nr}function Fi(e,r,n,o,i){e.dump=function(){if(r.length===0)return e.quotingType===Y?'""':"''";if(!e.noCompatMode&&(gi.indexOf(r)!==-1||yi.test(r)))return e.quotingType===Y?'"'+r+'"':"'"+r+"'";var l=e.indent*Math.max(1,n),t=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-l),c=o||e.flowLevel>-1&&n>=e.flowLevel;function s(u){return wi(e,u)}switch(Si(r,c,e.indent,t,s,e.quotingType,e.forceQuotes&&!o,i)){case rr:return r;case le:return"'"+r.replace(/'/g,"''")+"'";case nr:return"|"+Te(r,e.indent)+Re(Se(r,l));case ir:return">"+Te(r,e.indent)+Re(Se(_i(r,t),l));case k:return'"'+Ti(r)+'"';default:throw new E("impossible error: invalid scalar style")}}()}function Te(e,r){var n=er(e)?String(r):"",o=e[e.length-1]===`
22
- `,i=o&&(e[e.length-2]===`
2
+ var wm=Object.create;var Ac=Object.defineProperty;var xm=Object.getOwnPropertyDescriptor;var Fm=Object.getOwnPropertyNames;var km=Object.getPrototypeOf,Cm=Object.prototype.hasOwnProperty;var h=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var qm=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Fm(r))!Cm.call(e,i)&&i!==n&&Ac(e,i,{get:()=>r[i],enumerable:!(t=xm(r,i))||t.enumerable});return e};var Mm=(e,r,n)=>(n=e!=null?wm(km(e)):{},qm(r||!e||!e.__esModule?Ac(n,"default",{value:e,enumerable:!0}):n,e));var El=h(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.versionInfo=hn.version=void 0;var fv="16.11.0";hn.version=fv;var dv=Object.freeze({major:16,minor:11,patch:0,preReleaseTag:null});hn.versionInfo=dv});var Le=h(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.devAssert=mv;function mv(e,r){if(!!!e)throw new Error(r)}});var Yt=h(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.isPromise=hv;function hv(e){return typeof e?.then=="function"}});var or=h(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.isObjectLike=yv;function yv(e){return typeof e=="object"&&e!==null}});var Oe=h(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.invariant=vv;function vv(e,r){if(!!!e)throw new Error(r??"Unexpected invariant triggered.")}});var Ht=h(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.getLocation=bv;var Tv=Oe(),gv=/\r\n|[\n\r]/g;function bv(e,r){let n=0,t=1;for(let i of e.body.matchAll(gv)){if(typeof i.index=="number"||(0,Tv.invariant)(!1),i.index>=r)break;n=i.index+i[0].length,t+=1}return{line:t,column:r+1-n}}});var Mo=h(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.printLocation=_v;Jt.printSourceLocation=Ol;var Ev=Ht();function _v(e){return Ol(e.source,(0,Ev.getLocation)(e.source,e.start))}function Ol(e,r){let n=e.locationOffset.column-1,t="".padStart(n)+e.body,i=r.line-1,o=e.locationOffset.line-1,s=r.line+o,a=r.line===1?n:0,u=r.column+a,c=`${e.name}:${s}:${u}
3
+ `,l=t.split(/\r\n|[\n\r]/g),p=l[i];if(p.length>120){let f=Math.floor(u/80),m=u%80,y=[];for(let O=0;O<p.length;O+=80)y.push(p.slice(O,O+80));return c+_l([[`${s} |`,y[0]],...y.slice(1,f+1).map(O=>["|",O]),["|","^".padStart(m)],["|",y[f+1]]])}return c+_l([[`${s-1} |`,l[i-1]],[`${s} |`,p],["|","^".padStart(u)],[`${s+1} |`,l[i+1]]])}function _l(e){let r=e.filter(([t,i])=>i!==void 0),n=Math.max(...r.map(([t])=>t.length));return r.map(([t,i])=>t.padStart(n)+(i?" "+i:"")).join(`
4
+ `)}});var j=h(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.GraphQLError=void 0;yn.formatError=Lv;yn.printError=Iv;var Ov=or(),Nl=Ht(),Il=Mo();function Nv(e){let r=e[0];return r==null||"kind"in r||"length"in r?{nodes:r,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:r}var Go=class e extends Error{constructor(r,...n){var t,i,o;let{nodes:s,source:a,positions:u,path:c,originalError:l,extensions:p}=Nv(n);super(r),this.name="GraphQLError",this.path=c??void 0,this.originalError=l??void 0,this.nodes=Ll(Array.isArray(s)?s:s?[s]:void 0);let f=Ll((t=this.nodes)===null||t===void 0?void 0:t.map(y=>y.loc).filter(y=>y!=null));this.source=a??(f==null||(i=f[0])===null||i===void 0?void 0:i.source),this.positions=u??f?.map(y=>y.start),this.locations=u&&a?u.map(y=>(0,Nl.getLocation)(a,y)):f?.map(y=>(0,Nl.getLocation)(y.source,y.start));let m=(0,Ov.isObjectLike)(l?.extensions)?l?.extensions:void 0;this.extensions=(o=p??m)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),l!=null&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let r=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(r+=`
5
+
6
+ `+(0,Il.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)r+=`
7
+
8
+ `+(0,Il.printSourceLocation)(this.source,n);return r}toJSON(){let r={message:this.message};return this.locations!=null&&(r.locations=this.locations),this.path!=null&&(r.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(r.extensions=this.extensions),r}};yn.GraphQLError=Go;function Ll(e){return e===void 0||e.length===0?void 0:e}function Iv(e){return e.toString()}function Lv(e){return e.toJSON()}});var Wt=h(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.syntaxError=Dv;var Sv=j();function Dv(e,r,n){return new Sv.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[r]})}});var sr=h(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.Token=Ce.QueryDocumentKeys=Ce.OperationTypeNode=Ce.Location=void 0;Ce.isNode=Rv;var Qo=class{constructor(r,n,t){this.start=r.start,this.end=n.end,this.startToken=r,this.endToken=n,this.source=t}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};Ce.Location=Qo;var Uo=class{constructor(r,n,t,i,o,s){this.kind=r,this.start=n,this.end=t,this.line=i,this.column=o,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};Ce.Token=Uo;var Sl={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"]};Ce.QueryDocumentKeys=Sl;var Av=new Set(Object.keys(Sl));function Rv(e){let r=e?.kind;return typeof r=="string"&&Av.has(r)}var $o;Ce.OperationTypeNode=$o;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})($o||(Ce.OperationTypeNode=$o={}))});var vn=h(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.DirectiveLocation=void 0;var Ko;Gn.DirectiveLocation=Ko;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Ko||(Gn.DirectiveLocation=Ko={}))});var V=h(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.Kind=void 0;var Bo;Vn.Kind=Bo;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(Bo||(Vn.Kind=Bo={}))});var Xt=h(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.isDigit=Dl;Qr.isLetter=Yo;Qr.isNameContinue=wv;Qr.isNameStart=jv;Qr.isWhiteSpace=Pv;function Pv(e){return e===9||e===32}function Dl(e){return e>=48&&e<=57}function Yo(e){return e>=97&&e<=122||e>=65&&e<=90}function jv(e){return Yo(e)||e===95}function wv(e){return Yo(e)||Dl(e)||e===95}});var Un=h(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.dedentBlockStringLines=xv;Qn.isPrintableAsBlockString=kv;Qn.printBlockString=Cv;var Ho=Xt();function xv(e){var r;let n=Number.MAX_SAFE_INTEGER,t=null,i=-1;for(let s=0;s<e.length;++s){var o;let a=e[s],u=Fv(a);u!==a.length&&(t=(o=t)!==null&&o!==void 0?o:s,i=s,s!==0&&u<n&&(n=u))}return e.map((s,a)=>a===0?s:s.slice(n)).slice((r=t)!==null&&r!==void 0?r:0,i+1)}function Fv(e){let r=0;for(;r<e.length&&(0,Ho.isWhiteSpace)(e.charCodeAt(r));)++r;return r}function kv(e){if(e==="")return!0;let r=!0,n=!1,t=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(r&&!i)return!1;i=!0,r=!0,n=!1;break;case 9:case 32:n||(n=r);break;default:t&&(t=n),r=!1}return!(r||t&&i)}function Cv(e,r){let n=e.replace(/"""/g,'\\"""'),t=n.split(/\r\n|[\n\r]/g),i=t.length===1,o=t.length>1&&t.slice(1).every(m=>m.length===0||(0,Ho.isWhiteSpace)(m.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=a||u,l=!(r!=null&&r.minimize)&&(!i||e.length>70||c||o||s),p="",f=i&&(0,Ho.isWhiteSpace)(e.charCodeAt(0));return(l&&!f||o)&&(p+=`
9
+ `),p+=n,(l||c)&&(p+=`
10
+ `),'"""'+p+'"""'}});var Kn=h($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.TokenKind=void 0;var Jo;$n.TokenKind=Jo;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(Jo||($n.TokenKind=Jo={}))});var Zt=h(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.Lexer=void 0;Yn.isPunctuatorTokenKind=Mv;var Je=Wt(),Rl=sr(),qv=Un(),Ur=Xt(),M=Kn(),Xo=class{constructor(r){let n=new Rl.Token(M.TokenKind.SOF,0,0,0,0);this.source=r,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let r=this.token;if(r.kind!==M.TokenKind.EOF)do if(r.next)r=r.next;else{let n=Gv(this,r.end);r.next=n,n.prev=r,r=n}while(r.kind===M.TokenKind.COMMENT);return r}};Yn.Lexer=Xo;function Mv(e){return e===M.TokenKind.BANG||e===M.TokenKind.DOLLAR||e===M.TokenKind.AMP||e===M.TokenKind.PAREN_L||e===M.TokenKind.PAREN_R||e===M.TokenKind.SPREAD||e===M.TokenKind.COLON||e===M.TokenKind.EQUALS||e===M.TokenKind.AT||e===M.TokenKind.BRACKET_L||e===M.TokenKind.BRACKET_R||e===M.TokenKind.BRACE_L||e===M.TokenKind.PIPE||e===M.TokenKind.BRACE_R}function Tn(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function zt(e,r){return Pl(e.charCodeAt(r))&&jl(e.charCodeAt(r+1))}function Pl(e){return e>=55296&&e<=56319}function jl(e){return e>=56320&&e<=57343}function $r(e,r){let n=e.source.body.codePointAt(r);if(n===void 0)return M.TokenKind.EOF;if(n>=32&&n<=126){let t=String.fromCodePoint(n);return t==='"'?`'"'`:`"${t}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function fe(e,r,n,t,i){let o=e.line,s=1+n-e.lineStart;return new Rl.Token(r,n,t,o,s,i)}function Gv(e,r){let n=e.source.body,t=n.length,i=r;for(;i<t;){let o=n.charCodeAt(i);switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return Vv(e,i);case 33:return fe(e,M.TokenKind.BANG,i,i+1);case 36:return fe(e,M.TokenKind.DOLLAR,i,i+1);case 38:return fe(e,M.TokenKind.AMP,i,i+1);case 40:return fe(e,M.TokenKind.PAREN_L,i,i+1);case 41:return fe(e,M.TokenKind.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return fe(e,M.TokenKind.SPREAD,i,i+3);break;case 58:return fe(e,M.TokenKind.COLON,i,i+1);case 61:return fe(e,M.TokenKind.EQUALS,i,i+1);case 64:return fe(e,M.TokenKind.AT,i,i+1);case 91:return fe(e,M.TokenKind.BRACKET_L,i,i+1);case 93:return fe(e,M.TokenKind.BRACKET_R,i,i+1);case 123:return fe(e,M.TokenKind.BRACE_L,i,i+1);case 124:return fe(e,M.TokenKind.PIPE,i,i+1);case 125:return fe(e,M.TokenKind.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?Yv(e,i):Uv(e,i)}if((0,Ur.isDigit)(o)||o===45)return Qv(e,i,o);if((0,Ur.isNameStart)(o))return Hv(e,i);throw(0,Je.syntaxError)(e.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Tn(o)||zt(n,i)?`Unexpected character: ${$r(e,i)}.`:`Invalid character: ${$r(e,i)}.`)}return fe(e,M.TokenKind.EOF,t,t)}function Vv(e,r){let n=e.source.body,t=n.length,i=r+1;for(;i<t;){let o=n.charCodeAt(i);if(o===10||o===13)break;if(Tn(o))++i;else if(zt(n,i))i+=2;else break}return fe(e,M.TokenKind.COMMENT,r,i,n.slice(r+1,i))}function Qv(e,r,n){let t=e.source.body,i=r,o=n,s=!1;if(o===45&&(o=t.charCodeAt(++i)),o===48){if(o=t.charCodeAt(++i),(0,Ur.isDigit)(o))throw(0,Je.syntaxError)(e.source,i,`Invalid number, unexpected digit after 0: ${$r(e,i)}.`)}else i=Wo(e,i,o),o=t.charCodeAt(i);if(o===46&&(s=!0,o=t.charCodeAt(++i),i=Wo(e,i,o),o=t.charCodeAt(i)),(o===69||o===101)&&(s=!0,o=t.charCodeAt(++i),(o===43||o===45)&&(o=t.charCodeAt(++i)),i=Wo(e,i,o),o=t.charCodeAt(i)),o===46||(0,Ur.isNameStart)(o))throw(0,Je.syntaxError)(e.source,i,`Invalid number, expected digit but got: ${$r(e,i)}.`);return fe(e,s?M.TokenKind.FLOAT:M.TokenKind.INT,r,i,t.slice(r,i))}function Wo(e,r,n){if(!(0,Ur.isDigit)(n))throw(0,Je.syntaxError)(e.source,r,`Invalid number, expected digit but got: ${$r(e,r)}.`);let t=e.source.body,i=r+1;for(;(0,Ur.isDigit)(t.charCodeAt(i));)++i;return i}function Uv(e,r){let n=e.source.body,t=n.length,i=r+1,o=i,s="";for(;i<t;){let a=n.charCodeAt(i);if(a===34)return s+=n.slice(o,i),fe(e,M.TokenKind.STRING,r,i+1,s);if(a===92){s+=n.slice(o,i);let u=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?$v(e,i):Kv(e,i):Bv(e,i);s+=u.value,i+=u.size,o=i;continue}if(a===10||a===13)break;if(Tn(a))++i;else if(zt(n,i))i+=2;else throw(0,Je.syntaxError)(e.source,i,`Invalid character within String: ${$r(e,i)}.`)}throw(0,Je.syntaxError)(e.source,i,"Unterminated string.")}function $v(e,r){let n=e.source.body,t=0,i=3;for(;i<12;){let o=n.charCodeAt(r+i++);if(o===125){if(i<5||!Tn(t))break;return{value:String.fromCodePoint(t),size:i}}if(t=t<<4|Bn(o),t<0)break}throw(0,Je.syntaxError)(e.source,r,`Invalid Unicode escape sequence: "${n.slice(r,r+i)}".`)}function Kv(e,r){let n=e.source.body,t=Al(n,r+2);if(Tn(t))return{value:String.fromCodePoint(t),size:6};if(Pl(t)&&n.charCodeAt(r+6)===92&&n.charCodeAt(r+7)===117){let i=Al(n,r+8);if(jl(i))return{value:String.fromCodePoint(t,i),size:12}}throw(0,Je.syntaxError)(e.source,r,`Invalid Unicode escape sequence: "${n.slice(r,r+6)}".`)}function Al(e,r){return Bn(e.charCodeAt(r))<<12|Bn(e.charCodeAt(r+1))<<8|Bn(e.charCodeAt(r+2))<<4|Bn(e.charCodeAt(r+3))}function Bn(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Bv(e,r){let n=e.source.body;switch(n.charCodeAt(r+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
11
+ `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,Je.syntaxError)(e.source,r,`Invalid character escape sequence: "${n.slice(r,r+2)}".`)}function Yv(e,r){let n=e.source.body,t=n.length,i=e.lineStart,o=r+3,s=o,a="",u=[];for(;o<t;){let c=n.charCodeAt(o);if(c===34&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34){a+=n.slice(s,o),u.push(a);let l=fe(e,M.TokenKind.BLOCK_STRING,r,o+3,(0,qv.dedentBlockStringLines)(u).join(`
12
+ `));return e.line+=u.length-1,e.lineStart=i,l}if(c===92&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34&&n.charCodeAt(o+3)===34){a+=n.slice(s,o),s=o+1,o+=4;continue}if(c===10||c===13){a+=n.slice(s,o),u.push(a),c===13&&n.charCodeAt(o+1)===10?o+=2:++o,a="",s=o,i=o;continue}if(Tn(c))++o;else if(zt(n,o))o+=2;else throw(0,Je.syntaxError)(e.source,o,`Invalid character within String: ${$r(e,o)}.`)}throw(0,Je.syntaxError)(e.source,o,"Unterminated string.")}function Hv(e,r){let n=e.source.body,t=n.length,i=r+1;for(;i<t;){let o=n.charCodeAt(i);if((0,Ur.isNameContinue)(o))++i;else break}return fe(e,M.TokenKind.NAME,r,i,n.slice(r,i))}});var J=h(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.inspect=Wv;var Jv=10,wl=2;function Wv(e){return ei(e,[])}function ei(e,r){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Xv(e,r);default:return String(e)}}function Xv(e,r){if(e===null)return"null";if(r.includes(e))return"[Circular]";let n=[...r,e];if(zv(e)){let t=e.toJSON();if(t!==e)return typeof t=="string"?t:ei(t,n)}else if(Array.isArray(e))return eT(e,n);return Zv(e,n)}function zv(e){return typeof e.toJSON=="function"}function Zv(e,r){let n=Object.entries(e);return n.length===0?"{}":r.length>wl?"["+rT(e)+"]":"{ "+n.map(([i,o])=>i+": "+ei(o,r)).join(", ")+" }"}function eT(e,r){if(e.length===0)return"[]";if(r.length>wl)return"[Array]";let n=Math.min(Jv,e.length),t=e.length-n,i=[];for(let o=0;o<n;++o)i.push(ei(e[o],r));return t===1?i.push("... 1 more item"):t>1&&i.push(`... ${t} more items`),"["+i.join(", ")+"]"}function rT(e){let r=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(r==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return r}});var Hn=h(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.instanceOf=void 0;var nT=J(),tT=globalThis.process&&process.env.NODE_ENV==="production",iT=tT?function(r,n){return r instanceof n}:function(r,n){if(r instanceof n)return!0;if(typeof r=="object"&&r!==null){var t;let i=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in r?r[Symbol.toStringTag]:(t=r.constructor)===null||t===void 0?void 0:t.name;if(i===o){let s=(0,nT.inspect)(r);throw new Error(`Cannot use ${i} "${s}" from another module or realm.
13
+
14
+ Ensure that there is only one instance of "graphql" in the node_modules
15
+ directory. If different versions of "graphql" are the dependencies of other
16
+ relied on modules, use "resolutions" to ensure only one version is installed.
17
+
18
+ https://yarnpkg.com/en/docs/selective-version-resolutions
19
+
20
+ Duplicate "graphql" modules cannot be used at the same time since different
21
+ versions may have different capabilities and behavior. The data from one
22
+ version used in the function from another could produce confusing and
23
+ spurious results.`)}}return!1};ri.instanceOf=iT});var ti=h(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.Source=void 0;Jn.isSource=aT;var Zo=Le(),oT=J(),sT=Hn(),ni=class{constructor(r,n="GraphQL request",t={line:1,column:1}){typeof r=="string"||(0,Zo.devAssert)(!1,`Body must be a string. Received: ${(0,oT.inspect)(r)}.`),this.body=r,this.name=n,this.locationOffset=t,this.locationOffset.line>0||(0,Zo.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,Zo.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};Jn.Source=ni;function aT(e){return(0,sT.instanceOf)(e,ni)}});var gn=h(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.Parser=void 0;Rr.parse=cT;Rr.parseConstValue=pT;Rr.parseType=fT;Rr.parseValue=lT;var Kr=Wt(),Wn=sr(),uT=vn(),x=V(),Fl=Zt(),xl=ti(),E=Kn();function cT(e,r){let n=new Br(e,r),t=n.parseDocument();return Object.defineProperty(t,"tokenCount",{enumerable:!1,value:n.tokenCount}),t}function lT(e,r){let n=new Br(e,r);n.expectToken(E.TokenKind.SOF);let t=n.parseValueLiteral(!1);return n.expectToken(E.TokenKind.EOF),t}function pT(e,r){let n=new Br(e,r);n.expectToken(E.TokenKind.SOF);let t=n.parseConstValueLiteral();return n.expectToken(E.TokenKind.EOF),t}function fT(e,r){let n=new Br(e,r);n.expectToken(E.TokenKind.SOF);let t=n.parseTypeReference();return n.expectToken(E.TokenKind.EOF),t}var Br=class{constructor(r,n={}){let t=(0,xl.isSource)(r)?r:new xl.Source(r);this._lexer=new Fl.Lexer(t),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let r=this.expectToken(E.TokenKind.NAME);return this.node(r,{kind:x.Kind.NAME,value:r.value})}parseDocument(){return this.node(this._lexer.token,{kind:x.Kind.DOCUMENT,definitions:this.many(E.TokenKind.SOF,this.parseDefinition,E.TokenKind.EOF)})}parseDefinition(){if(this.peek(E.TokenKind.BRACE_L))return this.parseOperationDefinition();let r=this.peekDescription(),n=r?this._lexer.lookahead():this._lexer.token;if(n.kind===E.TokenKind.NAME){switch(n.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()}if(r)throw(0,Kr.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let r=this._lexer.token;if(this.peek(E.TokenKind.BRACE_L))return this.node(r,{kind:x.Kind.OPERATION_DEFINITION,operation:Wn.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),t;return this.peek(E.TokenKind.NAME)&&(t=this.parseName()),this.node(r,{kind:x.Kind.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let r=this.expectToken(E.TokenKind.NAME);switch(r.value){case"query":return Wn.OperationTypeNode.QUERY;case"mutation":return Wn.OperationTypeNode.MUTATION;case"subscription":return Wn.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(r)}parseVariableDefinitions(){return this.optionalMany(E.TokenKind.PAREN_L,this.parseVariableDefinition,E.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:x.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(E.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(E.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let r=this._lexer.token;return this.expectToken(E.TokenKind.DOLLAR),this.node(r,{kind:x.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:x.Kind.SELECTION_SET,selections:this.many(E.TokenKind.BRACE_L,this.parseSelection,E.TokenKind.BRACE_R)})}parseSelection(){return this.peek(E.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let r=this._lexer.token,n=this.parseName(),t,i;return this.expectOptionalToken(E.TokenKind.COLON)?(t=n,i=this.parseName()):i=n,this.node(r,{kind:x.Kind.FIELD,alias:t,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(E.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(r){let n=r?this.parseConstArgument:this.parseArgument;return this.optionalMany(E.TokenKind.PAREN_L,n,E.TokenKind.PAREN_R)}parseArgument(r=!1){let n=this._lexer.token,t=this.parseName();return this.expectToken(E.TokenKind.COLON),this.node(n,{kind:x.Kind.ARGUMENT,name:t,value:this.parseValueLiteral(r)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let r=this._lexer.token;this.expectToken(E.TokenKind.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(E.TokenKind.NAME)?this.node(r,{kind:x.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(r,{kind:x.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let r=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(r,{kind:x.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(r,{kind:x.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(r){let n=this._lexer.token;switch(n.kind){case E.TokenKind.BRACKET_L:return this.parseList(r);case E.TokenKind.BRACE_L:return this.parseObject(r);case E.TokenKind.INT:return this.advanceLexer(),this.node(n,{kind:x.Kind.INT,value:n.value});case E.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:x.Kind.FLOAT,value:n.value});case E.TokenKind.STRING:case E.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case E.TokenKind.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:x.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:x.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:x.Kind.NULL});default:return this.node(n,{kind:x.Kind.ENUM,value:n.value})}case E.TokenKind.DOLLAR:if(r)if(this.expectToken(E.TokenKind.DOLLAR),this._lexer.token.kind===E.TokenKind.NAME){let t=this._lexer.token.value;throw(0,Kr.syntaxError)(this._lexer.source,n.start,`Unexpected variable "$${t}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let r=this._lexer.token;return this.advanceLexer(),this.node(r,{kind:x.Kind.STRING,value:r.value,block:r.kind===E.TokenKind.BLOCK_STRING})}parseList(r){let n=()=>this.parseValueLiteral(r);return this.node(this._lexer.token,{kind:x.Kind.LIST,values:this.any(E.TokenKind.BRACKET_L,n,E.TokenKind.BRACKET_R)})}parseObject(r){let n=()=>this.parseObjectField(r);return this.node(this._lexer.token,{kind:x.Kind.OBJECT,fields:this.any(E.TokenKind.BRACE_L,n,E.TokenKind.BRACE_R)})}parseObjectField(r){let n=this._lexer.token,t=this.parseName();return this.expectToken(E.TokenKind.COLON),this.node(n,{kind:x.Kind.OBJECT_FIELD,name:t,value:this.parseValueLiteral(r)})}parseDirectives(r){let n=[];for(;this.peek(E.TokenKind.AT);)n.push(this.parseDirective(r));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(r){let n=this._lexer.token;return this.expectToken(E.TokenKind.AT),this.node(n,{kind:x.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(r)})}parseTypeReference(){let r=this._lexer.token,n;if(this.expectOptionalToken(E.TokenKind.BRACKET_L)){let t=this.parseTypeReference();this.expectToken(E.TokenKind.BRACKET_R),n=this.node(r,{kind:x.Kind.LIST_TYPE,type:t})}else n=this.parseNamedType();return this.expectOptionalToken(E.TokenKind.BANG)?this.node(r,{kind:x.Kind.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:x.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(E.TokenKind.STRING)||this.peek(E.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let t=this.parseConstDirectives(),i=this.many(E.TokenKind.BRACE_L,this.parseOperationTypeDefinition,E.TokenKind.BRACE_R);return this.node(r,{kind:x.Kind.SCHEMA_DEFINITION,description:n,directives:t,operationTypes:i})}parseOperationTypeDefinition(){let r=this._lexer.token,n=this.parseOperationType();this.expectToken(E.TokenKind.COLON);let t=this.parseNamedType();return this.node(r,{kind:x.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:t})}parseScalarTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let t=this.parseName(),i=this.parseConstDirectives();return this.node(r,{kind:x.Kind.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:i})}parseObjectTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let t=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(r,{kind:x.Kind.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:i,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(E.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(E.TokenKind.BRACE_L,this.parseFieldDefinition,E.TokenKind.BRACE_R)}parseFieldDefinition(){let r=this._lexer.token,n=this.parseDescription(),t=this.parseName(),i=this.parseArgumentDefs();this.expectToken(E.TokenKind.COLON);let o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(r,{kind:x.Kind.FIELD_DEFINITION,description:n,name:t,arguments:i,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(E.TokenKind.PAREN_L,this.parseInputValueDef,E.TokenKind.PAREN_R)}parseInputValueDef(){let r=this._lexer.token,n=this.parseDescription(),t=this.parseName();this.expectToken(E.TokenKind.COLON);let i=this.parseTypeReference(),o;this.expectOptionalToken(E.TokenKind.EQUALS)&&(o=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(r,{kind:x.Kind.INPUT_VALUE_DEFINITION,description:n,name:t,type:i,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let t=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(r,{kind:x.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:t,interfaces:i,directives:o,fields:s})}parseUnionTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let t=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(r,{kind:x.Kind.UNION_TYPE_DEFINITION,description:n,name:t,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(E.TokenKind.EQUALS)?this.delimitedMany(E.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let t=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(r,{kind:x.Kind.ENUM_TYPE_DEFINITION,description:n,name:t,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(E.TokenKind.BRACE_L,this.parseEnumValueDefinition,E.TokenKind.BRACE_R)}parseEnumValueDefinition(){let r=this._lexer.token,n=this.parseDescription(),t=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(r,{kind:x.Kind.ENUM_VALUE_DEFINITION,description:n,name:t,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,Kr.syntaxError)(this._lexer.source,this._lexer.token.start,`${ii(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let t=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(r,{kind:x.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(E.TokenKind.BRACE_L,this.parseInputValueDef,E.TokenKind.BRACE_R)}parseTypeSystemExtension(){let r=this._lexer.lookahead();if(r.kind===E.TokenKind.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)}parseSchemaExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),t=this.optionalMany(E.TokenKind.BRACE_L,this.parseOperationTypeDefinition,E.TokenKind.BRACE_R);if(n.length===0&&t.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:t})}parseScalarTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),t=this.parseConstDirectives();if(t.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:t})}parseObjectTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),t=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(t.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:i,fields:o})}parseInterfaceTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),t=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(t.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:t,directives:i,fields:o})}parseUnionTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),t=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(t.length===0&&i.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.UNION_TYPE_EXTENSION,name:n,directives:t,types:i})}parseEnumTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),t=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(t.length===0&&i.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.ENUM_TYPE_EXTENSION,name:n,directives:t,values:i})}parseInputObjectTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),t=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(t.length===0&&i.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:i})}parseDirectiveDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(E.TokenKind.AT);let t=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(r,{kind:x.Kind.DIRECTIVE_DEFINITION,description:n,name:t,arguments:i,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(E.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let r=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(uT.DirectiveLocation,n.value))return n;throw this.unexpected(r)}node(r,n){return this._options.noLocation!==!0&&(n.loc=new Wn.Location(r,this._lexer.lastToken,this._lexer.source)),n}peek(r){return this._lexer.token.kind===r}expectToken(r){let n=this._lexer.token;if(n.kind===r)return this.advanceLexer(),n;throw(0,Kr.syntaxError)(this._lexer.source,n.start,`Expected ${kl(r)}, found ${ii(n)}.`)}expectOptionalToken(r){return this._lexer.token.kind===r?(this.advanceLexer(),!0):!1}expectKeyword(r){let n=this._lexer.token;if(n.kind===E.TokenKind.NAME&&n.value===r)this.advanceLexer();else throw(0,Kr.syntaxError)(this._lexer.source,n.start,`Expected "${r}", found ${ii(n)}.`)}expectOptionalKeyword(r){let n=this._lexer.token;return n.kind===E.TokenKind.NAME&&n.value===r?(this.advanceLexer(),!0):!1}unexpected(r){let n=r??this._lexer.token;return(0,Kr.syntaxError)(this._lexer.source,n.start,`Unexpected ${ii(n)}.`)}any(r,n,t){this.expectToken(r);let i=[];for(;!this.expectOptionalToken(t);)i.push(n.call(this));return i}optionalMany(r,n,t){if(this.expectOptionalToken(r)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(t));return i}return[]}many(r,n,t){this.expectToken(r);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(t));return i}delimitedMany(r,n){this.expectOptionalToken(r);let t=[];do t.push(n.call(this));while(this.expectOptionalToken(r));return t}advanceLexer(){let{maxTokens:r}=this._options,n=this._lexer.advance();if(n.kind!==E.TokenKind.EOF&&(++this._tokenCounter,r!==void 0&&this._tokenCounter>r))throw(0,Kr.syntaxError)(this._lexer.source,n.start,`Document contains more that ${r} tokens. Parsing aborted.`)}};Rr.Parser=Br;function ii(e){let r=e.value;return kl(e.kind)+(r!=null?` "${r}"`:"")}function kl(e){return(0,Fl.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var Pr=h(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.didYouMean=mT;var dT=5;function mT(e,r){let[n,t]=r?[e,r]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=t.map(u=>`"${u}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let s=o.slice(0,dT),a=s.pop();return i+s.join(", ")+", or "+a+"?"}});var Cl=h(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.identityFunc=hT;function hT(e){return e}});var jr=h(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.keyMap=yT;function yT(e,r){let n=Object.create(null);for(let t of e)n[r(t)]=t;return n}});var Xn=h(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.keyValMap=vT;function vT(e,r,n){let t=Object.create(null);for(let i of e)t[r(i)]=n(i);return t}});var os=h(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.mapValue=TT;function TT(e,r){let n=Object.create(null);for(let t of Object.keys(e))n[t]=r(e[t],t);return n}});var zn=h(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.naturalCompare=gT;function gT(e,r){let n=0,t=0;for(;n<e.length&&t<r.length;){let i=e.charCodeAt(n),o=r.charCodeAt(t);if(oi(i)&&oi(o)){let s=0;do++n,s=s*10+i-ss,i=e.charCodeAt(n);while(oi(i)&&s>0);let a=0;do++t,a=a*10+o-ss,o=r.charCodeAt(t);while(oi(o)&&a>0);if(s<a)return-1;if(s>a)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++t}}return e.length-r.length}var ss=48,bT=57;function oi(e){return!isNaN(e)&&ss<=e&&e<=bT}});var wr=h(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.suggestionList=_T;var ET=zn();function _T(e,r){let n=Object.create(null),t=new us(e),i=Math.floor(e.length*.4)+1;for(let o of r){let s=t.measure(o,i);s!==void 0&&(n[o]=s)}return Object.keys(n).sort((o,s)=>{let a=n[o]-n[s];return a!==0?a:(0,ET.naturalCompare)(o,s)})}var us=class{constructor(r){this._input=r,this._inputLowerCase=r.toLowerCase(),this._inputArray=ql(this._inputLowerCase),this._rows=[new Array(r.length+1).fill(0),new Array(r.length+1).fill(0),new Array(r.length+1).fill(0)]}measure(r,n){if(this._input===r)return 0;let t=r.toLowerCase();if(this._inputLowerCase===t)return 1;let i=ql(t),o=this._inputArray;if(i.length<o.length){let l=i;i=o,o=l}let s=i.length,a=o.length;if(s-a>n)return;let u=this._rows;for(let l=0;l<=a;l++)u[0][l]=l;for(let l=1;l<=s;l++){let p=u[(l-1)%3],f=u[l%3],m=f[0]=l;for(let y=1;y<=a;y++){let O=i[l-1]===o[y-1]?0:1,P=Math.min(p[y]+1,f[y-1]+1,p[y-1]+O);if(l>1&&y>1&&i[l-1]===o[y-2]&&i[l-2]===o[y-1]){let C=u[(l-2)%3][y-2];P=Math.min(P,C+1)}P<m&&(m=P),f[y]=P}if(m>n)return}let c=u[s%3][a];return c<=n?c:void 0}};function ql(e){let r=e.length,n=new Array(r);for(let t=0;t<r;++t)n[t]=e.charCodeAt(t);return n}});var si=h(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.toObjMap=OT;function OT(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let r=Object.create(null);for(let[n,t]of Object.entries(e))r[n]=t;return r}});var Ml=h(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.printString=NT;function NT(e){return`"${e.replace(IT,LT)}"`}var IT=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function LT(e){return ST[e.charCodeAt(0)]}var ST=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var Yr=h(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.BREAK=void 0;xr.getEnterLeaveForKind=ai;xr.getVisitFn=jT;xr.visit=RT;xr.visitInParallel=PT;var DT=Le(),AT=J(),fs=sr(),Gl=V(),bn=Object.freeze({});xr.BREAK=bn;function RT(e,r,n=fs.QueryDocumentKeys){let t=new Map;for(let C of Object.values(Gl.Kind))t.set(C,ai(r,C));let i,o=Array.isArray(e),s=[e],a=-1,u=[],c=e,l,p,f=[],m=[];do{a++;let C=a===s.length,A=C&&u.length!==0;if(C){if(l=m.length===0?void 0:f[f.length-1],c=p,p=m.pop(),A)if(o){c=c.slice();let ie=0;for(let[vr,Sr]of u){let un=vr-ie;Sr===null?(c.splice(un,1),ie++):c[un]=Sr}}else{c={...c};for(let[ie,vr]of u)c[ie]=vr}a=i.index,s=i.keys,u=i.edits,o=i.inArray,i=i.prev}else if(p){if(l=o?a:s[a],c=p[l],c==null)continue;f.push(l)}let ce;if(!Array.isArray(c)){var y,O;(0,fs.isNode)(c)||(0,DT.devAssert)(!1,`Invalid AST Node: ${(0,AT.inspect)(c)}.`);let ie=C?(y=t.get(c.kind))===null||y===void 0?void 0:y.leave:(O=t.get(c.kind))===null||O===void 0?void 0:O.enter;if(ce=ie?.call(r,c,l,p,f,m),ce===bn)break;if(ce===!1){if(!C){f.pop();continue}}else if(ce!==void 0&&(u.push([l,ce]),!C))if((0,fs.isNode)(ce))c=ce;else{f.pop();continue}}if(ce===void 0&&A&&u.push([l,c]),C)f.pop();else{var P;i={inArray:o,index:a,keys:s,edits:u,prev:i},o=Array.isArray(c),s=o?c:(P=n[c.kind])!==null&&P!==void 0?P:[],a=-1,u=[],p&&m.push(p),p=c}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:e}function PT(e){let r=new Array(e.length).fill(null),n=Object.create(null);for(let t of Object.values(Gl.Kind)){let i=!1,o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let u=0;u<e.length;++u){let{enter:c,leave:l}=ai(e[u],t);i||(i=c!=null||l!=null),o[u]=c,s[u]=l}if(!i)continue;let a={enter(...u){let c=u[0];for(let p=0;p<e.length;p++)if(r[p]===null){var l;let f=(l=o[p])===null||l===void 0?void 0:l.apply(e[p],u);if(f===!1)r[p]=c;else if(f===bn)r[p]=bn;else if(f!==void 0)return f}},leave(...u){let c=u[0];for(let p=0;p<e.length;p++)if(r[p]===null){var l;let f=(l=s[p])===null||l===void 0?void 0:l.apply(e[p],u);if(f===bn)r[p]=bn;else if(f!==void 0&&f!==!1)return f}else r[p]===c&&(r[p]=null)}};n[t]=a}return n}function ai(e,r){let n=e[r];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function jT(e,r,n){let{enter:t,leave:i}=ai(e,r);return n?i:t}});var xe=h(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.print=kT;var wT=Un(),xT=Ml(),FT=Yr();function kT(e){return(0,FT.visit)(e,qT)}var CT=80,qT={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>I(e.definitions,`
24
+
25
+ `)},OperationDefinition:{leave(e){let r=G("(",I(e.variableDefinitions,", "),")"),n=I([e.operation,I([e.name,r]),I(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:r,defaultValue:n,directives:t})=>e+": "+r+G(" = ",n)+G(" ",I(t," "))},SelectionSet:{leave:({selections:e})=>We(e)},Field:{leave({alias:e,name:r,arguments:n,directives:t,selectionSet:i}){let o=G("",e,": ")+r,s=o+G("(",I(n,", "),")");return s.length>CT&&(s=o+G(`(
26
+ `,ui(I(n,`
27
+ `)),`
28
+ )`)),I([s,I(t," "),i]," ")}},Argument:{leave:({name:e,value:r})=>e+": "+r},FragmentSpread:{leave:({name:e,directives:r})=>"..."+e+G(" ",I(r," "))},InlineFragment:{leave:({typeCondition:e,directives:r,selectionSet:n})=>I(["...",G("on ",e),I(r," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:r,variableDefinitions:n,directives:t,selectionSet:i})=>`fragment ${e}${G("(",I(n,", "),")")} on ${r} ${G("",I(t," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:r})=>r?(0,wT.printBlockString)(e):(0,xT.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+I(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+I(e,", ")+"}"},ObjectField:{leave:({name:e,value:r})=>e+": "+r},Directive:{leave:({name:e,arguments:r})=>"@"+e+G("(",I(r,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:r,operationTypes:n})=>G("",e,`
29
+ `)+I(["schema",I(r," "),We(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:r})=>e+": "+r},ScalarTypeDefinition:{leave:({description:e,name:r,directives:n})=>G("",e,`
30
+ `)+I(["scalar",r,I(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:r,interfaces:n,directives:t,fields:i})=>G("",e,`
31
+ `)+I(["type",r,G("implements ",I(n," & ")),I(t," "),We(i)]," ")},FieldDefinition:{leave:({description:e,name:r,arguments:n,type:t,directives:i})=>G("",e,`
32
+ `)+r+(Vl(n)?G(`(
33
+ `,ui(I(n,`
34
+ `)),`
35
+ )`):G("(",I(n,", "),")"))+": "+t+G(" ",I(i," "))},InputValueDefinition:{leave:({description:e,name:r,type:n,defaultValue:t,directives:i})=>G("",e,`
36
+ `)+I([r+": "+n,G("= ",t),I(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:r,interfaces:n,directives:t,fields:i})=>G("",e,`
37
+ `)+I(["interface",r,G("implements ",I(n," & ")),I(t," "),We(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:r,directives:n,types:t})=>G("",e,`
38
+ `)+I(["union",r,I(n," "),G("= ",I(t," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:r,directives:n,values:t})=>G("",e,`
39
+ `)+I(["enum",r,I(n," "),We(t)]," ")},EnumValueDefinition:{leave:({description:e,name:r,directives:n})=>G("",e,`
40
+ `)+I([r,I(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:r,directives:n,fields:t})=>G("",e,`
41
+ `)+I(["input",r,I(n," "),We(t)]," ")},DirectiveDefinition:{leave:({description:e,name:r,arguments:n,repeatable:t,locations:i})=>G("",e,`
42
+ `)+"directive @"+r+(Vl(n)?G(`(
43
+ `,ui(I(n,`
44
+ `)),`
45
+ )`):G("(",I(n,", "),")"))+(t?" repeatable":"")+" on "+I(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:r})=>I(["extend schema",I(e," "),We(r)]," ")},ScalarTypeExtension:{leave:({name:e,directives:r})=>I(["extend scalar",e,I(r," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:r,directives:n,fields:t})=>I(["extend type",e,G("implements ",I(r," & ")),I(n," "),We(t)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:r,directives:n,fields:t})=>I(["extend interface",e,G("implements ",I(r," & ")),I(n," "),We(t)]," ")},UnionTypeExtension:{leave:({name:e,directives:r,types:n})=>I(["extend union",e,I(r," "),G("= ",I(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:r,values:n})=>I(["extend enum",e,I(r," "),We(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:r,fields:n})=>I(["extend input",e,I(r," "),We(n)]," ")}};function I(e,r=""){var n;return(n=e?.filter(t=>t).join(r))!==null&&n!==void 0?n:""}function We(e){return G(`{
46
+ `,ui(I(e,`
47
+ `)),`
48
+ }`)}function G(e,r,n=""){return r!=null&&r!==""?e+r+n:""}function ui(e){return G(" ",e.replace(/\n/g,`
49
+ `))}function Vl(e){var r;return(r=e?.some(n=>n.includes(`
50
+ `)))!==null&&r!==void 0?r:!1}});var ys=h(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.valueFromASTUntyped=ms;var MT=Xn(),gr=V();function ms(e,r){switch(e.kind){case gr.Kind.NULL:return null;case gr.Kind.INT:return parseInt(e.value,10);case gr.Kind.FLOAT:return parseFloat(e.value);case gr.Kind.STRING:case gr.Kind.ENUM:case gr.Kind.BOOLEAN:return e.value;case gr.Kind.LIST:return e.values.map(n=>ms(n,r));case gr.Kind.OBJECT:return(0,MT.keyValMap)(e.fields,n=>n.name.value,n=>ms(n.value,r));case gr.Kind.VARIABLE:return r?.[e.name.value]}}});var Zn=h(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.assertEnumValueName=GT;li.assertName=$l;var Ql=Le(),ci=j(),Ul=Xt();function $l(e){if(e!=null||(0,Ql.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,Ql.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new ci.GraphQLError("Expected name to be a non-empty string.");for(let r=1;r<e.length;++r)if(!(0,Ul.isNameContinue)(e.charCodeAt(r)))throw new ci.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,Ul.isNameStart)(e.charCodeAt(0)))throw new ci.GraphQLError(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function GT(e){if(e==="true"||e==="false"||e==="null")throw new ci.GraphQLError(`Enum values cannot be named: ${e}`);return $l(e)}});var Q=h(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.GraphQLUnionType=D.GraphQLScalarType=D.GraphQLObjectType=D.GraphQLNonNull=D.GraphQLList=D.GraphQLInterfaceType=D.GraphQLInputObjectType=D.GraphQLEnumType=void 0;D.argsToArgsConfig=tp;D.assertAbstractType=sg;D.assertCompositeType=og;D.assertEnumType=zT;D.assertInputObjectType=ZT;D.assertInputType=ng;D.assertInterfaceType=WT;D.assertLeafType=ig;D.assertListType=eg;D.assertNamedType=lg;D.assertNonNullType=rg;D.assertNullableType=ug;D.assertObjectType=JT;D.assertOutputType=tg;D.assertScalarType=HT;D.assertType=YT;D.assertUnionType=XT;D.assertWrappingType=ag;D.defineArguments=rp;D.getNamedType=pg;D.getNullableType=cg;D.isAbstractType=Xl;D.isCompositeType=Wl;D.isEnumType=Xr;D.isInputObjectType=rt;D.isInputType=vs;D.isInterfaceType=Jr;D.isLeafType=Jl;D.isListType=_i;D.isNamedType=zl;D.isNonNullType=kr;D.isNullableType=gs;D.isObjectType=_n;D.isOutputType=Ts;D.isRequiredArgument=fg;D.isRequiredInputField=hg;D.isScalarType=Hr;D.isType=Ei;D.isUnionType=Wr;D.isWrappingType=nt;D.resolveObjMapThunk=Es;D.resolveReadonlyArrayThunk=bs;var ge=Le(),VT=Pr(),Kl=Cl(),z=J(),Fr=Hn(),QT=or(),UT=jr(),Hl=Xn(),bi=os(),$T=wr(),ar=si(),et=j(),KT=V(),Bl=xe(),BT=ys(),ur=Zn();function Ei(e){return Hr(e)||_n(e)||Jr(e)||Wr(e)||Xr(e)||rt(e)||_i(e)||kr(e)}function YT(e){if(!Ei(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL type.`);return e}function Hr(e){return(0,Fr.instanceOf)(e,mi)}function HT(e){if(!Hr(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Scalar type.`);return e}function _n(e){return(0,Fr.instanceOf)(e,hi)}function JT(e){if(!_n(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Object type.`);return e}function Jr(e){return(0,Fr.instanceOf)(e,yi)}function WT(e){if(!Jr(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Interface type.`);return e}function Wr(e){return(0,Fr.instanceOf)(e,vi)}function XT(e){if(!Wr(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Union type.`);return e}function Xr(e){return(0,Fr.instanceOf)(e,Ti)}function zT(e){if(!Xr(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Enum type.`);return e}function rt(e){return(0,Fr.instanceOf)(e,gi)}function ZT(e){if(!rt(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Input Object type.`);return e}function _i(e){return(0,Fr.instanceOf)(e,fi)}function eg(e){if(!_i(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL List type.`);return e}function kr(e){return(0,Fr.instanceOf)(e,di)}function rg(e){if(!kr(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function vs(e){return Hr(e)||Xr(e)||rt(e)||nt(e)&&vs(e.ofType)}function ng(e){if(!vs(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL input type.`);return e}function Ts(e){return Hr(e)||_n(e)||Jr(e)||Wr(e)||Xr(e)||nt(e)&&Ts(e.ofType)}function tg(e){if(!Ts(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL output type.`);return e}function Jl(e){return Hr(e)||Xr(e)}function ig(e){if(!Jl(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL leaf type.`);return e}function Wl(e){return _n(e)||Jr(e)||Wr(e)}function og(e){if(!Wl(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL composite type.`);return e}function Xl(e){return Jr(e)||Wr(e)}function sg(e){if(!Xl(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL abstract type.`);return e}var fi=class{constructor(r){Ei(r)||(0,ge.devAssert)(!1,`Expected ${(0,z.inspect)(r)} to be a GraphQL type.`),this.ofType=r}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};D.GraphQLList=fi;var di=class{constructor(r){gs(r)||(0,ge.devAssert)(!1,`Expected ${(0,z.inspect)(r)} to be a GraphQL nullable type.`),this.ofType=r}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};D.GraphQLNonNull=di;function nt(e){return _i(e)||kr(e)}function ag(e){if(!nt(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL wrapping type.`);return e}function gs(e){return Ei(e)&&!kr(e)}function ug(e){if(!gs(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL nullable type.`);return e}function cg(e){if(e)return kr(e)?e.ofType:e}function zl(e){return Hr(e)||_n(e)||Jr(e)||Wr(e)||Xr(e)||rt(e)}function lg(e){if(!zl(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL named type.`);return e}function pg(e){if(e){let r=e;for(;nt(r);)r=r.ofType;return r}}function bs(e){return typeof e=="function"?e():e}function Es(e){return typeof e=="function"?e():e}var mi=class{constructor(r){var n,t,i,o;let s=(n=r.parseValue)!==null&&n!==void 0?n:Kl.identityFunc;this.name=(0,ur.assertName)(r.name),this.description=r.description,this.specifiedByURL=r.specifiedByURL,this.serialize=(t=r.serialize)!==null&&t!==void 0?t:Kl.identityFunc,this.parseValue=s,this.parseLiteral=(i=r.parseLiteral)!==null&&i!==void 0?i:(a,u)=>s((0,BT.valueFromASTUntyped)(a,u)),this.extensions=(0,ar.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(o=r.extensionASTNodes)!==null&&o!==void 0?o:[],r.specifiedByURL==null||typeof r.specifiedByURL=="string"||(0,ge.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,z.inspect)(r.specifiedByURL)}.`),r.serialize==null||typeof r.serialize=="function"||(0,ge.devAssert)(!1,`${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.`),r.parseLiteral&&(typeof r.parseValue=="function"&&typeof r.parseLiteral=="function"||(0,ge.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){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:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLScalarType=mi;var hi=class{constructor(r){var n;this.name=(0,ur.assertName)(r.name),this.description=r.description,this.isTypeOf=r.isTypeOf,this.extensions=(0,ar.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>ep(r),this._interfaces=()=>Zl(r),r.isTypeOf==null||typeof r.isTypeOf=="function"||(0,ge.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,z.inspect)(r.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:np(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLObjectType=hi;function Zl(e){var r;let n=bs((r=e.interfaces)!==null&&r!==void 0?r:[]);return Array.isArray(n)||(0,ge.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function ep(e){let r=Es(e.fields);return En(r)||(0,ge.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,bi.mapValue)(r,(n,t)=>{var i;En(n)||(0,ge.devAssert)(!1,`${e.name}.${t} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,ge.devAssert)(!1,`${e.name}.${t} field resolver must be a function if provided, but got: ${(0,z.inspect)(n.resolve)}.`);let o=(i=n.args)!==null&&i!==void 0?i:{};return En(o)||(0,ge.devAssert)(!1,`${e.name}.${t} args must be an object with argument names as keys.`),{name:(0,ur.assertName)(t),description:n.description,type:n.type,args:rp(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,ar.toObjMap)(n.extensions),astNode:n.astNode}})}function rp(e){return Object.entries(e).map(([r,n])=>({name:(0,ur.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,ar.toObjMap)(n.extensions),astNode:n.astNode}))}function En(e){return(0,QT.isObjectLike)(e)&&!Array.isArray(e)}function np(e){return(0,bi.mapValue)(e,r=>({description:r.description,type:r.type,args:tp(r.args),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}))}function tp(e){return(0,Hl.keyValMap)(e,r=>r.name,r=>({description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}))}function fg(e){return kr(e.type)&&e.defaultValue===void 0}var yi=class{constructor(r){var n;this.name=(0,ur.assertName)(r.name),this.description=r.description,this.resolveType=r.resolveType,this.extensions=(0,ar.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=ep.bind(void 0,r),this._interfaces=Zl.bind(void 0,r),r.resolveType==null||typeof r.resolveType=="function"||(0,ge.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,z.inspect)(r.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:np(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLInterfaceType=yi;var vi=class{constructor(r){var n;this.name=(0,ur.assertName)(r.name),this.description=r.description,this.resolveType=r.resolveType,this.extensions=(0,ar.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=dg.bind(void 0,r),r.resolveType==null||typeof r.resolveType=="function"||(0,ge.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,z.inspect)(r.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLUnionType=vi;function dg(e){let r=bs(e.types);return Array.isArray(r)||(0,ge.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),r}var Ti=class{constructor(r){var n;this.name=(0,ur.assertName)(r.name),this.description=r.description,this.extensions=(0,ar.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof r.values=="function"?r.values:Yl(this.name,r.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=Yl(this.name,this._values())),this._values}getValue(r){return this._nameLookup===null&&(this._nameLookup=(0,UT.keyMap)(this.getValues(),n=>n.name)),this._nameLookup[r]}serialize(r){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(t=>[t.value,t])));let n=this._valueLookup.get(r);if(n===void 0)throw new et.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,z.inspect)(r)}`);return n.name}parseValue(r){if(typeof r!="string"){let t=(0,z.inspect)(r);throw new et.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+pi(this,t))}let n=this.getValue(r);if(n==null)throw new et.GraphQLError(`Value "${r}" does not exist in "${this.name}" enum.`+pi(this,r));return n.value}parseLiteral(r,n){if(r.kind!==KT.Kind.ENUM){let i=(0,Bl.print)(r);throw new et.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+pi(this,i),{nodes:r})}let t=this.getValue(r.value);if(t==null){let i=(0,Bl.print)(r);throw new et.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+pi(this,i),{nodes:r})}return t.value}toConfig(){let r=(0,Hl.keyValMap)(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:r,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLEnumType=Ti;function pi(e,r){let n=e.getValues().map(i=>i.name),t=(0,$T.suggestionList)(r,n);return(0,VT.didYouMean)("the enum value",t)}function Yl(e,r){return En(r)||(0,ge.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(r).map(([n,t])=>(En(t)||(0,ge.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,z.inspect)(t)}.`),{name:(0,ur.assertEnumValueName)(n),description:t.description,value:t.value!==void 0?t.value:n,deprecationReason:t.deprecationReason,extensions:(0,ar.toObjMap)(t.extensions),astNode:t.astNode}))}var gi=class{constructor(r){var n,t;this.name=(0,ur.assertName)(r.name),this.description=r.description,this.extensions=(0,ar.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(t=r.isOneOf)!==null&&t!==void 0?t:!1,this._fields=mg.bind(void 0,r)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let r=(0,bi.mapValue)(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:r,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLInputObjectType=gi;function mg(e){let r=Es(e.fields);return En(r)||(0,ge.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,bi.mapValue)(r,(n,t)=>(!("resolve"in n)||(0,ge.devAssert)(!1,`${e.name}.${t} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,ur.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,ar.toObjMap)(n.extensions),astNode:n.astNode}))}function hg(e){return kr(e.type)&&e.defaultValue===void 0}});var it=h(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.doTypesOverlap=yg;tt.isEqualType=_s;tt.isTypeSubTypeOf=Oi;var Ne=Q();function _s(e,r){return e===r?!0:(0,Ne.isNonNullType)(e)&&(0,Ne.isNonNullType)(r)||(0,Ne.isListType)(e)&&(0,Ne.isListType)(r)?_s(e.ofType,r.ofType):!1}function Oi(e,r,n){return r===n?!0:(0,Ne.isNonNullType)(n)?(0,Ne.isNonNullType)(r)?Oi(e,r.ofType,n.ofType):!1:(0,Ne.isNonNullType)(r)?Oi(e,r.ofType,n):(0,Ne.isListType)(n)?(0,Ne.isListType)(r)?Oi(e,r.ofType,n.ofType):!1:(0,Ne.isListType)(r)?!1:(0,Ne.isAbstractType)(n)&&((0,Ne.isInterfaceType)(r)||(0,Ne.isObjectType)(r))&&e.isSubType(n,r)}function yg(e,r,n){return r===n?!0:(0,Ne.isAbstractType)(r)?(0,Ne.isAbstractType)(n)?e.getPossibleTypes(r).some(t=>e.isSubType(n,t)):e.isSubType(r,n):(0,Ne.isAbstractType)(n)?e.isSubType(n,r):!1}});var cr=h(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.GraphQLString=he.GraphQLInt=he.GraphQLID=he.GraphQLFloat=he.GraphQLBoolean=he.GRAPHQL_MIN_INT=he.GRAPHQL_MAX_INT=void 0;he.isSpecifiedScalarType=vg;he.specifiedScalarTypes=void 0;var Xe=J(),ip=or(),be=j(),zr=V(),ot=xe(),st=Q(),Ni=2147483647;he.GRAPHQL_MAX_INT=Ni;var Ii=-2147483648;he.GRAPHQL_MIN_INT=Ii;var op=new st.GraphQLScalarType({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(e){let r=at(e);if(typeof r=="boolean")return r?1:0;let n=r;if(typeof r=="string"&&r!==""&&(n=Number(r)),typeof n!="number"||!Number.isInteger(n))throw new be.GraphQLError(`Int cannot represent non-integer value: ${(0,Xe.inspect)(r)}`);if(n>Ni||n<Ii)throw new be.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,Xe.inspect)(r));return n},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new be.GraphQLError(`Int cannot represent non-integer value: ${(0,Xe.inspect)(e)}`);if(e>Ni||e<Ii)throw new be.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==zr.Kind.INT)throw new be.GraphQLError(`Int cannot represent non-integer value: ${(0,ot.print)(e)}`,{nodes:e});let r=parseInt(e.value,10);if(r>Ni||r<Ii)throw new be.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return r}});he.GraphQLInt=op;var sp=new st.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){let r=at(e);if(typeof r=="boolean")return r?1:0;let n=r;if(typeof r=="string"&&r!==""&&(n=Number(r)),typeof n!="number"||!Number.isFinite(n))throw new be.GraphQLError(`Float cannot represent non numeric value: ${(0,Xe.inspect)(r)}`);return n},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new be.GraphQLError(`Float cannot represent non numeric value: ${(0,Xe.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==zr.Kind.FLOAT&&e.kind!==zr.Kind.INT)throw new be.GraphQLError(`Float cannot represent non numeric value: ${(0,ot.print)(e)}`,e);return parseFloat(e.value)}});he.GraphQLFloat=sp;var ap=new st.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){let r=at(e);if(typeof r=="string")return r;if(typeof r=="boolean")return r?"true":"false";if(typeof r=="number"&&Number.isFinite(r))return r.toString();throw new be.GraphQLError(`String cannot represent value: ${(0,Xe.inspect)(e)}`)},parseValue(e){if(typeof e!="string")throw new be.GraphQLError(`String cannot represent a non string value: ${(0,Xe.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==zr.Kind.STRING)throw new be.GraphQLError(`String cannot represent a non string value: ${(0,ot.print)(e)}`,{nodes:e});return e.value}});he.GraphQLString=ap;var up=new st.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let r=at(e);if(typeof r=="boolean")return r;if(Number.isFinite(r))return r!==0;throw new be.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,Xe.inspect)(r)}`)},parseValue(e){if(typeof e!="boolean")throw new be.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,Xe.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==zr.Kind.BOOLEAN)throw new be.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,ot.print)(e)}`,{nodes:e});return e.value}});he.GraphQLBoolean=up;var cp=new st.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){let r=at(e);if(typeof r=="string")return r;if(Number.isInteger(r))return String(r);throw new be.GraphQLError(`ID cannot represent value: ${(0,Xe.inspect)(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new be.GraphQLError(`ID cannot represent value: ${(0,Xe.inspect)(e)}`)},parseLiteral(e){if(e.kind!==zr.Kind.STRING&&e.kind!==zr.Kind.INT)throw new be.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,ot.print)(e),{nodes:e});return e.value}});he.GraphQLID=cp;var lp=Object.freeze([ap,op,sp,up,cp]);he.specifiedScalarTypes=lp;function vg(e){return lp.some(({name:r})=>e.name===r)}function at(e){if((0,ip.isObjectLike)(e)){if(typeof e.valueOf=="function"){let r=e.valueOf();if(!(0,ip.isObjectLike)(r))return r}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var Re=h(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.GraphQLSpecifiedByDirective=le.GraphQLSkipDirective=le.GraphQLOneOfDirective=le.GraphQLIncludeDirective=le.GraphQLDirective=le.GraphQLDeprecatedDirective=le.DEFAULT_DEPRECATION_REASON=void 0;le.assertDirective=Og;le.isDirective=fp;le.isSpecifiedDirective=Ng;le.specifiedDirectives=void 0;var pp=Le(),Tg=J(),gg=Hn(),bg=or(),Eg=si(),qe=vn(),_g=Zn(),ut=Q(),Li=cr();function fp(e){return(0,gg.instanceOf)(e,br)}function Og(e){if(!fp(e))throw new Error(`Expected ${(0,Tg.inspect)(e)} to be a GraphQL directive.`);return e}var br=class{constructor(r){var n,t;this.name=(0,_g.assertName)(r.name),this.description=r.description,this.locations=r.locations,this.isRepeatable=(n=r.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=(0,Eg.toObjMap)(r.extensions),this.astNode=r.astNode,Array.isArray(r.locations)||(0,pp.devAssert)(!1,`@${r.name} locations must be an Array.`);let i=(t=r.args)!==null&&t!==void 0?t:{};(0,bg.isObjectLike)(i)&&!Array.isArray(i)||(0,pp.devAssert)(!1,`@${r.name} args must be an object with argument names as keys.`),this.args=(0,ut.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,ut.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};le.GraphQLDirective=br;var dp=new br({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[qe.DirectiveLocation.FIELD,qe.DirectiveLocation.FRAGMENT_SPREAD,qe.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new ut.GraphQLNonNull(Li.GraphQLBoolean),description:"Included when true."}}});le.GraphQLIncludeDirective=dp;var mp=new br({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[qe.DirectiveLocation.FIELD,qe.DirectiveLocation.FRAGMENT_SPREAD,qe.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new ut.GraphQLNonNull(Li.GraphQLBoolean),description:"Skipped when true."}}});le.GraphQLSkipDirective=mp;var hp="No longer supported";le.DEFAULT_DEPRECATION_REASON=hp;var yp=new br({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[qe.DirectiveLocation.FIELD_DEFINITION,qe.DirectiveLocation.ARGUMENT_DEFINITION,qe.DirectiveLocation.INPUT_FIELD_DEFINITION,qe.DirectiveLocation.ENUM_VALUE],args:{reason:{type:Li.GraphQLString,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:hp}}});le.GraphQLDeprecatedDirective=yp;var vp=new br({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[qe.DirectiveLocation.SCALAR],args:{url:{type:new ut.GraphQLNonNull(Li.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});le.GraphQLSpecifiedByDirective=vp;var Tp=new br({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[qe.DirectiveLocation.INPUT_OBJECT],args:{}});le.GraphQLOneOfDirective=Tp;var gp=Object.freeze([dp,mp,yp,vp,Tp]);le.specifiedDirectives=gp;function Ng(e){return gp.some(({name:r})=>r===e.name)}});var Si=h(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.isIterableObject=Ig;function Ig(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}});var pt=h(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.astFromValue=lt;var bp=J(),Lg=Oe(),Sg=Si(),Dg=or(),Me=V(),ct=Q(),Ag=cr();function lt(e,r){if((0,ct.isNonNullType)(r)){let n=lt(e,r.ofType);return n?.kind===Me.Kind.NULL?null:n}if(e===null)return{kind:Me.Kind.NULL};if(e===void 0)return null;if((0,ct.isListType)(r)){let n=r.ofType;if((0,Sg.isIterableObject)(e)){let t=[];for(let i of e){let o=lt(i,n);o!=null&&t.push(o)}return{kind:Me.Kind.LIST,values:t}}return lt(e,n)}if((0,ct.isInputObjectType)(r)){if(!(0,Dg.isObjectLike)(e))return null;let n=[];for(let t of Object.values(r.getFields())){let i=lt(e[t.name],t.type);i&&n.push({kind:Me.Kind.OBJECT_FIELD,name:{kind:Me.Kind.NAME,value:t.name},value:i})}return{kind:Me.Kind.OBJECT,fields:n}}if((0,ct.isLeafType)(r)){let n=r.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Me.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let t=String(n);return Ep.test(t)?{kind:Me.Kind.INT,value:t}:{kind:Me.Kind.FLOAT,value:t}}if(typeof n=="string")return(0,ct.isEnumType)(r)?{kind:Me.Kind.ENUM,value:n}:r===Ag.GraphQLID&&Ep.test(n)?{kind:Me.Kind.INT,value:n}:{kind:Me.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,bp.inspect)(n)}.`)}(0,Lg.invariant)(!1,"Unexpected input type: "+(0,bp.inspect)(r))}var Ep=/^-?(?:0|[1-9][0-9]*)$/});var Ve=h(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.introspectionTypes=W.__TypeKind=W.__Type=W.__Schema=W.__InputValue=W.__Field=W.__EnumValue=W.__DirectiveLocation=W.__Directive=W.TypeNameMetaFieldDef=W.TypeMetaFieldDef=W.TypeKind=W.SchemaMetaFieldDef=void 0;W.isIntrospectionType=Cg;var Rg=J(),Pg=Oe(),ye=vn(),jg=xe(),wg=pt(),N=Q(),X=cr(),Is=new N.GraphQLObjectType({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:()=>({description:{type:X.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(Ge))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new N.GraphQLNonNull(Ge),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Ge,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Ge,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(Ls))),resolve:e=>e.getDirectives()}})});W.__Schema=Is;var Ls=new N.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
51
+
52
+ In 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:()=>({name:{type:new N.GraphQLNonNull(X.GraphQLString),resolve:e=>e.name},description:{type:X.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new N.GraphQLNonNull(X.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(Ss))),resolve:e=>e.locations},args:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(ft))),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){return r?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});W.__Directive=Ls;var Ss=new N.GraphQLEnumType({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:ye.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:ye.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:ye.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:ye.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:ye.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:ye.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:ye.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:ye.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:ye.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:ye.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:ye.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:ye.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:ye.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:ye.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:ye.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:ye.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:ye.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:ye.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:ye.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});W.__DirectiveLocation=Ss;var Ge=new N.GraphQLObjectType({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:()=>({kind:{type:new N.GraphQLNonNull(Rs),resolve(e){if((0,N.isScalarType)(e))return ve.SCALAR;if((0,N.isObjectType)(e))return ve.OBJECT;if((0,N.isInterfaceType)(e))return ve.INTERFACE;if((0,N.isUnionType)(e))return ve.UNION;if((0,N.isEnumType)(e))return ve.ENUM;if((0,N.isInputObjectType)(e))return ve.INPUT_OBJECT;if((0,N.isListType)(e))return ve.LIST;if((0,N.isNonNullType)(e))return ve.NON_NULL;(0,Pg.invariant)(!1,`Unexpected type: "${(0,Rg.inspect)(e)}".`)}},name:{type:X.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:X.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:X.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new N.GraphQLList(new N.GraphQLNonNull(Ds)),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,N.isObjectType)(e)||(0,N.isInterfaceType)(e)){let n=Object.values(e.getFields());return r?n:n.filter(t=>t.deprecationReason==null)}}},interfaces:{type:new N.GraphQLList(new N.GraphQLNonNull(Ge)),resolve(e){if((0,N.isObjectType)(e)||(0,N.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new N.GraphQLList(new N.GraphQLNonNull(Ge)),resolve(e,r,n,{schema:t}){if((0,N.isAbstractType)(e))return t.getPossibleTypes(e)}},enumValues:{type:new N.GraphQLList(new N.GraphQLNonNull(As)),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,N.isEnumType)(e)){let n=e.getValues();return r?n:n.filter(t=>t.deprecationReason==null)}}},inputFields:{type:new N.GraphQLList(new N.GraphQLNonNull(ft)),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,N.isInputObjectType)(e)){let n=Object.values(e.getFields());return r?n:n.filter(t=>t.deprecationReason==null)}}},ofType:{type:Ge,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:X.GraphQLBoolean,resolve:e=>{if((0,N.isInputObjectType)(e))return e.isOneOf}}})});W.__Type=Ge;var Ds=new N.GraphQLObjectType({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:()=>({name:{type:new N.GraphQLNonNull(X.GraphQLString),resolve:e=>e.name},description:{type:X.GraphQLString,resolve:e=>e.description},args:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(ft))),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){return r?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new N.GraphQLNonNull(Ge),resolve:e=>e.type},isDeprecated:{type:new N.GraphQLNonNull(X.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:X.GraphQLString,resolve:e=>e.deprecationReason}})});W.__Field=Ds;var ft=new N.GraphQLObjectType({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:()=>({name:{type:new N.GraphQLNonNull(X.GraphQLString),resolve:e=>e.name},description:{type:X.GraphQLString,resolve:e=>e.description},type:{type:new N.GraphQLNonNull(Ge),resolve:e=>e.type},defaultValue:{type:X.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:r,defaultValue:n}=e,t=(0,wg.astFromValue)(n,r);return t?(0,jg.print)(t):null}},isDeprecated:{type:new N.GraphQLNonNull(X.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:X.GraphQLString,resolve:e=>e.deprecationReason}})});W.__InputValue=ft;var As=new N.GraphQLObjectType({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:()=>({name:{type:new N.GraphQLNonNull(X.GraphQLString),resolve:e=>e.name},description:{type:X.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new N.GraphQLNonNull(X.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:X.GraphQLString,resolve:e=>e.deprecationReason}})});W.__EnumValue=As;var ve;W.TypeKind=ve;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(ve||(W.TypeKind=ve={}));var Rs=new N.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ve.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ve.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ve.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ve.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ve.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ve.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ve.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ve.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});W.__TypeKind=Rs;var xg={name:"__schema",type:new N.GraphQLNonNull(Is),description:"Access the current type schema of this server.",args:[],resolve:(e,r,n,{schema:t})=>t,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};W.SchemaMetaFieldDef=xg;var Fg={name:"__type",type:Ge,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new N.GraphQLNonNull(X.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:r},n,{schema:t})=>t.getType(r),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};W.TypeMetaFieldDef=Fg;var kg={name:"__typename",type:new N.GraphQLNonNull(X.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,r,n,{parentType:t})=>t.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};W.TypeNameMetaFieldDef=kg;var _p=Object.freeze([Is,Ls,Ss,Ge,Ds,ft,As,Rs]);W.introspectionTypes=_p;function Cg(e){return _p.some(({name:r})=>e.name===r)}});var Zr=h(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.GraphQLSchema=void 0;On.assertSchema=Qg;On.isSchema=Np;var Di=Le(),js=J(),qg=Hn(),Mg=or(),Gg=si(),Ps=sr(),ze=Q(),Op=Re(),Vg=Ve();function Np(e){return(0,qg.instanceOf)(e,Ai)}function Qg(e){if(!Np(e))throw new Error(`Expected ${(0,js.inspect)(e)} to be a GraphQL schema.`);return e}var Ai=class{constructor(r){var n,t;this.__validationErrors=r.assumeValid===!0?[]:void 0,(0,Mg.isObjectLike)(r)||(0,Di.devAssert)(!1,"Must provide configuration object."),!r.types||Array.isArray(r.types)||(0,Di.devAssert)(!1,`"types" must be Array if provided but got: ${(0,js.inspect)(r.types)}.`),!r.directives||Array.isArray(r.directives)||(0,Di.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,js.inspect)(r.directives)}.`),this.description=r.description,this.extensions=(0,Gg.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=r.query,this._mutationType=r.mutation,this._subscriptionType=r.subscription,this._directives=(t=r.directives)!==null&&t!==void 0?t:Op.specifiedDirectives;let i=new Set(r.types);if(r.types!=null)for(let o of r.types)i.delete(o),Ze(o,i);this._queryType!=null&&Ze(this._queryType,i),this._mutationType!=null&&Ze(this._mutationType,i),this._subscriptionType!=null&&Ze(this._subscriptionType,i);for(let o of this._directives)if((0,Op.isDirective)(o))for(let s of o.args)Ze(s.type,i);Ze(Vg.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let o of i){if(o==null)continue;let s=o.name;if(s||(0,Di.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[s]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${s}".`);if(this._typeMap[s]=o,(0,ze.isInterfaceType)(o)){for(let a of o.getInterfaces())if((0,ze.isInterfaceType)(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.interfaces.push(o)}}else if((0,ze.isObjectType)(o)){for(let a of o.getInterfaces())if((0,ze.isInterfaceType)(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.objects.push(o)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(r){switch(r){case Ps.OperationTypeNode.QUERY:return this.getQueryType();case Ps.OperationTypeNode.MUTATION:return this.getMutationType();case Ps.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(r){return this.getTypeMap()[r]}getPossibleTypes(r){return(0,ze.isUnionType)(r)?r.getTypes():this.getImplementations(r).objects}getImplementations(r){let n=this._implementationsMap[r.name];return n??{objects:[],interfaces:[]}}isSubType(r,n){let t=this._subTypeMap[r.name];if(t===void 0){if(t=Object.create(null),(0,ze.isUnionType)(r))for(let i of r.getTypes())t[i.name]=!0;else{let i=this.getImplementations(r);for(let o of i.objects)t[o.name]=!0;for(let o of i.interfaces)t[o.name]=!0}this._subTypeMap[r.name]=t}return t[n.name]!==void 0}getDirectives(){return this._directives}getDirective(r){return this.getDirectives().find(n=>n.name===r)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};On.GraphQLSchema=Ai;function Ze(e,r){let n=(0,ze.getNamedType)(e);if(!r.has(n)){if(r.add(n),(0,ze.isUnionType)(n))for(let t of n.getTypes())Ze(t,r);else if((0,ze.isObjectType)(n)||(0,ze.isInterfaceType)(n)){for(let t of n.getInterfaces())Ze(t,r);for(let t of Object.values(n.getFields())){Ze(t.type,r);for(let i of t.args)Ze(i.type,r)}}else if((0,ze.isInputObjectType)(n))for(let t of Object.values(n.getFields()))Ze(t.type,r)}return r}});var mt=h(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.assertValidSchema=Bg;Ri.validateSchema=Rp;var Ie=J(),Ug=j(),ws=sr(),Ip=it(),oe=Q(),Ap=Re(),$g=Ve(),Kg=Zr();function Rp(e){if((0,Kg.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let r=new Fs(e);Yg(r),Hg(r),Jg(r);let n=r.getErrors();return e.__validationErrors=n,n}function Bg(e){let r=Rp(e);if(r.length!==0)throw new Error(r.map(n=>n.message).join(`
53
+
54
+ `))}var Fs=class{constructor(r){this._errors=[],this.schema=r}reportError(r,n){let t=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new Ug.GraphQLError(r,{nodes:t}))}getErrors(){return this._errors}};function Yg(e){let r=e.schema,n=r.getQueryType();if(!n)e.reportError("Query root type must be provided.",r.astNode);else if(!(0,oe.isObjectType)(n)){var t;e.reportError(`Query root type must be Object type, it cannot be ${(0,Ie.inspect)(n)}.`,(t=xs(r,ws.OperationTypeNode.QUERY))!==null&&t!==void 0?t:n.astNode)}let i=r.getMutationType();if(i&&!(0,oe.isObjectType)(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,Ie.inspect)(i)}.`,(o=xs(r,ws.OperationTypeNode.MUTATION))!==null&&o!==void 0?o:i.astNode)}let s=r.getSubscriptionType();if(s&&!(0,oe.isObjectType)(s)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,Ie.inspect)(s)}.`,(a=xs(r,ws.OperationTypeNode.SUBSCRIPTION))!==null&&a!==void 0?a:s.astNode)}}function xs(e,r){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(t=>{var i;return(i=t?.operationTypes)!==null&&i!==void 0?i:[]}).find(t=>t.operation===r))===null||n===void 0?void 0:n.type}function Hg(e){for(let n of e.schema.getDirectives()){if(!(0,Ap.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,Ie.inspect)(n)}.`,n?.astNode);continue}en(e,n),n.locations.length===0&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(let t of n.args)if(en(e,t),(0,oe.isInputType)(t.type)||e.reportError(`The type of @${n.name}(${t.name}:) must be Input Type but got: ${(0,Ie.inspect)(t.type)}.`,t.astNode),(0,oe.isRequiredArgument)(t)&&t.deprecationReason!=null){var r;e.reportError(`Required argument @${n.name}(${t.name}:) cannot be deprecated.`,[ks(t.astNode),(r=t.astNode)===null||r===void 0?void 0:r.type])}}}function en(e,r){r.name.startsWith("__")&&e.reportError(`Name "${r.name}" must not begin with "__", which is reserved by GraphQL introspection.`,r.astNode)}function Jg(e){let r=nb(e),n=e.schema.getTypeMap();for(let t of Object.values(n)){if(!(0,oe.isNamedType)(t)){e.reportError(`Expected GraphQL named type but got: ${(0,Ie.inspect)(t)}.`,t.astNode);continue}(0,$g.isIntrospectionType)(t)||en(e,t),(0,oe.isObjectType)(t)||(0,oe.isInterfaceType)(t)?(Lp(e,t),Sp(e,t)):(0,oe.isUnionType)(t)?zg(e,t):(0,oe.isEnumType)(t)?Zg(e,t):(0,oe.isInputObjectType)(t)&&(eb(e,t),r(t))}}function Lp(e,r){let n=Object.values(r.getFields());n.length===0&&e.reportError(`Type ${r.name} must define one or more fields.`,[r.astNode,...r.extensionASTNodes]);for(let s of n){if(en(e,s),!(0,oe.isOutputType)(s.type)){var t;e.reportError(`The type of ${r.name}.${s.name} must be Output Type but got: ${(0,Ie.inspect)(s.type)}.`,(t=s.astNode)===null||t===void 0?void 0:t.type)}for(let a of s.args){let u=a.name;if(en(e,a),!(0,oe.isInputType)(a.type)){var i;e.reportError(`The type of ${r.name}.${s.name}(${u}:) must be Input Type but got: ${(0,Ie.inspect)(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if((0,oe.isRequiredArgument)(a)&&a.deprecationReason!=null){var o;e.reportError(`Required argument ${r.name}.${s.name}(${u}:) cannot be deprecated.`,[ks(a.astNode),(o=a.astNode)===null||o===void 0?void 0:o.type])}}}}function Sp(e,r){let n=Object.create(null);for(let t of r.getInterfaces()){if(!(0,oe.isInterfaceType)(t)){e.reportError(`Type ${(0,Ie.inspect)(r)} must only implement Interface types, it cannot implement ${(0,Ie.inspect)(t)}.`,dt(r,t));continue}if(r===t){e.reportError(`Type ${r.name} cannot implement itself because it would create a circular reference.`,dt(r,t));continue}if(n[t.name]){e.reportError(`Type ${r.name} can only implement ${t.name} once.`,dt(r,t));continue}n[t.name]=!0,Xg(e,r,t),Wg(e,r,t)}}function Wg(e,r,n){let t=r.getFields();for(let u of Object.values(n.getFields())){let c=u.name,l=t[c];if(!l){e.reportError(`Interface field ${n.name}.${c} expected but ${r.name} does not provide it.`,[u.astNode,r.astNode,...r.extensionASTNodes]);continue}if(!(0,Ip.isTypeSubTypeOf)(e.schema,l.type,u.type)){var i,o;e.reportError(`Interface field ${n.name}.${c} expects type ${(0,Ie.inspect)(u.type)} but ${r.name}.${c} is type ${(0,Ie.inspect)(l.type)}.`,[(i=u.astNode)===null||i===void 0?void 0:i.type,(o=l.astNode)===null||o===void 0?void 0:o.type])}for(let p of u.args){let f=p.name,m=l.args.find(y=>y.name===f);if(!m){e.reportError(`Interface field argument ${n.name}.${c}(${f}:) expected but ${r.name}.${c} does not provide it.`,[p.astNode,l.astNode]);continue}if(!(0,Ip.isEqualType)(p.type,m.type)){var s,a;e.reportError(`Interface field argument ${n.name}.${c}(${f}:) expects type ${(0,Ie.inspect)(p.type)} but ${r.name}.${c}(${f}:) is type ${(0,Ie.inspect)(m.type)}.`,[(s=p.astNode)===null||s===void 0?void 0:s.type,(a=m.astNode)===null||a===void 0?void 0:a.type])}}for(let p of l.args){let f=p.name;!u.args.find(y=>y.name===f)&&(0,oe.isRequiredArgument)(p)&&e.reportError(`Object field ${r.name}.${c} includes required argument ${f} that is missing from the Interface field ${n.name}.${c}.`,[p.astNode,u.astNode])}}}function Xg(e,r,n){let t=r.getInterfaces();for(let i of n.getInterfaces())t.includes(i)||e.reportError(i===r?`Type ${r.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${r.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...dt(n,i),...dt(r,n)])}function zg(e,r){let n=r.getTypes();n.length===0&&e.reportError(`Union type ${r.name} must define one or more member types.`,[r.astNode,...r.extensionASTNodes]);let t=Object.create(null);for(let i of n){if(t[i.name]){e.reportError(`Union type ${r.name} can only include type ${i.name} once.`,Dp(r,i.name));continue}t[i.name]=!0,(0,oe.isObjectType)(i)||e.reportError(`Union type ${r.name} can only include Object types, it cannot include ${(0,Ie.inspect)(i)}.`,Dp(r,String(i)))}}function Zg(e,r){let n=r.getValues();n.length===0&&e.reportError(`Enum type ${r.name} must define one or more values.`,[r.astNode,...r.extensionASTNodes]);for(let t of n)en(e,t)}function eb(e,r){let n=Object.values(r.getFields());n.length===0&&e.reportError(`Input Object type ${r.name} must define one or more fields.`,[r.astNode,...r.extensionASTNodes]);for(let o of n){if(en(e,o),!(0,oe.isInputType)(o.type)){var t;e.reportError(`The type of ${r.name}.${o.name} must be Input Type but got: ${(0,Ie.inspect)(o.type)}.`,(t=o.astNode)===null||t===void 0?void 0:t.type)}if((0,oe.isRequiredInputField)(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${r.name}.${o.name} cannot be deprecated.`,[ks(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}r.isOneOf&&rb(r,o,e)}}function rb(e,r,n){if((0,oe.isNonNullType)(r.type)){var t;n.reportError(`OneOf input field ${e.name}.${r.name} must be nullable.`,(t=r.astNode)===null||t===void 0?void 0:t.type)}r.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${r.name} cannot have a default value.`,r.astNode)}function nb(e){let r=Object.create(null),n=[],t=Object.create(null);return i;function i(o){if(r[o.name])return;r[o.name]=!0,t[o.name]=n.length;let s=Object.values(o.getFields());for(let a of s)if((0,oe.isNonNullType)(a.type)&&(0,oe.isInputObjectType)(a.type.ofType)){let u=a.type.ofType,c=t[u.name];if(n.push(a),c===void 0)i(u);else{let l=n.slice(c),p=l.map(f=>f.name).join(".");e.reportError(`Cannot reference Input Object "${u.name}" within itself through a series of non-null fields: "${p}".`,l.map(f=>f.astNode))}n.pop()}t[o.name]=void 0}}function dt(e,r){let{astNode:n,extensionASTNodes:t}=e;return(n!=null?[n,...t]:t).flatMap(o=>{var s;return(s=o.interfaces)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===r.name)}function Dp(e,r){let{astNode:n,extensionASTNodes:t}=e;return(n!=null?[n,...t]:t).flatMap(o=>{var s;return(s=o.types)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===r)}function ks(e){var r;return e==null||(r=e.directives)===null||r===void 0?void 0:r.find(n=>n.name.value===Ap.GraphQLDeprecatedDirective.name)}});var lr=h(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.typeFromAST=qs;var Cs=V(),Pp=Q();function qs(e,r){switch(r.kind){case Cs.Kind.LIST_TYPE:{let n=qs(e,r.type);return n&&new Pp.GraphQLList(n)}case Cs.Kind.NON_NULL_TYPE:{let n=qs(e,r.type);return n&&new Pp.GraphQLNonNull(n)}case Cs.Kind.NAMED_TYPE:return e.getType(r.name.value)}}});var Pi=h(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.TypeInfo=void 0;ht.visitWithTypeInfo=ob;var tb=sr(),se=V(),jp=Yr(),ae=Q(),Nn=Ve(),wp=lr(),Gs=class{constructor(r,n,t){this._schema=r,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=t??ib,n&&((0,ae.isInputType)(n)&&this._inputTypeStack.push(n),(0,ae.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,ae.isOutputType)(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(r){let n=this._schema;switch(r.kind){case se.Kind.SELECTION_SET:{let i=(0,ae.getNamedType)(this.getType());this._parentTypeStack.push((0,ae.isCompositeType)(i)?i:void 0);break}case se.Kind.FIELD:{let i=this.getParentType(),o,s;i&&(o=this._getFieldDef(n,i,r),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push((0,ae.isOutputType)(s)?s:void 0);break}case se.Kind.DIRECTIVE:this._directive=n.getDirective(r.name.value);break;case se.Kind.OPERATION_DEFINITION:{let i=n.getRootType(r.operation);this._typeStack.push((0,ae.isObjectType)(i)?i:void 0);break}case se.Kind.INLINE_FRAGMENT:case se.Kind.FRAGMENT_DEFINITION:{let i=r.typeCondition,o=i?(0,wp.typeFromAST)(n,i):(0,ae.getNamedType)(this.getType());this._typeStack.push((0,ae.isOutputType)(o)?o:void 0);break}case se.Kind.VARIABLE_DEFINITION:{let i=(0,wp.typeFromAST)(n,r.type);this._inputTypeStack.push((0,ae.isInputType)(i)?i:void 0);break}case se.Kind.ARGUMENT:{var t;let i,o,s=(t=this.getDirective())!==null&&t!==void 0?t:this.getFieldDef();s&&(i=s.args.find(a=>a.name===r.name.value),i&&(o=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,ae.isInputType)(o)?o:void 0);break}case se.Kind.LIST:{let i=(0,ae.getNullableType)(this.getInputType()),o=(0,ae.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,ae.isInputType)(o)?o:void 0);break}case se.Kind.OBJECT_FIELD:{let i=(0,ae.getNamedType)(this.getInputType()),o,s;(0,ae.isInputObjectType)(i)&&(s=i.getFields()[r.name.value],s&&(o=s.type)),this._defaultValueStack.push(s?s.defaultValue:void 0),this._inputTypeStack.push((0,ae.isInputType)(o)?o:void 0);break}case se.Kind.ENUM:{let i=(0,ae.getNamedType)(this.getInputType()),o;(0,ae.isEnumType)(i)&&(o=i.getValue(r.value)),this._enumValue=o;break}default:}}leave(r){switch(r.kind){case se.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case se.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case se.Kind.DIRECTIVE:this._directive=null;break;case se.Kind.OPERATION_DEFINITION:case se.Kind.INLINE_FRAGMENT:case se.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case se.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case se.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case se.Kind.LIST:case se.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case se.Kind.ENUM:this._enumValue=null;break;default:}}};ht.TypeInfo=Gs;function ib(e,r,n){let t=n.name.value;if(t===Nn.SchemaMetaFieldDef.name&&e.getQueryType()===r)return Nn.SchemaMetaFieldDef;if(t===Nn.TypeMetaFieldDef.name&&e.getQueryType()===r)return Nn.TypeMetaFieldDef;if(t===Nn.TypeNameMetaFieldDef.name&&(0,ae.isCompositeType)(r))return Nn.TypeNameMetaFieldDef;if((0,ae.isObjectType)(r)||(0,ae.isInterfaceType)(r))return r.getFields()[t]}function ob(e,r){return{enter(...n){let t=n[0];e.enter(t);let i=(0,jp.getEnterLeaveForKind)(r,t.kind).enter;if(i){let o=i.apply(r,n);return o!==void 0&&(e.leave(t),(0,tb.isNode)(o)&&e.enter(o)),o}},leave(...n){let t=n[0],i=(0,jp.getEnterLeaveForKind)(r,t.kind).leave,o;return i&&(o=i.apply(r,n)),e.leave(t),o}}}});var rn=h(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.isConstValueNode=Vs;Qe.isDefinitionNode=sb;Qe.isExecutableDefinitionNode=xp;Qe.isSelectionNode=ab;Qe.isTypeDefinitionNode=Cp;Qe.isTypeExtensionNode=Mp;Qe.isTypeNode=ub;Qe.isTypeSystemDefinitionNode=kp;Qe.isTypeSystemExtensionNode=qp;Qe.isValueNode=Fp;var U=V();function sb(e){return xp(e)||kp(e)||qp(e)}function xp(e){return e.kind===U.Kind.OPERATION_DEFINITION||e.kind===U.Kind.FRAGMENT_DEFINITION}function ab(e){return e.kind===U.Kind.FIELD||e.kind===U.Kind.FRAGMENT_SPREAD||e.kind===U.Kind.INLINE_FRAGMENT}function Fp(e){return e.kind===U.Kind.VARIABLE||e.kind===U.Kind.INT||e.kind===U.Kind.FLOAT||e.kind===U.Kind.STRING||e.kind===U.Kind.BOOLEAN||e.kind===U.Kind.NULL||e.kind===U.Kind.ENUM||e.kind===U.Kind.LIST||e.kind===U.Kind.OBJECT}function Vs(e){return Fp(e)&&(e.kind===U.Kind.LIST?e.values.some(Vs):e.kind===U.Kind.OBJECT?e.fields.some(r=>Vs(r.value)):e.kind!==U.Kind.VARIABLE)}function ub(e){return e.kind===U.Kind.NAMED_TYPE||e.kind===U.Kind.LIST_TYPE||e.kind===U.Kind.NON_NULL_TYPE}function kp(e){return e.kind===U.Kind.SCHEMA_DEFINITION||Cp(e)||e.kind===U.Kind.DIRECTIVE_DEFINITION}function Cp(e){return e.kind===U.Kind.SCALAR_TYPE_DEFINITION||e.kind===U.Kind.OBJECT_TYPE_DEFINITION||e.kind===U.Kind.INTERFACE_TYPE_DEFINITION||e.kind===U.Kind.UNION_TYPE_DEFINITION||e.kind===U.Kind.ENUM_TYPE_DEFINITION||e.kind===U.Kind.INPUT_OBJECT_TYPE_DEFINITION}function qp(e){return e.kind===U.Kind.SCHEMA_EXTENSION||Mp(e)}function Mp(e){return e.kind===U.Kind.SCALAR_TYPE_EXTENSION||e.kind===U.Kind.OBJECT_TYPE_EXTENSION||e.kind===U.Kind.INTERFACE_TYPE_EXTENSION||e.kind===U.Kind.UNION_TYPE_EXTENSION||e.kind===U.Kind.ENUM_TYPE_EXTENSION||e.kind===U.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var Us=h(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.ExecutableDefinitionsRule=pb;var cb=j(),Gp=V(),lb=rn();function pb(e){return{Document(r){for(let n of r.definitions)if(!(0,lb.isExecutableDefinitionNode)(n)){let t=n.kind===Gp.Kind.SCHEMA_DEFINITION||n.kind===Gp.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new cb.GraphQLError(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}});var Ks=h($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.FieldsOnCorrectTypeRule=hb;var Vp=Pr(),fb=zn(),db=wr(),mb=j(),yt=Q();function hb(e){return{Field(r){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),o=r.name.value,s=(0,Vp.didYouMean)("to use an inline fragment on",yb(i,n,o));s===""&&(s=(0,Vp.didYouMean)(vb(n,o))),e.reportError(new mb.GraphQLError(`Cannot query field "${o}" on type "${n.name}".`+s,{nodes:r}))}}}}function yb(e,r,n){if(!(0,yt.isAbstractType)(r))return[];let t=new Set,i=Object.create(null);for(let s of e.getPossibleTypes(r))if(s.getFields()[n]){t.add(s),i[s.name]=1;for(let a of s.getInterfaces()){var o;a.getFields()[n]&&(t.add(a),i[a.name]=((o=i[a.name])!==null&&o!==void 0?o:0)+1)}}return[...t].sort((s,a)=>{let u=i[a.name]-i[s.name];return u!==0?u:(0,yt.isInterfaceType)(s)&&e.isSubType(s,a)?-1:(0,yt.isInterfaceType)(a)&&e.isSubType(a,s)?1:(0,fb.naturalCompare)(s.name,a.name)}).map(s=>s.name)}function vb(e,r){if((0,yt.isObjectType)(e)||(0,yt.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,db.suggestionList)(r,n)}return[]}});var Ys=h(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.FragmentsOnCompositeTypesRule=Tb;var Qp=j(),Up=xe(),$p=Q(),Kp=lr();function Tb(e){return{InlineFragment(r){let n=r.typeCondition;if(n){let t=(0,Kp.typeFromAST)(e.getSchema(),n);if(t&&!(0,$p.isCompositeType)(t)){let i=(0,Up.print)(n);e.reportError(new Qp.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(r){let n=(0,Kp.typeFromAST)(e.getSchema(),r.typeCondition);if(n&&!(0,$p.isCompositeType)(n)){let t=(0,Up.print)(r.typeCondition);e.reportError(new Qp.GraphQLError(`Fragment "${r.name.value}" cannot condition on non composite type "${t}".`,{nodes:r.typeCondition}))}}}}});var Hs=h(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.KnownArgumentNamesOnDirectivesRule=Jp;ji.KnownArgumentNamesRule=Eb;var Bp=Pr(),Yp=wr(),Hp=j(),gb=V(),bb=Re();function Eb(e){return{...Jp(e),Argument(r){let n=e.getArgument(),t=e.getFieldDef(),i=e.getParentType();if(!n&&t&&i){let o=r.name.value,s=t.args.map(u=>u.name),a=(0,Yp.suggestionList)(o,s);e.reportError(new Hp.GraphQLError(`Unknown argument "${o}" on field "${i.name}.${t.name}".`+(0,Bp.didYouMean)(a),{nodes:r}))}}}}function Jp(e){let r=Object.create(null),n=e.getSchema(),t=n?n.getDirectives():bb.specifiedDirectives;for(let s of t)r[s.name]=s.args.map(a=>a.name);let i=e.getDocument().definitions;for(let s of i)if(s.kind===gb.Kind.DIRECTIVE_DEFINITION){var o;let a=(o=s.arguments)!==null&&o!==void 0?o:[];r[s.name.value]=a.map(u=>u.name.value)}return{Directive(s){let a=s.name.value,u=r[a];if(s.arguments&&u)for(let c of s.arguments){let l=c.name.value;if(!u.includes(l)){let p=(0,Yp.suggestionList)(l,u);e.reportError(new Hp.GraphQLError(`Unknown argument "${l}" on directive "@${a}".`+(0,Bp.didYouMean)(p),{nodes:c}))}}return!1}}}});var zs=h(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.KnownDirectivesRule=Nb;var _b=J(),Js=Oe(),Wp=j(),Ws=sr(),Te=vn(),ee=V(),Ob=Re();function Nb(e){let r=Object.create(null),n=e.getSchema(),t=n?n.getDirectives():Ob.specifiedDirectives;for(let o of t)r[o.name]=o.locations;let i=e.getDocument().definitions;for(let o of i)o.kind===ee.Kind.DIRECTIVE_DEFINITION&&(r[o.name.value]=o.locations.map(s=>s.value));return{Directive(o,s,a,u,c){let l=o.name.value,p=r[l];if(!p){e.reportError(new Wp.GraphQLError(`Unknown directive "@${l}".`,{nodes:o}));return}let f=Ib(c);f&&!p.includes(f)&&e.reportError(new Wp.GraphQLError(`Directive "@${l}" may not be used on ${f}.`,{nodes:o}))}}}function Ib(e){let r=e[e.length-1];switch("kind"in r||(0,Js.invariant)(!1),r.kind){case ee.Kind.OPERATION_DEFINITION:return Lb(r.operation);case ee.Kind.FIELD:return Te.DirectiveLocation.FIELD;case ee.Kind.FRAGMENT_SPREAD:return Te.DirectiveLocation.FRAGMENT_SPREAD;case ee.Kind.INLINE_FRAGMENT:return Te.DirectiveLocation.INLINE_FRAGMENT;case ee.Kind.FRAGMENT_DEFINITION:return Te.DirectiveLocation.FRAGMENT_DEFINITION;case ee.Kind.VARIABLE_DEFINITION:return Te.DirectiveLocation.VARIABLE_DEFINITION;case ee.Kind.SCHEMA_DEFINITION:case ee.Kind.SCHEMA_EXTENSION:return Te.DirectiveLocation.SCHEMA;case ee.Kind.SCALAR_TYPE_DEFINITION:case ee.Kind.SCALAR_TYPE_EXTENSION:return Te.DirectiveLocation.SCALAR;case ee.Kind.OBJECT_TYPE_DEFINITION:case ee.Kind.OBJECT_TYPE_EXTENSION:return Te.DirectiveLocation.OBJECT;case ee.Kind.FIELD_DEFINITION:return Te.DirectiveLocation.FIELD_DEFINITION;case ee.Kind.INTERFACE_TYPE_DEFINITION:case ee.Kind.INTERFACE_TYPE_EXTENSION:return Te.DirectiveLocation.INTERFACE;case ee.Kind.UNION_TYPE_DEFINITION:case ee.Kind.UNION_TYPE_EXTENSION:return Te.DirectiveLocation.UNION;case ee.Kind.ENUM_TYPE_DEFINITION:case ee.Kind.ENUM_TYPE_EXTENSION:return Te.DirectiveLocation.ENUM;case ee.Kind.ENUM_VALUE_DEFINITION:return Te.DirectiveLocation.ENUM_VALUE;case ee.Kind.INPUT_OBJECT_TYPE_DEFINITION:case ee.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Te.DirectiveLocation.INPUT_OBJECT;case ee.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,Js.invariant)(!1),n.kind===ee.Kind.INPUT_OBJECT_TYPE_DEFINITION?Te.DirectiveLocation.INPUT_FIELD_DEFINITION:Te.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,Js.invariant)(!1,"Unexpected kind: "+(0,_b.inspect)(r.kind))}}function Lb(e){switch(e){case Ws.OperationTypeNode.QUERY:return Te.DirectiveLocation.QUERY;case Ws.OperationTypeNode.MUTATION:return Te.DirectiveLocation.MUTATION;case Ws.OperationTypeNode.SUBSCRIPTION:return Te.DirectiveLocation.SUBSCRIPTION}}});var ea=h(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.KnownFragmentNamesRule=Db;var Sb=j();function Db(e){return{FragmentSpread(r){let n=r.name.value;e.getFragment(n)||e.reportError(new Sb.GraphQLError(`Unknown fragment "${n}".`,{nodes:r.name}))}}}});var ta=h(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.KnownTypeNamesRule=xb;var Ab=Pr(),Rb=wr(),Pb=j(),ra=rn(),jb=Ve(),wb=cr();function xb(e){let r=e.getSchema(),n=r?r.getTypeMap():Object.create(null),t=Object.create(null);for(let o of e.getDocument().definitions)(0,ra.isTypeDefinitionNode)(o)&&(t[o.name.value]=!0);let i=[...Object.keys(n),...Object.keys(t)];return{NamedType(o,s,a,u,c){let l=o.name.value;if(!n[l]&&!t[l]){var p;let f=(p=c[2])!==null&&p!==void 0?p:a,m=f!=null&&Fb(f);if(m&&Xp.includes(l))return;let y=(0,Rb.suggestionList)(l,m?Xp.concat(i):i);e.reportError(new Pb.GraphQLError(`Unknown type "${l}".`+(0,Ab.didYouMean)(y),{nodes:o}))}}}}var Xp=[...wb.specifiedScalarTypes,...jb.introspectionTypes].map(e=>e.name);function Fb(e){return"kind"in e&&((0,ra.isTypeSystemDefinitionNode)(e)||(0,ra.isTypeSystemExtensionNode)(e))}});var oa=h(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.LoneAnonymousOperationRule=qb;var kb=j(),Cb=V();function qb(e){let r=0;return{Document(n){r=n.definitions.filter(t=>t.kind===Cb.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&r>1&&e.reportError(new kb.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var aa=h(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.LoneSchemaDefinitionRule=Mb;var zp=j();function Mb(e){var r,n,t;let i=e.getSchema(),o=(r=(n=(t=i?.astNode)!==null&&t!==void 0?t:i?.getQueryType())!==null&&n!==void 0?n:i?.getMutationType())!==null&&r!==void 0?r:i?.getSubscriptionType(),s=0;return{SchemaDefinition(a){if(o){e.reportError(new zp.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:a}));return}s>0&&e.reportError(new zp.GraphQLError("Must provide only one schema definition.",{nodes:a})),++s}}}});var ca=h(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.MaxIntrospectionDepthRule=Qb;var Gb=j(),Zp=V(),Vb=3;function Qb(e){function r(n,t=Object.create(null),i=0){if(n.kind===Zp.Kind.FRAGMENT_SPREAD){let o=n.name.value;if(t[o]===!0)return!1;let s=e.getFragment(o);if(!s)return!1;try{return t[o]=!0,r(s,t,i)}finally{t[o]=void 0}}if(n.kind===Zp.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=Vb))return!0;if("selectionSet"in n&&n.selectionSet){for(let o of n.selectionSet.selections)if(r(o,t,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&r(n))return e.reportError(new Gb.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var pa=h(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.NoFragmentCyclesRule=$b;var Ub=j();function $b(e){let r=Object.create(null),n=[],t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(o){return i(o),!1}};function i(o){if(r[o.name.value])return;let s=o.name.value;r[s]=!0;let a=e.getFragmentSpreads(o.selectionSet);if(a.length!==0){t[s]=n.length;for(let u of a){let c=u.name.value,l=t[c];if(n.push(u),l===void 0){let p=e.getFragment(c);p&&i(p)}else{let p=n.slice(l),f=p.slice(0,-1).map(m=>'"'+m.name.value+'"').join(", ");e.reportError(new Ub.GraphQLError(`Cannot spread fragment "${c}" within itself`+(f!==""?` via ${f}.`:"."),{nodes:p}))}n.pop()}t[s]=void 0}}}});var da=h(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.NoUndefinedVariablesRule=Bb;var Kb=j();function Bb(e){let r=Object.create(null);return{OperationDefinition:{enter(){r=Object.create(null)},leave(n){let t=e.getRecursiveVariableUsages(n);for(let{node:i}of t){let o=i.name.value;r[o]!==!0&&e.reportError(new Kb.GraphQLError(n.name?`Variable "$${o}" is not defined by operation "${n.name.value}".`:`Variable "$${o}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){r[n.variable.name.value]=!0}}}});var ha=h(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.NoUnusedFragmentsRule=Hb;var Yb=j();function Hb(e){let r=[],n=[];return{OperationDefinition(t){return r.push(t),!1},FragmentDefinition(t){return n.push(t),!1},Document:{leave(){let t=Object.create(null);for(let i of r)for(let o of e.getRecursivelyReferencedFragments(i))t[o.name.value]=!0;for(let i of n){let o=i.name.value;t[o]!==!0&&e.reportError(new Yb.GraphQLError(`Fragment "${o}" is never used.`,{nodes:i}))}}}}}});var va=h(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.NoUnusedVariablesRule=Wb;var Jb=j();function Wb(e){let r=[];return{OperationDefinition:{enter(){r=[]},leave(n){let t=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:o}of i)t[o.name.value]=!0;for(let o of r){let s=o.variable.name.value;t[s]!==!0&&e.reportError(new Jb.GraphQLError(n.name?`Variable "$${s}" is never used in operation "${n.name.value}".`:`Variable "$${s}" is never used.`,{nodes:o}))}}},VariableDefinition(n){r.push(n)}}}});var ba=h(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.sortValueNode=Ta;var Xb=zn(),Er=V();function Ta(e){switch(e.kind){case Er.Kind.OBJECT:return{...e,fields:zb(e.fields)};case Er.Kind.LIST:return{...e,values:e.values.map(Ta)};case Er.Kind.INT:case Er.Kind.FLOAT:case Er.Kind.STRING:case Er.Kind.BOOLEAN:case Er.Kind.NULL:case Er.Kind.ENUM:case Er.Kind.VARIABLE:return e}}function zb(e){return e.map(r=>({...r,value:Ta(r.value)})).sort((r,n)=>(0,Xb.naturalCompare)(r.name.value,n.name.value))}});var Sa=h(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.OverlappingFieldsCanBeMergedRule=n0;var ef=J(),Zb=j(),Ea=V(),e0=xe(),Pe=Q(),r0=ba(),nf=lr();function tf(e){return Array.isArray(e)?e.map(([r,n])=>`subfields "${r}" conflict because `+tf(n)).join(" and "):e}function n0(e){let r=new ki,n=new Na,t=new Map;return{SelectionSet(i){let o=t0(e,t,r,n,e.getParentType(),i);for(let[[s,a],u,c]of o){let l=tf(a);e.reportError(new Zb.GraphQLError(`Fields "${s}" conflict because ${l}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(c)}))}}}}function t0(e,r,n,t,i,o){let s=[],[a,u]=Fi(e,r,i,o);if(o0(e,s,r,n,t,a),u.length!==0)for(let c=0;c<u.length;c++){wi(e,s,r,n,t,!1,a,u[c]);for(let l=c+1;l<u.length;l++)xi(e,s,r,n,t,!1,u[c],u[l])}return s}function wi(e,r,n,t,i,o,s,a){if(t.has(s,a,o))return;t.add(s,a,o);let u=e.getFragment(a);if(!u)return;let[c,l]=Oa(e,n,u);if(s!==c){Ia(e,r,n,t,i,o,s,c);for(let p of l)wi(e,r,n,t,i,o,s,p)}}function xi(e,r,n,t,i,o,s,a){if(s===a||i.has(s,a,o))return;i.add(s,a,o);let u=e.getFragment(s),c=e.getFragment(a);if(!u||!c)return;let[l,p]=Oa(e,n,u),[f,m]=Oa(e,n,c);Ia(e,r,n,t,i,o,l,f);for(let y of m)xi(e,r,n,t,i,o,s,y);for(let y of p)xi(e,r,n,t,i,o,y,a)}function i0(e,r,n,t,i,o,s,a,u){let c=[],[l,p]=Fi(e,r,o,s),[f,m]=Fi(e,r,a,u);Ia(e,c,r,n,t,i,l,f);for(let y of m)wi(e,c,r,n,t,i,l,y);for(let y of p)wi(e,c,r,n,t,i,f,y);for(let y of p)for(let O of m)xi(e,c,r,n,t,i,y,O);return c}function o0(e,r,n,t,i,o){for(let[s,a]of Object.entries(o))if(a.length>1)for(let u=0;u<a.length;u++)for(let c=u+1;c<a.length;c++){let l=of(e,n,t,i,!1,s,a[u],a[c]);l&&r.push(l)}}function Ia(e,r,n,t,i,o,s,a){for(let[u,c]of Object.entries(s)){let l=a[u];if(l)for(let p of c)for(let f of l){let m=of(e,n,t,i,o,u,p,f);m&&r.push(m)}}}function of(e,r,n,t,i,o,s,a){let[u,c,l]=s,[p,f,m]=a,y=i||u!==p&&(0,Pe.isObjectType)(u)&&(0,Pe.isObjectType)(p);if(!y){let ce=c.name.value,ie=f.name.value;if(ce!==ie)return[[o,`"${ce}" and "${ie}" are different fields`],[c],[f]];if(!s0(c,f))return[[o,"they have differing arguments"],[c],[f]]}let O=l?.type,P=m?.type;if(O&&P&&_a(O,P))return[[o,`they return conflicting types "${(0,ef.inspect)(O)}" and "${(0,ef.inspect)(P)}"`],[c],[f]];let C=c.selectionSet,A=f.selectionSet;if(C&&A){let ce=i0(e,r,n,t,y,(0,Pe.getNamedType)(O),C,(0,Pe.getNamedType)(P),A);return a0(ce,o,c,f)}}function s0(e,r){let n=e.arguments,t=r.arguments;if(n===void 0||n.length===0)return t===void 0||t.length===0;if(t===void 0||t.length===0||n.length!==t.length)return!1;let i=new Map(t.map(({name:o,value:s})=>[o.value,s]));return n.every(o=>{let s=o.value,a=i.get(o.name.value);return a===void 0?!1:rf(s)===rf(a)})}function rf(e){return(0,e0.print)((0,r0.sortValueNode)(e))}function _a(e,r){return(0,Pe.isListType)(e)?(0,Pe.isListType)(r)?_a(e.ofType,r.ofType):!0:(0,Pe.isListType)(r)?!0:(0,Pe.isNonNullType)(e)?(0,Pe.isNonNullType)(r)?_a(e.ofType,r.ofType):!0:(0,Pe.isNonNullType)(r)?!0:(0,Pe.isLeafType)(e)||(0,Pe.isLeafType)(r)?e!==r:!1}function Fi(e,r,n,t){let i=r.get(t);if(i)return i;let o=Object.create(null),s=Object.create(null);sf(e,n,t,o,s);let a=[o,Object.keys(s)];return r.set(t,a),a}function Oa(e,r,n){let t=r.get(n.selectionSet);if(t)return t;let i=(0,nf.typeFromAST)(e.getSchema(),n.typeCondition);return Fi(e,r,i,n.selectionSet)}function sf(e,r,n,t,i){for(let o of n.selections)switch(o.kind){case Ea.Kind.FIELD:{let s=o.name.value,a;((0,Pe.isObjectType)(r)||(0,Pe.isInterfaceType)(r))&&(a=r.getFields()[s]);let u=o.alias?o.alias.value:s;t[u]||(t[u]=[]),t[u].push([r,o,a]);break}case Ea.Kind.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case Ea.Kind.INLINE_FRAGMENT:{let s=o.typeCondition,a=s?(0,nf.typeFromAST)(e.getSchema(),s):r;sf(e,a,o.selectionSet,t,i);break}}}function a0(e,r,n,t){if(e.length>0)return[[r,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[t,...e.map(([,,i])=>i).flat()]]}var ki=class{constructor(){this._data=new Map}has(r,n,t){var i;let o=(i=this._data.get(r))===null||i===void 0?void 0:i.get(n);return o===void 0?!1:t?!0:t===o}add(r,n,t){let i=this._data.get(r);i===void 0?this._data.set(r,new Map([[n,t]])):i.set(n,t)}},Na=class{constructor(){this._orderedPairSet=new ki}has(r,n,t){return r<n?this._orderedPairSet.has(r,n,t):this._orderedPairSet.has(n,r,t)}add(r,n,t){r<n?this._orderedPairSet.add(r,n,t):this._orderedPairSet.add(n,r,t)}}});var Ra=h(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.PossibleFragmentSpreadsRule=c0;var Ci=J(),af=j(),Da=Q(),uf=it(),u0=lr();function c0(e){return{InlineFragment(r){let n=e.getType(),t=e.getParentType();if((0,Da.isCompositeType)(n)&&(0,Da.isCompositeType)(t)&&!(0,uf.doTypesOverlap)(e.getSchema(),n,t)){let i=(0,Ci.inspect)(t),o=(0,Ci.inspect)(n);e.reportError(new af.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:r}))}},FragmentSpread(r){let n=r.name.value,t=l0(e,n),i=e.getParentType();if(t&&i&&!(0,uf.doTypesOverlap)(e.getSchema(),t,i)){let o=(0,Ci.inspect)(i),s=(0,Ci.inspect)(t);e.reportError(new af.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:r}))}}}}function l0(e,r){let n=e.getFragment(r);if(n){let t=(0,u0.typeFromAST)(e.getSchema(),n.typeCondition);if((0,Da.isCompositeType)(t))return t}}});var ja=h(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.PossibleTypeExtensionsRule=m0;var p0=Pr(),lf=J(),pf=Oe(),f0=wr(),cf=j(),ne=V(),d0=rn(),In=Q();function m0(e){let r=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,d0.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:t,ObjectTypeExtension:t,InterfaceTypeExtension:t,UnionTypeExtension:t,EnumTypeExtension:t,InputObjectTypeExtension:t};function t(i){let o=i.name.value,s=n[o],a=r?.getType(o),u;if(s?u=h0[s.kind]:a&&(u=y0(a)),u){if(u!==i.kind){let c=v0(i.kind);e.reportError(new cf.GraphQLError(`Cannot extend non-${c} type "${o}".`,{nodes:s?[s,i]:i}))}}else{let c=Object.keys({...n,...r?.getTypeMap()}),l=(0,f0.suggestionList)(o,c);e.reportError(new cf.GraphQLError(`Cannot extend type "${o}" because it is not defined.`+(0,p0.didYouMean)(l),{nodes:i.name}))}}}var h0={[ne.Kind.SCALAR_TYPE_DEFINITION]:ne.Kind.SCALAR_TYPE_EXTENSION,[ne.Kind.OBJECT_TYPE_DEFINITION]:ne.Kind.OBJECT_TYPE_EXTENSION,[ne.Kind.INTERFACE_TYPE_DEFINITION]:ne.Kind.INTERFACE_TYPE_EXTENSION,[ne.Kind.UNION_TYPE_DEFINITION]:ne.Kind.UNION_TYPE_EXTENSION,[ne.Kind.ENUM_TYPE_DEFINITION]:ne.Kind.ENUM_TYPE_EXTENSION,[ne.Kind.INPUT_OBJECT_TYPE_DEFINITION]:ne.Kind.INPUT_OBJECT_TYPE_EXTENSION};function y0(e){if((0,In.isScalarType)(e))return ne.Kind.SCALAR_TYPE_EXTENSION;if((0,In.isObjectType)(e))return ne.Kind.OBJECT_TYPE_EXTENSION;if((0,In.isInterfaceType)(e))return ne.Kind.INTERFACE_TYPE_EXTENSION;if((0,In.isUnionType)(e))return ne.Kind.UNION_TYPE_EXTENSION;if((0,In.isEnumType)(e))return ne.Kind.ENUM_TYPE_EXTENSION;if((0,In.isInputObjectType)(e))return ne.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,pf.invariant)(!1,"Unexpected type: "+(0,lf.inspect)(e))}function v0(e){switch(e){case ne.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case ne.Kind.OBJECT_TYPE_EXTENSION:return"object";case ne.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case ne.Kind.UNION_TYPE_EXTENSION:return"union";case ne.Kind.ENUM_TYPE_EXTENSION:return"enum";case ne.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,pf.invariant)(!1,"Unexpected kind: "+(0,lf.inspect)(e))}}});var xa=h(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.ProvidedRequiredArgumentsOnDirectivesRule=yf;qi.ProvidedRequiredArgumentsRule=b0;var df=J(),ff=jr(),mf=j(),hf=V(),T0=xe(),wa=Q(),g0=Re();function b0(e){return{...yf(e),Field:{leave(r){var n;let t=e.getFieldDef();if(!t)return!1;let i=new Set((n=r.arguments)===null||n===void 0?void 0:n.map(o=>o.name.value));for(let o of t.args)if(!i.has(o.name)&&(0,wa.isRequiredArgument)(o)){let s=(0,df.inspect)(o.type);e.reportError(new mf.GraphQLError(`Field "${t.name}" argument "${o.name}" of type "${s}" is required, but it was not provided.`,{nodes:r}))}}}}}function yf(e){var r;let n=Object.create(null),t=e.getSchema(),i=(r=t?.getDirectives())!==null&&r!==void 0?r:g0.specifiedDirectives;for(let a of i)n[a.name]=(0,ff.keyMap)(a.args.filter(wa.isRequiredArgument),u=>u.name);let o=e.getDocument().definitions;for(let a of o)if(a.kind===hf.Kind.DIRECTIVE_DEFINITION){var s;let u=(s=a.arguments)!==null&&s!==void 0?s:[];n[a.name.value]=(0,ff.keyMap)(u.filter(E0),c=>c.name.value)}return{Directive:{leave(a){let u=a.name.value,c=n[u];if(c){var l;let p=(l=a.arguments)!==null&&l!==void 0?l:[],f=new Set(p.map(m=>m.name.value));for(let[m,y]of Object.entries(c))if(!f.has(m)){let O=(0,wa.isType)(y.type)?(0,df.inspect)(y.type):(0,T0.print)(y.type);e.reportError(new mf.GraphQLError(`Directive "@${u}" argument "${m}" of type "${O}" is required, but it was not provided.`,{nodes:a}))}}}}}}function E0(e){return e.type.kind===hf.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var qa=h(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.ScalarLeafsRule=_0;var Fa=J(),ka=j(),vf=Q();function _0(e){return{Field(r){let n=e.getType(),t=r.selectionSet;if(n)if((0,vf.isLeafType)((0,vf.getNamedType)(n))){if(t){let i=r.name.value,o=(0,Fa.inspect)(n);e.reportError(new ka.GraphQLError(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:t}))}}else if(t){if(t.selections.length===0){let i=r.name.value,o=(0,Fa.inspect)(n);e.reportError(new ka.GraphQLError(`Field "${i}" of type "${o}" must have at least one field selected.`,{nodes:r}))}}else{let i=r.name.value,o=(0,Fa.inspect)(n);e.reportError(new ka.GraphQLError(`Field "${i}" of type "${o}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:r}))}}}}});var Ga=h(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.printPathArray=O0;function O0(e){return e.map(r=>typeof r=="number"?"["+r.toString()+"]":"."+r).join("")}});var vt=h(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.addPath=N0;Mi.pathToArray=I0;function N0(e,r,n){return{prev:e,key:r,typename:n}}function I0(e){let r=[],n=e;for(;n;)r.push(n.key),n=n.prev;return r.reverse()}});var Qa=h(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.coerceInputValue=j0;var L0=Pr(),Gi=J(),S0=Oe(),D0=Si(),A0=or(),er=vt(),R0=Ga(),P0=wr(),_r=j(),Tt=Q();function j0(e,r,n=w0){return gt(e,r,n,void 0)}function w0(e,r,n){let t="Invalid value "+(0,Gi.inspect)(r);throw e.length>0&&(t+=` at "value${(0,R0.printPathArray)(e)}"`),n.message=t+": "+n.message,n}function gt(e,r,n,t){if((0,Tt.isNonNullType)(r)){if(e!=null)return gt(e,r.ofType,n,t);n((0,er.pathToArray)(t),e,new _r.GraphQLError(`Expected non-nullable type "${(0,Gi.inspect)(r)}" not to be null.`));return}if(e==null)return null;if((0,Tt.isListType)(r)){let i=r.ofType;return(0,D0.isIterableObject)(e)?Array.from(e,(o,s)=>{let a=(0,er.addPath)(t,s,void 0);return gt(o,i,n,a)}):[gt(e,i,n,t)]}if((0,Tt.isInputObjectType)(r)){if(!(0,A0.isObjectLike)(e)||Array.isArray(e)){n((0,er.pathToArray)(t),e,new _r.GraphQLError(`Expected type "${r.name}" to be an object.`));return}let i={},o=r.getFields();for(let s of Object.values(o)){let a=e[s.name];if(a===void 0){if(s.defaultValue!==void 0)i[s.name]=s.defaultValue;else if((0,Tt.isNonNullType)(s.type)){let u=(0,Gi.inspect)(s.type);n((0,er.pathToArray)(t),e,new _r.GraphQLError(`Field "${s.name}" of required type "${u}" was not provided.`))}continue}i[s.name]=gt(a,s.type,n,(0,er.addPath)(t,s.name,r.name))}for(let s of Object.keys(e))if(!o[s]){let a=(0,P0.suggestionList)(s,Object.keys(r.getFields()));n((0,er.pathToArray)(t),e,new _r.GraphQLError(`Field "${s}" is not defined by type "${r.name}".`+(0,L0.didYouMean)(a)))}if(r.isOneOf){let s=Object.keys(i);s.length!==1&&n((0,er.pathToArray)(t),e,new _r.GraphQLError(`Exactly one key must be specified for OneOf type "${r.name}".`));let a=s[0],u=i[a];u===null&&n((0,er.pathToArray)(t).concat(a),u,new _r.GraphQLError(`Field "${a}" must be non-null.`))}return i}if((0,Tt.isLeafType)(r)){let i;try{i=r.parseValue(e)}catch(o){o instanceof _r.GraphQLError?n((0,er.pathToArray)(t),e,o):n((0,er.pathToArray)(t),e,new _r.GraphQLError(`Expected type "${r.name}". `+o.message,{originalError:o}));return}return i===void 0&&n((0,er.pathToArray)(t),e,new _r.GraphQLError(`Expected type "${r.name}".`)),i}(0,S0.invariant)(!1,"Unexpected input type: "+(0,Gi.inspect)(r))}});var Et=h(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.valueFromAST=bt;var x0=J(),F0=Oe(),k0=jr(),Ln=V(),nn=Q();function bt(e,r,n){if(e){if(e.kind===Ln.Kind.VARIABLE){let t=e.name.value;if(n==null||n[t]===void 0)return;let i=n[t];return i===null&&(0,nn.isNonNullType)(r)?void 0:i}if((0,nn.isNonNullType)(r))return e.kind===Ln.Kind.NULL?void 0:bt(e,r.ofType,n);if(e.kind===Ln.Kind.NULL)return null;if((0,nn.isListType)(r)){let t=r.ofType;if(e.kind===Ln.Kind.LIST){let o=[];for(let s of e.values)if(Tf(s,n)){if((0,nn.isNonNullType)(t))return;o.push(null)}else{let a=bt(s,t,n);if(a===void 0)return;o.push(a)}return o}let i=bt(e,t,n);return i===void 0?void 0:[i]}if((0,nn.isInputObjectType)(r)){if(e.kind!==Ln.Kind.OBJECT)return;let t=Object.create(null),i=(0,k0.keyMap)(e.fields,o=>o.name.value);for(let o of Object.values(r.getFields())){let s=i[o.name];if(!s||Tf(s.value,n)){if(o.defaultValue!==void 0)t[o.name]=o.defaultValue;else if((0,nn.isNonNullType)(o.type))return;continue}let a=bt(s.value,o.type,n);if(a===void 0)return;t[o.name]=a}if(r.isOneOf){let o=Object.keys(t);if(o.length!==1||t[o[0]]===null)return}return t}if((0,nn.isLeafType)(r)){let t;try{t=r.parseLiteral(e,n)}catch{return}return t===void 0?void 0:t}(0,F0.invariant)(!1,"Unexpected input type: "+(0,x0.inspect)(r))}}function Tf(e,r){return e.kind===Ln.Kind.VARIABLE&&(r==null||r[e.name.value]===void 0)}});var An=h(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.getArgumentValues=_f;_t.getDirectiveValues=U0;_t.getVariableValues=V0;var Sn=J(),C0=jr(),q0=Ga(),Or=j(),gf=V(),bf=xe(),Dn=Q(),M0=Qa(),G0=lr(),Ef=Et();function V0(e,r,n,t){let i=[],o=t?.maxErrors;try{let s=Q0(e,r,n,a=>{if(o!=null&&i.length>=o)throw new Or.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(a)});if(i.length===0)return{coerced:s}}catch(s){i.push(s)}return{errors:i}}function Q0(e,r,n,t){let i={};for(let o of r){let s=o.variable.name.value,a=(0,G0.typeFromAST)(e,o.type);if(!(0,Dn.isInputType)(a)){let c=(0,bf.print)(o.type);t(new Or.GraphQLError(`Variable "$${s}" expected value of type "${c}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!Of(n,s)){if(o.defaultValue)i[s]=(0,Ef.valueFromAST)(o.defaultValue,a);else if((0,Dn.isNonNullType)(a)){let c=(0,Sn.inspect)(a);t(new Or.GraphQLError(`Variable "$${s}" of required type "${c}" was not provided.`,{nodes:o}))}continue}let u=n[s];if(u===null&&(0,Dn.isNonNullType)(a)){let c=(0,Sn.inspect)(a);t(new Or.GraphQLError(`Variable "$${s}" of non-null type "${c}" must not be null.`,{nodes:o}));continue}i[s]=(0,M0.coerceInputValue)(u,a,(c,l,p)=>{let f=`Variable "$${s}" got invalid value `+(0,Sn.inspect)(l);c.length>0&&(f+=` at "${s}${(0,q0.printPathArray)(c)}"`),t(new Or.GraphQLError(f+"; "+p.message,{nodes:o,originalError:p}))})}return i}function _f(e,r,n){var t;let i={},o=(t=r.arguments)!==null&&t!==void 0?t:[],s=(0,C0.keyMap)(o,a=>a.name.value);for(let a of e.args){let u=a.name,c=a.type,l=s[u];if(!l){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if((0,Dn.isNonNullType)(c))throw new Or.GraphQLError(`Argument "${u}" of required type "${(0,Sn.inspect)(c)}" was not provided.`,{nodes:r});continue}let p=l.value,f=p.kind===gf.Kind.NULL;if(p.kind===gf.Kind.VARIABLE){let y=p.name.value;if(n==null||!Of(n,y)){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if((0,Dn.isNonNullType)(c))throw new Or.GraphQLError(`Argument "${u}" of required type "${(0,Sn.inspect)(c)}" was provided the variable "$${y}" which was not provided a runtime value.`,{nodes:p});continue}f=n[y]==null}if(f&&(0,Dn.isNonNullType)(c))throw new Or.GraphQLError(`Argument "${u}" of non-null type "${(0,Sn.inspect)(c)}" must not be null.`,{nodes:p});let m=(0,Ef.valueFromAST)(p,c,n);if(m===void 0)throw new Or.GraphQLError(`Argument "${u}" has invalid value ${(0,bf.print)(p)}.`,{nodes:p});i[u]=m}return i}function U0(e,r,n){var t;let i=(t=r.directives)===null||t===void 0?void 0:t.find(o=>o.name.value===e.name);if(i)return _f(e,i,n)}function Of(e,r){return Object.prototype.hasOwnProperty.call(e,r)}});var Ui=h(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.collectFields=B0;Qi.collectSubfields=Y0;var $a=V(),$0=Q(),Nf=Re(),K0=lr(),If=An();function B0(e,r,n,t,i){let o=new Map;return Vi(e,r,n,t,i,o,new Set),o}function Y0(e,r,n,t,i){let o=new Map,s=new Set;for(let a of i)a.selectionSet&&Vi(e,r,n,t,a.selectionSet,o,s);return o}function Vi(e,r,n,t,i,o,s){for(let a of i.selections)switch(a.kind){case $a.Kind.FIELD:{if(!Ka(n,a))continue;let u=H0(a),c=o.get(u);c!==void 0?c.push(a):o.set(u,[a]);break}case $a.Kind.INLINE_FRAGMENT:{if(!Ka(n,a)||!Lf(e,a,t))continue;Vi(e,r,n,t,a.selectionSet,o,s);break}case $a.Kind.FRAGMENT_SPREAD:{let u=a.name.value;if(s.has(u)||!Ka(n,a))continue;s.add(u);let c=r[u];if(!c||!Lf(e,c,t))continue;Vi(e,r,n,t,c.selectionSet,o,s);break}}}function Ka(e,r){let n=(0,If.getDirectiveValues)(Nf.GraphQLSkipDirective,r,e);if(n?.if===!0)return!1;let t=(0,If.getDirectiveValues)(Nf.GraphQLIncludeDirective,r,e);return t?.if!==!1}function Lf(e,r,n){let t=r.typeCondition;if(!t)return!0;let i=(0,K0.typeFromAST)(e,t);return i===n?!0:(0,$0.isAbstractType)(i)?e.isSubType(i,n):!1}function H0(e){return e.alias?e.alias.value:e.name.value}});var Ya=h(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.SingleFieldSubscriptionsRule=X0;var Sf=j(),J0=V(),W0=Ui();function X0(e){return{OperationDefinition(r){if(r.operation==="subscription"){let n=e.getSchema(),t=n.getSubscriptionType();if(t){let i=r.name?r.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(let c of s.definitions)c.kind===J0.Kind.FRAGMENT_DEFINITION&&(a[c.name.value]=c);let u=(0,W0.collectFields)(n,a,o,t,r.selectionSet);if(u.size>1){let p=[...u.values()].slice(1).flat();e.reportError(new Sf.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:p}))}for(let c of u.values())c[0].name.value.startsWith("__")&&e.reportError(new Sf.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:c}))}}}}}});var $i=h(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.groupBy=z0;function z0(e,r){let n=new Map;for(let t of e){let i=r(t),o=n.get(i);o===void 0?n.set(i,[t]):o.push(t)}return n}});var Wa=h(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.UniqueArgumentDefinitionNamesRule=rE;var Z0=$i(),eE=j();function rE(e){return{DirectiveDefinition(t){var i;let o=(i=t.arguments)!==null&&i!==void 0?i:[];return n(`@${t.name.value}`,o)},InterfaceTypeDefinition:r,InterfaceTypeExtension:r,ObjectTypeDefinition:r,ObjectTypeExtension:r};function r(t){var i;let o=t.name.value,s=(i=t.fields)!==null&&i!==void 0?i:[];for(let u of s){var a;let c=u.name.value,l=(a=u.arguments)!==null&&a!==void 0?a:[];n(`${o}.${c}`,l)}return!1}function n(t,i){let o=(0,Z0.groupBy)(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new eE.GraphQLError(`Argument "${t}(${s}:)" can only be defined once.`,{nodes:a.map(u=>u.name)}));return!1}}});var za=h(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.UniqueArgumentNamesRule=iE;var nE=$i(),tE=j();function iE(e){return{Field:r,Directive:r};function r(n){var t;let i=(t=n.arguments)!==null&&t!==void 0?t:[],o=(0,nE.groupBy)(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new tE.GraphQLError(`There can be only one argument named "${s}".`,{nodes:a.map(u=>u.name)}))}}});var eu=h(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.UniqueDirectiveNamesRule=oE;var Df=j();function oE(e){let r=Object.create(null),n=e.getSchema();return{DirectiveDefinition(t){let i=t.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new Df.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:t.name}));return}return r[i]?e.reportError(new Df.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[r[i],t.name]})):r[i]=t.name,!1}}}});var tu=h(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.UniqueDirectivesPerLocationRule=uE;var sE=j(),ru=V(),Af=rn(),aE=Re();function uE(e){let r=Object.create(null),n=e.getSchema(),t=n?n.getDirectives():aE.specifiedDirectives;for(let a of t)r[a.name]=!a.isRepeatable;let i=e.getDocument().definitions;for(let a of i)a.kind===ru.Kind.DIRECTIVE_DEFINITION&&(r[a.name.value]=!a.repeatable);let o=Object.create(null),s=Object.create(null);return{enter(a){if(!("directives"in a)||!a.directives)return;let u;if(a.kind===ru.Kind.SCHEMA_DEFINITION||a.kind===ru.Kind.SCHEMA_EXTENSION)u=o;else if((0,Af.isTypeDefinitionNode)(a)||(0,Af.isTypeExtensionNode)(a)){let c=a.name.value;u=s[c],u===void 0&&(s[c]=u=Object.create(null))}else u=Object.create(null);for(let c of a.directives){let l=c.name.value;r[l]&&(u[l]?e.reportError(new sE.GraphQLError(`The directive "@${l}" can only be used once at this location.`,{nodes:[u[l],c]})):u[l]=c)}}}}});var ou=h(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.UniqueEnumValueNamesRule=lE;var Rf=j(),cE=Q();function lE(e){let r=e.getSchema(),n=r?r.getTypeMap():Object.create(null),t=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var s;let a=o.name.value;t[a]||(t[a]=Object.create(null));let u=(s=o.values)!==null&&s!==void 0?s:[],c=t[a];for(let l of u){let p=l.name.value,f=n[a];(0,cE.isEnumType)(f)&&f.getValue(p)?e.reportError(new Rf.GraphQLError(`Enum value "${a}.${p}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[p]?e.reportError(new Rf.GraphQLError(`Enum value "${a}.${p}" can only be defined once.`,{nodes:[c[p],l.name]})):c[p]=l.name}return!1}}});var uu=h(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.UniqueFieldDefinitionNamesRule=pE;var Pf=j(),su=Q();function pE(e){let r=e.getSchema(),n=r?r.getTypeMap():Object.create(null),t=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(o){var s;let a=o.name.value;t[a]||(t[a]=Object.create(null));let u=(s=o.fields)!==null&&s!==void 0?s:[],c=t[a];for(let l of u){let p=l.name.value;fE(n[a],p)?e.reportError(new Pf.GraphQLError(`Field "${a}.${p}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[p]?e.reportError(new Pf.GraphQLError(`Field "${a}.${p}" can only be defined once.`,{nodes:[c[p],l.name]})):c[p]=l.name}return!1}}function fE(e,r){return(0,su.isObjectType)(e)||(0,su.isInterfaceType)(e)||(0,su.isInputObjectType)(e)?e.getFields()[r]!=null:!1}});var lu=h(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.UniqueFragmentNamesRule=mE;var dE=j();function mE(e){let r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let t=n.name.value;return r[t]?e.reportError(new dE.GraphQLError(`There can be only one fragment named "${t}".`,{nodes:[r[t],n.name]})):r[t]=n.name,!1}}}});var fu=h(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.UniqueInputFieldNamesRule=vE;var hE=Oe(),yE=j();function vE(e){let r=[],n=Object.create(null);return{ObjectValue:{enter(){r.push(n),n=Object.create(null)},leave(){let t=r.pop();t||(0,hE.invariant)(!1),n=t}},ObjectField(t){let i=t.name.value;n[i]?e.reportError(new yE.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],t.name]})):n[i]=t.name}}}});var mu=h(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.UniqueOperationNamesRule=gE;var TE=j();function gE(e){let r=Object.create(null);return{OperationDefinition(n){let t=n.name;return t&&(r[t.value]?e.reportError(new TE.GraphQLError(`There can be only one operation named "${t.value}".`,{nodes:[r[t.value],t]})):r[t.value]=t),!1},FragmentDefinition:()=>!1}}});var yu=h(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.UniqueOperationTypesRule=bE;var jf=j();function bE(e){let r=e.getSchema(),n=Object.create(null),t=r?{query:r.getQueryType(),mutation:r.getMutationType(),subscription:r.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(o){var s;let a=(s=o.operationTypes)!==null&&s!==void 0?s:[];for(let u of a){let c=u.operation,l=n[c];t[c]?e.reportError(new jf.GraphQLError(`Type for ${c} already defined in the schema. It cannot be redefined.`,{nodes:u})):l?e.reportError(new jf.GraphQLError(`There can be only one ${c} type in schema.`,{nodes:[l,u]})):n[c]=u}return!1}}});var Tu=h(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.UniqueTypeNamesRule=EE;var wf=j();function EE(e){let r=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:t,ObjectTypeDefinition:t,InterfaceTypeDefinition:t,UnionTypeDefinition:t,EnumTypeDefinition:t,InputObjectTypeDefinition:t};function t(i){let o=i.name.value;if(n!=null&&n.getType(o)){e.reportError(new wf.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return r[o]?e.reportError(new wf.GraphQLError(`There can be only one type named "${o}".`,{nodes:[r[o],i.name]})):r[o]=i.name,!1}}});var bu=h(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.UniqueVariableNamesRule=NE;var _E=$i(),OE=j();function NE(e){return{OperationDefinition(r){var n;let t=(n=r.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,_E.groupBy)(t,o=>o.variable.name.value);for(let[o,s]of i)s.length>1&&e.reportError(new OE.GraphQLError(`There can be only one variable named "$${o}".`,{nodes:s.map(a=>a.variable.name)}))}}}});var Ou=h(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.ValuesOfCorrectTypeRule=DE;var IE=Pr(),Ot=J(),LE=jr(),SE=wr(),fr=j(),Eu=V(),Ki=xe(),pr=Q();function DE(e){let r={};return{OperationDefinition:{enter(){r={}}},VariableDefinition(n){r[n.variable.name.value]=n},ListValue(n){let t=(0,pr.getNullableType)(e.getParentInputType());if(!(0,pr.isListType)(t))return tn(e,n),!1},ObjectValue(n){let t=(0,pr.getNamedType)(e.getInputType());if(!(0,pr.isInputObjectType)(t))return tn(e,n),!1;let i=(0,LE.keyMap)(n.fields,o=>o.name.value);for(let o of Object.values(t.getFields()))if(!i[o.name]&&(0,pr.isRequiredInputField)(o)){let a=(0,Ot.inspect)(o.type);e.reportError(new fr.GraphQLError(`Field "${t.name}.${o.name}" of required type "${a}" was not provided.`,{nodes:n}))}t.isOneOf&&AE(e,n,t,i,r)},ObjectField(n){let t=(0,pr.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,pr.isInputObjectType)(t)){let o=(0,SE.suggestionList)(n.name.value,Object.keys(t.getFields()));e.reportError(new fr.GraphQLError(`Field "${n.name.value}" is not defined by type "${t.name}".`+(0,IE.didYouMean)(o),{nodes:n}))}},NullValue(n){let t=e.getInputType();(0,pr.isNonNullType)(t)&&e.reportError(new fr.GraphQLError(`Expected value of type "${(0,Ot.inspect)(t)}", found ${(0,Ki.print)(n)}.`,{nodes:n}))},EnumValue:n=>tn(e,n),IntValue:n=>tn(e,n),FloatValue:n=>tn(e,n),StringValue:n=>tn(e,n),BooleanValue:n=>tn(e,n)}}function tn(e,r){let n=e.getInputType();if(!n)return;let t=(0,pr.getNamedType)(n);if(!(0,pr.isLeafType)(t)){let i=(0,Ot.inspect)(n);e.reportError(new fr.GraphQLError(`Expected value of type "${i}", found ${(0,Ki.print)(r)}.`,{nodes:r}));return}try{if(t.parseLiteral(r,void 0)===void 0){let o=(0,Ot.inspect)(n);e.reportError(new fr.GraphQLError(`Expected value of type "${o}", found ${(0,Ki.print)(r)}.`,{nodes:r}))}}catch(i){let o=(0,Ot.inspect)(n);i instanceof fr.GraphQLError?e.reportError(i):e.reportError(new fr.GraphQLError(`Expected value of type "${o}", found ${(0,Ki.print)(r)}; `+i.message,{nodes:r,originalError:i}))}}function AE(e,r,n,t,i){var o;let s=Object.keys(t);if(s.length!==1){e.reportError(new fr.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[r]}));return}let u=(o=t[s[0]])===null||o===void 0?void 0:o.value,c=!u||u.kind===Eu.Kind.NULL,l=u?.kind===Eu.Kind.VARIABLE;if(c){e.reportError(new fr.GraphQLError(`Field "${n.name}.${s[0]}" must be non-null.`,{nodes:[r]}));return}if(l){let p=u.name.value;i[p].type.kind!==Eu.Kind.NON_NULL_TYPE&&e.reportError(new fr.GraphQLError(`Variable "${p}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[r]}))}}});var Iu=h(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.VariablesAreInputTypesRule=xE;var RE=j(),PE=xe(),jE=Q(),wE=lr();function xE(e){return{VariableDefinition(r){let n=(0,wE.typeFromAST)(e.getSchema(),r.type);if(n!==void 0&&!(0,jE.isInputType)(n)){let t=r.variable.name.value,i=(0,PE.print)(r.type);e.reportError(new RE.GraphQLError(`Variable "$${t}" cannot be non-input type "${i}".`,{nodes:r.type}))}}}}});var Su=h(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.VariablesInAllowedPositionRule=CE;var xf=J(),Ff=j(),FE=V(),Bi=Q(),kf=it(),kE=lr();function CE(e){let r=Object.create(null);return{OperationDefinition:{enter(){r=Object.create(null)},leave(n){let t=e.getRecursiveVariableUsages(n);for(let{node:i,type:o,defaultValue:s,parentType:a}of t){let u=i.name.value,c=r[u];if(c&&o){let l=e.getSchema(),p=(0,kE.typeFromAST)(l,c.type);if(p&&!qE(l,p,c.defaultValue,o,s)){let f=(0,xf.inspect)(p),m=(0,xf.inspect)(o);e.reportError(new Ff.GraphQLError(`Variable "$${u}" of type "${f}" used in position expecting type "${m}".`,{nodes:[c,i]}))}(0,Bi.isInputObjectType)(a)&&a.isOneOf&&(0,Bi.isNullableType)(p)&&e.reportError(new Ff.GraphQLError(`Variable "$${u}" is of type "${p}" but must be non-nullable to be used for OneOf Input Object "${a}".`,{nodes:[c,i]}))}}}},VariableDefinition(n){r[n.variable.name.value]=n}}}function qE(e,r,n,t,i){if((0,Bi.isNonNullType)(t)&&!(0,Bi.isNonNullType)(r)){if(!(n!=null&&n.kind!==FE.Kind.NULL)&&!(i!==void 0))return!1;let a=t.ofType;return(0,kf.isTypeSubTypeOf)(e,r,a)}return(0,kf.isTypeSubTypeOf)(e,r,t)}});var Du=h(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.specifiedSDLRules=Cr.specifiedRules=Cr.recommendedRules=void 0;var ME=Us(),GE=Ks(),VE=Ys(),Cf=Hs(),qf=zs(),QE=ea(),Mf=ta(),UE=oa(),$E=aa(),KE=ca(),BE=pa(),YE=da(),HE=ha(),JE=va(),WE=Sa(),XE=Ra(),zE=ja(),Gf=xa(),ZE=qa(),e_=Ya(),r_=Wa(),Vf=za(),n_=eu(),Qf=tu(),t_=ou(),i_=uu(),o_=lu(),Uf=fu(),s_=mu(),a_=yu(),u_=Tu(),c_=bu(),l_=Ou(),p_=Iu(),f_=Su(),$f=Object.freeze([KE.MaxIntrospectionDepthRule]);Cr.recommendedRules=$f;var d_=Object.freeze([ME.ExecutableDefinitionsRule,s_.UniqueOperationNamesRule,UE.LoneAnonymousOperationRule,e_.SingleFieldSubscriptionsRule,Mf.KnownTypeNamesRule,VE.FragmentsOnCompositeTypesRule,p_.VariablesAreInputTypesRule,ZE.ScalarLeafsRule,GE.FieldsOnCorrectTypeRule,o_.UniqueFragmentNamesRule,QE.KnownFragmentNamesRule,HE.NoUnusedFragmentsRule,XE.PossibleFragmentSpreadsRule,BE.NoFragmentCyclesRule,c_.UniqueVariableNamesRule,YE.NoUndefinedVariablesRule,JE.NoUnusedVariablesRule,qf.KnownDirectivesRule,Qf.UniqueDirectivesPerLocationRule,Cf.KnownArgumentNamesRule,Vf.UniqueArgumentNamesRule,l_.ValuesOfCorrectTypeRule,Gf.ProvidedRequiredArgumentsRule,f_.VariablesInAllowedPositionRule,WE.OverlappingFieldsCanBeMergedRule,Uf.UniqueInputFieldNamesRule,...$f]);Cr.specifiedRules=d_;var m_=Object.freeze([$E.LoneSchemaDefinitionRule,a_.UniqueOperationTypesRule,u_.UniqueTypeNamesRule,t_.UniqueEnumValueNamesRule,i_.UniqueFieldDefinitionNamesRule,r_.UniqueArgumentDefinitionNamesRule,n_.UniqueDirectiveNamesRule,Mf.KnownTypeNamesRule,qf.KnownDirectivesRule,Qf.UniqueDirectivesPerLocationRule,zE.PossibleTypeExtensionsRule,Cf.KnownArgumentNamesOnDirectivesRule,Vf.UniqueArgumentNamesRule,Uf.UniqueInputFieldNamesRule,Gf.ProvidedRequiredArgumentsOnDirectivesRule]);Cr.specifiedSDLRules=m_});var Pu=h(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.ValidationContext=qr.SDLValidationContext=qr.ASTValidationContext=void 0;var Kf=V(),h_=Yr(),Bf=Pi(),Nt=class{constructor(r,n){this._ast=r,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(r){this._onError(r)}getDocument(){return this._ast}getFragment(r){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let t of this.getDocument().definitions)t.kind===Kf.Kind.FRAGMENT_DEFINITION&&(n[t.name.value]=t);this._fragments=n}return n[r]}getFragmentSpreads(r){let n=this._fragmentSpreads.get(r);if(!n){n=[];let t=[r],i;for(;i=t.pop();)for(let o of i.selections)o.kind===Kf.Kind.FRAGMENT_SPREAD?n.push(o):o.selectionSet&&t.push(o.selectionSet);this._fragmentSpreads.set(r,n)}return n}getRecursivelyReferencedFragments(r){let n=this._recursivelyReferencedFragments.get(r);if(!n){n=[];let t=Object.create(null),i=[r.selectionSet],o;for(;o=i.pop();)for(let s of this.getFragmentSpreads(o)){let a=s.name.value;if(t[a]!==!0){t[a]=!0;let u=this.getFragment(a);u&&(n.push(u),i.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(r,n)}return n}};qr.ASTValidationContext=Nt;var Au=class extends Nt{constructor(r,n,t){super(r,t),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};qr.SDLValidationContext=Au;var Ru=class extends Nt{constructor(r,n,t,i){super(n,i),this._schema=r,this._typeInfo=t,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(r){let n=this._variableUsages.get(r);if(!n){let t=[],i=new Bf.TypeInfo(this._schema);(0,h_.visit)(r,(0,Bf.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(o){t.push({node:o,type:i.getInputType(),defaultValue:i.getDefaultValue(),parentType:i.getParentInputType()})}})),n=t,this._variableUsages.set(r,n)}return n}getRecursiveVariableUsages(r){let n=this._recursiveVariableUsages.get(r);if(!n){n=this.getVariableUsages(r);for(let t of this.getRecursivelyReferencedFragments(r))n=n.concat(this.getVariableUsages(t));this._recursiveVariableUsages.set(r,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};qr.ValidationContext=Ru});var It=h(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.assertValidSDL=b_;Rn.assertValidSDLExtension=E_;Rn.validate=g_;Rn.validateSDL=ju;var y_=Le(),v_=j(),Yi=Yr(),T_=mt(),Yf=Pi(),Hf=Du(),Jf=Pu();function g_(e,r,n=Hf.specifiedRules,t,i=new Yf.TypeInfo(e)){var o;let s=(o=t?.maxErrors)!==null&&o!==void 0?o:100;r||(0,y_.devAssert)(!1,"Must provide document."),(0,T_.assertValidSchema)(e);let a=Object.freeze({}),u=[],c=new Jf.ValidationContext(e,r,i,p=>{if(u.length>=s)throw u.push(new v_.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),a;u.push(p)}),l=(0,Yi.visitInParallel)(n.map(p=>p(c)));try{(0,Yi.visit)(r,(0,Yf.visitWithTypeInfo)(i,l))}catch(p){if(p!==a)throw p}return u}function ju(e,r,n=Hf.specifiedSDLRules){let t=[],i=new Jf.SDLValidationContext(e,r,s=>{t.push(s)}),o=n.map(s=>s(i));return(0,Yi.visit)(e,(0,Yi.visitInParallel)(o)),t}function b_(e){let r=ju(e);if(r.length!==0)throw new Error(r.map(n=>n.message).join(`
55
+
56
+ `))}function E_(e,r){let n=ju(e,r);if(n.length!==0)throw new Error(n.map(t=>t.message).join(`
57
+
58
+ `))}});var Wf=h(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.memoize3=__;function __(e){let r;return function(t,i,o){r===void 0&&(r=new WeakMap);let s=r.get(t);s===void 0&&(s=new WeakMap,r.set(t,s));let a=s.get(i);a===void 0&&(a=new WeakMap,s.set(i,a));let u=a.get(o);return u===void 0&&(u=e(t,i,o),a.set(o,u)),u}}});var Xf=h(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.promiseForObject=O_;function O_(e){return Promise.all(Object.values(e)).then(r=>{let n=Object.create(null);for(let[t,i]of Object.keys(e).entries())n[i]=r[t];return n})}});var zf=h(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.promiseReduce=I_;var N_=Yt();function I_(e,r,n){let t=n;for(let i of e)t=(0,N_.isPromise)(t)?t.then(o=>r(o,i)):r(t,i);return t}});var Zf=h(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.toError=S_;var L_=J();function S_(e){return e instanceof Error?e:new ku(e)}var ku=class extends Error{constructor(r){super("Unexpected error value: "+(0,L_.inspect)(r)),this.name="NonErrorThrown",this.thrownValue=r}}});var Hi=h(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.locatedError=R_;var D_=Zf(),A_=j();function R_(e,r,n){var t;let i=(0,D_.toError)(e);return P_(i)?i:new A_.GraphQLError(i.message,{nodes:(t=i.nodes)!==null&&t!==void 0?t:r,source:i.source,positions:i.positions,path:n,originalError:i})}function P_(e){return Array.isArray(e.path)}});var St=h($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.assertValidExecutionArguments=ad;$e.buildExecutionContext=ud;$e.buildResolveInfo=ld;$e.defaultTypeResolver=$e.defaultFieldResolver=void 0;$e.execute=sd;$e.executeSync=q_;$e.getFieldDef=fd;var Gu=Le(),on=J(),j_=Oe(),w_=Si(),Uu=or(),rr=Yt(),x_=Wf(),sn=vt(),ed=Xf(),F_=zf(),Ue=j(),Wi=Hi(),Mu=sr(),rd=V(),Mr=Q(),Pn=Ve(),k_=mt(),id=Ui(),od=An(),C_=(0,x_.memoize3)((e,r,n)=>(0,id.collectSubfields)(e.schema,e.fragments,e.variableValues,r,n));function sd(e){arguments.length<2||(0,Gu.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:r,document:n,variableValues:t,rootValue:i}=e;ad(r,n,t);let o=ud(e);if(!("schema"in o))return{errors:o};try{let{operation:s}=o,a=M_(o,s,i);return(0,rr.isPromise)(a)?a.then(u=>Ji(u,o.errors),u=>(o.errors.push(u),Ji(null,o.errors))):Ji(a,o.errors)}catch(s){return o.errors.push(s),Ji(null,o.errors)}}function q_(e){let r=sd(e);if((0,rr.isPromise)(r))throw new Error("GraphQL execution failed to complete synchronously.");return r}function Ji(e,r){return r.length===0?{data:e}:{errors:r,data:e}}function ad(e,r,n){r||(0,Gu.devAssert)(!1,"Must provide document."),(0,k_.assertValidSchema)(e),n==null||(0,Uu.isObjectLike)(n)||(0,Gu.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function ud(e){var r,n,t;let{schema:i,document:o,rootValue:s,contextValue:a,variableValues:u,operationName:c,fieldResolver:l,typeResolver:p,subscribeFieldResolver:f,options:m}=e,y,O=Object.create(null);for(let A of o.definitions)switch(A.kind){case rd.Kind.OPERATION_DEFINITION:if(c==null){if(y!==void 0)return[new Ue.GraphQLError("Must provide operation name if query contains multiple operations.")];y=A}else((r=A.name)===null||r===void 0?void 0:r.value)===c&&(y=A);break;case rd.Kind.FRAGMENT_DEFINITION:O[A.name.value]=A;break;default:}if(!y)return c!=null?[new Ue.GraphQLError(`Unknown operation named "${c}".`)]:[new Ue.GraphQLError("Must provide an operation.")];let P=(n=y.variableDefinitions)!==null&&n!==void 0?n:[],C=(0,od.getVariableValues)(i,P,u??{},{maxErrors:(t=m?.maxCoercionErrors)!==null&&t!==void 0?t:50});return C.errors?C.errors:{schema:i,fragments:O,rootValue:s,contextValue:a,operation:y,variableValues:C.coerced,fieldResolver:l??Qu,typeResolver:p??pd,subscribeFieldResolver:f??Qu,errors:[]}}function M_(e,r,n){let t=e.schema.getRootType(r.operation);if(t==null)throw new Ue.GraphQLError(`Schema is not configured to execute ${r.operation} operation.`,{nodes:r});let i=(0,id.collectFields)(e.schema,e.fragments,e.variableValues,t,r.selectionSet),o=void 0;switch(r.operation){case Mu.OperationTypeNode.QUERY:return Xi(e,t,n,o,i);case Mu.OperationTypeNode.MUTATION:return G_(e,t,n,o,i);case Mu.OperationTypeNode.SUBSCRIPTION:return Xi(e,t,n,o,i)}}function G_(e,r,n,t,i){return(0,F_.promiseReduce)(i.entries(),(o,[s,a])=>{let u=(0,sn.addPath)(t,s,r.name),c=cd(e,r,n,a,u);return c===void 0?o:(0,rr.isPromise)(c)?c.then(l=>(o[s]=l,o)):(o[s]=c,o)},Object.create(null))}function Xi(e,r,n,t,i){let o=Object.create(null),s=!1;try{for(let[a,u]of i.entries()){let c=(0,sn.addPath)(t,a,r.name),l=cd(e,r,n,u,c);l!==void 0&&(o[a]=l,(0,rr.isPromise)(l)&&(s=!0))}}catch(a){if(s)return(0,ed.promiseForObject)(o).finally(()=>{throw a});throw a}return s?(0,ed.promiseForObject)(o):o}function cd(e,r,n,t,i){var o;let s=fd(e.schema,r,t[0]);if(!s)return;let a=s.type,u=(o=s.resolve)!==null&&o!==void 0?o:e.fieldResolver,c=ld(e,s,t,r,i);try{let l=(0,od.getArgumentValues)(s,t[0],e.variableValues),p=e.contextValue,f=u(n,l,p,c),m;return(0,rr.isPromise)(f)?m=f.then(y=>Lt(e,a,t,c,i,y)):m=Lt(e,a,t,c,i,f),(0,rr.isPromise)(m)?m.then(void 0,y=>{let O=(0,Wi.locatedError)(y,t,(0,sn.pathToArray)(i));return zi(O,a,e)}):m}catch(l){let p=(0,Wi.locatedError)(l,t,(0,sn.pathToArray)(i));return zi(p,a,e)}}function ld(e,r,n,t,i){return{fieldName:r.name,fieldNodes:n,returnType:r.type,parentType:t,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function zi(e,r,n){if((0,Mr.isNonNullType)(r))throw e;return n.errors.push(e),null}function Lt(e,r,n,t,i,o){if(o instanceof Error)throw o;if((0,Mr.isNonNullType)(r)){let s=Lt(e,r.ofType,n,t,i,o);if(s===null)throw new Error(`Cannot return null for non-nullable field ${t.parentType.name}.${t.fieldName}.`);return s}if(o==null)return null;if((0,Mr.isListType)(r))return V_(e,r,n,t,i,o);if((0,Mr.isLeafType)(r))return Q_(r,o);if((0,Mr.isAbstractType)(r))return U_(e,r,n,t,i,o);if((0,Mr.isObjectType)(r))return Vu(e,r,n,t,i,o);(0,j_.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,on.inspect)(r))}function V_(e,r,n,t,i,o){if(!(0,w_.isIterableObject)(o))throw new Ue.GraphQLError(`Expected Iterable, but did not find one for field "${t.parentType.name}.${t.fieldName}".`);let s=r.ofType,a=!1,u=Array.from(o,(c,l)=>{let p=(0,sn.addPath)(i,l,void 0);try{let f;return(0,rr.isPromise)(c)?f=c.then(m=>Lt(e,s,n,t,p,m)):f=Lt(e,s,n,t,p,c),(0,rr.isPromise)(f)?(a=!0,f.then(void 0,m=>{let y=(0,Wi.locatedError)(m,n,(0,sn.pathToArray)(p));return zi(y,s,e)})):f}catch(f){let m=(0,Wi.locatedError)(f,n,(0,sn.pathToArray)(p));return zi(m,s,e)}});return a?Promise.all(u):u}function Q_(e,r){let n=e.serialize(r);if(n==null)throw new Error(`Expected \`${(0,on.inspect)(e)}.serialize(${(0,on.inspect)(r)})\` to return non-nullable value, returned: ${(0,on.inspect)(n)}`);return n}function U_(e,r,n,t,i,o){var s;let a=(s=r.resolveType)!==null&&s!==void 0?s:e.typeResolver,u=e.contextValue,c=a(o,u,t,r);return(0,rr.isPromise)(c)?c.then(l=>Vu(e,nd(l,e,r,n,t,o),n,t,i,o)):Vu(e,nd(c,e,r,n,t,o),n,t,i,o)}function nd(e,r,n,t,i,o){if(e==null)throw new Ue.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,t);if((0,Mr.isObjectType)(e))throw new Ue.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new Ue.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,on.inspect)(o)}, received "${(0,on.inspect)(e)}".`);let s=r.schema.getType(e);if(s==null)throw new Ue.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:t});if(!(0,Mr.isObjectType)(s))throw new Ue.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:t});if(!r.schema.isSubType(n,s))throw new Ue.GraphQLError(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:t});return s}function Vu(e,r,n,t,i,o){let s=C_(e,r,n);if(r.isTypeOf){let a=r.isTypeOf(o,e.contextValue,t);if((0,rr.isPromise)(a))return a.then(u=>{if(!u)throw td(r,o,n);return Xi(e,r,o,i,s)});if(!a)throw td(r,o,n)}return Xi(e,r,o,i,s)}function td(e,r,n){return new Ue.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,on.inspect)(r)}.`,{nodes:n})}var pd=function(e,r,n,t){if((0,Uu.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(t),o=[];for(let s=0;s<i.length;s++){let a=i[s];if(a.isTypeOf){let u=a.isTypeOf(e,r,n);if((0,rr.isPromise)(u))o[s]=u;else if(u)return a.name}}if(o.length)return Promise.all(o).then(s=>{for(let a=0;a<s.length;a++)if(s[a])return i[a].name})};$e.defaultTypeResolver=pd;var Qu=function(e,r,n,t){if((0,Uu.isObjectLike)(e)||typeof e=="function"){let i=e[t.fieldName];return typeof i=="function"?e[t.fieldName](r,n,t):i}};$e.defaultFieldResolver=Qu;function fd(e,r,n){let t=n.name.value;return t===Pn.SchemaMetaFieldDef.name&&e.getQueryType()===r?Pn.SchemaMetaFieldDef:t===Pn.TypeMetaFieldDef.name&&e.getQueryType()===r?Pn.TypeMetaFieldDef:t===Pn.TypeNameMetaFieldDef.name?Pn.TypeNameMetaFieldDef:r.getFields()[t]}});var md=h(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.graphql=W_;Zi.graphqlSync=X_;var $_=Le(),K_=Yt(),B_=gn(),Y_=mt(),H_=It(),J_=St();function W_(e){return new Promise(r=>r(dd(e)))}function X_(e){let r=dd(e);if((0,K_.isPromise)(r))throw new Error("GraphQL execution failed to complete synchronously.");return r}function dd(e){arguments.length<2||(0,$_.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:r,source:n,rootValue:t,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:u}=e,c=(0,Y_.validateSchema)(r);if(c.length>0)return{errors:c};let l;try{l=(0,B_.parse)(n)}catch(f){return{errors:[f]}}let p=(0,H_.validate)(r,l);return p.length>0?{errors:p}:(0,J_.execute)({schema:r,document:l,rootValue:t,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:u})}});var vd=h(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});Object.defineProperty(g,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return nr.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(g,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Nr.GRAPHQL_MAX_INT}});Object.defineProperty(g,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Nr.GRAPHQL_MIN_INT}});Object.defineProperty(g,"GraphQLBoolean",{enumerable:!0,get:function(){return Nr.GraphQLBoolean}});Object.defineProperty(g,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return nr.GraphQLDeprecatedDirective}});Object.defineProperty(g,"GraphQLDirective",{enumerable:!0,get:function(){return nr.GraphQLDirective}});Object.defineProperty(g,"GraphQLEnumType",{enumerable:!0,get:function(){return w.GraphQLEnumType}});Object.defineProperty(g,"GraphQLFloat",{enumerable:!0,get:function(){return Nr.GraphQLFloat}});Object.defineProperty(g,"GraphQLID",{enumerable:!0,get:function(){return Nr.GraphQLID}});Object.defineProperty(g,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return nr.GraphQLIncludeDirective}});Object.defineProperty(g,"GraphQLInputObjectType",{enumerable:!0,get:function(){return w.GraphQLInputObjectType}});Object.defineProperty(g,"GraphQLInt",{enumerable:!0,get:function(){return Nr.GraphQLInt}});Object.defineProperty(g,"GraphQLInterfaceType",{enumerable:!0,get:function(){return w.GraphQLInterfaceType}});Object.defineProperty(g,"GraphQLList",{enumerable:!0,get:function(){return w.GraphQLList}});Object.defineProperty(g,"GraphQLNonNull",{enumerable:!0,get:function(){return w.GraphQLNonNull}});Object.defineProperty(g,"GraphQLObjectType",{enumerable:!0,get:function(){return w.GraphQLObjectType}});Object.defineProperty(g,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return nr.GraphQLOneOfDirective}});Object.defineProperty(g,"GraphQLScalarType",{enumerable:!0,get:function(){return w.GraphQLScalarType}});Object.defineProperty(g,"GraphQLSchema",{enumerable:!0,get:function(){return $u.GraphQLSchema}});Object.defineProperty(g,"GraphQLSkipDirective",{enumerable:!0,get:function(){return nr.GraphQLSkipDirective}});Object.defineProperty(g,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return nr.GraphQLSpecifiedByDirective}});Object.defineProperty(g,"GraphQLString",{enumerable:!0,get:function(){return Nr.GraphQLString}});Object.defineProperty(g,"GraphQLUnionType",{enumerable:!0,get:function(){return w.GraphQLUnionType}});Object.defineProperty(g,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return je.SchemaMetaFieldDef}});Object.defineProperty(g,"TypeKind",{enumerable:!0,get:function(){return je.TypeKind}});Object.defineProperty(g,"TypeMetaFieldDef",{enumerable:!0,get:function(){return je.TypeMetaFieldDef}});Object.defineProperty(g,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return je.TypeNameMetaFieldDef}});Object.defineProperty(g,"__Directive",{enumerable:!0,get:function(){return je.__Directive}});Object.defineProperty(g,"__DirectiveLocation",{enumerable:!0,get:function(){return je.__DirectiveLocation}});Object.defineProperty(g,"__EnumValue",{enumerable:!0,get:function(){return je.__EnumValue}});Object.defineProperty(g,"__Field",{enumerable:!0,get:function(){return je.__Field}});Object.defineProperty(g,"__InputValue",{enumerable:!0,get:function(){return je.__InputValue}});Object.defineProperty(g,"__Schema",{enumerable:!0,get:function(){return je.__Schema}});Object.defineProperty(g,"__Type",{enumerable:!0,get:function(){return je.__Type}});Object.defineProperty(g,"__TypeKind",{enumerable:!0,get:function(){return je.__TypeKind}});Object.defineProperty(g,"assertAbstractType",{enumerable:!0,get:function(){return w.assertAbstractType}});Object.defineProperty(g,"assertCompositeType",{enumerable:!0,get:function(){return w.assertCompositeType}});Object.defineProperty(g,"assertDirective",{enumerable:!0,get:function(){return nr.assertDirective}});Object.defineProperty(g,"assertEnumType",{enumerable:!0,get:function(){return w.assertEnumType}});Object.defineProperty(g,"assertEnumValueName",{enumerable:!0,get:function(){return yd.assertEnumValueName}});Object.defineProperty(g,"assertInputObjectType",{enumerable:!0,get:function(){return w.assertInputObjectType}});Object.defineProperty(g,"assertInputType",{enumerable:!0,get:function(){return w.assertInputType}});Object.defineProperty(g,"assertInterfaceType",{enumerable:!0,get:function(){return w.assertInterfaceType}});Object.defineProperty(g,"assertLeafType",{enumerable:!0,get:function(){return w.assertLeafType}});Object.defineProperty(g,"assertListType",{enumerable:!0,get:function(){return w.assertListType}});Object.defineProperty(g,"assertName",{enumerable:!0,get:function(){return yd.assertName}});Object.defineProperty(g,"assertNamedType",{enumerable:!0,get:function(){return w.assertNamedType}});Object.defineProperty(g,"assertNonNullType",{enumerable:!0,get:function(){return w.assertNonNullType}});Object.defineProperty(g,"assertNullableType",{enumerable:!0,get:function(){return w.assertNullableType}});Object.defineProperty(g,"assertObjectType",{enumerable:!0,get:function(){return w.assertObjectType}});Object.defineProperty(g,"assertOutputType",{enumerable:!0,get:function(){return w.assertOutputType}});Object.defineProperty(g,"assertScalarType",{enumerable:!0,get:function(){return w.assertScalarType}});Object.defineProperty(g,"assertSchema",{enumerable:!0,get:function(){return $u.assertSchema}});Object.defineProperty(g,"assertType",{enumerable:!0,get:function(){return w.assertType}});Object.defineProperty(g,"assertUnionType",{enumerable:!0,get:function(){return w.assertUnionType}});Object.defineProperty(g,"assertValidSchema",{enumerable:!0,get:function(){return hd.assertValidSchema}});Object.defineProperty(g,"assertWrappingType",{enumerable:!0,get:function(){return w.assertWrappingType}});Object.defineProperty(g,"getNamedType",{enumerable:!0,get:function(){return w.getNamedType}});Object.defineProperty(g,"getNullableType",{enumerable:!0,get:function(){return w.getNullableType}});Object.defineProperty(g,"introspectionTypes",{enumerable:!0,get:function(){return je.introspectionTypes}});Object.defineProperty(g,"isAbstractType",{enumerable:!0,get:function(){return w.isAbstractType}});Object.defineProperty(g,"isCompositeType",{enumerable:!0,get:function(){return w.isCompositeType}});Object.defineProperty(g,"isDirective",{enumerable:!0,get:function(){return nr.isDirective}});Object.defineProperty(g,"isEnumType",{enumerable:!0,get:function(){return w.isEnumType}});Object.defineProperty(g,"isInputObjectType",{enumerable:!0,get:function(){return w.isInputObjectType}});Object.defineProperty(g,"isInputType",{enumerable:!0,get:function(){return w.isInputType}});Object.defineProperty(g,"isInterfaceType",{enumerable:!0,get:function(){return w.isInterfaceType}});Object.defineProperty(g,"isIntrospectionType",{enumerable:!0,get:function(){return je.isIntrospectionType}});Object.defineProperty(g,"isLeafType",{enumerable:!0,get:function(){return w.isLeafType}});Object.defineProperty(g,"isListType",{enumerable:!0,get:function(){return w.isListType}});Object.defineProperty(g,"isNamedType",{enumerable:!0,get:function(){return w.isNamedType}});Object.defineProperty(g,"isNonNullType",{enumerable:!0,get:function(){return w.isNonNullType}});Object.defineProperty(g,"isNullableType",{enumerable:!0,get:function(){return w.isNullableType}});Object.defineProperty(g,"isObjectType",{enumerable:!0,get:function(){return w.isObjectType}});Object.defineProperty(g,"isOutputType",{enumerable:!0,get:function(){return w.isOutputType}});Object.defineProperty(g,"isRequiredArgument",{enumerable:!0,get:function(){return w.isRequiredArgument}});Object.defineProperty(g,"isRequiredInputField",{enumerable:!0,get:function(){return w.isRequiredInputField}});Object.defineProperty(g,"isScalarType",{enumerable:!0,get:function(){return w.isScalarType}});Object.defineProperty(g,"isSchema",{enumerable:!0,get:function(){return $u.isSchema}});Object.defineProperty(g,"isSpecifiedDirective",{enumerable:!0,get:function(){return nr.isSpecifiedDirective}});Object.defineProperty(g,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Nr.isSpecifiedScalarType}});Object.defineProperty(g,"isType",{enumerable:!0,get:function(){return w.isType}});Object.defineProperty(g,"isUnionType",{enumerable:!0,get:function(){return w.isUnionType}});Object.defineProperty(g,"isWrappingType",{enumerable:!0,get:function(){return w.isWrappingType}});Object.defineProperty(g,"resolveObjMapThunk",{enumerable:!0,get:function(){return w.resolveObjMapThunk}});Object.defineProperty(g,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return w.resolveReadonlyArrayThunk}});Object.defineProperty(g,"specifiedDirectives",{enumerable:!0,get:function(){return nr.specifiedDirectives}});Object.defineProperty(g,"specifiedScalarTypes",{enumerable:!0,get:function(){return Nr.specifiedScalarTypes}});Object.defineProperty(g,"validateSchema",{enumerable:!0,get:function(){return hd.validateSchema}});var $u=Zr(),w=Q(),nr=Re(),Nr=cr(),je=Ve(),hd=mt(),yd=Zn()});var gd=h($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});Object.defineProperty($,"BREAK",{enumerable:!0,get:function(){return Dt.BREAK}});Object.defineProperty($,"DirectiveLocation",{enumerable:!0,get:function(){return iO.DirectiveLocation}});Object.defineProperty($,"Kind",{enumerable:!0,get:function(){return eO.Kind}});Object.defineProperty($,"Lexer",{enumerable:!0,get:function(){return nO.Lexer}});Object.defineProperty($,"Location",{enumerable:!0,get:function(){return Ku.Location}});Object.defineProperty($,"OperationTypeNode",{enumerable:!0,get:function(){return Ku.OperationTypeNode}});Object.defineProperty($,"Source",{enumerable:!0,get:function(){return z_.Source}});Object.defineProperty($,"Token",{enumerable:!0,get:function(){return Ku.Token}});Object.defineProperty($,"TokenKind",{enumerable:!0,get:function(){return rO.TokenKind}});Object.defineProperty($,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Dt.getEnterLeaveForKind}});Object.defineProperty($,"getLocation",{enumerable:!0,get:function(){return Z_.getLocation}});Object.defineProperty($,"getVisitFn",{enumerable:!0,get:function(){return Dt.getVisitFn}});Object.defineProperty($,"isConstValueNode",{enumerable:!0,get:function(){return dr.isConstValueNode}});Object.defineProperty($,"isDefinitionNode",{enumerable:!0,get:function(){return dr.isDefinitionNode}});Object.defineProperty($,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return dr.isExecutableDefinitionNode}});Object.defineProperty($,"isSelectionNode",{enumerable:!0,get:function(){return dr.isSelectionNode}});Object.defineProperty($,"isTypeDefinitionNode",{enumerable:!0,get:function(){return dr.isTypeDefinitionNode}});Object.defineProperty($,"isTypeExtensionNode",{enumerable:!0,get:function(){return dr.isTypeExtensionNode}});Object.defineProperty($,"isTypeNode",{enumerable:!0,get:function(){return dr.isTypeNode}});Object.defineProperty($,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return dr.isTypeSystemDefinitionNode}});Object.defineProperty($,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return dr.isTypeSystemExtensionNode}});Object.defineProperty($,"isValueNode",{enumerable:!0,get:function(){return dr.isValueNode}});Object.defineProperty($,"parse",{enumerable:!0,get:function(){return eo.parse}});Object.defineProperty($,"parseConstValue",{enumerable:!0,get:function(){return eo.parseConstValue}});Object.defineProperty($,"parseType",{enumerable:!0,get:function(){return eo.parseType}});Object.defineProperty($,"parseValue",{enumerable:!0,get:function(){return eo.parseValue}});Object.defineProperty($,"print",{enumerable:!0,get:function(){return tO.print}});Object.defineProperty($,"printLocation",{enumerable:!0,get:function(){return Td.printLocation}});Object.defineProperty($,"printSourceLocation",{enumerable:!0,get:function(){return Td.printSourceLocation}});Object.defineProperty($,"visit",{enumerable:!0,get:function(){return Dt.visit}});Object.defineProperty($,"visitInParallel",{enumerable:!0,get:function(){return Dt.visitInParallel}});var z_=ti(),Z_=Ht(),Td=Mo(),eO=V(),rO=Kn(),nO=Zt(),eo=gn(),tO=xe(),Dt=Yr(),Ku=sr(),dr=rn(),iO=vn()});var bd=h(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.isAsyncIterable=oO;function oO(e){return typeof e?.[Symbol.asyncIterator]=="function"}});var Ed=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.mapAsyncIterator=sO;function sO(e,r){let n=e[Symbol.asyncIterator]();async function t(i){if(i.done)return i;try{return{value:await r(i.value),done:!1}}catch(o){if(typeof n.return=="function")try{await n.return()}catch{}throw o}}return{async next(){return t(await n.next())},async return(){return typeof n.return=="function"?t(await n.return()):{value:void 0,done:!0}},async throw(i){if(typeof n.throw=="function")return t(await n.throw(i));throw i},[Symbol.asyncIterator](){return this}}}});var Id=h(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.createSourceEventStream=Nd;ro.subscribe=dO;var aO=Le(),uO=J(),Od=bd(),_d=vt(),Hu=j(),cO=Hi(),lO=Ui(),At=St(),pO=Ed(),fO=An();async function dO(e){arguments.length<2||(0,aO.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let r=await Nd(e);if(!(0,Od.isAsyncIterable)(r))return r;let n=t=>(0,At.execute)({...e,rootValue:t});return(0,pO.mapAsyncIterator)(r,n)}function mO(e){let r=e[0];return r&&"document"in r?r:{schema:r,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function Nd(...e){let r=mO(e),{schema:n,document:t,variableValues:i}=r;(0,At.assertValidExecutionArguments)(n,t,i);let o=(0,At.buildExecutionContext)(r);if(!("schema"in o))return{errors:o};try{let s=await hO(o);if(!(0,Od.isAsyncIterable)(s))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,uO.inspect)(s)}.`);return s}catch(s){if(s instanceof Hu.GraphQLError)return{errors:[s]};throw s}}async function hO(e){let{schema:r,fragments:n,operation:t,variableValues:i,rootValue:o}=e,s=r.getSubscriptionType();if(s==null)throw new Hu.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:t});let a=(0,lO.collectFields)(r,n,i,s,t.selectionSet),[u,c]=[...a.entries()][0],l=(0,At.getFieldDef)(r,s,c[0]);if(!l){let y=c[0].name.value;throw new Hu.GraphQLError(`The subscription field "${y}" is not defined.`,{nodes:c})}let p=(0,_d.addPath)(void 0,u,s.name),f=(0,At.buildResolveInfo)(e,l,c,s,p);try{var m;let y=(0,fO.getArgumentValues)(l,c[0],i),O=e.contextValue,C=await((m=l.subscribe)!==null&&m!==void 0?m:e.subscribeFieldResolver)(o,y,O,f);if(C instanceof Error)throw C;return C}catch(y){throw(0,cO.locatedError)(y,c,(0,_d.pathToArray)(p))}}});var Sd=h(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Object.defineProperty(Ke,"createSourceEventStream",{enumerable:!0,get:function(){return Ld.createSourceEventStream}});Object.defineProperty(Ke,"defaultFieldResolver",{enumerable:!0,get:function(){return no.defaultFieldResolver}});Object.defineProperty(Ke,"defaultTypeResolver",{enumerable:!0,get:function(){return no.defaultTypeResolver}});Object.defineProperty(Ke,"execute",{enumerable:!0,get:function(){return no.execute}});Object.defineProperty(Ke,"executeSync",{enumerable:!0,get:function(){return no.executeSync}});Object.defineProperty(Ke,"getArgumentValues",{enumerable:!0,get:function(){return Ju.getArgumentValues}});Object.defineProperty(Ke,"getDirectiveValues",{enumerable:!0,get:function(){return Ju.getDirectiveValues}});Object.defineProperty(Ke,"getVariableValues",{enumerable:!0,get:function(){return Ju.getVariableValues}});Object.defineProperty(Ke,"responsePathAsArray",{enumerable:!0,get:function(){return yO.pathToArray}});Object.defineProperty(Ke,"subscribe",{enumerable:!0,get:function(){return Ld.subscribe}});var yO=vt(),no=St(),Ld=Id(),Ju=An()});var Dd=h(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.NoDeprecatedCustomRule=vO;var Wu=Oe(),Rt=j(),Xu=Q();function vO(e){return{Field(r){let n=e.getFieldDef(),t=n?.deprecationReason;if(n&&t!=null){let i=e.getParentType();i!=null||(0,Wu.invariant)(!1),e.reportError(new Rt.GraphQLError(`The field ${i.name}.${n.name} is deprecated. ${t}`,{nodes:r}))}},Argument(r){let n=e.getArgument(),t=n?.deprecationReason;if(n&&t!=null){let i=e.getDirective();if(i!=null)e.reportError(new Rt.GraphQLError(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${t}`,{nodes:r}));else{let o=e.getParentType(),s=e.getFieldDef();o!=null&&s!=null||(0,Wu.invariant)(!1),e.reportError(new Rt.GraphQLError(`Field "${o.name}.${s.name}" argument "${n.name}" is deprecated. ${t}`,{nodes:r}))}}},ObjectField(r){let n=(0,Xu.getNamedType)(e.getParentInputType());if((0,Xu.isInputObjectType)(n)){let t=n.getFields()[r.name.value],i=t?.deprecationReason;i!=null&&e.reportError(new Rt.GraphQLError(`The input field ${n.name}.${t.name} is deprecated. ${i}`,{nodes:r}))}},EnumValue(r){let n=e.getEnumValue(),t=n?.deprecationReason;if(n&&t!=null){let i=(0,Xu.getNamedType)(e.getInputType());i!=null||(0,Wu.invariant)(!1),e.reportError(new Rt.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${t}`,{nodes:r}))}}}}});var Ad=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.NoSchemaIntrospectionCustomRule=EO;var TO=j(),gO=Q(),bO=Ve();function EO(e){return{Field(r){let n=(0,gO.getNamedType)(e.getType());n&&(0,bO.isIntrospectionType)(n)&&e.reportError(new TO.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${r.name.value}".`,{nodes:r}))}}}});var Pd=h(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});Object.defineProperty(k,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return NO.ExecutableDefinitionsRule}});Object.defineProperty(k,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return IO.FieldsOnCorrectTypeRule}});Object.defineProperty(k,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return LO.FragmentsOnCompositeTypesRule}});Object.defineProperty(k,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return SO.KnownArgumentNamesRule}});Object.defineProperty(k,"KnownDirectivesRule",{enumerable:!0,get:function(){return DO.KnownDirectivesRule}});Object.defineProperty(k,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return AO.KnownFragmentNamesRule}});Object.defineProperty(k,"KnownTypeNamesRule",{enumerable:!0,get:function(){return RO.KnownTypeNamesRule}});Object.defineProperty(k,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return PO.LoneAnonymousOperationRule}});Object.defineProperty(k,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return XO.LoneSchemaDefinitionRule}});Object.defineProperty(k,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return WO.MaxIntrospectionDepthRule}});Object.defineProperty(k,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return oN.NoDeprecatedCustomRule}});Object.defineProperty(k,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return jO.NoFragmentCyclesRule}});Object.defineProperty(k,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return sN.NoSchemaIntrospectionCustomRule}});Object.defineProperty(k,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return wO.NoUndefinedVariablesRule}});Object.defineProperty(k,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return xO.NoUnusedFragmentsRule}});Object.defineProperty(k,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return FO.NoUnusedVariablesRule}});Object.defineProperty(k,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return kO.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(k,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return CO.PossibleFragmentSpreadsRule}});Object.defineProperty(k,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return iN.PossibleTypeExtensionsRule}});Object.defineProperty(k,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return qO.ProvidedRequiredArgumentsRule}});Object.defineProperty(k,"ScalarLeafsRule",{enumerable:!0,get:function(){return MO.ScalarLeafsRule}});Object.defineProperty(k,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return GO.SingleFieldSubscriptionsRule}});Object.defineProperty(k,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return nN.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(k,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return VO.UniqueArgumentNamesRule}});Object.defineProperty(k,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return tN.UniqueDirectiveNamesRule}});Object.defineProperty(k,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return QO.UniqueDirectivesPerLocationRule}});Object.defineProperty(k,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return eN.UniqueEnumValueNamesRule}});Object.defineProperty(k,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return rN.UniqueFieldDefinitionNamesRule}});Object.defineProperty(k,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return UO.UniqueFragmentNamesRule}});Object.defineProperty(k,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return $O.UniqueInputFieldNamesRule}});Object.defineProperty(k,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return KO.UniqueOperationNamesRule}});Object.defineProperty(k,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return zO.UniqueOperationTypesRule}});Object.defineProperty(k,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return ZO.UniqueTypeNamesRule}});Object.defineProperty(k,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return BO.UniqueVariableNamesRule}});Object.defineProperty(k,"ValidationContext",{enumerable:!0,get:function(){return OO.ValidationContext}});Object.defineProperty(k,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return YO.ValuesOfCorrectTypeRule}});Object.defineProperty(k,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return HO.VariablesAreInputTypesRule}});Object.defineProperty(k,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return JO.VariablesInAllowedPositionRule}});Object.defineProperty(k,"recommendedRules",{enumerable:!0,get:function(){return Rd.recommendedRules}});Object.defineProperty(k,"specifiedRules",{enumerable:!0,get:function(){return Rd.specifiedRules}});Object.defineProperty(k,"validate",{enumerable:!0,get:function(){return _O.validate}});var _O=It(),OO=Pu(),Rd=Du(),NO=Us(),IO=Ks(),LO=Ys(),SO=Hs(),DO=zs(),AO=ea(),RO=ta(),PO=oa(),jO=pa(),wO=da(),xO=ha(),FO=va(),kO=Sa(),CO=Ra(),qO=xa(),MO=qa(),GO=Ya(),VO=za(),QO=tu(),UO=lu(),$O=fu(),KO=mu(),BO=bu(),YO=Ou(),HO=Iu(),JO=Su(),WO=ca(),XO=aa(),zO=yu(),ZO=Tu(),eN=ou(),rN=uu(),nN=Wa(),tN=eu(),iN=ja(),oN=Dd(),sN=Ad()});var jd=h(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});Object.defineProperty(an,"GraphQLError",{enumerable:!0,get:function(){return ec.GraphQLError}});Object.defineProperty(an,"formatError",{enumerable:!0,get:function(){return ec.formatError}});Object.defineProperty(an,"locatedError",{enumerable:!0,get:function(){return uN.locatedError}});Object.defineProperty(an,"printError",{enumerable:!0,get:function(){return ec.printError}});Object.defineProperty(an,"syntaxError",{enumerable:!0,get:function(){return aN.syntaxError}});var ec=j(),aN=Wt(),uN=Hi()});var nc=h(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.getIntrospectionQuery=cN;function cN(e){let r={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=r.descriptions?"description":"",t=r.specifiedByUrl?"specifiedByURL":"",i=r.directiveIsRepeatable?"isRepeatable":"",o=r.schemaDescription?n:"";function s(u){return r.inputValueDeprecation?u:""}let a=r.oneOf?"isOneOf":"";return`
59
+ query IntrospectionQuery {
60
+ __schema {
61
+ ${o}
62
+ queryType { name kind }
63
+ mutationType { name kind }
64
+ subscriptionType { name kind }
65
+ types {
66
+ ...FullType
67
+ }
68
+ directives {
69
+ name
70
+ ${n}
71
+ ${i}
72
+ locations
73
+ args${s("(includeDeprecated: true)")} {
74
+ ...InputValue
75
+ }
76
+ }
77
+ }
78
+ }
79
+
80
+ fragment FullType on __Type {
81
+ kind
82
+ name
83
+ ${n}
84
+ ${t}
85
+ ${a}
86
+ fields(includeDeprecated: true) {
87
+ name
88
+ ${n}
89
+ args${s("(includeDeprecated: true)")} {
90
+ ...InputValue
91
+ }
92
+ type {
93
+ ...TypeRef
94
+ }
95
+ isDeprecated
96
+ deprecationReason
97
+ }
98
+ inputFields${s("(includeDeprecated: true)")} {
99
+ ...InputValue
100
+ }
101
+ interfaces {
102
+ ...TypeRef
103
+ }
104
+ enumValues(includeDeprecated: true) {
105
+ name
106
+ ${n}
107
+ isDeprecated
108
+ deprecationReason
109
+ }
110
+ possibleTypes {
111
+ ...TypeRef
112
+ }
113
+ }
114
+
115
+ fragment InputValue on __InputValue {
116
+ name
117
+ ${n}
118
+ type { ...TypeRef }
119
+ defaultValue
120
+ ${s("isDeprecated")}
121
+ ${s("deprecationReason")}
122
+ }
123
+
124
+ fragment TypeRef on __Type {
125
+ kind
126
+ name
127
+ ofType {
128
+ kind
129
+ name
130
+ ofType {
131
+ kind
132
+ name
133
+ ofType {
134
+ kind
135
+ name
136
+ ofType {
137
+ kind
138
+ name
139
+ ofType {
140
+ kind
141
+ name
142
+ ofType {
143
+ kind
144
+ name
145
+ ofType {
146
+ kind
147
+ name
148
+ ofType {
149
+ kind
150
+ name
151
+ ofType {
152
+ kind
153
+ name
154
+ }
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
160
+ }
161
+ }
162
+ }
163
+ }
164
+ `}});var wd=h(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.getOperationAST=pN;var lN=V();function pN(e,r){let n=null;for(let i of e.definitions)if(i.kind===lN.Kind.OPERATION_DEFINITION){var t;if(r==null){if(n)return null;n=i}else if(((t=i.name)===null||t===void 0?void 0:t.value)===r)return i}return n}});var xd=h(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.getOperationRootType=fN;var to=j();function fN(e,r){if(r.operation==="query"){let n=e.getQueryType();if(!n)throw new to.GraphQLError("Schema does not define the required query root type.",{nodes:r});return n}if(r.operation==="mutation"){let n=e.getMutationType();if(!n)throw new to.GraphQLError("Schema is not configured for mutations.",{nodes:r});return n}if(r.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new to.GraphQLError("Schema is not configured for subscriptions.",{nodes:r});return n}throw new to.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:r})}});var Fd=h(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.introspectionFromSchema=vN;var dN=Oe(),mN=gn(),hN=St(),yN=nc();function vN(e,r){let n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...r},t=(0,mN.parse)((0,yN.getIntrospectionQuery)(n)),i=(0,hN.executeSync)({schema:e,document:t});return!i.errors&&i.data||(0,dN.invariant)(!1),i.data}});var Cd=h(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.buildClientSchema=NN;var TN=Le(),Fe=J(),kd=or(),io=Xn(),gN=gn(),ke=Q(),bN=Re(),mr=Ve(),EN=cr(),_N=Zr(),ON=Et();function NN(e,r){(0,kd.isObjectLike)(e)&&(0,kd.isObjectLike)(e.__schema)||(0,TN.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,Fe.inspect)(e)}.`);let n=e.__schema,t=(0,io.keyValMap)(n.types,T=>T.name,T=>f(T));for(let T of[...EN.specifiedScalarTypes,...mr.introspectionTypes])t[T.name]&&(t[T.name]=T);let i=n.queryType?l(n.queryType):null,o=n.mutationType?l(n.mutationType):null,s=n.subscriptionType?l(n.subscriptionType):null,a=n.directives?n.directives.map(yo):[];return new _N.GraphQLSchema({description:n.description,query:i,mutation:o,subscription:s,types:Object.values(t),directives:a,assumeValid:r?.assumeValid});function u(T){if(T.kind===mr.TypeKind.LIST){let F=T.ofType;if(!F)throw new Error("Decorated type deeper than introspection query.");return new ke.GraphQLList(u(F))}if(T.kind===mr.TypeKind.NON_NULL){let F=T.ofType;if(!F)throw new Error("Decorated type deeper than introspection query.");let we=u(F);return new ke.GraphQLNonNull((0,ke.assertNullableType)(we))}return c(T)}function c(T){let F=T.name;if(!F)throw new Error(`Unknown type reference: ${(0,Fe.inspect)(T)}.`);let we=t[F];if(!we)throw new Error(`Invalid or incomplete schema, unknown type: ${F}. Ensure that a full introspection query is used in order to build a client schema.`);return we}function l(T){return(0,ke.assertObjectType)(c(T))}function p(T){return(0,ke.assertInterfaceType)(c(T))}function f(T){if(T!=null&&T.name!=null&&T.kind!=null)switch(T.kind){case mr.TypeKind.SCALAR:return m(T);case mr.TypeKind.OBJECT:return O(T);case mr.TypeKind.INTERFACE:return P(T);case mr.TypeKind.UNION:return C(T);case mr.TypeKind.ENUM:return A(T);case mr.TypeKind.INPUT_OBJECT:return ce(T)}let F=(0,Fe.inspect)(T);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${F}.`)}function m(T){return new ke.GraphQLScalarType({name:T.name,description:T.description,specifiedByURL:T.specifiedByURL})}function y(T){if(T.interfaces===null&&T.kind===mr.TypeKind.INTERFACE)return[];if(!T.interfaces){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing interfaces: ${F}.`)}return T.interfaces.map(p)}function O(T){return new ke.GraphQLObjectType({name:T.name,description:T.description,interfaces:()=>y(T),fields:()=>ie(T)})}function P(T){return new ke.GraphQLInterfaceType({name:T.name,description:T.description,interfaces:()=>y(T),fields:()=>ie(T)})}function C(T){if(!T.possibleTypes){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing possibleTypes: ${F}.`)}return new ke.GraphQLUnionType({name:T.name,description:T.description,types:()=>T.possibleTypes.map(l)})}function A(T){if(!T.enumValues){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing enumValues: ${F}.`)}return new ke.GraphQLEnumType({name:T.name,description:T.description,values:(0,io.keyValMap)(T.enumValues,F=>F.name,F=>({description:F.description,deprecationReason:F.deprecationReason}))})}function ce(T){if(!T.inputFields){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing inputFields: ${F}.`)}return new ke.GraphQLInputObjectType({name:T.name,description:T.description,fields:()=>Sr(T.inputFields),isOneOf:T.isOneOf})}function ie(T){if(!T.fields)throw new Error(`Introspection result missing fields: ${(0,Fe.inspect)(T)}.`);return(0,io.keyValMap)(T.fields,F=>F.name,vr)}function vr(T){let F=u(T.type);if(!(0,ke.isOutputType)(F)){let we=(0,Fe.inspect)(F);throw new Error(`Introspection must provide output type for fields, but received: ${we}.`)}if(!T.args){let we=(0,Fe.inspect)(T);throw new Error(`Introspection result missing field args: ${we}.`)}return{description:T.description,deprecationReason:T.deprecationReason,type:F,args:Sr(T.args)}}function Sr(T){return(0,io.keyValMap)(T,F=>F.name,un)}function un(T){let F=u(T.type);if(!(0,ke.isInputType)(F)){let cn=(0,Fe.inspect)(F);throw new Error(`Introspection must provide input type for arguments, but received: ${cn}.`)}let we=T.defaultValue!=null?(0,ON.valueFromAST)((0,gN.parseValue)(T.defaultValue),F):void 0;return{description:T.description,type:F,defaultValue:we,deprecationReason:T.deprecationReason}}function yo(T){if(!T.args){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing directive args: ${F}.`)}if(!T.locations){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing directive locations: ${F}.`)}return new bN.GraphQLDirective({name:T.name,description:T.description,isRepeatable:T.isRepeatable,locations:T.locations.slice(),args:Sr(T.args)})}}});var uc=h(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.extendSchema=RN;so.extendSchemaImpl=Kd;var IN=Le(),LN=J(),SN=Oe(),DN=jr(),Pt=os(),Be=V(),qd=rn(),te=Q(),jt=Re(),Ud=Ve(),$d=cr(),Md=Zr(),AN=It(),ac=An(),Gd=Et();function RN(e,r,n){(0,Md.assertSchema)(e),r!=null&&r.kind===Be.Kind.DOCUMENT||(0,IN.devAssert)(!1,"Must provide valid Document AST."),n?.assumeValid!==!0&&n?.assumeValidSDL!==!0&&(0,AN.assertValidSDLExtension)(r,e);let t=e.toConfig(),i=Kd(t,r,n);return t===i?e:new Md.GraphQLSchema(i)}function Kd(e,r,n){var t,i,o,s;let a=[],u=Object.create(null),c=[],l,p=[];for(let v of r.definitions)if(v.kind===Be.Kind.SCHEMA_DEFINITION)l=v;else if(v.kind===Be.Kind.SCHEMA_EXTENSION)p.push(v);else if((0,qd.isTypeDefinitionNode)(v))a.push(v);else if((0,qd.isTypeExtensionNode)(v)){let L=v.name.value,_=u[L];u[L]=_?_.concat([v]):[v]}else v.kind===Be.Kind.DIRECTIVE_DEFINITION&&c.push(v);if(Object.keys(u).length===0&&a.length===0&&c.length===0&&p.length===0&&l==null)return e;let f=Object.create(null);for(let v of e.types)f[v.name]=A(v);for(let v of a){var m;let L=v.name.value;f[L]=(m=Vd[L])!==null&&m!==void 0?m:jm(v)}let y={query:e.query&&P(e.query),mutation:e.mutation&&P(e.mutation),subscription:e.subscription&&P(e.subscription),...l&&we([l]),...we(p)};return{description:(t=l)===null||t===void 0||(i=t.description)===null||i===void 0?void 0:i.value,...y,types:Object.values(f),directives:[...e.directives.map(C),...c.map(Pm)],extensions:Object.create(null),astNode:(o=l)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(p),assumeValid:(s=n?.assumeValid)!==null&&s!==void 0?s:!1};function O(v){return(0,te.isListType)(v)?new te.GraphQLList(O(v.ofType)):(0,te.isNonNullType)(v)?new te.GraphQLNonNull(O(v.ofType)):P(v)}function P(v){return f[v.name]}function C(v){let L=v.toConfig();return new jt.GraphQLDirective({...L,args:(0,Pt.mapValue)(L.args,F)})}function A(v){if((0,Ud.isIntrospectionType)(v)||(0,$d.isSpecifiedScalarType)(v))return v;if((0,te.isScalarType)(v))return vr(v);if((0,te.isObjectType)(v))return Sr(v);if((0,te.isInterfaceType)(v))return un(v);if((0,te.isUnionType)(v))return yo(v);if((0,te.isEnumType)(v))return ie(v);if((0,te.isInputObjectType)(v))return ce(v);(0,SN.invariant)(!1,"Unexpected type: "+(0,LN.inspect)(v))}function ce(v){var L;let _=v.toConfig(),S=(L=u[_.name])!==null&&L!==void 0?L:[];return new te.GraphQLInputObjectType({..._,fields:()=>({...(0,Pt.mapValue)(_.fields,Z=>({...Z,type:O(Z.type)})),...Lc(S)}),extensionASTNodes:_.extensionASTNodes.concat(S)})}function ie(v){var L;let _=v.toConfig(),S=(L=u[v.name])!==null&&L!==void 0?L:[];return new te.GraphQLEnumType({..._,values:{..._.values,...Sc(S)},extensionASTNodes:_.extensionASTNodes.concat(S)})}function vr(v){var L;let _=v.toConfig(),S=(L=u[_.name])!==null&&L!==void 0?L:[],Z=_.specifiedByURL;for(let re of S){var de;Z=(de=Qd(re))!==null&&de!==void 0?de:Z}return new te.GraphQLScalarType({..._,specifiedByURL:Z,extensionASTNodes:_.extensionASTNodes.concat(S)})}function Sr(v){var L;let _=v.toConfig(),S=(L=u[_.name])!==null&&L!==void 0?L:[];return new te.GraphQLObjectType({..._,interfaces:()=>[...v.getInterfaces().map(P),...qt(S)],fields:()=>({...(0,Pt.mapValue)(_.fields,T),...Ct(S)}),extensionASTNodes:_.extensionASTNodes.concat(S)})}function un(v){var L;let _=v.toConfig(),S=(L=u[_.name])!==null&&L!==void 0?L:[];return new te.GraphQLInterfaceType({..._,interfaces:()=>[...v.getInterfaces().map(P),...qt(S)],fields:()=>({...(0,Pt.mapValue)(_.fields,T),...Ct(S)}),extensionASTNodes:_.extensionASTNodes.concat(S)})}function yo(v){var L;let _=v.toConfig(),S=(L=u[_.name])!==null&&L!==void 0?L:[];return new te.GraphQLUnionType({..._,types:()=>[...v.getTypes().map(P),...Dc(S)],extensionASTNodes:_.extensionASTNodes.concat(S)})}function T(v){return{...v,type:O(v.type),args:v.args&&(0,Pt.mapValue)(v.args,F)}}function F(v){return{...v,type:O(v.type)}}function we(v){let L={};for(let S of v){var _;let Z=(_=S.operationTypes)!==null&&_!==void 0?_:[];for(let de of Z)L[de.operation]=cn(de.type)}return L}function cn(v){var L;let _=v.name.value,S=(L=Vd[_])!==null&&L!==void 0?L:f[_];if(S===void 0)throw new Error(`Unknown type: "${_}".`);return S}function xn(v){return v.kind===Be.Kind.LIST_TYPE?new te.GraphQLList(xn(v.type)):v.kind===Be.Kind.NON_NULL_TYPE?new te.GraphQLNonNull(xn(v.type)):cn(v)}function Pm(v){var L;return new jt.GraphQLDirective({name:v.name.value,description:(L=v.description)===null||L===void 0?void 0:L.value,locations:v.locations.map(({value:_})=>_),isRepeatable:v.repeatable,args:Ic(v.arguments),astNode:v})}function Ct(v){let L=Object.create(null);for(let Z of v){var _;let de=(_=Z.fields)!==null&&_!==void 0?_:[];for(let re of de){var S;L[re.name.value]={type:xn(re.type),description:(S=re.description)===null||S===void 0?void 0:S.value,args:Ic(re.arguments),deprecationReason:oo(re),astNode:re}}}return L}function Ic(v){let L=v??[],_=Object.create(null);for(let Z of L){var S;let de=xn(Z.type);_[Z.name.value]={type:de,description:(S=Z.description)===null||S===void 0?void 0:S.value,defaultValue:(0,Gd.valueFromAST)(Z.defaultValue,de),deprecationReason:oo(Z),astNode:Z}}return _}function Lc(v){let L=Object.create(null);for(let Z of v){var _;let de=(_=Z.fields)!==null&&_!==void 0?_:[];for(let re of de){var S;let ln=xn(re.type);L[re.name.value]={type:ln,description:(S=re.description)===null||S===void 0?void 0:S.value,defaultValue:(0,Gd.valueFromAST)(re.defaultValue,ln),deprecationReason:oo(re),astNode:re}}}return L}function Sc(v){let L=Object.create(null);for(let Z of v){var _;let de=(_=Z.values)!==null&&_!==void 0?_:[];for(let re of de){var S;L[re.name.value]={description:(S=re.description)===null||S===void 0?void 0:S.value,deprecationReason:oo(re),astNode:re}}}return L}function qt(v){return v.flatMap(L=>{var _,S;return(_=(S=L.interfaces)===null||S===void 0?void 0:S.map(cn))!==null&&_!==void 0?_:[]})}function Dc(v){return v.flatMap(L=>{var _,S;return(_=(S=L.types)===null||S===void 0?void 0:S.map(cn))!==null&&_!==void 0?_:[]})}function jm(v){var L;let _=v.name.value,S=(L=u[_])!==null&&L!==void 0?L:[];switch(v.kind){case Be.Kind.OBJECT_TYPE_DEFINITION:{var Z;let He=[v,...S];return new te.GraphQLObjectType({name:_,description:(Z=v.description)===null||Z===void 0?void 0:Z.value,interfaces:()=>qt(He),fields:()=>Ct(He),astNode:v,extensionASTNodes:S})}case Be.Kind.INTERFACE_TYPE_DEFINITION:{var de;let He=[v,...S];return new te.GraphQLInterfaceType({name:_,description:(de=v.description)===null||de===void 0?void 0:de.value,interfaces:()=>qt(He),fields:()=>Ct(He),astNode:v,extensionASTNodes:S})}case Be.Kind.ENUM_TYPE_DEFINITION:{var re;let He=[v,...S];return new te.GraphQLEnumType({name:_,description:(re=v.description)===null||re===void 0?void 0:re.value,values:Sc(He),astNode:v,extensionASTNodes:S})}case Be.Kind.UNION_TYPE_DEFINITION:{var ln;let He=[v,...S];return new te.GraphQLUnionType({name:_,description:(ln=v.description)===null||ln===void 0?void 0:ln.value,types:()=>Dc(He),astNode:v,extensionASTNodes:S})}case Be.Kind.SCALAR_TYPE_DEFINITION:{var vo;return new te.GraphQLScalarType({name:_,description:(vo=v.description)===null||vo===void 0?void 0:vo.value,specifiedByURL:Qd(v),astNode:v,extensionASTNodes:S})}case Be.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var To;let He=[v,...S];return new te.GraphQLInputObjectType({name:_,description:(To=v.description)===null||To===void 0?void 0:To.value,fields:()=>Lc(He),astNode:v,extensionASTNodes:S,isOneOf:PN(v)})}}}}var Vd=(0,DN.keyMap)([...$d.specifiedScalarTypes,...Ud.introspectionTypes],e=>e.name);function oo(e){let r=(0,ac.getDirectiveValues)(jt.GraphQLDeprecatedDirective,e);return r?.reason}function Qd(e){let r=(0,ac.getDirectiveValues)(jt.GraphQLSpecifiedByDirective,e);return r?.url}function PN(e){return!!(0,ac.getDirectiveValues)(jt.GraphQLOneOfDirective,e)}});var Yd=h(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.buildASTSchema=Bd;ao.buildSchema=MN;var jN=Le(),wN=V(),xN=gn(),FN=Re(),kN=Zr(),CN=It(),qN=uc();function Bd(e,r){e!=null&&e.kind===wN.Kind.DOCUMENT||(0,jN.devAssert)(!1,"Must provide valid Document AST."),r?.assumeValid!==!0&&r?.assumeValidSDL!==!0&&(0,CN.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},t=(0,qN.extendSchemaImpl)(n,e,r);if(t.astNode==null)for(let o of t.types)switch(o.name){case"Query":t.query=o;break;case"Mutation":t.mutation=o;break;case"Subscription":t.subscription=o;break}let i=[...t.directives,...FN.specifiedDirectives.filter(o=>t.directives.every(s=>s.name!==o.name))];return new kN.GraphQLSchema({...t,directives:i})}function MN(e,r){let n=(0,xN.parse)(e,{noLocation:r?.noLocation,allowLegacyFragmentVariables:r?.allowLegacyFragmentVariables});return Bd(n,{assumeValidSDL:r?.assumeValidSDL,assumeValid:r?.assumeValid})}});var Wd=h(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.lexicographicSortSchema=BN;var GN=J(),VN=Oe(),QN=Xn(),Hd=zn(),Se=Q(),UN=Re(),$N=Ve(),KN=Zr();function BN(e){let r=e.toConfig(),n=(0,QN.keyValMap)(cc(r.types),f=>f.name,p);return new KN.GraphQLSchema({...r,types:Object.values(n),directives:cc(r.directives).map(s),query:o(r.query),mutation:o(r.mutation),subscription:o(r.subscription)});function t(f){return(0,Se.isListType)(f)?new Se.GraphQLList(t(f.ofType)):(0,Se.isNonNullType)(f)?new Se.GraphQLNonNull(t(f.ofType)):i(f)}function i(f){return n[f.name]}function o(f){return f&&i(f)}function s(f){let m=f.toConfig();return new UN.GraphQLDirective({...m,locations:Jd(m.locations,y=>y),args:a(m.args)})}function a(f){return uo(f,m=>({...m,type:t(m.type)}))}function u(f){return uo(f,m=>({...m,type:t(m.type),args:m.args&&a(m.args)}))}function c(f){return uo(f,m=>({...m,type:t(m.type)}))}function l(f){return cc(f).map(i)}function p(f){if((0,Se.isScalarType)(f)||(0,$N.isIntrospectionType)(f))return f;if((0,Se.isObjectType)(f)){let m=f.toConfig();return new Se.GraphQLObjectType({...m,interfaces:()=>l(m.interfaces),fields:()=>u(m.fields)})}if((0,Se.isInterfaceType)(f)){let m=f.toConfig();return new Se.GraphQLInterfaceType({...m,interfaces:()=>l(m.interfaces),fields:()=>u(m.fields)})}if((0,Se.isUnionType)(f)){let m=f.toConfig();return new Se.GraphQLUnionType({...m,types:()=>l(m.types)})}if((0,Se.isEnumType)(f)){let m=f.toConfig();return new Se.GraphQLEnumType({...m,values:uo(m.values,y=>y)})}if((0,Se.isInputObjectType)(f)){let m=f.toConfig();return new Se.GraphQLInputObjectType({...m,fields:()=>c(m.fields)})}(0,VN.invariant)(!1,"Unexpected type: "+(0,GN.inspect)(f))}}function uo(e,r){let n=Object.create(null);for(let t of Object.keys(e).sort(Hd.naturalCompare))n[t]=r(e[t]);return n}function cc(e){return Jd(e,r=>r.name)}function Jd(e,r){return e.slice().sort((n,t)=>{let i=r(n),o=r(t);return(0,Hd.naturalCompare)(i,o)})}});var tm=h(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.printIntrospectionSchema=ZN;wt.printSchema=zN;wt.printType=Zd;var YN=J(),HN=Oe(),JN=Un(),fc=V(),co=xe(),jn=Q(),dc=Re(),Xd=Ve(),WN=cr(),XN=pt();function zN(e){return zd(e,r=>!(0,dc.isSpecifiedDirective)(r),eI)}function ZN(e){return zd(e,dc.isSpecifiedDirective,Xd.isIntrospectionType)}function eI(e){return!(0,WN.isSpecifiedScalarType)(e)&&!(0,Xd.isIntrospectionType)(e)}function zd(e,r,n){let t=e.getDirectives().filter(r),i=Object.values(e.getTypeMap()).filter(n);return[rI(e),...t.map(o=>cI(o)),...i.map(o=>Zd(o))].filter(Boolean).join(`
165
+
166
+ `)}function rI(e){if(e.description==null&&nI(e))return;let r=[],n=e.getQueryType();n&&r.push(` query: ${n.name}`);let t=e.getMutationType();t&&r.push(` mutation: ${t.name}`);let i=e.getSubscriptionType();return i&&r.push(` subscription: ${i.name}`),Ye(e)+`schema {
167
+ ${r.join(`
168
+ `)}
169
+ }`}function nI(e){let r=e.getQueryType();if(r&&r.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let t=e.getSubscriptionType();return!(t&&t.name!=="Subscription")}function Zd(e){if((0,jn.isScalarType)(e))return tI(e);if((0,jn.isObjectType)(e))return iI(e);if((0,jn.isInterfaceType)(e))return oI(e);if((0,jn.isUnionType)(e))return sI(e);if((0,jn.isEnumType)(e))return aI(e);if((0,jn.isInputObjectType)(e))return uI(e);(0,HN.invariant)(!1,"Unexpected type: "+(0,YN.inspect)(e))}function tI(e){return Ye(e)+`scalar ${e.name}`+lI(e)}function em(e){let r=e.getInterfaces();return r.length?" implements "+r.map(n=>n.name).join(" & "):""}function iI(e){return Ye(e)+`type ${e.name}`+em(e)+rm(e)}function oI(e){return Ye(e)+`interface ${e.name}`+em(e)+rm(e)}function sI(e){let r=e.getTypes(),n=r.length?" = "+r.join(" | "):"";return Ye(e)+"union "+e.name+n}function aI(e){let r=e.getValues().map((n,t)=>Ye(n," ",!t)+" "+n.name+hc(n.deprecationReason));return Ye(e)+`enum ${e.name}`+mc(r)}function uI(e){let r=Object.values(e.getFields()).map((n,t)=>Ye(n," ",!t)+" "+pc(n));return Ye(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+mc(r)}function rm(e){let r=Object.values(e.getFields()).map((n,t)=>Ye(n," ",!t)+" "+n.name+nm(n.args," ")+": "+String(n.type)+hc(n.deprecationReason));return mc(r)}function mc(e){return e.length!==0?` {
170
+ `+e.join(`
171
+ `)+`
172
+ }`:""}function nm(e,r=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(pc).join(", ")+")":`(
173
+ `+e.map((n,t)=>Ye(n," "+r,!t)+" "+r+pc(n)).join(`
174
+ `)+`
175
+ `+r+")"}function pc(e){let r=(0,XN.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return r&&(n+=` = ${(0,co.print)(r)}`),n+hc(e.deprecationReason)}function cI(e){return Ye(e)+"directive @"+e.name+nm(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function hc(e){return e==null?"":e!==dc.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,co.print)({kind:fc.Kind.STRING,value:e})})`:" @deprecated"}function lI(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,co.print)({kind:fc.Kind.STRING,value:e.specifiedByURL})})`}function Ye(e,r="",n=!0){let{description:t}=e;if(t==null)return"";let i=(0,co.print)({kind:fc.Kind.STRING,value:t,block:(0,JN.isPrintableAsBlockString)(t)});return(r&&!n?`
176
+ `+r:r)+i.replace(/\n/g,`
177
+ `+r)+`
178
+ `}});var im=h(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.concatAST=fI;var pI=V();function fI(e){let r=[];for(let n of e)r.push(...n.definitions);return{kind:pI.Kind.DOCUMENT,definitions:r}}});var am=h(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.separateOperations=mI;var lo=V(),dI=Yr();function mI(e){let r=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case lo.Kind.OPERATION_DEFINITION:r.push(i);break;case lo.Kind.FRAGMENT_DEFINITION:n[i.name.value]=om(i.selectionSet);break;default:}let t=Object.create(null);for(let i of r){let o=new Set;for(let a of om(i.selectionSet))sm(o,n,a);let s=i.name?i.name.value:"";t[s]={kind:lo.Kind.DOCUMENT,definitions:e.definitions.filter(a=>a===i||a.kind===lo.Kind.FRAGMENT_DEFINITION&&o.has(a.name.value))}}return t}function sm(e,r,n){if(!e.has(n)){e.add(n);let t=r[n];if(t!==void 0)for(let i of t)sm(e,r,i)}}function om(e){let r=[];return(0,dI.visit)(e,{FragmentSpread(n){r.push(n.name.value)}}),r}});var lm=h(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.stripIgnoredCharacters=yI;var hI=Un(),um=Zt(),cm=ti(),Tc=Kn();function yI(e){let r=(0,cm.isSource)(e)?e:new cm.Source(e),n=r.body,t=new um.Lexer(r),i="",o=!1;for(;t.advance().kind!==Tc.TokenKind.EOF;){let s=t.token,a=s.kind,u=!(0,um.isPunctuatorTokenKind)(s.kind);o&&(u||s.kind===Tc.TokenKind.SPREAD)&&(i+=" ");let c=n.slice(s.start,s.end);a===Tc.TokenKind.BLOCK_STRING?i+=(0,hI.printBlockString)(s.value,{minimize:!0}):i+=c,o=u}return i}});var fm=h(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.assertValidName=bI;po.isValidNameError=pm;var vI=Le(),TI=j(),gI=Zn();function bI(e){let r=pm(e);if(r)throw r;return e}function pm(e){if(typeof e=="string"||(0,vI.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new TI.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,gI.assertName)(e)}catch(r){return r}}});var bm=h(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.DangerousChangeType=hr.BreakingChangeType=void 0;hr.findBreakingChanges=LI;hr.findDangerousChanges=SI;var EI=J(),Tm=Oe(),dm=jr(),_I=xe(),B=Q(),OI=cr(),NI=pt(),II=ba(),ue;hr.BreakingChangeType=ue;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(ue||(hr.BreakingChangeType=ue={}));var tr;hr.DangerousChangeType=tr;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(tr||(hr.DangerousChangeType=tr={}));function LI(e,r){return gm(e,r).filter(n=>n.type in ue)}function SI(e,r){return gm(e,r).filter(n=>n.type in tr)}function gm(e,r){return[...AI(e,r),...DI(e,r)]}function DI(e,r){let n=[],t=Ir(e.getDirectives(),r.getDirectives());for(let i of t.removed)n.push({type:ue.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,o]of t.persisted){let s=Ir(i.args,o.args);for(let a of s.added)(0,B.isRequiredArgument)(a)&&n.push({type:ue.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${a.name} on directive ${i.name} was added.`});for(let a of s.removed)n.push({type:ue.DIRECTIVE_ARG_REMOVED,description:`${a.name} was removed from ${i.name}.`});i.isRepeatable&&!o.isRepeatable&&n.push({type:ue.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let a of i.locations)o.locations.includes(a)||n.push({type:ue.DIRECTIVE_LOCATION_REMOVED,description:`${a} was removed from ${i.name}.`})}return n}function AI(e,r){let n=[],t=Ir(Object.values(e.getTypeMap()),Object.values(r.getTypeMap()));for(let i of t.removed)n.push({type:ue.TYPE_REMOVED,description:(0,OI.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,o]of t.persisted)(0,B.isEnumType)(i)&&(0,B.isEnumType)(o)?n.push(...jI(i,o)):(0,B.isUnionType)(i)&&(0,B.isUnionType)(o)?n.push(...PI(i,o)):(0,B.isInputObjectType)(i)&&(0,B.isInputObjectType)(o)?n.push(...RI(i,o)):(0,B.isObjectType)(i)&&(0,B.isObjectType)(o)?n.push(...hm(i,o),...mm(i,o)):(0,B.isInterfaceType)(i)&&(0,B.isInterfaceType)(o)?n.push(...hm(i,o),...mm(i,o)):i.constructor!==o.constructor&&n.push({type:ue.TYPE_CHANGED_KIND,description:`${i.name} changed from ${ym(i)} to ${ym(o)}.`});return n}function RI(e,r){let n=[],t=Ir(Object.values(e.getFields()),Object.values(r.getFields()));for(let i of t.added)(0,B.isRequiredInputField)(i)?n.push({type:ue.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:tr.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of t.removed)n.push({type:ue.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,o]of t.persisted)Ft(i.type,o.type)||n.push({type:ue.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function PI(e,r){let n=[],t=Ir(e.getTypes(),r.getTypes());for(let i of t.added)n.push({type:tr.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of t.removed)n.push({type:ue.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function jI(e,r){let n=[],t=Ir(e.getValues(),r.getValues());for(let i of t.added)n.push({type:tr.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of t.removed)n.push({type:ue.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function mm(e,r){let n=[],t=Ir(e.getInterfaces(),r.getInterfaces());for(let i of t.added)n.push({type:tr.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of t.removed)n.push({type:ue.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function hm(e,r){let n=[],t=Ir(Object.values(e.getFields()),Object.values(r.getFields()));for(let i of t.removed)n.push({type:ue.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,o]of t.persisted)n.push(...wI(e,i,o)),xt(i.type,o.type)||n.push({type:ue.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function wI(e,r,n){let t=[],i=Ir(r.args,n.args);for(let o of i.removed)t.push({type:ue.ARG_REMOVED,description:`${e.name}.${r.name} arg ${o.name} was removed.`});for(let[o,s]of i.persisted)if(!Ft(o.type,s.type))t.push({type:ue.ARG_CHANGED_KIND,description:`${e.name}.${r.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(s.type)}.`});else if(o.defaultValue!==void 0)if(s.defaultValue===void 0)t.push({type:tr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${r.name} arg ${o.name} defaultValue was removed.`});else{let u=vm(o.defaultValue,o.type),c=vm(s.defaultValue,s.type);u!==c&&t.push({type:tr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${r.name} arg ${o.name} has changed defaultValue from ${u} to ${c}.`})}for(let o of i.added)(0,B.isRequiredArgument)(o)?t.push({type:ue.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${r.name} was added.`}):t.push({type:tr.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${r.name} was added.`});return t}function xt(e,r){return(0,B.isListType)(e)?(0,B.isListType)(r)&&xt(e.ofType,r.ofType)||(0,B.isNonNullType)(r)&&xt(e,r.ofType):(0,B.isNonNullType)(e)?(0,B.isNonNullType)(r)&&xt(e.ofType,r.ofType):(0,B.isNamedType)(r)&&e.name===r.name||(0,B.isNonNullType)(r)&&xt(e,r.ofType)}function Ft(e,r){return(0,B.isListType)(e)?(0,B.isListType)(r)&&Ft(e.ofType,r.ofType):(0,B.isNonNullType)(e)?(0,B.isNonNullType)(r)&&Ft(e.ofType,r.ofType)||!(0,B.isNonNullType)(r)&&Ft(e.ofType,r):(0,B.isNamedType)(r)&&e.name===r.name}function ym(e){if((0,B.isScalarType)(e))return"a Scalar type";if((0,B.isObjectType)(e))return"an Object type";if((0,B.isInterfaceType)(e))return"an Interface type";if((0,B.isUnionType)(e))return"a Union type";if((0,B.isEnumType)(e))return"an Enum type";if((0,B.isInputObjectType)(e))return"an Input type";(0,Tm.invariant)(!1,"Unexpected type: "+(0,EI.inspect)(e))}function vm(e,r){let n=(0,NI.astFromValue)(e,r);return n!=null||(0,Tm.invariant)(!1),(0,_I.print)((0,II.sortValueNode)(n))}function Ir(e,r){let n=[],t=[],i=[],o=(0,dm.keyMap)(e,({name:a})=>a),s=(0,dm.keyMap)(r,({name:a})=>a);for(let a of e){let u=s[a.name];u===void 0?t.push(a):i.push([a,u])}for(let a of r)o[a.name]===void 0&&n.push(a);return{added:n,persisted:i,removed:t}}});var Nm=h(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});Object.defineProperty(K,"BreakingChangeType",{enumerable:!0,get:function(){return fo.BreakingChangeType}});Object.defineProperty(K,"DangerousChangeType",{enumerable:!0,get:function(){return fo.DangerousChangeType}});Object.defineProperty(K,"TypeInfo",{enumerable:!0,get:function(){return _m.TypeInfo}});Object.defineProperty(K,"assertValidName",{enumerable:!0,get:function(){return Om.assertValidName}});Object.defineProperty(K,"astFromValue",{enumerable:!0,get:function(){return $I.astFromValue}});Object.defineProperty(K,"buildASTSchema",{enumerable:!0,get:function(){return Em.buildASTSchema}});Object.defineProperty(K,"buildClientSchema",{enumerable:!0,get:function(){return qI.buildClientSchema}});Object.defineProperty(K,"buildSchema",{enumerable:!0,get:function(){return Em.buildSchema}});Object.defineProperty(K,"coerceInputValue",{enumerable:!0,get:function(){return KI.coerceInputValue}});Object.defineProperty(K,"concatAST",{enumerable:!0,get:function(){return BI.concatAST}});Object.defineProperty(K,"doTypesOverlap",{enumerable:!0,get:function(){return Ec.doTypesOverlap}});Object.defineProperty(K,"extendSchema",{enumerable:!0,get:function(){return MI.extendSchema}});Object.defineProperty(K,"findBreakingChanges",{enumerable:!0,get:function(){return fo.findBreakingChanges}});Object.defineProperty(K,"findDangerousChanges",{enumerable:!0,get:function(){return fo.findDangerousChanges}});Object.defineProperty(K,"getIntrospectionQuery",{enumerable:!0,get:function(){return xI.getIntrospectionQuery}});Object.defineProperty(K,"getOperationAST",{enumerable:!0,get:function(){return FI.getOperationAST}});Object.defineProperty(K,"getOperationRootType",{enumerable:!0,get:function(){return kI.getOperationRootType}});Object.defineProperty(K,"introspectionFromSchema",{enumerable:!0,get:function(){return CI.introspectionFromSchema}});Object.defineProperty(K,"isEqualType",{enumerable:!0,get:function(){return Ec.isEqualType}});Object.defineProperty(K,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Ec.isTypeSubTypeOf}});Object.defineProperty(K,"isValidNameError",{enumerable:!0,get:function(){return Om.isValidNameError}});Object.defineProperty(K,"lexicographicSortSchema",{enumerable:!0,get:function(){return GI.lexicographicSortSchema}});Object.defineProperty(K,"printIntrospectionSchema",{enumerable:!0,get:function(){return bc.printIntrospectionSchema}});Object.defineProperty(K,"printSchema",{enumerable:!0,get:function(){return bc.printSchema}});Object.defineProperty(K,"printType",{enumerable:!0,get:function(){return bc.printType}});Object.defineProperty(K,"separateOperations",{enumerable:!0,get:function(){return YI.separateOperations}});Object.defineProperty(K,"stripIgnoredCharacters",{enumerable:!0,get:function(){return HI.stripIgnoredCharacters}});Object.defineProperty(K,"typeFromAST",{enumerable:!0,get:function(){return VI.typeFromAST}});Object.defineProperty(K,"valueFromAST",{enumerable:!0,get:function(){return QI.valueFromAST}});Object.defineProperty(K,"valueFromASTUntyped",{enumerable:!0,get:function(){return UI.valueFromASTUntyped}});Object.defineProperty(K,"visitWithTypeInfo",{enumerable:!0,get:function(){return _m.visitWithTypeInfo}});var xI=nc(),FI=wd(),kI=xd(),CI=Fd(),qI=Cd(),Em=Yd(),MI=uc(),GI=Wd(),bc=tm(),VI=lr(),QI=Et(),UI=ys(),$I=pt(),_m=Pi(),KI=Qa(),BI=im(),YI=am(),HI=lm(),Ec=it(),Om=fm(),fo=bm()});var Sm=h(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});Object.defineProperty(d,"BREAK",{enumerable:!0,get:function(){return Y.BREAK}});Object.defineProperty(d,"BreakingChangeType",{enumerable:!0,get:function(){return H.BreakingChangeType}});Object.defineProperty(d,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return b.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(d,"DangerousChangeType",{enumerable:!0,get:function(){return H.DangerousChangeType}});Object.defineProperty(d,"DirectiveLocation",{enumerable:!0,get:function(){return Y.DirectiveLocation}});Object.defineProperty(d,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return q.ExecutableDefinitionsRule}});Object.defineProperty(d,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return q.FieldsOnCorrectTypeRule}});Object.defineProperty(d,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return q.FragmentsOnCompositeTypesRule}});Object.defineProperty(d,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return b.GRAPHQL_MAX_INT}});Object.defineProperty(d,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return b.GRAPHQL_MIN_INT}});Object.defineProperty(d,"GraphQLBoolean",{enumerable:!0,get:function(){return b.GraphQLBoolean}});Object.defineProperty(d,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return b.GraphQLDeprecatedDirective}});Object.defineProperty(d,"GraphQLDirective",{enumerable:!0,get:function(){return b.GraphQLDirective}});Object.defineProperty(d,"GraphQLEnumType",{enumerable:!0,get:function(){return b.GraphQLEnumType}});Object.defineProperty(d,"GraphQLError",{enumerable:!0,get:function(){return kt.GraphQLError}});Object.defineProperty(d,"GraphQLFloat",{enumerable:!0,get:function(){return b.GraphQLFloat}});Object.defineProperty(d,"GraphQLID",{enumerable:!0,get:function(){return b.GraphQLID}});Object.defineProperty(d,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return b.GraphQLIncludeDirective}});Object.defineProperty(d,"GraphQLInputObjectType",{enumerable:!0,get:function(){return b.GraphQLInputObjectType}});Object.defineProperty(d,"GraphQLInt",{enumerable:!0,get:function(){return b.GraphQLInt}});Object.defineProperty(d,"GraphQLInterfaceType",{enumerable:!0,get:function(){return b.GraphQLInterfaceType}});Object.defineProperty(d,"GraphQLList",{enumerable:!0,get:function(){return b.GraphQLList}});Object.defineProperty(d,"GraphQLNonNull",{enumerable:!0,get:function(){return b.GraphQLNonNull}});Object.defineProperty(d,"GraphQLObjectType",{enumerable:!0,get:function(){return b.GraphQLObjectType}});Object.defineProperty(d,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return b.GraphQLOneOfDirective}});Object.defineProperty(d,"GraphQLScalarType",{enumerable:!0,get:function(){return b.GraphQLScalarType}});Object.defineProperty(d,"GraphQLSchema",{enumerable:!0,get:function(){return b.GraphQLSchema}});Object.defineProperty(d,"GraphQLSkipDirective",{enumerable:!0,get:function(){return b.GraphQLSkipDirective}});Object.defineProperty(d,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return b.GraphQLSpecifiedByDirective}});Object.defineProperty(d,"GraphQLString",{enumerable:!0,get:function(){return b.GraphQLString}});Object.defineProperty(d,"GraphQLUnionType",{enumerable:!0,get:function(){return b.GraphQLUnionType}});Object.defineProperty(d,"Kind",{enumerable:!0,get:function(){return Y.Kind}});Object.defineProperty(d,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return q.KnownArgumentNamesRule}});Object.defineProperty(d,"KnownDirectivesRule",{enumerable:!0,get:function(){return q.KnownDirectivesRule}});Object.defineProperty(d,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return q.KnownFragmentNamesRule}});Object.defineProperty(d,"KnownTypeNamesRule",{enumerable:!0,get:function(){return q.KnownTypeNamesRule}});Object.defineProperty(d,"Lexer",{enumerable:!0,get:function(){return Y.Lexer}});Object.defineProperty(d,"Location",{enumerable:!0,get:function(){return Y.Location}});Object.defineProperty(d,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return q.LoneAnonymousOperationRule}});Object.defineProperty(d,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return q.LoneSchemaDefinitionRule}});Object.defineProperty(d,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return q.MaxIntrospectionDepthRule}});Object.defineProperty(d,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return q.NoDeprecatedCustomRule}});Object.defineProperty(d,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return q.NoFragmentCyclesRule}});Object.defineProperty(d,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return q.NoSchemaIntrospectionCustomRule}});Object.defineProperty(d,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return q.NoUndefinedVariablesRule}});Object.defineProperty(d,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return q.NoUnusedFragmentsRule}});Object.defineProperty(d,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return q.NoUnusedVariablesRule}});Object.defineProperty(d,"OperationTypeNode",{enumerable:!0,get:function(){return Y.OperationTypeNode}});Object.defineProperty(d,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return q.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(d,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return q.PossibleFragmentSpreadsRule}});Object.defineProperty(d,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return q.PossibleTypeExtensionsRule}});Object.defineProperty(d,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return q.ProvidedRequiredArgumentsRule}});Object.defineProperty(d,"ScalarLeafsRule",{enumerable:!0,get:function(){return q.ScalarLeafsRule}});Object.defineProperty(d,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return b.SchemaMetaFieldDef}});Object.defineProperty(d,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return q.SingleFieldSubscriptionsRule}});Object.defineProperty(d,"Source",{enumerable:!0,get:function(){return Y.Source}});Object.defineProperty(d,"Token",{enumerable:!0,get:function(){return Y.Token}});Object.defineProperty(d,"TokenKind",{enumerable:!0,get:function(){return Y.TokenKind}});Object.defineProperty(d,"TypeInfo",{enumerable:!0,get:function(){return H.TypeInfo}});Object.defineProperty(d,"TypeKind",{enumerable:!0,get:function(){return b.TypeKind}});Object.defineProperty(d,"TypeMetaFieldDef",{enumerable:!0,get:function(){return b.TypeMetaFieldDef}});Object.defineProperty(d,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return b.TypeNameMetaFieldDef}});Object.defineProperty(d,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return q.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(d,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return q.UniqueArgumentNamesRule}});Object.defineProperty(d,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return q.UniqueDirectiveNamesRule}});Object.defineProperty(d,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return q.UniqueDirectivesPerLocationRule}});Object.defineProperty(d,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return q.UniqueEnumValueNamesRule}});Object.defineProperty(d,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return q.UniqueFieldDefinitionNamesRule}});Object.defineProperty(d,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return q.UniqueFragmentNamesRule}});Object.defineProperty(d,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return q.UniqueInputFieldNamesRule}});Object.defineProperty(d,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return q.UniqueOperationNamesRule}});Object.defineProperty(d,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return q.UniqueOperationTypesRule}});Object.defineProperty(d,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return q.UniqueTypeNamesRule}});Object.defineProperty(d,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return q.UniqueVariableNamesRule}});Object.defineProperty(d,"ValidationContext",{enumerable:!0,get:function(){return q.ValidationContext}});Object.defineProperty(d,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return q.ValuesOfCorrectTypeRule}});Object.defineProperty(d,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return q.VariablesAreInputTypesRule}});Object.defineProperty(d,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return q.VariablesInAllowedPositionRule}});Object.defineProperty(d,"__Directive",{enumerable:!0,get:function(){return b.__Directive}});Object.defineProperty(d,"__DirectiveLocation",{enumerable:!0,get:function(){return b.__DirectiveLocation}});Object.defineProperty(d,"__EnumValue",{enumerable:!0,get:function(){return b.__EnumValue}});Object.defineProperty(d,"__Field",{enumerable:!0,get:function(){return b.__Field}});Object.defineProperty(d,"__InputValue",{enumerable:!0,get:function(){return b.__InputValue}});Object.defineProperty(d,"__Schema",{enumerable:!0,get:function(){return b.__Schema}});Object.defineProperty(d,"__Type",{enumerable:!0,get:function(){return b.__Type}});Object.defineProperty(d,"__TypeKind",{enumerable:!0,get:function(){return b.__TypeKind}});Object.defineProperty(d,"assertAbstractType",{enumerable:!0,get:function(){return b.assertAbstractType}});Object.defineProperty(d,"assertCompositeType",{enumerable:!0,get:function(){return b.assertCompositeType}});Object.defineProperty(d,"assertDirective",{enumerable:!0,get:function(){return b.assertDirective}});Object.defineProperty(d,"assertEnumType",{enumerable:!0,get:function(){return b.assertEnumType}});Object.defineProperty(d,"assertEnumValueName",{enumerable:!0,get:function(){return b.assertEnumValueName}});Object.defineProperty(d,"assertInputObjectType",{enumerable:!0,get:function(){return b.assertInputObjectType}});Object.defineProperty(d,"assertInputType",{enumerable:!0,get:function(){return b.assertInputType}});Object.defineProperty(d,"assertInterfaceType",{enumerable:!0,get:function(){return b.assertInterfaceType}});Object.defineProperty(d,"assertLeafType",{enumerable:!0,get:function(){return b.assertLeafType}});Object.defineProperty(d,"assertListType",{enumerable:!0,get:function(){return b.assertListType}});Object.defineProperty(d,"assertName",{enumerable:!0,get:function(){return b.assertName}});Object.defineProperty(d,"assertNamedType",{enumerable:!0,get:function(){return b.assertNamedType}});Object.defineProperty(d,"assertNonNullType",{enumerable:!0,get:function(){return b.assertNonNullType}});Object.defineProperty(d,"assertNullableType",{enumerable:!0,get:function(){return b.assertNullableType}});Object.defineProperty(d,"assertObjectType",{enumerable:!0,get:function(){return b.assertObjectType}});Object.defineProperty(d,"assertOutputType",{enumerable:!0,get:function(){return b.assertOutputType}});Object.defineProperty(d,"assertScalarType",{enumerable:!0,get:function(){return b.assertScalarType}});Object.defineProperty(d,"assertSchema",{enumerable:!0,get:function(){return b.assertSchema}});Object.defineProperty(d,"assertType",{enumerable:!0,get:function(){return b.assertType}});Object.defineProperty(d,"assertUnionType",{enumerable:!0,get:function(){return b.assertUnionType}});Object.defineProperty(d,"assertValidName",{enumerable:!0,get:function(){return H.assertValidName}});Object.defineProperty(d,"assertValidSchema",{enumerable:!0,get:function(){return b.assertValidSchema}});Object.defineProperty(d,"assertWrappingType",{enumerable:!0,get:function(){return b.assertWrappingType}});Object.defineProperty(d,"astFromValue",{enumerable:!0,get:function(){return H.astFromValue}});Object.defineProperty(d,"buildASTSchema",{enumerable:!0,get:function(){return H.buildASTSchema}});Object.defineProperty(d,"buildClientSchema",{enumerable:!0,get:function(){return H.buildClientSchema}});Object.defineProperty(d,"buildSchema",{enumerable:!0,get:function(){return H.buildSchema}});Object.defineProperty(d,"coerceInputValue",{enumerable:!0,get:function(){return H.coerceInputValue}});Object.defineProperty(d,"concatAST",{enumerable:!0,get:function(){return H.concatAST}});Object.defineProperty(d,"createSourceEventStream",{enumerable:!0,get:function(){return yr.createSourceEventStream}});Object.defineProperty(d,"defaultFieldResolver",{enumerable:!0,get:function(){return yr.defaultFieldResolver}});Object.defineProperty(d,"defaultTypeResolver",{enumerable:!0,get:function(){return yr.defaultTypeResolver}});Object.defineProperty(d,"doTypesOverlap",{enumerable:!0,get:function(){return H.doTypesOverlap}});Object.defineProperty(d,"execute",{enumerable:!0,get:function(){return yr.execute}});Object.defineProperty(d,"executeSync",{enumerable:!0,get:function(){return yr.executeSync}});Object.defineProperty(d,"extendSchema",{enumerable:!0,get:function(){return H.extendSchema}});Object.defineProperty(d,"findBreakingChanges",{enumerable:!0,get:function(){return H.findBreakingChanges}});Object.defineProperty(d,"findDangerousChanges",{enumerable:!0,get:function(){return H.findDangerousChanges}});Object.defineProperty(d,"formatError",{enumerable:!0,get:function(){return kt.formatError}});Object.defineProperty(d,"getArgumentValues",{enumerable:!0,get:function(){return yr.getArgumentValues}});Object.defineProperty(d,"getDirectiveValues",{enumerable:!0,get:function(){return yr.getDirectiveValues}});Object.defineProperty(d,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Y.getEnterLeaveForKind}});Object.defineProperty(d,"getIntrospectionQuery",{enumerable:!0,get:function(){return H.getIntrospectionQuery}});Object.defineProperty(d,"getLocation",{enumerable:!0,get:function(){return Y.getLocation}});Object.defineProperty(d,"getNamedType",{enumerable:!0,get:function(){return b.getNamedType}});Object.defineProperty(d,"getNullableType",{enumerable:!0,get:function(){return b.getNullableType}});Object.defineProperty(d,"getOperationAST",{enumerable:!0,get:function(){return H.getOperationAST}});Object.defineProperty(d,"getOperationRootType",{enumerable:!0,get:function(){return H.getOperationRootType}});Object.defineProperty(d,"getVariableValues",{enumerable:!0,get:function(){return yr.getVariableValues}});Object.defineProperty(d,"getVisitFn",{enumerable:!0,get:function(){return Y.getVisitFn}});Object.defineProperty(d,"graphql",{enumerable:!0,get:function(){return Lm.graphql}});Object.defineProperty(d,"graphqlSync",{enumerable:!0,get:function(){return Lm.graphqlSync}});Object.defineProperty(d,"introspectionFromSchema",{enumerable:!0,get:function(){return H.introspectionFromSchema}});Object.defineProperty(d,"introspectionTypes",{enumerable:!0,get:function(){return b.introspectionTypes}});Object.defineProperty(d,"isAbstractType",{enumerable:!0,get:function(){return b.isAbstractType}});Object.defineProperty(d,"isCompositeType",{enumerable:!0,get:function(){return b.isCompositeType}});Object.defineProperty(d,"isConstValueNode",{enumerable:!0,get:function(){return Y.isConstValueNode}});Object.defineProperty(d,"isDefinitionNode",{enumerable:!0,get:function(){return Y.isDefinitionNode}});Object.defineProperty(d,"isDirective",{enumerable:!0,get:function(){return b.isDirective}});Object.defineProperty(d,"isEnumType",{enumerable:!0,get:function(){return b.isEnumType}});Object.defineProperty(d,"isEqualType",{enumerable:!0,get:function(){return H.isEqualType}});Object.defineProperty(d,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Y.isExecutableDefinitionNode}});Object.defineProperty(d,"isInputObjectType",{enumerable:!0,get:function(){return b.isInputObjectType}});Object.defineProperty(d,"isInputType",{enumerable:!0,get:function(){return b.isInputType}});Object.defineProperty(d,"isInterfaceType",{enumerable:!0,get:function(){return b.isInterfaceType}});Object.defineProperty(d,"isIntrospectionType",{enumerable:!0,get:function(){return b.isIntrospectionType}});Object.defineProperty(d,"isLeafType",{enumerable:!0,get:function(){return b.isLeafType}});Object.defineProperty(d,"isListType",{enumerable:!0,get:function(){return b.isListType}});Object.defineProperty(d,"isNamedType",{enumerable:!0,get:function(){return b.isNamedType}});Object.defineProperty(d,"isNonNullType",{enumerable:!0,get:function(){return b.isNonNullType}});Object.defineProperty(d,"isNullableType",{enumerable:!0,get:function(){return b.isNullableType}});Object.defineProperty(d,"isObjectType",{enumerable:!0,get:function(){return b.isObjectType}});Object.defineProperty(d,"isOutputType",{enumerable:!0,get:function(){return b.isOutputType}});Object.defineProperty(d,"isRequiredArgument",{enumerable:!0,get:function(){return b.isRequiredArgument}});Object.defineProperty(d,"isRequiredInputField",{enumerable:!0,get:function(){return b.isRequiredInputField}});Object.defineProperty(d,"isScalarType",{enumerable:!0,get:function(){return b.isScalarType}});Object.defineProperty(d,"isSchema",{enumerable:!0,get:function(){return b.isSchema}});Object.defineProperty(d,"isSelectionNode",{enumerable:!0,get:function(){return Y.isSelectionNode}});Object.defineProperty(d,"isSpecifiedDirective",{enumerable:!0,get:function(){return b.isSpecifiedDirective}});Object.defineProperty(d,"isSpecifiedScalarType",{enumerable:!0,get:function(){return b.isSpecifiedScalarType}});Object.defineProperty(d,"isType",{enumerable:!0,get:function(){return b.isType}});Object.defineProperty(d,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Y.isTypeDefinitionNode}});Object.defineProperty(d,"isTypeExtensionNode",{enumerable:!0,get:function(){return Y.isTypeExtensionNode}});Object.defineProperty(d,"isTypeNode",{enumerable:!0,get:function(){return Y.isTypeNode}});Object.defineProperty(d,"isTypeSubTypeOf",{enumerable:!0,get:function(){return H.isTypeSubTypeOf}});Object.defineProperty(d,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Y.isTypeSystemDefinitionNode}});Object.defineProperty(d,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Y.isTypeSystemExtensionNode}});Object.defineProperty(d,"isUnionType",{enumerable:!0,get:function(){return b.isUnionType}});Object.defineProperty(d,"isValidNameError",{enumerable:!0,get:function(){return H.isValidNameError}});Object.defineProperty(d,"isValueNode",{enumerable:!0,get:function(){return Y.isValueNode}});Object.defineProperty(d,"isWrappingType",{enumerable:!0,get:function(){return b.isWrappingType}});Object.defineProperty(d,"lexicographicSortSchema",{enumerable:!0,get:function(){return H.lexicographicSortSchema}});Object.defineProperty(d,"locatedError",{enumerable:!0,get:function(){return kt.locatedError}});Object.defineProperty(d,"parse",{enumerable:!0,get:function(){return Y.parse}});Object.defineProperty(d,"parseConstValue",{enumerable:!0,get:function(){return Y.parseConstValue}});Object.defineProperty(d,"parseType",{enumerable:!0,get:function(){return Y.parseType}});Object.defineProperty(d,"parseValue",{enumerable:!0,get:function(){return Y.parseValue}});Object.defineProperty(d,"print",{enumerable:!0,get:function(){return Y.print}});Object.defineProperty(d,"printError",{enumerable:!0,get:function(){return kt.printError}});Object.defineProperty(d,"printIntrospectionSchema",{enumerable:!0,get:function(){return H.printIntrospectionSchema}});Object.defineProperty(d,"printLocation",{enumerable:!0,get:function(){return Y.printLocation}});Object.defineProperty(d,"printSchema",{enumerable:!0,get:function(){return H.printSchema}});Object.defineProperty(d,"printSourceLocation",{enumerable:!0,get:function(){return Y.printSourceLocation}});Object.defineProperty(d,"printType",{enumerable:!0,get:function(){return H.printType}});Object.defineProperty(d,"recommendedRules",{enumerable:!0,get:function(){return q.recommendedRules}});Object.defineProperty(d,"resolveObjMapThunk",{enumerable:!0,get:function(){return b.resolveObjMapThunk}});Object.defineProperty(d,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return b.resolveReadonlyArrayThunk}});Object.defineProperty(d,"responsePathAsArray",{enumerable:!0,get:function(){return yr.responsePathAsArray}});Object.defineProperty(d,"separateOperations",{enumerable:!0,get:function(){return H.separateOperations}});Object.defineProperty(d,"specifiedDirectives",{enumerable:!0,get:function(){return b.specifiedDirectives}});Object.defineProperty(d,"specifiedRules",{enumerable:!0,get:function(){return q.specifiedRules}});Object.defineProperty(d,"specifiedScalarTypes",{enumerable:!0,get:function(){return b.specifiedScalarTypes}});Object.defineProperty(d,"stripIgnoredCharacters",{enumerable:!0,get:function(){return H.stripIgnoredCharacters}});Object.defineProperty(d,"subscribe",{enumerable:!0,get:function(){return yr.subscribe}});Object.defineProperty(d,"syntaxError",{enumerable:!0,get:function(){return kt.syntaxError}});Object.defineProperty(d,"typeFromAST",{enumerable:!0,get:function(){return H.typeFromAST}});Object.defineProperty(d,"validate",{enumerable:!0,get:function(){return q.validate}});Object.defineProperty(d,"validateSchema",{enumerable:!0,get:function(){return b.validateSchema}});Object.defineProperty(d,"valueFromAST",{enumerable:!0,get:function(){return H.valueFromAST}});Object.defineProperty(d,"valueFromASTUntyped",{enumerable:!0,get:function(){return H.valueFromASTUntyped}});Object.defineProperty(d,"version",{enumerable:!0,get:function(){return Im.version}});Object.defineProperty(d,"versionInfo",{enumerable:!0,get:function(){return Im.versionInfo}});Object.defineProperty(d,"visit",{enumerable:!0,get:function(){return Y.visit}});Object.defineProperty(d,"visitInParallel",{enumerable:!0,get:function(){return Y.visitInParallel}});Object.defineProperty(d,"visitWithTypeInfo",{enumerable:!0,get:function(){return H.visitWithTypeInfo}});var Im=El(),Lm=md(),b=vd(),Y=gd(),yr=Sd(),q=Pd(),kt=jd(),H=Nm()});var Rm=h(($D,XI)=>{XI.exports={name:"@jackchuka/gql-ingest",version:"1.5.0",description:"A CLI tool for ingesting data from CSV files into a GraphQL API",type:"module",main:"dist/cli.js",bin:{"gql-ingest":"bin/cli.js"},scripts:{build:"node esbuild.config.js","build:types":"tsc --emitDeclarationOnly","build:all":"npm run build && npm run build:types",dev:"ts-node src/cli.ts",test:"jest","test:watch":"jest --watch",prepublishOnly:"npm run build:all"},keywords:["graphql","cli","csv","ingest","api"],author:"jackchuka",license:"MIT",repository:{type:"git",url:"https://github.com/jackchuka/gql-ingest.git"},dependencies:{commander:"^14.0.0","csv-parser":"^3.0.0","graphql-request":"^7.2.0","js-yaml":"^4.1.0"},devDependencies:{"@types/jest":"^30.0.0","@types/js-yaml":"^4.0.9","@types/node":"^24.0.4",esbuild:"^0.25.5",jest:"^30.0.3","ts-jest":"^29.4.0","ts-node":"^10.9.0",typescript:"^5.3.0"},files:["dist/**/*","src/**/*"]}});import{Command as zI}from"commander";import{GraphQLClient as pv}from"graphql-request";import vl from"fs";import cv from"path";function Kc(e){return typeof e>"u"||e===null}function Gm(e){return typeof e=="object"&&e!==null}function Vm(e){return Array.isArray(e)?e:Kc(e)?[]:[e]}function Qm(e,r){var n,t,i,o;if(r)for(o=Object.keys(r),n=0,t=o.length;n<t;n+=1)i=o[n],e[i]=r[i];return e}function Um(e,r){var n="",t;for(t=0;t<r;t+=1)n+=e;return n}function $m(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Km=Kc,Bm=Gm,Ym=Vm,Hm=Um,Jm=$m,Wm=Qm,me={isNothing:Km,isObject:Bm,toArray:Ym,repeat:Hm,isNegativeZero:Jm,extend:Wm};function Bc(e,r){var n="",t=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
179
+
180
+ `+e.mark.snippet),t+" "+n):t}function kn(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=Bc(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}kn.prototype=Object.create(Error.prototype);kn.prototype.constructor=kn;kn.prototype.toString=function(r){return this.name+": "+Bc(this,r)};var De=kn;function go(e,r,n,t,i){var o="",s="",a=Math.floor(i/2)-1;return t-r>a&&(o=" ... ",r=t-a+o.length),n-t>a&&(s=" ...",n=t+a-s.length),{str:o+e.slice(r,n).replace(/\t/g,"\u2192")+s,pos:t-r+o.length}}function bo(e,r){return me.repeat(" ",r-e.length)+e}function Xm(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var n=/\r?\n|\r|\0/g,t=[0],i=[],o,s=-1;o=n.exec(e.buffer);)i.push(o.index),t.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=t.length-2);s<0&&(s=t.length-1);var a="",u,c,l=Math.min(e.line+r.linesAfter,i.length).toString().length,p=r.maxLength-(r.indent+l+3);for(u=1;u<=r.linesBefore&&!(s-u<0);u++)c=go(e.buffer,t[s-u],i[s-u],e.position-(t[s]-t[s-u]),p),a=me.repeat(" ",r.indent)+bo((e.line-u+1).toString(),l)+" | "+c.str+`
181
+ `+a;for(c=go(e.buffer,t[s],i[s],e.position,p),a+=me.repeat(" ",r.indent)+bo((e.line+1).toString(),l)+" | "+c.str+`
182
+ `,a+=me.repeat("-",r.indent+l+3+c.pos)+`^
183
+ `,u=1;u<=r.linesAfter&&!(s+u>=i.length);u++)c=go(e.buffer,t[s+u],i[s+u],e.position-(t[s]-t[s+u]),p),a+=me.repeat(" ",r.indent)+bo((e.line+u+1).toString(),l)+" | "+c.str+`
184
+ `;return a.replace(/\n$/,"")}var zm=Xm,Zm=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],eh=["scalar","sequence","mapping"];function rh(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(t){r[String(t)]=n})}),r}function nh(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(Zm.indexOf(n)===-1)throw new De('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=rh(r.styleAliases||null),eh.indexOf(this.kind)===-1)throw new De('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ee=nh;function Rc(e,r){var n=[];return e[r].forEach(function(t){var i=n.length;n.forEach(function(o,s){o.tag===t.tag&&o.kind===t.kind&&o.multi===t.multi&&(i=s)}),n[i]=t}),n}function th(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function t(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(t);return e}function _o(e){return this.extend(e)}_o.prototype.extend=function(r){var n=[],t=[];if(r instanceof Ee)t.push(r);else if(Array.isArray(r))t=t.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(n=n.concat(r.implicit)),r.explicit&&(t=t.concat(r.explicit));else throw new De("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof Ee))throw new De("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new De("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new De("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(o){if(!(o instanceof Ee))throw new De("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(_o.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(t),i.compiledImplicit=Rc(i,"implicit"),i.compiledExplicit=Rc(i,"explicit"),i.compiledTypeMap=th(i.compiledImplicit,i.compiledExplicit),i};var ih=_o,oh=new Ee("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),sh=new Ee("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),ah=new Ee("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),uh=new ih({explicit:[oh,sh,ah]});function ch(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function lh(){return null}function ph(e){return e===null}var fh=new Ee("tag:yaml.org,2002:null",{kind:"scalar",resolve:ch,construct:lh,predicate:ph,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function dh(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function mh(e){return e==="true"||e==="True"||e==="TRUE"}function hh(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var yh=new Ee("tag:yaml.org,2002:bool",{kind:"scalar",resolve:dh,construct:mh,predicate:hh,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function vh(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Th(e){return 48<=e&&e<=55}function gh(e){return 48<=e&&e<=57}function bh(e){if(e===null)return!1;var r=e.length,n=0,t=!1,i;if(!r)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===r)return!0;if(i=e[++n],i==="b"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;t=!0}return t&&i!=="_"}if(i==="x"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(!vh(e.charCodeAt(n)))return!1;t=!0}return t&&i!=="_"}if(i==="o"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(!Th(e.charCodeAt(n)))return!1;t=!0}return t&&i!=="_"}}if(i==="_")return!1;for(;n<r;n++)if(i=e[n],i!=="_"){if(!gh(e.charCodeAt(n)))return!1;t=!0}return!(!t||i==="_")}function Eh(e){var r=e,n=1,t;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),t=r[0],(t==="-"||t==="+")&&(t==="-"&&(n=-1),r=r.slice(1),t=r[0]),r==="0")return 0;if(t==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function _h(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!me.isNegativeZero(e)}var Oh=new Ee("tag:yaml.org,2002:int",{kind:"scalar",resolve:bh,construct:Eh,predicate:_h,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Nh=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Ih(e){return!(e===null||!Nh.test(e)||e[e.length-1]==="_")}function Lh(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var Sh=/^[-+]?[0-9]+e/;function Dh(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(me.isNegativeZero(e))return"-0.0";return n=e.toString(10),Sh.test(n)?n.replace("e",".e"):n}function Ah(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||me.isNegativeZero(e))}var Rh=new Ee("tag:yaml.org,2002:float",{kind:"scalar",resolve:Ih,construct:Lh,predicate:Ah,represent:Dh,defaultStyle:"lowercase"}),Ph=uh.extend({implicit:[fh,yh,Oh,Rh]}),jh=Ph,Yc=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Hc=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function wh(e){return e===null?!1:Yc.exec(e)!==null||Hc.exec(e)!==null}function xh(e){var r,n,t,i,o,s,a,u=0,c=null,l,p,f;if(r=Yc.exec(e),r===null&&(r=Hc.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],t=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(n,t,i));if(o=+r[4],s=+r[5],a=+r[6],r[7]){for(u=r[7].slice(0,3);u.length<3;)u+="0";u=+u}return r[9]&&(l=+r[10],p=+(r[11]||0),c=(l*60+p)*6e4,r[9]==="-"&&(c=-c)),f=new Date(Date.UTC(n,t,i,o,s,a,u)),c&&f.setTime(f.getTime()-c),f}function Fh(e){return e.toISOString()}var kh=new Ee("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:wh,construct:xh,instanceOf:Date,represent:Fh});function Ch(e){return e==="<<"||e===null}var qh=new Ee("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ch}),So=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
185
+ \r`;function Mh(e){if(e===null)return!1;var r,n,t=0,i=e.length,o=So;for(n=0;n<i;n++)if(r=o.indexOf(e.charAt(n)),!(r>64)){if(r<0)return!1;t+=6}return t%8===0}function Gh(e){var r,n,t=e.replace(/[\r\n=]/g,""),i=t.length,o=So,s=0,a=[];for(r=0;r<i;r++)r%4===0&&r&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(t.charAt(r));return n=i%4*6,n===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):n===18?(a.push(s>>10&255),a.push(s>>2&255)):n===12&&a.push(s>>4&255),new Uint8Array(a)}function Vh(e){var r="",n=0,t,i,o=e.length,s=So;for(t=0;t<o;t++)t%3===0&&t&&(r+=s[n>>18&63],r+=s[n>>12&63],r+=s[n>>6&63],r+=s[n&63]),n=(n<<8)+e[t];return i=o%3,i===0?(r+=s[n>>18&63],r+=s[n>>12&63],r+=s[n>>6&63],r+=s[n&63]):i===2?(r+=s[n>>10&63],r+=s[n>>4&63],r+=s[n<<2&63],r+=s[64]):i===1&&(r+=s[n>>2&63],r+=s[n<<4&63],r+=s[64],r+=s[64]),r}function Qh(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Uh=new Ee("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Mh,construct:Gh,predicate:Qh,represent:Vh}),$h=Object.prototype.hasOwnProperty,Kh=Object.prototype.toString;function Bh(e){if(e===null)return!0;var r=[],n,t,i,o,s,a=e;for(n=0,t=a.length;n<t;n+=1){if(i=a[n],s=!1,Kh.call(i)!=="[object Object]")return!1;for(o in i)if($h.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(r.indexOf(o)===-1)r.push(o);else return!1}return!0}function Yh(e){return e!==null?e:[]}var Hh=new Ee("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Bh,construct:Yh}),Jh=Object.prototype.toString;function Wh(e){if(e===null)return!0;var r,n,t,i,o,s=e;for(o=new Array(s.length),r=0,n=s.length;r<n;r+=1){if(t=s[r],Jh.call(t)!=="[object Object]"||(i=Object.keys(t),i.length!==1))return!1;o[r]=[i[0],t[i[0]]]}return!0}function Xh(e){if(e===null)return[];var r,n,t,i,o,s=e;for(o=new Array(s.length),r=0,n=s.length;r<n;r+=1)t=s[r],i=Object.keys(t),o[r]=[i[0],t[i[0]]];return o}var zh=new Ee("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Wh,construct:Xh}),Zh=Object.prototype.hasOwnProperty;function ey(e){if(e===null)return!0;var r,n=e;for(r in n)if(Zh.call(n,r)&&n[r]!==null)return!1;return!0}function ry(e){return e!==null?e:{}}var ny=new Ee("tag:yaml.org,2002:set",{kind:"mapping",resolve:ey,construct:ry}),Jc=jh.extend({implicit:[kh,qh],explicit:[Uh,Hh,zh,ny]}),Ar=Object.prototype.hasOwnProperty,Mt=1,Wc=2,Xc=3,Gt=4,Eo=1,ty=2,Pc=3,iy=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oy=/[\x85\u2028\u2029]/,sy=/[,\[\]\{\}]/,zc=/^(?:!|!!|![a-z\-]+!)$/i,Zc=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function jc(e){return Object.prototype.toString.call(e)}function ir(e){return e===10||e===13}function Vr(e){return e===9||e===32}function Ae(e){return e===9||e===32||e===10||e===13}function fn(e){return e===44||e===91||e===93||e===123||e===125}function ay(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function uy(e){return e===120?2:e===117?4:e===85?8:0}function cy(e){return 48<=e&&e<=57?e-48:-1}function wc(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
186
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function ly(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var el=new Array(256),rl=new Array(256);for(Gr=0;Gr<256;Gr++)el[Gr]=wc(Gr)?1:0,rl[Gr]=wc(Gr);var Gr;function py(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||Jc,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function nl(e,r){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=zm(n),new De(r,n)}function R(e,r){throw nl(e,r)}function Vt(e,r){e.onWarning&&e.onWarning.call(null,nl(e,r))}var xc={YAML:function(r,n,t){var i,o,s;r.version!==null&&R(r,"duplication of %YAML directive"),t.length!==1&&R(r,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(t[0]),i===null&&R(r,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&R(r,"unacceptable YAML version of the document"),r.version=t[0],r.checkLineBreaks=s<2,s!==1&&s!==2&&Vt(r,"unsupported YAML version of the document")},TAG:function(r,n,t){var i,o;t.length!==2&&R(r,"TAG directive accepts exactly two arguments"),i=t[0],o=t[1],zc.test(i)||R(r,"ill-formed tag handle (first argument) of the TAG directive"),Ar.call(r.tagMap,i)&&R(r,'there is a previously declared suffix for "'+i+'" tag handle'),Zc.test(o)||R(r,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{R(r,"tag prefix is malformed: "+o)}r.tagMap[i]=o}};function Dr(e,r,n,t){var i,o,s,a;if(r<n){if(a=e.input.slice(r,n),t)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||R(e,"expected valid JSON character");else iy.test(a)&&R(e,"the stream contains non-printable characters");e.result+=a}}function Fc(e,r,n,t){var i,o,s,a;for(me.isObject(n)||R(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),s=0,a=i.length;s<a;s+=1)o=i[s],Ar.call(r,o)||(r[o]=n[o],t[o]=!0)}function dn(e,r,n,t,i,o,s,a,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&R(e,"nested arrays are not supported inside keys"),typeof i=="object"&&jc(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&jc(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),t==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,l=o.length;c<l;c+=1)Fc(e,r,o[c],n);else Fc(e,r,o,n);else!e.json&&!Ar.call(n,i)&&Ar.call(r,i)&&(e.line=s||e.line,e.lineStart=a||e.lineStart,e.position=u||e.position,R(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(r,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):r[i]=o,delete n[i];return r}function Do(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):R(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function pe(e,r,n){for(var t=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Vr(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(ir(i))for(Do(e),i=e.input.charCodeAt(e.position),t++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&t!==0&&e.lineIndent<n&&Vt(e,"deficient indentation"),t}function $t(e){var r=e.position,n;return n=e.input.charCodeAt(r),!!((n===45||n===46)&&n===e.input.charCodeAt(r+1)&&n===e.input.charCodeAt(r+2)&&(r+=3,n=e.input.charCodeAt(r),n===0||Ae(n)))}function Ao(e,r){r===1?e.result+=" ":r>1&&(e.result+=me.repeat(`
187
+ `,r-1))}function fy(e,r,n){var t,i,o,s,a,u,c,l,p=e.kind,f=e.result,m;if(m=e.input.charCodeAt(e.position),Ae(m)||fn(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),Ae(i)||n&&fn(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,a=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),Ae(i)||n&&fn(i))break}else if(m===35){if(t=e.input.charCodeAt(e.position-1),Ae(t))break}else{if(e.position===e.lineStart&&$t(e)||n&&fn(m))break;if(ir(m))if(u=e.line,c=e.lineStart,l=e.lineIndent,pe(e,!1,-1),e.lineIndent>=r){a=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=u,e.lineStart=c,e.lineIndent=l;break}}a&&(Dr(e,o,s,!1),Ao(e,e.line-u),o=s=e.position,a=!1),Vr(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position)}return Dr(e,o,s,!1),e.result?!0:(e.kind=p,e.result=f,!1)}function dy(e,r){var n,t,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,t=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Dr(e,t,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)t=e.position,e.position++,i=e.position;else return!0;else ir(n)?(Dr(e,t,i,!0),Ao(e,pe(e,!1,r)),t=i=e.position):e.position===e.lineStart&&$t(e)?R(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);R(e,"unexpected end of the stream within a single quoted scalar")}function my(e,r){var n,t,i,o,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=t=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Dr(e,n,e.position,!0),e.position++,!0;if(a===92){if(Dr(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),ir(a))pe(e,!1,r);else if(a<256&&el[a])e.result+=rl[a],e.position++;else if((s=uy(a))>0){for(i=s,o=0;i>0;i--)a=e.input.charCodeAt(++e.position),(s=ay(a))>=0?o=(o<<4)+s:R(e,"expected hexadecimal character");e.result+=ly(o),e.position++}else R(e,"unknown escape sequence");n=t=e.position}else ir(a)?(Dr(e,n,t,!0),Ao(e,pe(e,!1,r)),n=t=e.position):e.position===e.lineStart&&$t(e)?R(e,"unexpected end of the document within a double quoted scalar"):(e.position++,t=e.position)}R(e,"unexpected end of the stream within a double quoted scalar")}function hy(e,r){var n=!0,t,i,o,s=e.tag,a,u=e.anchor,c,l,p,f,m,y=Object.create(null),O,P,C,A;if(A=e.input.charCodeAt(e.position),A===91)l=93,m=!1,a=[];else if(A===123)l=125,m=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),A=e.input.charCodeAt(++e.position);A!==0;){if(pe(e,!0,r),A=e.input.charCodeAt(e.position),A===l)return e.position++,e.tag=s,e.anchor=u,e.kind=m?"mapping":"sequence",e.result=a,!0;n?A===44&&R(e,"expected the node content, but found ','"):R(e,"missed comma between flow collection entries"),P=O=C=null,p=f=!1,A===63&&(c=e.input.charCodeAt(e.position+1),Ae(c)&&(p=f=!0,e.position++,pe(e,!0,r))),t=e.line,i=e.lineStart,o=e.position,mn(e,r,Mt,!1,!0),P=e.tag,O=e.result,pe(e,!0,r),A=e.input.charCodeAt(e.position),(f||e.line===t)&&A===58&&(p=!0,A=e.input.charCodeAt(++e.position),pe(e,!0,r),mn(e,r,Mt,!1,!0),C=e.result),m?dn(e,a,y,P,O,C,t,i,o):p?a.push(dn(e,null,y,P,O,C,t,i,o)):a.push(O),pe(e,!0,r),A=e.input.charCodeAt(e.position),A===44?(n=!0,A=e.input.charCodeAt(++e.position)):n=!1}R(e,"unexpected end of the stream within a flow collection")}function yy(e,r){var n,t,i=Eo,o=!1,s=!1,a=r,u=0,c=!1,l,p;if(p=e.input.charCodeAt(e.position),p===124)t=!1;else if(p===62)t=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)Eo===i?i=p===43?Pc:ty:R(e,"repeat of a chomping mode identifier");else if((l=cy(p))>=0)l===0?R(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?R(e,"repeat of an indentation width identifier"):(a=r+l-1,s=!0);else break;if(Vr(p)){do p=e.input.charCodeAt(++e.position);while(Vr(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!ir(p)&&p!==0)}for(;p!==0;){for(Do(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),ir(p)){u++;continue}if(e.lineIndent<a){i===Pc?e.result+=me.repeat(`
188
+ `,o?1+u:u):i===Eo&&o&&(e.result+=`
189
+ `);break}for(t?Vr(p)?(c=!0,e.result+=me.repeat(`
190
+ `,o?1+u:u)):c?(c=!1,e.result+=me.repeat(`
191
+ `,u+1)):u===0?o&&(e.result+=" "):e.result+=me.repeat(`
192
+ `,u):e.result+=me.repeat(`
193
+ `,o?1+u:u),o=!0,s=!0,u=0,n=e.position;!ir(p)&&p!==0;)p=e.input.charCodeAt(++e.position);Dr(e,n,e.position,!1)}return!0}function kc(e,r){var n,t=e.tag,i=e.anchor,o=[],s,a=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,R(e,"tab characters must not be used in indentation")),!(u!==45||(s=e.input.charCodeAt(e.position+1),!Ae(s))));){if(a=!0,e.position++,pe(e,!0,-1)&&e.lineIndent<=r){o.push(null),u=e.input.charCodeAt(e.position);continue}if(n=e.line,mn(e,r,Xc,!1,!0),o.push(e.result),pe(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>r)&&u!==0)R(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return a?(e.tag=t,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function vy(e,r,n){var t,i,o,s,a,u,c=e.tag,l=e.anchor,p={},f=Object.create(null),m=null,y=null,O=null,P=!1,C=!1,A;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),A=e.input.charCodeAt(e.position);A!==0;){if(!P&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,R(e,"tab characters must not be used in indentation")),t=e.input.charCodeAt(e.position+1),o=e.line,(A===63||A===58)&&Ae(t))A===63?(P&&(dn(e,p,f,m,y,null,s,a,u),m=y=O=null),C=!0,P=!0,i=!0):P?(P=!1,i=!0):R(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,A=t;else{if(s=e.line,a=e.lineStart,u=e.position,!mn(e,n,Wc,!1,!0))break;if(e.line===o){for(A=e.input.charCodeAt(e.position);Vr(A);)A=e.input.charCodeAt(++e.position);if(A===58)A=e.input.charCodeAt(++e.position),Ae(A)||R(e,"a whitespace character is expected after the key-value separator within a block mapping"),P&&(dn(e,p,f,m,y,null,s,a,u),m=y=O=null),C=!0,P=!1,i=!1,m=e.tag,y=e.result;else if(C)R(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=l,!0}else if(C)R(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=l,!0}if((e.line===o||e.lineIndent>r)&&(P&&(s=e.line,a=e.lineStart,u=e.position),mn(e,r,Gt,!0,i)&&(P?y=e.result:O=e.result),P||(dn(e,p,f,m,y,O,s,a,u),m=y=O=null),pe(e,!0,-1),A=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>r)&&A!==0)R(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return P&&dn(e,p,f,m,y,null,s,a,u),C&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=p),C}function Ty(e){var r,n=!1,t=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&R(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(t=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",r=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(r,e.position),s=e.input.charCodeAt(++e.position)):R(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Ae(s);)s===33&&(t?R(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),zc.test(i)||R(e,"named tag handle cannot contain such characters"),t=!0,r=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(r,e.position),sy.test(o)&&R(e,"tag suffix cannot contain flow indicator characters")}o&&!Zc.test(o)&&R(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{R(e,"tag name is malformed: "+o)}return n?e.tag=o:Ar.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:R(e,'undeclared tag handle "'+i+'"'),!0}function gy(e){var r,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&R(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!Ae(n)&&!fn(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&R(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function by(e){var r,n,t;if(t=e.input.charCodeAt(e.position),t!==42)return!1;for(t=e.input.charCodeAt(++e.position),r=e.position;t!==0&&!Ae(t)&&!fn(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&R(e,"name of an alias node must contain at least one character"),n=e.input.slice(r,e.position),Ar.call(e.anchorMap,n)||R(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],pe(e,!0,-1),!0}function mn(e,r,n,t,i){var o,s,a,u=1,c=!1,l=!1,p,f,m,y,O,P;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=Gt===n||Xc===n,t&&pe(e,!0,-1)&&(c=!0,e.lineIndent>r?u=1:e.lineIndent===r?u=0:e.lineIndent<r&&(u=-1)),u===1)for(;Ty(e)||gy(e);)pe(e,!0,-1)?(c=!0,a=o,e.lineIndent>r?u=1:e.lineIndent===r?u=0:e.lineIndent<r&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||Gt===n)&&(Mt===n||Wc===n?O=r:O=r+1,P=e.position-e.lineStart,u===1?a&&(kc(e,P)||vy(e,P,O))||hy(e,O)?l=!0:(s&&yy(e,O)||dy(e,O)||my(e,O)?l=!0:by(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&R(e,"alias node should not have any properties")):fy(e,O,Mt===n)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(l=a&&kc(e,P))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&R(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,f=e.implicitTypes.length;p<f;p+=1)if(y=e.implicitTypes[p],y.resolve(e.result)){e.result=y.construct(e.result),e.tag=y.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Ar.call(e.typeMap[e.kind||"fallback"],e.tag))y=e.typeMap[e.kind||"fallback"][e.tag];else for(y=null,m=e.typeMap.multi[e.kind||"fallback"],p=0,f=m.length;p<f;p+=1)if(e.tag.slice(0,m[p].tag.length)===m[p].tag){y=m[p];break}y||R(e,"unknown tag !<"+e.tag+">"),e.result!==null&&y.kind!==e.kind&&R(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+y.kind+'", not "'+e.kind+'"'),y.resolve(e.result,e.tag)?(e.result=y.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):R(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function Ey(e){var r=e.position,n,t,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(pe(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!Ae(s);)s=e.input.charCodeAt(++e.position);for(t=e.input.slice(n,e.position),i=[],t.length<1&&R(e,"directive name must not be less than one character in length");s!==0;){for(;Vr(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!ir(s));break}if(ir(s))break;for(n=e.position;s!==0&&!Ae(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&Do(e),Ar.call(xc,t)?xc[t](e,t,i):Vt(e,'unknown document directive "'+t+'"')}if(pe(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,pe(e,!0,-1)):o&&R(e,"directives end mark is expected"),mn(e,e.lineIndent-1,Gt,!1,!0),pe(e,!0,-1),e.checkLineBreaks&&oy.test(e.input.slice(r,e.position))&&Vt(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&$t(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,pe(e,!0,-1));return}if(e.position<e.length-1)R(e,"end of the stream or a document separator is expected");else return}function tl(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
194
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new py(e,r),t=e.indexOf("\0");for(t!==-1&&(n.position=t,R(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Ey(n);return n.documents}function _y(e,r,n){r!==null&&typeof r=="object"&&typeof n>"u"&&(n=r,r=null);var t=tl(e,n);if(typeof r!="function")return t;for(var i=0,o=t.length;i<o;i+=1)r(t[i])}function Oy(e,r){var n=tl(e,r);if(n.length!==0){if(n.length===1)return n[0];throw new De("expected a single document in the stream, but found more")}}var Ny=_y,Iy=Oy,il={loadAll:Ny,load:Iy},ol=Object.prototype.toString,sl=Object.prototype.hasOwnProperty,Ro=65279,Ly=9,Cn=10,Sy=13,Dy=32,Ay=33,Ry=34,Oo=35,Py=37,jy=38,wy=39,xy=42,al=44,Fy=45,Qt=58,ky=61,Cy=62,qy=63,My=64,ul=91,cl=93,Gy=96,ll=123,Vy=124,pl=125,_e={};_e[0]="\\0";_e[7]="\\a";_e[8]="\\b";_e[9]="\\t";_e[10]="\\n";_e[11]="\\v";_e[12]="\\f";_e[13]="\\r";_e[27]="\\e";_e[34]='\\"';_e[92]="\\\\";_e[133]="\\N";_e[160]="\\_";_e[8232]="\\L";_e[8233]="\\P";var Qy=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Uy=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function $y(e,r){var n,t,i,o,s,a,u;if(r===null)return{};for(n={},t=Object.keys(r),i=0,o=t.length;i<o;i+=1)s=t[i],a=String(r[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),u=e.compiledTypeMap.fallback[s],u&&sl.call(u.styleAliases,a)&&(a=u.styleAliases[a]),n[s]=a;return n}function Ky(e){var r,n,t;if(r=e.toString(16).toUpperCase(),e<=255)n="x",t=2;else if(e<=65535)n="u",t=4;else if(e<=4294967295)n="U",t=8;else throw new De("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+me.repeat("0",t-r.length)+r}var By=1,qn=2;function Yy(e){this.schema=e.schema||Jc,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=me.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=$y(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?qn:By,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Cc(e,r){for(var n=me.repeat(" ",r),t=0,i=-1,o="",s,a=e.length;t<a;)i=e.indexOf(`
195
+ `,t),i===-1?(s=e.slice(t),t=a):(s=e.slice(t,i+1),t=i+1),s.length&&s!==`
196
+ `&&(o+=n),o+=s;return o}function No(e,r){return`
197
+ `+me.repeat(" ",e.indent*r)}function Hy(e,r){var n,t,i;for(n=0,t=e.implicitTypes.length;n<t;n+=1)if(i=e.implicitTypes[n],i.resolve(r))return!0;return!1}function Ut(e){return e===Dy||e===Ly}function Mn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ro||65536<=e&&e<=1114111}function qc(e){return Mn(e)&&e!==Ro&&e!==Sy&&e!==Cn}function Mc(e,r,n){var t=qc(e),i=t&&!Ut(e);return(n?t:t&&e!==al&&e!==ul&&e!==cl&&e!==ll&&e!==pl)&&e!==Oo&&!(r===Qt&&!i)||qc(r)&&!Ut(r)&&e===Oo||r===Qt&&i}function Jy(e){return Mn(e)&&e!==Ro&&!Ut(e)&&e!==Fy&&e!==qy&&e!==Qt&&e!==al&&e!==ul&&e!==cl&&e!==ll&&e!==pl&&e!==Oo&&e!==jy&&e!==xy&&e!==Ay&&e!==Vy&&e!==ky&&e!==Cy&&e!==wy&&e!==Ry&&e!==Py&&e!==My&&e!==Gy}function Wy(e){return!Ut(e)&&e!==Qt}function Fn(e,r){var n=e.charCodeAt(r),t;return n>=55296&&n<=56319&&r+1<e.length&&(t=e.charCodeAt(r+1),t>=56320&&t<=57343)?(n-55296)*1024+t-56320+65536:n}function fl(e){var r=/^\n* /;return r.test(e)}var dl=1,Io=2,ml=3,hl=4,pn=5;function Xy(e,r,n,t,i,o,s,a){var u,c=0,l=null,p=!1,f=!1,m=t!==-1,y=-1,O=Jy(Fn(e,0))&&Wy(Fn(e,e.length-1));if(r||s)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Fn(e,u),!Mn(c))return pn;O=O&&Mc(c,l,a),l=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Fn(e,u),c===Cn)p=!0,m&&(f=f||u-y-1>t&&e[y+1]!==" ",y=u);else if(!Mn(c))return pn;O=O&&Mc(c,l,a),l=c}f=f||m&&u-y-1>t&&e[y+1]!==" "}return!p&&!f?O&&!s&&!i(e)?dl:o===qn?pn:Io:n>9&&fl(e)?pn:s?o===qn?pn:Io:f?hl:ml}function zy(e,r,n,t,i){e.dump=function(){if(r.length===0)return e.quotingType===qn?'""':"''";if(!e.noCompatMode&&(Qy.indexOf(r)!==-1||Uy.test(r)))return e.quotingType===qn?'"'+r+'"':"'"+r+"'";var o=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),a=t||e.flowLevel>-1&&n>=e.flowLevel;function u(c){return Hy(e,c)}switch(Xy(r,a,e.indent,s,u,e.quotingType,e.forceQuotes&&!t,i)){case dl:return r;case Io:return"'"+r.replace(/'/g,"''")+"'";case ml:return"|"+Gc(r,e.indent)+Vc(Cc(r,o));case hl:return">"+Gc(r,e.indent)+Vc(Cc(Zy(r,s),o));case pn:return'"'+ev(r)+'"';default:throw new De("impossible error: invalid scalar style")}}()}function Gc(e,r){var n=fl(e)?String(r):"",t=e[e.length-1]===`
198
+ `,i=t&&(e[e.length-2]===`
23
199
  `||e===`
24
- `),l=i?"+":o?"":"-";return n+l+`
25
- `}function Re(e){return e[e.length-1]===`
26
- `?e.slice(0,-1):e}function _i(e,r){for(var n=/(\n+)([^\n]*)/g,o=function(){var u=e.indexOf(`
27
- `);return u=u!==-1?u:e.length,n.lastIndex=u,Oe(e.slice(0,u),r)}(),i=e[0]===`
28
- `||e[0]===" ",l,t;t=n.exec(e);){var c=t[1],s=t[2];l=s[0]===" ",o+=c+(!i&&!l&&s!==""?`
29
- `:"")+Oe(s,r),i=l}return o}function Oe(e,r){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,o,i=0,l,t=0,c=0,s="";o=n.exec(e);)c=o.index,c-i>r&&(l=t>i?t:c,s+=`
30
- `+e.slice(i,l),i=l+1),t=c;return s+=`
31
- `,e.length-i>r&&t>i?s+=e.slice(i,t)+`
32
- `+e.slice(t+1):s+=e.slice(i),s.slice(1)}function Ti(e){for(var r="",n=0,o,i=0;i<e.length;n>=65536?i+=2:i++)n=$(e,i),o=b[n],!o&&H(n)?(r+=e[i],n>=65536&&(r+=e[i+1])):r+=o||vi(n);return r}function Ri(e,r,n){var o="",i=e.tag,l,t,c;for(l=0,t=n.length;l<t;l+=1)c=n[l],e.replacer&&(c=e.replacer.call(n,String(l),c)),(_(e,r,c,!1,!1)||typeof c>"u"&&_(e,r,null,!1,!1))&&(o!==""&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=i,e.dump="["+o+"]"}function Le(e,r,n,o){var i="",l=e.tag,t,c,s;for(t=0,c=n.length;t<c;t+=1)s=n[t],e.replacer&&(s=e.replacer.call(n,String(t),s)),(_(e,r+1,s,!0,!0,!1,!0)||typeof s>"u"&&_(e,r+1,null,!0,!0,!1,!0))&&((!o||i!=="")&&(i+=te(e,r)),e.dump&&B===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=l,e.dump=i||"[]"}function Oi(e,r,n){var o="",i=e.tag,l=Object.keys(n),t,c,s,u,f;for(t=0,c=l.length;t<c;t+=1)f="",o!==""&&(f+=", "),e.condenseFlow&&(f+='"'),s=l[t],u=n[s],e.replacer&&(u=e.replacer.call(n,s,u)),_(e,r,s,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),_(e,r,u,!1,!1)&&(f+=e.dump,o+=f));e.tag=i,e.dump="{"+o+"}"}function Li(e,r,n,o){var i="",l=e.tag,t=Object.keys(n),c,s,u,f,a,h;if(e.sortKeys===!0)t.sort();else if(typeof e.sortKeys=="function")t.sort(e.sortKeys);else if(e.sortKeys)throw new E("sortKeys must be a boolean or a function");for(c=0,s=t.length;c<s;c+=1)h="",(!o||i!=="")&&(h+=te(e,r)),u=t[c],f=n[u],e.replacer&&(f=e.replacer.call(n,u,f)),_(e,r+1,u,!0,!0,!0)&&(a=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,a&&(e.dump&&B===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,a&&(h+=te(e,r)),_(e,r+1,f,!0,a)&&(e.dump&&B===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=l,e.dump=i||"{}"}function De(e,r,n){var o,i,l,t,c,s;for(i=n?e.explicitTypes:e.implicitTypes,l=0,t=i.length;l<t;l+=1)if(c=i[l],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof r=="object"&&r instanceof c.instanceOf)&&(!c.predicate||c.predicate(r))){if(n?c.multi&&c.representName?e.tag=c.representName(r):e.tag=c.tag:e.tag="?",c.represent){if(s=e.styleMap[c.tag]||c.defaultStyle,Ke.call(c.represent)==="[object Function]")o=c.represent(r,s);else if(Qe.call(c.represent,s))o=c.represent[s](r,s);else throw new E("!<"+c.tag+'> tag resolver accepts not "'+s+'" style');e.dump=o}return!0}return!1}function _(e,r,n,o,i,l,t){e.tag=null,e.dump=n,De(e,n,!1)||De(e,n,!0);var c=Ke.call(e.dump),s=o,u;o&&(o=e.flowLevel<0||e.flowLevel>r);var f=c==="[object Object]"||c==="[object Array]",a,h;if(f&&(a=e.duplicates.indexOf(n),h=a!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&r>0)&&(i=!1),h&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(f&&h&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),c==="[object Object]")o&&Object.keys(e.dump).length!==0?(Li(e,r,e.dump,i),h&&(e.dump="&ref_"+a+e.dump)):(Oi(e,r,e.dump),h&&(e.dump="&ref_"+a+" "+e.dump));else if(c==="[object Array]")o&&e.dump.length!==0?(e.noArrayIndent&&!t&&r>0?Le(e,r-1,e.dump,i):Le(e,r,e.dump,i),h&&(e.dump="&ref_"+a+e.dump)):(Ri(e,r,e.dump),h&&(e.dump="&ref_"+a+" "+e.dump));else if(c==="[object String]")e.tag!=="?"&&Fi(e,e.dump,r,l,s);else{if(c==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new E("unacceptable kind of an object to dump "+c)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function Di(e,r){var n=[],o=[],i,l;for(ce(e,n,o),i=0,l=o.length;i<l;i+=1)r.duplicates.push(n[o[i]]);r.usedDuplicates=new Array(l)}function ce(e,r,n){var o,i,l;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(r.push(e),Array.isArray(e))for(i=0,l=e.length;i<l;i+=1)ce(e[i],r,n);else for(o=Object.keys(e),i=0,l=o.length;i<l;i+=1)ce(e[o[i]],r,n)}function ki(e,r){r=r||{};var n=new Ci(r);n.noRefs||Di(e,n);var o=e;return n.replacer&&(o=n.replacer.call({"":o},"",o)),_(n,0,o,!0,!0)?n.dump+`
33
- `:""}var Ii=ki,Pi={dump:Ii};function pe(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var or=We.load,Qi=We.loadAll,Vi=Pi.dump;var Xi=pe("safeLoad","load"),Zi=pe("safeLoadAll","loadAll"),Ji=pe("safeDump","dump");var X={maxAttempts:3,baseDelay:1e3,maxDelay:3e4,exponentialBackoff:!0,retryableStatusCodes:[408,429,500,502,503,504]},cr={concurrency:1,entityConcurrency:1,preserveRowOrder:!0},lr={retry:X,parallelProcessing:cr,entityConfig:{},entityDependencies:{}};function sr(e){let r=Ni.join(e,"config.yaml");try{if(!tr.existsSync(r))return console.log("No config.yaml found, using default sequential processing"),lr;let n=tr.readFileSync(r,"utf8"),o=or(n);return ji(o)}catch(n){return console.warn(`Warning: Failed to parse config.yaml: ${n}. Using defaults.`),lr}}function ji(e){return{retry:{...X,...e.retry||{}},parallelProcessing:{...cr,...e.parallelProcessing||{}},entityConfig:e.entityConfig||{},entityDependencies:e.entityDependencies||{}}}function he(e,r){let n=r.entityConfig[e]||{},o={...r.parallelProcessing,...n};return o.preserveRowOrder&&o.concurrency>1&&(console.warn(`Entity '${e}': preserveRowOrder=true forces concurrency=1 (was ${o.concurrency})`),o.concurrency=1),o}function de(e,r){let n=r.entityConfig[e]?.retry||{};return{...r.retry,...n}}var Z=class{constructor(r,n,o,i=!1){this.client=new $i(r,{headers:n||{}}),this.metrics=o,this.verbose=i}async executeMutation(r,n,o){let i=o||X,l,t=Date.now();for(let c=0;c<i.maxAttempts;c++){let s=Date.now();try{let u=await this.client.request(r,n);if(this.metrics){let f=Date.now()-s;this.metrics.recordRequestDuration(f),c>0&&this.metrics.recordRetrySuccess(c)}if(this.verbose){let f=Date.now()-t,a=c>0?` (succeeded on attempt ${c+1})`:"";console.log(`\u2713 GraphQL request completed in ${f}ms${a}:`,u)}return u}catch(u){l=u;let f=Date.now()-s;if(this.metrics&&this.metrics.recordRequestDuration(f),c===i.maxAttempts-1){this.metrics&&c>0&&this.metrics.recordRetryFailure(c);break}if(!this.isRetryableError(u,i))throw this.verbose?console.error(`\u2717 GraphQL request failed with non-retryable error in ${f}ms:`,u):console.error("GraphQL mutation failed (non-retryable):",u),u;let a=this.calculateDelay(c,i);this.verbose&&console.log(`\u23F3 GraphQL request failed (attempt ${c+1}/${i.maxAttempts}), retrying in ${a}ms...`),await this.sleep(a)}}if(this.verbose){let c=Date.now()-t;console.error(`\u2717 GraphQL request failed after ${i.maxAttempts} attempts in ${c}ms:`,l)}else console.error(`GraphQL mutation failed after ${i.maxAttempts} attempts:`,l);throw l}isRetryableError(r,n){if(!r.response)return!0;let o=r.response.status;return n.retryableStatusCodes.includes(o)}calculateDelay(r,n){if(!n.exponentialBackoff)return n.baseDelay;let o=n.baseDelay*Math.pow(2,r),i=Math.min(o,n.maxDelay),l=i*.2*(Math.random()-.5);return Math.max(0,i+l)}sleep(r){return new Promise(n=>setTimeout(n,r))}setHeaders(r){this.client.setHeaders(r)}};import me from"fs";import O from"path";import qi from"fs";import Bi from"csv-parser";async function ur(e){return new Promise((r,n)=>{let o=[];qi.createReadStream(e).pipe(Bi()).on("data",i=>o.push(i)).on("end",()=>r(o)).on("error",i=>n(i))})}var N=class{constructor(){this.metrics={totalEntities:0,totalSuccesses:0,totalFailures:0,entityMetrics:new Map,requestDurations:[],retryAttempts:0,retrySuccesses:0,retryFailures:0,startTime:Date.now()}}startEntityProcessing(r){this.metrics.entityMetrics.has(r)||this.metrics.entityMetrics.set(r,{entityName:r,successCount:0,failureCount:0,startTime:Date.now()})}recordSuccess(r){let n=this.metrics.entityMetrics.get(r);n&&(n.successCount++,this.metrics.totalSuccesses++,this.metrics.totalEntities++)}recordFailure(r){let n=this.metrics.entityMetrics.get(r);n&&(n.failureCount++,this.metrics.totalFailures++,this.metrics.totalEntities++)}finishEntityProcessing(r){let n=this.metrics.entityMetrics.get(r);n&&(n.endTime=Date.now())}finishProcessing(){return this.metrics.endTime=Date.now(),{...this.metrics}}getEntityMetrics(r){return this.metrics.entityMetrics.get(r)}getTotalProcessed(){return this.metrics.totalEntities}getSuccessRate(){return this.metrics.totalEntities===0?0:this.metrics.totalSuccesses/this.metrics.totalEntities*100}recordRequestDuration(r){this.metrics.requestDurations.push(r)}recordRetrySuccess(r){this.metrics.retryAttempts+=r,this.metrics.retrySuccesses++}recordRetryFailure(r){this.metrics.retryAttempts+=r,this.metrics.retryFailures++}getAverageRequestDuration(){return this.metrics.requestDurations.length===0?0:this.metrics.requestDurations.reduce((n,o)=>n+o,0)/this.metrics.requestDurations.length}getDurationMs(){return(this.metrics.endTime||Date.now())-this.metrics.startTime}generateSummary(){let r=this.getDurationMs(),n=this.getSuccessRate(),o=this.getAverageRequestDuration(),i=`
200
+ `),o=i?"+":t?"":"-";return n+o+`
201
+ `}function Vc(e){return e[e.length-1]===`
202
+ `?e.slice(0,-1):e}function Zy(e,r){for(var n=/(\n+)([^\n]*)/g,t=function(){var c=e.indexOf(`
203
+ `);return c=c!==-1?c:e.length,n.lastIndex=c,Qc(e.slice(0,c),r)}(),i=e[0]===`
204
+ `||e[0]===" ",o,s;s=n.exec(e);){var a=s[1],u=s[2];o=u[0]===" ",t+=a+(!i&&!o&&u!==""?`
205
+ `:"")+Qc(u,r),i=o}return t}function Qc(e,r){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,t,i=0,o,s=0,a=0,u="";t=n.exec(e);)a=t.index,a-i>r&&(o=s>i?s:a,u+=`
206
+ `+e.slice(i,o),i=o+1),s=a;return u+=`
207
+ `,e.length-i>r&&s>i?u+=e.slice(i,s)+`
208
+ `+e.slice(s+1):u+=e.slice(i),u.slice(1)}function ev(e){for(var r="",n=0,t,i=0;i<e.length;n>=65536?i+=2:i++)n=Fn(e,i),t=_e[n],!t&&Mn(n)?(r+=e[i],n>=65536&&(r+=e[i+1])):r+=t||Ky(n);return r}function rv(e,r,n){var t="",i=e.tag,o,s,a;for(o=0,s=n.length;o<s;o+=1)a=n[o],e.replacer&&(a=e.replacer.call(n,String(o),a)),(Tr(e,r,a,!1,!1)||typeof a>"u"&&Tr(e,r,null,!1,!1))&&(t!==""&&(t+=","+(e.condenseFlow?"":" ")),t+=e.dump);e.tag=i,e.dump="["+t+"]"}function Uc(e,r,n,t){var i="",o=e.tag,s,a,u;for(s=0,a=n.length;s<a;s+=1)u=n[s],e.replacer&&(u=e.replacer.call(n,String(s),u)),(Tr(e,r+1,u,!0,!0,!1,!0)||typeof u>"u"&&Tr(e,r+1,null,!0,!0,!1,!0))&&((!t||i!=="")&&(i+=No(e,r)),e.dump&&Cn===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function nv(e,r,n){var t="",i=e.tag,o=Object.keys(n),s,a,u,c,l;for(s=0,a=o.length;s<a;s+=1)l="",t!==""&&(l+=", "),e.condenseFlow&&(l+='"'),u=o[s],c=n[u],e.replacer&&(c=e.replacer.call(n,u,c)),Tr(e,r,u,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Tr(e,r,c,!1,!1)&&(l+=e.dump,t+=l));e.tag=i,e.dump="{"+t+"}"}function tv(e,r,n,t){var i="",o=e.tag,s=Object.keys(n),a,u,c,l,p,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new De("sortKeys must be a boolean or a function");for(a=0,u=s.length;a<u;a+=1)f="",(!t||i!=="")&&(f+=No(e,r)),c=s[a],l=n[c],e.replacer&&(l=e.replacer.call(n,c,l)),Tr(e,r+1,c,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&Cn===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,p&&(f+=No(e,r)),Tr(e,r+1,l,!0,p)&&(e.dump&&Cn===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,i+=f));e.tag=o,e.dump=i||"{}"}function $c(e,r,n){var t,i,o,s,a,u;for(i=n?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof r=="object"&&r instanceof a.instanceOf)&&(!a.predicate||a.predicate(r))){if(n?a.multi&&a.representName?e.tag=a.representName(r):e.tag=a.tag:e.tag="?",a.represent){if(u=e.styleMap[a.tag]||a.defaultStyle,ol.call(a.represent)==="[object Function]")t=a.represent(r,u);else if(sl.call(a.represent,u))t=a.represent[u](r,u);else throw new De("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');e.dump=t}return!0}return!1}function Tr(e,r,n,t,i,o,s){e.tag=null,e.dump=n,$c(e,n,!1)||$c(e,n,!0);var a=ol.call(e.dump),u=t,c;t&&(t=e.flowLevel<0||e.flowLevel>r);var l=a==="[object Object]"||a==="[object Array]",p,f;if(l&&(p=e.duplicates.indexOf(n),f=p!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&r>0)&&(i=!1),f&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(l&&f&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),a==="[object Object]")t&&Object.keys(e.dump).length!==0?(tv(e,r,e.dump,i),f&&(e.dump="&ref_"+p+e.dump)):(nv(e,r,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else if(a==="[object Array]")t&&e.dump.length!==0?(e.noArrayIndent&&!s&&r>0?Uc(e,r-1,e.dump,i):Uc(e,r,e.dump,i),f&&(e.dump="&ref_"+p+e.dump)):(rv(e,r,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&zy(e,e.dump,r,o,u);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new De("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function iv(e,r){var n=[],t=[],i,o;for(Lo(e,n,t),i=0,o=t.length;i<o;i+=1)r.duplicates.push(n[t[i]]);r.usedDuplicates=new Array(o)}function Lo(e,r,n){var t,i,o;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(r.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)Lo(e[i],r,n);else for(t=Object.keys(e),i=0,o=t.length;i<o;i+=1)Lo(e[t[i]],r,n)}function ov(e,r){r=r||{};var n=new Yy(r);n.noRefs||iv(e,n);var t=e;return n.replacer&&(t=n.replacer.call({"":t},"",t)),Tr(n,0,t,!0,!0)?n.dump+`
209
+ `:""}var sv=ov,av={dump:sv};function Po(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var yl=il.load,tL=il.loadAll,iL=av.dump;var oL=Po("safeLoad","load"),sL=Po("safeLoadAll","loadAll"),aL=Po("safeDump","dump");var Kt={maxAttempts:3,baseDelay:1e3,maxDelay:3e4,exponentialBackoff:!0,retryableStatusCodes:[408,429,500,502,503,504]},gl={concurrency:1,entityConcurrency:1,preserveRowOrder:!0},Tl={retry:Kt,parallelProcessing:gl,entityConfig:{},entityDependencies:{}};function bl(e){let r=cv.join(e,"config.yaml");try{if(!vl.existsSync(r))return console.log("No config.yaml found, using default sequential processing"),Tl;let n=vl.readFileSync(r,"utf8"),t=yl(n);return lv(t)}catch(n){return console.warn(`Warning: Failed to parse config.yaml: ${n}. Using defaults.`),Tl}}function lv(e){return{retry:{...Kt,...e.retry||{}},parallelProcessing:{...gl,...e.parallelProcessing||{}},entityConfig:e.entityConfig||{},entityDependencies:e.entityDependencies||{}}}function jo(e,r){let n=r.entityConfig[e]||{},t={...r.parallelProcessing,...n};return t.preserveRowOrder&&t.concurrency>1&&(console.warn(`Entity '${e}': preserveRowOrder=true forces concurrency=1 (was ${t.concurrency})`),t.concurrency=1),t}function wo(e,r){let n=r.entityConfig[e]?.retry||{};return{...r.retry,...n}}var Bt=class{constructor(r,n,t,i=!1){this.client=new pv(r,{headers:n||{}}),this.metrics=t,this.verbose=i}async executeMutation(r,n,t){let i=t||Kt,o,s=Date.now();for(let a=0;a<i.maxAttempts;a++){let u=Date.now();try{let c=await this.client.request(r,n);if(this.metrics){let l=Date.now()-u;this.metrics.recordRequestDuration(l),a>0&&this.metrics.recordRetrySuccess(a)}if(this.verbose){let l=Date.now()-s,p=a>0?` (succeeded on attempt ${a+1})`:"";console.log(`\u2713 GraphQL request completed in ${l}ms${p}:`,c)}return c}catch(c){o=c;let l=Date.now()-u;if(this.metrics&&this.metrics.recordRequestDuration(l),a===i.maxAttempts-1){this.metrics&&a>0&&this.metrics.recordRetryFailure(a);break}if(!this.isRetryableError(c,i))throw this.verbose?console.error(`\u2717 GraphQL request failed with non-retryable error in ${l}ms:`,c):console.error("GraphQL mutation failed (non-retryable):",c),c;let p=this.calculateDelay(a,i);this.verbose&&console.log(`\u23F3 GraphQL request failed (attempt ${a+1}/${i.maxAttempts}), retrying in ${p}ms...`),await this.sleep(p)}}if(this.verbose){let a=Date.now()-s;console.error(`\u2717 GraphQL request failed after ${i.maxAttempts} attempts in ${a}ms:`,o)}else console.error(`GraphQL mutation failed after ${i.maxAttempts} attempts:`,o);throw o}isRetryableError(r,n){if(!r.response)return!0;let t=r.response.status;return n.retryableStatusCodes.includes(t)}calculateDelay(r,n){if(!n.exponentialBackoff)return n.baseDelay;let t=n.baseDelay*Math.pow(2,r),i=Math.min(t,n.maxDelay),o=i*.2*(Math.random()-.5);return Math.max(0,i+o)}sleep(r){return new Promise(n=>setTimeout(n,r))}setHeaders(r){this.client.setHeaders(r)}};var Am=Mm(Sm(),1);import _c from"fs";import Lr from"path";import JI from"fs";import WI from"csv-parser";async function Dm(e){return new Promise((r,n)=>{let t=[];JI.createReadStream(e).pipe(WI()).on("data",i=>t.push(i)).on("end",()=>r(t)).on("error",i=>n(i))})}var wn=class{constructor(){this.metrics={totalEntities:0,totalSuccesses:0,totalFailures:0,entityMetrics:new Map,requestDurations:[],retryAttempts:0,retrySuccesses:0,retryFailures:0,startTime:Date.now()}}startEntityProcessing(r){this.metrics.entityMetrics.has(r)||this.metrics.entityMetrics.set(r,{entityName:r,successCount:0,failureCount:0,startTime:Date.now()})}recordSuccess(r){let n=this.metrics.entityMetrics.get(r);n&&(n.successCount++,this.metrics.totalSuccesses++,this.metrics.totalEntities++)}recordFailure(r){let n=this.metrics.entityMetrics.get(r);n&&(n.failureCount++,this.metrics.totalFailures++,this.metrics.totalEntities++)}finishEntityProcessing(r){let n=this.metrics.entityMetrics.get(r);n&&(n.endTime=Date.now())}finishProcessing(){return this.metrics.endTime=Date.now(),{...this.metrics}}getEntityMetrics(r){return this.metrics.entityMetrics.get(r)}getTotalProcessed(){return this.metrics.totalEntities}getSuccessRate(){return this.metrics.totalEntities===0?0:this.metrics.totalSuccesses/this.metrics.totalEntities*100}recordRequestDuration(r){this.metrics.requestDurations.push(r)}recordRetrySuccess(r){this.metrics.retryAttempts+=r,this.metrics.retrySuccesses++}recordRetryFailure(r){this.metrics.retryAttempts+=r,this.metrics.retryFailures++}getAverageRequestDuration(){return this.metrics.requestDurations.length===0?0:this.metrics.requestDurations.reduce((n,t)=>n+t,0)/this.metrics.requestDurations.length}getDurationMs(){return(this.metrics.endTime||Date.now())-this.metrics.startTime}generateSummary(){let r=this.getDurationMs(),n=this.getSuccessRate(),t=this.getAverageRequestDuration(),i=`
34
210
  \u{1F4CA} Processing Summary:
35
211
  `;if(i+=` Total Processed: ${this.metrics.totalEntities}
36
212
  `,i+=` \u2713 Successes: ${this.metrics.totalSuccesses}
37
213
  `,i+=` \u2717 Failures: ${this.metrics.totalFailures}
38
214
  `,i+=` Success Rate: ${n.toFixed(1)}%
39
215
  `,i+=` Duration: ${(r/1e3).toFixed(2)}s
40
- `,this.metrics.requestDurations.length>0&&(i+=` Avg Request Time: ${o.toFixed(0)}ms
216
+ `,this.metrics.requestDurations.length>0&&(i+=` Avg Request Time: ${t.toFixed(0)}ms
41
217
  `),this.metrics.retryAttempts>0&&(i+=` Retry Attempts: ${this.metrics.retryAttempts}
42
218
  `,i+=` Retry Successes: ${this.metrics.retrySuccesses}
43
219
  `,i+=` Retry Failures: ${this.metrics.retryFailures}
44
- `),this.metrics.entityMetrics.size>1){i+=`
220
+ `),this.metrics.entityMetrics.size>0){i+=`
45
221
  \u{1F4CB} Per-Entity Breakdown:
46
- `;for(let[l,t]of this.metrics.entityMetrics){let c=t.successCount+t.failureCount,s=c>0?t.successCount/c*100:0,u=t.endTime?t.endTime-t.startTime:0;i+=` ${l}: ${c} total (${t.successCount} \u2713, ${t.failureCount} \u2717) - ${s.toFixed(1)}% success - ${(u/1e3).toFixed(2)}s
47
- `}}return i}};var J=class{constructor(r,n=process.cwd(),o,i=!1){this.client=r,this.basePath=n,this.metrics=o||new N,this.verbose=i}discoverMappings(r){let n=O.resolve(this.basePath,r,"mappings");try{let i=me.readdirSync(n).filter(l=>l.endsWith(".json")).sort();return console.log(`Discovered ${i.length} mapping files: ${i.join(", ")}`),i.map(l=>O.join(r,"mappings",l))}catch(o){return console.error(`Error reading mappings directory ${n}:`,o),[]}}async processEntity(r,n,o){let i=O.basename(r,".json");console.log(`Processing entity: ${r}`),this.metrics.startEntityProcessing(i);let l=O.resolve(this.basePath,r),t=JSON.parse(me.readFileSync(l,"utf8")),c=O.dirname(O.dirname(l)),s=O.resolve(c,t.csvFile),u=await ur(s),f=O.resolve(c,t.graphqlFile),a=me.readFileSync(f,"utf8");n&&n.concurrency>1?await this.processRowsConcurrently(u,a,t.mapping,i,n,o):await this.processRowsSequentially(u,a,t.mapping,i,o),this.metrics.finishEntityProcessing(i)}async processRowsSequentially(r,n,o,i,l){let t=r.length;for(let c=0;c<r.length;c++){let s=r[c],u=this.mapCsvRowToVariables(s,o);try{if(await this.client.executeMutation(n,u,l),this.metrics.recordSuccess(i),!this.verbose&&((c+1)%Math.max(1,Math.floor(t/10))===0||c===t-1)){let f=((c+1)/t*100).toFixed(1);console.log(`\u{1F4CA} Progress: ${c+1}/${t} (${f}%) \u2713`)}}catch(f){this.metrics.recordFailure(i),this.verbose||console.error(`\u2717 Failed to create entity for row ${c+1}:`,s,f)}}}async processRowsConcurrently(r,n,o,i,l,t){let c=l.concurrency;console.log(`Processing ${r.length} rows with concurrency: ${c}`);let s=this.chunkArray(r,c),u=0,f=r.length;for(let a=0;a<s.length;a++){let h=s[a],d=h.map(async v=>{let g=this.mapCsvRowToVariables(v,o);try{let j=await this.client.executeMutation(n,g,t);return this.metrics.recordSuccess(i),{success:!0,result:j,row:v}}catch(j){return this.metrics.recordFailure(i),{success:!1,error:j,row:v}}}),m=await Promise.allSettled(d);u+=h.length;let y=0,x=0;if(m.forEach(v=>{if(v.status==="fulfilled"){let{success:g,error:j,row:fr}=v.value;g?y++:(x++,this.verbose||console.error("\u2717 Failed to create entity for row:",fr,j))}else x++,this.verbose||console.error("\u2717 Promise rejected:",v.reason)}),!this.verbose){let v=(u/f*100).toFixed(1);console.log(`\u{1F4CA} Progress: ${u}/${f} (${v}%) - Chunk ${a+1}: ${y} \u2713, ${x} \u2717`)}}}chunkArray(r,n){let o=[];for(let i=0;i<r.length;i+=n)o.push(r.slice(i,i+n));return o}mapCsvRowToVariables(r,n){let o={};for(let[i,l]of Object.entries(n))r[l]!==void 0&&(o[i]=r[l]);return o}getMetrics(){return this.metrics}};var z=class{constructor(r,n={}){this.entities=r,this.dependencies=n}resolveExecutionOrder(){let r=[],n=new Set,o=new Set,i=0;for(;n.size<this.entities.length;){let l=[];for(let t of this.entities){if(n.has(t)||o.has(t))continue;(this.dependencies[t]||[]).every(u=>n.has(u))&&(l.push(t),o.add(t))}if(l.length===0){let t=this.entities.filter(c=>!n.has(c));throw new Error(`Circular dependency detected or missing dependencies for entities: ${t.join(", ")}`)}r.push({entities:l,wave:i++}),l.forEach(t=>{n.add(t),o.delete(t)})}return r}validateDependencies(){let r=[],n=new Set(this.entities);for(let[o,i]of Object.entries(this.dependencies)){if(!n.has(o)){r.push(`Entity '${o}' has dependencies but is not in the entity list`);continue}for(let l of i)n.has(l)||r.push(`Entity '${o}' depends on '${l}' which does not exist`)}return r}getDependents(r){return Object.entries(this.dependencies).filter(([n,o])=>o.includes(r)).map(([n,o])=>n)}getDependencies(r){return this.dependencies[r]||[]}};import{basename as ge}from"path";function Ui(e,r){if(r<=0)return[e];let n=[];for(let o=0;o<e.length;o+=r)n.push(e.slice(o,o+r));return n}var ye=new Hi;ye.name("gql-ingest").description("A CLI tool for ingesting data from CSV files into a GraphQL API").version(ar().version);ye.requiredOption("-e, --endpoint <url>","GraphQL endpoint URL").requiredOption("-c, --config <path>","Path to configuration directory (containing data/, graphql/, mappings/ subdirectories)").option("-h, --headers <headers>","JSON string of headers to include in requests").option("-v, --verbose","Show detailed request results and responses").action(async e=>{try{console.log("Starting seed data generation...");let r=e.headers?JSON.parse(e.headers):{},n=new N,o=new Z(e.endpoint,r,n,e.verbose),i=sr(e.config),l=new J(o,process.cwd(),n,e.verbose),t=l.discoverMappings(e.config);if(t.length===0){console.warn(`No mapping files found in ${e.config}/mappings`);return}let c=t.map(f=>ge(f,".json")),s=new z(c,i.entityDependencies),u=s.validateDependencies();u.length>0&&(console.error("Dependency validation errors:"),u.forEach(f=>console.error(` - ${f}`)),process.exit(1)),i.parallelProcessing.entityConcurrency===1?await Gi(t,l,i):await Wi(t,s,l,i),n.finishProcessing(),console.log(n.generateSummary())}catch(r){console.error("Error:",r),process.exit(1)}});async function Gi(e,r,n){for(let o of e)try{let i=ge(o,".json"),l=he(i,n),t=de(i,n);await r.processEntity(o,l,t)}catch(i){console.warn(`Warning: Could not process ${o}:`,i)}}async function Wi(e,r,n,o){let i=r.resolveExecutionOrder(),l=new Map(e.map(t=>[ge(t,".json"),t]));console.log(`Processing ${i.length} dependency waves...`);for(let t of i){console.log(`Wave ${t.wave+1}: Processing entities [${t.entities.join(", ")}]`);let c=o.parallelProcessing.entityConcurrency,s=Ui(t.entities,c);for(let u of s){let f=u.map(async a=>{let h=l.get(a);if(h)try{let d=he(a,o),m=de(a,o);await n.processEntity(h,d,m)}catch(d){console.warn(`Warning: Could not process ${h}:`,d)}});await Promise.allSettled(f)}}}ye.parse();
222
+ `;for(let[o,s]of this.metrics.entityMetrics){let a=s.successCount+s.failureCount,u=a>0?s.successCount/a*100:0,c=s.endTime?s.endTime-s.startTime:0;i+=` ${o}: ${a} total (${s.successCount} \u2713, ${s.failureCount} \u2717) - ${u.toFixed(1)}% success - ${(c/1e3).toFixed(2)}s
223
+ `}}return i}};var mo=class{constructor(r,n=process.cwd(),t,i=!1){this.client=r,this.basePath=n,this.metrics=t||new wn,this.verbose=i}discoverMappings(r,n){let t=Lr.resolve(this.basePath,r,"mappings");try{let o=_c.readdirSync(t).filter(s=>s.endsWith(".json"));if(n&&n.length>0){let s=new Set(n),a=new Set;o=o.filter(c=>{let l=Lr.basename(c,".json");return s.has(l)?(a.add(l),!0):!1});let u=n.filter(c=>!a.has(c));u.length>0&&console.warn(`Warning: The following entities were not found in mappings: ${u.join(", ")}`)}return o.sort(),console.log(`Discovered ${o.length} mapping files: ${o.join(", ")}`),o.map(s=>Lr.join(r,"mappings",s))}catch(i){return console.error(`Error reading mappings directory ${t}:`,i),[]}}async processEntity(r,n,t){let i=Lr.basename(r,".json");console.log(`Processing entity: ${r}`),this.metrics.startEntityProcessing(i);let o=Lr.resolve(this.basePath,r),s=JSON.parse(_c.readFileSync(o,"utf8")),a=Lr.dirname(Lr.dirname(o)),u=Lr.resolve(a,s.csvFile),c=await Dm(u),l=Lr.resolve(a,s.graphqlFile),p=_c.readFileSync(l,"utf8");n&&n.concurrency>1?await this.processRowsConcurrently(c,p,s.mapping,i,n,t):await this.processRowsSequentially(c,p,s.mapping,i,t),this.metrics.finishEntityProcessing(i)}async processRowsSequentially(r,n,t,i,o){let s=r.length,a=this.extractVariableTypes(n);for(let u=0;u<r.length;u++){let c=r[u],l=this.mapCsvRowToVariables(c,t,a);try{if(await this.client.executeMutation(n,l,o),this.metrics.recordSuccess(i),!this.verbose&&((u+1)%Math.max(1,Math.floor(s/10))===0||u===s-1)){let p=((u+1)/s*100).toFixed(1);console.log(`\u{1F4CA} Progress: ${u+1}/${s} (${p}%) \u2713`)}}catch(p){this.metrics.recordFailure(i),this.verbose||console.error(`\u2717 Failed to create entity for row ${u+1}:`,c,p)}}}async processRowsConcurrently(r,n,t,i,o,s){let a=o.concurrency;console.log(`Processing ${r.length} rows with concurrency: ${a}`);let u=this.extractVariableTypes(n),c=this.chunkArray(r,a),l=0,p=r.length;for(let f=0;f<c.length;f++){let m=c[f],y=m.map(async A=>{let ce=this.mapCsvRowToVariables(A,t,u);try{let ie=await this.client.executeMutation(n,ce,s);return this.metrics.recordSuccess(i),{success:!0,result:ie,row:A}}catch(ie){return this.metrics.recordFailure(i),{success:!1,error:ie,row:A}}}),O=await Promise.allSettled(y);l+=m.length;let P=0,C=0;if(O.forEach(A=>{if(A.status==="fulfilled"){let{success:ce,error:ie,row:vr}=A.value;ce?P++:(C++,this.verbose||console.error("\u2717 Failed to create entity for row:",vr,ie))}else C++,this.verbose||console.error("\u2717 Promise rejected:",A.reason)}),!this.verbose){let A=(l/p*100).toFixed(1);console.log(`\u{1F4CA} Progress: ${l}/${p} (${A}%) - Chunk ${f+1}: ${P} \u2713, ${C} \u2717`)}}}chunkArray(r,n){let t=[];for(let i=0;i<r.length;i+=n)t.push(r.slice(i,i+n));return t}mapCsvRowToVariables(r,n,t){let i={};for(let[o,s]of Object.entries(n))if(r[s]!==void 0){let a=r[s],u=t[o];i[o]=this.convertValue(a,u,o)}return i}extractVariableTypes(r){let n={};try{let t=(0,Am.parse)(r);for(let i of t.definitions)if(i.kind==="OperationDefinition"&&i.variableDefinitions)for(let o of i.variableDefinitions){let s=o.variable.name.value,a=this.extractTypeName(o);a&&(n[s]=a)}}catch(t){console.error("Error parsing GraphQL mutation:",t)}return n}extractTypeName(r){let n=r.type;if(n.kind==="NonNullType"){if(n.type.kind==="NamedType")return n.type.name.value}else if(n.kind==="NamedType")return n.name.value;return null}convertValue(r,n,t){if(!n)return r;let i=r.trim();switch(n){case"Int":let o=Number(i);return isNaN(o)||!isFinite(o)||!Number.isInteger(o)?(console.warn(`Warning: Cannot convert "${r}" to Int for variable $${t}. Expected a valid integer. Using original value.`),r):o;case"Float":let s=Number(i);return isNaN(s)||!isFinite(s)?(console.warn(`Warning: Cannot convert "${r}" to Float for variable $${t}. Expected a valid number. Using original value.`),r):s;case"Boolean":let a=i.toLowerCase();return a==="true"||a==="1"?!0:a==="false"||a==="0"?!1:(console.warn(`Warning: Cannot convert "${r}" to Boolean for variable $${t}. Expected "true", "false", "1", or "0". Using original value.`),r);case"String":return r;default:return this.verbose&&console.log(`Unknown GraphQL type "${n}" for variable $${t}. Keeping value as string.`),r}}getMetrics(){return this.metrics}};var ho=class{constructor(r,n={},t=!1){this.entities=r,this.dependencies=n,this.allowPartialResolution=t}resolveExecutionOrder(){let r=[],n=new Set,t=new Set,i=0;for(;n.size<this.entities.length;){let o=[];for(let s of this.entities){if(n.has(s)||t.has(s))continue;(this.dependencies[s]||[]).every(c=>n.has(c)||this.allowPartialResolution&&!this.entities.includes(c))&&(o.push(s),t.add(s))}if(o.length===0){let s=this.entities.filter(a=>!n.has(a));throw new Error(`Circular dependency detected or missing dependencies for entities: ${s.join(", ")}`)}r.push({entities:o,wave:i++}),o.forEach(s=>{n.add(s),t.delete(s)})}return r}validateDependencies(){let r=[],n=new Set(this.entities);for(let[t,i]of Object.entries(this.dependencies)){if(!n.has(t)){r.push(`Entity '${t}' has dependencies but is not in the entity list`);continue}for(let o of i)n.has(o)||r.push(`Entity '${t}' depends on '${o}' which does not exist`)}return r}getDependents(r){return Object.entries(this.dependencies).filter(([n,t])=>t.includes(r)).map(([n,t])=>n)}getDependencies(r){return this.dependencies[r]||[]}};import{basename as Oc}from"path";function ZI(e,r){if(r<=0)return[e];let n=[];for(let t=0;t<e.length;t+=r)n.push(e.slice(t,t+r));return n}var Nc=new zI;Nc.name("gql-ingest").description("A CLI tool for ingesting data from CSV files into a GraphQL API").version(Rm().version);Nc.requiredOption("-e, --endpoint <url>","GraphQL endpoint URL").requiredOption("-c, --config <path>","Path to configuration directory (containing data/, graphql/, mappings/ subdirectories)").option("-n, --entities <entities>","Comma-separated list of specific entities to process (e.g., users,products)").option("-h, --headers <headers>","JSON string of headers to include in requests").option("-v, --verbose","Show detailed request results and responses").action(async e=>{try{console.log("Starting seed data generation...");let r=e.headers?JSON.parse(e.headers):{},n=new wn,t=new Bt(e.endpoint,r,n,e.verbose),i=bl(e.config),o=new mo(t,process.cwd(),n,e.verbose),s=e.entities?e.entities.split(",").map(f=>f.trim()):void 0,a=o.discoverMappings(e.config,s);if(a.length===0){let f=s?` matching entities: ${s.join(", ")}`:"";console.warn(`No mapping files found in ${e.config}/mappings${f}`);return}let u=a.map(f=>Oc(f,".json")),c={};if(i.entityDependencies)for(let f of u)i.entityDependencies[f]&&(c[f]=i.entityDependencies[f]);let l=new ho(u,c,!!s),p=l.validateDependencies();p.length>0&&(s?(console.warn(`
224
+ \u26A0\uFE0F Warning: Dependency validation issues:`),p.forEach(f=>console.warn(` - ${f}`)),console.warn(`This may cause errors if the dependent data doesn't already exist.
225
+ `)):(console.error("Dependency validation errors:"),p.forEach(f=>console.error(` - ${f}`)),process.exit(1))),i.parallelProcessing.entityConcurrency===1?await eL(a,o,i):await rL(a,l,o,i),n.finishProcessing(),console.log(n.generateSummary())}catch(r){console.error("Error:",r),process.exit(1)}});async function eL(e,r,n){for(let t of e)try{let i=Oc(t,".json"),o=jo(i,n),s=wo(i,n);await r.processEntity(t,o,s)}catch(i){console.warn(`Warning: Could not process ${t}:`,i)}}async function rL(e,r,n,t){let i=r.resolveExecutionOrder(),o=new Map(e.map(s=>[Oc(s,".json"),s]));console.log(`Processing ${i.length} dependency waves...`);for(let s of i){console.log(`Wave ${s.wave+1}: Processing entities [${s.entities.join(", ")}]`);let a=t.parallelProcessing.entityConcurrency,u=ZI(s.entities,a);for(let c of u){let l=c.map(async p=>{let f=o.get(p);if(f)try{let m=jo(p,t),y=wo(p,t);await n.processEntity(f,m,y)}catch(m){console.warn(`Warning: Could not process ${f}:`,m)}});await Promise.allSettled(l)}}}Nc.parse();
48
226
  /*! Bundled license information:
49
227
 
50
228
  js-yaml/dist/js-yaml.mjs: