@samarium.sdk/new 0.24.4 → 0.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/samarium +319 -662
  2. package/package.json +2 -2
package/bin/samarium CHANGED
@@ -8,18 +8,18 @@ import{createRequire as dz}from"node:module";var yz=Object.create;var{getPrototy
8
8
  `)return"";return(R>0?H:"")+I.trimEnd()}).join(`
9
9
  `)}}FQ.Help=CP});var f5=Q((XQ)=>{var{InvalidArgumentError:BQ}=l8();class LP{constructor(D,F){this.flags=D,this.description=F||"",this.required=D.includes("<"),this.optional=D.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(D),this.mandatory=!1;let P=wP(D);if(this.short=P.shortFlag,this.long=P.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(D,F){return this.defaultValue=D,this.defaultValueDescription=F,this}preset(D){return this.presetArg=D,this}conflicts(D){return this.conflictsWith=this.conflictsWith.concat(D),this}implies(D){let F=D;if(typeof D==="string")F={[D]:!0};return this.implied=Object.assign(this.implied||{},F),this}env(D){return this.envVar=D,this}argParser(D){return this.parseArg=D,this}makeOptionMandatory(D=!0){return this.mandatory=!!D,this}hideHelp(D=!0){return this.hidden=!!D,this}_concatValue(D,F){if(F===this.defaultValue||!Array.isArray(F))return[D];return F.concat(D)}choices(D){return this.argChoices=D.slice(),this.parseArg=(F,P)=>{if(!this.argChoices.includes(F))throw new BQ(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(F,P);return F},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){return ZQ(this.name().replace(/^no-/,""))}is(D){return this.short===D||this.long===D}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class VP{constructor(D){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,D.forEach((F)=>{if(F.negate)this.negativeOptions.set(F.attributeName(),F);else this.positiveOptions.set(F.attributeName(),F)}),this.negativeOptions.forEach((F,P)=>{if(this.positiveOptions.has(P))this.dualOptions.add(P)})}valueFromOption(D,F){let P=F.attributeName();if(!this.dualOptions.has(P))return!0;let B=this.negativeOptions.get(P).presetArg,Z=B!==void 0?B:!1;return F.negate===(Z===D)}}function ZQ(D){return D.split("-").reduce((F,P)=>{return F+P[0].toUpperCase()+P.slice(1)})}function wP(D){let F,P,B=D.split(/[ |,]+/);if(B.length>1&&!/^[[<]/.test(B[1]))F=B.shift();if(P=B.shift(),!F&&/^-[^-]$/.test(P))F=P,P=void 0;return{shortFlag:F,longFlag:P}}XQ.Option=LP;XQ.splitOptionFlags=wP;XQ.DualOptions=VP});var jP=Q((WQ)=>{function HQ(D,F){if(Math.abs(D.length-F.length)>3)return Math.max(D.length,F.length);let P=[];for(let B=0;B<=D.length;B++)P[B]=[B];for(let B=0;B<=F.length;B++)P[0][B]=B;for(let B=1;B<=F.length;B++)for(let Z=1;Z<=D.length;Z++){let X=1;if(D[Z-1]===F[B-1])X=0;else X=1;if(P[Z][B]=Math.min(P[Z-1][B]+1,P[Z][B-1]+1,P[Z-1][B-1]+X),Z>1&&B>1&&D[Z-1]===F[B-2]&&D[Z-2]===F[B-1])P[Z][B]=Math.min(P[Z][B],P[Z-2][B-2]+1)}return P[D.length][F.length]}function UQ(D,F){if(!F||F.length===0)return"";F=Array.from(new Set(F));let P=D.startsWith("--");if(P)D=D.slice(2),F=F.map((q)=>q.slice(2));let B=[],Z=3,X=0.4;if(F.forEach((q)=>{if(q.length<=1)return;let J=HQ(D,q),Y=Math.max(D.length,q.length);if((Y-J)/Y>X){if(J<Z)Z=J,B=[q];else if(J===Z)B.push(q)}}),B.sort((q,J)=>q.localeCompare(J)),P)B=B.map((q)=>`--${q}`);if(B.length>1)return`
10
10
  (Did you mean one of ${B.join(", ")}?)`;if(B.length===1)return`
11
- (Did you mean ${B[0]}?)`;return""}WQ.suggestSimilar=UQ});var NP=Q((MQ)=>{var zQ=vD("events").EventEmitter,h5=vD("child_process"),x2=vD("path"),g5=vD("fs"),OD=vD("process"),{Argument:QQ,humanReadableArgName:GQ}=R1(),{CommanderError:v5}=l8(),{Help:RQ}=x5(),{Option:bP,splitOptionFlags:IQ,DualOptions:$Q}=f5(),{suggestSimilar:SP}=jP();class y5 extends zQ{constructor(D){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=D||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:(F)=>OD.stdout.write(F),writeErr:(F)=>OD.stderr.write(F),getOutHelpWidth:()=>OD.stdout.isTTY?OD.stdout.columns:void 0,getErrHelpWidth:()=>OD.stderr.isTTY?OD.stderr.columns:void 0,outputError:(F,P)=>P(F)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(D){return this._outputConfiguration=D._outputConfiguration,this._hasHelpOption=D._hasHelpOption,this._helpFlags=D._helpFlags,this._helpDescription=D._helpDescription,this._helpShortFlag=D._helpShortFlag,this._helpLongFlag=D._helpLongFlag,this._helpCommandName=D._helpCommandName,this._helpCommandnameAndArgs=D._helpCommandnameAndArgs,this._helpCommandDescription=D._helpCommandDescription,this._helpConfiguration=D._helpConfiguration,this._exitCallback=D._exitCallback,this._storeOptionsAsProperties=D._storeOptionsAsProperties,this._combineFlagAndOptionalValue=D._combineFlagAndOptionalValue,this._allowExcessArguments=D._allowExcessArguments,this._enablePositionalOptions=D._enablePositionalOptions,this._showHelpAfterError=D._showHelpAfterError,this._showSuggestionAfterError=D._showSuggestionAfterError,this}_getCommandAndAncestors(){let D=[];for(let F=this;F;F=F.parent)D.push(F);return D}command(D,F,P){let B=F,Z=P;if(typeof B==="object"&&B!==null)Z=B,B=null;Z=Z||{};let[,X,q]=D.match(/([^ ]+) *(.*)/),J=this.createCommand(X);if(B)J.description(B),J._executableHandler=!0;if(Z.isDefault)this._defaultCommandName=J._name;if(J._hidden=!!(Z.noHelp||Z.hidden),J._executableFile=Z.executableFile||null,q)J.arguments(q);if(this.commands.push(J),J.parent=this,J.copyInheritedSettings(this),B)return this;return J}createCommand(D){return new y5(D)}createHelp(){return Object.assign(new RQ,this.configureHelp())}configureHelp(D){if(D===void 0)return this._helpConfiguration;return this._helpConfiguration=D,this}configureOutput(D){if(D===void 0)return this._outputConfiguration;return Object.assign(this._outputConfiguration,D),this}showHelpAfterError(D=!0){if(typeof D!=="string")D=!!D;return this._showHelpAfterError=D,this}showSuggestionAfterError(D=!0){return this._showSuggestionAfterError=!!D,this}addCommand(D,F){if(!D._name)throw new Error(`Command passed to .addCommand() must have a name
12
- - specify the name in Command constructor or using .name()`);if(F=F||{},F.isDefault)this._defaultCommandName=D._name;if(F.noHelp||F.hidden)D._hidden=!0;return this.commands.push(D),D.parent=this,this}createArgument(D,F){return new QQ(D,F)}argument(D,F,P,B){let Z=this.createArgument(D,F);if(typeof P==="function")Z.default(B).argParser(P);else Z.default(P);return this.addArgument(Z),this}arguments(D){return D.trim().split(/ +/).forEach((F)=>{this.argument(F)}),this}addArgument(D){let F=this.registeredArguments.slice(-1)[0];if(F&&F.variadic)throw new Error(`only the last argument can be variadic '${F.name()}'`);if(D.required&&D.defaultValue!==void 0&&D.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${D.name()}'`);return this.registeredArguments.push(D),this}addHelpCommand(D,F){if(D===!1)this._addImplicitHelpCommand=!1;else{if(this._addImplicitHelpCommand=!0,typeof D==="string")this._helpCommandName=D.split(" ")[0],this._helpCommandnameAndArgs=D;this._helpCommandDescription=F||this._helpCommandDescription}return this}_hasImplicitHelpCommand(){if(this._addImplicitHelpCommand===void 0)return this.commands.length&&!this._actionHandler&&!this._findCommand("help");return this._addImplicitHelpCommand}hook(D,F){let P=["preSubcommand","preAction","postAction"];if(!P.includes(D))throw new Error(`Unexpected value for event passed to hook : '${D}'.
13
- Expecting one of '${P.join("', '")}'`);if(this._lifeCycleHooks[D])this._lifeCycleHooks[D].push(F);else this._lifeCycleHooks[D]=[F];return this}exitOverride(D){if(D)this._exitCallback=D;else this._exitCallback=(F)=>{if(F.code!=="commander.executeSubCommandAsync")throw F};return this}_exit(D,F,P){if(this._exitCallback)this._exitCallback(new v5(D,F,P));OD.exit(D)}action(D){let F=(P)=>{let B=this.registeredArguments.length,Z=P.slice(0,B);if(this._storeOptionsAsProperties)Z[B]=this;else Z[B]=this.opts();return Z.push(this),D.apply(this,Z)};return this._actionHandler=F,this}createOption(D,F){return new bP(D,F)}_callParseArg(D,F,P,B){try{return D.parseArg(F,P)}catch(Z){if(Z.code==="commander.invalidArgument"){let X=`${B} ${Z.message}`;this.error(X,{exitCode:Z.exitCode,code:Z.code})}throw Z}}addOption(D){let F=D.name(),P=D.attributeName();if(D.negate){let Z=D.long.replace(/^--no-/,"--");if(!this._findOption(Z))this.setOptionValueWithSource(P,D.defaultValue===void 0?!0:D.defaultValue,"default")}else if(D.defaultValue!==void 0)this.setOptionValueWithSource(P,D.defaultValue,"default");this.options.push(D);let B=(Z,X,q)=>{if(Z==null&&D.presetArg!==void 0)Z=D.presetArg;let J=this.getOptionValue(P);if(Z!==null&&D.parseArg)Z=this._callParseArg(D,Z,J,X);else if(Z!==null&&D.variadic)Z=D._concatValue(Z,J);if(Z==null)if(D.negate)Z=!1;else if(D.isBoolean()||D.optional)Z=!0;else Z="";this.setOptionValueWithSource(P,Z,q)};if(this.on("option:"+F,(Z)=>{let X=`error: option '${D.flags}' argument '${Z}' is invalid.`;B(Z,X,"cli")}),D.envVar)this.on("optionEnv:"+F,(Z)=>{let X=`error: option '${D.flags}' value '${Z}' from env '${D.envVar}' is invalid.`;B(Z,X,"env")});return this}_optionEx(D,F,P,B,Z){if(typeof F==="object"&&F instanceof bP)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let X=this.createOption(F,P);if(X.makeOptionMandatory(!!D.mandatory),typeof B==="function")X.default(Z).argParser(B);else if(B instanceof RegExp){let q=B;B=(J,Y)=>{let H=q.exec(J);return H?H[0]:Y},X.default(Z).argParser(B)}else X.default(B);return this.addOption(X)}option(D,F,P,B){return this._optionEx({},D,F,P,B)}requiredOption(D,F,P,B){return this._optionEx({mandatory:!0},D,F,P,B)}combineFlagAndOptionalValue(D=!0){return this._combineFlagAndOptionalValue=!!D,this}allowUnknownOption(D=!0){return this._allowUnknownOption=!!D,this}allowExcessArguments(D=!0){return this._allowExcessArguments=!!D,this}enablePositionalOptions(D=!0){return this._enablePositionalOptions=!!D,this}passThroughOptions(D=!0){if(this._passThroughOptions=!!D,!!this.parent&&D&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(D=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this._storeOptionsAsProperties=!!D,this}getOptionValue(D){if(this._storeOptionsAsProperties)return this[D];return this._optionValues[D]}setOptionValue(D,F){return this.setOptionValueWithSource(D,F,void 0)}setOptionValueWithSource(D,F,P){if(this._storeOptionsAsProperties)this[D]=F;else this._optionValues[D]=F;return this._optionValueSources[D]=P,this}getOptionValueSource(D){return this._optionValueSources[D]}getOptionValueSourceWithGlobals(D){let F;return this._getCommandAndAncestors().forEach((P)=>{if(P.getOptionValueSource(D)!==void 0)F=P.getOptionValueSource(D)}),F}_prepareUserArgs(D,F){if(D!==void 0&&!Array.isArray(D))throw new Error("first parameter to parse must be array or undefined");if(F=F||{},D===void 0){if(D=OD.argv,OD.versions&&OD.versions.electron)F.from="electron"}this.rawArgs=D.slice();let P;switch(F.from){case void 0:case"node":this._scriptPath=D[1],P=D.slice(2);break;case"electron":if(OD.defaultApp)this._scriptPath=D[1],P=D.slice(2);else P=D.slice(1);break;case"user":P=D.slice(0);break;default:throw new Error(`unexpected parse option { from: '${F.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",P}parse(D,F){let P=this._prepareUserArgs(D,F);return this._parseCommand([],P),this}async parseAsync(D,F){let P=this._prepareUserArgs(D,F);return await this._parseCommand([],P),this}_executeSubCommand(D,F){F=F.slice();let P=!1,B=[".js",".ts",".tsx",".mjs",".cjs"];function Z(H,U){let W=x2.resolve(H,U);if(g5.existsSync(W))return W;if(B.includes(x2.extname(U)))return;let O=B.find((z)=>g5.existsSync(`${W}${z}`));if(O)return`${W}${O}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let X=D._executableFile||`${this._name}-${D._name}`,q=this._executableDir||"";if(this._scriptPath){let H;try{H=g5.realpathSync(this._scriptPath)}catch(U){H=this._scriptPath}q=x2.resolve(x2.dirname(H),q)}if(q){let H=Z(q,X);if(!H&&!D._executableFile&&this._scriptPath){let U=x2.basename(this._scriptPath,x2.extname(this._scriptPath));if(U!==this._name)H=Z(q,`${U}-${D._name}`)}X=H||X}P=B.includes(x2.extname(X));let J;if(OD.platform!=="win32")if(P)F.unshift(X),F=uP(OD.execArgv).concat(F),J=h5.spawn(OD.argv[0],F,{stdio:"inherit"});else J=h5.spawn(X,F,{stdio:"inherit"});else F.unshift(X),F=uP(OD.execArgv).concat(F),J=h5.spawn(OD.execPath,F,{stdio:"inherit"});if(!J.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((U)=>{OD.on(U,()=>{if(J.killed===!1&&J.exitCode===null)J.kill(U)})});let Y=this._exitCallback;if(!Y)J.on("close",OD.exit.bind(OD));else J.on("close",()=>{Y(new v5(OD.exitCode||0,"commander.executeSubCommandAsync","(close)"))});J.on("error",(H)=>{if(H.code==="ENOENT"){let U=q?`searched for local subcommand relative to directory '${q}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",W=`'${X}' does not exist
11
+ (Did you mean ${B[0]}?)`;return""}WQ.suggestSimilar=UQ});var NP=Q((MQ)=>{var zQ=vD("events").EventEmitter,h5=vD("child_process"),x2=vD("path"),g5=vD("fs"),OD=vD("process"),{Argument:QQ,humanReadableArgName:GQ}=R1(),{CommanderError:v5}=l8(),{Help:RQ}=x5(),{Option:bP,splitOptionFlags:IQ,DualOptions:$Q}=f5(),{suggestSimilar:SP}=jP();class y5 extends zQ{constructor(D){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=D||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:(F)=>OD.stdout.write(F),writeErr:(F)=>OD.stderr.write(F),getOutHelpWidth:()=>OD.stdout.isTTY?OD.stdout.columns:void 0,getErrHelpWidth:()=>OD.stderr.isTTY?OD.stderr.columns:void 0,outputError:(F,P)=>P(F)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(D){return this._outputConfiguration=D._outputConfiguration,this._hasHelpOption=D._hasHelpOption,this._helpFlags=D._helpFlags,this._helpDescription=D._helpDescription,this._helpShortFlag=D._helpShortFlag,this._helpLongFlag=D._helpLongFlag,this._helpCommandName=D._helpCommandName,this._helpCommandnameAndArgs=D._helpCommandnameAndArgs,this._helpCommandDescription=D._helpCommandDescription,this._helpConfiguration=D._helpConfiguration,this._exitCallback=D._exitCallback,this._storeOptionsAsProperties=D._storeOptionsAsProperties,this._combineFlagAndOptionalValue=D._combineFlagAndOptionalValue,this._allowExcessArguments=D._allowExcessArguments,this._enablePositionalOptions=D._enablePositionalOptions,this._showHelpAfterError=D._showHelpAfterError,this._showSuggestionAfterError=D._showSuggestionAfterError,this}_getCommandAndAncestors(){let D=[];for(let F=this;F;F=F.parent)D.push(F);return D}command(D,F,P){let B=F,Z=P;if(typeof B==="object"&&B!==null)Z=B,B=null;Z=Z||{};let[,X,q]=D.match(/([^ ]+) *(.*)/),J=this.createCommand(X);if(B)J.description(B),J._executableHandler=!0;if(Z.isDefault)this._defaultCommandName=J._name;if(J._hidden=!!(Z.noHelp||Z.hidden),J._executableFile=Z.executableFile||null,q)J.arguments(q);if(this.commands.push(J),J.parent=this,J.copyInheritedSettings(this),B)return this;return J}createCommand(D){return new y5(D)}createHelp(){return Object.assign(new RQ,this.configureHelp())}configureHelp(D){if(D===void 0)return this._helpConfiguration;return this._helpConfiguration=D,this}configureOutput(D){if(D===void 0)return this._outputConfiguration;return Object.assign(this._outputConfiguration,D),this}showHelpAfterError(D=!0){if(typeof D!=="string")D=!!D;return this._showHelpAfterError=D,this}showSuggestionAfterError(D=!0){return this._showSuggestionAfterError=!!D,this}addCommand(D,F){if(!D._name)throw Error(`Command passed to .addCommand() must have a name
12
+ - specify the name in Command constructor or using .name()`);if(F=F||{},F.isDefault)this._defaultCommandName=D._name;if(F.noHelp||F.hidden)D._hidden=!0;return this.commands.push(D),D.parent=this,this}createArgument(D,F){return new QQ(D,F)}argument(D,F,P,B){let Z=this.createArgument(D,F);if(typeof P==="function")Z.default(B).argParser(P);else Z.default(P);return this.addArgument(Z),this}arguments(D){return D.trim().split(/ +/).forEach((F)=>{this.argument(F)}),this}addArgument(D){let F=this.registeredArguments.slice(-1)[0];if(F&&F.variadic)throw Error(`only the last argument can be variadic '${F.name()}'`);if(D.required&&D.defaultValue!==void 0&&D.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${D.name()}'`);return this.registeredArguments.push(D),this}addHelpCommand(D,F){if(D===!1)this._addImplicitHelpCommand=!1;else{if(this._addImplicitHelpCommand=!0,typeof D==="string")this._helpCommandName=D.split(" ")[0],this._helpCommandnameAndArgs=D;this._helpCommandDescription=F||this._helpCommandDescription}return this}_hasImplicitHelpCommand(){if(this._addImplicitHelpCommand===void 0)return this.commands.length&&!this._actionHandler&&!this._findCommand("help");return this._addImplicitHelpCommand}hook(D,F){let P=["preSubcommand","preAction","postAction"];if(!P.includes(D))throw Error(`Unexpected value for event passed to hook : '${D}'.
13
+ Expecting one of '${P.join("', '")}'`);if(this._lifeCycleHooks[D])this._lifeCycleHooks[D].push(F);else this._lifeCycleHooks[D]=[F];return this}exitOverride(D){if(D)this._exitCallback=D;else this._exitCallback=(F)=>{if(F.code!=="commander.executeSubCommandAsync")throw F};return this}_exit(D,F,P){if(this._exitCallback)this._exitCallback(new v5(D,F,P));OD.exit(D)}action(D){let F=(P)=>{let B=this.registeredArguments.length,Z=P.slice(0,B);if(this._storeOptionsAsProperties)Z[B]=this;else Z[B]=this.opts();return Z.push(this),D.apply(this,Z)};return this._actionHandler=F,this}createOption(D,F){return new bP(D,F)}_callParseArg(D,F,P,B){try{return D.parseArg(F,P)}catch(Z){if(Z.code==="commander.invalidArgument"){let X=`${B} ${Z.message}`;this.error(X,{exitCode:Z.exitCode,code:Z.code})}throw Z}}addOption(D){let F=D.name(),P=D.attributeName();if(D.negate){let Z=D.long.replace(/^--no-/,"--");if(!this._findOption(Z))this.setOptionValueWithSource(P,D.defaultValue===void 0?!0:D.defaultValue,"default")}else if(D.defaultValue!==void 0)this.setOptionValueWithSource(P,D.defaultValue,"default");this.options.push(D);let B=(Z,X,q)=>{if(Z==null&&D.presetArg!==void 0)Z=D.presetArg;let J=this.getOptionValue(P);if(Z!==null&&D.parseArg)Z=this._callParseArg(D,Z,J,X);else if(Z!==null&&D.variadic)Z=D._concatValue(Z,J);if(Z==null)if(D.negate)Z=!1;else if(D.isBoolean()||D.optional)Z=!0;else Z="";this.setOptionValueWithSource(P,Z,q)};if(this.on("option:"+F,(Z)=>{let X=`error: option '${D.flags}' argument '${Z}' is invalid.`;B(Z,X,"cli")}),D.envVar)this.on("optionEnv:"+F,(Z)=>{let X=`error: option '${D.flags}' value '${Z}' from env '${D.envVar}' is invalid.`;B(Z,X,"env")});return this}_optionEx(D,F,P,B,Z){if(typeof F==="object"&&F instanceof bP)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let X=this.createOption(F,P);if(X.makeOptionMandatory(!!D.mandatory),typeof B==="function")X.default(Z).argParser(B);else if(B instanceof RegExp){let q=B;B=(J,Y)=>{let H=q.exec(J);return H?H[0]:Y},X.default(Z).argParser(B)}else X.default(B);return this.addOption(X)}option(D,F,P,B){return this._optionEx({},D,F,P,B)}requiredOption(D,F,P,B){return this._optionEx({mandatory:!0},D,F,P,B)}combineFlagAndOptionalValue(D=!0){return this._combineFlagAndOptionalValue=!!D,this}allowUnknownOption(D=!0){return this._allowUnknownOption=!!D,this}allowExcessArguments(D=!0){return this._allowExcessArguments=!!D,this}enablePositionalOptions(D=!0){return this._enablePositionalOptions=!!D,this}passThroughOptions(D=!0){if(this._passThroughOptions=!!D,!!this.parent&&D&&!this.parent._enablePositionalOptions)throw Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(D=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");return this._storeOptionsAsProperties=!!D,this}getOptionValue(D){if(this._storeOptionsAsProperties)return this[D];return this._optionValues[D]}setOptionValue(D,F){return this.setOptionValueWithSource(D,F,void 0)}setOptionValueWithSource(D,F,P){if(this._storeOptionsAsProperties)this[D]=F;else this._optionValues[D]=F;return this._optionValueSources[D]=P,this}getOptionValueSource(D){return this._optionValueSources[D]}getOptionValueSourceWithGlobals(D){let F;return this._getCommandAndAncestors().forEach((P)=>{if(P.getOptionValueSource(D)!==void 0)F=P.getOptionValueSource(D)}),F}_prepareUserArgs(D,F){if(D!==void 0&&!Array.isArray(D))throw Error("first parameter to parse must be array or undefined");if(F=F||{},D===void 0){if(D=OD.argv,OD.versions&&OD.versions.electron)F.from="electron"}this.rawArgs=D.slice();let P;switch(F.from){case void 0:case"node":this._scriptPath=D[1],P=D.slice(2);break;case"electron":if(OD.defaultApp)this._scriptPath=D[1],P=D.slice(2);else P=D.slice(1);break;case"user":P=D.slice(0);break;default:throw Error(`unexpected parse option { from: '${F.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",P}parse(D,F){let P=this._prepareUserArgs(D,F);return this._parseCommand([],P),this}async parseAsync(D,F){let P=this._prepareUserArgs(D,F);return await this._parseCommand([],P),this}_executeSubCommand(D,F){F=F.slice();let P=!1,B=[".js",".ts",".tsx",".mjs",".cjs"];function Z(H,U){let W=x2.resolve(H,U);if(g5.existsSync(W))return W;if(B.includes(x2.extname(U)))return;let O=B.find((z)=>g5.existsSync(`${W}${z}`));if(O)return`${W}${O}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let X=D._executableFile||`${this._name}-${D._name}`,q=this._executableDir||"";if(this._scriptPath){let H;try{H=g5.realpathSync(this._scriptPath)}catch(U){H=this._scriptPath}q=x2.resolve(x2.dirname(H),q)}if(q){let H=Z(q,X);if(!H&&!D._executableFile&&this._scriptPath){let U=x2.basename(this._scriptPath,x2.extname(this._scriptPath));if(U!==this._name)H=Z(q,`${U}-${D._name}`)}X=H||X}P=B.includes(x2.extname(X));let J;if(OD.platform!=="win32")if(P)F.unshift(X),F=uP(OD.execArgv).concat(F),J=h5.spawn(OD.argv[0],F,{stdio:"inherit"});else J=h5.spawn(X,F,{stdio:"inherit"});else F.unshift(X),F=uP(OD.execArgv).concat(F),J=h5.spawn(OD.execPath,F,{stdio:"inherit"});if(!J.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((U)=>{OD.on(U,()=>{if(J.killed===!1&&J.exitCode===null)J.kill(U)})});let Y=this._exitCallback;if(!Y)J.on("close",OD.exit.bind(OD));else J.on("close",()=>{Y(new v5(OD.exitCode||0,"commander.executeSubCommandAsync","(close)"))});J.on("error",(H)=>{if(H.code==="ENOENT"){let U=q?`searched for local subcommand relative to directory '${q}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",W=`'${X}' does not exist
14
14
  - if '${D._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
15
15
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
16
- - ${U}`;throw new Error(W)}else if(H.code==="EACCES")throw new Error(`'${X}' not executable`);if(!Y)OD.exit(1);else{let U=new v5(1,"commander.executeSubCommandAsync","(error)");U.nestedError=H,Y(U)}}),this.runningCommand=J}_dispatchSubcommand(D,F,P){let B=this._findCommand(D);if(!B)this.help({error:!0});let Z;return Z=this._chainOrCallSubCommandHook(Z,B,"preSubcommand"),Z=this._chainOrCall(Z,()=>{if(B._executableHandler)this._executeSubCommand(B,F.concat(P));else return B._parseCommand(F,P)}),Z}_dispatchHelpCommand(D){if(!D)this.help();let F=this._findCommand(D);if(F&&!F._executableHandler)F.help();return this._dispatchSubcommand(D,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((D,F)=>{if(D.required&&this.args[F]==null)this.missingArgument(D.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let D=(P,B,Z)=>{let X=B;if(B!==null&&P.parseArg){let q=`error: command-argument value '${B}' is invalid for argument '${P.name()}'.`;X=this._callParseArg(P,B,Z,q)}return X};this._checkNumberOfArguments();let F=[];this.registeredArguments.forEach((P,B)=>{let Z=P.defaultValue;if(P.variadic){if(B<this.args.length){if(Z=this.args.slice(B),P.parseArg)Z=Z.reduce((X,q)=>{return D(P,q,X)},P.defaultValue)}else if(Z===void 0)Z=[]}else if(B<this.args.length){if(Z=this.args[B],P.parseArg)Z=D(P,Z,P.defaultValue)}F[B]=Z}),this.processedArgs=F}_chainOrCall(D,F){if(D&&D.then&&typeof D.then==="function")return D.then(()=>F());return F()}_chainOrCallHooks(D,F){let P=D,B=[];if(this._getCommandAndAncestors().reverse().filter((Z)=>Z._lifeCycleHooks[F]!==void 0).forEach((Z)=>{Z._lifeCycleHooks[F].forEach((X)=>{B.push({hookedCommand:Z,callback:X})})}),F==="postAction")B.reverse();return B.forEach((Z)=>{P=this._chainOrCall(P,()=>{return Z.callback(Z.hookedCommand,this)})}),P}_chainOrCallSubCommandHook(D,F,P){let B=D;if(this._lifeCycleHooks[P]!==void 0)this._lifeCycleHooks[P].forEach((Z)=>{B=this._chainOrCall(B,()=>{return Z(this,F)})});return B}_parseCommand(D,F){let P=this.parseOptions(F);if(this._parseOptionsEnv(),this._parseOptionsImplied(),D=D.concat(P.operands),F=P.unknown,this.args=D.concat(F),D&&this._findCommand(D[0]))return this._dispatchSubcommand(D[0],D.slice(1),F);if(this._hasImplicitHelpCommand()&&D[0]===this._helpCommandName)return this._dispatchHelpCommand(D[1]);if(this._defaultCommandName)return TP(this,F),this._dispatchSubcommand(this._defaultCommandName,D,F);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});TP(this,P.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let B=()=>{if(P.unknown.length>0)this.unknownOption(P.unknown[0])},Z=`command:${this.name()}`;if(this._actionHandler){B(),this._processArguments();let X;if(X=this._chainOrCallHooks(X,"preAction"),X=this._chainOrCall(X,()=>this._actionHandler(this.processedArgs)),this.parent)X=this._chainOrCall(X,()=>{this.parent.emit(Z,D,F)});return X=this._chainOrCallHooks(X,"postAction"),X}if(this.parent&&this.parent.listenerCount(Z))B(),this._processArguments(),this.parent.emit(Z,D,F);else if(D.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",D,F);if(this.listenerCount("command:*"))this.emit("command:*",D,F);else if(this.commands.length)this.unknownCommand();else B(),this._processArguments()}else if(this.commands.length)B(),this.help({error:!0});else B(),this._processArguments()}_findCommand(D){if(!D)return;return this.commands.find((F)=>F._name===D||F._aliases.includes(D))}_findOption(D){return this.options.find((F)=>F.is(D))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((D)=>{D.options.forEach((F)=>{if(F.mandatory&&D.getOptionValue(F.attributeName())===void 0)D.missingMandatoryOptionValue(F)})})}_checkForConflictingLocalOptions(){let D=this.options.filter((P)=>{let B=P.attributeName();if(this.getOptionValue(B)===void 0)return!1;return this.getOptionValueSource(B)!=="default"});D.filter((P)=>P.conflictsWith.length>0).forEach((P)=>{let B=D.find((Z)=>P.conflictsWith.includes(Z.attributeName()));if(B)this._conflictingOption(P,B)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((D)=>{D._checkForConflictingLocalOptions()})}parseOptions(D){let F=[],P=[],B=F,Z=D.slice();function X(J){return J.length>1&&J[0]==="-"}let q=null;while(Z.length){let J=Z.shift();if(J==="--"){if(B===P)B.push(J);B.push(...Z);break}if(q&&!X(J)){this.emit(`option:${q.name()}`,J);continue}if(q=null,X(J)){let Y=this._findOption(J);if(Y){if(Y.required){let H=Z.shift();if(H===void 0)this.optionMissingArgument(Y);this.emit(`option:${Y.name()}`,H)}else if(Y.optional){let H=null;if(Z.length>0&&!X(Z[0]))H=Z.shift();this.emit(`option:${Y.name()}`,H)}else this.emit(`option:${Y.name()}`);q=Y.variadic?Y:null;continue}}if(J.length>2&&J[0]==="-"&&J[1]!=="-"){let Y=this._findOption(`-${J[1]}`);if(Y){if(Y.required||Y.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${Y.name()}`,J.slice(2));else this.emit(`option:${Y.name()}`),Z.unshift(`-${J.slice(2)}`);continue}}if(/^--[^=]+=/.test(J)){let Y=J.indexOf("="),H=this._findOption(J.slice(0,Y));if(H&&(H.required||H.optional)){this.emit(`option:${H.name()}`,J.slice(Y+1));continue}}if(X(J))B=P;if((this._enablePositionalOptions||this._passThroughOptions)&&F.length===0&&P.length===0){if(this._findCommand(J)){if(F.push(J),Z.length>0)P.push(...Z);break}else if(J===this._helpCommandName&&this._hasImplicitHelpCommand()){if(F.push(J),Z.length>0)F.push(...Z);break}else if(this._defaultCommandName){if(P.push(J),Z.length>0)P.push(...Z);break}}if(this._passThroughOptions){if(B.push(J),Z.length>0)B.push(...Z);break}B.push(J)}return{operands:F,unknown:P}}opts(){if(this._storeOptionsAsProperties){let D={},F=this.options.length;for(let P=0;P<F;P++){let B=this.options[P].attributeName();D[B]=B===this._versionOptionName?this._version:this[B]}return D}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((D,F)=>Object.assign(D,F.opts()),{})}error(D,F){if(this._outputConfiguration.outputError(`${D}
16
+ - ${U}`;throw Error(W)}else if(H.code==="EACCES")throw Error(`'${X}' not executable`);if(!Y)OD.exit(1);else{let U=new v5(1,"commander.executeSubCommandAsync","(error)");U.nestedError=H,Y(U)}}),this.runningCommand=J}_dispatchSubcommand(D,F,P){let B=this._findCommand(D);if(!B)this.help({error:!0});let Z;return Z=this._chainOrCallSubCommandHook(Z,B,"preSubcommand"),Z=this._chainOrCall(Z,()=>{if(B._executableHandler)this._executeSubCommand(B,F.concat(P));else return B._parseCommand(F,P)}),Z}_dispatchHelpCommand(D){if(!D)this.help();let F=this._findCommand(D);if(F&&!F._executableHandler)F.help();return this._dispatchSubcommand(D,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((D,F)=>{if(D.required&&this.args[F]==null)this.missingArgument(D.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let D=(P,B,Z)=>{let X=B;if(B!==null&&P.parseArg){let q=`error: command-argument value '${B}' is invalid for argument '${P.name()}'.`;X=this._callParseArg(P,B,Z,q)}return X};this._checkNumberOfArguments();let F=[];this.registeredArguments.forEach((P,B)=>{let Z=P.defaultValue;if(P.variadic){if(B<this.args.length){if(Z=this.args.slice(B),P.parseArg)Z=Z.reduce((X,q)=>{return D(P,q,X)},P.defaultValue)}else if(Z===void 0)Z=[]}else if(B<this.args.length){if(Z=this.args[B],P.parseArg)Z=D(P,Z,P.defaultValue)}F[B]=Z}),this.processedArgs=F}_chainOrCall(D,F){if(D&&D.then&&typeof D.then==="function")return D.then(()=>F());return F()}_chainOrCallHooks(D,F){let P=D,B=[];if(this._getCommandAndAncestors().reverse().filter((Z)=>Z._lifeCycleHooks[F]!==void 0).forEach((Z)=>{Z._lifeCycleHooks[F].forEach((X)=>{B.push({hookedCommand:Z,callback:X})})}),F==="postAction")B.reverse();return B.forEach((Z)=>{P=this._chainOrCall(P,()=>{return Z.callback(Z.hookedCommand,this)})}),P}_chainOrCallSubCommandHook(D,F,P){let B=D;if(this._lifeCycleHooks[P]!==void 0)this._lifeCycleHooks[P].forEach((Z)=>{B=this._chainOrCall(B,()=>{return Z(this,F)})});return B}_parseCommand(D,F){let P=this.parseOptions(F);if(this._parseOptionsEnv(),this._parseOptionsImplied(),D=D.concat(P.operands),F=P.unknown,this.args=D.concat(F),D&&this._findCommand(D[0]))return this._dispatchSubcommand(D[0],D.slice(1),F);if(this._hasImplicitHelpCommand()&&D[0]===this._helpCommandName)return this._dispatchHelpCommand(D[1]);if(this._defaultCommandName)return TP(this,F),this._dispatchSubcommand(this._defaultCommandName,D,F);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});TP(this,P.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let B=()=>{if(P.unknown.length>0)this.unknownOption(P.unknown[0])},Z=`command:${this.name()}`;if(this._actionHandler){B(),this._processArguments();let X;if(X=this._chainOrCallHooks(X,"preAction"),X=this._chainOrCall(X,()=>this._actionHandler(this.processedArgs)),this.parent)X=this._chainOrCall(X,()=>{this.parent.emit(Z,D,F)});return X=this._chainOrCallHooks(X,"postAction"),X}if(this.parent&&this.parent.listenerCount(Z))B(),this._processArguments(),this.parent.emit(Z,D,F);else if(D.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",D,F);if(this.listenerCount("command:*"))this.emit("command:*",D,F);else if(this.commands.length)this.unknownCommand();else B(),this._processArguments()}else if(this.commands.length)B(),this.help({error:!0});else B(),this._processArguments()}_findCommand(D){if(!D)return;return this.commands.find((F)=>F._name===D||F._aliases.includes(D))}_findOption(D){return this.options.find((F)=>F.is(D))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((D)=>{D.options.forEach((F)=>{if(F.mandatory&&D.getOptionValue(F.attributeName())===void 0)D.missingMandatoryOptionValue(F)})})}_checkForConflictingLocalOptions(){let D=this.options.filter((P)=>{let B=P.attributeName();if(this.getOptionValue(B)===void 0)return!1;return this.getOptionValueSource(B)!=="default"});D.filter((P)=>P.conflictsWith.length>0).forEach((P)=>{let B=D.find((Z)=>P.conflictsWith.includes(Z.attributeName()));if(B)this._conflictingOption(P,B)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((D)=>{D._checkForConflictingLocalOptions()})}parseOptions(D){let F=[],P=[],B=F,Z=D.slice();function X(J){return J.length>1&&J[0]==="-"}let q=null;while(Z.length){let J=Z.shift();if(J==="--"){if(B===P)B.push(J);B.push(...Z);break}if(q&&!X(J)){this.emit(`option:${q.name()}`,J);continue}if(q=null,X(J)){let Y=this._findOption(J);if(Y){if(Y.required){let H=Z.shift();if(H===void 0)this.optionMissingArgument(Y);this.emit(`option:${Y.name()}`,H)}else if(Y.optional){let H=null;if(Z.length>0&&!X(Z[0]))H=Z.shift();this.emit(`option:${Y.name()}`,H)}else this.emit(`option:${Y.name()}`);q=Y.variadic?Y:null;continue}}if(J.length>2&&J[0]==="-"&&J[1]!=="-"){let Y=this._findOption(`-${J[1]}`);if(Y){if(Y.required||Y.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${Y.name()}`,J.slice(2));else this.emit(`option:${Y.name()}`),Z.unshift(`-${J.slice(2)}`);continue}}if(/^--[^=]+=/.test(J)){let Y=J.indexOf("="),H=this._findOption(J.slice(0,Y));if(H&&(H.required||H.optional)){this.emit(`option:${H.name()}`,J.slice(Y+1));continue}}if(X(J))B=P;if((this._enablePositionalOptions||this._passThroughOptions)&&F.length===0&&P.length===0){if(this._findCommand(J)){if(F.push(J),Z.length>0)P.push(...Z);break}else if(J===this._helpCommandName&&this._hasImplicitHelpCommand()){if(F.push(J),Z.length>0)F.push(...Z);break}else if(this._defaultCommandName){if(P.push(J),Z.length>0)P.push(...Z);break}}if(this._passThroughOptions){if(B.push(J),Z.length>0)B.push(...Z);break}B.push(J)}return{operands:F,unknown:P}}opts(){if(this._storeOptionsAsProperties){let D={},F=this.options.length;for(let P=0;P<F;P++){let B=this.options[P].attributeName();D[B]=B===this._versionOptionName?this._version:this[B]}return D}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((D,F)=>Object.assign(D,F.opts()),{})}error(D,F){if(this._outputConfiguration.outputError(`${D}
17
17
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
18
18
  `);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
19
19
  `),this.outputHelp({error:!0});let P=F||{},B=P.exitCode||1,Z=P.code||"commander.error";this._exit(B,Z,D)}_parseOptionsEnv(){this.options.forEach((D)=>{if(D.envVar&&D.envVar in OD.env){let F=D.attributeName();if(this.getOptionValue(F)===void 0||["default","config","env"].includes(this.getOptionValueSource(F)))if(D.required||D.optional)this.emit(`optionEnv:${D.name()}`,OD.env[D.envVar]);else this.emit(`optionEnv:${D.name()}`)}})}_parseOptionsImplied(){let D=new $Q(this.options),F=(P)=>{return this.getOptionValue(P)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(P))};this.options.filter((P)=>P.implied!==void 0&&F(P.attributeName())&&D.valueFromOption(this.getOptionValue(P.attributeName()),P)).forEach((P)=>{Object.keys(P.implied).filter((B)=>!F(B)).forEach((B)=>{this.setOptionValueWithSource(B,P.implied[B],"implied")})})}missingArgument(D){let F=`error: missing required argument '${D}'`;this.error(F,{code:"commander.missingArgument"})}optionMissingArgument(D){let F=`error: option '${D.flags}' argument missing`;this.error(F,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(D){let F=`error: required option '${D.flags}' not specified`;this.error(F,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(D,F){let P=(X)=>{let q=X.attributeName(),J=this.getOptionValue(q),Y=this.options.find((U)=>U.negate&&q===U.attributeName()),H=this.options.find((U)=>!U.negate&&q===U.attributeName());if(Y&&(Y.presetArg===void 0&&J===!1||Y.presetArg!==void 0&&J===Y.presetArg))return Y;return H||X},B=(X)=>{let q=P(X),J=q.attributeName();if(this.getOptionValueSource(J)==="env")return`environment variable '${q.envVar}'`;return`option '${q.flags}'`},Z=`error: ${B(D)} cannot be used with ${B(F)}`;this.error(Z,{code:"commander.conflictingOption"})}unknownOption(D){if(this._allowUnknownOption)return;let F="";if(D.startsWith("--")&&this._showSuggestionAfterError){let B=[],Z=this;do{let X=Z.createHelp().visibleOptions(Z).filter((q)=>q.long).map((q)=>q.long);B=B.concat(X),Z=Z.parent}while(Z&&!Z._enablePositionalOptions);F=SP(D,B)}let P=`error: unknown option '${D}'${F}`;this.error(P,{code:"commander.unknownOption"})}_excessArguments(D){if(this._allowExcessArguments)return;let F=this.registeredArguments.length,P=F===1?"":"s",Z=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${F} argument${P} but got ${D.length}.`;this.error(Z,{code:"commander.excessArguments"})}unknownCommand(){let D=this.args[0],F="";if(this._showSuggestionAfterError){let B=[];this.createHelp().visibleCommands(this).forEach((Z)=>{if(B.push(Z.name()),Z.alias())B.push(Z.alias())}),F=SP(D,B)}let P=`error: unknown command '${D}'${F}`;this.error(P,{code:"commander.unknownCommand"})}version(D,F,P){if(D===void 0)return this._version;this._version=D,F=F||"-V, --version",P=P||"output the version number";let B=this.createOption(F,P);return this._versionOptionName=B.attributeName(),this.options.push(B),this.on("option:"+B.name(),()=>{this._outputConfiguration.writeOut(`${D}
20
- `),this._exit(0,"commander.version",D)}),this}description(D,F){if(D===void 0&&F===void 0)return this._description;if(this._description=D,F)this._argsDescription=F;return this}summary(D){if(D===void 0)return this._summary;return this._summary=D,this}alias(D){if(D===void 0)return this._aliases[0];let F=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)F=this.commands[this.commands.length-1];if(D===F._name)throw new Error("Command alias can't be the same as its name");return F._aliases.push(D),this}aliases(D){if(D===void 0)return this._aliases;return D.forEach((F)=>this.alias(F)),this}usage(D){if(D===void 0){if(this._usage)return this._usage;let F=this.registeredArguments.map((P)=>{return GQ(P)});return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?F:[]).join(" ")}return this._usage=D,this}name(D){if(D===void 0)return this._name;return this._name=D,this}nameFromFilename(D){return this._name=x2.basename(D,x2.extname(D)),this}executableDir(D){if(D===void 0)return this._executableDir;return this._executableDir=D,this}helpInformation(D){let F=this.createHelp();if(F.helpWidth===void 0)F.helpWidth=D&&D.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth();return F.formatHelp(this,F)}_getHelpContext(D){D=D||{};let F={error:!!D.error},P;if(F.error)P=(B)=>this._outputConfiguration.writeErr(B);else P=(B)=>this._outputConfiguration.writeOut(B);return F.write=D.write||P,F.command=this,F}outputHelp(D){let F;if(typeof D==="function")F=D,D=void 0;let P=this._getHelpContext(D);this._getCommandAndAncestors().reverse().forEach((Z)=>Z.emit("beforeAllHelp",P)),this.emit("beforeHelp",P);let B=this.helpInformation(P);if(F){if(B=F(B),typeof B!=="string"&&!Buffer.isBuffer(B))throw new Error("outputHelp callback must return a string or a Buffer")}if(P.write(B),this._helpLongFlag)this.emit(this._helpLongFlag);this.emit("afterHelp",P),this._getCommandAndAncestors().forEach((Z)=>Z.emit("afterAllHelp",P))}helpOption(D,F){if(typeof D==="boolean")return this._hasHelpOption=D,this;this._helpFlags=D||this._helpFlags,this._helpDescription=F||this._helpDescription;let P=IQ(this._helpFlags);return this._helpShortFlag=P.shortFlag,this._helpLongFlag=P.longFlag,this}help(D){this.outputHelp(D);let F=OD.exitCode||0;if(F===0&&D&&typeof D!=="function"&&D.error)F=1;this._exit(F,"commander.help","(outputHelp)")}addHelpText(D,F){let P=["beforeAll","before","after","afterAll"];if(!P.includes(D))throw new Error(`Unexpected value for position to addHelpText.
20
+ `),this._exit(0,"commander.version",D)}),this}description(D,F){if(D===void 0&&F===void 0)return this._description;if(this._description=D,F)this._argsDescription=F;return this}summary(D){if(D===void 0)return this._summary;return this._summary=D,this}alias(D){if(D===void 0)return this._aliases[0];let F=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)F=this.commands[this.commands.length-1];if(D===F._name)throw Error("Command alias can't be the same as its name");return F._aliases.push(D),this}aliases(D){if(D===void 0)return this._aliases;return D.forEach((F)=>this.alias(F)),this}usage(D){if(D===void 0){if(this._usage)return this._usage;let F=this.registeredArguments.map((P)=>{return GQ(P)});return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?F:[]).join(" ")}return this._usage=D,this}name(D){if(D===void 0)return this._name;return this._name=D,this}nameFromFilename(D){return this._name=x2.basename(D,x2.extname(D)),this}executableDir(D){if(D===void 0)return this._executableDir;return this._executableDir=D,this}helpInformation(D){let F=this.createHelp();if(F.helpWidth===void 0)F.helpWidth=D&&D.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth();return F.formatHelp(this,F)}_getHelpContext(D){D=D||{};let F={error:!!D.error},P;if(F.error)P=(B)=>this._outputConfiguration.writeErr(B);else P=(B)=>this._outputConfiguration.writeOut(B);return F.write=D.write||P,F.command=this,F}outputHelp(D){let F;if(typeof D==="function")F=D,D=void 0;let P=this._getHelpContext(D);this._getCommandAndAncestors().reverse().forEach((Z)=>Z.emit("beforeAllHelp",P)),this.emit("beforeHelp",P);let B=this.helpInformation(P);if(F){if(B=F(B),typeof B!=="string"&&!Buffer.isBuffer(B))throw Error("outputHelp callback must return a string or a Buffer")}if(P.write(B),this._helpLongFlag)this.emit(this._helpLongFlag);this.emit("afterHelp",P),this._getCommandAndAncestors().forEach((Z)=>Z.emit("afterAllHelp",P))}helpOption(D,F){if(typeof D==="boolean")return this._hasHelpOption=D,this;this._helpFlags=D||this._helpFlags,this._helpDescription=F||this._helpDescription;let P=IQ(this._helpFlags);return this._helpShortFlag=P.shortFlag,this._helpLongFlag=P.longFlag,this}help(D){this.outputHelp(D);let F=OD.exitCode||0;if(F===0&&D&&typeof D!=="function"&&D.error)F=1;this._exit(F,"commander.help","(outputHelp)")}addHelpText(D,F){let P=["beforeAll","before","after","afterAll"];if(!P.includes(D))throw Error(`Unexpected value for position to addHelpText.
21
21
  Expecting one of '${P.join("', '")}'`);let B=`${D}Help`;return this.on(B,(Z)=>{let X;if(typeof F==="function")X=F({error:Z.error,command:Z.command});else X=F;if(X)Z.write(`${X}
22
- `)}),this}}function TP(D,F){if(D._hasHelpOption&&F.find((B)=>B===D._helpLongFlag||B===D._helpShortFlag))D.outputHelp(),D._exit(0,"commander.helpDisplayed","(outputHelp)")}function uP(D){return D.map((F)=>{if(!F.startsWith("--inspect"))return F;let P,B="127.0.0.1",Z="9229",X;if((X=F.match(/^(--inspect(-brk)?)$/))!==null)P=X[1];else if((X=F.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(P=X[1],/^\d+$/.test(X[3]))Z=X[3];else B=X[3];else if((X=F.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)P=X[1],B=X[3],Z=X[4];if(P&&Z!=="0")return`${P}=${B}:${parseInt(Z)+1}`;return F})}MQ.Command=y5});var fP=Q((H2,xP)=>{var{Argument:KQ}=R1(),{Command:_P}=NP(),{CommanderError:AQ,InvalidArgumentError:kP}=l8(),{Help:CQ}=x5(),{Option:LQ}=f5();H2=xP.exports=new _P;H2.program=H2;H2.Command=_P;H2.Option=LQ;H2.Argument=KQ;H2.Help=CQ;H2.CommanderError=AQ;H2.InvalidArgumentError=kP;H2.InvalidOptionArgumentError=kP});var mP=Q((vP)=>{Object.defineProperty(vP,"__esModule",{value:!0});vP.versionInfo=vP.version=void 0;var VQ="16.11.0";vP.version=VQ;var wQ=Object.freeze({major:16,minor:11,patch:0,preReleaseTag:null});vP.versionInfo=wQ});var hD=Q((lP)=>{Object.defineProperty(lP,"__esModule",{value:!0});lP.devAssert=bQ;function bQ(D,F){if(!Boolean(D))throw new Error(F)}});var I1=Q((cP)=>{Object.defineProperty(cP,"__esModule",{value:!0});cP.isPromise=TQ;function TQ(D){return typeof(D===null||D===void 0?void 0:D.then)==="function"}});var K2=Q((dP)=>{Object.defineProperty(dP,"__esModule",{value:!0});dP.isObjectLike=NQ;function NQ(D){return typeof D=="object"&&D!==null}});var kD=Q((pP)=>{Object.defineProperty(pP,"__esModule",{value:!0});pP.invariant=kQ;function kQ(D,F){if(!Boolean(D))throw new Error(F!=null?F:"Unexpected invariant triggered.")}});var $1=Q((rP)=>{Object.defineProperty(rP,"__esModule",{value:!0});rP.getLocation=gQ;var fQ=kD(),hQ=/\r\n|[\n\r]/g;function gQ(D,F){let P=0,B=1;for(let Z of D.body.matchAll(hQ)){if(typeof Z.index==="number"||(0,fQ.invariant)(!1),Z.index>=F)break;P=Z.index+Z[0].length,B+=1}return{line:B,column:F+1-P}}});var m5=Q((nP)=>{Object.defineProperty(nP,"__esModule",{value:!0});nP.printLocation=mQ;nP.printSourceLocation=sP;var yQ=$1();function mQ(D){return sP(D.source,(0,yQ.getLocation)(D.source,D.start))}function sP(D,F){let P=D.locationOffset.column-1,B="".padStart(P)+D.body,Z=F.line-1,X=D.locationOffset.line-1,q=F.line+X,J=F.line===1?P:0,Y=F.column+J,H=`${D.name}:${q}:${Y}
22
+ `)}),this}}function TP(D,F){if(D._hasHelpOption&&F.find((B)=>B===D._helpLongFlag||B===D._helpShortFlag))D.outputHelp(),D._exit(0,"commander.helpDisplayed","(outputHelp)")}function uP(D){return D.map((F)=>{if(!F.startsWith("--inspect"))return F;let P,B="127.0.0.1",Z="9229",X;if((X=F.match(/^(--inspect(-brk)?)$/))!==null)P=X[1];else if((X=F.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(P=X[1],/^\d+$/.test(X[3]))Z=X[3];else B=X[3];else if((X=F.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)P=X[1],B=X[3],Z=X[4];if(P&&Z!=="0")return`${P}=${B}:${parseInt(Z)+1}`;return F})}MQ.Command=y5});var fP=Q((H2,xP)=>{var{Argument:KQ}=R1(),{Command:_P}=NP(),{CommanderError:AQ,InvalidArgumentError:kP}=l8(),{Help:CQ}=x5(),{Option:LQ}=f5();H2=xP.exports=new _P;H2.program=H2;H2.Command=_P;H2.Option=LQ;H2.Argument=KQ;H2.Help=CQ;H2.CommanderError=AQ;H2.InvalidArgumentError=kP;H2.InvalidOptionArgumentError=kP});var mP=Q((vP)=>{Object.defineProperty(vP,"__esModule",{value:!0});vP.versionInfo=vP.version=void 0;var VQ="16.11.0";vP.version=VQ;var wQ=Object.freeze({major:16,minor:11,patch:0,preReleaseTag:null});vP.versionInfo=wQ});var hD=Q((lP)=>{Object.defineProperty(lP,"__esModule",{value:!0});lP.devAssert=bQ;function bQ(D,F){if(!Boolean(D))throw Error(F)}});var I1=Q((cP)=>{Object.defineProperty(cP,"__esModule",{value:!0});cP.isPromise=TQ;function TQ(D){return typeof(D===null||D===void 0?void 0:D.then)==="function"}});var K2=Q((dP)=>{Object.defineProperty(dP,"__esModule",{value:!0});dP.isObjectLike=NQ;function NQ(D){return typeof D=="object"&&D!==null}});var kD=Q((pP)=>{Object.defineProperty(pP,"__esModule",{value:!0});pP.invariant=kQ;function kQ(D,F){if(!Boolean(D))throw Error(F!=null?F:"Unexpected invariant triggered.")}});var $1=Q((rP)=>{Object.defineProperty(rP,"__esModule",{value:!0});rP.getLocation=gQ;var fQ=kD(),hQ=/\r\n|[\n\r]/g;function gQ(D,F){let P=0,B=1;for(let Z of D.body.matchAll(hQ)){if(typeof Z.index==="number"||(0,fQ.invariant)(!1),Z.index>=F)break;P=Z.index+Z[0].length,B+=1}return{line:B,column:F+1-P}}});var m5=Q((nP)=>{Object.defineProperty(nP,"__esModule",{value:!0});nP.printLocation=mQ;nP.printSourceLocation=sP;var yQ=$1();function mQ(D){return sP(D.source,(0,yQ.getLocation)(D.source,D.start))}function sP(D,F){let P=D.locationOffset.column-1,B="".padStart(P)+D.body,Z=F.line-1,X=D.locationOffset.line-1,q=F.line+X,J=F.line===1?P:0,Y=F.column+J,H=`${D.name}:${q}:${Y}
23
23
  `,U=B.split(/\r\n|[\n\r]/g),W=U[Z];if(W.length>120){let O=Math.floor(Y/80),z=Y%80,I=[];for(let R=0;R<W.length;R+=80)I.push(W.slice(R,R+80));return H+aP([[`${q} |`,I[0]],...I.slice(1,O+1).map((R)=>["|",R]),["|","^".padStart(z)],["|",I[O+1]]])}return H+aP([[`${q-1} |`,U[Z-1]],[`${q} |`,W],["|","^".padStart(Y)],[`${q+1} |`,U[Z+1]]])}function aP(D){let F=D.filter(([B,Z])=>Z!==void 0),P=Math.max(...F.map(([B])=>B.length));return F.map(([B,Z])=>B.padStart(P)+(Z?" "+Z:"")).join(`
24
24
  `)}});var g=Q((eP)=>{Object.defineProperty(eP,"__esModule",{value:!0});eP.GraphQLError=void 0;eP.formatError=aQ;eP.printError=rQ;var dQ=K2(),iP=$1(),oP=m5();function pQ(D){let F=D[0];if(F==null||"kind"in F||"length"in F)return{nodes:F,source:D[1],positions:D[2],path:D[3],originalError:D[4],extensions:D[5]};return F}class l5 extends Error{constructor(D,...F){var P,B,Z;let{nodes:X,source:q,positions:J,path:Y,originalError:H,extensions:U}=pQ(F);super(D);this.name="GraphQLError",this.path=Y!==null&&Y!==void 0?Y:void 0,this.originalError=H!==null&&H!==void 0?H:void 0,this.nodes=tP(Array.isArray(X)?X:X?[X]:void 0);let W=tP((P=this.nodes)===null||P===void 0?void 0:P.map((z)=>z.loc).filter((z)=>z!=null));this.source=q!==null&&q!==void 0?q:W===null||W===void 0?void 0:(B=W[0])===null||B===void 0?void 0:B.source,this.positions=J!==null&&J!==void 0?J:W===null||W===void 0?void 0:W.map((z)=>z.start),this.locations=J&&q?J.map((z)=>(0,iP.getLocation)(q,z)):W===null||W===void 0?void 0:W.map((z)=>(0,iP.getLocation)(z.source,z.start));let O=(0,dQ.isObjectLike)(H===null||H===void 0?void 0:H.extensions)?H===null||H===void 0?void 0:H.extensions:void 0;if(this.extensions=(Z=U!==null&&U!==void 0?U:O)!==null&&Z!==void 0?Z: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}}),H!==null&&H!==void 0&&H.stack)Object.defineProperty(this,"stack",{value:H.stack,writable:!0,configurable:!0});else if(Error.captureStackTrace)Error.captureStackTrace(this,l5);else Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let D=this.message;if(this.nodes){for(let F of this.nodes)if(F.loc)D+=`
25
25
 
@@ -29,7 +29,7 @@ Expecting one of '${P.join("', '")}'`);let B=`${D}Help`;return this.on(B,(Z)=>{l
29
29
  `;if(W+=P,U||H)W+=`
30
30
  `;return'"""'+W+'"""'}});var d8=Q((zB)=>{Object.defineProperty(zB,"__esModule",{value:!0});zB.TokenKind=void 0;var i5;zB.TokenKind=i5;(function(D){D.SOF="<SOF>",D.EOF="<EOF>",D.BANG="!",D.DOLLAR="$",D.AMP="&",D.PAREN_L="(",D.PAREN_R=")",D.SPREAD="...",D.COLON=":",D.EQUALS="=",D.AT="@",D.BRACKET_L="[",D.BRACKET_R="]",D.BRACE_L="{",D.PIPE="|",D.BRACE_R="}",D.NAME="Name",D.INT="Int",D.FLOAT="Float",D.STRING="String",D.BLOCK_STRING="BlockString",D.COMMENT="Comment"})(i5||(zB.TokenKind=i5={}))});var A1=Q((MB)=>{Object.defineProperty(MB,"__esModule",{value:!0});MB.Lexer=void 0;MB.isPunctuatorTokenKind=EG;var U2=M1(),GB=A2(),MG=c8(),$0=E1(),r=d8();class RB{constructor(D){let F=new GB.Token(r.TokenKind.SOF,0,0,0,0);this.source=D,this.lastToken=F,this.token=F,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let D=this.token;if(D.kind!==r.TokenKind.EOF)do if(D.next)D=D.next;else{let F=KG(this,D.end);D.next=F,F.prev=D,D=F}while(D.kind===r.TokenKind.COMMENT);return D}}MB.Lexer=RB;function EG(D){return D===r.TokenKind.BANG||D===r.TokenKind.DOLLAR||D===r.TokenKind.AMP||D===r.TokenKind.PAREN_L||D===r.TokenKind.PAREN_R||D===r.TokenKind.SPREAD||D===r.TokenKind.COLON||D===r.TokenKind.EQUALS||D===r.TokenKind.AT||D===r.TokenKind.BRACKET_L||D===r.TokenKind.BRACKET_R||D===r.TokenKind.BRACE_L||D===r.TokenKind.PIPE||D===r.TokenKind.BRACE_R}function Z8(D){return D>=0&&D<=55295||D>=57344&&D<=1114111}function K1(D,F){return IB(D.charCodeAt(F))&&$B(D.charCodeAt(F+1))}function IB(D){return D>=55296&&D<=56319}function $B(D){return D>=56320&&D<=57343}function M0(D,F){let P=D.source.body.codePointAt(F);if(P===void 0)return r.TokenKind.EOF;else if(P>=32&&P<=126){let B=String.fromCodePoint(P);return B==='"'?`'"'`:`"${B}"`}return"U+"+P.toString(16).toUpperCase().padStart(4,"0")}function AD(D,F,P,B,Z){let X=D.line,q=1+P-D.lineStart;return new GB.Token(F,P,B,X,q,Z)}function KG(D,F){let P=D.source.body,B=P.length,Z=F;while(Z<B){let X=P.charCodeAt(Z);switch(X){case 65279:case 9:case 32:case 44:++Z;continue;case 10:++Z,++D.line,D.lineStart=Z;continue;case 13:if(P.charCodeAt(Z+1)===10)Z+=2;else++Z;++D.line,D.lineStart=Z;continue;case 35:return AG(D,Z);case 33:return AD(D,r.TokenKind.BANG,Z,Z+1);case 36:return AD(D,r.TokenKind.DOLLAR,Z,Z+1);case 38:return AD(D,r.TokenKind.AMP,Z,Z+1);case 40:return AD(D,r.TokenKind.PAREN_L,Z,Z+1);case 41:return AD(D,r.TokenKind.PAREN_R,Z,Z+1);case 46:if(P.charCodeAt(Z+1)===46&&P.charCodeAt(Z+2)===46)return AD(D,r.TokenKind.SPREAD,Z,Z+3);break;case 58:return AD(D,r.TokenKind.COLON,Z,Z+1);case 61:return AD(D,r.TokenKind.EQUALS,Z,Z+1);case 64:return AD(D,r.TokenKind.AT,Z,Z+1);case 91:return AD(D,r.TokenKind.BRACKET_L,Z,Z+1);case 93:return AD(D,r.TokenKind.BRACKET_R,Z,Z+1);case 123:return AD(D,r.TokenKind.BRACE_L,Z,Z+1);case 124:return AD(D,r.TokenKind.PIPE,Z,Z+1);case 125:return AD(D,r.TokenKind.BRACE_R,Z,Z+1);case 34:if(P.charCodeAt(Z+1)===34&&P.charCodeAt(Z+2)===34)return bG(D,Z);return LG(D,Z)}if((0,$0.isDigit)(X)||X===45)return CG(D,Z,X);if((0,$0.isNameStart)(X))return SG(D,Z);throw(0,U2.syntaxError)(D.source,Z,X===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Z8(X)||K1(P,Z)?`Unexpected character: ${M0(D,Z)}.`:`Invalid character: ${M0(D,Z)}.`)}return AD(D,r.TokenKind.EOF,B,B)}function AG(D,F){let P=D.source.body,B=P.length,Z=F+1;while(Z<B){let X=P.charCodeAt(Z);if(X===10||X===13)break;if(Z8(X))++Z;else if(K1(P,Z))Z+=2;else break}return AD(D,r.TokenKind.COMMENT,F,Z,P.slice(F+1,Z))}function CG(D,F,P){let B=D.source.body,Z=F,X=P,q=!1;if(X===45)X=B.charCodeAt(++Z);if(X===48){if(X=B.charCodeAt(++Z),(0,$0.isDigit)(X))throw(0,U2.syntaxError)(D.source,Z,`Invalid number, unexpected digit after 0: ${M0(D,Z)}.`)}else Z=t5(D,Z,X),X=B.charCodeAt(Z);if(X===46)q=!0,X=B.charCodeAt(++Z),Z=t5(D,Z,X),X=B.charCodeAt(Z);if(X===69||X===101){if(q=!0,X=B.charCodeAt(++Z),X===43||X===45)X=B.charCodeAt(++Z);Z=t5(D,Z,X),X=B.charCodeAt(Z)}if(X===46||(0,$0.isNameStart)(X))throw(0,U2.syntaxError)(D.source,Z,`Invalid number, expected digit but got: ${M0(D,Z)}.`);return AD(D,q?r.TokenKind.FLOAT:r.TokenKind.INT,F,Z,B.slice(F,Z))}function t5(D,F,P){if(!(0,$0.isDigit)(P))throw(0,U2.syntaxError)(D.source,F,`Invalid number, expected digit but got: ${M0(D,F)}.`);let B=D.source.body,Z=F+1;while((0,$0.isDigit)(B.charCodeAt(Z)))++Z;return Z}function LG(D,F){let P=D.source.body,B=P.length,Z=F+1,X=Z,q="";while(Z<B){let J=P.charCodeAt(Z);if(J===34)return q+=P.slice(X,Z),AD(D,r.TokenKind.STRING,F,Z+1,q);if(J===92){q+=P.slice(X,Z);let Y=P.charCodeAt(Z+1)===117?P.charCodeAt(Z+2)===123?VG(D,Z):wG(D,Z):jG(D,Z);q+=Y.value,Z+=Y.size,X=Z;continue}if(J===10||J===13)break;if(Z8(J))++Z;else if(K1(P,Z))Z+=2;else throw(0,U2.syntaxError)(D.source,Z,`Invalid character within String: ${M0(D,Z)}.`)}throw(0,U2.syntaxError)(D.source,Z,"Unterminated string.")}function VG(D,F){let P=D.source.body,B=0,Z=3;while(Z<12){let X=P.charCodeAt(F+Z++);if(X===125){if(Z<5||!Z8(B))break;return{value:String.fromCodePoint(B),size:Z}}if(B=B<<4|p8(X),B<0)break}throw(0,U2.syntaxError)(D.source,F,`Invalid Unicode escape sequence: "${P.slice(F,F+Z)}".`)}function wG(D,F){let P=D.source.body,B=QB(P,F+2);if(Z8(B))return{value:String.fromCodePoint(B),size:6};if(IB(B)){if(P.charCodeAt(F+6)===92&&P.charCodeAt(F+7)===117){let Z=QB(P,F+8);if($B(Z))return{value:String.fromCodePoint(B,Z),size:12}}}throw(0,U2.syntaxError)(D.source,F,`Invalid Unicode escape sequence: "${P.slice(F,F+6)}".`)}function QB(D,F){return p8(D.charCodeAt(F))<<12|p8(D.charCodeAt(F+1))<<8|p8(D.charCodeAt(F+2))<<4|p8(D.charCodeAt(F+3))}function p8(D){return D>=48&&D<=57?D-48:D>=65&&D<=70?D-55:D>=97&&D<=102?D-87:-1}function jG(D,F){let P=D.source.body;switch(P.charCodeAt(F+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:`
31
31
  `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,U2.syntaxError)(D.source,F,`Invalid character escape sequence: "${P.slice(F,F+2)}".`)}function bG(D,F){let P=D.source.body,B=P.length,Z=D.lineStart,X=F+3,q=X,J="",Y=[];while(X<B){let H=P.charCodeAt(X);if(H===34&&P.charCodeAt(X+1)===34&&P.charCodeAt(X+2)===34){J+=P.slice(q,X),Y.push(J);let U=AD(D,r.TokenKind.BLOCK_STRING,F,X+3,(0,MG.dedentBlockStringLines)(Y).join(`
32
- `));return D.line+=Y.length-1,D.lineStart=Z,U}if(H===92&&P.charCodeAt(X+1)===34&&P.charCodeAt(X+2)===34&&P.charCodeAt(X+3)===34){J+=P.slice(q,X),q=X+1,X+=4;continue}if(H===10||H===13){if(J+=P.slice(q,X),Y.push(J),H===13&&P.charCodeAt(X+1)===10)X+=2;else++X;J="",q=X,Z=X;continue}if(Z8(H))++X;else if(K1(P,X))X+=2;else throw(0,U2.syntaxError)(D.source,X,`Invalid character within String: ${M0(D,X)}.`)}throw(0,U2.syntaxError)(D.source,X,"Unterminated string.")}function SG(D,F){let P=D.source.body,B=P.length,Z=F+1;while(Z<B){let X=P.charCodeAt(Z);if((0,$0.isNameContinue)(X))++Z;else break}return AD(D,r.TokenKind.NAME,F,Z,P.slice(F,Z))}});var ZD=Q((AB)=>{Object.defineProperty(AB,"__esModule",{value:!0});AB.inspect=NG;var uG=10,KB=2;function NG(D){return C1(D,[])}function C1(D,F){switch(typeof D){case"string":return JSON.stringify(D);case"function":return D.name?`[function ${D.name}]`:"[function]";case"object":return _G(D,F);default:return String(D)}}function _G(D,F){if(D===null)return"null";if(F.includes(D))return"[Circular]";let P=[...F,D];if(kG(D)){let B=D.toJSON();if(B!==D)return typeof B==="string"?B:C1(B,P)}else if(Array.isArray(D))return fG(D,P);return xG(D,P)}function kG(D){return typeof D.toJSON==="function"}function xG(D,F){let P=Object.entries(D);if(P.length===0)return"{}";if(F.length>KB)return"["+hG(D)+"]";return"{ "+P.map(([Z,X])=>Z+": "+C1(X,F)).join(", ")+" }"}function fG(D,F){if(D.length===0)return"[]";if(F.length>KB)return"[Array]";let P=Math.min(uG,D.length),B=D.length-P,Z=[];for(let X=0;X<P;++X)Z.push(C1(D[X],F));if(B===1)Z.push("... 1 more item");else if(B>1)Z.push(`... ${B} more items`);return"["+Z.join(", ")+"]"}function hG(D){let F=Object.prototype.toString.call(D).replace(/^\[object /,"").replace(/]$/,"");if(F==="Object"&&typeof D.constructor==="function"){let P=D.constructor.name;if(typeof P==="string"&&P!=="")return P}return F}});var r8=Q((CB)=>{Object.defineProperty(CB,"__esModule",{value:!0});CB.instanceOf=void 0;var vG=ZD(),yG=globalThis.process&&!1,mG=yG?function D(F,P){return F instanceof P}:function D(F,P){if(F instanceof P)return!0;if(typeof F==="object"&&F!==null){var B;let Z=P.prototype[Symbol.toStringTag],X=Symbol.toStringTag in F?F[Symbol.toStringTag]:(B=F.constructor)===null||B===void 0?void 0:B.name;if(Z===X){let q=(0,vG.inspect)(F);throw new Error(`Cannot use ${Z} "${q}" from another module or realm.
32
+ `));return D.line+=Y.length-1,D.lineStart=Z,U}if(H===92&&P.charCodeAt(X+1)===34&&P.charCodeAt(X+2)===34&&P.charCodeAt(X+3)===34){J+=P.slice(q,X),q=X+1,X+=4;continue}if(H===10||H===13){if(J+=P.slice(q,X),Y.push(J),H===13&&P.charCodeAt(X+1)===10)X+=2;else++X;J="",q=X,Z=X;continue}if(Z8(H))++X;else if(K1(P,X))X+=2;else throw(0,U2.syntaxError)(D.source,X,`Invalid character within String: ${M0(D,X)}.`)}throw(0,U2.syntaxError)(D.source,X,"Unterminated string.")}function SG(D,F){let P=D.source.body,B=P.length,Z=F+1;while(Z<B){let X=P.charCodeAt(Z);if((0,$0.isNameContinue)(X))++Z;else break}return AD(D,r.TokenKind.NAME,F,Z,P.slice(F,Z))}});var ZD=Q((AB)=>{Object.defineProperty(AB,"__esModule",{value:!0});AB.inspect=NG;var uG=10,KB=2;function NG(D){return C1(D,[])}function C1(D,F){switch(typeof D){case"string":return JSON.stringify(D);case"function":return D.name?`[function ${D.name}]`:"[function]";case"object":return _G(D,F);default:return String(D)}}function _G(D,F){if(D===null)return"null";if(F.includes(D))return"[Circular]";let P=[...F,D];if(kG(D)){let B=D.toJSON();if(B!==D)return typeof B==="string"?B:C1(B,P)}else if(Array.isArray(D))return fG(D,P);return xG(D,P)}function kG(D){return typeof D.toJSON==="function"}function xG(D,F){let P=Object.entries(D);if(P.length===0)return"{}";if(F.length>KB)return"["+hG(D)+"]";return"{ "+P.map(([Z,X])=>Z+": "+C1(X,F)).join(", ")+" }"}function fG(D,F){if(D.length===0)return"[]";if(F.length>KB)return"[Array]";let P=Math.min(uG,D.length),B=D.length-P,Z=[];for(let X=0;X<P;++X)Z.push(C1(D[X],F));if(B===1)Z.push("... 1 more item");else if(B>1)Z.push(`... ${B} more items`);return"["+Z.join(", ")+"]"}function hG(D){let F=Object.prototype.toString.call(D).replace(/^\[object /,"").replace(/]$/,"");if(F==="Object"&&typeof D.constructor==="function"){let P=D.constructor.name;if(typeof P==="string"&&P!=="")return P}return F}});var r8=Q((CB)=>{Object.defineProperty(CB,"__esModule",{value:!0});CB.instanceOf=void 0;var vG=ZD(),yG=globalThis.process&&!1,mG=yG?function(F,P){return F instanceof P}:function(F,P){if(F instanceof P)return!0;if(typeof F==="object"&&F!==null){var B;let Z=P.prototype[Symbol.toStringTag],X=Symbol.toStringTag in F?F[Symbol.toStringTag]:(B=F.constructor)===null||B===void 0?void 0:B.name;if(Z===X){let q=(0,vG.inspect)(F);throw Error(`Cannot use ${Z} "${q}" from another module or realm.
33
33
 
34
34
  Ensure that there is only one instance of "graphql" in the node_modules
35
35
  directory. If different versions of "graphql" are the dependencies of other
@@ -40,7 +40,7 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
40
40
  Duplicate "graphql" modules cannot be used at the same time since different
41
41
  versions may have different capabilities and behavior. The data from one
42
42
  version used in the function from another could produce confusing and
43
- spurious results.`)}}return!1};CB.instanceOf=mG});var L1=Q((VB)=>{Object.defineProperty(VB,"__esModule",{value:!0});VB.Source=void 0;VB.isSource=dG;var e5=hD(),lG=ZD(),cG=r8();class D4{constructor(D,F="GraphQL request",P={line:1,column:1}){typeof D==="string"||(0,e5.devAssert)(!1,`Body must be a string. Received: ${(0,lG.inspect)(D)}.`),this.body=D,this.name=F,this.locationOffset=P,this.locationOffset.line>0||(0,e5.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,e5.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}VB.Source=D4;function dG(D){return(0,cG.instanceOf)(D,D4)}});var q8=Q((TB)=>{Object.defineProperty(TB,"__esModule",{value:!0});TB.Parser=void 0;TB.parse=aG;TB.parseConstValue=nG;TB.parseType=iG;TB.parseValue=sG;var E0=M1(),a8=A2(),rG=B8(),y=s(),bB=A1(),jB=L1(),b=d8();function aG(D,F){let P=new X8(D,F),B=P.parseDocument();return Object.defineProperty(B,"tokenCount",{enumerable:!1,value:P.tokenCount}),B}function sG(D,F){let P=new X8(D,F);P.expectToken(b.TokenKind.SOF);let B=P.parseValueLiteral(!1);return P.expectToken(b.TokenKind.EOF),B}function nG(D,F){let P=new X8(D,F);P.expectToken(b.TokenKind.SOF);let B=P.parseConstValueLiteral();return P.expectToken(b.TokenKind.EOF),B}function iG(D,F){let P=new X8(D,F);P.expectToken(b.TokenKind.SOF);let B=P.parseTypeReference();return P.expectToken(b.TokenKind.EOF),B}class X8{constructor(D,F={}){let P=(0,jB.isSource)(D)?D:new jB.Source(D);this._lexer=new bB.Lexer(P),this._options=F,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let D=this.expectToken(b.TokenKind.NAME);return this.node(D,{kind:y.Kind.NAME,value:D.value})}parseDocument(){return this.node(this._lexer.token,{kind:y.Kind.DOCUMENT,definitions:this.many(b.TokenKind.SOF,this.parseDefinition,b.TokenKind.EOF)})}parseDefinition(){if(this.peek(b.TokenKind.BRACE_L))return this.parseOperationDefinition();let D=this.peekDescription(),F=D?this._lexer.lookahead():this._lexer.token;if(F.kind===b.TokenKind.NAME){switch(F.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(D)throw(0,E0.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(F.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(F)}parseOperationDefinition(){let D=this._lexer.token;if(this.peek(b.TokenKind.BRACE_L))return this.node(D,{kind:y.Kind.OPERATION_DEFINITION,operation:a8.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let F=this.parseOperationType(),P;if(this.peek(b.TokenKind.NAME))P=this.parseName();return this.node(D,{kind:y.Kind.OPERATION_DEFINITION,operation:F,name:P,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let D=this.expectToken(b.TokenKind.NAME);switch(D.value){case"query":return a8.OperationTypeNode.QUERY;case"mutation":return a8.OperationTypeNode.MUTATION;case"subscription":return a8.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(D)}parseVariableDefinitions(){return this.optionalMany(b.TokenKind.PAREN_L,this.parseVariableDefinition,b.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:y.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(b.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(b.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let D=this._lexer.token;return this.expectToken(b.TokenKind.DOLLAR),this.node(D,{kind:y.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:y.Kind.SELECTION_SET,selections:this.many(b.TokenKind.BRACE_L,this.parseSelection,b.TokenKind.BRACE_R)})}parseSelection(){return this.peek(b.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let D=this._lexer.token,F=this.parseName(),P,B;if(this.expectOptionalToken(b.TokenKind.COLON))P=F,B=this.parseName();else B=F;return this.node(D,{kind:y.Kind.FIELD,alias:P,name:B,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(b.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(D){let F=D?this.parseConstArgument:this.parseArgument;return this.optionalMany(b.TokenKind.PAREN_L,F,b.TokenKind.PAREN_R)}parseArgument(D=!1){let F=this._lexer.token,P=this.parseName();return this.expectToken(b.TokenKind.COLON),this.node(F,{kind:y.Kind.ARGUMENT,name:P,value:this.parseValueLiteral(D)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let D=this._lexer.token;this.expectToken(b.TokenKind.SPREAD);let F=this.expectOptionalKeyword("on");if(!F&&this.peek(b.TokenKind.NAME))return this.node(D,{kind:y.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)});return this.node(D,{kind:y.Kind.INLINE_FRAGMENT,typeCondition:F?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let D=this._lexer.token;if(this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0)return this.node(D,{kind:y.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()});return this.node(D,{kind:y.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(D){let F=this._lexer.token;switch(F.kind){case b.TokenKind.BRACKET_L:return this.parseList(D);case b.TokenKind.BRACE_L:return this.parseObject(D);case b.TokenKind.INT:return this.advanceLexer(),this.node(F,{kind:y.Kind.INT,value:F.value});case b.TokenKind.FLOAT:return this.advanceLexer(),this.node(F,{kind:y.Kind.FLOAT,value:F.value});case b.TokenKind.STRING:case b.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case b.TokenKind.NAME:switch(this.advanceLexer(),F.value){case"true":return this.node(F,{kind:y.Kind.BOOLEAN,value:!0});case"false":return this.node(F,{kind:y.Kind.BOOLEAN,value:!1});case"null":return this.node(F,{kind:y.Kind.NULL});default:return this.node(F,{kind:y.Kind.ENUM,value:F.value})}case b.TokenKind.DOLLAR:if(D)if(this.expectToken(b.TokenKind.DOLLAR),this._lexer.token.kind===b.TokenKind.NAME){let P=this._lexer.token.value;throw(0,E0.syntaxError)(this._lexer.source,F.start,`Unexpected variable "$${P}" in constant value.`)}else throw this.unexpected(F);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let D=this._lexer.token;return this.advanceLexer(),this.node(D,{kind:y.Kind.STRING,value:D.value,block:D.kind===b.TokenKind.BLOCK_STRING})}parseList(D){let F=()=>this.parseValueLiteral(D);return this.node(this._lexer.token,{kind:y.Kind.LIST,values:this.any(b.TokenKind.BRACKET_L,F,b.TokenKind.BRACKET_R)})}parseObject(D){let F=()=>this.parseObjectField(D);return this.node(this._lexer.token,{kind:y.Kind.OBJECT,fields:this.any(b.TokenKind.BRACE_L,F,b.TokenKind.BRACE_R)})}parseObjectField(D){let F=this._lexer.token,P=this.parseName();return this.expectToken(b.TokenKind.COLON),this.node(F,{kind:y.Kind.OBJECT_FIELD,name:P,value:this.parseValueLiteral(D)})}parseDirectives(D){let F=[];while(this.peek(b.TokenKind.AT))F.push(this.parseDirective(D));return F}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(D){let F=this._lexer.token;return this.expectToken(b.TokenKind.AT),this.node(F,{kind:y.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(D)})}parseTypeReference(){let D=this._lexer.token,F;if(this.expectOptionalToken(b.TokenKind.BRACKET_L)){let P=this.parseTypeReference();this.expectToken(b.TokenKind.BRACKET_R),F=this.node(D,{kind:y.Kind.LIST_TYPE,type:P})}else F=this.parseNamedType();if(this.expectOptionalToken(b.TokenKind.BANG))return this.node(D,{kind:y.Kind.NON_NULL_TYPE,type:F});return F}parseNamedType(){return this.node(this._lexer.token,{kind:y.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(b.TokenKind.STRING)||this.peek(b.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("schema");let P=this.parseConstDirectives(),B=this.many(b.TokenKind.BRACE_L,this.parseOperationTypeDefinition,b.TokenKind.BRACE_R);return this.node(D,{kind:y.Kind.SCHEMA_DEFINITION,description:F,directives:P,operationTypes:B})}parseOperationTypeDefinition(){let D=this._lexer.token,F=this.parseOperationType();this.expectToken(b.TokenKind.COLON);let P=this.parseNamedType();return this.node(D,{kind:y.Kind.OPERATION_TYPE_DEFINITION,operation:F,type:P})}parseScalarTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("scalar");let P=this.parseName(),B=this.parseConstDirectives();return this.node(D,{kind:y.Kind.SCALAR_TYPE_DEFINITION,description:F,name:P,directives:B})}parseObjectTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("type");let P=this.parseName(),B=this.parseImplementsInterfaces(),Z=this.parseConstDirectives(),X=this.parseFieldsDefinition();return this.node(D,{kind:y.Kind.OBJECT_TYPE_DEFINITION,description:F,name:P,interfaces:B,directives:Z,fields:X})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(b.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(b.TokenKind.BRACE_L,this.parseFieldDefinition,b.TokenKind.BRACE_R)}parseFieldDefinition(){let D=this._lexer.token,F=this.parseDescription(),P=this.parseName(),B=this.parseArgumentDefs();this.expectToken(b.TokenKind.COLON);let Z=this.parseTypeReference(),X=this.parseConstDirectives();return this.node(D,{kind:y.Kind.FIELD_DEFINITION,description:F,name:P,arguments:B,type:Z,directives:X})}parseArgumentDefs(){return this.optionalMany(b.TokenKind.PAREN_L,this.parseInputValueDef,b.TokenKind.PAREN_R)}parseInputValueDef(){let D=this._lexer.token,F=this.parseDescription(),P=this.parseName();this.expectToken(b.TokenKind.COLON);let B=this.parseTypeReference(),Z;if(this.expectOptionalToken(b.TokenKind.EQUALS))Z=this.parseConstValueLiteral();let X=this.parseConstDirectives();return this.node(D,{kind:y.Kind.INPUT_VALUE_DEFINITION,description:F,name:P,type:B,defaultValue:Z,directives:X})}parseInterfaceTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("interface");let P=this.parseName(),B=this.parseImplementsInterfaces(),Z=this.parseConstDirectives(),X=this.parseFieldsDefinition();return this.node(D,{kind:y.Kind.INTERFACE_TYPE_DEFINITION,description:F,name:P,interfaces:B,directives:Z,fields:X})}parseUnionTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("union");let P=this.parseName(),B=this.parseConstDirectives(),Z=this.parseUnionMemberTypes();return this.node(D,{kind:y.Kind.UNION_TYPE_DEFINITION,description:F,name:P,directives:B,types:Z})}parseUnionMemberTypes(){return this.expectOptionalToken(b.TokenKind.EQUALS)?this.delimitedMany(b.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("enum");let P=this.parseName(),B=this.parseConstDirectives(),Z=this.parseEnumValuesDefinition();return this.node(D,{kind:y.Kind.ENUM_TYPE_DEFINITION,description:F,name:P,directives:B,values:Z})}parseEnumValuesDefinition(){return this.optionalMany(b.TokenKind.BRACE_L,this.parseEnumValueDefinition,b.TokenKind.BRACE_R)}parseEnumValueDefinition(){let D=this._lexer.token,F=this.parseDescription(),P=this.parseEnumValueName(),B=this.parseConstDirectives();return this.node(D,{kind:y.Kind.ENUM_VALUE_DEFINITION,description:F,name:P,directives:B})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,E0.syntaxError)(this._lexer.source,this._lexer.token.start,`${V1(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("input");let P=this.parseName(),B=this.parseConstDirectives(),Z=this.parseInputFieldsDefinition();return this.node(D,{kind:y.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:F,name:P,directives:B,fields:Z})}parseInputFieldsDefinition(){return this.optionalMany(b.TokenKind.BRACE_L,this.parseInputValueDef,b.TokenKind.BRACE_R)}parseTypeSystemExtension(){let D=this._lexer.lookahead();if(D.kind===b.TokenKind.NAME)switch(D.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(D)}parseSchemaExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let F=this.parseConstDirectives(),P=this.optionalMany(b.TokenKind.BRACE_L,this.parseOperationTypeDefinition,b.TokenKind.BRACE_R);if(F.length===0&&P.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.SCHEMA_EXTENSION,directives:F,operationTypes:P})}parseScalarTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let F=this.parseName(),P=this.parseConstDirectives();if(P.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.SCALAR_TYPE_EXTENSION,name:F,directives:P})}parseObjectTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let F=this.parseName(),P=this.parseImplementsInterfaces(),B=this.parseConstDirectives(),Z=this.parseFieldsDefinition();if(P.length===0&&B.length===0&&Z.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.OBJECT_TYPE_EXTENSION,name:F,interfaces:P,directives:B,fields:Z})}parseInterfaceTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let F=this.parseName(),P=this.parseImplementsInterfaces(),B=this.parseConstDirectives(),Z=this.parseFieldsDefinition();if(P.length===0&&B.length===0&&Z.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.INTERFACE_TYPE_EXTENSION,name:F,interfaces:P,directives:B,fields:Z})}parseUnionTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let F=this.parseName(),P=this.parseConstDirectives(),B=this.parseUnionMemberTypes();if(P.length===0&&B.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.UNION_TYPE_EXTENSION,name:F,directives:P,types:B})}parseEnumTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let F=this.parseName(),P=this.parseConstDirectives(),B=this.parseEnumValuesDefinition();if(P.length===0&&B.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.ENUM_TYPE_EXTENSION,name:F,directives:P,values:B})}parseInputObjectTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let F=this.parseName(),P=this.parseConstDirectives(),B=this.parseInputFieldsDefinition();if(P.length===0&&B.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:F,directives:P,fields:B})}parseDirectiveDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("directive"),this.expectToken(b.TokenKind.AT);let P=this.parseName(),B=this.parseArgumentDefs(),Z=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let X=this.parseDirectiveLocations();return this.node(D,{kind:y.Kind.DIRECTIVE_DEFINITION,description:F,name:P,arguments:B,repeatable:Z,locations:X})}parseDirectiveLocations(){return this.delimitedMany(b.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let D=this._lexer.token,F=this.parseName();if(Object.prototype.hasOwnProperty.call(rG.DirectiveLocation,F.value))return F;throw this.unexpected(D)}node(D,F){if(this._options.noLocation!==!0)F.loc=new a8.Location(D,this._lexer.lastToken,this._lexer.source);return F}peek(D){return this._lexer.token.kind===D}expectToken(D){let F=this._lexer.token;if(F.kind===D)return this.advanceLexer(),F;throw(0,E0.syntaxError)(this._lexer.source,F.start,`Expected ${SB(D)}, found ${V1(F)}.`)}expectOptionalToken(D){if(this._lexer.token.kind===D)return this.advanceLexer(),!0;return!1}expectKeyword(D){let F=this._lexer.token;if(F.kind===b.TokenKind.NAME&&F.value===D)this.advanceLexer();else throw(0,E0.syntaxError)(this._lexer.source,F.start,`Expected "${D}", found ${V1(F)}.`)}expectOptionalKeyword(D){let F=this._lexer.token;if(F.kind===b.TokenKind.NAME&&F.value===D)return this.advanceLexer(),!0;return!1}unexpected(D){let F=D!==null&&D!==void 0?D:this._lexer.token;return(0,E0.syntaxError)(this._lexer.source,F.start,`Unexpected ${V1(F)}.`)}any(D,F,P){this.expectToken(D);let B=[];while(!this.expectOptionalToken(P))B.push(F.call(this));return B}optionalMany(D,F,P){if(this.expectOptionalToken(D)){let B=[];do B.push(F.call(this));while(!this.expectOptionalToken(P));return B}return[]}many(D,F,P){this.expectToken(D);let B=[];do B.push(F.call(this));while(!this.expectOptionalToken(P));return B}delimitedMany(D,F){this.expectOptionalToken(D);let P=[];do P.push(F.call(this));while(this.expectOptionalToken(D));return P}advanceLexer(){let{maxTokens:D}=this._options,F=this._lexer.advance();if(F.kind!==b.TokenKind.EOF){if(++this._tokenCounter,D!==void 0&&this._tokenCounter>D)throw(0,E0.syntaxError)(this._lexer.source,F.start,`Document contains more that ${D} tokens. Parsing aborted.`)}}}TB.Parser=X8;function V1(D){let F=D.value;return SB(D.kind)+(F!=null?` "${F}"`:"")}function SB(D){return(0,bB.isPunctuatorTokenKind)(D)?`"${D}"`:D}});var n2=Q((NB)=>{Object.defineProperty(NB,"__esModule",{value:!0});NB.didYouMean=PR;var FR=5;function PR(D,F){let[P,B]=F?[D,F]:[void 0,D],Z=" Did you mean ";if(P)Z+=P+" ";let X=B.map((Y)=>`"${Y}"`);switch(X.length){case 0:return"";case 1:return Z+X[0]+"?";case 2:return Z+X[0]+" or "+X[1]+"?"}let q=X.slice(0,FR),J=q.pop();return Z+q.join(", ")+", or "+J+"?"}});var kB=Q((_B)=>{Object.defineProperty(_B,"__esModule",{value:!0});_B.identityFunc=ZR;function ZR(D){return D}});var i2=Q((xB)=>{Object.defineProperty(xB,"__esModule",{value:!0});xB.keyMap=qR;function qR(D,F){let P=Object.create(null);for(let B of D)P[F(B)]=B;return P}});var s8=Q((fB)=>{Object.defineProperty(fB,"__esModule",{value:!0});fB.keyValMap=YR;function YR(D,F,P){let B=Object.create(null);for(let Z of D)B[F(Z)]=P(Z);return B}});var F4=Q((hB)=>{Object.defineProperty(hB,"__esModule",{value:!0});hB.mapValue=UR;function UR(D,F){let P=Object.create(null);for(let B of Object.keys(D))P[B]=F(D[B],B);return P}});var n8=Q((gB)=>{Object.defineProperty(gB,"__esModule",{value:!0});gB.naturalCompare=OR;function OR(D,F){let P=0,B=0;while(P<D.length&&B<F.length){let Z=D.charCodeAt(P),X=F.charCodeAt(B);if(w1(Z)&&w1(X)){let q=0;do++P,q=q*10+Z-P4,Z=D.charCodeAt(P);while(w1(Z)&&q>0);let J=0;do++B,J=J*10+X-P4,X=F.charCodeAt(B);while(w1(X)&&J>0);if(q<J)return-1;if(q>J)return 1}else{if(Z<X)return-1;if(Z>X)return 1;++P,++B}}return D.length-F.length}var P4=48,zR=57;function w1(D){return!isNaN(D)&&P4<=D&&D<=zR}});var o2=Q((mB)=>{Object.defineProperty(mB,"__esModule",{value:!0});mB.suggestionList=RR;var GR=n8();function RR(D,F){let P=Object.create(null),B=new yB(D),Z=Math.floor(D.length*0.4)+1;for(let X of F){let q=B.measure(X,Z);if(q!==void 0)P[X]=q}return Object.keys(P).sort((X,q)=>{let J=P[X]-P[q];return J!==0?J:(0,GR.naturalCompare)(X,q)})}class yB{constructor(D){this._input=D,this._inputLowerCase=D.toLowerCase(),this._inputArray=vB(this._inputLowerCase),this._rows=[new Array(D.length+1).fill(0),new Array(D.length+1).fill(0),new Array(D.length+1).fill(0)]}measure(D,F){if(this._input===D)return 0;let P=D.toLowerCase();if(this._inputLowerCase===P)return 1;let B=vB(P),Z=this._inputArray;if(B.length<Z.length){let H=B;B=Z,Z=H}let X=B.length,q=Z.length;if(X-q>F)return;let J=this._rows;for(let H=0;H<=q;H++)J[0][H]=H;for(let H=1;H<=X;H++){let U=J[(H-1)%3],W=J[H%3],O=W[0]=H;for(let z=1;z<=q;z++){let I=B[H-1]===Z[z-1]?0:1,R=Math.min(U[z]+1,W[z-1]+1,U[z-1]+I);if(H>1&&z>1&&B[H-1]===Z[z-2]&&B[H-2]===Z[z-1]){let $=J[(H-2)%3][z-2];R=Math.min(R,$+1)}if(R<O)O=R;W[z]=R}if(O>F)return}let Y=J[X%3][q];return Y<=F?Y:void 0}}function vB(D){let F=D.length,P=new Array(F);for(let B=0;B<F;++B)P[B]=D.charCodeAt(B);return P}});var j1=Q((lB)=>{Object.defineProperty(lB,"__esModule",{value:!0});lB.toObjMap=$R;function $R(D){if(D==null)return Object.create(null);if(Object.getPrototypeOf(D)===null)return D;let F=Object.create(null);for(let[P,B]of Object.entries(D))F[P]=B;return F}});var dB=Q((cB)=>{Object.defineProperty(cB,"__esModule",{value:!0});cB.printString=ER;function ER(D){return`"${D.replace(KR,AR)}"`}var KR=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function AR(D){return CR[D.charCodeAt(0)]}var CR=["\\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 K0=Q((rB)=>{Object.defineProperty(rB,"__esModule",{value:!0});rB.BREAK=void 0;rB.getEnterLeaveForKind=b1;rB.getVisitFn=SR;rB.visit=jR;rB.visitInParallel=bR;var VR=hD(),wR=ZD(),B4=A2(),pB=s(),J8=Object.freeze({});rB.BREAK=J8;function jR(D,F,P=B4.QueryDocumentKeys){let B=new Map;for(let K of Object.values(pB.Kind))B.set(K,b1(F,K));let Z=void 0,X=Array.isArray(D),q=[D],J=-1,Y=[],H=D,U=void 0,W=void 0,O=[],z=[];do{J++;let K=J===q.length,j=K&&Y.length!==0;if(K){if(U=z.length===0?void 0:O[O.length-1],H=W,W=z.pop(),j)if(X){H=H.slice();let S=0;for(let[C,u]of Y){let m=C-S;if(u===null)H.splice(m,1),S++;else H[m]=u}}else{H={...H};for(let[S,C]of Y)H[S]=C}J=Z.index,q=Z.keys,Y=Z.edits,X=Z.inArray,Z=Z.prev}else if(W){if(U=X?J:q[J],H=W[U],H===null||H===void 0)continue;O.push(U)}let A;if(!Array.isArray(H)){var I,R;(0,B4.isNode)(H)||(0,VR.devAssert)(!1,`Invalid AST Node: ${(0,wR.inspect)(H)}.`);let S=K?(I=B.get(H.kind))===null||I===void 0?void 0:I.leave:(R=B.get(H.kind))===null||R===void 0?void 0:R.enter;if(A=S===null||S===void 0?void 0:S.call(F,H,U,W,O,z),A===J8)break;if(A===!1){if(!K){O.pop();continue}}else if(A!==void 0){if(Y.push([U,A]),!K)if((0,B4.isNode)(A))H=A;else{O.pop();continue}}}if(A===void 0&&j)Y.push([U,H]);if(K)O.pop();else{var $;if(Z={inArray:X,index:J,keys:q,edits:Y,prev:Z},X=Array.isArray(H),q=X?H:($=P[H.kind])!==null&&$!==void 0?$:[],J=-1,Y=[],W)z.push(W);W=H}}while(Z!==void 0);if(Y.length!==0)return Y[Y.length-1][1];return D}function bR(D){let F=new Array(D.length).fill(null),P=Object.create(null);for(let B of Object.values(pB.Kind)){let Z=!1,X=new Array(D.length).fill(void 0),q=new Array(D.length).fill(void 0);for(let Y=0;Y<D.length;++Y){let{enter:H,leave:U}=b1(D[Y],B);Z||(Z=H!=null||U!=null),X[Y]=H,q[Y]=U}if(!Z)continue;let J={enter(...Y){let H=Y[0];for(let W=0;W<D.length;W++)if(F[W]===null){var U;let O=(U=X[W])===null||U===void 0?void 0:U.apply(D[W],Y);if(O===!1)F[W]=H;else if(O===J8)F[W]=J8;else if(O!==void 0)return O}},leave(...Y){let H=Y[0];for(let W=0;W<D.length;W++)if(F[W]===null){var U;let O=(U=q[W])===null||U===void 0?void 0:U.apply(D[W],Y);if(O===J8)F[W]=J8;else if(O!==void 0&&O!==!1)return O}else if(F[W]===H)F[W]=null}};P[B]=J}return P}function b1(D,F){let P=D[F];if(typeof P==="object")return P;else if(typeof P==="function")return{enter:P,leave:void 0};return{enter:D.enter,leave:D.leave}}function SR(D,F,P){let{enter:B,leave:Z}=b1(D,F);return P?Z:B}});var rD=Q((nB)=>{Object.defineProperty(nB,"__esModule",{value:!0});nB.print=hR;var kR=c8(),xR=dB(),fR=K0();function hR(D){return(0,fR.visit)(D,vR)}var gR=80,vR={Name:{leave:(D)=>D.value},Variable:{leave:(D)=>"$"+D.name},Document:{leave:(D)=>_(D.definitions,`
43
+ spurious results.`)}}return!1};CB.instanceOf=mG});var L1=Q((VB)=>{Object.defineProperty(VB,"__esModule",{value:!0});VB.Source=void 0;VB.isSource=dG;var e5=hD(),lG=ZD(),cG=r8();class D4{constructor(D,F="GraphQL request",P={line:1,column:1}){typeof D==="string"||(0,e5.devAssert)(!1,`Body must be a string. Received: ${(0,lG.inspect)(D)}.`),this.body=D,this.name=F,this.locationOffset=P,this.locationOffset.line>0||(0,e5.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,e5.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}VB.Source=D4;function dG(D){return(0,cG.instanceOf)(D,D4)}});var q8=Q((TB)=>{Object.defineProperty(TB,"__esModule",{value:!0});TB.Parser=void 0;TB.parse=aG;TB.parseConstValue=nG;TB.parseType=iG;TB.parseValue=sG;var E0=M1(),a8=A2(),rG=B8(),y=s(),bB=A1(),jB=L1(),b=d8();function aG(D,F){let P=new X8(D,F),B=P.parseDocument();return Object.defineProperty(B,"tokenCount",{enumerable:!1,value:P.tokenCount}),B}function sG(D,F){let P=new X8(D,F);P.expectToken(b.TokenKind.SOF);let B=P.parseValueLiteral(!1);return P.expectToken(b.TokenKind.EOF),B}function nG(D,F){let P=new X8(D,F);P.expectToken(b.TokenKind.SOF);let B=P.parseConstValueLiteral();return P.expectToken(b.TokenKind.EOF),B}function iG(D,F){let P=new X8(D,F);P.expectToken(b.TokenKind.SOF);let B=P.parseTypeReference();return P.expectToken(b.TokenKind.EOF),B}class X8{constructor(D,F={}){let P=(0,jB.isSource)(D)?D:new jB.Source(D);this._lexer=new bB.Lexer(P),this._options=F,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let D=this.expectToken(b.TokenKind.NAME);return this.node(D,{kind:y.Kind.NAME,value:D.value})}parseDocument(){return this.node(this._lexer.token,{kind:y.Kind.DOCUMENT,definitions:this.many(b.TokenKind.SOF,this.parseDefinition,b.TokenKind.EOF)})}parseDefinition(){if(this.peek(b.TokenKind.BRACE_L))return this.parseOperationDefinition();let D=this.peekDescription(),F=D?this._lexer.lookahead():this._lexer.token;if(F.kind===b.TokenKind.NAME){switch(F.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(D)throw(0,E0.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(F.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(F)}parseOperationDefinition(){let D=this._lexer.token;if(this.peek(b.TokenKind.BRACE_L))return this.node(D,{kind:y.Kind.OPERATION_DEFINITION,operation:a8.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let F=this.parseOperationType(),P;if(this.peek(b.TokenKind.NAME))P=this.parseName();return this.node(D,{kind:y.Kind.OPERATION_DEFINITION,operation:F,name:P,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let D=this.expectToken(b.TokenKind.NAME);switch(D.value){case"query":return a8.OperationTypeNode.QUERY;case"mutation":return a8.OperationTypeNode.MUTATION;case"subscription":return a8.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(D)}parseVariableDefinitions(){return this.optionalMany(b.TokenKind.PAREN_L,this.parseVariableDefinition,b.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:y.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(b.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(b.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let D=this._lexer.token;return this.expectToken(b.TokenKind.DOLLAR),this.node(D,{kind:y.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:y.Kind.SELECTION_SET,selections:this.many(b.TokenKind.BRACE_L,this.parseSelection,b.TokenKind.BRACE_R)})}parseSelection(){return this.peek(b.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let D=this._lexer.token,F=this.parseName(),P,B;if(this.expectOptionalToken(b.TokenKind.COLON))P=F,B=this.parseName();else B=F;return this.node(D,{kind:y.Kind.FIELD,alias:P,name:B,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(b.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(D){let F=D?this.parseConstArgument:this.parseArgument;return this.optionalMany(b.TokenKind.PAREN_L,F,b.TokenKind.PAREN_R)}parseArgument(D=!1){let F=this._lexer.token,P=this.parseName();return this.expectToken(b.TokenKind.COLON),this.node(F,{kind:y.Kind.ARGUMENT,name:P,value:this.parseValueLiteral(D)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let D=this._lexer.token;this.expectToken(b.TokenKind.SPREAD);let F=this.expectOptionalKeyword("on");if(!F&&this.peek(b.TokenKind.NAME))return this.node(D,{kind:y.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)});return this.node(D,{kind:y.Kind.INLINE_FRAGMENT,typeCondition:F?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let D=this._lexer.token;if(this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0)return this.node(D,{kind:y.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()});return this.node(D,{kind:y.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(D){let F=this._lexer.token;switch(F.kind){case b.TokenKind.BRACKET_L:return this.parseList(D);case b.TokenKind.BRACE_L:return this.parseObject(D);case b.TokenKind.INT:return this.advanceLexer(),this.node(F,{kind:y.Kind.INT,value:F.value});case b.TokenKind.FLOAT:return this.advanceLexer(),this.node(F,{kind:y.Kind.FLOAT,value:F.value});case b.TokenKind.STRING:case b.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case b.TokenKind.NAME:switch(this.advanceLexer(),F.value){case"true":return this.node(F,{kind:y.Kind.BOOLEAN,value:!0});case"false":return this.node(F,{kind:y.Kind.BOOLEAN,value:!1});case"null":return this.node(F,{kind:y.Kind.NULL});default:return this.node(F,{kind:y.Kind.ENUM,value:F.value})}case b.TokenKind.DOLLAR:if(D)if(this.expectToken(b.TokenKind.DOLLAR),this._lexer.token.kind===b.TokenKind.NAME){let P=this._lexer.token.value;throw(0,E0.syntaxError)(this._lexer.source,F.start,`Unexpected variable "$${P}" in constant value.`)}else throw this.unexpected(F);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let D=this._lexer.token;return this.advanceLexer(),this.node(D,{kind:y.Kind.STRING,value:D.value,block:D.kind===b.TokenKind.BLOCK_STRING})}parseList(D){let F=()=>this.parseValueLiteral(D);return this.node(this._lexer.token,{kind:y.Kind.LIST,values:this.any(b.TokenKind.BRACKET_L,F,b.TokenKind.BRACKET_R)})}parseObject(D){let F=()=>this.parseObjectField(D);return this.node(this._lexer.token,{kind:y.Kind.OBJECT,fields:this.any(b.TokenKind.BRACE_L,F,b.TokenKind.BRACE_R)})}parseObjectField(D){let F=this._lexer.token,P=this.parseName();return this.expectToken(b.TokenKind.COLON),this.node(F,{kind:y.Kind.OBJECT_FIELD,name:P,value:this.parseValueLiteral(D)})}parseDirectives(D){let F=[];while(this.peek(b.TokenKind.AT))F.push(this.parseDirective(D));return F}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(D){let F=this._lexer.token;return this.expectToken(b.TokenKind.AT),this.node(F,{kind:y.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(D)})}parseTypeReference(){let D=this._lexer.token,F;if(this.expectOptionalToken(b.TokenKind.BRACKET_L)){let P=this.parseTypeReference();this.expectToken(b.TokenKind.BRACKET_R),F=this.node(D,{kind:y.Kind.LIST_TYPE,type:P})}else F=this.parseNamedType();if(this.expectOptionalToken(b.TokenKind.BANG))return this.node(D,{kind:y.Kind.NON_NULL_TYPE,type:F});return F}parseNamedType(){return this.node(this._lexer.token,{kind:y.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(b.TokenKind.STRING)||this.peek(b.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("schema");let P=this.parseConstDirectives(),B=this.many(b.TokenKind.BRACE_L,this.parseOperationTypeDefinition,b.TokenKind.BRACE_R);return this.node(D,{kind:y.Kind.SCHEMA_DEFINITION,description:F,directives:P,operationTypes:B})}parseOperationTypeDefinition(){let D=this._lexer.token,F=this.parseOperationType();this.expectToken(b.TokenKind.COLON);let P=this.parseNamedType();return this.node(D,{kind:y.Kind.OPERATION_TYPE_DEFINITION,operation:F,type:P})}parseScalarTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("scalar");let P=this.parseName(),B=this.parseConstDirectives();return this.node(D,{kind:y.Kind.SCALAR_TYPE_DEFINITION,description:F,name:P,directives:B})}parseObjectTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("type");let P=this.parseName(),B=this.parseImplementsInterfaces(),Z=this.parseConstDirectives(),X=this.parseFieldsDefinition();return this.node(D,{kind:y.Kind.OBJECT_TYPE_DEFINITION,description:F,name:P,interfaces:B,directives:Z,fields:X})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(b.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(b.TokenKind.BRACE_L,this.parseFieldDefinition,b.TokenKind.BRACE_R)}parseFieldDefinition(){let D=this._lexer.token,F=this.parseDescription(),P=this.parseName(),B=this.parseArgumentDefs();this.expectToken(b.TokenKind.COLON);let Z=this.parseTypeReference(),X=this.parseConstDirectives();return this.node(D,{kind:y.Kind.FIELD_DEFINITION,description:F,name:P,arguments:B,type:Z,directives:X})}parseArgumentDefs(){return this.optionalMany(b.TokenKind.PAREN_L,this.parseInputValueDef,b.TokenKind.PAREN_R)}parseInputValueDef(){let D=this._lexer.token,F=this.parseDescription(),P=this.parseName();this.expectToken(b.TokenKind.COLON);let B=this.parseTypeReference(),Z;if(this.expectOptionalToken(b.TokenKind.EQUALS))Z=this.parseConstValueLiteral();let X=this.parseConstDirectives();return this.node(D,{kind:y.Kind.INPUT_VALUE_DEFINITION,description:F,name:P,type:B,defaultValue:Z,directives:X})}parseInterfaceTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("interface");let P=this.parseName(),B=this.parseImplementsInterfaces(),Z=this.parseConstDirectives(),X=this.parseFieldsDefinition();return this.node(D,{kind:y.Kind.INTERFACE_TYPE_DEFINITION,description:F,name:P,interfaces:B,directives:Z,fields:X})}parseUnionTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("union");let P=this.parseName(),B=this.parseConstDirectives(),Z=this.parseUnionMemberTypes();return this.node(D,{kind:y.Kind.UNION_TYPE_DEFINITION,description:F,name:P,directives:B,types:Z})}parseUnionMemberTypes(){return this.expectOptionalToken(b.TokenKind.EQUALS)?this.delimitedMany(b.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("enum");let P=this.parseName(),B=this.parseConstDirectives(),Z=this.parseEnumValuesDefinition();return this.node(D,{kind:y.Kind.ENUM_TYPE_DEFINITION,description:F,name:P,directives:B,values:Z})}parseEnumValuesDefinition(){return this.optionalMany(b.TokenKind.BRACE_L,this.parseEnumValueDefinition,b.TokenKind.BRACE_R)}parseEnumValueDefinition(){let D=this._lexer.token,F=this.parseDescription(),P=this.parseEnumValueName(),B=this.parseConstDirectives();return this.node(D,{kind:y.Kind.ENUM_VALUE_DEFINITION,description:F,name:P,directives:B})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,E0.syntaxError)(this._lexer.source,this._lexer.token.start,`${V1(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("input");let P=this.parseName(),B=this.parseConstDirectives(),Z=this.parseInputFieldsDefinition();return this.node(D,{kind:y.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:F,name:P,directives:B,fields:Z})}parseInputFieldsDefinition(){return this.optionalMany(b.TokenKind.BRACE_L,this.parseInputValueDef,b.TokenKind.BRACE_R)}parseTypeSystemExtension(){let D=this._lexer.lookahead();if(D.kind===b.TokenKind.NAME)switch(D.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(D)}parseSchemaExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let F=this.parseConstDirectives(),P=this.optionalMany(b.TokenKind.BRACE_L,this.parseOperationTypeDefinition,b.TokenKind.BRACE_R);if(F.length===0&&P.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.SCHEMA_EXTENSION,directives:F,operationTypes:P})}parseScalarTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let F=this.parseName(),P=this.parseConstDirectives();if(P.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.SCALAR_TYPE_EXTENSION,name:F,directives:P})}parseObjectTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let F=this.parseName(),P=this.parseImplementsInterfaces(),B=this.parseConstDirectives(),Z=this.parseFieldsDefinition();if(P.length===0&&B.length===0&&Z.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.OBJECT_TYPE_EXTENSION,name:F,interfaces:P,directives:B,fields:Z})}parseInterfaceTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let F=this.parseName(),P=this.parseImplementsInterfaces(),B=this.parseConstDirectives(),Z=this.parseFieldsDefinition();if(P.length===0&&B.length===0&&Z.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.INTERFACE_TYPE_EXTENSION,name:F,interfaces:P,directives:B,fields:Z})}parseUnionTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let F=this.parseName(),P=this.parseConstDirectives(),B=this.parseUnionMemberTypes();if(P.length===0&&B.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.UNION_TYPE_EXTENSION,name:F,directives:P,types:B})}parseEnumTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let F=this.parseName(),P=this.parseConstDirectives(),B=this.parseEnumValuesDefinition();if(P.length===0&&B.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.ENUM_TYPE_EXTENSION,name:F,directives:P,values:B})}parseInputObjectTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let F=this.parseName(),P=this.parseConstDirectives(),B=this.parseInputFieldsDefinition();if(P.length===0&&B.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:F,directives:P,fields:B})}parseDirectiveDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("directive"),this.expectToken(b.TokenKind.AT);let P=this.parseName(),B=this.parseArgumentDefs(),Z=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let X=this.parseDirectiveLocations();return this.node(D,{kind:y.Kind.DIRECTIVE_DEFINITION,description:F,name:P,arguments:B,repeatable:Z,locations:X})}parseDirectiveLocations(){return this.delimitedMany(b.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let D=this._lexer.token,F=this.parseName();if(Object.prototype.hasOwnProperty.call(rG.DirectiveLocation,F.value))return F;throw this.unexpected(D)}node(D,F){if(this._options.noLocation!==!0)F.loc=new a8.Location(D,this._lexer.lastToken,this._lexer.source);return F}peek(D){return this._lexer.token.kind===D}expectToken(D){let F=this._lexer.token;if(F.kind===D)return this.advanceLexer(),F;throw(0,E0.syntaxError)(this._lexer.source,F.start,`Expected ${SB(D)}, found ${V1(F)}.`)}expectOptionalToken(D){if(this._lexer.token.kind===D)return this.advanceLexer(),!0;return!1}expectKeyword(D){let F=this._lexer.token;if(F.kind===b.TokenKind.NAME&&F.value===D)this.advanceLexer();else throw(0,E0.syntaxError)(this._lexer.source,F.start,`Expected "${D}", found ${V1(F)}.`)}expectOptionalKeyword(D){let F=this._lexer.token;if(F.kind===b.TokenKind.NAME&&F.value===D)return this.advanceLexer(),!0;return!1}unexpected(D){let F=D!==null&&D!==void 0?D:this._lexer.token;return(0,E0.syntaxError)(this._lexer.source,F.start,`Unexpected ${V1(F)}.`)}any(D,F,P){this.expectToken(D);let B=[];while(!this.expectOptionalToken(P))B.push(F.call(this));return B}optionalMany(D,F,P){if(this.expectOptionalToken(D)){let B=[];do B.push(F.call(this));while(!this.expectOptionalToken(P));return B}return[]}many(D,F,P){this.expectToken(D);let B=[];do B.push(F.call(this));while(!this.expectOptionalToken(P));return B}delimitedMany(D,F){this.expectOptionalToken(D);let P=[];do P.push(F.call(this));while(this.expectOptionalToken(D));return P}advanceLexer(){let{maxTokens:D}=this._options,F=this._lexer.advance();if(F.kind!==b.TokenKind.EOF){if(++this._tokenCounter,D!==void 0&&this._tokenCounter>D)throw(0,E0.syntaxError)(this._lexer.source,F.start,`Document contains more that ${D} tokens. Parsing aborted.`)}}}TB.Parser=X8;function V1(D){let F=D.value;return SB(D.kind)+(F!=null?` "${F}"`:"")}function SB(D){return(0,bB.isPunctuatorTokenKind)(D)?`"${D}"`:D}});var n2=Q((NB)=>{Object.defineProperty(NB,"__esModule",{value:!0});NB.didYouMean=PR;var FR=5;function PR(D,F){let[P,B]=F?[D,F]:[void 0,D],Z=" Did you mean ";if(P)Z+=P+" ";let X=B.map((Y)=>`"${Y}"`);switch(X.length){case 0:return"";case 1:return Z+X[0]+"?";case 2:return Z+X[0]+" or "+X[1]+"?"}let q=X.slice(0,FR),J=q.pop();return Z+q.join(", ")+", or "+J+"?"}});var kB=Q((_B)=>{Object.defineProperty(_B,"__esModule",{value:!0});_B.identityFunc=ZR;function ZR(D){return D}});var i2=Q((xB)=>{Object.defineProperty(xB,"__esModule",{value:!0});xB.keyMap=qR;function qR(D,F){let P=Object.create(null);for(let B of D)P[F(B)]=B;return P}});var s8=Q((fB)=>{Object.defineProperty(fB,"__esModule",{value:!0});fB.keyValMap=YR;function YR(D,F,P){let B=Object.create(null);for(let Z of D)B[F(Z)]=P(Z);return B}});var F4=Q((hB)=>{Object.defineProperty(hB,"__esModule",{value:!0});hB.mapValue=UR;function UR(D,F){let P=Object.create(null);for(let B of Object.keys(D))P[B]=F(D[B],B);return P}});var n8=Q((gB)=>{Object.defineProperty(gB,"__esModule",{value:!0});gB.naturalCompare=OR;function OR(D,F){let P=0,B=0;while(P<D.length&&B<F.length){let Z=D.charCodeAt(P),X=F.charCodeAt(B);if(w1(Z)&&w1(X)){let q=0;do++P,q=q*10+Z-P4,Z=D.charCodeAt(P);while(w1(Z)&&q>0);let J=0;do++B,J=J*10+X-P4,X=F.charCodeAt(B);while(w1(X)&&J>0);if(q<J)return-1;if(q>J)return 1}else{if(Z<X)return-1;if(Z>X)return 1;++P,++B}}return D.length-F.length}var P4=48,zR=57;function w1(D){return!isNaN(D)&&P4<=D&&D<=zR}});var o2=Q((mB)=>{Object.defineProperty(mB,"__esModule",{value:!0});mB.suggestionList=RR;var GR=n8();function RR(D,F){let P=Object.create(null),B=new yB(D),Z=Math.floor(D.length*0.4)+1;for(let X of F){let q=B.measure(X,Z);if(q!==void 0)P[X]=q}return Object.keys(P).sort((X,q)=>{let J=P[X]-P[q];return J!==0?J:(0,GR.naturalCompare)(X,q)})}class yB{constructor(D){this._input=D,this._inputLowerCase=D.toLowerCase(),this._inputArray=vB(this._inputLowerCase),this._rows=[Array(D.length+1).fill(0),Array(D.length+1).fill(0),Array(D.length+1).fill(0)]}measure(D,F){if(this._input===D)return 0;let P=D.toLowerCase();if(this._inputLowerCase===P)return 1;let B=vB(P),Z=this._inputArray;if(B.length<Z.length){let H=B;B=Z,Z=H}let X=B.length,q=Z.length;if(X-q>F)return;let J=this._rows;for(let H=0;H<=q;H++)J[0][H]=H;for(let H=1;H<=X;H++){let U=J[(H-1)%3],W=J[H%3],O=W[0]=H;for(let z=1;z<=q;z++){let I=B[H-1]===Z[z-1]?0:1,R=Math.min(U[z]+1,W[z-1]+1,U[z-1]+I);if(H>1&&z>1&&B[H-1]===Z[z-2]&&B[H-2]===Z[z-1]){let $=J[(H-2)%3][z-2];R=Math.min(R,$+1)}if(R<O)O=R;W[z]=R}if(O>F)return}let Y=J[X%3][q];return Y<=F?Y:void 0}}function vB(D){let F=D.length,P=Array(F);for(let B=0;B<F;++B)P[B]=D.charCodeAt(B);return P}});var j1=Q((lB)=>{Object.defineProperty(lB,"__esModule",{value:!0});lB.toObjMap=$R;function $R(D){if(D==null)return Object.create(null);if(Object.getPrototypeOf(D)===null)return D;let F=Object.create(null);for(let[P,B]of Object.entries(D))F[P]=B;return F}});var dB=Q((cB)=>{Object.defineProperty(cB,"__esModule",{value:!0});cB.printString=ER;function ER(D){return`"${D.replace(KR,AR)}"`}var KR=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function AR(D){return CR[D.charCodeAt(0)]}var CR=["\\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 K0=Q((rB)=>{Object.defineProperty(rB,"__esModule",{value:!0});rB.BREAK=void 0;rB.getEnterLeaveForKind=b1;rB.getVisitFn=SR;rB.visit=jR;rB.visitInParallel=bR;var VR=hD(),wR=ZD(),B4=A2(),pB=s(),J8=Object.freeze({});rB.BREAK=J8;function jR(D,F,P=B4.QueryDocumentKeys){let B=new Map;for(let K of Object.values(pB.Kind))B.set(K,b1(F,K));let Z=void 0,X=Array.isArray(D),q=[D],J=-1,Y=[],H=D,U=void 0,W=void 0,O=[],z=[];do{J++;let K=J===q.length,j=K&&Y.length!==0;if(K){if(U=z.length===0?void 0:O[O.length-1],H=W,W=z.pop(),j)if(X){H=H.slice();let S=0;for(let[C,u]of Y){let m=C-S;if(u===null)H.splice(m,1),S++;else H[m]=u}}else{H={...H};for(let[S,C]of Y)H[S]=C}J=Z.index,q=Z.keys,Y=Z.edits,X=Z.inArray,Z=Z.prev}else if(W){if(U=X?J:q[J],H=W[U],H===null||H===void 0)continue;O.push(U)}let A;if(!Array.isArray(H)){var I,R;(0,B4.isNode)(H)||(0,VR.devAssert)(!1,`Invalid AST Node: ${(0,wR.inspect)(H)}.`);let S=K?(I=B.get(H.kind))===null||I===void 0?void 0:I.leave:(R=B.get(H.kind))===null||R===void 0?void 0:R.enter;if(A=S===null||S===void 0?void 0:S.call(F,H,U,W,O,z),A===J8)break;if(A===!1){if(!K){O.pop();continue}}else if(A!==void 0){if(Y.push([U,A]),!K)if((0,B4.isNode)(A))H=A;else{O.pop();continue}}}if(A===void 0&&j)Y.push([U,H]);if(K)O.pop();else{var $;if(Z={inArray:X,index:J,keys:q,edits:Y,prev:Z},X=Array.isArray(H),q=X?H:($=P[H.kind])!==null&&$!==void 0?$:[],J=-1,Y=[],W)z.push(W);W=H}}while(Z!==void 0);if(Y.length!==0)return Y[Y.length-1][1];return D}function bR(D){let F=Array(D.length).fill(null),P=Object.create(null);for(let B of Object.values(pB.Kind)){let Z=!1,X=Array(D.length).fill(void 0),q=Array(D.length).fill(void 0);for(let Y=0;Y<D.length;++Y){let{enter:H,leave:U}=b1(D[Y],B);Z||(Z=H!=null||U!=null),X[Y]=H,q[Y]=U}if(!Z)continue;let J={enter(...Y){let H=Y[0];for(let W=0;W<D.length;W++)if(F[W]===null){var U;let O=(U=X[W])===null||U===void 0?void 0:U.apply(D[W],Y);if(O===!1)F[W]=H;else if(O===J8)F[W]=J8;else if(O!==void 0)return O}},leave(...Y){let H=Y[0];for(let W=0;W<D.length;W++)if(F[W]===null){var U;let O=(U=q[W])===null||U===void 0?void 0:U.apply(D[W],Y);if(O===J8)F[W]=J8;else if(O!==void 0&&O!==!1)return O}else if(F[W]===H)F[W]=null}};P[B]=J}return P}function b1(D,F){let P=D[F];if(typeof P==="object")return P;else if(typeof P==="function")return{enter:P,leave:void 0};return{enter:D.enter,leave:D.leave}}function SR(D,F,P){let{enter:B,leave:Z}=b1(D,F);return P?Z:B}});var rD=Q((nB)=>{Object.defineProperty(nB,"__esModule",{value:!0});nB.print=hR;var kR=c8(),xR=dB(),fR=K0();function hR(D){return(0,fR.visit)(D,vR)}var gR=80,vR={Name:{leave:(D)=>D.value},Variable:{leave:(D)=>"$"+D.name},Document:{leave:(D)=>_(D.definitions,`
44
44
 
45
45
  `)},OperationDefinition:{leave(D){let F=a("(",_(D.variableDefinitions,", "),")"),P=_([D.operation,_([D.name,F]),_(D.directives," ")]," ");return(P==="query"?"":P+" ")+D.selectionSet}},VariableDefinition:{leave:({variable:D,type:F,defaultValue:P,directives:B})=>D+": "+F+a(" = ",P)+a(" ",_(B," "))},SelectionSet:{leave:({selections:D})=>W2(D)},Field:{leave({alias:D,name:F,arguments:P,directives:B,selectionSet:Z}){let X=a("",D,": ")+F,q=X+a("(",_(P,", "),")");if(q.length>gR)q=X+a(`(
46
46
  `,S1(_(P,`
@@ -67,15 +67,15 @@ spurious results.`)}}return!1};CB.instanceOf=mG});var L1=Q((VB)=>{Object.defineP
67
67
  `)),`
68
68
  }`)}function a(D,F,P=""){return F!=null&&F!==""?D+F+P:""}function S1(D){return a(" ",D.replace(/\n/g,`
69
69
  `))}function sB(D){var F;return(F=D===null||D===void 0?void 0:D.some((P)=>P.includes(`
70
- `)))!==null&&F!==void 0?F:!1}});var X4=Q((iB)=>{Object.defineProperty(iB,"__esModule",{value:!0});iB.valueFromASTUntyped=Z4;var mR=s8(),f2=s();function Z4(D,F){switch(D.kind){case f2.Kind.NULL:return null;case f2.Kind.INT:return parseInt(D.value,10);case f2.Kind.FLOAT:return parseFloat(D.value);case f2.Kind.STRING:case f2.Kind.ENUM:case f2.Kind.BOOLEAN:return D.value;case f2.Kind.LIST:return D.values.map((P)=>Z4(P,F));case f2.Kind.OBJECT:return(0,mR.keyValMap)(D.fields,(P)=>P.name.value,(P)=>Z4(P.value,F));case f2.Kind.VARIABLE:return F===null||F===void 0?void 0:F[D.name.value]}}});var i8=Q((DZ)=>{Object.defineProperty(DZ,"__esModule",{value:!0});DZ.assertEnumValueName=cR;DZ.assertName=eB;var oB=hD(),T1=g(),tB=E1();function eB(D){if(D!=null||(0,oB.devAssert)(!1,"Must provide name."),typeof D==="string"||(0,oB.devAssert)(!1,"Expected name to be a string."),D.length===0)throw new T1.GraphQLError("Expected name to be a non-empty string.");for(let F=1;F<D.length;++F)if(!(0,tB.isNameContinue)(D.charCodeAt(F)))throw new T1.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${D}" does not.`);if(!(0,tB.isNameStart)(D.charCodeAt(0)))throw new T1.GraphQLError(`Names must start with [_a-zA-Z] but "${D}" does not.`);return D}function cR(D){if(D==="true"||D==="false"||D==="null")throw new T1.GraphQLError(`Enum values cannot be named: ${D}`);return eB(D)}});var n=Q((QZ)=>{Object.defineProperty(QZ,"__esModule",{value:!0});QZ.GraphQLUnionType=QZ.GraphQLScalarType=QZ.GraphQLObjectType=QZ.GraphQLNonNull=QZ.GraphQLList=QZ.GraphQLInterfaceType=QZ.GraphQLInputObjectType=QZ.GraphQLEnumType=void 0;QZ.argsToArgsConfig=zZ;QZ.assertAbstractType=WI;QZ.assertCompositeType=UI;QZ.assertEnumType=BI;QZ.assertInputObjectType=ZI;QZ.assertInputType=JI;QZ.assertInterfaceType=FI;QZ.assertLeafType=HI;QZ.assertListType=XI;QZ.assertNamedType=GI;QZ.assertNonNullType=qI;QZ.assertNullableType=zI;QZ.assertObjectType=DI;QZ.assertOutputType=YI;QZ.assertScalarType=eR;QZ.assertType=tR;QZ.assertUnionType=PI;QZ.assertWrappingType=OI;QZ.defineArguments=WZ;QZ.getNamedType=RI;QZ.getNullableType=QI;QZ.isAbstractType=JZ;QZ.isCompositeType=qZ;QZ.isEnumType=V0;QZ.isInputObjectType=t8;QZ.isInputType=q4;QZ.isInterfaceType=C0;QZ.isLeafType=XZ;QZ.isListType=k1;QZ.isNamedType=YZ;QZ.isNonNullType=e2;QZ.isNullableType=U4;QZ.isObjectType=H8;QZ.isOutputType=J4;QZ.isRequiredArgument=II;QZ.isRequiredInputField=EI;QZ.isScalarType=A0;QZ.isType=_1;QZ.isUnionType=L0;QZ.isWrappingType=e8;QZ.resolveObjMapThunk=O4;QZ.resolveReadonlyArrayThunk=W4;var SD=hD(),rR=n2(),FZ=kB(),YD=ZD(),t2=r8(),aR=K2(),sR=i2(),ZZ=s8(),N1=F4(),nR=o2(),C2=j1(),o8=g(),iR=s(),PZ=rD(),oR=X4(),L2=i8();function _1(D){return A0(D)||H8(D)||C0(D)||L0(D)||V0(D)||t8(D)||k1(D)||e2(D)}function tR(D){if(!_1(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL type.`);return D}function A0(D){return(0,t2.instanceOf)(D,z4)}function eR(D){if(!A0(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Scalar type.`);return D}function H8(D){return(0,t2.instanceOf)(D,Q4)}function DI(D){if(!H8(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Object type.`);return D}function C0(D){return(0,t2.instanceOf)(D,G4)}function FI(D){if(!C0(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Interface type.`);return D}function L0(D){return(0,t2.instanceOf)(D,R4)}function PI(D){if(!L0(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Union type.`);return D}function V0(D){return(0,t2.instanceOf)(D,I4)}function BI(D){if(!V0(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Enum type.`);return D}function t8(D){return(0,t2.instanceOf)(D,$4)}function ZI(D){if(!t8(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Input Object type.`);return D}function k1(D){return(0,t2.instanceOf)(D,Y4)}function XI(D){if(!k1(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL List type.`);return D}function e2(D){return(0,t2.instanceOf)(D,H4)}function qI(D){if(!e2(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Non-Null type.`);return D}function q4(D){return A0(D)||V0(D)||t8(D)||e8(D)&&q4(D.ofType)}function JI(D){if(!q4(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL input type.`);return D}function J4(D){return A0(D)||H8(D)||C0(D)||L0(D)||V0(D)||e8(D)&&J4(D.ofType)}function YI(D){if(!J4(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL output type.`);return D}function XZ(D){return A0(D)||V0(D)}function HI(D){if(!XZ(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL leaf type.`);return D}function qZ(D){return H8(D)||C0(D)||L0(D)}function UI(D){if(!qZ(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL composite type.`);return D}function JZ(D){return C0(D)||L0(D)}function WI(D){if(!JZ(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL abstract type.`);return D}class Y4{constructor(D){_1(D)||(0,SD.devAssert)(!1,`Expected ${(0,YD.inspect)(D)} to be a GraphQL type.`),this.ofType=D}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}QZ.GraphQLList=Y4;class H4{constructor(D){U4(D)||(0,SD.devAssert)(!1,`Expected ${(0,YD.inspect)(D)} to be a GraphQL nullable type.`),this.ofType=D}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}QZ.GraphQLNonNull=H4;function e8(D){return k1(D)||e2(D)}function OI(D){if(!e8(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL wrapping type.`);return D}function U4(D){return _1(D)&&!e2(D)}function zI(D){if(!U4(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL nullable type.`);return D}function QI(D){if(D)return e2(D)?D.ofType:D}function YZ(D){return A0(D)||H8(D)||C0(D)||L0(D)||V0(D)||t8(D)}function GI(D){if(!YZ(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL named type.`);return D}function RI(D){if(D){let F=D;while(e8(F))F=F.ofType;return F}}function W4(D){return typeof D==="function"?D():D}function O4(D){return typeof D==="function"?D():D}class z4{constructor(D){var F,P,B,Z;let X=(F=D.parseValue)!==null&&F!==void 0?F:FZ.identityFunc;if(this.name=(0,L2.assertName)(D.name),this.description=D.description,this.specifiedByURL=D.specifiedByURL,this.serialize=(P=D.serialize)!==null&&P!==void 0?P:FZ.identityFunc,this.parseValue=X,this.parseLiteral=(B=D.parseLiteral)!==null&&B!==void 0?B:(q,J)=>X((0,oR.valueFromASTUntyped)(q,J)),this.extensions=(0,C2.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(Z=D.extensionASTNodes)!==null&&Z!==void 0?Z:[],D.specifiedByURL==null||typeof D.specifiedByURL==="string"||(0,SD.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,YD.inspect)(D.specifiedByURL)}.`),D.serialize==null||typeof D.serialize==="function"||(0,SD.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.`),D.parseLiteral)typeof D.parseValue==="function"&&typeof D.parseLiteral==="function"||(0,SD.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()}}QZ.GraphQLScalarType=z4;class Q4{constructor(D){var F;this.name=(0,L2.assertName)(D.name),this.description=D.description,this.isTypeOf=D.isTypeOf,this.extensions=(0,C2.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._fields=()=>UZ(D),this._interfaces=()=>HZ(D),D.isTypeOf==null||typeof D.isTypeOf==="function"||(0,SD.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,YD.inspect)(D.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){if(typeof this._fields==="function")this._fields=this._fields();return this._fields}getInterfaces(){if(typeof this._interfaces==="function")this._interfaces=this._interfaces();return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:OZ(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}QZ.GraphQLObjectType=Q4;function HZ(D){var F;let P=W4((F=D.interfaces)!==null&&F!==void 0?F:[]);return Array.isArray(P)||(0,SD.devAssert)(!1,`${D.name} interfaces must be an Array or a function which returns an Array.`),P}function UZ(D){let F=O4(D.fields);return Y8(F)||(0,SD.devAssert)(!1,`${D.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,N1.mapValue)(F,(P,B)=>{var Z;Y8(P)||(0,SD.devAssert)(!1,`${D.name}.${B} field config must be an object.`),P.resolve==null||typeof P.resolve==="function"||(0,SD.devAssert)(!1,`${D.name}.${B} field resolver must be a function if provided, but got: ${(0,YD.inspect)(P.resolve)}.`);let X=(Z=P.args)!==null&&Z!==void 0?Z:{};return Y8(X)||(0,SD.devAssert)(!1,`${D.name}.${B} args must be an object with argument names as keys.`),{name:(0,L2.assertName)(B),description:P.description,type:P.type,args:WZ(X),resolve:P.resolve,subscribe:P.subscribe,deprecationReason:P.deprecationReason,extensions:(0,C2.toObjMap)(P.extensions),astNode:P.astNode}})}function WZ(D){return Object.entries(D).map(([F,P])=>({name:(0,L2.assertName)(F),description:P.description,type:P.type,defaultValue:P.defaultValue,deprecationReason:P.deprecationReason,extensions:(0,C2.toObjMap)(P.extensions),astNode:P.astNode}))}function Y8(D){return(0,aR.isObjectLike)(D)&&!Array.isArray(D)}function OZ(D){return(0,N1.mapValue)(D,(F)=>({description:F.description,type:F.type,args:zZ(F.args),resolve:F.resolve,subscribe:F.subscribe,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}))}function zZ(D){return(0,ZZ.keyValMap)(D,(F)=>F.name,(F)=>({description:F.description,type:F.type,defaultValue:F.defaultValue,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}))}function II(D){return e2(D.type)&&D.defaultValue===void 0}class G4{constructor(D){var F;this.name=(0,L2.assertName)(D.name),this.description=D.description,this.resolveType=D.resolveType,this.extensions=(0,C2.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._fields=UZ.bind(void 0,D),this._interfaces=HZ.bind(void 0,D),D.resolveType==null||typeof D.resolveType==="function"||(0,SD.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,YD.inspect)(D.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){if(typeof this._fields==="function")this._fields=this._fields();return this._fields}getInterfaces(){if(typeof this._interfaces==="function")this._interfaces=this._interfaces();return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:OZ(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}QZ.GraphQLInterfaceType=G4;class R4{constructor(D){var F;this.name=(0,L2.assertName)(D.name),this.description=D.description,this.resolveType=D.resolveType,this.extensions=(0,C2.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._types=$I.bind(void 0,D),D.resolveType==null||typeof D.resolveType==="function"||(0,SD.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,YD.inspect)(D.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){if(typeof this._types==="function")this._types=this._types();return 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()}}QZ.GraphQLUnionType=R4;function $I(D){let F=W4(D.types);return Array.isArray(F)||(0,SD.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${D.name}.`),F}class I4{constructor(D){var F;this.name=(0,L2.assertName)(D.name),this.description=D.description,this.extensions=(0,C2.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._values=typeof D.values==="function"?D.values:BZ(this.name,D.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){if(typeof this._values==="function")this._values=BZ(this.name,this._values());return this._values}getValue(D){if(this._nameLookup===null)this._nameLookup=(0,sR.keyMap)(this.getValues(),(F)=>F.name);return this._nameLookup[D]}serialize(D){if(this._valueLookup===null)this._valueLookup=new Map(this.getValues().map((P)=>[P.value,P]));let F=this._valueLookup.get(D);if(F===void 0)throw new o8.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,YD.inspect)(D)}`);return F.name}parseValue(D){if(typeof D!=="string"){let P=(0,YD.inspect)(D);throw new o8.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${P}.`+u1(this,P))}let F=this.getValue(D);if(F==null)throw new o8.GraphQLError(`Value "${D}" does not exist in "${this.name}" enum.`+u1(this,D));return F.value}parseLiteral(D,F){if(D.kind!==iR.Kind.ENUM){let B=(0,PZ.print)(D);throw new o8.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${B}.`+u1(this,B),{nodes:D})}let P=this.getValue(D.value);if(P==null){let B=(0,PZ.print)(D);throw new o8.GraphQLError(`Value "${B}" does not exist in "${this.name}" enum.`+u1(this,B),{nodes:D})}return P.value}toConfig(){let D=(0,ZZ.keyValMap)(this.getValues(),(F)=>F.name,(F)=>({description:F.description,value:F.value,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}));return{name:this.name,description:this.description,values:D,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}QZ.GraphQLEnumType=I4;function u1(D,F){let P=D.getValues().map((Z)=>Z.name),B=(0,nR.suggestionList)(F,P);return(0,rR.didYouMean)("the enum value",B)}function BZ(D,F){return Y8(F)||(0,SD.devAssert)(!1,`${D} values must be an object with value names as keys.`),Object.entries(F).map(([P,B])=>{return Y8(B)||(0,SD.devAssert)(!1,`${D}.${P} must refer to an object with a "value" key representing an internal value but got: ${(0,YD.inspect)(B)}.`),{name:(0,L2.assertEnumValueName)(P),description:B.description,value:B.value!==void 0?B.value:P,deprecationReason:B.deprecationReason,extensions:(0,C2.toObjMap)(B.extensions),astNode:B.astNode}})}class $4{constructor(D){var F,P;this.name=(0,L2.assertName)(D.name),this.description=D.description,this.extensions=(0,C2.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this.isOneOf=(P=D.isOneOf)!==null&&P!==void 0?P:!1,this._fields=MI.bind(void 0,D)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){if(typeof this._fields==="function")this._fields=this._fields();return this._fields}toConfig(){let D=(0,N1.mapValue)(this.getFields(),(F)=>({description:F.description,type:F.type,defaultValue:F.defaultValue,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}));return{name:this.name,description:this.description,fields:D,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}QZ.GraphQLInputObjectType=$4;function MI(D){let F=O4(D.fields);return Y8(F)||(0,SD.devAssert)(!1,`${D.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,N1.mapValue)(F,(P,B)=>{return!("resolve"in P)||(0,SD.devAssert)(!1,`${D.name}.${B} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,L2.assertName)(B),description:P.description,type:P.type,defaultValue:P.defaultValue,deprecationReason:P.deprecationReason,extensions:(0,C2.toObjMap)(P.extensions),astNode:P.astNode}})}function EI(D){return e2(D.type)&&D.defaultValue===void 0}});var D6=Q((RZ)=>{Object.defineProperty(RZ,"__esModule",{value:!0});RZ.doTypesOverlap=R$;RZ.isEqualType=M4;RZ.isTypeSubTypeOf=x1;var xD=n();function M4(D,F){if(D===F)return!0;if((0,xD.isNonNullType)(D)&&(0,xD.isNonNullType)(F))return M4(D.ofType,F.ofType);if((0,xD.isListType)(D)&&(0,xD.isListType)(F))return M4(D.ofType,F.ofType);return!1}function x1(D,F,P){if(F===P)return!0;if((0,xD.isNonNullType)(P)){if((0,xD.isNonNullType)(F))return x1(D,F.ofType,P.ofType);return!1}if((0,xD.isNonNullType)(F))return x1(D,F.ofType,P);if((0,xD.isListType)(P)){if((0,xD.isListType)(F))return x1(D,F.ofType,P.ofType);return!1}if((0,xD.isListType)(F))return!1;return(0,xD.isAbstractType)(P)&&((0,xD.isInterfaceType)(F)||(0,xD.isObjectType)(F))&&D.isSubType(P,F)}function R$(D,F,P){if(F===P)return!0;if((0,xD.isAbstractType)(F)){if((0,xD.isAbstractType)(P))return D.getPossibleTypes(F).some((B)=>D.isSubType(P,B));return D.isSubType(F,P)}if((0,xD.isAbstractType)(P))return D.isSubType(P,F);return!1}});var V2=Q((LZ)=>{Object.defineProperty(LZ,"__esModule",{value:!0});LZ.GraphQLString=LZ.GraphQLInt=LZ.GraphQLID=LZ.GraphQLFloat=LZ.GraphQLBoolean=LZ.GRAPHQL_MIN_INT=LZ.GRAPHQL_MAX_INT=void 0;LZ.isSpecifiedScalarType=E$;LZ.specifiedScalarTypes=void 0;var O2=ZD(),IZ=K2(),TD=g(),w0=s(),F6=rD(),P6=n(),f1=2147483647;LZ.GRAPHQL_MAX_INT=f1;var h1=-2147483648;LZ.GRAPHQL_MIN_INT=h1;var $Z=new P6.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(D){let F=B6(D);if(typeof F==="boolean")return F?1:0;let P=F;if(typeof F==="string"&&F!=="")P=Number(F);if(typeof P!=="number"||!Number.isInteger(P))throw new TD.GraphQLError(`Int cannot represent non-integer value: ${(0,O2.inspect)(F)}`);if(P>f1||P<h1)throw new TD.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,O2.inspect)(F));return P},parseValue(D){if(typeof D!=="number"||!Number.isInteger(D))throw new TD.GraphQLError(`Int cannot represent non-integer value: ${(0,O2.inspect)(D)}`);if(D>f1||D<h1)throw new TD.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${D}`);return D},parseLiteral(D){if(D.kind!==w0.Kind.INT)throw new TD.GraphQLError(`Int cannot represent non-integer value: ${(0,F6.print)(D)}`,{nodes:D});let F=parseInt(D.value,10);if(F>f1||F<h1)throw new TD.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${D.value}`,{nodes:D});return F}});LZ.GraphQLInt=$Z;var MZ=new P6.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(D){let F=B6(D);if(typeof F==="boolean")return F?1:0;let P=F;if(typeof F==="string"&&F!=="")P=Number(F);if(typeof P!=="number"||!Number.isFinite(P))throw new TD.GraphQLError(`Float cannot represent non numeric value: ${(0,O2.inspect)(F)}`);return P},parseValue(D){if(typeof D!=="number"||!Number.isFinite(D))throw new TD.GraphQLError(`Float cannot represent non numeric value: ${(0,O2.inspect)(D)}`);return D},parseLiteral(D){if(D.kind!==w0.Kind.FLOAT&&D.kind!==w0.Kind.INT)throw new TD.GraphQLError(`Float cannot represent non numeric value: ${(0,F6.print)(D)}`,D);return parseFloat(D.value)}});LZ.GraphQLFloat=MZ;var EZ=new P6.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(D){let F=B6(D);if(typeof F==="string")return F;if(typeof F==="boolean")return F?"true":"false";if(typeof F==="number"&&Number.isFinite(F))return F.toString();throw new TD.GraphQLError(`String cannot represent value: ${(0,O2.inspect)(D)}`)},parseValue(D){if(typeof D!=="string")throw new TD.GraphQLError(`String cannot represent a non string value: ${(0,O2.inspect)(D)}`);return D},parseLiteral(D){if(D.kind!==w0.Kind.STRING)throw new TD.GraphQLError(`String cannot represent a non string value: ${(0,F6.print)(D)}`,{nodes:D});return D.value}});LZ.GraphQLString=EZ;var KZ=new P6.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(D){let F=B6(D);if(typeof F==="boolean")return F;if(Number.isFinite(F))return F!==0;throw new TD.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,O2.inspect)(F)}`)},parseValue(D){if(typeof D!=="boolean")throw new TD.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,O2.inspect)(D)}`);return D},parseLiteral(D){if(D.kind!==w0.Kind.BOOLEAN)throw new TD.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,F6.print)(D)}`,{nodes:D});return D.value}});LZ.GraphQLBoolean=KZ;var AZ=new P6.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(D){let F=B6(D);if(typeof F==="string")return F;if(Number.isInteger(F))return String(F);throw new TD.GraphQLError(`ID cannot represent value: ${(0,O2.inspect)(D)}`)},parseValue(D){if(typeof D==="string")return D;if(typeof D==="number"&&Number.isInteger(D))return D.toString();throw new TD.GraphQLError(`ID cannot represent value: ${(0,O2.inspect)(D)}`)},parseLiteral(D){if(D.kind!==w0.Kind.STRING&&D.kind!==w0.Kind.INT)throw new TD.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,F6.print)(D),{nodes:D});return D.value}});LZ.GraphQLID=AZ;var CZ=Object.freeze([EZ,$Z,MZ,KZ,AZ]);LZ.specifiedScalarTypes=CZ;function E$(D){return CZ.some(({name:F})=>D.name===F)}function B6(D){if((0,IZ.isObjectLike)(D)){if(typeof D.valueOf==="function"){let F=D.valueOf();if(!(0,IZ.isObjectLike)(F))return F}if(typeof D.toJSON==="function")return D.toJSON()}return D}});var yD=Q((fZ)=>{Object.defineProperty(fZ,"__esModule",{value:!0});fZ.GraphQLSpecifiedByDirective=fZ.GraphQLSkipDirective=fZ.GraphQLOneOfDirective=fZ.GraphQLIncludeDirective=fZ.GraphQLDirective=fZ.GraphQLDeprecatedDirective=fZ.DEFAULT_DEPRECATION_REASON=void 0;fZ.assertDirective=_$;fZ.isDirective=bZ;fZ.isSpecifiedDirective=k$;fZ.specifiedDirectives=void 0;var jZ=hD(),b$=ZD(),S$=r8(),T$=K2(),u$=j1(),nD=B8(),N$=i8(),Z6=n(),g1=V2();function bZ(D){return(0,S$.instanceOf)(D,D0)}function _$(D){if(!bZ(D))throw new Error(`Expected ${(0,b$.inspect)(D)} to be a GraphQL directive.`);return D}class D0{constructor(D){var F,P;this.name=(0,N$.assertName)(D.name),this.description=D.description,this.locations=D.locations,this.isRepeatable=(F=D.isRepeatable)!==null&&F!==void 0?F:!1,this.extensions=(0,u$.toObjMap)(D.extensions),this.astNode=D.astNode,Array.isArray(D.locations)||(0,jZ.devAssert)(!1,`@${D.name} locations must be an Array.`);let B=(P=D.args)!==null&&P!==void 0?P:{};(0,T$.isObjectLike)(B)&&!Array.isArray(B)||(0,jZ.devAssert)(!1,`@${D.name} args must be an object with argument names as keys.`),this.args=(0,Z6.defineArguments)(B)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,Z6.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}fZ.GraphQLDirective=D0;var SZ=new D0({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[nD.DirectiveLocation.FIELD,nD.DirectiveLocation.FRAGMENT_SPREAD,nD.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Z6.GraphQLNonNull(g1.GraphQLBoolean),description:"Included when true."}}});fZ.GraphQLIncludeDirective=SZ;var TZ=new D0({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[nD.DirectiveLocation.FIELD,nD.DirectiveLocation.FRAGMENT_SPREAD,nD.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Z6.GraphQLNonNull(g1.GraphQLBoolean),description:"Skipped when true."}}});fZ.GraphQLSkipDirective=TZ;var uZ="No longer supported";fZ.DEFAULT_DEPRECATION_REASON=uZ;var NZ=new D0({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[nD.DirectiveLocation.FIELD_DEFINITION,nD.DirectiveLocation.ARGUMENT_DEFINITION,nD.DirectiveLocation.INPUT_FIELD_DEFINITION,nD.DirectiveLocation.ENUM_VALUE],args:{reason:{type:g1.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:uZ}}});fZ.GraphQLDeprecatedDirective=NZ;var _Z=new D0({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[nD.DirectiveLocation.SCALAR],args:{url:{type:new Z6.GraphQLNonNull(g1.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});fZ.GraphQLSpecifiedByDirective=_Z;var kZ=new D0({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[nD.DirectiveLocation.INPUT_OBJECT],args:{}});fZ.GraphQLOneOfDirective=kZ;var xZ=Object.freeze([SZ,TZ,NZ,_Z,kZ]);fZ.specifiedDirectives=xZ;function k$(D){return xZ.some(({name:F})=>F===D.name)}});var v1=Q((vZ)=>{Object.defineProperty(vZ,"__esModule",{value:!0});vZ.isIterableObject=d$;function d$(D){return typeof D==="object"&&typeof(D===null||D===void 0?void 0:D[Symbol.iterator])==="function"}});var J6=Q((lZ)=>{Object.defineProperty(lZ,"__esModule",{value:!0});lZ.astFromValue=q6;var yZ=ZD(),r$=kD(),a$=v1(),s$=K2(),iD=s(),X6=n(),n$=V2();function q6(D,F){if((0,X6.isNonNullType)(F)){let P=q6(D,F.ofType);if((P===null||P===void 0?void 0:P.kind)===iD.Kind.NULL)return null;return P}if(D===null)return{kind:iD.Kind.NULL};if(D===void 0)return null;if((0,X6.isListType)(F)){let P=F.ofType;if((0,a$.isIterableObject)(D)){let B=[];for(let Z of D){let X=q6(Z,P);if(X!=null)B.push(X)}return{kind:iD.Kind.LIST,values:B}}return q6(D,P)}if((0,X6.isInputObjectType)(F)){if(!(0,s$.isObjectLike)(D))return null;let P=[];for(let B of Object.values(F.getFields())){let Z=q6(D[B.name],B.type);if(Z)P.push({kind:iD.Kind.OBJECT_FIELD,name:{kind:iD.Kind.NAME,value:B.name},value:Z})}return{kind:iD.Kind.OBJECT,fields:P}}if((0,X6.isLeafType)(F)){let P=F.serialize(D);if(P==null)return null;if(typeof P==="boolean")return{kind:iD.Kind.BOOLEAN,value:P};if(typeof P==="number"&&Number.isFinite(P)){let B=String(P);return mZ.test(B)?{kind:iD.Kind.INT,value:B}:{kind:iD.Kind.FLOAT,value:B}}if(typeof P==="string"){if((0,X6.isEnumType)(F))return{kind:iD.Kind.ENUM,value:P};if(F===n$.GraphQLID&&mZ.test(P))return{kind:iD.Kind.INT,value:P};return{kind:iD.Kind.STRING,value:P}}throw new TypeError(`Cannot convert value to AST: ${(0,yZ.inspect)(P)}.`)}(0,r$.invariant)(!1,"Unexpected input type: "+(0,yZ.inspect)(F))}var mZ=/^-?(?:0|[1-9][0-9]*)$/});var tD=Q((dZ)=>{Object.defineProperty(dZ,"__esModule",{value:!0});dZ.introspectionTypes=dZ.__TypeKind=dZ.__Type=dZ.__Schema=dZ.__InputValue=dZ.__Field=dZ.__EnumValue=dZ.__DirectiveLocation=dZ.__Directive=dZ.TypeNameMetaFieldDef=dZ.TypeMetaFieldDef=dZ.TypeKind=dZ.SchemaMetaFieldDef=void 0;dZ.isIntrospectionType=ZM;var o$=ZD(),t$=kD(),VD=B8(),e$=rD(),DM=J6(),N=n(),JD=V2(),E4=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:JD.GraphQLString,resolve:(D)=>D.description},types:{description:"A list of all types supported by this server.",type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(oD))),resolve(D){return Object.values(D.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new N.GraphQLNonNull(oD),resolve:(D)=>D.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:oD,resolve:(D)=>D.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:oD,resolve:(D)=>D.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(K4))),resolve:(D)=>D.getDirectives()}})});dZ.__Schema=E4;var K4=new N.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
70
+ `)))!==null&&F!==void 0?F:!1}});var X4=Q((iB)=>{Object.defineProperty(iB,"__esModule",{value:!0});iB.valueFromASTUntyped=Z4;var mR=s8(),f2=s();function Z4(D,F){switch(D.kind){case f2.Kind.NULL:return null;case f2.Kind.INT:return parseInt(D.value,10);case f2.Kind.FLOAT:return parseFloat(D.value);case f2.Kind.STRING:case f2.Kind.ENUM:case f2.Kind.BOOLEAN:return D.value;case f2.Kind.LIST:return D.values.map((P)=>Z4(P,F));case f2.Kind.OBJECT:return(0,mR.keyValMap)(D.fields,(P)=>P.name.value,(P)=>Z4(P.value,F));case f2.Kind.VARIABLE:return F===null||F===void 0?void 0:F[D.name.value]}}});var i8=Q((DZ)=>{Object.defineProperty(DZ,"__esModule",{value:!0});DZ.assertEnumValueName=cR;DZ.assertName=eB;var oB=hD(),T1=g(),tB=E1();function eB(D){if(D!=null||(0,oB.devAssert)(!1,"Must provide name."),typeof D==="string"||(0,oB.devAssert)(!1,"Expected name to be a string."),D.length===0)throw new T1.GraphQLError("Expected name to be a non-empty string.");for(let F=1;F<D.length;++F)if(!(0,tB.isNameContinue)(D.charCodeAt(F)))throw new T1.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${D}" does not.`);if(!(0,tB.isNameStart)(D.charCodeAt(0)))throw new T1.GraphQLError(`Names must start with [_a-zA-Z] but "${D}" does not.`);return D}function cR(D){if(D==="true"||D==="false"||D==="null")throw new T1.GraphQLError(`Enum values cannot be named: ${D}`);return eB(D)}});var n=Q((QZ)=>{Object.defineProperty(QZ,"__esModule",{value:!0});QZ.GraphQLUnionType=QZ.GraphQLScalarType=QZ.GraphQLObjectType=QZ.GraphQLNonNull=QZ.GraphQLList=QZ.GraphQLInterfaceType=QZ.GraphQLInputObjectType=QZ.GraphQLEnumType=void 0;QZ.argsToArgsConfig=zZ;QZ.assertAbstractType=WI;QZ.assertCompositeType=UI;QZ.assertEnumType=BI;QZ.assertInputObjectType=ZI;QZ.assertInputType=JI;QZ.assertInterfaceType=FI;QZ.assertLeafType=HI;QZ.assertListType=XI;QZ.assertNamedType=GI;QZ.assertNonNullType=qI;QZ.assertNullableType=zI;QZ.assertObjectType=DI;QZ.assertOutputType=YI;QZ.assertScalarType=eR;QZ.assertType=tR;QZ.assertUnionType=PI;QZ.assertWrappingType=OI;QZ.defineArguments=WZ;QZ.getNamedType=RI;QZ.getNullableType=QI;QZ.isAbstractType=JZ;QZ.isCompositeType=qZ;QZ.isEnumType=V0;QZ.isInputObjectType=t8;QZ.isInputType=q4;QZ.isInterfaceType=C0;QZ.isLeafType=XZ;QZ.isListType=k1;QZ.isNamedType=YZ;QZ.isNonNullType=e2;QZ.isNullableType=U4;QZ.isObjectType=H8;QZ.isOutputType=J4;QZ.isRequiredArgument=II;QZ.isRequiredInputField=EI;QZ.isScalarType=A0;QZ.isType=_1;QZ.isUnionType=L0;QZ.isWrappingType=e8;QZ.resolveObjMapThunk=O4;QZ.resolveReadonlyArrayThunk=W4;var SD=hD(),rR=n2(),FZ=kB(),YD=ZD(),t2=r8(),aR=K2(),sR=i2(),ZZ=s8(),N1=F4(),nR=o2(),C2=j1(),o8=g(),iR=s(),PZ=rD(),oR=X4(),L2=i8();function _1(D){return A0(D)||H8(D)||C0(D)||L0(D)||V0(D)||t8(D)||k1(D)||e2(D)}function tR(D){if(!_1(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL type.`);return D}function A0(D){return(0,t2.instanceOf)(D,z4)}function eR(D){if(!A0(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Scalar type.`);return D}function H8(D){return(0,t2.instanceOf)(D,Q4)}function DI(D){if(!H8(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Object type.`);return D}function C0(D){return(0,t2.instanceOf)(D,G4)}function FI(D){if(!C0(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Interface type.`);return D}function L0(D){return(0,t2.instanceOf)(D,R4)}function PI(D){if(!L0(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Union type.`);return D}function V0(D){return(0,t2.instanceOf)(D,I4)}function BI(D){if(!V0(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Enum type.`);return D}function t8(D){return(0,t2.instanceOf)(D,$4)}function ZI(D){if(!t8(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Input Object type.`);return D}function k1(D){return(0,t2.instanceOf)(D,Y4)}function XI(D){if(!k1(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL List type.`);return D}function e2(D){return(0,t2.instanceOf)(D,H4)}function qI(D){if(!e2(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Non-Null type.`);return D}function q4(D){return A0(D)||V0(D)||t8(D)||e8(D)&&q4(D.ofType)}function JI(D){if(!q4(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL input type.`);return D}function J4(D){return A0(D)||H8(D)||C0(D)||L0(D)||V0(D)||e8(D)&&J4(D.ofType)}function YI(D){if(!J4(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL output type.`);return D}function XZ(D){return A0(D)||V0(D)}function HI(D){if(!XZ(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL leaf type.`);return D}function qZ(D){return H8(D)||C0(D)||L0(D)}function UI(D){if(!qZ(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL composite type.`);return D}function JZ(D){return C0(D)||L0(D)}function WI(D){if(!JZ(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL abstract type.`);return D}class Y4{constructor(D){_1(D)||(0,SD.devAssert)(!1,`Expected ${(0,YD.inspect)(D)} to be a GraphQL type.`),this.ofType=D}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}QZ.GraphQLList=Y4;class H4{constructor(D){U4(D)||(0,SD.devAssert)(!1,`Expected ${(0,YD.inspect)(D)} to be a GraphQL nullable type.`),this.ofType=D}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}QZ.GraphQLNonNull=H4;function e8(D){return k1(D)||e2(D)}function OI(D){if(!e8(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL wrapping type.`);return D}function U4(D){return _1(D)&&!e2(D)}function zI(D){if(!U4(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL nullable type.`);return D}function QI(D){if(D)return e2(D)?D.ofType:D}function YZ(D){return A0(D)||H8(D)||C0(D)||L0(D)||V0(D)||t8(D)}function GI(D){if(!YZ(D))throw Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL named type.`);return D}function RI(D){if(D){let F=D;while(e8(F))F=F.ofType;return F}}function W4(D){return typeof D==="function"?D():D}function O4(D){return typeof D==="function"?D():D}class z4{constructor(D){var F,P,B,Z;let X=(F=D.parseValue)!==null&&F!==void 0?F:FZ.identityFunc;if(this.name=(0,L2.assertName)(D.name),this.description=D.description,this.specifiedByURL=D.specifiedByURL,this.serialize=(P=D.serialize)!==null&&P!==void 0?P:FZ.identityFunc,this.parseValue=X,this.parseLiteral=(B=D.parseLiteral)!==null&&B!==void 0?B:(q,J)=>X((0,oR.valueFromASTUntyped)(q,J)),this.extensions=(0,C2.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(Z=D.extensionASTNodes)!==null&&Z!==void 0?Z:[],D.specifiedByURL==null||typeof D.specifiedByURL==="string"||(0,SD.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,YD.inspect)(D.specifiedByURL)}.`),D.serialize==null||typeof D.serialize==="function"||(0,SD.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.`),D.parseLiteral)typeof D.parseValue==="function"&&typeof D.parseLiteral==="function"||(0,SD.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()}}QZ.GraphQLScalarType=z4;class Q4{constructor(D){var F;this.name=(0,L2.assertName)(D.name),this.description=D.description,this.isTypeOf=D.isTypeOf,this.extensions=(0,C2.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._fields=()=>UZ(D),this._interfaces=()=>HZ(D),D.isTypeOf==null||typeof D.isTypeOf==="function"||(0,SD.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,YD.inspect)(D.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){if(typeof this._fields==="function")this._fields=this._fields();return this._fields}getInterfaces(){if(typeof this._interfaces==="function")this._interfaces=this._interfaces();return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:OZ(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}QZ.GraphQLObjectType=Q4;function HZ(D){var F;let P=W4((F=D.interfaces)!==null&&F!==void 0?F:[]);return Array.isArray(P)||(0,SD.devAssert)(!1,`${D.name} interfaces must be an Array or a function which returns an Array.`),P}function UZ(D){let F=O4(D.fields);return Y8(F)||(0,SD.devAssert)(!1,`${D.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,N1.mapValue)(F,(P,B)=>{var Z;Y8(P)||(0,SD.devAssert)(!1,`${D.name}.${B} field config must be an object.`),P.resolve==null||typeof P.resolve==="function"||(0,SD.devAssert)(!1,`${D.name}.${B} field resolver must be a function if provided, but got: ${(0,YD.inspect)(P.resolve)}.`);let X=(Z=P.args)!==null&&Z!==void 0?Z:{};return Y8(X)||(0,SD.devAssert)(!1,`${D.name}.${B} args must be an object with argument names as keys.`),{name:(0,L2.assertName)(B),description:P.description,type:P.type,args:WZ(X),resolve:P.resolve,subscribe:P.subscribe,deprecationReason:P.deprecationReason,extensions:(0,C2.toObjMap)(P.extensions),astNode:P.astNode}})}function WZ(D){return Object.entries(D).map(([F,P])=>({name:(0,L2.assertName)(F),description:P.description,type:P.type,defaultValue:P.defaultValue,deprecationReason:P.deprecationReason,extensions:(0,C2.toObjMap)(P.extensions),astNode:P.astNode}))}function Y8(D){return(0,aR.isObjectLike)(D)&&!Array.isArray(D)}function OZ(D){return(0,N1.mapValue)(D,(F)=>({description:F.description,type:F.type,args:zZ(F.args),resolve:F.resolve,subscribe:F.subscribe,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}))}function zZ(D){return(0,ZZ.keyValMap)(D,(F)=>F.name,(F)=>({description:F.description,type:F.type,defaultValue:F.defaultValue,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}))}function II(D){return e2(D.type)&&D.defaultValue===void 0}class G4{constructor(D){var F;this.name=(0,L2.assertName)(D.name),this.description=D.description,this.resolveType=D.resolveType,this.extensions=(0,C2.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._fields=UZ.bind(void 0,D),this._interfaces=HZ.bind(void 0,D),D.resolveType==null||typeof D.resolveType==="function"||(0,SD.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,YD.inspect)(D.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){if(typeof this._fields==="function")this._fields=this._fields();return this._fields}getInterfaces(){if(typeof this._interfaces==="function")this._interfaces=this._interfaces();return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:OZ(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}QZ.GraphQLInterfaceType=G4;class R4{constructor(D){var F;this.name=(0,L2.assertName)(D.name),this.description=D.description,this.resolveType=D.resolveType,this.extensions=(0,C2.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._types=$I.bind(void 0,D),D.resolveType==null||typeof D.resolveType==="function"||(0,SD.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,YD.inspect)(D.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){if(typeof this._types==="function")this._types=this._types();return 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()}}QZ.GraphQLUnionType=R4;function $I(D){let F=W4(D.types);return Array.isArray(F)||(0,SD.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${D.name}.`),F}class I4{constructor(D){var F;this.name=(0,L2.assertName)(D.name),this.description=D.description,this.extensions=(0,C2.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._values=typeof D.values==="function"?D.values:BZ(this.name,D.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){if(typeof this._values==="function")this._values=BZ(this.name,this._values());return this._values}getValue(D){if(this._nameLookup===null)this._nameLookup=(0,sR.keyMap)(this.getValues(),(F)=>F.name);return this._nameLookup[D]}serialize(D){if(this._valueLookup===null)this._valueLookup=new Map(this.getValues().map((P)=>[P.value,P]));let F=this._valueLookup.get(D);if(F===void 0)throw new o8.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,YD.inspect)(D)}`);return F.name}parseValue(D){if(typeof D!=="string"){let P=(0,YD.inspect)(D);throw new o8.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${P}.`+u1(this,P))}let F=this.getValue(D);if(F==null)throw new o8.GraphQLError(`Value "${D}" does not exist in "${this.name}" enum.`+u1(this,D));return F.value}parseLiteral(D,F){if(D.kind!==iR.Kind.ENUM){let B=(0,PZ.print)(D);throw new o8.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${B}.`+u1(this,B),{nodes:D})}let P=this.getValue(D.value);if(P==null){let B=(0,PZ.print)(D);throw new o8.GraphQLError(`Value "${B}" does not exist in "${this.name}" enum.`+u1(this,B),{nodes:D})}return P.value}toConfig(){let D=(0,ZZ.keyValMap)(this.getValues(),(F)=>F.name,(F)=>({description:F.description,value:F.value,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}));return{name:this.name,description:this.description,values:D,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}QZ.GraphQLEnumType=I4;function u1(D,F){let P=D.getValues().map((Z)=>Z.name),B=(0,nR.suggestionList)(F,P);return(0,rR.didYouMean)("the enum value",B)}function BZ(D,F){return Y8(F)||(0,SD.devAssert)(!1,`${D} values must be an object with value names as keys.`),Object.entries(F).map(([P,B])=>{return Y8(B)||(0,SD.devAssert)(!1,`${D}.${P} must refer to an object with a "value" key representing an internal value but got: ${(0,YD.inspect)(B)}.`),{name:(0,L2.assertEnumValueName)(P),description:B.description,value:B.value!==void 0?B.value:P,deprecationReason:B.deprecationReason,extensions:(0,C2.toObjMap)(B.extensions),astNode:B.astNode}})}class $4{constructor(D){var F,P;this.name=(0,L2.assertName)(D.name),this.description=D.description,this.extensions=(0,C2.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this.isOneOf=(P=D.isOneOf)!==null&&P!==void 0?P:!1,this._fields=MI.bind(void 0,D)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){if(typeof this._fields==="function")this._fields=this._fields();return this._fields}toConfig(){let D=(0,N1.mapValue)(this.getFields(),(F)=>({description:F.description,type:F.type,defaultValue:F.defaultValue,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}));return{name:this.name,description:this.description,fields:D,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}QZ.GraphQLInputObjectType=$4;function MI(D){let F=O4(D.fields);return Y8(F)||(0,SD.devAssert)(!1,`${D.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,N1.mapValue)(F,(P,B)=>{return!("resolve"in P)||(0,SD.devAssert)(!1,`${D.name}.${B} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,L2.assertName)(B),description:P.description,type:P.type,defaultValue:P.defaultValue,deprecationReason:P.deprecationReason,extensions:(0,C2.toObjMap)(P.extensions),astNode:P.astNode}})}function EI(D){return e2(D.type)&&D.defaultValue===void 0}});var D6=Q((RZ)=>{Object.defineProperty(RZ,"__esModule",{value:!0});RZ.doTypesOverlap=R$;RZ.isEqualType=M4;RZ.isTypeSubTypeOf=x1;var xD=n();function M4(D,F){if(D===F)return!0;if((0,xD.isNonNullType)(D)&&(0,xD.isNonNullType)(F))return M4(D.ofType,F.ofType);if((0,xD.isListType)(D)&&(0,xD.isListType)(F))return M4(D.ofType,F.ofType);return!1}function x1(D,F,P){if(F===P)return!0;if((0,xD.isNonNullType)(P)){if((0,xD.isNonNullType)(F))return x1(D,F.ofType,P.ofType);return!1}if((0,xD.isNonNullType)(F))return x1(D,F.ofType,P);if((0,xD.isListType)(P)){if((0,xD.isListType)(F))return x1(D,F.ofType,P.ofType);return!1}if((0,xD.isListType)(F))return!1;return(0,xD.isAbstractType)(P)&&((0,xD.isInterfaceType)(F)||(0,xD.isObjectType)(F))&&D.isSubType(P,F)}function R$(D,F,P){if(F===P)return!0;if((0,xD.isAbstractType)(F)){if((0,xD.isAbstractType)(P))return D.getPossibleTypes(F).some((B)=>D.isSubType(P,B));return D.isSubType(F,P)}if((0,xD.isAbstractType)(P))return D.isSubType(P,F);return!1}});var V2=Q((LZ)=>{Object.defineProperty(LZ,"__esModule",{value:!0});LZ.GraphQLString=LZ.GraphQLInt=LZ.GraphQLID=LZ.GraphQLFloat=LZ.GraphQLBoolean=LZ.GRAPHQL_MIN_INT=LZ.GRAPHQL_MAX_INT=void 0;LZ.isSpecifiedScalarType=E$;LZ.specifiedScalarTypes=void 0;var O2=ZD(),IZ=K2(),TD=g(),w0=s(),F6=rD(),P6=n(),f1=2147483647;LZ.GRAPHQL_MAX_INT=f1;var h1=-2147483648;LZ.GRAPHQL_MIN_INT=h1;var $Z=new P6.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(D){let F=B6(D);if(typeof F==="boolean")return F?1:0;let P=F;if(typeof F==="string"&&F!=="")P=Number(F);if(typeof P!=="number"||!Number.isInteger(P))throw new TD.GraphQLError(`Int cannot represent non-integer value: ${(0,O2.inspect)(F)}`);if(P>f1||P<h1)throw new TD.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,O2.inspect)(F));return P},parseValue(D){if(typeof D!=="number"||!Number.isInteger(D))throw new TD.GraphQLError(`Int cannot represent non-integer value: ${(0,O2.inspect)(D)}`);if(D>f1||D<h1)throw new TD.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${D}`);return D},parseLiteral(D){if(D.kind!==w0.Kind.INT)throw new TD.GraphQLError(`Int cannot represent non-integer value: ${(0,F6.print)(D)}`,{nodes:D});let F=parseInt(D.value,10);if(F>f1||F<h1)throw new TD.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${D.value}`,{nodes:D});return F}});LZ.GraphQLInt=$Z;var MZ=new P6.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(D){let F=B6(D);if(typeof F==="boolean")return F?1:0;let P=F;if(typeof F==="string"&&F!=="")P=Number(F);if(typeof P!=="number"||!Number.isFinite(P))throw new TD.GraphQLError(`Float cannot represent non numeric value: ${(0,O2.inspect)(F)}`);return P},parseValue(D){if(typeof D!=="number"||!Number.isFinite(D))throw new TD.GraphQLError(`Float cannot represent non numeric value: ${(0,O2.inspect)(D)}`);return D},parseLiteral(D){if(D.kind!==w0.Kind.FLOAT&&D.kind!==w0.Kind.INT)throw new TD.GraphQLError(`Float cannot represent non numeric value: ${(0,F6.print)(D)}`,D);return parseFloat(D.value)}});LZ.GraphQLFloat=MZ;var EZ=new P6.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(D){let F=B6(D);if(typeof F==="string")return F;if(typeof F==="boolean")return F?"true":"false";if(typeof F==="number"&&Number.isFinite(F))return F.toString();throw new TD.GraphQLError(`String cannot represent value: ${(0,O2.inspect)(D)}`)},parseValue(D){if(typeof D!=="string")throw new TD.GraphQLError(`String cannot represent a non string value: ${(0,O2.inspect)(D)}`);return D},parseLiteral(D){if(D.kind!==w0.Kind.STRING)throw new TD.GraphQLError(`String cannot represent a non string value: ${(0,F6.print)(D)}`,{nodes:D});return D.value}});LZ.GraphQLString=EZ;var KZ=new P6.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(D){let F=B6(D);if(typeof F==="boolean")return F;if(Number.isFinite(F))return F!==0;throw new TD.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,O2.inspect)(F)}`)},parseValue(D){if(typeof D!=="boolean")throw new TD.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,O2.inspect)(D)}`);return D},parseLiteral(D){if(D.kind!==w0.Kind.BOOLEAN)throw new TD.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,F6.print)(D)}`,{nodes:D});return D.value}});LZ.GraphQLBoolean=KZ;var AZ=new P6.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(D){let F=B6(D);if(typeof F==="string")return F;if(Number.isInteger(F))return String(F);throw new TD.GraphQLError(`ID cannot represent value: ${(0,O2.inspect)(D)}`)},parseValue(D){if(typeof D==="string")return D;if(typeof D==="number"&&Number.isInteger(D))return D.toString();throw new TD.GraphQLError(`ID cannot represent value: ${(0,O2.inspect)(D)}`)},parseLiteral(D){if(D.kind!==w0.Kind.STRING&&D.kind!==w0.Kind.INT)throw new TD.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,F6.print)(D),{nodes:D});return D.value}});LZ.GraphQLID=AZ;var CZ=Object.freeze([EZ,$Z,MZ,KZ,AZ]);LZ.specifiedScalarTypes=CZ;function E$(D){return CZ.some(({name:F})=>D.name===F)}function B6(D){if((0,IZ.isObjectLike)(D)){if(typeof D.valueOf==="function"){let F=D.valueOf();if(!(0,IZ.isObjectLike)(F))return F}if(typeof D.toJSON==="function")return D.toJSON()}return D}});var yD=Q((fZ)=>{Object.defineProperty(fZ,"__esModule",{value:!0});fZ.GraphQLSpecifiedByDirective=fZ.GraphQLSkipDirective=fZ.GraphQLOneOfDirective=fZ.GraphQLIncludeDirective=fZ.GraphQLDirective=fZ.GraphQLDeprecatedDirective=fZ.DEFAULT_DEPRECATION_REASON=void 0;fZ.assertDirective=_$;fZ.isDirective=bZ;fZ.isSpecifiedDirective=k$;fZ.specifiedDirectives=void 0;var jZ=hD(),b$=ZD(),S$=r8(),T$=K2(),u$=j1(),nD=B8(),N$=i8(),Z6=n(),g1=V2();function bZ(D){return(0,S$.instanceOf)(D,D0)}function _$(D){if(!bZ(D))throw Error(`Expected ${(0,b$.inspect)(D)} to be a GraphQL directive.`);return D}class D0{constructor(D){var F,P;this.name=(0,N$.assertName)(D.name),this.description=D.description,this.locations=D.locations,this.isRepeatable=(F=D.isRepeatable)!==null&&F!==void 0?F:!1,this.extensions=(0,u$.toObjMap)(D.extensions),this.astNode=D.astNode,Array.isArray(D.locations)||(0,jZ.devAssert)(!1,`@${D.name} locations must be an Array.`);let B=(P=D.args)!==null&&P!==void 0?P:{};(0,T$.isObjectLike)(B)&&!Array.isArray(B)||(0,jZ.devAssert)(!1,`@${D.name} args must be an object with argument names as keys.`),this.args=(0,Z6.defineArguments)(B)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,Z6.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}fZ.GraphQLDirective=D0;var SZ=new D0({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[nD.DirectiveLocation.FIELD,nD.DirectiveLocation.FRAGMENT_SPREAD,nD.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Z6.GraphQLNonNull(g1.GraphQLBoolean),description:"Included when true."}}});fZ.GraphQLIncludeDirective=SZ;var TZ=new D0({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[nD.DirectiveLocation.FIELD,nD.DirectiveLocation.FRAGMENT_SPREAD,nD.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Z6.GraphQLNonNull(g1.GraphQLBoolean),description:"Skipped when true."}}});fZ.GraphQLSkipDirective=TZ;var uZ="No longer supported";fZ.DEFAULT_DEPRECATION_REASON=uZ;var NZ=new D0({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[nD.DirectiveLocation.FIELD_DEFINITION,nD.DirectiveLocation.ARGUMENT_DEFINITION,nD.DirectiveLocation.INPUT_FIELD_DEFINITION,nD.DirectiveLocation.ENUM_VALUE],args:{reason:{type:g1.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:uZ}}});fZ.GraphQLDeprecatedDirective=NZ;var _Z=new D0({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[nD.DirectiveLocation.SCALAR],args:{url:{type:new Z6.GraphQLNonNull(g1.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});fZ.GraphQLSpecifiedByDirective=_Z;var kZ=new D0({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[nD.DirectiveLocation.INPUT_OBJECT],args:{}});fZ.GraphQLOneOfDirective=kZ;var xZ=Object.freeze([SZ,TZ,NZ,_Z,kZ]);fZ.specifiedDirectives=xZ;function k$(D){return xZ.some(({name:F})=>F===D.name)}});var v1=Q((vZ)=>{Object.defineProperty(vZ,"__esModule",{value:!0});vZ.isIterableObject=d$;function d$(D){return typeof D==="object"&&typeof(D===null||D===void 0?void 0:D[Symbol.iterator])==="function"}});var J6=Q((lZ)=>{Object.defineProperty(lZ,"__esModule",{value:!0});lZ.astFromValue=q6;var yZ=ZD(),r$=kD(),a$=v1(),s$=K2(),iD=s(),X6=n(),n$=V2();function q6(D,F){if((0,X6.isNonNullType)(F)){let P=q6(D,F.ofType);if((P===null||P===void 0?void 0:P.kind)===iD.Kind.NULL)return null;return P}if(D===null)return{kind:iD.Kind.NULL};if(D===void 0)return null;if((0,X6.isListType)(F)){let P=F.ofType;if((0,a$.isIterableObject)(D)){let B=[];for(let Z of D){let X=q6(Z,P);if(X!=null)B.push(X)}return{kind:iD.Kind.LIST,values:B}}return q6(D,P)}if((0,X6.isInputObjectType)(F)){if(!(0,s$.isObjectLike)(D))return null;let P=[];for(let B of Object.values(F.getFields())){let Z=q6(D[B.name],B.type);if(Z)P.push({kind:iD.Kind.OBJECT_FIELD,name:{kind:iD.Kind.NAME,value:B.name},value:Z})}return{kind:iD.Kind.OBJECT,fields:P}}if((0,X6.isLeafType)(F)){let P=F.serialize(D);if(P==null)return null;if(typeof P==="boolean")return{kind:iD.Kind.BOOLEAN,value:P};if(typeof P==="number"&&Number.isFinite(P)){let B=String(P);return mZ.test(B)?{kind:iD.Kind.INT,value:B}:{kind:iD.Kind.FLOAT,value:B}}if(typeof P==="string"){if((0,X6.isEnumType)(F))return{kind:iD.Kind.ENUM,value:P};if(F===n$.GraphQLID&&mZ.test(P))return{kind:iD.Kind.INT,value:P};return{kind:iD.Kind.STRING,value:P}}throw TypeError(`Cannot convert value to AST: ${(0,yZ.inspect)(P)}.`)}(0,r$.invariant)(!1,"Unexpected input type: "+(0,yZ.inspect)(F))}var mZ=/^-?(?:0|[1-9][0-9]*)$/});var tD=Q((dZ)=>{Object.defineProperty(dZ,"__esModule",{value:!0});dZ.introspectionTypes=dZ.__TypeKind=dZ.__Type=dZ.__Schema=dZ.__InputValue=dZ.__Field=dZ.__EnumValue=dZ.__DirectiveLocation=dZ.__Directive=dZ.TypeNameMetaFieldDef=dZ.TypeMetaFieldDef=dZ.TypeKind=dZ.SchemaMetaFieldDef=void 0;dZ.isIntrospectionType=ZM;var o$=ZD(),t$=kD(),VD=B8(),e$=rD(),DM=J6(),N=n(),JD=V2(),E4=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:JD.GraphQLString,resolve:(D)=>D.description},types:{description:"A list of all types supported by this server.",type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(oD))),resolve(D){return Object.values(D.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new N.GraphQLNonNull(oD),resolve:(D)=>D.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:oD,resolve:(D)=>D.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:oD,resolve:(D)=>D.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(K4))),resolve:(D)=>D.getDirectives()}})});dZ.__Schema=E4;var K4=new N.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
71
71
 
72
- 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(JD.GraphQLString),resolve:(D)=>D.name},description:{type:JD.GraphQLString,resolve:(D)=>D.description},isRepeatable:{type:new N.GraphQLNonNull(JD.GraphQLBoolean),resolve:(D)=>D.isRepeatable},locations:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(A4))),resolve:(D)=>D.locations},args:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(Y6))),args:{includeDeprecated:{type:JD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){return F?D.args:D.args.filter((P)=>P.deprecationReason==null)}}})});dZ.__Directive=K4;var A4=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:VD.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:VD.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:VD.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:VD.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:VD.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:VD.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:VD.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:VD.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:VD.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:VD.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:VD.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:VD.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:VD.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:VD.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:VD.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:VD.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:VD.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:VD.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:VD.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});dZ.__DirectiveLocation=A4;var oD=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(V4),resolve(D){if((0,N.isScalarType)(D))return wD.SCALAR;if((0,N.isObjectType)(D))return wD.OBJECT;if((0,N.isInterfaceType)(D))return wD.INTERFACE;if((0,N.isUnionType)(D))return wD.UNION;if((0,N.isEnumType)(D))return wD.ENUM;if((0,N.isInputObjectType)(D))return wD.INPUT_OBJECT;if((0,N.isListType)(D))return wD.LIST;if((0,N.isNonNullType)(D))return wD.NON_NULL;(0,t$.invariant)(!1,`Unexpected type: "${(0,o$.inspect)(D)}".`)}},name:{type:JD.GraphQLString,resolve:(D)=>("name"in D)?D.name:void 0},description:{type:JD.GraphQLString,resolve:(D)=>("description"in D)?D.description:void 0},specifiedByURL:{type:JD.GraphQLString,resolve:(D)=>("specifiedByURL"in D)?D.specifiedByURL:void 0},fields:{type:new N.GraphQLList(new N.GraphQLNonNull(C4)),args:{includeDeprecated:{type:JD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){if((0,N.isObjectType)(D)||(0,N.isInterfaceType)(D)){let P=Object.values(D.getFields());return F?P:P.filter((B)=>B.deprecationReason==null)}}},interfaces:{type:new N.GraphQLList(new N.GraphQLNonNull(oD)),resolve(D){if((0,N.isObjectType)(D)||(0,N.isInterfaceType)(D))return D.getInterfaces()}},possibleTypes:{type:new N.GraphQLList(new N.GraphQLNonNull(oD)),resolve(D,F,P,{schema:B}){if((0,N.isAbstractType)(D))return B.getPossibleTypes(D)}},enumValues:{type:new N.GraphQLList(new N.GraphQLNonNull(L4)),args:{includeDeprecated:{type:JD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){if((0,N.isEnumType)(D)){let P=D.getValues();return F?P:P.filter((B)=>B.deprecationReason==null)}}},inputFields:{type:new N.GraphQLList(new N.GraphQLNonNull(Y6)),args:{includeDeprecated:{type:JD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){if((0,N.isInputObjectType)(D)){let P=Object.values(D.getFields());return F?P:P.filter((B)=>B.deprecationReason==null)}}},ofType:{type:oD,resolve:(D)=>("ofType"in D)?D.ofType:void 0},isOneOf:{type:JD.GraphQLBoolean,resolve:(D)=>{if((0,N.isInputObjectType)(D))return D.isOneOf}}})});dZ.__Type=oD;var C4=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(JD.GraphQLString),resolve:(D)=>D.name},description:{type:JD.GraphQLString,resolve:(D)=>D.description},args:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(Y6))),args:{includeDeprecated:{type:JD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){return F?D.args:D.args.filter((P)=>P.deprecationReason==null)}},type:{type:new N.GraphQLNonNull(oD),resolve:(D)=>D.type},isDeprecated:{type:new N.GraphQLNonNull(JD.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:JD.GraphQLString,resolve:(D)=>D.deprecationReason}})});dZ.__Field=C4;var Y6=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(JD.GraphQLString),resolve:(D)=>D.name},description:{type:JD.GraphQLString,resolve:(D)=>D.description},type:{type:new N.GraphQLNonNull(oD),resolve:(D)=>D.type},defaultValue:{type:JD.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(D){let{type:F,defaultValue:P}=D,B=(0,DM.astFromValue)(P,F);return B?(0,e$.print)(B):null}},isDeprecated:{type:new N.GraphQLNonNull(JD.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:JD.GraphQLString,resolve:(D)=>D.deprecationReason}})});dZ.__InputValue=Y6;var L4=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(JD.GraphQLString),resolve:(D)=>D.name},description:{type:JD.GraphQLString,resolve:(D)=>D.description},isDeprecated:{type:new N.GraphQLNonNull(JD.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:JD.GraphQLString,resolve:(D)=>D.deprecationReason}})});dZ.__EnumValue=L4;var wD;dZ.TypeKind=wD;(function(D){D.SCALAR="SCALAR",D.OBJECT="OBJECT",D.INTERFACE="INTERFACE",D.UNION="UNION",D.ENUM="ENUM",D.INPUT_OBJECT="INPUT_OBJECT",D.LIST="LIST",D.NON_NULL="NON_NULL"})(wD||(dZ.TypeKind=wD={}));var V4=new N.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:wD.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:wD.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:wD.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:wD.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:wD.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:wD.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:wD.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:wD.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});dZ.__TypeKind=V4;var FM={name:"__schema",type:new N.GraphQLNonNull(E4),description:"Access the current type schema of this server.",args:[],resolve:(D,F,P,{schema:B})=>B,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};dZ.SchemaMetaFieldDef=FM;var PM={name:"__type",type:oD,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new N.GraphQLNonNull(JD.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(D,{name:F},P,{schema:B})=>B.getType(F),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};dZ.TypeMetaFieldDef=PM;var BM={name:"__typename",type:new N.GraphQLNonNull(JD.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(D,F,P,{parentType:B})=>B.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};dZ.TypeNameMetaFieldDef=BM;var cZ=Object.freeze([E4,K4,A4,oD,C4,Y6,L4,V4]);dZ.introspectionTypes=cZ;function ZM(D){return cZ.some(({name:F})=>D.name===F)}});var j0=Q((nZ)=>{Object.defineProperty(nZ,"__esModule",{value:!0});nZ.GraphQLSchema=void 0;nZ.assertSchema=KM;nZ.isSchema=sZ;var y1=hD(),j4=ZD(),IM=r8(),$M=K2(),MM=j1(),w4=A2(),z2=n(),aZ=yD(),EM=tD();function sZ(D){return(0,IM.instanceOf)(D,b4)}function KM(D){if(!sZ(D))throw new Error(`Expected ${(0,j4.inspect)(D)} to be a GraphQL schema.`);return D}class b4{constructor(D){var F,P;this.__validationErrors=D.assumeValid===!0?[]:void 0,(0,$M.isObjectLike)(D)||(0,y1.devAssert)(!1,"Must provide configuration object."),!D.types||Array.isArray(D.types)||(0,y1.devAssert)(!1,`"types" must be Array if provided but got: ${(0,j4.inspect)(D.types)}.`),!D.directives||Array.isArray(D.directives)||(0,y1.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,j4.inspect)(D.directives)}.`),this.description=D.description,this.extensions=(0,MM.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._queryType=D.query,this._mutationType=D.mutation,this._subscriptionType=D.subscription,this._directives=(P=D.directives)!==null&&P!==void 0?P:aZ.specifiedDirectives;let B=new Set(D.types);if(D.types!=null)for(let Z of D.types)B.delete(Z),Q2(Z,B);if(this._queryType!=null)Q2(this._queryType,B);if(this._mutationType!=null)Q2(this._mutationType,B);if(this._subscriptionType!=null)Q2(this._subscriptionType,B);for(let Z of this._directives)if((0,aZ.isDirective)(Z))for(let X of Z.args)Q2(X.type,B);Q2(EM.__Schema,B),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let Z of B){if(Z==null)continue;let X=Z.name;if(X||(0,y1.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[X]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${X}".`);if(this._typeMap[X]=Z,(0,z2.isInterfaceType)(Z)){for(let q of Z.getInterfaces())if((0,z2.isInterfaceType)(q)){let J=this._implementationsMap[q.name];if(J===void 0)J=this._implementationsMap[q.name]={objects:[],interfaces:[]};J.interfaces.push(Z)}}else if((0,z2.isObjectType)(Z)){for(let q of Z.getInterfaces())if((0,z2.isInterfaceType)(q)){let J=this._implementationsMap[q.name];if(J===void 0)J=this._implementationsMap[q.name]={objects:[],interfaces:[]};J.objects.push(Z)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(D){switch(D){case w4.OperationTypeNode.QUERY:return this.getQueryType();case w4.OperationTypeNode.MUTATION:return this.getMutationType();case w4.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(D){return this.getTypeMap()[D]}getPossibleTypes(D){return(0,z2.isUnionType)(D)?D.getTypes():this.getImplementations(D).objects}getImplementations(D){let F=this._implementationsMap[D.name];return F!==null&&F!==void 0?F:{objects:[],interfaces:[]}}isSubType(D,F){let P=this._subTypeMap[D.name];if(P===void 0){if(P=Object.create(null),(0,z2.isUnionType)(D))for(let B of D.getTypes())P[B.name]=!0;else{let B=this.getImplementations(D);for(let Z of B.objects)P[Z.name]=!0;for(let Z of B.interfaces)P[Z.name]=!0}this._subTypeMap[D.name]=P}return P[F.name]!==void 0}getDirectives(){return this._directives}getDirective(D){return this.getDirectives().find((F)=>F.name===D)}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}}}nZ.GraphQLSchema=b4;function Q2(D,F){let P=(0,z2.getNamedType)(D);if(!F.has(P)){if(F.add(P),(0,z2.isUnionType)(P))for(let B of P.getTypes())Q2(B,F);else if((0,z2.isObjectType)(P)||(0,z2.isInterfaceType)(P)){for(let B of P.getInterfaces())Q2(B,F);for(let B of Object.values(P.getFields())){Q2(B.type,F);for(let Z of B.args)Q2(Z.type,F)}}else if((0,z2.isInputObjectType)(P))for(let B of Object.values(P.getFields()))Q2(B.type,F)}return F}});var U6=Q((ZX)=>{Object.defineProperty(ZX,"__esModule",{value:!0});ZX.assertValidSchema=jM;ZX.validateSchema=PX;var fD=ZD(),LM=g(),S4=A2(),oZ=D6(),ID=n(),FX=yD(),VM=tD(),wM=j0();function PX(D){if((0,wM.assertSchema)(D),D.__validationErrors)return D.__validationErrors;let F=new BX(D);bM(F),SM(F),TM(F);let P=F.getErrors();return D.__validationErrors=P,P}function jM(D){let F=PX(D);if(F.length!==0)throw new Error(F.map((P)=>P.message).join(`
72
+ 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(JD.GraphQLString),resolve:(D)=>D.name},description:{type:JD.GraphQLString,resolve:(D)=>D.description},isRepeatable:{type:new N.GraphQLNonNull(JD.GraphQLBoolean),resolve:(D)=>D.isRepeatable},locations:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(A4))),resolve:(D)=>D.locations},args:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(Y6))),args:{includeDeprecated:{type:JD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){return F?D.args:D.args.filter((P)=>P.deprecationReason==null)}}})});dZ.__Directive=K4;var A4=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:VD.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:VD.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:VD.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:VD.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:VD.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:VD.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:VD.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:VD.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:VD.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:VD.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:VD.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:VD.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:VD.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:VD.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:VD.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:VD.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:VD.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:VD.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:VD.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});dZ.__DirectiveLocation=A4;var oD=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(V4),resolve(D){if((0,N.isScalarType)(D))return wD.SCALAR;if((0,N.isObjectType)(D))return wD.OBJECT;if((0,N.isInterfaceType)(D))return wD.INTERFACE;if((0,N.isUnionType)(D))return wD.UNION;if((0,N.isEnumType)(D))return wD.ENUM;if((0,N.isInputObjectType)(D))return wD.INPUT_OBJECT;if((0,N.isListType)(D))return wD.LIST;if((0,N.isNonNullType)(D))return wD.NON_NULL;(0,t$.invariant)(!1,`Unexpected type: "${(0,o$.inspect)(D)}".`)}},name:{type:JD.GraphQLString,resolve:(D)=>("name"in D)?D.name:void 0},description:{type:JD.GraphQLString,resolve:(D)=>("description"in D)?D.description:void 0},specifiedByURL:{type:JD.GraphQLString,resolve:(D)=>("specifiedByURL"in D)?D.specifiedByURL:void 0},fields:{type:new N.GraphQLList(new N.GraphQLNonNull(C4)),args:{includeDeprecated:{type:JD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){if((0,N.isObjectType)(D)||(0,N.isInterfaceType)(D)){let P=Object.values(D.getFields());return F?P:P.filter((B)=>B.deprecationReason==null)}}},interfaces:{type:new N.GraphQLList(new N.GraphQLNonNull(oD)),resolve(D){if((0,N.isObjectType)(D)||(0,N.isInterfaceType)(D))return D.getInterfaces()}},possibleTypes:{type:new N.GraphQLList(new N.GraphQLNonNull(oD)),resolve(D,F,P,{schema:B}){if((0,N.isAbstractType)(D))return B.getPossibleTypes(D)}},enumValues:{type:new N.GraphQLList(new N.GraphQLNonNull(L4)),args:{includeDeprecated:{type:JD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){if((0,N.isEnumType)(D)){let P=D.getValues();return F?P:P.filter((B)=>B.deprecationReason==null)}}},inputFields:{type:new N.GraphQLList(new N.GraphQLNonNull(Y6)),args:{includeDeprecated:{type:JD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){if((0,N.isInputObjectType)(D)){let P=Object.values(D.getFields());return F?P:P.filter((B)=>B.deprecationReason==null)}}},ofType:{type:oD,resolve:(D)=>("ofType"in D)?D.ofType:void 0},isOneOf:{type:JD.GraphQLBoolean,resolve:(D)=>{if((0,N.isInputObjectType)(D))return D.isOneOf}}})});dZ.__Type=oD;var C4=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(JD.GraphQLString),resolve:(D)=>D.name},description:{type:JD.GraphQLString,resolve:(D)=>D.description},args:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(Y6))),args:{includeDeprecated:{type:JD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){return F?D.args:D.args.filter((P)=>P.deprecationReason==null)}},type:{type:new N.GraphQLNonNull(oD),resolve:(D)=>D.type},isDeprecated:{type:new N.GraphQLNonNull(JD.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:JD.GraphQLString,resolve:(D)=>D.deprecationReason}})});dZ.__Field=C4;var Y6=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(JD.GraphQLString),resolve:(D)=>D.name},description:{type:JD.GraphQLString,resolve:(D)=>D.description},type:{type:new N.GraphQLNonNull(oD),resolve:(D)=>D.type},defaultValue:{type:JD.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(D){let{type:F,defaultValue:P}=D,B=(0,DM.astFromValue)(P,F);return B?(0,e$.print)(B):null}},isDeprecated:{type:new N.GraphQLNonNull(JD.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:JD.GraphQLString,resolve:(D)=>D.deprecationReason}})});dZ.__InputValue=Y6;var L4=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(JD.GraphQLString),resolve:(D)=>D.name},description:{type:JD.GraphQLString,resolve:(D)=>D.description},isDeprecated:{type:new N.GraphQLNonNull(JD.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:JD.GraphQLString,resolve:(D)=>D.deprecationReason}})});dZ.__EnumValue=L4;var wD;dZ.TypeKind=wD;(function(D){D.SCALAR="SCALAR",D.OBJECT="OBJECT",D.INTERFACE="INTERFACE",D.UNION="UNION",D.ENUM="ENUM",D.INPUT_OBJECT="INPUT_OBJECT",D.LIST="LIST",D.NON_NULL="NON_NULL"})(wD||(dZ.TypeKind=wD={}));var V4=new N.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:wD.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:wD.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:wD.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:wD.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:wD.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:wD.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:wD.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:wD.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});dZ.__TypeKind=V4;var FM={name:"__schema",type:new N.GraphQLNonNull(E4),description:"Access the current type schema of this server.",args:[],resolve:(D,F,P,{schema:B})=>B,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};dZ.SchemaMetaFieldDef=FM;var PM={name:"__type",type:oD,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new N.GraphQLNonNull(JD.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(D,{name:F},P,{schema:B})=>B.getType(F),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};dZ.TypeMetaFieldDef=PM;var BM={name:"__typename",type:new N.GraphQLNonNull(JD.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(D,F,P,{parentType:B})=>B.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};dZ.TypeNameMetaFieldDef=BM;var cZ=Object.freeze([E4,K4,A4,oD,C4,Y6,L4,V4]);dZ.introspectionTypes=cZ;function ZM(D){return cZ.some(({name:F})=>D.name===F)}});var j0=Q((nZ)=>{Object.defineProperty(nZ,"__esModule",{value:!0});nZ.GraphQLSchema=void 0;nZ.assertSchema=KM;nZ.isSchema=sZ;var y1=hD(),j4=ZD(),IM=r8(),$M=K2(),MM=j1(),w4=A2(),z2=n(),aZ=yD(),EM=tD();function sZ(D){return(0,IM.instanceOf)(D,b4)}function KM(D){if(!sZ(D))throw Error(`Expected ${(0,j4.inspect)(D)} to be a GraphQL schema.`);return D}class b4{constructor(D){var F,P;this.__validationErrors=D.assumeValid===!0?[]:void 0,(0,$M.isObjectLike)(D)||(0,y1.devAssert)(!1,"Must provide configuration object."),!D.types||Array.isArray(D.types)||(0,y1.devAssert)(!1,`"types" must be Array if provided but got: ${(0,j4.inspect)(D.types)}.`),!D.directives||Array.isArray(D.directives)||(0,y1.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,j4.inspect)(D.directives)}.`),this.description=D.description,this.extensions=(0,MM.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._queryType=D.query,this._mutationType=D.mutation,this._subscriptionType=D.subscription,this._directives=(P=D.directives)!==null&&P!==void 0?P:aZ.specifiedDirectives;let B=new Set(D.types);if(D.types!=null)for(let Z of D.types)B.delete(Z),Q2(Z,B);if(this._queryType!=null)Q2(this._queryType,B);if(this._mutationType!=null)Q2(this._mutationType,B);if(this._subscriptionType!=null)Q2(this._subscriptionType,B);for(let Z of this._directives)if((0,aZ.isDirective)(Z))for(let X of Z.args)Q2(X.type,B);Q2(EM.__Schema,B),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let Z of B){if(Z==null)continue;let X=Z.name;if(X||(0,y1.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[X]!==void 0)throw Error(`Schema must contain uniquely named types but contains multiple types named "${X}".`);if(this._typeMap[X]=Z,(0,z2.isInterfaceType)(Z)){for(let q of Z.getInterfaces())if((0,z2.isInterfaceType)(q)){let J=this._implementationsMap[q.name];if(J===void 0)J=this._implementationsMap[q.name]={objects:[],interfaces:[]};J.interfaces.push(Z)}}else if((0,z2.isObjectType)(Z)){for(let q of Z.getInterfaces())if((0,z2.isInterfaceType)(q)){let J=this._implementationsMap[q.name];if(J===void 0)J=this._implementationsMap[q.name]={objects:[],interfaces:[]};J.objects.push(Z)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(D){switch(D){case w4.OperationTypeNode.QUERY:return this.getQueryType();case w4.OperationTypeNode.MUTATION:return this.getMutationType();case w4.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(D){return this.getTypeMap()[D]}getPossibleTypes(D){return(0,z2.isUnionType)(D)?D.getTypes():this.getImplementations(D).objects}getImplementations(D){let F=this._implementationsMap[D.name];return F!==null&&F!==void 0?F:{objects:[],interfaces:[]}}isSubType(D,F){let P=this._subTypeMap[D.name];if(P===void 0){if(P=Object.create(null),(0,z2.isUnionType)(D))for(let B of D.getTypes())P[B.name]=!0;else{let B=this.getImplementations(D);for(let Z of B.objects)P[Z.name]=!0;for(let Z of B.interfaces)P[Z.name]=!0}this._subTypeMap[D.name]=P}return P[F.name]!==void 0}getDirectives(){return this._directives}getDirective(D){return this.getDirectives().find((F)=>F.name===D)}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}}}nZ.GraphQLSchema=b4;function Q2(D,F){let P=(0,z2.getNamedType)(D);if(!F.has(P)){if(F.add(P),(0,z2.isUnionType)(P))for(let B of P.getTypes())Q2(B,F);else if((0,z2.isObjectType)(P)||(0,z2.isInterfaceType)(P)){for(let B of P.getInterfaces())Q2(B,F);for(let B of Object.values(P.getFields())){Q2(B.type,F);for(let Z of B.args)Q2(Z.type,F)}}else if((0,z2.isInputObjectType)(P))for(let B of Object.values(P.getFields()))Q2(B.type,F)}return F}});var U6=Q((ZX)=>{Object.defineProperty(ZX,"__esModule",{value:!0});ZX.assertValidSchema=jM;ZX.validateSchema=PX;var fD=ZD(),LM=g(),S4=A2(),oZ=D6(),ID=n(),FX=yD(),VM=tD(),wM=j0();function PX(D){if((0,wM.assertSchema)(D),D.__validationErrors)return D.__validationErrors;let F=new BX(D);bM(F),SM(F),TM(F);let P=F.getErrors();return D.__validationErrors=P,P}function jM(D){let F=PX(D);if(F.length!==0)throw Error(F.map((P)=>P.message).join(`
73
73
 
74
- `))}class BX{constructor(D){this._errors=[],this.schema=D}reportError(D,F){let P=Array.isArray(F)?F.filter(Boolean):F;this._errors.push(new LM.GraphQLError(D,{nodes:P}))}getErrors(){return this._errors}}function bM(D){let F=D.schema,P=F.getQueryType();if(!P)D.reportError("Query root type must be provided.",F.astNode);else if(!(0,ID.isObjectType)(P)){var B;D.reportError(`Query root type must be Object type, it cannot be ${(0,fD.inspect)(P)}.`,(B=T4(F,S4.OperationTypeNode.QUERY))!==null&&B!==void 0?B:P.astNode)}let Z=F.getMutationType();if(Z&&!(0,ID.isObjectType)(Z)){var X;D.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,fD.inspect)(Z)}.`,(X=T4(F,S4.OperationTypeNode.MUTATION))!==null&&X!==void 0?X:Z.astNode)}let q=F.getSubscriptionType();if(q&&!(0,ID.isObjectType)(q)){var J;D.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,fD.inspect)(q)}.`,(J=T4(F,S4.OperationTypeNode.SUBSCRIPTION))!==null&&J!==void 0?J:q.astNode)}}function T4(D,F){var P;return(P=[D.astNode,...D.extensionASTNodes].flatMap((B)=>{var Z;return(Z=B===null||B===void 0?void 0:B.operationTypes)!==null&&Z!==void 0?Z:[]}).find((B)=>B.operation===F))===null||P===void 0?void 0:P.type}function SM(D){for(let P of D.schema.getDirectives()){if(!(0,FX.isDirective)(P)){D.reportError(`Expected directive but got: ${(0,fD.inspect)(P)}.`,P===null||P===void 0?void 0:P.astNode);continue}if(b0(D,P),P.locations.length===0)D.reportError(`Directive @${P.name} must include 1 or more locations.`,P.astNode);for(let B of P.args){if(b0(D,B),!(0,ID.isInputType)(B.type))D.reportError(`The type of @${P.name}(${B.name}:) must be Input Type but got: ${(0,fD.inspect)(B.type)}.`,B.astNode);if((0,ID.isRequiredArgument)(B)&&B.deprecationReason!=null){var F;D.reportError(`Required argument @${P.name}(${B.name}:) cannot be deprecated.`,[u4(B.astNode),(F=B.astNode)===null||F===void 0?void 0:F.type])}}}}function b0(D,F){if(F.name.startsWith("__"))D.reportError(`Name "${F.name}" must not begin with "__", which is reserved by GraphQL introspection.`,F.astNode)}function TM(D){let F=hM(D),P=D.schema.getTypeMap();for(let B of Object.values(P)){if(!(0,ID.isNamedType)(B)){D.reportError(`Expected GraphQL named type but got: ${(0,fD.inspect)(B)}.`,B.astNode);continue}if(!(0,VM.isIntrospectionType)(B))b0(D,B);if((0,ID.isObjectType)(B))tZ(D,B),eZ(D,B);else if((0,ID.isInterfaceType)(B))tZ(D,B),eZ(D,B);else if((0,ID.isUnionType)(B))_M(D,B);else if((0,ID.isEnumType)(B))kM(D,B);else if((0,ID.isInputObjectType)(B))xM(D,B),F(B)}}function tZ(D,F){let P=Object.values(F.getFields());if(P.length===0)D.reportError(`Type ${F.name} must define one or more fields.`,[F.astNode,...F.extensionASTNodes]);for(let q of P){if(b0(D,q),!(0,ID.isOutputType)(q.type)){var B;D.reportError(`The type of ${F.name}.${q.name} must be Output Type but got: ${(0,fD.inspect)(q.type)}.`,(B=q.astNode)===null||B===void 0?void 0:B.type)}for(let J of q.args){let Y=J.name;if(b0(D,J),!(0,ID.isInputType)(J.type)){var Z;D.reportError(`The type of ${F.name}.${q.name}(${Y}:) must be Input Type but got: ${(0,fD.inspect)(J.type)}.`,(Z=J.astNode)===null||Z===void 0?void 0:Z.type)}if((0,ID.isRequiredArgument)(J)&&J.deprecationReason!=null){var X;D.reportError(`Required argument ${F.name}.${q.name}(${Y}:) cannot be deprecated.`,[u4(J.astNode),(X=J.astNode)===null||X===void 0?void 0:X.type])}}}}function eZ(D,F){let P=Object.create(null);for(let B of F.getInterfaces()){if(!(0,ID.isInterfaceType)(B)){D.reportError(`Type ${(0,fD.inspect)(F)} must only implement Interface types, it cannot implement ${(0,fD.inspect)(B)}.`,H6(F,B));continue}if(F===B){D.reportError(`Type ${F.name} cannot implement itself because it would create a circular reference.`,H6(F,B));continue}if(P[B.name]){D.reportError(`Type ${F.name} can only implement ${B.name} once.`,H6(F,B));continue}P[B.name]=!0,NM(D,F,B),uM(D,F,B)}}function uM(D,F,P){let B=F.getFields();for(let Y of Object.values(P.getFields())){let H=Y.name,U=B[H];if(!U){D.reportError(`Interface field ${P.name}.${H} expected but ${F.name} does not provide it.`,[Y.astNode,F.astNode,...F.extensionASTNodes]);continue}if(!(0,oZ.isTypeSubTypeOf)(D.schema,U.type,Y.type)){var Z,X;D.reportError(`Interface field ${P.name}.${H} expects type ${(0,fD.inspect)(Y.type)} but ${F.name}.${H} is type ${(0,fD.inspect)(U.type)}.`,[(Z=Y.astNode)===null||Z===void 0?void 0:Z.type,(X=U.astNode)===null||X===void 0?void 0:X.type])}for(let W of Y.args){let O=W.name,z=U.args.find((I)=>I.name===O);if(!z){D.reportError(`Interface field argument ${P.name}.${H}(${O}:) expected but ${F.name}.${H} does not provide it.`,[W.astNode,U.astNode]);continue}if(!(0,oZ.isEqualType)(W.type,z.type)){var q,J;D.reportError(`Interface field argument ${P.name}.${H}(${O}:) expects type ${(0,fD.inspect)(W.type)} but ${F.name}.${H}(${O}:) is type ${(0,fD.inspect)(z.type)}.`,[(q=W.astNode)===null||q===void 0?void 0:q.type,(J=z.astNode)===null||J===void 0?void 0:J.type])}}for(let W of U.args){let O=W.name;if(!Y.args.find((I)=>I.name===O)&&(0,ID.isRequiredArgument)(W))D.reportError(`Object field ${F.name}.${H} includes required argument ${O} that is missing from the Interface field ${P.name}.${H}.`,[W.astNode,Y.astNode])}}}function NM(D,F,P){let B=F.getInterfaces();for(let Z of P.getInterfaces())if(!B.includes(Z))D.reportError(Z===F?`Type ${F.name} cannot implement ${P.name} because it would create a circular reference.`:`Type ${F.name} must implement ${Z.name} because it is implemented by ${P.name}.`,[...H6(P,Z),...H6(F,P)])}function _M(D,F){let P=F.getTypes();if(P.length===0)D.reportError(`Union type ${F.name} must define one or more member types.`,[F.astNode,...F.extensionASTNodes]);let B=Object.create(null);for(let Z of P){if(B[Z.name]){D.reportError(`Union type ${F.name} can only include type ${Z.name} once.`,DX(F,Z.name));continue}if(B[Z.name]=!0,!(0,ID.isObjectType)(Z))D.reportError(`Union type ${F.name} can only include Object types, it cannot include ${(0,fD.inspect)(Z)}.`,DX(F,String(Z)))}}function kM(D,F){let P=F.getValues();if(P.length===0)D.reportError(`Enum type ${F.name} must define one or more values.`,[F.astNode,...F.extensionASTNodes]);for(let B of P)b0(D,B)}function xM(D,F){let P=Object.values(F.getFields());if(P.length===0)D.reportError(`Input Object type ${F.name} must define one or more fields.`,[F.astNode,...F.extensionASTNodes]);for(let X of P){if(b0(D,X),!(0,ID.isInputType)(X.type)){var B;D.reportError(`The type of ${F.name}.${X.name} must be Input Type but got: ${(0,fD.inspect)(X.type)}.`,(B=X.astNode)===null||B===void 0?void 0:B.type)}if((0,ID.isRequiredInputField)(X)&&X.deprecationReason!=null){var Z;D.reportError(`Required input field ${F.name}.${X.name} cannot be deprecated.`,[u4(X.astNode),(Z=X.astNode)===null||Z===void 0?void 0:Z.type])}if(F.isOneOf)fM(F,X,D)}}function fM(D,F,P){if((0,ID.isNonNullType)(F.type)){var B;P.reportError(`OneOf input field ${D.name}.${F.name} must be nullable.`,(B=F.astNode)===null||B===void 0?void 0:B.type)}if(F.defaultValue!==void 0)P.reportError(`OneOf input field ${D.name}.${F.name} cannot have a default value.`,F.astNode)}function hM(D){let F=Object.create(null),P=[],B=Object.create(null);return Z;function Z(X){if(F[X.name])return;F[X.name]=!0,B[X.name]=P.length;let q=Object.values(X.getFields());for(let J of q)if((0,ID.isNonNullType)(J.type)&&(0,ID.isInputObjectType)(J.type.ofType)){let Y=J.type.ofType,H=B[Y.name];if(P.push(J),H===void 0)Z(Y);else{let U=P.slice(H),W=U.map((O)=>O.name).join(".");D.reportError(`Cannot reference Input Object "${Y.name}" within itself through a series of non-null fields: "${W}".`,U.map((O)=>O.astNode))}P.pop()}B[X.name]=void 0}}function H6(D,F){let{astNode:P,extensionASTNodes:B}=D;return(P!=null?[P,...B]:B).flatMap((X)=>{var q;return(q=X.interfaces)!==null&&q!==void 0?q:[]}).filter((X)=>X.name.value===F.name)}function DX(D,F){let{astNode:P,extensionASTNodes:B}=D;return(P!=null?[P,...B]:B).flatMap((X)=>{var q;return(q=X.types)!==null&&q!==void 0?q:[]}).filter((X)=>X.name.value===F)}function u4(D){var F;return D===null||D===void 0?void 0:(F=D.directives)===null||F===void 0?void 0:F.find((P)=>P.name.value===FX.GraphQLDeprecatedDirective.name)}});var w2=Q((qX)=>{Object.defineProperty(qX,"__esModule",{value:!0});qX.typeFromAST=_4;var N4=s(),XX=n();function _4(D,F){switch(F.kind){case N4.Kind.LIST_TYPE:{let P=_4(D,F.type);return P&&new XX.GraphQLList(P)}case N4.Kind.NON_NULL_TYPE:{let P=_4(D,F.type);return P&&new XX.GraphQLNonNull(P)}case N4.Kind.NAMED_TYPE:return D.getType(F.name.value)}}});var m1=Q((UX)=>{Object.defineProperty(UX,"__esModule",{value:!0});UX.TypeInfo=void 0;UX.visitWithTypeInfo=cM;var mM=A2(),$D=s(),JX=K0(),MD=n(),U8=tD(),YX=w2();class HX{constructor(D,F,P){if(this._schema=D,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=P!==null&&P!==void 0?P:lM,F){if((0,MD.isInputType)(F))this._inputTypeStack.push(F);if((0,MD.isCompositeType)(F))this._parentTypeStack.push(F);if((0,MD.isOutputType)(F))this._typeStack.push(F)}}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(D){let F=this._schema;switch(D.kind){case $D.Kind.SELECTION_SET:{let B=(0,MD.getNamedType)(this.getType());this._parentTypeStack.push((0,MD.isCompositeType)(B)?B:void 0);break}case $D.Kind.FIELD:{let B=this.getParentType(),Z,X;if(B){if(Z=this._getFieldDef(F,B,D),Z)X=Z.type}this._fieldDefStack.push(Z),this._typeStack.push((0,MD.isOutputType)(X)?X:void 0);break}case $D.Kind.DIRECTIVE:this._directive=F.getDirective(D.name.value);break;case $D.Kind.OPERATION_DEFINITION:{let B=F.getRootType(D.operation);this._typeStack.push((0,MD.isObjectType)(B)?B:void 0);break}case $D.Kind.INLINE_FRAGMENT:case $D.Kind.FRAGMENT_DEFINITION:{let B=D.typeCondition,Z=B?(0,YX.typeFromAST)(F,B):(0,MD.getNamedType)(this.getType());this._typeStack.push((0,MD.isOutputType)(Z)?Z:void 0);break}case $D.Kind.VARIABLE_DEFINITION:{let B=(0,YX.typeFromAST)(F,D.type);this._inputTypeStack.push((0,MD.isInputType)(B)?B:void 0);break}case $D.Kind.ARGUMENT:{var P;let B,Z,X=(P=this.getDirective())!==null&&P!==void 0?P:this.getFieldDef();if(X){if(B=X.args.find((q)=>q.name===D.name.value),B)Z=B.type}this._argument=B,this._defaultValueStack.push(B?B.defaultValue:void 0),this._inputTypeStack.push((0,MD.isInputType)(Z)?Z:void 0);break}case $D.Kind.LIST:{let B=(0,MD.getNullableType)(this.getInputType()),Z=(0,MD.isListType)(B)?B.ofType:B;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,MD.isInputType)(Z)?Z:void 0);break}case $D.Kind.OBJECT_FIELD:{let B=(0,MD.getNamedType)(this.getInputType()),Z,X;if((0,MD.isInputObjectType)(B)){if(X=B.getFields()[D.name.value],X)Z=X.type}this._defaultValueStack.push(X?X.defaultValue:void 0),this._inputTypeStack.push((0,MD.isInputType)(Z)?Z:void 0);break}case $D.Kind.ENUM:{let B=(0,MD.getNamedType)(this.getInputType()),Z;if((0,MD.isEnumType)(B))Z=B.getValue(D.value);this._enumValue=Z;break}default:}}leave(D){switch(D.kind){case $D.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case $D.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case $D.Kind.DIRECTIVE:this._directive=null;break;case $D.Kind.OPERATION_DEFINITION:case $D.Kind.INLINE_FRAGMENT:case $D.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case $D.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case $D.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case $D.Kind.LIST:case $D.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case $D.Kind.ENUM:this._enumValue=null;break;default:}}}UX.TypeInfo=HX;function lM(D,F,P){let B=P.name.value;if(B===U8.SchemaMetaFieldDef.name&&D.getQueryType()===F)return U8.SchemaMetaFieldDef;if(B===U8.TypeMetaFieldDef.name&&D.getQueryType()===F)return U8.TypeMetaFieldDef;if(B===U8.TypeNameMetaFieldDef.name&&(0,MD.isCompositeType)(F))return U8.TypeNameMetaFieldDef;if((0,MD.isObjectType)(F)||(0,MD.isInterfaceType)(F))return F.getFields()[B]}function cM(D,F){return{enter(...P){let B=P[0];D.enter(B);let Z=(0,JX.getEnterLeaveForKind)(F,B.kind).enter;if(Z){let X=Z.apply(F,P);if(X!==void 0){if(D.leave(B),(0,mM.isNode)(X))D.enter(X)}return X}},leave(...P){let B=P[0],Z=(0,JX.getEnterLeaveForKind)(F,B.kind).leave,X;if(Z)X=Z.apply(F,P);return D.leave(B),X}}}});var S0=Q(($X)=>{Object.defineProperty($X,"__esModule",{value:!0});$X.isConstValueNode=k4;$X.isDefinitionNode=pM;$X.isExecutableDefinitionNode=OX;$X.isSelectionNode=rM;$X.isTypeDefinitionNode=GX;$X.isTypeExtensionNode=IX;$X.isTypeNode=aM;$X.isTypeSystemDefinitionNode=QX;$X.isTypeSystemExtensionNode=RX;$X.isValueNode=zX;var i=s();function pM(D){return OX(D)||QX(D)||RX(D)}function OX(D){return D.kind===i.Kind.OPERATION_DEFINITION||D.kind===i.Kind.FRAGMENT_DEFINITION}function rM(D){return D.kind===i.Kind.FIELD||D.kind===i.Kind.FRAGMENT_SPREAD||D.kind===i.Kind.INLINE_FRAGMENT}function zX(D){return D.kind===i.Kind.VARIABLE||D.kind===i.Kind.INT||D.kind===i.Kind.FLOAT||D.kind===i.Kind.STRING||D.kind===i.Kind.BOOLEAN||D.kind===i.Kind.NULL||D.kind===i.Kind.ENUM||D.kind===i.Kind.LIST||D.kind===i.Kind.OBJECT}function k4(D){return zX(D)&&(D.kind===i.Kind.LIST?D.values.some(k4):D.kind===i.Kind.OBJECT?D.fields.some((F)=>k4(F.value)):D.kind!==i.Kind.VARIABLE)}function aM(D){return D.kind===i.Kind.NAMED_TYPE||D.kind===i.Kind.LIST_TYPE||D.kind===i.Kind.NON_NULL_TYPE}function QX(D){return D.kind===i.Kind.SCHEMA_DEFINITION||GX(D)||D.kind===i.Kind.DIRECTIVE_DEFINITION}function GX(D){return D.kind===i.Kind.SCALAR_TYPE_DEFINITION||D.kind===i.Kind.OBJECT_TYPE_DEFINITION||D.kind===i.Kind.INTERFACE_TYPE_DEFINITION||D.kind===i.Kind.UNION_TYPE_DEFINITION||D.kind===i.Kind.ENUM_TYPE_DEFINITION||D.kind===i.Kind.INPUT_OBJECT_TYPE_DEFINITION}function RX(D){return D.kind===i.Kind.SCHEMA_EXTENSION||IX(D)}function IX(D){return D.kind===i.Kind.SCALAR_TYPE_EXTENSION||D.kind===i.Kind.OBJECT_TYPE_EXTENSION||D.kind===i.Kind.INTERFACE_TYPE_EXTENSION||D.kind===i.Kind.UNION_TYPE_EXTENSION||D.kind===i.Kind.ENUM_TYPE_EXTENSION||D.kind===i.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var x4=Q((EX)=>{Object.defineProperty(EX,"__esModule",{value:!0});EX.ExecutableDefinitionsRule=qE;var ZE=g(),MX=s(),XE=S0();function qE(D){return{Document(F){for(let P of F.definitions)if(!(0,XE.isExecutableDefinitionNode)(P)){let B=P.kind===MX.Kind.SCHEMA_DEFINITION||P.kind===MX.Kind.SCHEMA_EXTENSION?"schema":'"'+P.name.value+'"';D.reportError(new ZE.GraphQLError(`The ${B} definition is not executable.`,{nodes:P}))}return!1}}}});var f4=Q((AX)=>{Object.defineProperty(AX,"__esModule",{value:!0});AX.FieldsOnCorrectTypeRule=WE;var KX=n2(),YE=n8(),HE=o2(),UE=g(),W6=n();function WE(D){return{Field(F){let P=D.getParentType();if(P){if(!D.getFieldDef()){let Z=D.getSchema(),X=F.name.value,q=(0,KX.didYouMean)("to use an inline fragment on",OE(Z,P,X));if(q==="")q=(0,KX.didYouMean)(zE(P,X));D.reportError(new UE.GraphQLError(`Cannot query field "${X}" on type "${P.name}".`+q,{nodes:F}))}}}}}function OE(D,F,P){if(!(0,W6.isAbstractType)(F))return[];let B=new Set,Z=Object.create(null);for(let q of D.getPossibleTypes(F)){if(!q.getFields()[P])continue;B.add(q),Z[q.name]=1;for(let J of q.getInterfaces()){var X;if(!J.getFields()[P])continue;B.add(J),Z[J.name]=((X=Z[J.name])!==null&&X!==void 0?X:0)+1}}return[...B].sort((q,J)=>{let Y=Z[J.name]-Z[q.name];if(Y!==0)return Y;if((0,W6.isInterfaceType)(q)&&D.isSubType(q,J))return-1;if((0,W6.isInterfaceType)(J)&&D.isSubType(J,q))return 1;return(0,YE.naturalCompare)(q.name,J.name)}).map((q)=>q.name)}function zE(D,F){if((0,W6.isObjectType)(D)||(0,W6.isInterfaceType)(D)){let P=Object.keys(D.getFields());return(0,HE.suggestionList)(F,P)}return[]}});var h4=Q((jX)=>{Object.defineProperty(jX,"__esModule",{value:!0});jX.FragmentsOnCompositeTypesRule=GE;var CX=g(),LX=rD(),VX=n(),wX=w2();function GE(D){return{InlineFragment(F){let P=F.typeCondition;if(P){let B=(0,wX.typeFromAST)(D.getSchema(),P);if(B&&!(0,VX.isCompositeType)(B)){let Z=(0,LX.print)(P);D.reportError(new CX.GraphQLError(`Fragment cannot condition on non composite type "${Z}".`,{nodes:P}))}}},FragmentDefinition(F){let P=(0,wX.typeFromAST)(D.getSchema(),F.typeCondition);if(P&&!(0,VX.isCompositeType)(P)){let B=(0,LX.print)(F.typeCondition);D.reportError(new CX.GraphQLError(`Fragment "${F.name.value}" cannot condition on non composite type "${B}".`,{nodes:F.typeCondition}))}}}}});var g4=Q((NX)=>{Object.defineProperty(NX,"__esModule",{value:!0});NX.KnownArgumentNamesOnDirectivesRule=uX;NX.KnownArgumentNamesRule=ME;var bX=n2(),SX=o2(),TX=g(),IE=s(),$E=yD();function ME(D){return{...uX(D),Argument(F){let P=D.getArgument(),B=D.getFieldDef(),Z=D.getParentType();if(!P&&B&&Z){let X=F.name.value,q=B.args.map((Y)=>Y.name),J=(0,SX.suggestionList)(X,q);D.reportError(new TX.GraphQLError(`Unknown argument "${X}" on field "${Z.name}.${B.name}".`+(0,bX.didYouMean)(J),{nodes:F}))}}}}function uX(D){let F=Object.create(null),P=D.getSchema(),B=P?P.getDirectives():$E.specifiedDirectives;for(let q of B)F[q.name]=q.args.map((J)=>J.name);let Z=D.getDocument().definitions;for(let q of Z)if(q.kind===IE.Kind.DIRECTIVE_DEFINITION){var X;let J=(X=q.arguments)!==null&&X!==void 0?X:[];F[q.name.value]=J.map((Y)=>Y.name.value)}return{Directive(q){let J=q.name.value,Y=F[J];if(q.arguments&&Y)for(let H of q.arguments){let U=H.name.value;if(!Y.includes(U)){let W=(0,SX.suggestionList)(U,Y);D.reportError(new TX.GraphQLError(`Unknown argument "${U}" on directive "@${J}".`+(0,bX.didYouMean)(W),{nodes:H}))}}return!1}}}});var m4=Q((kX)=>{Object.defineProperty(kX,"__esModule",{value:!0});kX.KnownDirectivesRule=LE;var AE=ZD(),v4=kD(),_X=g(),y4=A2(),jD=B8(),UD=s(),CE=yD();function LE(D){let F=Object.create(null),P=D.getSchema(),B=P?P.getDirectives():CE.specifiedDirectives;for(let X of B)F[X.name]=X.locations;let Z=D.getDocument().definitions;for(let X of Z)if(X.kind===UD.Kind.DIRECTIVE_DEFINITION)F[X.name.value]=X.locations.map((q)=>q.value);return{Directive(X,q,J,Y,H){let U=X.name.value,W=F[U];if(!W){D.reportError(new _X.GraphQLError(`Unknown directive "@${U}".`,{nodes:X}));return}let O=VE(H);if(O&&!W.includes(O))D.reportError(new _X.GraphQLError(`Directive "@${U}" may not be used on ${O}.`,{nodes:X}))}}}function VE(D){let F=D[D.length-1];switch("kind"in F||(0,v4.invariant)(!1),F.kind){case UD.Kind.OPERATION_DEFINITION:return wE(F.operation);case UD.Kind.FIELD:return jD.DirectiveLocation.FIELD;case UD.Kind.FRAGMENT_SPREAD:return jD.DirectiveLocation.FRAGMENT_SPREAD;case UD.Kind.INLINE_FRAGMENT:return jD.DirectiveLocation.INLINE_FRAGMENT;case UD.Kind.FRAGMENT_DEFINITION:return jD.DirectiveLocation.FRAGMENT_DEFINITION;case UD.Kind.VARIABLE_DEFINITION:return jD.DirectiveLocation.VARIABLE_DEFINITION;case UD.Kind.SCHEMA_DEFINITION:case UD.Kind.SCHEMA_EXTENSION:return jD.DirectiveLocation.SCHEMA;case UD.Kind.SCALAR_TYPE_DEFINITION:case UD.Kind.SCALAR_TYPE_EXTENSION:return jD.DirectiveLocation.SCALAR;case UD.Kind.OBJECT_TYPE_DEFINITION:case UD.Kind.OBJECT_TYPE_EXTENSION:return jD.DirectiveLocation.OBJECT;case UD.Kind.FIELD_DEFINITION:return jD.DirectiveLocation.FIELD_DEFINITION;case UD.Kind.INTERFACE_TYPE_DEFINITION:case UD.Kind.INTERFACE_TYPE_EXTENSION:return jD.DirectiveLocation.INTERFACE;case UD.Kind.UNION_TYPE_DEFINITION:case UD.Kind.UNION_TYPE_EXTENSION:return jD.DirectiveLocation.UNION;case UD.Kind.ENUM_TYPE_DEFINITION:case UD.Kind.ENUM_TYPE_EXTENSION:return jD.DirectiveLocation.ENUM;case UD.Kind.ENUM_VALUE_DEFINITION:return jD.DirectiveLocation.ENUM_VALUE;case UD.Kind.INPUT_OBJECT_TYPE_DEFINITION:case UD.Kind.INPUT_OBJECT_TYPE_EXTENSION:return jD.DirectiveLocation.INPUT_OBJECT;case UD.Kind.INPUT_VALUE_DEFINITION:{let P=D[D.length-3];return"kind"in P||(0,v4.invariant)(!1),P.kind===UD.Kind.INPUT_OBJECT_TYPE_DEFINITION?jD.DirectiveLocation.INPUT_FIELD_DEFINITION:jD.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,v4.invariant)(!1,"Unexpected kind: "+(0,AE.inspect)(F.kind))}}function wE(D){switch(D){case y4.OperationTypeNode.QUERY:return jD.DirectiveLocation.QUERY;case y4.OperationTypeNode.MUTATION:return jD.DirectiveLocation.MUTATION;case y4.OperationTypeNode.SUBSCRIPTION:return jD.DirectiveLocation.SUBSCRIPTION}}});var l4=Q((xX)=>{Object.defineProperty(xX,"__esModule",{value:!0});xX.KnownFragmentNamesRule=SE;var bE=g();function SE(D){return{FragmentSpread(F){let P=F.name.value;if(!D.getFragment(P))D.reportError(new bE.GraphQLError(`Unknown fragment "${P}".`,{nodes:F.name}))}}}});var d4=Q((hX)=>{Object.defineProperty(hX,"__esModule",{value:!0});hX.KnownTypeNamesRule=fE;var uE=n2(),NE=o2(),_E=g(),c4=S0(),kE=tD(),xE=V2();function fE(D){let F=D.getSchema(),P=F?F.getTypeMap():Object.create(null),B=Object.create(null);for(let X of D.getDocument().definitions)if((0,c4.isTypeDefinitionNode)(X))B[X.name.value]=!0;let Z=[...Object.keys(P),...Object.keys(B)];return{NamedType(X,q,J,Y,H){let U=X.name.value;if(!P[U]&&!B[U]){var W;let O=(W=H[2])!==null&&W!==void 0?W:J,z=O!=null&&hE(O);if(z&&fX.includes(U))return;let I=(0,NE.suggestionList)(U,z?fX.concat(Z):Z);D.reportError(new _E.GraphQLError(`Unknown type "${U}".`+(0,uE.didYouMean)(I),{nodes:X}))}}}}var fX=[...xE.specifiedScalarTypes,...kE.introspectionTypes].map((D)=>D.name);function hE(D){return"kind"in D&&((0,c4.isTypeSystemDefinitionNode)(D)||(0,c4.isTypeSystemExtensionNode)(D))}});var p4=Q((gX)=>{Object.defineProperty(gX,"__esModule",{value:!0});gX.LoneAnonymousOperationRule=mE;var vE=g(),yE=s();function mE(D){let F=0;return{Document(P){F=P.definitions.filter((B)=>B.kind===yE.Kind.OPERATION_DEFINITION).length},OperationDefinition(P){if(!P.name&&F>1)D.reportError(new vE.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:P}))}}}});var r4=Q((yX)=>{Object.defineProperty(yX,"__esModule",{value:!0});yX.LoneSchemaDefinitionRule=cE;var vX=g();function cE(D){var F,P,B;let Z=D.getSchema(),X=(F=(P=(B=Z===null||Z===void 0?void 0:Z.astNode)!==null&&B!==void 0?B:Z===null||Z===void 0?void 0:Z.getQueryType())!==null&&P!==void 0?P:Z===null||Z===void 0?void 0:Z.getMutationType())!==null&&F!==void 0?F:Z===null||Z===void 0?void 0:Z.getSubscriptionType(),q=0;return{SchemaDefinition(J){if(X){D.reportError(new vX.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:J}));return}if(q>0)D.reportError(new vX.GraphQLError("Must provide only one schema definition.",{nodes:J}));++q}}}});var a4=Q((lX)=>{Object.defineProperty(lX,"__esModule",{value:!0});lX.MaxIntrospectionDepthRule=aE;var pE=g(),mX=s(),rE=3;function aE(D){function F(P,B=Object.create(null),Z=0){if(P.kind===mX.Kind.FRAGMENT_SPREAD){let X=P.name.value;if(B[X]===!0)return!1;let q=D.getFragment(X);if(!q)return!1;try{return B[X]=!0,F(q,B,Z)}finally{B[X]=void 0}}if(P.kind===mX.Kind.FIELD&&(P.name.value==="fields"||P.name.value==="interfaces"||P.name.value==="possibleTypes"||P.name.value==="inputFields")){if(Z++,Z>=rE)return!0}if("selectionSet"in P&&P.selectionSet){for(let X of P.selectionSet.selections)if(F(X,B,Z))return!0}return!1}return{Field(P){if(P.name.value==="__schema"||P.name.value==="__type"){if(F(P))return D.reportError(new pE.GraphQLError("Maximum introspection depth exceeded",{nodes:[P]})),!1}}}}});var s4=Q((cX)=>{Object.defineProperty(cX,"__esModule",{value:!0});cX.NoFragmentCyclesRule=iE;var nE=g();function iE(D){let F=Object.create(null),P=[],B=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(X){return Z(X),!1}};function Z(X){if(F[X.name.value])return;let q=X.name.value;F[q]=!0;let J=D.getFragmentSpreads(X.selectionSet);if(J.length===0)return;B[q]=P.length;for(let Y of J){let H=Y.name.value,U=B[H];if(P.push(Y),U===void 0){let W=D.getFragment(H);if(W)Z(W)}else{let W=P.slice(U),O=W.slice(0,-1).map((z)=>'"'+z.name.value+'"').join(", ");D.reportError(new nE.GraphQLError(`Cannot spread fragment "${H}" within itself`+(O!==""?` via ${O}.`:"."),{nodes:W}))}P.pop()}B[q]=void 0}}});var n4=Q((dX)=>{Object.defineProperty(dX,"__esModule",{value:!0});dX.NoUndefinedVariablesRule=eE;var tE=g();function eE(D){let F=Object.create(null);return{OperationDefinition:{enter(){F=Object.create(null)},leave(P){let B=D.getRecursiveVariableUsages(P);for(let{node:Z}of B){let X=Z.name.value;if(F[X]!==!0)D.reportError(new tE.GraphQLError(P.name?`Variable "$${X}" is not defined by operation "${P.name.value}".`:`Variable "$${X}" is not defined.`,{nodes:[Z,P]}))}}},VariableDefinition(P){F[P.variable.name.value]=!0}}}});var i4=Q((pX)=>{Object.defineProperty(pX,"__esModule",{value:!0});pX.NoUnusedFragmentsRule=PK;var FK=g();function PK(D){let F=[],P=[];return{OperationDefinition(B){return F.push(B),!1},FragmentDefinition(B){return P.push(B),!1},Document:{leave(){let B=Object.create(null);for(let Z of F)for(let X of D.getRecursivelyReferencedFragments(Z))B[X.name.value]=!0;for(let Z of P){let X=Z.name.value;if(B[X]!==!0)D.reportError(new FK.GraphQLError(`Fragment "${X}" is never used.`,{nodes:Z}))}}}}}});var o4=Q((rX)=>{Object.defineProperty(rX,"__esModule",{value:!0});rX.NoUnusedVariablesRule=XK;var ZK=g();function XK(D){let F=[];return{OperationDefinition:{enter(){F=[]},leave(P){let B=Object.create(null),Z=D.getRecursiveVariableUsages(P);for(let{node:X}of Z)B[X.name.value]=!0;for(let X of F){let q=X.variable.name.value;if(B[q]!==!0)D.reportError(new ZK.GraphQLError(P.name?`Variable "$${q}" is never used in operation "${P.name.value}".`:`Variable "$${q}" is never used.`,{nodes:X}))}}},VariableDefinition(P){F.push(P)}}}});var e4=Q((aX)=>{Object.defineProperty(aX,"__esModule",{value:!0});aX.sortValueNode=t4;var JK=n8(),h2=s();function t4(D){switch(D.kind){case h2.Kind.OBJECT:return{...D,fields:YK(D.fields)};case h2.Kind.LIST:return{...D,values:D.values.map(t4)};case h2.Kind.INT:case h2.Kind.FLOAT:case h2.Kind.STRING:case h2.Kind.BOOLEAN:case h2.Kind.NULL:case h2.Kind.ENUM:case h2.Kind.VARIABLE:return D}}function YK(D){return D.map((F)=>({...F,value:t4(F.value)})).sort((F,P)=>(0,JK.naturalCompare)(F.name.value,P.name.value))}});var X9=Q((Fq)=>{Object.defineProperty(Fq,"__esModule",{value:!0});Fq.OverlappingFieldsCanBeMergedRule=zK;var sX=ZD(),UK=g(),D9=s(),WK=rD(),mD=n(),OK=e4(),iX=w2();function oX(D){if(Array.isArray(D))return D.map(([F,P])=>`subfields "${F}" conflict because `+oX(P)).join(" and ");return D}function zK(D){let F=new Z9,P=new Dq,B=new Map;return{SelectionSet(Z){let X=QK(D,B,F,P,D.getParentType(),Z);for(let[[q,J],Y,H]of X){let U=oX(J);D.reportError(new UK.GraphQLError(`Fields "${q}" conflict because ${U}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:Y.concat(H)}))}}}}function QK(D,F,P,B,Z,X){let q=[],[J,Y]=d1(D,F,Z,X);if(RK(D,q,F,P,B,J),Y.length!==0)for(let H=0;H<Y.length;H++){l1(D,q,F,P,B,!1,J,Y[H]);for(let U=H+1;U<Y.length;U++)c1(D,q,F,P,B,!1,Y[H],Y[U])}return q}function l1(D,F,P,B,Z,X,q,J){if(B.has(q,J,X))return;B.add(q,J,X);let Y=D.getFragment(J);if(!Y)return;let[H,U]=P9(D,P,Y);if(q===H)return;B9(D,F,P,B,Z,X,q,H);for(let W of U)l1(D,F,P,B,Z,X,q,W)}function c1(D,F,P,B,Z,X,q,J){if(q===J)return;if(Z.has(q,J,X))return;Z.add(q,J,X);let Y=D.getFragment(q),H=D.getFragment(J);if(!Y||!H)return;let[U,W]=P9(D,P,Y),[O,z]=P9(D,P,H);B9(D,F,P,B,Z,X,U,O);for(let I of z)c1(D,F,P,B,Z,X,q,I);for(let I of W)c1(D,F,P,B,Z,X,I,J)}function GK(D,F,P,B,Z,X,q,J,Y){let H=[],[U,W]=d1(D,F,X,q),[O,z]=d1(D,F,J,Y);B9(D,H,F,P,B,Z,U,O);for(let I of z)l1(D,H,F,P,B,Z,U,I);for(let I of W)l1(D,H,F,P,B,Z,O,I);for(let I of W)for(let R of z)c1(D,H,F,P,B,Z,I,R);return H}function RK(D,F,P,B,Z,X){for(let[q,J]of Object.entries(X))if(J.length>1)for(let Y=0;Y<J.length;Y++)for(let H=Y+1;H<J.length;H++){let U=tX(D,P,B,Z,!1,q,J[Y],J[H]);if(U)F.push(U)}}function B9(D,F,P,B,Z,X,q,J){for(let[Y,H]of Object.entries(q)){let U=J[Y];if(U)for(let W of H)for(let O of U){let z=tX(D,P,B,Z,X,Y,W,O);if(z)F.push(z)}}}function tX(D,F,P,B,Z,X,q,J){let[Y,H,U]=q,[W,O,z]=J,I=Z||Y!==W&&(0,mD.isObjectType)(Y)&&(0,mD.isObjectType)(W);if(!I){let A=H.name.value,S=O.name.value;if(A!==S)return[[X,`"${A}" and "${S}" are different fields`],[H],[O]];if(!IK(H,O))return[[X,"they have differing arguments"],[H],[O]]}let R=U===null||U===void 0?void 0:U.type,$=z===null||z===void 0?void 0:z.type;if(R&&$&&F9(R,$))return[[X,`they return conflicting types "${(0,sX.inspect)(R)}" and "${(0,sX.inspect)($)}"`],[H],[O]];let K=H.selectionSet,j=O.selectionSet;if(K&&j){let A=GK(D,F,P,B,I,(0,mD.getNamedType)(R),K,(0,mD.getNamedType)($),j);return $K(A,X,H,O)}}function IK(D,F){let P=D.arguments,B=F.arguments;if(P===void 0||P.length===0)return B===void 0||B.length===0;if(B===void 0||B.length===0)return!1;if(P.length!==B.length)return!1;let Z=new Map(B.map(({name:X,value:q})=>[X.value,q]));return P.every((X)=>{let q=X.value,J=Z.get(X.name.value);if(J===void 0)return!1;return nX(q)===nX(J)})}function nX(D){return(0,WK.print)((0,OK.sortValueNode)(D))}function F9(D,F){if((0,mD.isListType)(D))return(0,mD.isListType)(F)?F9(D.ofType,F.ofType):!0;if((0,mD.isListType)(F))return!0;if((0,mD.isNonNullType)(D))return(0,mD.isNonNullType)(F)?F9(D.ofType,F.ofType):!0;if((0,mD.isNonNullType)(F))return!0;if((0,mD.isLeafType)(D)||(0,mD.isLeafType)(F))return D!==F;return!1}function d1(D,F,P,B){let Z=F.get(B);if(Z)return Z;let X=Object.create(null),q=Object.create(null);eX(D,P,B,X,q);let J=[X,Object.keys(q)];return F.set(B,J),J}function P9(D,F,P){let B=F.get(P.selectionSet);if(B)return B;let Z=(0,iX.typeFromAST)(D.getSchema(),P.typeCondition);return d1(D,F,Z,P.selectionSet)}function eX(D,F,P,B,Z){for(let X of P.selections)switch(X.kind){case D9.Kind.FIELD:{let q=X.name.value,J;if((0,mD.isObjectType)(F)||(0,mD.isInterfaceType)(F))J=F.getFields()[q];let Y=X.alias?X.alias.value:q;if(!B[Y])B[Y]=[];B[Y].push([F,X,J]);break}case D9.Kind.FRAGMENT_SPREAD:Z[X.name.value]=!0;break;case D9.Kind.INLINE_FRAGMENT:{let q=X.typeCondition,J=q?(0,iX.typeFromAST)(D.getSchema(),q):F;eX(D,J,X.selectionSet,B,Z);break}}}function $K(D,F,P,B){if(D.length>0)return[[F,D.map(([Z])=>Z)],[P,...D.map(([,Z])=>Z).flat()],[B,...D.map(([,,Z])=>Z).flat()]]}class Z9{constructor(){this._data=new Map}has(D,F,P){var B;let Z=(B=this._data.get(D))===null||B===void 0?void 0:B.get(F);if(Z===void 0)return!1;return P?!0:P===Z}add(D,F,P){let B=this._data.get(D);if(B===void 0)this._data.set(D,new Map([[F,P]]));else B.set(F,P)}}class Dq{constructor(){this._orderedPairSet=new Z9}has(D,F,P){return D<F?this._orderedPairSet.has(D,F,P):this._orderedPairSet.has(F,D,P)}add(D,F,P){if(D<F)this._orderedPairSet.add(D,F,P);else this._orderedPairSet.add(F,D,P)}}});var J9=Q((Zq)=>{Object.defineProperty(Zq,"__esModule",{value:!0});Zq.PossibleFragmentSpreadsRule=KK;var p1=ZD(),Pq=g(),q9=n(),Bq=D6(),EK=w2();function KK(D){return{InlineFragment(F){let P=D.getType(),B=D.getParentType();if((0,q9.isCompositeType)(P)&&(0,q9.isCompositeType)(B)&&!(0,Bq.doTypesOverlap)(D.getSchema(),P,B)){let Z=(0,p1.inspect)(B),X=(0,p1.inspect)(P);D.reportError(new Pq.GraphQLError(`Fragment cannot be spread here as objects of type "${Z}" can never be of type "${X}".`,{nodes:F}))}},FragmentSpread(F){let P=F.name.value,B=AK(D,P),Z=D.getParentType();if(B&&Z&&!(0,Bq.doTypesOverlap)(D.getSchema(),B,Z)){let X=(0,p1.inspect)(Z),q=(0,p1.inspect)(B);D.reportError(new Pq.GraphQLError(`Fragment "${P}" cannot be spread here as objects of type "${X}" can never be of type "${q}".`,{nodes:F}))}}}}function AK(D,F){let P=D.getFragment(F);if(P){let B=(0,EK.typeFromAST)(D.getSchema(),P.typeCondition);if((0,q9.isCompositeType)(B))return B}}});var Y9=Q((Yq)=>{Object.defineProperty(Yq,"__esModule",{value:!0});Yq.PossibleTypeExtensionsRule=jK;var LK=n2(),qq=ZD(),Jq=kD(),VK=o2(),Xq=g(),zD=s(),wK=S0(),W8=n();function jK(D){let F=D.getSchema(),P=Object.create(null);for(let Z of D.getDocument().definitions)if((0,wK.isTypeDefinitionNode)(Z))P[Z.name.value]=Z;return{ScalarTypeExtension:B,ObjectTypeExtension:B,InterfaceTypeExtension:B,UnionTypeExtension:B,EnumTypeExtension:B,InputObjectTypeExtension:B};function B(Z){let X=Z.name.value,q=P[X],J=F===null||F===void 0?void 0:F.getType(X),Y;if(q)Y=bK[q.kind];else if(J)Y=SK(J);if(Y){if(Y!==Z.kind){let H=TK(Z.kind);D.reportError(new Xq.GraphQLError(`Cannot extend non-${H} type "${X}".`,{nodes:q?[q,Z]:Z}))}}else{let H=Object.keys({...P,...F===null||F===void 0?void 0:F.getTypeMap()}),U=(0,VK.suggestionList)(X,H);D.reportError(new Xq.GraphQLError(`Cannot extend type "${X}" because it is not defined.`+(0,LK.didYouMean)(U),{nodes:Z.name}))}}}var bK={[zD.Kind.SCALAR_TYPE_DEFINITION]:zD.Kind.SCALAR_TYPE_EXTENSION,[zD.Kind.OBJECT_TYPE_DEFINITION]:zD.Kind.OBJECT_TYPE_EXTENSION,[zD.Kind.INTERFACE_TYPE_DEFINITION]:zD.Kind.INTERFACE_TYPE_EXTENSION,[zD.Kind.UNION_TYPE_DEFINITION]:zD.Kind.UNION_TYPE_EXTENSION,[zD.Kind.ENUM_TYPE_DEFINITION]:zD.Kind.ENUM_TYPE_EXTENSION,[zD.Kind.INPUT_OBJECT_TYPE_DEFINITION]:zD.Kind.INPUT_OBJECT_TYPE_EXTENSION};function SK(D){if((0,W8.isScalarType)(D))return zD.Kind.SCALAR_TYPE_EXTENSION;if((0,W8.isObjectType)(D))return zD.Kind.OBJECT_TYPE_EXTENSION;if((0,W8.isInterfaceType)(D))return zD.Kind.INTERFACE_TYPE_EXTENSION;if((0,W8.isUnionType)(D))return zD.Kind.UNION_TYPE_EXTENSION;if((0,W8.isEnumType)(D))return zD.Kind.ENUM_TYPE_EXTENSION;if((0,W8.isInputObjectType)(D))return zD.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,Jq.invariant)(!1,"Unexpected type: "+(0,qq.inspect)(D))}function TK(D){switch(D){case zD.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case zD.Kind.OBJECT_TYPE_EXTENSION:return"object";case zD.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case zD.Kind.UNION_TYPE_EXTENSION:return"union";case zD.Kind.ENUM_TYPE_EXTENSION:return"enum";case zD.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,Jq.invariant)(!1,"Unexpected kind: "+(0,qq.inspect)(D))}}});var U9=Q((Qq)=>{Object.defineProperty(Qq,"__esModule",{value:!0});Qq.ProvidedRequiredArgumentsOnDirectivesRule=zq;Qq.ProvidedRequiredArgumentsRule=kK;var Uq=ZD(),Hq=i2(),Wq=g(),Oq=s(),NK=rD(),H9=n(),_K=yD();function kK(D){return{...zq(D),Field:{leave(F){var P;let B=D.getFieldDef();if(!B)return!1;let Z=new Set((P=F.arguments)===null||P===void 0?void 0:P.map((X)=>X.name.value));for(let X of B.args)if(!Z.has(X.name)&&(0,H9.isRequiredArgument)(X)){let q=(0,Uq.inspect)(X.type);D.reportError(new Wq.GraphQLError(`Field "${B.name}" argument "${X.name}" of type "${q}" is required, but it was not provided.`,{nodes:F}))}}}}}function zq(D){var F;let P=Object.create(null),B=D.getSchema(),Z=(F=B===null||B===void 0?void 0:B.getDirectives())!==null&&F!==void 0?F:_K.specifiedDirectives;for(let J of Z)P[J.name]=(0,Hq.keyMap)(J.args.filter(H9.isRequiredArgument),(Y)=>Y.name);let X=D.getDocument().definitions;for(let J of X)if(J.kind===Oq.Kind.DIRECTIVE_DEFINITION){var q;let Y=(q=J.arguments)!==null&&q!==void 0?q:[];P[J.name.value]=(0,Hq.keyMap)(Y.filter(xK),(H)=>H.name.value)}return{Directive:{leave(J){let Y=J.name.value,H=P[Y];if(H){var U;let W=(U=J.arguments)!==null&&U!==void 0?U:[],O=new Set(W.map((z)=>z.name.value));for(let[z,I]of Object.entries(H))if(!O.has(z)){let R=(0,H9.isType)(I.type)?(0,Uq.inspect)(I.type):(0,NK.print)(I.type);D.reportError(new Wq.GraphQLError(`Directive "@${Y}" argument "${z}" of type "${R}" is required, but it was not provided.`,{nodes:J}))}}}}}}function xK(D){return D.type.kind===Oq.Kind.NON_NULL_TYPE&&D.defaultValue==null}});var z9=Q((Rq)=>{Object.defineProperty(Rq,"__esModule",{value:!0});Rq.ScalarLeafsRule=gK;var W9=ZD(),O9=g(),Gq=n();function gK(D){return{Field(F){let P=D.getType(),B=F.selectionSet;if(P){if((0,Gq.isLeafType)((0,Gq.getNamedType)(P))){if(B){let Z=F.name.value,X=(0,W9.inspect)(P);D.reportError(new O9.GraphQLError(`Field "${Z}" must not have a selection since type "${X}" has no subfields.`,{nodes:B}))}}else if(!B){let Z=F.name.value,X=(0,W9.inspect)(P);D.reportError(new O9.GraphQLError(`Field "${Z}" of type "${X}" must have a selection of subfields. Did you mean "${Z} { ... }"?`,{nodes:F}))}else if(B.selections.length===0){let Z=F.name.value,X=(0,W9.inspect)(P);D.reportError(new O9.GraphQLError(`Field "${Z}" of type "${X}" must have at least one field selected.`,{nodes:F}))}}}}}});var Q9=Q((Iq)=>{Object.defineProperty(Iq,"__esModule",{value:!0});Iq.printPathArray=yK;function yK(D){return D.map((F)=>typeof F==="number"?"["+F.toString()+"]":"."+F).join("")}});var O6=Q(($q)=>{Object.defineProperty($q,"__esModule",{value:!0});$q.addPath=lK;$q.pathToArray=cK;function lK(D,F,P){return{prev:D,key:F,typename:P}}function cK(D){let F=[],P=D;while(P)F.push(P.key),P=P.prev;return F.reverse()}});var G9=Q((Mq)=>{Object.defineProperty(Mq,"__esModule",{value:!0});Mq.coerceInputValue=tK;var rK=n2(),r1=ZD(),aK=kD(),sK=v1(),nK=K2(),G2=O6(),iK=Q9(),oK=o2(),g2=g(),z6=n();function tK(D,F,P=eK){return Q6(D,F,P,void 0)}function eK(D,F,P){let B="Invalid value "+(0,r1.inspect)(F);if(D.length>0)B+=` at "value${(0,iK.printPathArray)(D)}"`;throw P.message=B+": "+P.message,P}function Q6(D,F,P,B){if((0,z6.isNonNullType)(F)){if(D!=null)return Q6(D,F.ofType,P,B);P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Expected non-nullable type "${(0,r1.inspect)(F)}" not to be null.`));return}if(D==null)return null;if((0,z6.isListType)(F)){let Z=F.ofType;if((0,sK.isIterableObject)(D))return Array.from(D,(X,q)=>{let J=(0,G2.addPath)(B,q,void 0);return Q6(X,Z,P,J)});return[Q6(D,Z,P,B)]}if((0,z6.isInputObjectType)(F)){if(!(0,nK.isObjectLike)(D)||Array.isArray(D)){P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Expected type "${F.name}" to be an object.`));return}let Z={},X=F.getFields();for(let q of Object.values(X)){let J=D[q.name];if(J===void 0){if(q.defaultValue!==void 0)Z[q.name]=q.defaultValue;else if((0,z6.isNonNullType)(q.type)){let Y=(0,r1.inspect)(q.type);P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Field "${q.name}" of required type "${Y}" was not provided.`))}continue}Z[q.name]=Q6(J,q.type,P,(0,G2.addPath)(B,q.name,F.name))}for(let q of Object.keys(D))if(!X[q]){let J=(0,oK.suggestionList)(q,Object.keys(F.getFields()));P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Field "${q}" is not defined by type "${F.name}".`+(0,rK.didYouMean)(J)))}if(F.isOneOf){let q=Object.keys(Z);if(q.length!==1)P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Exactly one key must be specified for OneOf type "${F.name}".`));let J=q[0],Y=Z[J];if(Y===null)P((0,G2.pathToArray)(B).concat(J),Y,new g2.GraphQLError(`Field "${J}" must be non-null.`))}return Z}if((0,z6.isLeafType)(F)){let Z;try{Z=F.parseValue(D)}catch(X){if(X instanceof g2.GraphQLError)P((0,G2.pathToArray)(B),D,X);else P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Expected type "${F.name}". `+X.message,{originalError:X}));return}if(Z===void 0)P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Expected type "${F.name}".`));return Z}(0,aK.invariant)(!1,"Unexpected input type: "+(0,r1.inspect)(F))}});var R6=Q((Kq)=>{Object.defineProperty(Kq,"__esModule",{value:!0});Kq.valueFromAST=G6;var FA=ZD(),PA=kD(),BA=i2(),O8=s(),T0=n();function G6(D,F,P){if(!D)return;if(D.kind===O8.Kind.VARIABLE){let B=D.name.value;if(P==null||P[B]===void 0)return;let Z=P[B];if(Z===null&&(0,T0.isNonNullType)(F))return;return Z}if((0,T0.isNonNullType)(F)){if(D.kind===O8.Kind.NULL)return;return G6(D,F.ofType,P)}if(D.kind===O8.Kind.NULL)return null;if((0,T0.isListType)(F)){let B=F.ofType;if(D.kind===O8.Kind.LIST){let X=[];for(let q of D.values)if(Eq(q,P)){if((0,T0.isNonNullType)(B))return;X.push(null)}else{let J=G6(q,B,P);if(J===void 0)return;X.push(J)}return X}let Z=G6(D,B,P);if(Z===void 0)return;return[Z]}if((0,T0.isInputObjectType)(F)){if(D.kind!==O8.Kind.OBJECT)return;let B=Object.create(null),Z=(0,BA.keyMap)(D.fields,(X)=>X.name.value);for(let X of Object.values(F.getFields())){let q=Z[X.name];if(!q||Eq(q.value,P)){if(X.defaultValue!==void 0)B[X.name]=X.defaultValue;else if((0,T0.isNonNullType)(X.type))return;continue}let J=G6(q.value,X.type,P);if(J===void 0)return;B[X.name]=J}if(F.isOneOf){let X=Object.keys(B);if(X.length!==1)return;if(B[X[0]]===null)return}return B}if((0,T0.isLeafType)(F)){let B;try{B=F.parseLiteral(D,P)}catch(Z){return}if(B===void 0)return;return B}(0,PA.invariant)(!1,"Unexpected input type: "+(0,FA.inspect)(F))}function Eq(D,F){return D.kind===O8.Kind.VARIABLE&&(F==null||F[D.name.value]===void 0)}});var G8=Q((jq)=>{Object.defineProperty(jq,"__esModule",{value:!0});jq.getArgumentValues=Vq;jq.getDirectiveValues=WA;jq.getVariableValues=HA;var z8=ZD(),XA=i2(),qA=Q9(),v2=g(),Aq=s(),Cq=rD(),Q8=n(),JA=G9(),YA=w2(),Lq=R6();function HA(D,F,P,B){let Z=[],X=B===null||B===void 0?void 0:B.maxErrors;try{let q=UA(D,F,P,(J)=>{if(X!=null&&Z.length>=X)throw new v2.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");Z.push(J)});if(Z.length===0)return{coerced:q}}catch(q){Z.push(q)}return{errors:Z}}function UA(D,F,P,B){let Z={};for(let X of F){let q=X.variable.name.value,J=(0,YA.typeFromAST)(D,X.type);if(!(0,Q8.isInputType)(J)){let H=(0,Cq.print)(X.type);B(new v2.GraphQLError(`Variable "$${q}" expected value of type "${H}" which cannot be used as an input type.`,{nodes:X.type}));continue}if(!wq(P,q)){if(X.defaultValue)Z[q]=(0,Lq.valueFromAST)(X.defaultValue,J);else if((0,Q8.isNonNullType)(J)){let H=(0,z8.inspect)(J);B(new v2.GraphQLError(`Variable "$${q}" of required type "${H}" was not provided.`,{nodes:X}))}continue}let Y=P[q];if(Y===null&&(0,Q8.isNonNullType)(J)){let H=(0,z8.inspect)(J);B(new v2.GraphQLError(`Variable "$${q}" of non-null type "${H}" must not be null.`,{nodes:X}));continue}Z[q]=(0,JA.coerceInputValue)(Y,J,(H,U,W)=>{let O=`Variable "$${q}" got invalid value `+(0,z8.inspect)(U);if(H.length>0)O+=` at "${q}${(0,qA.printPathArray)(H)}"`;B(new v2.GraphQLError(O+"; "+W.message,{nodes:X,originalError:W}))})}return Z}function Vq(D,F,P){var B;let Z={},X=(B=F.arguments)!==null&&B!==void 0?B:[],q=(0,XA.keyMap)(X,(J)=>J.name.value);for(let J of D.args){let{name:Y,type:H}=J,U=q[Y];if(!U){if(J.defaultValue!==void 0)Z[Y]=J.defaultValue;else if((0,Q8.isNonNullType)(H))throw new v2.GraphQLError(`Argument "${Y}" of required type "${(0,z8.inspect)(H)}" was not provided.`,{nodes:F});continue}let W=U.value,O=W.kind===Aq.Kind.NULL;if(W.kind===Aq.Kind.VARIABLE){let I=W.name.value;if(P==null||!wq(P,I)){if(J.defaultValue!==void 0)Z[Y]=J.defaultValue;else if((0,Q8.isNonNullType)(H))throw new v2.GraphQLError(`Argument "${Y}" of required type "${(0,z8.inspect)(H)}" was provided the variable "$${I}" which was not provided a runtime value.`,{nodes:W});continue}O=P[I]==null}if(O&&(0,Q8.isNonNullType)(H))throw new v2.GraphQLError(`Argument "${Y}" of non-null type "${(0,z8.inspect)(H)}" must not be null.`,{nodes:W});let z=(0,Lq.valueFromAST)(W,H,P);if(z===void 0)throw new v2.GraphQLError(`Argument "${Y}" has invalid value ${(0,Cq.print)(W)}.`,{nodes:W});Z[Y]=z}return Z}function WA(D,F,P){var B;let Z=(B=F.directives)===null||B===void 0?void 0:B.find((X)=>X.name.value===D.name);if(Z)return Vq(D,Z,P)}function wq(D,F){return Object.prototype.hasOwnProperty.call(D,F)}});var s1=Q((uq)=>{Object.defineProperty(uq,"__esModule",{value:!0});uq.collectFields=IA;uq.collectSubfields=$A;var R9=s(),GA=n(),bq=yD(),RA=w2(),Sq=G8();function IA(D,F,P,B,Z){let X=new Map;return a1(D,F,P,B,Z,X,new Set),X}function $A(D,F,P,B,Z){let X=new Map,q=new Set;for(let J of Z)if(J.selectionSet)a1(D,F,P,B,J.selectionSet,X,q);return X}function a1(D,F,P,B,Z,X,q){for(let J of Z.selections)switch(J.kind){case R9.Kind.FIELD:{if(!I9(P,J))continue;let Y=MA(J),H=X.get(Y);if(H!==void 0)H.push(J);else X.set(Y,[J]);break}case R9.Kind.INLINE_FRAGMENT:{if(!I9(P,J)||!Tq(D,J,B))continue;a1(D,F,P,B,J.selectionSet,X,q);break}case R9.Kind.FRAGMENT_SPREAD:{let Y=J.name.value;if(q.has(Y)||!I9(P,J))continue;q.add(Y);let H=F[Y];if(!H||!Tq(D,H,B))continue;a1(D,F,P,B,H.selectionSet,X,q);break}}}function I9(D,F){let P=(0,Sq.getDirectiveValues)(bq.GraphQLSkipDirective,F,D);if((P===null||P===void 0?void 0:P.if)===!0)return!1;let B=(0,Sq.getDirectiveValues)(bq.GraphQLIncludeDirective,F,D);if((B===null||B===void 0?void 0:B.if)===!1)return!1;return!0}function Tq(D,F,P){let B=F.typeCondition;if(!B)return!0;let Z=(0,RA.typeFromAST)(D,B);if(Z===P)return!0;if((0,GA.isAbstractType)(Z))return D.isSubType(Z,P);return!1}function MA(D){return D.alias?D.alias.value:D.name.value}});var $9=Q((_q)=>{Object.defineProperty(_q,"__esModule",{value:!0});_q.SingleFieldSubscriptionsRule=LA;var Nq=g(),AA=s(),CA=s1();function LA(D){return{OperationDefinition(F){if(F.operation==="subscription"){let P=D.getSchema(),B=P.getSubscriptionType();if(B){let Z=F.name?F.name.value:null,X=Object.create(null),q=D.getDocument(),J=Object.create(null);for(let H of q.definitions)if(H.kind===AA.Kind.FRAGMENT_DEFINITION)J[H.name.value]=H;let Y=(0,CA.collectFields)(P,J,X,B,F.selectionSet);if(Y.size>1){let W=[...Y.values()].slice(1).flat();D.reportError(new Nq.GraphQLError(Z!=null?`Subscription "${Z}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:W}))}for(let H of Y.values())if(H[0].name.value.startsWith("__"))D.reportError(new Nq.GraphQLError(Z!=null?`Subscription "${Z}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:H}))}}}}}});var n1=Q((kq)=>{Object.defineProperty(kq,"__esModule",{value:!0});kq.groupBy=wA;function wA(D,F){let P=new Map;for(let B of D){let Z=F(B),X=P.get(Z);if(X===void 0)P.set(Z,[B]);else X.push(B)}return P}});var M9=Q((xq)=>{Object.defineProperty(xq,"__esModule",{value:!0});xq.UniqueArgumentDefinitionNamesRule=TA;var bA=n1(),SA=g();function TA(D){return{DirectiveDefinition(B){var Z;let X=(Z=B.arguments)!==null&&Z!==void 0?Z:[];return P(`@${B.name.value}`,X)},InterfaceTypeDefinition:F,InterfaceTypeExtension:F,ObjectTypeDefinition:F,ObjectTypeExtension:F};function F(B){var Z;let X=B.name.value,q=(Z=B.fields)!==null&&Z!==void 0?Z:[];for(let Y of q){var J;let H=Y.name.value,U=(J=Y.arguments)!==null&&J!==void 0?J:[];P(`${X}.${H}`,U)}return!1}function P(B,Z){let X=(0,bA.groupBy)(Z,(q)=>q.name.value);for(let[q,J]of X)if(J.length>1)D.reportError(new SA.GraphQLError(`Argument "${B}(${q}:)" can only be defined once.`,{nodes:J.map((Y)=>Y.name)}));return!1}}});var E9=Q((fq)=>{Object.defineProperty(fq,"__esModule",{value:!0});fq.UniqueArgumentNamesRule=kA;var NA=n1(),_A=g();function kA(D){return{Field:F,Directive:F};function F(P){var B;let Z=(B=P.arguments)!==null&&B!==void 0?B:[],X=(0,NA.groupBy)(Z,(q)=>q.name.value);for(let[q,J]of X)if(J.length>1)D.reportError(new _A.GraphQLError(`There can be only one argument named "${q}".`,{nodes:J.map((Y)=>Y.name)}))}}});var K9=Q((gq)=>{Object.defineProperty(gq,"__esModule",{value:!0});gq.UniqueDirectiveNamesRule=fA;var hq=g();function fA(D){let F=Object.create(null),P=D.getSchema();return{DirectiveDefinition(B){let Z=B.name.value;if(P!==null&&P!==void 0&&P.getDirective(Z)){D.reportError(new hq.GraphQLError(`Directive "@${Z}" already exists in the schema. It cannot be redefined.`,{nodes:B.name}));return}if(F[Z])D.reportError(new hq.GraphQLError(`There can be only one directive named "@${Z}".`,{nodes:[F[Z],B.name]}));else F[Z]=B.name;return!1}}}});var C9=Q((yq)=>{Object.defineProperty(yq,"__esModule",{value:!0});yq.UniqueDirectivesPerLocationRule=yA;var gA=g(),A9=s(),vq=S0(),vA=yD();function yA(D){let F=Object.create(null),P=D.getSchema(),B=P?P.getDirectives():vA.specifiedDirectives;for(let J of B)F[J.name]=!J.isRepeatable;let Z=D.getDocument().definitions;for(let J of Z)if(J.kind===A9.Kind.DIRECTIVE_DEFINITION)F[J.name.value]=!J.repeatable;let X=Object.create(null),q=Object.create(null);return{enter(J){if(!("directives"in J)||!J.directives)return;let Y;if(J.kind===A9.Kind.SCHEMA_DEFINITION||J.kind===A9.Kind.SCHEMA_EXTENSION)Y=X;else if((0,vq.isTypeDefinitionNode)(J)||(0,vq.isTypeExtensionNode)(J)){let H=J.name.value;if(Y=q[H],Y===void 0)q[H]=Y=Object.create(null)}else Y=Object.create(null);for(let H of J.directives){let U=H.name.value;if(F[U])if(Y[U])D.reportError(new gA.GraphQLError(`The directive "@${U}" can only be used once at this location.`,{nodes:[Y[U],H]}));else Y[U]=H}}}}});var L9=Q((lq)=>{Object.defineProperty(lq,"__esModule",{value:!0});lq.UniqueEnumValueNamesRule=cA;var mq=g(),lA=n();function cA(D){let F=D.getSchema(),P=F?F.getTypeMap():Object.create(null),B=Object.create(null);return{EnumTypeDefinition:Z,EnumTypeExtension:Z};function Z(X){var q;let J=X.name.value;if(!B[J])B[J]=Object.create(null);let Y=(q=X.values)!==null&&q!==void 0?q:[],H=B[J];for(let U of Y){let W=U.name.value,O=P[J];if((0,lA.isEnumType)(O)&&O.getValue(W))D.reportError(new mq.GraphQLError(`Enum value "${J}.${W}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:U.name}));else if(H[W])D.reportError(new mq.GraphQLError(`Enum value "${J}.${W}" can only be defined once.`,{nodes:[H[W],U.name]}));else H[W]=U.name}return!1}}});var w9=Q((dq)=>{Object.defineProperty(dq,"__esModule",{value:!0});dq.UniqueFieldDefinitionNamesRule=pA;var cq=g(),V9=n();function pA(D){let F=D.getSchema(),P=F?F.getTypeMap():Object.create(null),B=Object.create(null);return{InputObjectTypeDefinition:Z,InputObjectTypeExtension:Z,InterfaceTypeDefinition:Z,InterfaceTypeExtension:Z,ObjectTypeDefinition:Z,ObjectTypeExtension:Z};function Z(X){var q;let J=X.name.value;if(!B[J])B[J]=Object.create(null);let Y=(q=X.fields)!==null&&q!==void 0?q:[],H=B[J];for(let U of Y){let W=U.name.value;if(rA(P[J],W))D.reportError(new cq.GraphQLError(`Field "${J}.${W}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:U.name}));else if(H[W])D.reportError(new cq.GraphQLError(`Field "${J}.${W}" can only be defined once.`,{nodes:[H[W],U.name]}));else H[W]=U.name}return!1}}function rA(D,F){if((0,V9.isObjectType)(D)||(0,V9.isInterfaceType)(D)||(0,V9.isInputObjectType)(D))return D.getFields()[F]!=null;return!1}});var j9=Q((pq)=>{Object.defineProperty(pq,"__esModule",{value:!0});pq.UniqueFragmentNamesRule=nA;var sA=g();function nA(D){let F=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(P){let B=P.name.value;if(F[B])D.reportError(new sA.GraphQLError(`There can be only one fragment named "${B}".`,{nodes:[F[B],P.name]}));else F[B]=P.name;return!1}}}});var b9=Q((rq)=>{Object.defineProperty(rq,"__esModule",{value:!0});rq.UniqueInputFieldNamesRule=eA;var oA=kD(),tA=g();function eA(D){let F=[],P=Object.create(null);return{ObjectValue:{enter(){F.push(P),P=Object.create(null)},leave(){let B=F.pop();B||(0,oA.invariant)(!1),P=B}},ObjectField(B){let Z=B.name.value;if(P[Z])D.reportError(new tA.GraphQLError(`There can be only one input field named "${Z}".`,{nodes:[P[Z],B.name]}));else P[Z]=B.name}}}});var S9=Q((aq)=>{Object.defineProperty(aq,"__esModule",{value:!0});aq.UniqueOperationNamesRule=PC;var FC=g();function PC(D){let F=Object.create(null);return{OperationDefinition(P){let B=P.name;if(B)if(F[B.value])D.reportError(new FC.GraphQLError(`There can be only one operation named "${B.value}".`,{nodes:[F[B.value],B]}));else F[B.value]=B;return!1},FragmentDefinition:()=>!1}}});var T9=Q((nq)=>{Object.defineProperty(nq,"__esModule",{value:!0});nq.UniqueOperationTypesRule=ZC;var sq=g();function ZC(D){let F=D.getSchema(),P=Object.create(null),B=F?{query:F.getQueryType(),mutation:F.getMutationType(),subscription:F.getSubscriptionType()}:{};return{SchemaDefinition:Z,SchemaExtension:Z};function Z(X){var q;let J=(q=X.operationTypes)!==null&&q!==void 0?q:[];for(let Y of J){let H=Y.operation,U=P[H];if(B[H])D.reportError(new sq.GraphQLError(`Type for ${H} already defined in the schema. It cannot be redefined.`,{nodes:Y}));else if(U)D.reportError(new sq.GraphQLError(`There can be only one ${H} type in schema.`,{nodes:[U,Y]}));else P[H]=Y}return!1}}});var u9=Q((oq)=>{Object.defineProperty(oq,"__esModule",{value:!0});oq.UniqueTypeNamesRule=qC;var iq=g();function qC(D){let F=Object.create(null),P=D.getSchema();return{ScalarTypeDefinition:B,ObjectTypeDefinition:B,InterfaceTypeDefinition:B,UnionTypeDefinition:B,EnumTypeDefinition:B,InputObjectTypeDefinition:B};function B(Z){let X=Z.name.value;if(P!==null&&P!==void 0&&P.getType(X)){D.reportError(new iq.GraphQLError(`Type "${X}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:Z.name}));return}if(F[X])D.reportError(new iq.GraphQLError(`There can be only one type named "${X}".`,{nodes:[F[X],Z.name]}));else F[X]=Z.name;return!1}}});var N9=Q((tq)=>{Object.defineProperty(tq,"__esModule",{value:!0});tq.UniqueVariableNamesRule=UC;var YC=n1(),HC=g();function UC(D){return{OperationDefinition(F){var P;let B=(P=F.variableDefinitions)!==null&&P!==void 0?P:[],Z=(0,YC.groupBy)(B,(X)=>X.variable.name.value);for(let[X,q]of Z)if(q.length>1)D.reportError(new HC.GraphQLError(`There can be only one variable named "$${X}".`,{nodes:q.map((J)=>J.variable.name)}))}}}});var k9=Q((eq)=>{Object.defineProperty(eq,"__esModule",{value:!0});eq.ValuesOfCorrectTypeRule=GC;var OC=n2(),I6=ZD(),zC=i2(),QC=o2(),b2=g(),_9=s(),i1=rD(),j2=n();function GC(D){let F={};return{OperationDefinition:{enter(){F={}}},VariableDefinition(P){F[P.variable.name.value]=P},ListValue(P){let B=(0,j2.getNullableType)(D.getParentInputType());if(!(0,j2.isListType)(B))return u0(D,P),!1},ObjectValue(P){let B=(0,j2.getNamedType)(D.getInputType());if(!(0,j2.isInputObjectType)(B))return u0(D,P),!1;let Z=(0,zC.keyMap)(P.fields,(X)=>X.name.value);for(let X of Object.values(B.getFields()))if(!Z[X.name]&&(0,j2.isRequiredInputField)(X)){let J=(0,I6.inspect)(X.type);D.reportError(new b2.GraphQLError(`Field "${B.name}.${X.name}" of required type "${J}" was not provided.`,{nodes:P}))}if(B.isOneOf)RC(D,P,B,Z,F)},ObjectField(P){let B=(0,j2.getNamedType)(D.getParentInputType());if(!D.getInputType()&&(0,j2.isInputObjectType)(B)){let X=(0,QC.suggestionList)(P.name.value,Object.keys(B.getFields()));D.reportError(new b2.GraphQLError(`Field "${P.name.value}" is not defined by type "${B.name}".`+(0,OC.didYouMean)(X),{nodes:P}))}},NullValue(P){let B=D.getInputType();if((0,j2.isNonNullType)(B))D.reportError(new b2.GraphQLError(`Expected value of type "${(0,I6.inspect)(B)}", found ${(0,i1.print)(P)}.`,{nodes:P}))},EnumValue:(P)=>u0(D,P),IntValue:(P)=>u0(D,P),FloatValue:(P)=>u0(D,P),StringValue:(P)=>u0(D,P),BooleanValue:(P)=>u0(D,P)}}function u0(D,F){let P=D.getInputType();if(!P)return;let B=(0,j2.getNamedType)(P);if(!(0,j2.isLeafType)(B)){let Z=(0,I6.inspect)(P);D.reportError(new b2.GraphQLError(`Expected value of type "${Z}", found ${(0,i1.print)(F)}.`,{nodes:F}));return}try{if(B.parseLiteral(F,void 0)===void 0){let X=(0,I6.inspect)(P);D.reportError(new b2.GraphQLError(`Expected value of type "${X}", found ${(0,i1.print)(F)}.`,{nodes:F}))}}catch(Z){let X=(0,I6.inspect)(P);if(Z instanceof b2.GraphQLError)D.reportError(Z);else D.reportError(new b2.GraphQLError(`Expected value of type "${X}", found ${(0,i1.print)(F)}; `+Z.message,{nodes:F,originalError:Z}))}}function RC(D,F,P,B,Z){var X;let q=Object.keys(B);if(q.length!==1){D.reportError(new b2.GraphQLError(`OneOf Input Object "${P.name}" must specify exactly one key.`,{nodes:[F]}));return}let Y=(X=B[q[0]])===null||X===void 0?void 0:X.value,H=!Y||Y.kind===_9.Kind.NULL,U=(Y===null||Y===void 0?void 0:Y.kind)===_9.Kind.VARIABLE;if(H){D.reportError(new b2.GraphQLError(`Field "${P.name}.${q[0]}" must be non-null.`,{nodes:[F]}));return}if(U){let W=Y.name.value;if(Z[W].type.kind!==_9.Kind.NON_NULL_TYPE)D.reportError(new b2.GraphQLError(`Variable "${W}" must be non-nullable to be used for OneOf Input Object "${P.name}".`,{nodes:[F]}))}}});var x9=Q((DJ)=>{Object.defineProperty(DJ,"__esModule",{value:!0});DJ.VariablesAreInputTypesRule=AC;var $C=g(),MC=rD(),EC=n(),KC=w2();function AC(D){return{VariableDefinition(F){let P=(0,KC.typeFromAST)(D.getSchema(),F.type);if(P!==void 0&&!(0,EC.isInputType)(P)){let B=F.variable.name.value,Z=(0,MC.print)(F.type);D.reportError(new $C.GraphQLError(`Variable "$${B}" cannot be non-input type "${Z}".`,{nodes:F.type}))}}}}});var f9=Q((ZJ)=>{Object.defineProperty(ZJ,"__esModule",{value:!0});ZJ.VariablesInAllowedPositionRule=wC;var FJ=ZD(),PJ=g(),LC=s(),o1=n(),BJ=D6(),VC=w2();function wC(D){let F=Object.create(null);return{OperationDefinition:{enter(){F=Object.create(null)},leave(P){let B=D.getRecursiveVariableUsages(P);for(let{node:Z,type:X,defaultValue:q,parentType:J}of B){let Y=Z.name.value,H=F[Y];if(H&&X){let U=D.getSchema(),W=(0,VC.typeFromAST)(U,H.type);if(W&&!jC(U,W,H.defaultValue,X,q)){let O=(0,FJ.inspect)(W),z=(0,FJ.inspect)(X);D.reportError(new PJ.GraphQLError(`Variable "$${Y}" of type "${O}" used in position expecting type "${z}".`,{nodes:[H,Z]}))}if((0,o1.isInputObjectType)(J)&&J.isOneOf&&(0,o1.isNullableType)(W))D.reportError(new PJ.GraphQLError(`Variable "$${Y}" is of type "${W}" but must be non-nullable to be used for OneOf Input Object "${J}".`,{nodes:[H,Z]}))}}}},VariableDefinition(P){F[P.variable.name.value]=P}}}function jC(D,F,P,B,Z){if((0,o1.isNonNullType)(B)&&!(0,o1.isNonNullType)(F)){if(!(P!=null&&P.kind!==LC.Kind.NULL)&&Z===void 0)return!1;let J=B.ofType;return(0,BJ.isTypeSubTypeOf)(D,F,J)}return(0,BJ.isTypeSubTypeOf)(D,F,B)}});var h9=Q((zJ)=>{Object.defineProperty(zJ,"__esModule",{value:!0});zJ.specifiedSDLRules=zJ.specifiedRules=zJ.recommendedRules=void 0;var SC=x4(),TC=f4(),uC=h4(),XJ=g4(),qJ=m4(),NC=l4(),JJ=d4(),_C=p4(),kC=r4(),xC=a4(),fC=s4(),hC=n4(),gC=i4(),vC=o4(),yC=X9(),mC=J9(),lC=Y9(),YJ=U9(),cC=z9(),dC=$9(),pC=M9(),HJ=E9(),rC=K9(),UJ=C9(),aC=L9(),sC=w9(),nC=j9(),WJ=b9(),iC=S9(),oC=T9(),tC=u9(),eC=N9(),DL=k9(),FL=x9(),PL=f9(),OJ=Object.freeze([xC.MaxIntrospectionDepthRule]);zJ.recommendedRules=OJ;var BL=Object.freeze([SC.ExecutableDefinitionsRule,iC.UniqueOperationNamesRule,_C.LoneAnonymousOperationRule,dC.SingleFieldSubscriptionsRule,JJ.KnownTypeNamesRule,uC.FragmentsOnCompositeTypesRule,FL.VariablesAreInputTypesRule,cC.ScalarLeafsRule,TC.FieldsOnCorrectTypeRule,nC.UniqueFragmentNamesRule,NC.KnownFragmentNamesRule,gC.NoUnusedFragmentsRule,mC.PossibleFragmentSpreadsRule,fC.NoFragmentCyclesRule,eC.UniqueVariableNamesRule,hC.NoUndefinedVariablesRule,vC.NoUnusedVariablesRule,qJ.KnownDirectivesRule,UJ.UniqueDirectivesPerLocationRule,XJ.KnownArgumentNamesRule,HJ.UniqueArgumentNamesRule,DL.ValuesOfCorrectTypeRule,YJ.ProvidedRequiredArgumentsRule,PL.VariablesInAllowedPositionRule,yC.OverlappingFieldsCanBeMergedRule,WJ.UniqueInputFieldNamesRule,...OJ]);zJ.specifiedRules=BL;var ZL=Object.freeze([kC.LoneSchemaDefinitionRule,oC.UniqueOperationTypesRule,tC.UniqueTypeNamesRule,aC.UniqueEnumValueNamesRule,sC.UniqueFieldDefinitionNamesRule,pC.UniqueArgumentDefinitionNamesRule,rC.UniqueDirectiveNamesRule,JJ.KnownTypeNamesRule,qJ.KnownDirectivesRule,UJ.UniqueDirectivesPerLocationRule,lC.PossibleTypeExtensionsRule,XJ.KnownArgumentNamesOnDirectivesRule,HJ.UniqueArgumentNamesRule,WJ.UniqueInputFieldNamesRule,YJ.ProvidedRequiredArgumentsOnDirectivesRule]);zJ.specifiedSDLRules=ZL});var g9=Q((MJ)=>{Object.defineProperty(MJ,"__esModule",{value:!0});MJ.ValidationContext=MJ.SDLValidationContext=MJ.ASTValidationContext=void 0;var GJ=s(),JL=K0(),RJ=m1();class t1{constructor(D,F){this._ast=D,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=F}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(D){this._onError(D)}getDocument(){return this._ast}getFragment(D){let F;if(this._fragments)F=this._fragments;else{F=Object.create(null);for(let P of this.getDocument().definitions)if(P.kind===GJ.Kind.FRAGMENT_DEFINITION)F[P.name.value]=P;this._fragments=F}return F[D]}getFragmentSpreads(D){let F=this._fragmentSpreads.get(D);if(!F){F=[];let P=[D],B;while(B=P.pop())for(let Z of B.selections)if(Z.kind===GJ.Kind.FRAGMENT_SPREAD)F.push(Z);else if(Z.selectionSet)P.push(Z.selectionSet);this._fragmentSpreads.set(D,F)}return F}getRecursivelyReferencedFragments(D){let F=this._recursivelyReferencedFragments.get(D);if(!F){F=[];let P=Object.create(null),B=[D.selectionSet],Z;while(Z=B.pop())for(let X of this.getFragmentSpreads(Z)){let q=X.name.value;if(P[q]!==!0){P[q]=!0;let J=this.getFragment(q);if(J)F.push(J),B.push(J.selectionSet)}}this._recursivelyReferencedFragments.set(D,F)}return F}}MJ.ASTValidationContext=t1;class IJ extends t1{constructor(D,F,P){super(D,P);this._schema=F}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}MJ.SDLValidationContext=IJ;class $J extends t1{constructor(D,F,P,B){super(F,B);this._schema=D,this._typeInfo=P,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(D){let F=this._variableUsages.get(D);if(!F){let P=[],B=new RJ.TypeInfo(this._schema);(0,JL.visit)(D,(0,RJ.visitWithTypeInfo)(B,{VariableDefinition:()=>!1,Variable(Z){P.push({node:Z,type:B.getInputType(),defaultValue:B.getDefaultValue(),parentType:B.getParentInputType()})}})),F=P,this._variableUsages.set(D,F)}return F}getRecursiveVariableUsages(D){let F=this._recursiveVariableUsages.get(D);if(!F){F=this.getVariableUsages(D);for(let P of this.getRecursivelyReferencedFragments(D))F=F.concat(this.getVariableUsages(P));this._recursiveVariableUsages.set(D,F)}return F}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()}}MJ.ValidationContext=$J});var $6=Q((LJ)=>{Object.defineProperty(LJ,"__esModule",{value:!0});LJ.assertValidSDL=QL;LJ.assertValidSDLExtension=GL;LJ.validate=zL;LJ.validateSDL=v9;var UL=hD(),WL=g(),e1=K0(),OL=U6(),KJ=m1(),AJ=h9(),CJ=g9();function zL(D,F,P=AJ.specifiedRules,B,Z=new KJ.TypeInfo(D)){var X;let q=(X=B===null||B===void 0?void 0:B.maxErrors)!==null&&X!==void 0?X:100;F||(0,UL.devAssert)(!1,"Must provide document."),(0,OL.assertValidSchema)(D);let J=Object.freeze({}),Y=[],H=new CJ.ValidationContext(D,F,Z,(W)=>{if(Y.length>=q)throw Y.push(new WL.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),J;Y.push(W)}),U=(0,e1.visitInParallel)(P.map((W)=>W(H)));try{(0,e1.visit)(F,(0,KJ.visitWithTypeInfo)(Z,U))}catch(W){if(W!==J)throw W}return Y}function v9(D,F,P=AJ.specifiedSDLRules){let B=[],Z=new CJ.SDLValidationContext(D,F,(q)=>{B.push(q)}),X=P.map((q)=>q(Z));return(0,e1.visit)(D,(0,e1.visitInParallel)(X)),B}function QL(D){let F=v9(D);if(F.length!==0)throw new Error(F.map((P)=>P.message).join(`
74
+ `))}class BX{constructor(D){this._errors=[],this.schema=D}reportError(D,F){let P=Array.isArray(F)?F.filter(Boolean):F;this._errors.push(new LM.GraphQLError(D,{nodes:P}))}getErrors(){return this._errors}}function bM(D){let F=D.schema,P=F.getQueryType();if(!P)D.reportError("Query root type must be provided.",F.astNode);else if(!(0,ID.isObjectType)(P)){var B;D.reportError(`Query root type must be Object type, it cannot be ${(0,fD.inspect)(P)}.`,(B=T4(F,S4.OperationTypeNode.QUERY))!==null&&B!==void 0?B:P.astNode)}let Z=F.getMutationType();if(Z&&!(0,ID.isObjectType)(Z)){var X;D.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,fD.inspect)(Z)}.`,(X=T4(F,S4.OperationTypeNode.MUTATION))!==null&&X!==void 0?X:Z.astNode)}let q=F.getSubscriptionType();if(q&&!(0,ID.isObjectType)(q)){var J;D.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,fD.inspect)(q)}.`,(J=T4(F,S4.OperationTypeNode.SUBSCRIPTION))!==null&&J!==void 0?J:q.astNode)}}function T4(D,F){var P;return(P=[D.astNode,...D.extensionASTNodes].flatMap((B)=>{var Z;return(Z=B===null||B===void 0?void 0:B.operationTypes)!==null&&Z!==void 0?Z:[]}).find((B)=>B.operation===F))===null||P===void 0?void 0:P.type}function SM(D){for(let P of D.schema.getDirectives()){if(!(0,FX.isDirective)(P)){D.reportError(`Expected directive but got: ${(0,fD.inspect)(P)}.`,P===null||P===void 0?void 0:P.astNode);continue}if(b0(D,P),P.locations.length===0)D.reportError(`Directive @${P.name} must include 1 or more locations.`,P.astNode);for(let B of P.args){if(b0(D,B),!(0,ID.isInputType)(B.type))D.reportError(`The type of @${P.name}(${B.name}:) must be Input Type but got: ${(0,fD.inspect)(B.type)}.`,B.astNode);if((0,ID.isRequiredArgument)(B)&&B.deprecationReason!=null){var F;D.reportError(`Required argument @${P.name}(${B.name}:) cannot be deprecated.`,[u4(B.astNode),(F=B.astNode)===null||F===void 0?void 0:F.type])}}}}function b0(D,F){if(F.name.startsWith("__"))D.reportError(`Name "${F.name}" must not begin with "__", which is reserved by GraphQL introspection.`,F.astNode)}function TM(D){let F=hM(D),P=D.schema.getTypeMap();for(let B of Object.values(P)){if(!(0,ID.isNamedType)(B)){D.reportError(`Expected GraphQL named type but got: ${(0,fD.inspect)(B)}.`,B.astNode);continue}if(!(0,VM.isIntrospectionType)(B))b0(D,B);if((0,ID.isObjectType)(B))tZ(D,B),eZ(D,B);else if((0,ID.isInterfaceType)(B))tZ(D,B),eZ(D,B);else if((0,ID.isUnionType)(B))_M(D,B);else if((0,ID.isEnumType)(B))kM(D,B);else if((0,ID.isInputObjectType)(B))xM(D,B),F(B)}}function tZ(D,F){let P=Object.values(F.getFields());if(P.length===0)D.reportError(`Type ${F.name} must define one or more fields.`,[F.astNode,...F.extensionASTNodes]);for(let q of P){if(b0(D,q),!(0,ID.isOutputType)(q.type)){var B;D.reportError(`The type of ${F.name}.${q.name} must be Output Type but got: ${(0,fD.inspect)(q.type)}.`,(B=q.astNode)===null||B===void 0?void 0:B.type)}for(let J of q.args){let Y=J.name;if(b0(D,J),!(0,ID.isInputType)(J.type)){var Z;D.reportError(`The type of ${F.name}.${q.name}(${Y}:) must be Input Type but got: ${(0,fD.inspect)(J.type)}.`,(Z=J.astNode)===null||Z===void 0?void 0:Z.type)}if((0,ID.isRequiredArgument)(J)&&J.deprecationReason!=null){var X;D.reportError(`Required argument ${F.name}.${q.name}(${Y}:) cannot be deprecated.`,[u4(J.astNode),(X=J.astNode)===null||X===void 0?void 0:X.type])}}}}function eZ(D,F){let P=Object.create(null);for(let B of F.getInterfaces()){if(!(0,ID.isInterfaceType)(B)){D.reportError(`Type ${(0,fD.inspect)(F)} must only implement Interface types, it cannot implement ${(0,fD.inspect)(B)}.`,H6(F,B));continue}if(F===B){D.reportError(`Type ${F.name} cannot implement itself because it would create a circular reference.`,H6(F,B));continue}if(P[B.name]){D.reportError(`Type ${F.name} can only implement ${B.name} once.`,H6(F,B));continue}P[B.name]=!0,NM(D,F,B),uM(D,F,B)}}function uM(D,F,P){let B=F.getFields();for(let Y of Object.values(P.getFields())){let H=Y.name,U=B[H];if(!U){D.reportError(`Interface field ${P.name}.${H} expected but ${F.name} does not provide it.`,[Y.astNode,F.astNode,...F.extensionASTNodes]);continue}if(!(0,oZ.isTypeSubTypeOf)(D.schema,U.type,Y.type)){var Z,X;D.reportError(`Interface field ${P.name}.${H} expects type ${(0,fD.inspect)(Y.type)} but ${F.name}.${H} is type ${(0,fD.inspect)(U.type)}.`,[(Z=Y.astNode)===null||Z===void 0?void 0:Z.type,(X=U.astNode)===null||X===void 0?void 0:X.type])}for(let W of Y.args){let O=W.name,z=U.args.find((I)=>I.name===O);if(!z){D.reportError(`Interface field argument ${P.name}.${H}(${O}:) expected but ${F.name}.${H} does not provide it.`,[W.astNode,U.astNode]);continue}if(!(0,oZ.isEqualType)(W.type,z.type)){var q,J;D.reportError(`Interface field argument ${P.name}.${H}(${O}:) expects type ${(0,fD.inspect)(W.type)} but ${F.name}.${H}(${O}:) is type ${(0,fD.inspect)(z.type)}.`,[(q=W.astNode)===null||q===void 0?void 0:q.type,(J=z.astNode)===null||J===void 0?void 0:J.type])}}for(let W of U.args){let O=W.name;if(!Y.args.find((I)=>I.name===O)&&(0,ID.isRequiredArgument)(W))D.reportError(`Object field ${F.name}.${H} includes required argument ${O} that is missing from the Interface field ${P.name}.${H}.`,[W.astNode,Y.astNode])}}}function NM(D,F,P){let B=F.getInterfaces();for(let Z of P.getInterfaces())if(!B.includes(Z))D.reportError(Z===F?`Type ${F.name} cannot implement ${P.name} because it would create a circular reference.`:`Type ${F.name} must implement ${Z.name} because it is implemented by ${P.name}.`,[...H6(P,Z),...H6(F,P)])}function _M(D,F){let P=F.getTypes();if(P.length===0)D.reportError(`Union type ${F.name} must define one or more member types.`,[F.astNode,...F.extensionASTNodes]);let B=Object.create(null);for(let Z of P){if(B[Z.name]){D.reportError(`Union type ${F.name} can only include type ${Z.name} once.`,DX(F,Z.name));continue}if(B[Z.name]=!0,!(0,ID.isObjectType)(Z))D.reportError(`Union type ${F.name} can only include Object types, it cannot include ${(0,fD.inspect)(Z)}.`,DX(F,String(Z)))}}function kM(D,F){let P=F.getValues();if(P.length===0)D.reportError(`Enum type ${F.name} must define one or more values.`,[F.astNode,...F.extensionASTNodes]);for(let B of P)b0(D,B)}function xM(D,F){let P=Object.values(F.getFields());if(P.length===0)D.reportError(`Input Object type ${F.name} must define one or more fields.`,[F.astNode,...F.extensionASTNodes]);for(let X of P){if(b0(D,X),!(0,ID.isInputType)(X.type)){var B;D.reportError(`The type of ${F.name}.${X.name} must be Input Type but got: ${(0,fD.inspect)(X.type)}.`,(B=X.astNode)===null||B===void 0?void 0:B.type)}if((0,ID.isRequiredInputField)(X)&&X.deprecationReason!=null){var Z;D.reportError(`Required input field ${F.name}.${X.name} cannot be deprecated.`,[u4(X.astNode),(Z=X.astNode)===null||Z===void 0?void 0:Z.type])}if(F.isOneOf)fM(F,X,D)}}function fM(D,F,P){if((0,ID.isNonNullType)(F.type)){var B;P.reportError(`OneOf input field ${D.name}.${F.name} must be nullable.`,(B=F.astNode)===null||B===void 0?void 0:B.type)}if(F.defaultValue!==void 0)P.reportError(`OneOf input field ${D.name}.${F.name} cannot have a default value.`,F.astNode)}function hM(D){let F=Object.create(null),P=[],B=Object.create(null);return Z;function Z(X){if(F[X.name])return;F[X.name]=!0,B[X.name]=P.length;let q=Object.values(X.getFields());for(let J of q)if((0,ID.isNonNullType)(J.type)&&(0,ID.isInputObjectType)(J.type.ofType)){let Y=J.type.ofType,H=B[Y.name];if(P.push(J),H===void 0)Z(Y);else{let U=P.slice(H),W=U.map((O)=>O.name).join(".");D.reportError(`Cannot reference Input Object "${Y.name}" within itself through a series of non-null fields: "${W}".`,U.map((O)=>O.astNode))}P.pop()}B[X.name]=void 0}}function H6(D,F){let{astNode:P,extensionASTNodes:B}=D;return(P!=null?[P,...B]:B).flatMap((X)=>{var q;return(q=X.interfaces)!==null&&q!==void 0?q:[]}).filter((X)=>X.name.value===F.name)}function DX(D,F){let{astNode:P,extensionASTNodes:B}=D;return(P!=null?[P,...B]:B).flatMap((X)=>{var q;return(q=X.types)!==null&&q!==void 0?q:[]}).filter((X)=>X.name.value===F)}function u4(D){var F;return D===null||D===void 0?void 0:(F=D.directives)===null||F===void 0?void 0:F.find((P)=>P.name.value===FX.GraphQLDeprecatedDirective.name)}});var w2=Q((qX)=>{Object.defineProperty(qX,"__esModule",{value:!0});qX.typeFromAST=_4;var N4=s(),XX=n();function _4(D,F){switch(F.kind){case N4.Kind.LIST_TYPE:{let P=_4(D,F.type);return P&&new XX.GraphQLList(P)}case N4.Kind.NON_NULL_TYPE:{let P=_4(D,F.type);return P&&new XX.GraphQLNonNull(P)}case N4.Kind.NAMED_TYPE:return D.getType(F.name.value)}}});var m1=Q((UX)=>{Object.defineProperty(UX,"__esModule",{value:!0});UX.TypeInfo=void 0;UX.visitWithTypeInfo=cM;var mM=A2(),$D=s(),JX=K0(),MD=n(),U8=tD(),YX=w2();class HX{constructor(D,F,P){if(this._schema=D,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=P!==null&&P!==void 0?P:lM,F){if((0,MD.isInputType)(F))this._inputTypeStack.push(F);if((0,MD.isCompositeType)(F))this._parentTypeStack.push(F);if((0,MD.isOutputType)(F))this._typeStack.push(F)}}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(D){let F=this._schema;switch(D.kind){case $D.Kind.SELECTION_SET:{let B=(0,MD.getNamedType)(this.getType());this._parentTypeStack.push((0,MD.isCompositeType)(B)?B:void 0);break}case $D.Kind.FIELD:{let B=this.getParentType(),Z,X;if(B){if(Z=this._getFieldDef(F,B,D),Z)X=Z.type}this._fieldDefStack.push(Z),this._typeStack.push((0,MD.isOutputType)(X)?X:void 0);break}case $D.Kind.DIRECTIVE:this._directive=F.getDirective(D.name.value);break;case $D.Kind.OPERATION_DEFINITION:{let B=F.getRootType(D.operation);this._typeStack.push((0,MD.isObjectType)(B)?B:void 0);break}case $D.Kind.INLINE_FRAGMENT:case $D.Kind.FRAGMENT_DEFINITION:{let B=D.typeCondition,Z=B?(0,YX.typeFromAST)(F,B):(0,MD.getNamedType)(this.getType());this._typeStack.push((0,MD.isOutputType)(Z)?Z:void 0);break}case $D.Kind.VARIABLE_DEFINITION:{let B=(0,YX.typeFromAST)(F,D.type);this._inputTypeStack.push((0,MD.isInputType)(B)?B:void 0);break}case $D.Kind.ARGUMENT:{var P;let B,Z,X=(P=this.getDirective())!==null&&P!==void 0?P:this.getFieldDef();if(X){if(B=X.args.find((q)=>q.name===D.name.value),B)Z=B.type}this._argument=B,this._defaultValueStack.push(B?B.defaultValue:void 0),this._inputTypeStack.push((0,MD.isInputType)(Z)?Z:void 0);break}case $D.Kind.LIST:{let B=(0,MD.getNullableType)(this.getInputType()),Z=(0,MD.isListType)(B)?B.ofType:B;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,MD.isInputType)(Z)?Z:void 0);break}case $D.Kind.OBJECT_FIELD:{let B=(0,MD.getNamedType)(this.getInputType()),Z,X;if((0,MD.isInputObjectType)(B)){if(X=B.getFields()[D.name.value],X)Z=X.type}this._defaultValueStack.push(X?X.defaultValue:void 0),this._inputTypeStack.push((0,MD.isInputType)(Z)?Z:void 0);break}case $D.Kind.ENUM:{let B=(0,MD.getNamedType)(this.getInputType()),Z;if((0,MD.isEnumType)(B))Z=B.getValue(D.value);this._enumValue=Z;break}default:}}leave(D){switch(D.kind){case $D.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case $D.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case $D.Kind.DIRECTIVE:this._directive=null;break;case $D.Kind.OPERATION_DEFINITION:case $D.Kind.INLINE_FRAGMENT:case $D.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case $D.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case $D.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case $D.Kind.LIST:case $D.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case $D.Kind.ENUM:this._enumValue=null;break;default:}}}UX.TypeInfo=HX;function lM(D,F,P){let B=P.name.value;if(B===U8.SchemaMetaFieldDef.name&&D.getQueryType()===F)return U8.SchemaMetaFieldDef;if(B===U8.TypeMetaFieldDef.name&&D.getQueryType()===F)return U8.TypeMetaFieldDef;if(B===U8.TypeNameMetaFieldDef.name&&(0,MD.isCompositeType)(F))return U8.TypeNameMetaFieldDef;if((0,MD.isObjectType)(F)||(0,MD.isInterfaceType)(F))return F.getFields()[B]}function cM(D,F){return{enter(...P){let B=P[0];D.enter(B);let Z=(0,JX.getEnterLeaveForKind)(F,B.kind).enter;if(Z){let X=Z.apply(F,P);if(X!==void 0){if(D.leave(B),(0,mM.isNode)(X))D.enter(X)}return X}},leave(...P){let B=P[0],Z=(0,JX.getEnterLeaveForKind)(F,B.kind).leave,X;if(Z)X=Z.apply(F,P);return D.leave(B),X}}}});var S0=Q(($X)=>{Object.defineProperty($X,"__esModule",{value:!0});$X.isConstValueNode=k4;$X.isDefinitionNode=pM;$X.isExecutableDefinitionNode=OX;$X.isSelectionNode=rM;$X.isTypeDefinitionNode=GX;$X.isTypeExtensionNode=IX;$X.isTypeNode=aM;$X.isTypeSystemDefinitionNode=QX;$X.isTypeSystemExtensionNode=RX;$X.isValueNode=zX;var i=s();function pM(D){return OX(D)||QX(D)||RX(D)}function OX(D){return D.kind===i.Kind.OPERATION_DEFINITION||D.kind===i.Kind.FRAGMENT_DEFINITION}function rM(D){return D.kind===i.Kind.FIELD||D.kind===i.Kind.FRAGMENT_SPREAD||D.kind===i.Kind.INLINE_FRAGMENT}function zX(D){return D.kind===i.Kind.VARIABLE||D.kind===i.Kind.INT||D.kind===i.Kind.FLOAT||D.kind===i.Kind.STRING||D.kind===i.Kind.BOOLEAN||D.kind===i.Kind.NULL||D.kind===i.Kind.ENUM||D.kind===i.Kind.LIST||D.kind===i.Kind.OBJECT}function k4(D){return zX(D)&&(D.kind===i.Kind.LIST?D.values.some(k4):D.kind===i.Kind.OBJECT?D.fields.some((F)=>k4(F.value)):D.kind!==i.Kind.VARIABLE)}function aM(D){return D.kind===i.Kind.NAMED_TYPE||D.kind===i.Kind.LIST_TYPE||D.kind===i.Kind.NON_NULL_TYPE}function QX(D){return D.kind===i.Kind.SCHEMA_DEFINITION||GX(D)||D.kind===i.Kind.DIRECTIVE_DEFINITION}function GX(D){return D.kind===i.Kind.SCALAR_TYPE_DEFINITION||D.kind===i.Kind.OBJECT_TYPE_DEFINITION||D.kind===i.Kind.INTERFACE_TYPE_DEFINITION||D.kind===i.Kind.UNION_TYPE_DEFINITION||D.kind===i.Kind.ENUM_TYPE_DEFINITION||D.kind===i.Kind.INPUT_OBJECT_TYPE_DEFINITION}function RX(D){return D.kind===i.Kind.SCHEMA_EXTENSION||IX(D)}function IX(D){return D.kind===i.Kind.SCALAR_TYPE_EXTENSION||D.kind===i.Kind.OBJECT_TYPE_EXTENSION||D.kind===i.Kind.INTERFACE_TYPE_EXTENSION||D.kind===i.Kind.UNION_TYPE_EXTENSION||D.kind===i.Kind.ENUM_TYPE_EXTENSION||D.kind===i.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var x4=Q((EX)=>{Object.defineProperty(EX,"__esModule",{value:!0});EX.ExecutableDefinitionsRule=qE;var ZE=g(),MX=s(),XE=S0();function qE(D){return{Document(F){for(let P of F.definitions)if(!(0,XE.isExecutableDefinitionNode)(P)){let B=P.kind===MX.Kind.SCHEMA_DEFINITION||P.kind===MX.Kind.SCHEMA_EXTENSION?"schema":'"'+P.name.value+'"';D.reportError(new ZE.GraphQLError(`The ${B} definition is not executable.`,{nodes:P}))}return!1}}}});var f4=Q((AX)=>{Object.defineProperty(AX,"__esModule",{value:!0});AX.FieldsOnCorrectTypeRule=WE;var KX=n2(),YE=n8(),HE=o2(),UE=g(),W6=n();function WE(D){return{Field(F){let P=D.getParentType();if(P){if(!D.getFieldDef()){let Z=D.getSchema(),X=F.name.value,q=(0,KX.didYouMean)("to use an inline fragment on",OE(Z,P,X));if(q==="")q=(0,KX.didYouMean)(zE(P,X));D.reportError(new UE.GraphQLError(`Cannot query field "${X}" on type "${P.name}".`+q,{nodes:F}))}}}}}function OE(D,F,P){if(!(0,W6.isAbstractType)(F))return[];let B=new Set,Z=Object.create(null);for(let q of D.getPossibleTypes(F)){if(!q.getFields()[P])continue;B.add(q),Z[q.name]=1;for(let J of q.getInterfaces()){var X;if(!J.getFields()[P])continue;B.add(J),Z[J.name]=((X=Z[J.name])!==null&&X!==void 0?X:0)+1}}return[...B].sort((q,J)=>{let Y=Z[J.name]-Z[q.name];if(Y!==0)return Y;if((0,W6.isInterfaceType)(q)&&D.isSubType(q,J))return-1;if((0,W6.isInterfaceType)(J)&&D.isSubType(J,q))return 1;return(0,YE.naturalCompare)(q.name,J.name)}).map((q)=>q.name)}function zE(D,F){if((0,W6.isObjectType)(D)||(0,W6.isInterfaceType)(D)){let P=Object.keys(D.getFields());return(0,HE.suggestionList)(F,P)}return[]}});var h4=Q((jX)=>{Object.defineProperty(jX,"__esModule",{value:!0});jX.FragmentsOnCompositeTypesRule=GE;var CX=g(),LX=rD(),VX=n(),wX=w2();function GE(D){return{InlineFragment(F){let P=F.typeCondition;if(P){let B=(0,wX.typeFromAST)(D.getSchema(),P);if(B&&!(0,VX.isCompositeType)(B)){let Z=(0,LX.print)(P);D.reportError(new CX.GraphQLError(`Fragment cannot condition on non composite type "${Z}".`,{nodes:P}))}}},FragmentDefinition(F){let P=(0,wX.typeFromAST)(D.getSchema(),F.typeCondition);if(P&&!(0,VX.isCompositeType)(P)){let B=(0,LX.print)(F.typeCondition);D.reportError(new CX.GraphQLError(`Fragment "${F.name.value}" cannot condition on non composite type "${B}".`,{nodes:F.typeCondition}))}}}}});var g4=Q((NX)=>{Object.defineProperty(NX,"__esModule",{value:!0});NX.KnownArgumentNamesOnDirectivesRule=uX;NX.KnownArgumentNamesRule=ME;var bX=n2(),SX=o2(),TX=g(),IE=s(),$E=yD();function ME(D){return{...uX(D),Argument(F){let P=D.getArgument(),B=D.getFieldDef(),Z=D.getParentType();if(!P&&B&&Z){let X=F.name.value,q=B.args.map((Y)=>Y.name),J=(0,SX.suggestionList)(X,q);D.reportError(new TX.GraphQLError(`Unknown argument "${X}" on field "${Z.name}.${B.name}".`+(0,bX.didYouMean)(J),{nodes:F}))}}}}function uX(D){let F=Object.create(null),P=D.getSchema(),B=P?P.getDirectives():$E.specifiedDirectives;for(let q of B)F[q.name]=q.args.map((J)=>J.name);let Z=D.getDocument().definitions;for(let q of Z)if(q.kind===IE.Kind.DIRECTIVE_DEFINITION){var X;let J=(X=q.arguments)!==null&&X!==void 0?X:[];F[q.name.value]=J.map((Y)=>Y.name.value)}return{Directive(q){let J=q.name.value,Y=F[J];if(q.arguments&&Y)for(let H of q.arguments){let U=H.name.value;if(!Y.includes(U)){let W=(0,SX.suggestionList)(U,Y);D.reportError(new TX.GraphQLError(`Unknown argument "${U}" on directive "@${J}".`+(0,bX.didYouMean)(W),{nodes:H}))}}return!1}}}});var m4=Q((kX)=>{Object.defineProperty(kX,"__esModule",{value:!0});kX.KnownDirectivesRule=LE;var AE=ZD(),v4=kD(),_X=g(),y4=A2(),jD=B8(),UD=s(),CE=yD();function LE(D){let F=Object.create(null),P=D.getSchema(),B=P?P.getDirectives():CE.specifiedDirectives;for(let X of B)F[X.name]=X.locations;let Z=D.getDocument().definitions;for(let X of Z)if(X.kind===UD.Kind.DIRECTIVE_DEFINITION)F[X.name.value]=X.locations.map((q)=>q.value);return{Directive(X,q,J,Y,H){let U=X.name.value,W=F[U];if(!W){D.reportError(new _X.GraphQLError(`Unknown directive "@${U}".`,{nodes:X}));return}let O=VE(H);if(O&&!W.includes(O))D.reportError(new _X.GraphQLError(`Directive "@${U}" may not be used on ${O}.`,{nodes:X}))}}}function VE(D){let F=D[D.length-1];switch("kind"in F||(0,v4.invariant)(!1),F.kind){case UD.Kind.OPERATION_DEFINITION:return wE(F.operation);case UD.Kind.FIELD:return jD.DirectiveLocation.FIELD;case UD.Kind.FRAGMENT_SPREAD:return jD.DirectiveLocation.FRAGMENT_SPREAD;case UD.Kind.INLINE_FRAGMENT:return jD.DirectiveLocation.INLINE_FRAGMENT;case UD.Kind.FRAGMENT_DEFINITION:return jD.DirectiveLocation.FRAGMENT_DEFINITION;case UD.Kind.VARIABLE_DEFINITION:return jD.DirectiveLocation.VARIABLE_DEFINITION;case UD.Kind.SCHEMA_DEFINITION:case UD.Kind.SCHEMA_EXTENSION:return jD.DirectiveLocation.SCHEMA;case UD.Kind.SCALAR_TYPE_DEFINITION:case UD.Kind.SCALAR_TYPE_EXTENSION:return jD.DirectiveLocation.SCALAR;case UD.Kind.OBJECT_TYPE_DEFINITION:case UD.Kind.OBJECT_TYPE_EXTENSION:return jD.DirectiveLocation.OBJECT;case UD.Kind.FIELD_DEFINITION:return jD.DirectiveLocation.FIELD_DEFINITION;case UD.Kind.INTERFACE_TYPE_DEFINITION:case UD.Kind.INTERFACE_TYPE_EXTENSION:return jD.DirectiveLocation.INTERFACE;case UD.Kind.UNION_TYPE_DEFINITION:case UD.Kind.UNION_TYPE_EXTENSION:return jD.DirectiveLocation.UNION;case UD.Kind.ENUM_TYPE_DEFINITION:case UD.Kind.ENUM_TYPE_EXTENSION:return jD.DirectiveLocation.ENUM;case UD.Kind.ENUM_VALUE_DEFINITION:return jD.DirectiveLocation.ENUM_VALUE;case UD.Kind.INPUT_OBJECT_TYPE_DEFINITION:case UD.Kind.INPUT_OBJECT_TYPE_EXTENSION:return jD.DirectiveLocation.INPUT_OBJECT;case UD.Kind.INPUT_VALUE_DEFINITION:{let P=D[D.length-3];return"kind"in P||(0,v4.invariant)(!1),P.kind===UD.Kind.INPUT_OBJECT_TYPE_DEFINITION?jD.DirectiveLocation.INPUT_FIELD_DEFINITION:jD.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,v4.invariant)(!1,"Unexpected kind: "+(0,AE.inspect)(F.kind))}}function wE(D){switch(D){case y4.OperationTypeNode.QUERY:return jD.DirectiveLocation.QUERY;case y4.OperationTypeNode.MUTATION:return jD.DirectiveLocation.MUTATION;case y4.OperationTypeNode.SUBSCRIPTION:return jD.DirectiveLocation.SUBSCRIPTION}}});var l4=Q((xX)=>{Object.defineProperty(xX,"__esModule",{value:!0});xX.KnownFragmentNamesRule=SE;var bE=g();function SE(D){return{FragmentSpread(F){let P=F.name.value;if(!D.getFragment(P))D.reportError(new bE.GraphQLError(`Unknown fragment "${P}".`,{nodes:F.name}))}}}});var d4=Q((hX)=>{Object.defineProperty(hX,"__esModule",{value:!0});hX.KnownTypeNamesRule=fE;var uE=n2(),NE=o2(),_E=g(),c4=S0(),kE=tD(),xE=V2();function fE(D){let F=D.getSchema(),P=F?F.getTypeMap():Object.create(null),B=Object.create(null);for(let X of D.getDocument().definitions)if((0,c4.isTypeDefinitionNode)(X))B[X.name.value]=!0;let Z=[...Object.keys(P),...Object.keys(B)];return{NamedType(X,q,J,Y,H){let U=X.name.value;if(!P[U]&&!B[U]){var W;let O=(W=H[2])!==null&&W!==void 0?W:J,z=O!=null&&hE(O);if(z&&fX.includes(U))return;let I=(0,NE.suggestionList)(U,z?fX.concat(Z):Z);D.reportError(new _E.GraphQLError(`Unknown type "${U}".`+(0,uE.didYouMean)(I),{nodes:X}))}}}}var fX=[...xE.specifiedScalarTypes,...kE.introspectionTypes].map((D)=>D.name);function hE(D){return"kind"in D&&((0,c4.isTypeSystemDefinitionNode)(D)||(0,c4.isTypeSystemExtensionNode)(D))}});var p4=Q((gX)=>{Object.defineProperty(gX,"__esModule",{value:!0});gX.LoneAnonymousOperationRule=mE;var vE=g(),yE=s();function mE(D){let F=0;return{Document(P){F=P.definitions.filter((B)=>B.kind===yE.Kind.OPERATION_DEFINITION).length},OperationDefinition(P){if(!P.name&&F>1)D.reportError(new vE.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:P}))}}}});var r4=Q((yX)=>{Object.defineProperty(yX,"__esModule",{value:!0});yX.LoneSchemaDefinitionRule=cE;var vX=g();function cE(D){var F,P,B;let Z=D.getSchema(),X=(F=(P=(B=Z===null||Z===void 0?void 0:Z.astNode)!==null&&B!==void 0?B:Z===null||Z===void 0?void 0:Z.getQueryType())!==null&&P!==void 0?P:Z===null||Z===void 0?void 0:Z.getMutationType())!==null&&F!==void 0?F:Z===null||Z===void 0?void 0:Z.getSubscriptionType(),q=0;return{SchemaDefinition(J){if(X){D.reportError(new vX.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:J}));return}if(q>0)D.reportError(new vX.GraphQLError("Must provide only one schema definition.",{nodes:J}));++q}}}});var a4=Q((lX)=>{Object.defineProperty(lX,"__esModule",{value:!0});lX.MaxIntrospectionDepthRule=aE;var pE=g(),mX=s(),rE=3;function aE(D){function F(P,B=Object.create(null),Z=0){if(P.kind===mX.Kind.FRAGMENT_SPREAD){let X=P.name.value;if(B[X]===!0)return!1;let q=D.getFragment(X);if(!q)return!1;try{return B[X]=!0,F(q,B,Z)}finally{B[X]=void 0}}if(P.kind===mX.Kind.FIELD&&(P.name.value==="fields"||P.name.value==="interfaces"||P.name.value==="possibleTypes"||P.name.value==="inputFields")){if(Z++,Z>=rE)return!0}if("selectionSet"in P&&P.selectionSet){for(let X of P.selectionSet.selections)if(F(X,B,Z))return!0}return!1}return{Field(P){if(P.name.value==="__schema"||P.name.value==="__type"){if(F(P))return D.reportError(new pE.GraphQLError("Maximum introspection depth exceeded",{nodes:[P]})),!1}}}}});var s4=Q((cX)=>{Object.defineProperty(cX,"__esModule",{value:!0});cX.NoFragmentCyclesRule=iE;var nE=g();function iE(D){let F=Object.create(null),P=[],B=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(X){return Z(X),!1}};function Z(X){if(F[X.name.value])return;let q=X.name.value;F[q]=!0;let J=D.getFragmentSpreads(X.selectionSet);if(J.length===0)return;B[q]=P.length;for(let Y of J){let H=Y.name.value,U=B[H];if(P.push(Y),U===void 0){let W=D.getFragment(H);if(W)Z(W)}else{let W=P.slice(U),O=W.slice(0,-1).map((z)=>'"'+z.name.value+'"').join(", ");D.reportError(new nE.GraphQLError(`Cannot spread fragment "${H}" within itself`+(O!==""?` via ${O}.`:"."),{nodes:W}))}P.pop()}B[q]=void 0}}});var n4=Q((dX)=>{Object.defineProperty(dX,"__esModule",{value:!0});dX.NoUndefinedVariablesRule=eE;var tE=g();function eE(D){let F=Object.create(null);return{OperationDefinition:{enter(){F=Object.create(null)},leave(P){let B=D.getRecursiveVariableUsages(P);for(let{node:Z}of B){let X=Z.name.value;if(F[X]!==!0)D.reportError(new tE.GraphQLError(P.name?`Variable "$${X}" is not defined by operation "${P.name.value}".`:`Variable "$${X}" is not defined.`,{nodes:[Z,P]}))}}},VariableDefinition(P){F[P.variable.name.value]=!0}}}});var i4=Q((pX)=>{Object.defineProperty(pX,"__esModule",{value:!0});pX.NoUnusedFragmentsRule=PK;var FK=g();function PK(D){let F=[],P=[];return{OperationDefinition(B){return F.push(B),!1},FragmentDefinition(B){return P.push(B),!1},Document:{leave(){let B=Object.create(null);for(let Z of F)for(let X of D.getRecursivelyReferencedFragments(Z))B[X.name.value]=!0;for(let Z of P){let X=Z.name.value;if(B[X]!==!0)D.reportError(new FK.GraphQLError(`Fragment "${X}" is never used.`,{nodes:Z}))}}}}}});var o4=Q((rX)=>{Object.defineProperty(rX,"__esModule",{value:!0});rX.NoUnusedVariablesRule=XK;var ZK=g();function XK(D){let F=[];return{OperationDefinition:{enter(){F=[]},leave(P){let B=Object.create(null),Z=D.getRecursiveVariableUsages(P);for(let{node:X}of Z)B[X.name.value]=!0;for(let X of F){let q=X.variable.name.value;if(B[q]!==!0)D.reportError(new ZK.GraphQLError(P.name?`Variable "$${q}" is never used in operation "${P.name.value}".`:`Variable "$${q}" is never used.`,{nodes:X}))}}},VariableDefinition(P){F.push(P)}}}});var e4=Q((aX)=>{Object.defineProperty(aX,"__esModule",{value:!0});aX.sortValueNode=t4;var JK=n8(),h2=s();function t4(D){switch(D.kind){case h2.Kind.OBJECT:return{...D,fields:YK(D.fields)};case h2.Kind.LIST:return{...D,values:D.values.map(t4)};case h2.Kind.INT:case h2.Kind.FLOAT:case h2.Kind.STRING:case h2.Kind.BOOLEAN:case h2.Kind.NULL:case h2.Kind.ENUM:case h2.Kind.VARIABLE:return D}}function YK(D){return D.map((F)=>({...F,value:t4(F.value)})).sort((F,P)=>(0,JK.naturalCompare)(F.name.value,P.name.value))}});var X9=Q((Fq)=>{Object.defineProperty(Fq,"__esModule",{value:!0});Fq.OverlappingFieldsCanBeMergedRule=zK;var sX=ZD(),UK=g(),D9=s(),WK=rD(),mD=n(),OK=e4(),iX=w2();function oX(D){if(Array.isArray(D))return D.map(([F,P])=>`subfields "${F}" conflict because `+oX(P)).join(" and ");return D}function zK(D){let F=new Z9,P=new Dq,B=new Map;return{SelectionSet(Z){let X=QK(D,B,F,P,D.getParentType(),Z);for(let[[q,J],Y,H]of X){let U=oX(J);D.reportError(new UK.GraphQLError(`Fields "${q}" conflict because ${U}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:Y.concat(H)}))}}}}function QK(D,F,P,B,Z,X){let q=[],[J,Y]=d1(D,F,Z,X);if(RK(D,q,F,P,B,J),Y.length!==0)for(let H=0;H<Y.length;H++){l1(D,q,F,P,B,!1,J,Y[H]);for(let U=H+1;U<Y.length;U++)c1(D,q,F,P,B,!1,Y[H],Y[U])}return q}function l1(D,F,P,B,Z,X,q,J){if(B.has(q,J,X))return;B.add(q,J,X);let Y=D.getFragment(J);if(!Y)return;let[H,U]=P9(D,P,Y);if(q===H)return;B9(D,F,P,B,Z,X,q,H);for(let W of U)l1(D,F,P,B,Z,X,q,W)}function c1(D,F,P,B,Z,X,q,J){if(q===J)return;if(Z.has(q,J,X))return;Z.add(q,J,X);let Y=D.getFragment(q),H=D.getFragment(J);if(!Y||!H)return;let[U,W]=P9(D,P,Y),[O,z]=P9(D,P,H);B9(D,F,P,B,Z,X,U,O);for(let I of z)c1(D,F,P,B,Z,X,q,I);for(let I of W)c1(D,F,P,B,Z,X,I,J)}function GK(D,F,P,B,Z,X,q,J,Y){let H=[],[U,W]=d1(D,F,X,q),[O,z]=d1(D,F,J,Y);B9(D,H,F,P,B,Z,U,O);for(let I of z)l1(D,H,F,P,B,Z,U,I);for(let I of W)l1(D,H,F,P,B,Z,O,I);for(let I of W)for(let R of z)c1(D,H,F,P,B,Z,I,R);return H}function RK(D,F,P,B,Z,X){for(let[q,J]of Object.entries(X))if(J.length>1)for(let Y=0;Y<J.length;Y++)for(let H=Y+1;H<J.length;H++){let U=tX(D,P,B,Z,!1,q,J[Y],J[H]);if(U)F.push(U)}}function B9(D,F,P,B,Z,X,q,J){for(let[Y,H]of Object.entries(q)){let U=J[Y];if(U)for(let W of H)for(let O of U){let z=tX(D,P,B,Z,X,Y,W,O);if(z)F.push(z)}}}function tX(D,F,P,B,Z,X,q,J){let[Y,H,U]=q,[W,O,z]=J,I=Z||Y!==W&&(0,mD.isObjectType)(Y)&&(0,mD.isObjectType)(W);if(!I){let A=H.name.value,S=O.name.value;if(A!==S)return[[X,`"${A}" and "${S}" are different fields`],[H],[O]];if(!IK(H,O))return[[X,"they have differing arguments"],[H],[O]]}let R=U===null||U===void 0?void 0:U.type,$=z===null||z===void 0?void 0:z.type;if(R&&$&&F9(R,$))return[[X,`they return conflicting types "${(0,sX.inspect)(R)}" and "${(0,sX.inspect)($)}"`],[H],[O]];let K=H.selectionSet,j=O.selectionSet;if(K&&j){let A=GK(D,F,P,B,I,(0,mD.getNamedType)(R),K,(0,mD.getNamedType)($),j);return $K(A,X,H,O)}}function IK(D,F){let P=D.arguments,B=F.arguments;if(P===void 0||P.length===0)return B===void 0||B.length===0;if(B===void 0||B.length===0)return!1;if(P.length!==B.length)return!1;let Z=new Map(B.map(({name:X,value:q})=>[X.value,q]));return P.every((X)=>{let q=X.value,J=Z.get(X.name.value);if(J===void 0)return!1;return nX(q)===nX(J)})}function nX(D){return(0,WK.print)((0,OK.sortValueNode)(D))}function F9(D,F){if((0,mD.isListType)(D))return(0,mD.isListType)(F)?F9(D.ofType,F.ofType):!0;if((0,mD.isListType)(F))return!0;if((0,mD.isNonNullType)(D))return(0,mD.isNonNullType)(F)?F9(D.ofType,F.ofType):!0;if((0,mD.isNonNullType)(F))return!0;if((0,mD.isLeafType)(D)||(0,mD.isLeafType)(F))return D!==F;return!1}function d1(D,F,P,B){let Z=F.get(B);if(Z)return Z;let X=Object.create(null),q=Object.create(null);eX(D,P,B,X,q);let J=[X,Object.keys(q)];return F.set(B,J),J}function P9(D,F,P){let B=F.get(P.selectionSet);if(B)return B;let Z=(0,iX.typeFromAST)(D.getSchema(),P.typeCondition);return d1(D,F,Z,P.selectionSet)}function eX(D,F,P,B,Z){for(let X of P.selections)switch(X.kind){case D9.Kind.FIELD:{let q=X.name.value,J;if((0,mD.isObjectType)(F)||(0,mD.isInterfaceType)(F))J=F.getFields()[q];let Y=X.alias?X.alias.value:q;if(!B[Y])B[Y]=[];B[Y].push([F,X,J]);break}case D9.Kind.FRAGMENT_SPREAD:Z[X.name.value]=!0;break;case D9.Kind.INLINE_FRAGMENT:{let q=X.typeCondition,J=q?(0,iX.typeFromAST)(D.getSchema(),q):F;eX(D,J,X.selectionSet,B,Z);break}}}function $K(D,F,P,B){if(D.length>0)return[[F,D.map(([Z])=>Z)],[P,...D.map(([,Z])=>Z).flat()],[B,...D.map(([,,Z])=>Z).flat()]]}class Z9{constructor(){this._data=new Map}has(D,F,P){var B;let Z=(B=this._data.get(D))===null||B===void 0?void 0:B.get(F);if(Z===void 0)return!1;return P?!0:P===Z}add(D,F,P){let B=this._data.get(D);if(B===void 0)this._data.set(D,new Map([[F,P]]));else B.set(F,P)}}class Dq{constructor(){this._orderedPairSet=new Z9}has(D,F,P){return D<F?this._orderedPairSet.has(D,F,P):this._orderedPairSet.has(F,D,P)}add(D,F,P){if(D<F)this._orderedPairSet.add(D,F,P);else this._orderedPairSet.add(F,D,P)}}});var J9=Q((Zq)=>{Object.defineProperty(Zq,"__esModule",{value:!0});Zq.PossibleFragmentSpreadsRule=KK;var p1=ZD(),Pq=g(),q9=n(),Bq=D6(),EK=w2();function KK(D){return{InlineFragment(F){let P=D.getType(),B=D.getParentType();if((0,q9.isCompositeType)(P)&&(0,q9.isCompositeType)(B)&&!(0,Bq.doTypesOverlap)(D.getSchema(),P,B)){let Z=(0,p1.inspect)(B),X=(0,p1.inspect)(P);D.reportError(new Pq.GraphQLError(`Fragment cannot be spread here as objects of type "${Z}" can never be of type "${X}".`,{nodes:F}))}},FragmentSpread(F){let P=F.name.value,B=AK(D,P),Z=D.getParentType();if(B&&Z&&!(0,Bq.doTypesOverlap)(D.getSchema(),B,Z)){let X=(0,p1.inspect)(Z),q=(0,p1.inspect)(B);D.reportError(new Pq.GraphQLError(`Fragment "${P}" cannot be spread here as objects of type "${X}" can never be of type "${q}".`,{nodes:F}))}}}}function AK(D,F){let P=D.getFragment(F);if(P){let B=(0,EK.typeFromAST)(D.getSchema(),P.typeCondition);if((0,q9.isCompositeType)(B))return B}}});var Y9=Q((Yq)=>{Object.defineProperty(Yq,"__esModule",{value:!0});Yq.PossibleTypeExtensionsRule=jK;var LK=n2(),qq=ZD(),Jq=kD(),VK=o2(),Xq=g(),zD=s(),wK=S0(),W8=n();function jK(D){let F=D.getSchema(),P=Object.create(null);for(let Z of D.getDocument().definitions)if((0,wK.isTypeDefinitionNode)(Z))P[Z.name.value]=Z;return{ScalarTypeExtension:B,ObjectTypeExtension:B,InterfaceTypeExtension:B,UnionTypeExtension:B,EnumTypeExtension:B,InputObjectTypeExtension:B};function B(Z){let X=Z.name.value,q=P[X],J=F===null||F===void 0?void 0:F.getType(X),Y;if(q)Y=bK[q.kind];else if(J)Y=SK(J);if(Y){if(Y!==Z.kind){let H=TK(Z.kind);D.reportError(new Xq.GraphQLError(`Cannot extend non-${H} type "${X}".`,{nodes:q?[q,Z]:Z}))}}else{let H=Object.keys({...P,...F===null||F===void 0?void 0:F.getTypeMap()}),U=(0,VK.suggestionList)(X,H);D.reportError(new Xq.GraphQLError(`Cannot extend type "${X}" because it is not defined.`+(0,LK.didYouMean)(U),{nodes:Z.name}))}}}var bK={[zD.Kind.SCALAR_TYPE_DEFINITION]:zD.Kind.SCALAR_TYPE_EXTENSION,[zD.Kind.OBJECT_TYPE_DEFINITION]:zD.Kind.OBJECT_TYPE_EXTENSION,[zD.Kind.INTERFACE_TYPE_DEFINITION]:zD.Kind.INTERFACE_TYPE_EXTENSION,[zD.Kind.UNION_TYPE_DEFINITION]:zD.Kind.UNION_TYPE_EXTENSION,[zD.Kind.ENUM_TYPE_DEFINITION]:zD.Kind.ENUM_TYPE_EXTENSION,[zD.Kind.INPUT_OBJECT_TYPE_DEFINITION]:zD.Kind.INPUT_OBJECT_TYPE_EXTENSION};function SK(D){if((0,W8.isScalarType)(D))return zD.Kind.SCALAR_TYPE_EXTENSION;if((0,W8.isObjectType)(D))return zD.Kind.OBJECT_TYPE_EXTENSION;if((0,W8.isInterfaceType)(D))return zD.Kind.INTERFACE_TYPE_EXTENSION;if((0,W8.isUnionType)(D))return zD.Kind.UNION_TYPE_EXTENSION;if((0,W8.isEnumType)(D))return zD.Kind.ENUM_TYPE_EXTENSION;if((0,W8.isInputObjectType)(D))return zD.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,Jq.invariant)(!1,"Unexpected type: "+(0,qq.inspect)(D))}function TK(D){switch(D){case zD.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case zD.Kind.OBJECT_TYPE_EXTENSION:return"object";case zD.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case zD.Kind.UNION_TYPE_EXTENSION:return"union";case zD.Kind.ENUM_TYPE_EXTENSION:return"enum";case zD.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,Jq.invariant)(!1,"Unexpected kind: "+(0,qq.inspect)(D))}}});var U9=Q((Qq)=>{Object.defineProperty(Qq,"__esModule",{value:!0});Qq.ProvidedRequiredArgumentsOnDirectivesRule=zq;Qq.ProvidedRequiredArgumentsRule=kK;var Uq=ZD(),Hq=i2(),Wq=g(),Oq=s(),NK=rD(),H9=n(),_K=yD();function kK(D){return{...zq(D),Field:{leave(F){var P;let B=D.getFieldDef();if(!B)return!1;let Z=new Set((P=F.arguments)===null||P===void 0?void 0:P.map((X)=>X.name.value));for(let X of B.args)if(!Z.has(X.name)&&(0,H9.isRequiredArgument)(X)){let q=(0,Uq.inspect)(X.type);D.reportError(new Wq.GraphQLError(`Field "${B.name}" argument "${X.name}" of type "${q}" is required, but it was not provided.`,{nodes:F}))}}}}}function zq(D){var F;let P=Object.create(null),B=D.getSchema(),Z=(F=B===null||B===void 0?void 0:B.getDirectives())!==null&&F!==void 0?F:_K.specifiedDirectives;for(let J of Z)P[J.name]=(0,Hq.keyMap)(J.args.filter(H9.isRequiredArgument),(Y)=>Y.name);let X=D.getDocument().definitions;for(let J of X)if(J.kind===Oq.Kind.DIRECTIVE_DEFINITION){var q;let Y=(q=J.arguments)!==null&&q!==void 0?q:[];P[J.name.value]=(0,Hq.keyMap)(Y.filter(xK),(H)=>H.name.value)}return{Directive:{leave(J){let Y=J.name.value,H=P[Y];if(H){var U;let W=(U=J.arguments)!==null&&U!==void 0?U:[],O=new Set(W.map((z)=>z.name.value));for(let[z,I]of Object.entries(H))if(!O.has(z)){let R=(0,H9.isType)(I.type)?(0,Uq.inspect)(I.type):(0,NK.print)(I.type);D.reportError(new Wq.GraphQLError(`Directive "@${Y}" argument "${z}" of type "${R}" is required, but it was not provided.`,{nodes:J}))}}}}}}function xK(D){return D.type.kind===Oq.Kind.NON_NULL_TYPE&&D.defaultValue==null}});var z9=Q((Rq)=>{Object.defineProperty(Rq,"__esModule",{value:!0});Rq.ScalarLeafsRule=gK;var W9=ZD(),O9=g(),Gq=n();function gK(D){return{Field(F){let P=D.getType(),B=F.selectionSet;if(P){if((0,Gq.isLeafType)((0,Gq.getNamedType)(P))){if(B){let Z=F.name.value,X=(0,W9.inspect)(P);D.reportError(new O9.GraphQLError(`Field "${Z}" must not have a selection since type "${X}" has no subfields.`,{nodes:B}))}}else if(!B){let Z=F.name.value,X=(0,W9.inspect)(P);D.reportError(new O9.GraphQLError(`Field "${Z}" of type "${X}" must have a selection of subfields. Did you mean "${Z} { ... }"?`,{nodes:F}))}else if(B.selections.length===0){let Z=F.name.value,X=(0,W9.inspect)(P);D.reportError(new O9.GraphQLError(`Field "${Z}" of type "${X}" must have at least one field selected.`,{nodes:F}))}}}}}});var Q9=Q((Iq)=>{Object.defineProperty(Iq,"__esModule",{value:!0});Iq.printPathArray=yK;function yK(D){return D.map((F)=>typeof F==="number"?"["+F.toString()+"]":"."+F).join("")}});var O6=Q(($q)=>{Object.defineProperty($q,"__esModule",{value:!0});$q.addPath=lK;$q.pathToArray=cK;function lK(D,F,P){return{prev:D,key:F,typename:P}}function cK(D){let F=[],P=D;while(P)F.push(P.key),P=P.prev;return F.reverse()}});var G9=Q((Mq)=>{Object.defineProperty(Mq,"__esModule",{value:!0});Mq.coerceInputValue=tK;var rK=n2(),r1=ZD(),aK=kD(),sK=v1(),nK=K2(),G2=O6(),iK=Q9(),oK=o2(),g2=g(),z6=n();function tK(D,F,P=eK){return Q6(D,F,P,void 0)}function eK(D,F,P){let B="Invalid value "+(0,r1.inspect)(F);if(D.length>0)B+=` at "value${(0,iK.printPathArray)(D)}"`;throw P.message=B+": "+P.message,P}function Q6(D,F,P,B){if((0,z6.isNonNullType)(F)){if(D!=null)return Q6(D,F.ofType,P,B);P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Expected non-nullable type "${(0,r1.inspect)(F)}" not to be null.`));return}if(D==null)return null;if((0,z6.isListType)(F)){let Z=F.ofType;if((0,sK.isIterableObject)(D))return Array.from(D,(X,q)=>{let J=(0,G2.addPath)(B,q,void 0);return Q6(X,Z,P,J)});return[Q6(D,Z,P,B)]}if((0,z6.isInputObjectType)(F)){if(!(0,nK.isObjectLike)(D)||Array.isArray(D)){P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Expected type "${F.name}" to be an object.`));return}let Z={},X=F.getFields();for(let q of Object.values(X)){let J=D[q.name];if(J===void 0){if(q.defaultValue!==void 0)Z[q.name]=q.defaultValue;else if((0,z6.isNonNullType)(q.type)){let Y=(0,r1.inspect)(q.type);P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Field "${q.name}" of required type "${Y}" was not provided.`))}continue}Z[q.name]=Q6(J,q.type,P,(0,G2.addPath)(B,q.name,F.name))}for(let q of Object.keys(D))if(!X[q]){let J=(0,oK.suggestionList)(q,Object.keys(F.getFields()));P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Field "${q}" is not defined by type "${F.name}".`+(0,rK.didYouMean)(J)))}if(F.isOneOf){let q=Object.keys(Z);if(q.length!==1)P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Exactly one key must be specified for OneOf type "${F.name}".`));let J=q[0],Y=Z[J];if(Y===null)P((0,G2.pathToArray)(B).concat(J),Y,new g2.GraphQLError(`Field "${J}" must be non-null.`))}return Z}if((0,z6.isLeafType)(F)){let Z;try{Z=F.parseValue(D)}catch(X){if(X instanceof g2.GraphQLError)P((0,G2.pathToArray)(B),D,X);else P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Expected type "${F.name}". `+X.message,{originalError:X}));return}if(Z===void 0)P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Expected type "${F.name}".`));return Z}(0,aK.invariant)(!1,"Unexpected input type: "+(0,r1.inspect)(F))}});var R6=Q((Kq)=>{Object.defineProperty(Kq,"__esModule",{value:!0});Kq.valueFromAST=G6;var FA=ZD(),PA=kD(),BA=i2(),O8=s(),T0=n();function G6(D,F,P){if(!D)return;if(D.kind===O8.Kind.VARIABLE){let B=D.name.value;if(P==null||P[B]===void 0)return;let Z=P[B];if(Z===null&&(0,T0.isNonNullType)(F))return;return Z}if((0,T0.isNonNullType)(F)){if(D.kind===O8.Kind.NULL)return;return G6(D,F.ofType,P)}if(D.kind===O8.Kind.NULL)return null;if((0,T0.isListType)(F)){let B=F.ofType;if(D.kind===O8.Kind.LIST){let X=[];for(let q of D.values)if(Eq(q,P)){if((0,T0.isNonNullType)(B))return;X.push(null)}else{let J=G6(q,B,P);if(J===void 0)return;X.push(J)}return X}let Z=G6(D,B,P);if(Z===void 0)return;return[Z]}if((0,T0.isInputObjectType)(F)){if(D.kind!==O8.Kind.OBJECT)return;let B=Object.create(null),Z=(0,BA.keyMap)(D.fields,(X)=>X.name.value);for(let X of Object.values(F.getFields())){let q=Z[X.name];if(!q||Eq(q.value,P)){if(X.defaultValue!==void 0)B[X.name]=X.defaultValue;else if((0,T0.isNonNullType)(X.type))return;continue}let J=G6(q.value,X.type,P);if(J===void 0)return;B[X.name]=J}if(F.isOneOf){let X=Object.keys(B);if(X.length!==1)return;if(B[X[0]]===null)return}return B}if((0,T0.isLeafType)(F)){let B;try{B=F.parseLiteral(D,P)}catch(Z){return}if(B===void 0)return;return B}(0,PA.invariant)(!1,"Unexpected input type: "+(0,FA.inspect)(F))}function Eq(D,F){return D.kind===O8.Kind.VARIABLE&&(F==null||F[D.name.value]===void 0)}});var G8=Q((jq)=>{Object.defineProperty(jq,"__esModule",{value:!0});jq.getArgumentValues=Vq;jq.getDirectiveValues=WA;jq.getVariableValues=HA;var z8=ZD(),XA=i2(),qA=Q9(),v2=g(),Aq=s(),Cq=rD(),Q8=n(),JA=G9(),YA=w2(),Lq=R6();function HA(D,F,P,B){let Z=[],X=B===null||B===void 0?void 0:B.maxErrors;try{let q=UA(D,F,P,(J)=>{if(X!=null&&Z.length>=X)throw new v2.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");Z.push(J)});if(Z.length===0)return{coerced:q}}catch(q){Z.push(q)}return{errors:Z}}function UA(D,F,P,B){let Z={};for(let X of F){let q=X.variable.name.value,J=(0,YA.typeFromAST)(D,X.type);if(!(0,Q8.isInputType)(J)){let H=(0,Cq.print)(X.type);B(new v2.GraphQLError(`Variable "$${q}" expected value of type "${H}" which cannot be used as an input type.`,{nodes:X.type}));continue}if(!wq(P,q)){if(X.defaultValue)Z[q]=(0,Lq.valueFromAST)(X.defaultValue,J);else if((0,Q8.isNonNullType)(J)){let H=(0,z8.inspect)(J);B(new v2.GraphQLError(`Variable "$${q}" of required type "${H}" was not provided.`,{nodes:X}))}continue}let Y=P[q];if(Y===null&&(0,Q8.isNonNullType)(J)){let H=(0,z8.inspect)(J);B(new v2.GraphQLError(`Variable "$${q}" of non-null type "${H}" must not be null.`,{nodes:X}));continue}Z[q]=(0,JA.coerceInputValue)(Y,J,(H,U,W)=>{let O=`Variable "$${q}" got invalid value `+(0,z8.inspect)(U);if(H.length>0)O+=` at "${q}${(0,qA.printPathArray)(H)}"`;B(new v2.GraphQLError(O+"; "+W.message,{nodes:X,originalError:W}))})}return Z}function Vq(D,F,P){var B;let Z={},X=(B=F.arguments)!==null&&B!==void 0?B:[],q=(0,XA.keyMap)(X,(J)=>J.name.value);for(let J of D.args){let{name:Y,type:H}=J,U=q[Y];if(!U){if(J.defaultValue!==void 0)Z[Y]=J.defaultValue;else if((0,Q8.isNonNullType)(H))throw new v2.GraphQLError(`Argument "${Y}" of required type "${(0,z8.inspect)(H)}" was not provided.`,{nodes:F});continue}let W=U.value,O=W.kind===Aq.Kind.NULL;if(W.kind===Aq.Kind.VARIABLE){let I=W.name.value;if(P==null||!wq(P,I)){if(J.defaultValue!==void 0)Z[Y]=J.defaultValue;else if((0,Q8.isNonNullType)(H))throw new v2.GraphQLError(`Argument "${Y}" of required type "${(0,z8.inspect)(H)}" was provided the variable "$${I}" which was not provided a runtime value.`,{nodes:W});continue}O=P[I]==null}if(O&&(0,Q8.isNonNullType)(H))throw new v2.GraphQLError(`Argument "${Y}" of non-null type "${(0,z8.inspect)(H)}" must not be null.`,{nodes:W});let z=(0,Lq.valueFromAST)(W,H,P);if(z===void 0)throw new v2.GraphQLError(`Argument "${Y}" has invalid value ${(0,Cq.print)(W)}.`,{nodes:W});Z[Y]=z}return Z}function WA(D,F,P){var B;let Z=(B=F.directives)===null||B===void 0?void 0:B.find((X)=>X.name.value===D.name);if(Z)return Vq(D,Z,P)}function wq(D,F){return Object.prototype.hasOwnProperty.call(D,F)}});var s1=Q((uq)=>{Object.defineProperty(uq,"__esModule",{value:!0});uq.collectFields=IA;uq.collectSubfields=$A;var R9=s(),GA=n(),bq=yD(),RA=w2(),Sq=G8();function IA(D,F,P,B,Z){let X=new Map;return a1(D,F,P,B,Z,X,new Set),X}function $A(D,F,P,B,Z){let X=new Map,q=new Set;for(let J of Z)if(J.selectionSet)a1(D,F,P,B,J.selectionSet,X,q);return X}function a1(D,F,P,B,Z,X,q){for(let J of Z.selections)switch(J.kind){case R9.Kind.FIELD:{if(!I9(P,J))continue;let Y=MA(J),H=X.get(Y);if(H!==void 0)H.push(J);else X.set(Y,[J]);break}case R9.Kind.INLINE_FRAGMENT:{if(!I9(P,J)||!Tq(D,J,B))continue;a1(D,F,P,B,J.selectionSet,X,q);break}case R9.Kind.FRAGMENT_SPREAD:{let Y=J.name.value;if(q.has(Y)||!I9(P,J))continue;q.add(Y);let H=F[Y];if(!H||!Tq(D,H,B))continue;a1(D,F,P,B,H.selectionSet,X,q);break}}}function I9(D,F){let P=(0,Sq.getDirectiveValues)(bq.GraphQLSkipDirective,F,D);if((P===null||P===void 0?void 0:P.if)===!0)return!1;let B=(0,Sq.getDirectiveValues)(bq.GraphQLIncludeDirective,F,D);if((B===null||B===void 0?void 0:B.if)===!1)return!1;return!0}function Tq(D,F,P){let B=F.typeCondition;if(!B)return!0;let Z=(0,RA.typeFromAST)(D,B);if(Z===P)return!0;if((0,GA.isAbstractType)(Z))return D.isSubType(Z,P);return!1}function MA(D){return D.alias?D.alias.value:D.name.value}});var $9=Q((_q)=>{Object.defineProperty(_q,"__esModule",{value:!0});_q.SingleFieldSubscriptionsRule=LA;var Nq=g(),AA=s(),CA=s1();function LA(D){return{OperationDefinition(F){if(F.operation==="subscription"){let P=D.getSchema(),B=P.getSubscriptionType();if(B){let Z=F.name?F.name.value:null,X=Object.create(null),q=D.getDocument(),J=Object.create(null);for(let H of q.definitions)if(H.kind===AA.Kind.FRAGMENT_DEFINITION)J[H.name.value]=H;let Y=(0,CA.collectFields)(P,J,X,B,F.selectionSet);if(Y.size>1){let W=[...Y.values()].slice(1).flat();D.reportError(new Nq.GraphQLError(Z!=null?`Subscription "${Z}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:W}))}for(let H of Y.values())if(H[0].name.value.startsWith("__"))D.reportError(new Nq.GraphQLError(Z!=null?`Subscription "${Z}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:H}))}}}}}});var n1=Q((kq)=>{Object.defineProperty(kq,"__esModule",{value:!0});kq.groupBy=wA;function wA(D,F){let P=new Map;for(let B of D){let Z=F(B),X=P.get(Z);if(X===void 0)P.set(Z,[B]);else X.push(B)}return P}});var M9=Q((xq)=>{Object.defineProperty(xq,"__esModule",{value:!0});xq.UniqueArgumentDefinitionNamesRule=TA;var bA=n1(),SA=g();function TA(D){return{DirectiveDefinition(B){var Z;let X=(Z=B.arguments)!==null&&Z!==void 0?Z:[];return P(`@${B.name.value}`,X)},InterfaceTypeDefinition:F,InterfaceTypeExtension:F,ObjectTypeDefinition:F,ObjectTypeExtension:F};function F(B){var Z;let X=B.name.value,q=(Z=B.fields)!==null&&Z!==void 0?Z:[];for(let Y of q){var J;let H=Y.name.value,U=(J=Y.arguments)!==null&&J!==void 0?J:[];P(`${X}.${H}`,U)}return!1}function P(B,Z){let X=(0,bA.groupBy)(Z,(q)=>q.name.value);for(let[q,J]of X)if(J.length>1)D.reportError(new SA.GraphQLError(`Argument "${B}(${q}:)" can only be defined once.`,{nodes:J.map((Y)=>Y.name)}));return!1}}});var E9=Q((fq)=>{Object.defineProperty(fq,"__esModule",{value:!0});fq.UniqueArgumentNamesRule=kA;var NA=n1(),_A=g();function kA(D){return{Field:F,Directive:F};function F(P){var B;let Z=(B=P.arguments)!==null&&B!==void 0?B:[],X=(0,NA.groupBy)(Z,(q)=>q.name.value);for(let[q,J]of X)if(J.length>1)D.reportError(new _A.GraphQLError(`There can be only one argument named "${q}".`,{nodes:J.map((Y)=>Y.name)}))}}});var K9=Q((gq)=>{Object.defineProperty(gq,"__esModule",{value:!0});gq.UniqueDirectiveNamesRule=fA;var hq=g();function fA(D){let F=Object.create(null),P=D.getSchema();return{DirectiveDefinition(B){let Z=B.name.value;if(P!==null&&P!==void 0&&P.getDirective(Z)){D.reportError(new hq.GraphQLError(`Directive "@${Z}" already exists in the schema. It cannot be redefined.`,{nodes:B.name}));return}if(F[Z])D.reportError(new hq.GraphQLError(`There can be only one directive named "@${Z}".`,{nodes:[F[Z],B.name]}));else F[Z]=B.name;return!1}}}});var C9=Q((yq)=>{Object.defineProperty(yq,"__esModule",{value:!0});yq.UniqueDirectivesPerLocationRule=yA;var gA=g(),A9=s(),vq=S0(),vA=yD();function yA(D){let F=Object.create(null),P=D.getSchema(),B=P?P.getDirectives():vA.specifiedDirectives;for(let J of B)F[J.name]=!J.isRepeatable;let Z=D.getDocument().definitions;for(let J of Z)if(J.kind===A9.Kind.DIRECTIVE_DEFINITION)F[J.name.value]=!J.repeatable;let X=Object.create(null),q=Object.create(null);return{enter(J){if(!("directives"in J)||!J.directives)return;let Y;if(J.kind===A9.Kind.SCHEMA_DEFINITION||J.kind===A9.Kind.SCHEMA_EXTENSION)Y=X;else if((0,vq.isTypeDefinitionNode)(J)||(0,vq.isTypeExtensionNode)(J)){let H=J.name.value;if(Y=q[H],Y===void 0)q[H]=Y=Object.create(null)}else Y=Object.create(null);for(let H of J.directives){let U=H.name.value;if(F[U])if(Y[U])D.reportError(new gA.GraphQLError(`The directive "@${U}" can only be used once at this location.`,{nodes:[Y[U],H]}));else Y[U]=H}}}}});var L9=Q((lq)=>{Object.defineProperty(lq,"__esModule",{value:!0});lq.UniqueEnumValueNamesRule=cA;var mq=g(),lA=n();function cA(D){let F=D.getSchema(),P=F?F.getTypeMap():Object.create(null),B=Object.create(null);return{EnumTypeDefinition:Z,EnumTypeExtension:Z};function Z(X){var q;let J=X.name.value;if(!B[J])B[J]=Object.create(null);let Y=(q=X.values)!==null&&q!==void 0?q:[],H=B[J];for(let U of Y){let W=U.name.value,O=P[J];if((0,lA.isEnumType)(O)&&O.getValue(W))D.reportError(new mq.GraphQLError(`Enum value "${J}.${W}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:U.name}));else if(H[W])D.reportError(new mq.GraphQLError(`Enum value "${J}.${W}" can only be defined once.`,{nodes:[H[W],U.name]}));else H[W]=U.name}return!1}}});var w9=Q((dq)=>{Object.defineProperty(dq,"__esModule",{value:!0});dq.UniqueFieldDefinitionNamesRule=pA;var cq=g(),V9=n();function pA(D){let F=D.getSchema(),P=F?F.getTypeMap():Object.create(null),B=Object.create(null);return{InputObjectTypeDefinition:Z,InputObjectTypeExtension:Z,InterfaceTypeDefinition:Z,InterfaceTypeExtension:Z,ObjectTypeDefinition:Z,ObjectTypeExtension:Z};function Z(X){var q;let J=X.name.value;if(!B[J])B[J]=Object.create(null);let Y=(q=X.fields)!==null&&q!==void 0?q:[],H=B[J];for(let U of Y){let W=U.name.value;if(rA(P[J],W))D.reportError(new cq.GraphQLError(`Field "${J}.${W}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:U.name}));else if(H[W])D.reportError(new cq.GraphQLError(`Field "${J}.${W}" can only be defined once.`,{nodes:[H[W],U.name]}));else H[W]=U.name}return!1}}function rA(D,F){if((0,V9.isObjectType)(D)||(0,V9.isInterfaceType)(D)||(0,V9.isInputObjectType)(D))return D.getFields()[F]!=null;return!1}});var j9=Q((pq)=>{Object.defineProperty(pq,"__esModule",{value:!0});pq.UniqueFragmentNamesRule=nA;var sA=g();function nA(D){let F=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(P){let B=P.name.value;if(F[B])D.reportError(new sA.GraphQLError(`There can be only one fragment named "${B}".`,{nodes:[F[B],P.name]}));else F[B]=P.name;return!1}}}});var b9=Q((rq)=>{Object.defineProperty(rq,"__esModule",{value:!0});rq.UniqueInputFieldNamesRule=eA;var oA=kD(),tA=g();function eA(D){let F=[],P=Object.create(null);return{ObjectValue:{enter(){F.push(P),P=Object.create(null)},leave(){let B=F.pop();B||(0,oA.invariant)(!1),P=B}},ObjectField(B){let Z=B.name.value;if(P[Z])D.reportError(new tA.GraphQLError(`There can be only one input field named "${Z}".`,{nodes:[P[Z],B.name]}));else P[Z]=B.name}}}});var S9=Q((aq)=>{Object.defineProperty(aq,"__esModule",{value:!0});aq.UniqueOperationNamesRule=PC;var FC=g();function PC(D){let F=Object.create(null);return{OperationDefinition(P){let B=P.name;if(B)if(F[B.value])D.reportError(new FC.GraphQLError(`There can be only one operation named "${B.value}".`,{nodes:[F[B.value],B]}));else F[B.value]=B;return!1},FragmentDefinition:()=>!1}}});var T9=Q((nq)=>{Object.defineProperty(nq,"__esModule",{value:!0});nq.UniqueOperationTypesRule=ZC;var sq=g();function ZC(D){let F=D.getSchema(),P=Object.create(null),B=F?{query:F.getQueryType(),mutation:F.getMutationType(),subscription:F.getSubscriptionType()}:{};return{SchemaDefinition:Z,SchemaExtension:Z};function Z(X){var q;let J=(q=X.operationTypes)!==null&&q!==void 0?q:[];for(let Y of J){let H=Y.operation,U=P[H];if(B[H])D.reportError(new sq.GraphQLError(`Type for ${H} already defined in the schema. It cannot be redefined.`,{nodes:Y}));else if(U)D.reportError(new sq.GraphQLError(`There can be only one ${H} type in schema.`,{nodes:[U,Y]}));else P[H]=Y}return!1}}});var u9=Q((oq)=>{Object.defineProperty(oq,"__esModule",{value:!0});oq.UniqueTypeNamesRule=qC;var iq=g();function qC(D){let F=Object.create(null),P=D.getSchema();return{ScalarTypeDefinition:B,ObjectTypeDefinition:B,InterfaceTypeDefinition:B,UnionTypeDefinition:B,EnumTypeDefinition:B,InputObjectTypeDefinition:B};function B(Z){let X=Z.name.value;if(P!==null&&P!==void 0&&P.getType(X)){D.reportError(new iq.GraphQLError(`Type "${X}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:Z.name}));return}if(F[X])D.reportError(new iq.GraphQLError(`There can be only one type named "${X}".`,{nodes:[F[X],Z.name]}));else F[X]=Z.name;return!1}}});var N9=Q((tq)=>{Object.defineProperty(tq,"__esModule",{value:!0});tq.UniqueVariableNamesRule=UC;var YC=n1(),HC=g();function UC(D){return{OperationDefinition(F){var P;let B=(P=F.variableDefinitions)!==null&&P!==void 0?P:[],Z=(0,YC.groupBy)(B,(X)=>X.variable.name.value);for(let[X,q]of Z)if(q.length>1)D.reportError(new HC.GraphQLError(`There can be only one variable named "$${X}".`,{nodes:q.map((J)=>J.variable.name)}))}}}});var k9=Q((eq)=>{Object.defineProperty(eq,"__esModule",{value:!0});eq.ValuesOfCorrectTypeRule=GC;var OC=n2(),I6=ZD(),zC=i2(),QC=o2(),b2=g(),_9=s(),i1=rD(),j2=n();function GC(D){let F={};return{OperationDefinition:{enter(){F={}}},VariableDefinition(P){F[P.variable.name.value]=P},ListValue(P){let B=(0,j2.getNullableType)(D.getParentInputType());if(!(0,j2.isListType)(B))return u0(D,P),!1},ObjectValue(P){let B=(0,j2.getNamedType)(D.getInputType());if(!(0,j2.isInputObjectType)(B))return u0(D,P),!1;let Z=(0,zC.keyMap)(P.fields,(X)=>X.name.value);for(let X of Object.values(B.getFields()))if(!Z[X.name]&&(0,j2.isRequiredInputField)(X)){let J=(0,I6.inspect)(X.type);D.reportError(new b2.GraphQLError(`Field "${B.name}.${X.name}" of required type "${J}" was not provided.`,{nodes:P}))}if(B.isOneOf)RC(D,P,B,Z,F)},ObjectField(P){let B=(0,j2.getNamedType)(D.getParentInputType());if(!D.getInputType()&&(0,j2.isInputObjectType)(B)){let X=(0,QC.suggestionList)(P.name.value,Object.keys(B.getFields()));D.reportError(new b2.GraphQLError(`Field "${P.name.value}" is not defined by type "${B.name}".`+(0,OC.didYouMean)(X),{nodes:P}))}},NullValue(P){let B=D.getInputType();if((0,j2.isNonNullType)(B))D.reportError(new b2.GraphQLError(`Expected value of type "${(0,I6.inspect)(B)}", found ${(0,i1.print)(P)}.`,{nodes:P}))},EnumValue:(P)=>u0(D,P),IntValue:(P)=>u0(D,P),FloatValue:(P)=>u0(D,P),StringValue:(P)=>u0(D,P),BooleanValue:(P)=>u0(D,P)}}function u0(D,F){let P=D.getInputType();if(!P)return;let B=(0,j2.getNamedType)(P);if(!(0,j2.isLeafType)(B)){let Z=(0,I6.inspect)(P);D.reportError(new b2.GraphQLError(`Expected value of type "${Z}", found ${(0,i1.print)(F)}.`,{nodes:F}));return}try{if(B.parseLiteral(F,void 0)===void 0){let X=(0,I6.inspect)(P);D.reportError(new b2.GraphQLError(`Expected value of type "${X}", found ${(0,i1.print)(F)}.`,{nodes:F}))}}catch(Z){let X=(0,I6.inspect)(P);if(Z instanceof b2.GraphQLError)D.reportError(Z);else D.reportError(new b2.GraphQLError(`Expected value of type "${X}", found ${(0,i1.print)(F)}; `+Z.message,{nodes:F,originalError:Z}))}}function RC(D,F,P,B,Z){var X;let q=Object.keys(B);if(q.length!==1){D.reportError(new b2.GraphQLError(`OneOf Input Object "${P.name}" must specify exactly one key.`,{nodes:[F]}));return}let Y=(X=B[q[0]])===null||X===void 0?void 0:X.value,H=!Y||Y.kind===_9.Kind.NULL,U=(Y===null||Y===void 0?void 0:Y.kind)===_9.Kind.VARIABLE;if(H){D.reportError(new b2.GraphQLError(`Field "${P.name}.${q[0]}" must be non-null.`,{nodes:[F]}));return}if(U){let W=Y.name.value;if(Z[W].type.kind!==_9.Kind.NON_NULL_TYPE)D.reportError(new b2.GraphQLError(`Variable "${W}" must be non-nullable to be used for OneOf Input Object "${P.name}".`,{nodes:[F]}))}}});var x9=Q((DJ)=>{Object.defineProperty(DJ,"__esModule",{value:!0});DJ.VariablesAreInputTypesRule=AC;var $C=g(),MC=rD(),EC=n(),KC=w2();function AC(D){return{VariableDefinition(F){let P=(0,KC.typeFromAST)(D.getSchema(),F.type);if(P!==void 0&&!(0,EC.isInputType)(P)){let B=F.variable.name.value,Z=(0,MC.print)(F.type);D.reportError(new $C.GraphQLError(`Variable "$${B}" cannot be non-input type "${Z}".`,{nodes:F.type}))}}}}});var f9=Q((ZJ)=>{Object.defineProperty(ZJ,"__esModule",{value:!0});ZJ.VariablesInAllowedPositionRule=wC;var FJ=ZD(),PJ=g(),LC=s(),o1=n(),BJ=D6(),VC=w2();function wC(D){let F=Object.create(null);return{OperationDefinition:{enter(){F=Object.create(null)},leave(P){let B=D.getRecursiveVariableUsages(P);for(let{node:Z,type:X,defaultValue:q,parentType:J}of B){let Y=Z.name.value,H=F[Y];if(H&&X){let U=D.getSchema(),W=(0,VC.typeFromAST)(U,H.type);if(W&&!jC(U,W,H.defaultValue,X,q)){let O=(0,FJ.inspect)(W),z=(0,FJ.inspect)(X);D.reportError(new PJ.GraphQLError(`Variable "$${Y}" of type "${O}" used in position expecting type "${z}".`,{nodes:[H,Z]}))}if((0,o1.isInputObjectType)(J)&&J.isOneOf&&(0,o1.isNullableType)(W))D.reportError(new PJ.GraphQLError(`Variable "$${Y}" is of type "${W}" but must be non-nullable to be used for OneOf Input Object "${J}".`,{nodes:[H,Z]}))}}}},VariableDefinition(P){F[P.variable.name.value]=P}}}function jC(D,F,P,B,Z){if((0,o1.isNonNullType)(B)&&!(0,o1.isNonNullType)(F)){if(!(P!=null&&P.kind!==LC.Kind.NULL)&&Z===void 0)return!1;let J=B.ofType;return(0,BJ.isTypeSubTypeOf)(D,F,J)}return(0,BJ.isTypeSubTypeOf)(D,F,B)}});var h9=Q((zJ)=>{Object.defineProperty(zJ,"__esModule",{value:!0});zJ.specifiedSDLRules=zJ.specifiedRules=zJ.recommendedRules=void 0;var SC=x4(),TC=f4(),uC=h4(),XJ=g4(),qJ=m4(),NC=l4(),JJ=d4(),_C=p4(),kC=r4(),xC=a4(),fC=s4(),hC=n4(),gC=i4(),vC=o4(),yC=X9(),mC=J9(),lC=Y9(),YJ=U9(),cC=z9(),dC=$9(),pC=M9(),HJ=E9(),rC=K9(),UJ=C9(),aC=L9(),sC=w9(),nC=j9(),WJ=b9(),iC=S9(),oC=T9(),tC=u9(),eC=N9(),DL=k9(),FL=x9(),PL=f9(),OJ=Object.freeze([xC.MaxIntrospectionDepthRule]);zJ.recommendedRules=OJ;var BL=Object.freeze([SC.ExecutableDefinitionsRule,iC.UniqueOperationNamesRule,_C.LoneAnonymousOperationRule,dC.SingleFieldSubscriptionsRule,JJ.KnownTypeNamesRule,uC.FragmentsOnCompositeTypesRule,FL.VariablesAreInputTypesRule,cC.ScalarLeafsRule,TC.FieldsOnCorrectTypeRule,nC.UniqueFragmentNamesRule,NC.KnownFragmentNamesRule,gC.NoUnusedFragmentsRule,mC.PossibleFragmentSpreadsRule,fC.NoFragmentCyclesRule,eC.UniqueVariableNamesRule,hC.NoUndefinedVariablesRule,vC.NoUnusedVariablesRule,qJ.KnownDirectivesRule,UJ.UniqueDirectivesPerLocationRule,XJ.KnownArgumentNamesRule,HJ.UniqueArgumentNamesRule,DL.ValuesOfCorrectTypeRule,YJ.ProvidedRequiredArgumentsRule,PL.VariablesInAllowedPositionRule,yC.OverlappingFieldsCanBeMergedRule,WJ.UniqueInputFieldNamesRule,...OJ]);zJ.specifiedRules=BL;var ZL=Object.freeze([kC.LoneSchemaDefinitionRule,oC.UniqueOperationTypesRule,tC.UniqueTypeNamesRule,aC.UniqueEnumValueNamesRule,sC.UniqueFieldDefinitionNamesRule,pC.UniqueArgumentDefinitionNamesRule,rC.UniqueDirectiveNamesRule,JJ.KnownTypeNamesRule,qJ.KnownDirectivesRule,UJ.UniqueDirectivesPerLocationRule,lC.PossibleTypeExtensionsRule,XJ.KnownArgumentNamesOnDirectivesRule,HJ.UniqueArgumentNamesRule,WJ.UniqueInputFieldNamesRule,YJ.ProvidedRequiredArgumentsOnDirectivesRule]);zJ.specifiedSDLRules=ZL});var g9=Q((MJ)=>{Object.defineProperty(MJ,"__esModule",{value:!0});MJ.ValidationContext=MJ.SDLValidationContext=MJ.ASTValidationContext=void 0;var GJ=s(),JL=K0(),RJ=m1();class t1{constructor(D,F){this._ast=D,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=F}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(D){this._onError(D)}getDocument(){return this._ast}getFragment(D){let F;if(this._fragments)F=this._fragments;else{F=Object.create(null);for(let P of this.getDocument().definitions)if(P.kind===GJ.Kind.FRAGMENT_DEFINITION)F[P.name.value]=P;this._fragments=F}return F[D]}getFragmentSpreads(D){let F=this._fragmentSpreads.get(D);if(!F){F=[];let P=[D],B;while(B=P.pop())for(let Z of B.selections)if(Z.kind===GJ.Kind.FRAGMENT_SPREAD)F.push(Z);else if(Z.selectionSet)P.push(Z.selectionSet);this._fragmentSpreads.set(D,F)}return F}getRecursivelyReferencedFragments(D){let F=this._recursivelyReferencedFragments.get(D);if(!F){F=[];let P=Object.create(null),B=[D.selectionSet],Z;while(Z=B.pop())for(let X of this.getFragmentSpreads(Z)){let q=X.name.value;if(P[q]!==!0){P[q]=!0;let J=this.getFragment(q);if(J)F.push(J),B.push(J.selectionSet)}}this._recursivelyReferencedFragments.set(D,F)}return F}}MJ.ASTValidationContext=t1;class IJ extends t1{constructor(D,F,P){super(D,P);this._schema=F}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}MJ.SDLValidationContext=IJ;class $J extends t1{constructor(D,F,P,B){super(F,B);this._schema=D,this._typeInfo=P,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(D){let F=this._variableUsages.get(D);if(!F){let P=[],B=new RJ.TypeInfo(this._schema);(0,JL.visit)(D,(0,RJ.visitWithTypeInfo)(B,{VariableDefinition:()=>!1,Variable(Z){P.push({node:Z,type:B.getInputType(),defaultValue:B.getDefaultValue(),parentType:B.getParentInputType()})}})),F=P,this._variableUsages.set(D,F)}return F}getRecursiveVariableUsages(D){let F=this._recursiveVariableUsages.get(D);if(!F){F=this.getVariableUsages(D);for(let P of this.getRecursivelyReferencedFragments(D))F=F.concat(this.getVariableUsages(P));this._recursiveVariableUsages.set(D,F)}return F}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()}}MJ.ValidationContext=$J});var $6=Q((LJ)=>{Object.defineProperty(LJ,"__esModule",{value:!0});LJ.assertValidSDL=QL;LJ.assertValidSDLExtension=GL;LJ.validate=zL;LJ.validateSDL=v9;var UL=hD(),WL=g(),e1=K0(),OL=U6(),KJ=m1(),AJ=h9(),CJ=g9();function zL(D,F,P=AJ.specifiedRules,B,Z=new KJ.TypeInfo(D)){var X;let q=(X=B===null||B===void 0?void 0:B.maxErrors)!==null&&X!==void 0?X:100;F||(0,UL.devAssert)(!1,"Must provide document."),(0,OL.assertValidSchema)(D);let J=Object.freeze({}),Y=[],H=new CJ.ValidationContext(D,F,Z,(W)=>{if(Y.length>=q)throw Y.push(new WL.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),J;Y.push(W)}),U=(0,e1.visitInParallel)(P.map((W)=>W(H)));try{(0,e1.visit)(F,(0,KJ.visitWithTypeInfo)(Z,U))}catch(W){if(W!==J)throw W}return Y}function v9(D,F,P=AJ.specifiedSDLRules){let B=[],Z=new CJ.SDLValidationContext(D,F,(q)=>{B.push(q)}),X=P.map((q)=>q(Z));return(0,e1.visit)(D,(0,e1.visitInParallel)(X)),B}function QL(D){let F=v9(D);if(F.length!==0)throw Error(F.map((P)=>P.message).join(`
75
75
 
76
- `))}function GL(D,F){let P=v9(D,F);if(P.length!==0)throw new Error(P.map((B)=>B.message).join(`
76
+ `))}function GL(D,F){let P=v9(D,F);if(P.length!==0)throw Error(P.map((B)=>B.message).join(`
77
77
 
78
- `))}});var wJ=Q((VJ)=>{Object.defineProperty(VJ,"__esModule",{value:!0});VJ.memoize3=EL;function EL(D){let F;return function P(B,Z,X){if(F===void 0)F=new WeakMap;let q=F.get(B);if(q===void 0)q=new WeakMap,F.set(B,q);let J=q.get(Z);if(J===void 0)J=new WeakMap,q.set(Z,J);let Y=J.get(X);if(Y===void 0)Y=D(B,Z,X),J.set(X,Y);return Y}}});var bJ=Q((jJ)=>{Object.defineProperty(jJ,"__esModule",{value:!0});jJ.promiseForObject=AL;function AL(D){return Promise.all(Object.values(D)).then((F)=>{let P=Object.create(null);for(let[B,Z]of Object.keys(D).entries())P[Z]=F[B];return P})}});var TJ=Q((SJ)=>{Object.defineProperty(SJ,"__esModule",{value:!0});SJ.promiseReduce=VL;var LL=I1();function VL(D,F,P){let B=P;for(let Z of D)B=(0,LL.isPromise)(B)?B.then((X)=>F(X,Z)):F(B,Z);return B}});var _J=Q((NJ)=>{Object.defineProperty(NJ,"__esModule",{value:!0});NJ.toError=bL;var jL=ZD();function bL(D){return D instanceof Error?D:new uJ(D)}class uJ extends Error{constructor(D){super("Unexpected error value: "+(0,jL.inspect)(D));this.name="NonErrorThrown",this.thrownValue=D}}});var D3=Q((kJ)=>{Object.defineProperty(kJ,"__esModule",{value:!0});kJ.locatedError=NL;var TL=_J(),uL=g();function NL(D,F,P){var B;let Z=(0,TL.toError)(D);if(_L(Z))return Z;return new uL.GraphQLError(Z.message,{nodes:(B=Z.nodes)!==null&&B!==void 0?B:F,source:Z.source,positions:Z.positions,path:P,originalError:Z})}function _L(D){return Array.isArray(D.path)}});var E6=Q((sJ)=>{Object.defineProperty(sJ,"__esModule",{value:!0});sJ.assertValidExecutionArguments=lJ;sJ.buildExecutionContext=cJ;sJ.buildResolveInfo=pJ;sJ.defaultTypeResolver=sJ.defaultFieldResolver=void 0;sJ.execute=mJ;sJ.executeSync=mL;sJ.getFieldDef=aJ;var m9=hD(),N0=ZD(),xL=kD(),fL=v1(),d9=K2(),R2=I1(),hL=wJ(),_0=O6(),xJ=bJ(),gL=TJ(),eD=g(),P3=D3(),y9=A2(),fJ=s(),F0=n(),R8=tD(),vL=U6(),vJ=s1(),yJ=G8(),yL=(0,hL.memoize3)((D,F,P)=>(0,vJ.collectSubfields)(D.schema,D.fragments,D.variableValues,F,P));function mJ(D){arguments.length<2||(0,m9.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:F,document:P,variableValues:B,rootValue:Z}=D;lJ(F,P,B);let X=cJ(D);if(!("schema"in X))return{errors:X};try{let{operation:q}=X,J=lL(X,q,Z);if((0,R2.isPromise)(J))return J.then((Y)=>F3(Y,X.errors),(Y)=>{return X.errors.push(Y),F3(null,X.errors)});return F3(J,X.errors)}catch(q){return X.errors.push(q),F3(null,X.errors)}}function mL(D){let F=mJ(D);if((0,R2.isPromise)(F))throw new Error("GraphQL execution failed to complete synchronously.");return F}function F3(D,F){return F.length===0?{data:D}:{errors:F,data:D}}function lJ(D,F,P){F||(0,m9.devAssert)(!1,"Must provide document."),(0,vL.assertValidSchema)(D),P==null||(0,d9.isObjectLike)(P)||(0,m9.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 cJ(D){var F,P,B;let{schema:Z,document:X,rootValue:q,contextValue:J,variableValues:Y,operationName:H,fieldResolver:U,typeResolver:W,subscribeFieldResolver:O,options:z}=D,I,R=Object.create(null);for(let j of X.definitions)switch(j.kind){case fJ.Kind.OPERATION_DEFINITION:if(H==null){if(I!==void 0)return[new eD.GraphQLError("Must provide operation name if query contains multiple operations.")];I=j}else if(((F=j.name)===null||F===void 0?void 0:F.value)===H)I=j;break;case fJ.Kind.FRAGMENT_DEFINITION:R[j.name.value]=j;break;default:}if(!I){if(H!=null)return[new eD.GraphQLError(`Unknown operation named "${H}".`)];return[new eD.GraphQLError("Must provide an operation.")]}let $=(P=I.variableDefinitions)!==null&&P!==void 0?P:[],K=(0,yJ.getVariableValues)(Z,$,Y!==null&&Y!==void 0?Y:{},{maxErrors:(B=z===null||z===void 0?void 0:z.maxCoercionErrors)!==null&&B!==void 0?B:50});if(K.errors)return K.errors;return{schema:Z,fragments:R,rootValue:q,contextValue:J,operation:I,variableValues:K.coerced,fieldResolver:U!==null&&U!==void 0?U:c9,typeResolver:W!==null&&W!==void 0?W:rJ,subscribeFieldResolver:O!==null&&O!==void 0?O:c9,errors:[]}}function lL(D,F,P){let B=D.schema.getRootType(F.operation);if(B==null)throw new eD.GraphQLError(`Schema is not configured to execute ${F.operation} operation.`,{nodes:F});let Z=(0,vJ.collectFields)(D.schema,D.fragments,D.variableValues,B,F.selectionSet),X=void 0;switch(F.operation){case y9.OperationTypeNode.QUERY:return B3(D,B,P,X,Z);case y9.OperationTypeNode.MUTATION:return cL(D,B,P,X,Z);case y9.OperationTypeNode.SUBSCRIPTION:return B3(D,B,P,X,Z)}}function cL(D,F,P,B,Z){return(0,gL.promiseReduce)(Z.entries(),(X,[q,J])=>{let Y=(0,_0.addPath)(B,q,F.name),H=dJ(D,F,P,J,Y);if(H===void 0)return X;if((0,R2.isPromise)(H))return H.then((U)=>{return X[q]=U,X});return X[q]=H,X},Object.create(null))}function B3(D,F,P,B,Z){let X=Object.create(null),q=!1;try{for(let[J,Y]of Z.entries()){let H=(0,_0.addPath)(B,J,F.name),U=dJ(D,F,P,Y,H);if(U!==void 0){if(X[J]=U,(0,R2.isPromise)(U))q=!0}}}catch(J){if(q)return(0,xJ.promiseForObject)(X).finally(()=>{throw J});throw J}if(!q)return X;return(0,xJ.promiseForObject)(X)}function dJ(D,F,P,B,Z){var X;let q=aJ(D.schema,F,B[0]);if(!q)return;let J=q.type,Y=(X=q.resolve)!==null&&X!==void 0?X:D.fieldResolver,H=pJ(D,q,B,F,Z);try{let U=(0,yJ.getArgumentValues)(q,B[0],D.variableValues),W=D.contextValue,O=Y(P,U,W,H),z;if((0,R2.isPromise)(O))z=O.then((I)=>M6(D,J,B,H,Z,I));else z=M6(D,J,B,H,Z,O);if((0,R2.isPromise)(z))return z.then(void 0,(I)=>{let R=(0,P3.locatedError)(I,B,(0,_0.pathToArray)(Z));return Z3(R,J,D)});return z}catch(U){let W=(0,P3.locatedError)(U,B,(0,_0.pathToArray)(Z));return Z3(W,J,D)}}function pJ(D,F,P,B,Z){return{fieldName:F.name,fieldNodes:P,returnType:F.type,parentType:B,path:Z,schema:D.schema,fragments:D.fragments,rootValue:D.rootValue,operation:D.operation,variableValues:D.variableValues}}function Z3(D,F,P){if((0,F0.isNonNullType)(F))throw D;return P.errors.push(D),null}function M6(D,F,P,B,Z,X){if(X instanceof Error)throw X;if((0,F0.isNonNullType)(F)){let q=M6(D,F.ofType,P,B,Z,X);if(q===null)throw new Error(`Cannot return null for non-nullable field ${B.parentType.name}.${B.fieldName}.`);return q}if(X==null)return null;if((0,F0.isListType)(F))return dL(D,F,P,B,Z,X);if((0,F0.isLeafType)(F))return pL(F,X);if((0,F0.isAbstractType)(F))return rL(D,F,P,B,Z,X);if((0,F0.isObjectType)(F))return l9(D,F,P,B,Z,X);(0,xL.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,N0.inspect)(F))}function dL(D,F,P,B,Z,X){if(!(0,fL.isIterableObject)(X))throw new eD.GraphQLError(`Expected Iterable, but did not find one for field "${B.parentType.name}.${B.fieldName}".`);let q=F.ofType,J=!1,Y=Array.from(X,(H,U)=>{let W=(0,_0.addPath)(Z,U,void 0);try{let O;if((0,R2.isPromise)(H))O=H.then((z)=>M6(D,q,P,B,W,z));else O=M6(D,q,P,B,W,H);if((0,R2.isPromise)(O))return J=!0,O.then(void 0,(z)=>{let I=(0,P3.locatedError)(z,P,(0,_0.pathToArray)(W));return Z3(I,q,D)});return O}catch(O){let z=(0,P3.locatedError)(O,P,(0,_0.pathToArray)(W));return Z3(z,q,D)}});return J?Promise.all(Y):Y}function pL(D,F){let P=D.serialize(F);if(P==null)throw new Error(`Expected \`${(0,N0.inspect)(D)}.serialize(${(0,N0.inspect)(F)})\` to return non-nullable value, returned: ${(0,N0.inspect)(P)}`);return P}function rL(D,F,P,B,Z,X){var q;let J=(q=F.resolveType)!==null&&q!==void 0?q:D.typeResolver,Y=D.contextValue,H=J(X,Y,B,F);if((0,R2.isPromise)(H))return H.then((U)=>l9(D,hJ(U,D,F,P,B,X),P,B,Z,X));return l9(D,hJ(H,D,F,P,B,X),P,B,Z,X)}function hJ(D,F,P,B,Z,X){if(D==null)throw new eD.GraphQLError(`Abstract type "${P.name}" must resolve to an Object type at runtime for field "${Z.parentType.name}.${Z.fieldName}". Either the "${P.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,B);if((0,F0.isObjectType)(D))throw new eD.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof D!=="string")throw new eD.GraphQLError(`Abstract type "${P.name}" must resolve to an Object type at runtime for field "${Z.parentType.name}.${Z.fieldName}" with value ${(0,N0.inspect)(X)}, received "${(0,N0.inspect)(D)}".`);let q=F.schema.getType(D);if(q==null)throw new eD.GraphQLError(`Abstract type "${P.name}" was resolved to a type "${D}" that does not exist inside the schema.`,{nodes:B});if(!(0,F0.isObjectType)(q))throw new eD.GraphQLError(`Abstract type "${P.name}" was resolved to a non-object type "${D}".`,{nodes:B});if(!F.schema.isSubType(P,q))throw new eD.GraphQLError(`Runtime Object type "${q.name}" is not a possible type for "${P.name}".`,{nodes:B});return q}function l9(D,F,P,B,Z,X){let q=yL(D,F,P);if(F.isTypeOf){let J=F.isTypeOf(X,D.contextValue,B);if((0,R2.isPromise)(J))return J.then((Y)=>{if(!Y)throw gJ(F,X,P);return B3(D,F,X,Z,q)});if(!J)throw gJ(F,X,P)}return B3(D,F,X,Z,q)}function gJ(D,F,P){return new eD.GraphQLError(`Expected value of type "${D.name}" but got: ${(0,N0.inspect)(F)}.`,{nodes:P})}var rJ=function(D,F,P,B){if((0,d9.isObjectLike)(D)&&typeof D.__typename==="string")return D.__typename;let Z=P.schema.getPossibleTypes(B),X=[];for(let q=0;q<Z.length;q++){let J=Z[q];if(J.isTypeOf){let Y=J.isTypeOf(D,F,P);if((0,R2.isPromise)(Y))X[q]=Y;else if(Y)return J.name}}if(X.length)return Promise.all(X).then((q)=>{for(let J=0;J<q.length;J++)if(q[J])return Z[J].name})};sJ.defaultTypeResolver=rJ;var c9=function(D,F,P,B){if((0,d9.isObjectLike)(D)||typeof D==="function"){let Z=D[B.fieldName];if(typeof Z==="function")return D[B.fieldName](F,P,B);return Z}};sJ.defaultFieldResolver=c9;function aJ(D,F,P){let B=P.name.value;if(B===R8.SchemaMetaFieldDef.name&&D.getQueryType()===F)return R8.SchemaMetaFieldDef;else if(B===R8.TypeMetaFieldDef.name&&D.getQueryType()===F)return R8.TypeMetaFieldDef;else if(B===R8.TypeNameMetaFieldDef.name)return R8.TypeNameMetaFieldDef;return F.getFields()[B]}});var tJ=Q((oJ)=>{Object.defineProperty(oJ,"__esModule",{value:!0});oJ.graphql=qV;oJ.graphqlSync=JV;var DV=hD(),FV=I1(),PV=q8(),BV=U6(),ZV=$6(),XV=E6();function qV(D){return new Promise((F)=>F(iJ(D)))}function JV(D){let F=iJ(D);if((0,FV.isPromise)(F))throw new Error("GraphQL execution failed to complete synchronously.");return F}function iJ(D){arguments.length<2||(0,DV.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:F,source:P,rootValue:B,contextValue:Z,variableValues:X,operationName:q,fieldResolver:J,typeResolver:Y}=D,H=(0,BV.validateSchema)(F);if(H.length>0)return{errors:H};let U;try{U=(0,PV.parse)(P)}catch(O){return{errors:[O]}}let W=(0,ZV.validate)(F,U);if(W.length>0)return{errors:W};return(0,XV.execute)({schema:F,document:U,rootValue:B,contextValue:Z,variableValues:X,operationName:q,fieldResolver:J,typeResolver:Y})}});var FY=Q((L)=>{Object.defineProperty(L,"__esModule",{value:!0});Object.defineProperty(L,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return I2.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(L,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return y2.GRAPHQL_MAX_INT}});Object.defineProperty(L,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return y2.GRAPHQL_MIN_INT}});Object.defineProperty(L,"GraphQLBoolean",{enumerable:!0,get:function(){return y2.GraphQLBoolean}});Object.defineProperty(L,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return I2.GraphQLDeprecatedDirective}});Object.defineProperty(L,"GraphQLDirective",{enumerable:!0,get:function(){return I2.GraphQLDirective}});Object.defineProperty(L,"GraphQLEnumType",{enumerable:!0,get:function(){return v.GraphQLEnumType}});Object.defineProperty(L,"GraphQLFloat",{enumerable:!0,get:function(){return y2.GraphQLFloat}});Object.defineProperty(L,"GraphQLID",{enumerable:!0,get:function(){return y2.GraphQLID}});Object.defineProperty(L,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return I2.GraphQLIncludeDirective}});Object.defineProperty(L,"GraphQLInputObjectType",{enumerable:!0,get:function(){return v.GraphQLInputObjectType}});Object.defineProperty(L,"GraphQLInt",{enumerable:!0,get:function(){return y2.GraphQLInt}});Object.defineProperty(L,"GraphQLInterfaceType",{enumerable:!0,get:function(){return v.GraphQLInterfaceType}});Object.defineProperty(L,"GraphQLList",{enumerable:!0,get:function(){return v.GraphQLList}});Object.defineProperty(L,"GraphQLNonNull",{enumerable:!0,get:function(){return v.GraphQLNonNull}});Object.defineProperty(L,"GraphQLObjectType",{enumerable:!0,get:function(){return v.GraphQLObjectType}});Object.defineProperty(L,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return I2.GraphQLOneOfDirective}});Object.defineProperty(L,"GraphQLScalarType",{enumerable:!0,get:function(){return v.GraphQLScalarType}});Object.defineProperty(L,"GraphQLSchema",{enumerable:!0,get:function(){return p9.GraphQLSchema}});Object.defineProperty(L,"GraphQLSkipDirective",{enumerable:!0,get:function(){return I2.GraphQLSkipDirective}});Object.defineProperty(L,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return I2.GraphQLSpecifiedByDirective}});Object.defineProperty(L,"GraphQLString",{enumerable:!0,get:function(){return y2.GraphQLString}});Object.defineProperty(L,"GraphQLUnionType",{enumerable:!0,get:function(){return v.GraphQLUnionType}});Object.defineProperty(L,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return lD.SchemaMetaFieldDef}});Object.defineProperty(L,"TypeKind",{enumerable:!0,get:function(){return lD.TypeKind}});Object.defineProperty(L,"TypeMetaFieldDef",{enumerable:!0,get:function(){return lD.TypeMetaFieldDef}});Object.defineProperty(L,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return lD.TypeNameMetaFieldDef}});Object.defineProperty(L,"__Directive",{enumerable:!0,get:function(){return lD.__Directive}});Object.defineProperty(L,"__DirectiveLocation",{enumerable:!0,get:function(){return lD.__DirectiveLocation}});Object.defineProperty(L,"__EnumValue",{enumerable:!0,get:function(){return lD.__EnumValue}});Object.defineProperty(L,"__Field",{enumerable:!0,get:function(){return lD.__Field}});Object.defineProperty(L,"__InputValue",{enumerable:!0,get:function(){return lD.__InputValue}});Object.defineProperty(L,"__Schema",{enumerable:!0,get:function(){return lD.__Schema}});Object.defineProperty(L,"__Type",{enumerable:!0,get:function(){return lD.__Type}});Object.defineProperty(L,"__TypeKind",{enumerable:!0,get:function(){return lD.__TypeKind}});Object.defineProperty(L,"assertAbstractType",{enumerable:!0,get:function(){return v.assertAbstractType}});Object.defineProperty(L,"assertCompositeType",{enumerable:!0,get:function(){return v.assertCompositeType}});Object.defineProperty(L,"assertDirective",{enumerable:!0,get:function(){return I2.assertDirective}});Object.defineProperty(L,"assertEnumType",{enumerable:!0,get:function(){return v.assertEnumType}});Object.defineProperty(L,"assertEnumValueName",{enumerable:!0,get:function(){return DY.assertEnumValueName}});Object.defineProperty(L,"assertInputObjectType",{enumerable:!0,get:function(){return v.assertInputObjectType}});Object.defineProperty(L,"assertInputType",{enumerable:!0,get:function(){return v.assertInputType}});Object.defineProperty(L,"assertInterfaceType",{enumerable:!0,get:function(){return v.assertInterfaceType}});Object.defineProperty(L,"assertLeafType",{enumerable:!0,get:function(){return v.assertLeafType}});Object.defineProperty(L,"assertListType",{enumerable:!0,get:function(){return v.assertListType}});Object.defineProperty(L,"assertName",{enumerable:!0,get:function(){return DY.assertName}});Object.defineProperty(L,"assertNamedType",{enumerable:!0,get:function(){return v.assertNamedType}});Object.defineProperty(L,"assertNonNullType",{enumerable:!0,get:function(){return v.assertNonNullType}});Object.defineProperty(L,"assertNullableType",{enumerable:!0,get:function(){return v.assertNullableType}});Object.defineProperty(L,"assertObjectType",{enumerable:!0,get:function(){return v.assertObjectType}});Object.defineProperty(L,"assertOutputType",{enumerable:!0,get:function(){return v.assertOutputType}});Object.defineProperty(L,"assertScalarType",{enumerable:!0,get:function(){return v.assertScalarType}});Object.defineProperty(L,"assertSchema",{enumerable:!0,get:function(){return p9.assertSchema}});Object.defineProperty(L,"assertType",{enumerable:!0,get:function(){return v.assertType}});Object.defineProperty(L,"assertUnionType",{enumerable:!0,get:function(){return v.assertUnionType}});Object.defineProperty(L,"assertValidSchema",{enumerable:!0,get:function(){return eJ.assertValidSchema}});Object.defineProperty(L,"assertWrappingType",{enumerable:!0,get:function(){return v.assertWrappingType}});Object.defineProperty(L,"getNamedType",{enumerable:!0,get:function(){return v.getNamedType}});Object.defineProperty(L,"getNullableType",{enumerable:!0,get:function(){return v.getNullableType}});Object.defineProperty(L,"introspectionTypes",{enumerable:!0,get:function(){return lD.introspectionTypes}});Object.defineProperty(L,"isAbstractType",{enumerable:!0,get:function(){return v.isAbstractType}});Object.defineProperty(L,"isCompositeType",{enumerable:!0,get:function(){return v.isCompositeType}});Object.defineProperty(L,"isDirective",{enumerable:!0,get:function(){return I2.isDirective}});Object.defineProperty(L,"isEnumType",{enumerable:!0,get:function(){return v.isEnumType}});Object.defineProperty(L,"isInputObjectType",{enumerable:!0,get:function(){return v.isInputObjectType}});Object.defineProperty(L,"isInputType",{enumerable:!0,get:function(){return v.isInputType}});Object.defineProperty(L,"isInterfaceType",{enumerable:!0,get:function(){return v.isInterfaceType}});Object.defineProperty(L,"isIntrospectionType",{enumerable:!0,get:function(){return lD.isIntrospectionType}});Object.defineProperty(L,"isLeafType",{enumerable:!0,get:function(){return v.isLeafType}});Object.defineProperty(L,"isListType",{enumerable:!0,get:function(){return v.isListType}});Object.defineProperty(L,"isNamedType",{enumerable:!0,get:function(){return v.isNamedType}});Object.defineProperty(L,"isNonNullType",{enumerable:!0,get:function(){return v.isNonNullType}});Object.defineProperty(L,"isNullableType",{enumerable:!0,get:function(){return v.isNullableType}});Object.defineProperty(L,"isObjectType",{enumerable:!0,get:function(){return v.isObjectType}});Object.defineProperty(L,"isOutputType",{enumerable:!0,get:function(){return v.isOutputType}});Object.defineProperty(L,"isRequiredArgument",{enumerable:!0,get:function(){return v.isRequiredArgument}});Object.defineProperty(L,"isRequiredInputField",{enumerable:!0,get:function(){return v.isRequiredInputField}});Object.defineProperty(L,"isScalarType",{enumerable:!0,get:function(){return v.isScalarType}});Object.defineProperty(L,"isSchema",{enumerable:!0,get:function(){return p9.isSchema}});Object.defineProperty(L,"isSpecifiedDirective",{enumerable:!0,get:function(){return I2.isSpecifiedDirective}});Object.defineProperty(L,"isSpecifiedScalarType",{enumerable:!0,get:function(){return y2.isSpecifiedScalarType}});Object.defineProperty(L,"isType",{enumerable:!0,get:function(){return v.isType}});Object.defineProperty(L,"isUnionType",{enumerable:!0,get:function(){return v.isUnionType}});Object.defineProperty(L,"isWrappingType",{enumerable:!0,get:function(){return v.isWrappingType}});Object.defineProperty(L,"resolveObjMapThunk",{enumerable:!0,get:function(){return v.resolveObjMapThunk}});Object.defineProperty(L,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return v.resolveReadonlyArrayThunk}});Object.defineProperty(L,"specifiedDirectives",{enumerable:!0,get:function(){return I2.specifiedDirectives}});Object.defineProperty(L,"specifiedScalarTypes",{enumerable:!0,get:function(){return y2.specifiedScalarTypes}});Object.defineProperty(L,"validateSchema",{enumerable:!0,get:function(){return eJ.validateSchema}});var p9=j0(),v=n(),I2=yD(),y2=V2(),lD=tD(),eJ=U6(),DY=i8()});var BY=Q((e)=>{Object.defineProperty(e,"__esModule",{value:!0});Object.defineProperty(e,"BREAK",{enumerable:!0,get:function(){return K6.BREAK}});Object.defineProperty(e,"DirectiveLocation",{enumerable:!0,get:function(){return RV.DirectiveLocation}});Object.defineProperty(e,"Kind",{enumerable:!0,get:function(){return OV.Kind}});Object.defineProperty(e,"Lexer",{enumerable:!0,get:function(){return QV.Lexer}});Object.defineProperty(e,"Location",{enumerable:!0,get:function(){return r9.Location}});Object.defineProperty(e,"OperationTypeNode",{enumerable:!0,get:function(){return r9.OperationTypeNode}});Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return UV.Source}});Object.defineProperty(e,"Token",{enumerable:!0,get:function(){return r9.Token}});Object.defineProperty(e,"TokenKind",{enumerable:!0,get:function(){return zV.TokenKind}});Object.defineProperty(e,"getEnterLeaveForKind",{enumerable:!0,get:function(){return K6.getEnterLeaveForKind}});Object.defineProperty(e,"getLocation",{enumerable:!0,get:function(){return WV.getLocation}});Object.defineProperty(e,"getVisitFn",{enumerable:!0,get:function(){return K6.getVisitFn}});Object.defineProperty(e,"isConstValueNode",{enumerable:!0,get:function(){return S2.isConstValueNode}});Object.defineProperty(e,"isDefinitionNode",{enumerable:!0,get:function(){return S2.isDefinitionNode}});Object.defineProperty(e,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return S2.isExecutableDefinitionNode}});Object.defineProperty(e,"isSelectionNode",{enumerable:!0,get:function(){return S2.isSelectionNode}});Object.defineProperty(e,"isTypeDefinitionNode",{enumerable:!0,get:function(){return S2.isTypeDefinitionNode}});Object.defineProperty(e,"isTypeExtensionNode",{enumerable:!0,get:function(){return S2.isTypeExtensionNode}});Object.defineProperty(e,"isTypeNode",{enumerable:!0,get:function(){return S2.isTypeNode}});Object.defineProperty(e,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return S2.isTypeSystemDefinitionNode}});Object.defineProperty(e,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return S2.isTypeSystemExtensionNode}});Object.defineProperty(e,"isValueNode",{enumerable:!0,get:function(){return S2.isValueNode}});Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return X3.parse}});Object.defineProperty(e,"parseConstValue",{enumerable:!0,get:function(){return X3.parseConstValue}});Object.defineProperty(e,"parseType",{enumerable:!0,get:function(){return X3.parseType}});Object.defineProperty(e,"parseValue",{enumerable:!0,get:function(){return X3.parseValue}});Object.defineProperty(e,"print",{enumerable:!0,get:function(){return GV.print}});Object.defineProperty(e,"printLocation",{enumerable:!0,get:function(){return PY.printLocation}});Object.defineProperty(e,"printSourceLocation",{enumerable:!0,get:function(){return PY.printSourceLocation}});Object.defineProperty(e,"visit",{enumerable:!0,get:function(){return K6.visit}});Object.defineProperty(e,"visitInParallel",{enumerable:!0,get:function(){return K6.visitInParallel}});var UV=L1(),WV=$1(),PY=m5(),OV=s(),zV=d8(),QV=A1(),X3=q8(),GV=rD(),K6=K0(),r9=A2(),S2=S0(),RV=B8()});var XY=Q((ZY)=>{Object.defineProperty(ZY,"__esModule",{value:!0});ZY.isAsyncIterable=IV;function IV(D){return typeof(D===null||D===void 0?void 0:D[Symbol.asyncIterator])==="function"}});var JY=Q((qY)=>{Object.defineProperty(qY,"__esModule",{value:!0});qY.mapAsyncIterator=MV;function MV(D,F){let P=D[Symbol.asyncIterator]();async function B(Z){if(Z.done)return Z;try{return{value:await F(Z.value),done:!1}}catch(X){if(typeof P.return==="function")try{await P.return()}catch(q){}throw X}}return{async next(){return B(await P.next())},async return(){return typeof P.return==="function"?B(await P.return()):{value:void 0,done:!0}},async throw(Z){if(typeof P.throw==="function")return B(await P.throw(Z));throw Z},[Symbol.asyncIterator](){return this}}}});var OY=Q((WY)=>{Object.defineProperty(WY,"__esModule",{value:!0});WY.createSourceEventStream=UY;WY.subscribe=jV;var KV=hD(),AV=ZD(),HY=XY(),YY=O6(),a9=g(),CV=D3(),LV=s1(),A6=E6(),VV=JY(),wV=G8();async function jV(D){arguments.length<2||(0,KV.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let F=await UY(D);if(!(0,HY.isAsyncIterable)(F))return F;let P=(B)=>(0,A6.execute)({...D,rootValue:B});return(0,VV.mapAsyncIterator)(F,P)}function bV(D){let F=D[0];if(F&&"document"in F)return F;return{schema:F,document:D[1],rootValue:D[2],contextValue:D[3],variableValues:D[4],operationName:D[5],subscribeFieldResolver:D[6]}}async function UY(...D){let F=bV(D),{schema:P,document:B,variableValues:Z}=F;(0,A6.assertValidExecutionArguments)(P,B,Z);let X=(0,A6.buildExecutionContext)(F);if(!("schema"in X))return{errors:X};try{let q=await SV(X);if(!(0,HY.isAsyncIterable)(q))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,AV.inspect)(q)}.`);return q}catch(q){if(q instanceof a9.GraphQLError)return{errors:[q]};throw q}}async function SV(D){let{schema:F,fragments:P,operation:B,variableValues:Z,rootValue:X}=D,q=F.getSubscriptionType();if(q==null)throw new a9.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:B});let J=(0,LV.collectFields)(F,P,Z,q,B.selectionSet),[Y,H]=[...J.entries()][0],U=(0,A6.getFieldDef)(F,q,H[0]);if(!U){let I=H[0].name.value;throw new a9.GraphQLError(`The subscription field "${I}" is not defined.`,{nodes:H})}let W=(0,YY.addPath)(void 0,Y,q.name),O=(0,A6.buildResolveInfo)(D,U,H,q,W);try{var z;let I=(0,wV.getArgumentValues)(U,H[0],Z),R=D.contextValue,K=await((z=U.subscribe)!==null&&z!==void 0?z:D.subscribeFieldResolver)(X,I,R,O);if(K instanceof Error)throw K;return K}catch(I){throw(0,CV.locatedError)(I,H,(0,YY.pathToArray)(W))}}});var QY=Q((D2)=>{Object.defineProperty(D2,"__esModule",{value:!0});Object.defineProperty(D2,"createSourceEventStream",{enumerable:!0,get:function(){return zY.createSourceEventStream}});Object.defineProperty(D2,"defaultFieldResolver",{enumerable:!0,get:function(){return q3.defaultFieldResolver}});Object.defineProperty(D2,"defaultTypeResolver",{enumerable:!0,get:function(){return q3.defaultTypeResolver}});Object.defineProperty(D2,"execute",{enumerable:!0,get:function(){return q3.execute}});Object.defineProperty(D2,"executeSync",{enumerable:!0,get:function(){return q3.executeSync}});Object.defineProperty(D2,"getArgumentValues",{enumerable:!0,get:function(){return s9.getArgumentValues}});Object.defineProperty(D2,"getDirectiveValues",{enumerable:!0,get:function(){return s9.getDirectiveValues}});Object.defineProperty(D2,"getVariableValues",{enumerable:!0,get:function(){return s9.getVariableValues}});Object.defineProperty(D2,"responsePathAsArray",{enumerable:!0,get:function(){return NV.pathToArray}});Object.defineProperty(D2,"subscribe",{enumerable:!0,get:function(){return zY.subscribe}});var NV=O6(),q3=E6(),zY=OY(),s9=G8()});var RY=Q((GY)=>{Object.defineProperty(GY,"__esModule",{value:!0});GY.NoDeprecatedCustomRule=_V;var n9=kD(),C6=g(),i9=n();function _V(D){return{Field(F){let P=D.getFieldDef(),B=P===null||P===void 0?void 0:P.deprecationReason;if(P&&B!=null){let Z=D.getParentType();Z!=null||(0,n9.invariant)(!1),D.reportError(new C6.GraphQLError(`The field ${Z.name}.${P.name} is deprecated. ${B}`,{nodes:F}))}},Argument(F){let P=D.getArgument(),B=P===null||P===void 0?void 0:P.deprecationReason;if(P&&B!=null){let Z=D.getDirective();if(Z!=null)D.reportError(new C6.GraphQLError(`Directive "@${Z.name}" argument "${P.name}" is deprecated. ${B}`,{nodes:F}));else{let X=D.getParentType(),q=D.getFieldDef();X!=null&&q!=null||(0,n9.invariant)(!1),D.reportError(new C6.GraphQLError(`Field "${X.name}.${q.name}" argument "${P.name}" is deprecated. ${B}`,{nodes:F}))}}},ObjectField(F){let P=(0,i9.getNamedType)(D.getParentInputType());if((0,i9.isInputObjectType)(P)){let B=P.getFields()[F.name.value],Z=B===null||B===void 0?void 0:B.deprecationReason;if(Z!=null)D.reportError(new C6.GraphQLError(`The input field ${P.name}.${B.name} is deprecated. ${Z}`,{nodes:F}))}},EnumValue(F){let P=D.getEnumValue(),B=P===null||P===void 0?void 0:P.deprecationReason;if(P&&B!=null){let Z=(0,i9.getNamedType)(D.getInputType());Z!=null||(0,n9.invariant)(!1),D.reportError(new C6.GraphQLError(`The enum value "${Z.name}.${P.name}" is deprecated. ${B}`,{nodes:F}))}}}}});var $Y=Q((IY)=>{Object.defineProperty(IY,"__esModule",{value:!0});IY.NoSchemaIntrospectionCustomRule=gV;var xV=g(),fV=n(),hV=tD();function gV(D){return{Field(F){let P=(0,fV.getNamedType)(D.getType());if(P&&(0,hV.isIntrospectionType)(P))D.reportError(new xV.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${F.name.value}".`,{nodes:F}))}}}});var EY=Q((l)=>{Object.defineProperty(l,"__esModule",{value:!0});Object.defineProperty(l,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return lV.ExecutableDefinitionsRule}});Object.defineProperty(l,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return cV.FieldsOnCorrectTypeRule}});Object.defineProperty(l,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return dV.FragmentsOnCompositeTypesRule}});Object.defineProperty(l,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return pV.KnownArgumentNamesRule}});Object.defineProperty(l,"KnownDirectivesRule",{enumerable:!0,get:function(){return rV.KnownDirectivesRule}});Object.defineProperty(l,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return aV.KnownFragmentNamesRule}});Object.defineProperty(l,"KnownTypeNamesRule",{enumerable:!0,get:function(){return sV.KnownTypeNamesRule}});Object.defineProperty(l,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return nV.LoneAnonymousOperationRule}});Object.defineProperty(l,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return Gw.LoneSchemaDefinitionRule}});Object.defineProperty(l,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return Qw.MaxIntrospectionDepthRule}});Object.defineProperty(l,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return Cw.NoDeprecatedCustomRule}});Object.defineProperty(l,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return iV.NoFragmentCyclesRule}});Object.defineProperty(l,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return Lw.NoSchemaIntrospectionCustomRule}});Object.defineProperty(l,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return oV.NoUndefinedVariablesRule}});Object.defineProperty(l,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return tV.NoUnusedFragmentsRule}});Object.defineProperty(l,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return eV.NoUnusedVariablesRule}});Object.defineProperty(l,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return Dw.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(l,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return Fw.PossibleFragmentSpreadsRule}});Object.defineProperty(l,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return Aw.PossibleTypeExtensionsRule}});Object.defineProperty(l,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return Pw.ProvidedRequiredArgumentsRule}});Object.defineProperty(l,"ScalarLeafsRule",{enumerable:!0,get:function(){return Bw.ScalarLeafsRule}});Object.defineProperty(l,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return Zw.SingleFieldSubscriptionsRule}});Object.defineProperty(l,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Ew.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(l,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return Xw.UniqueArgumentNamesRule}});Object.defineProperty(l,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return Kw.UniqueDirectiveNamesRule}});Object.defineProperty(l,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return qw.UniqueDirectivesPerLocationRule}});Object.defineProperty(l,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return $w.UniqueEnumValueNamesRule}});Object.defineProperty(l,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return Mw.UniqueFieldDefinitionNamesRule}});Object.defineProperty(l,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return Jw.UniqueFragmentNamesRule}});Object.defineProperty(l,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return Yw.UniqueInputFieldNamesRule}});Object.defineProperty(l,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return Hw.UniqueOperationNamesRule}});Object.defineProperty(l,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return Rw.UniqueOperationTypesRule}});Object.defineProperty(l,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return Iw.UniqueTypeNamesRule}});Object.defineProperty(l,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return Uw.UniqueVariableNamesRule}});Object.defineProperty(l,"ValidationContext",{enumerable:!0,get:function(){return mV.ValidationContext}});Object.defineProperty(l,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return Ww.ValuesOfCorrectTypeRule}});Object.defineProperty(l,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return Ow.VariablesAreInputTypesRule}});Object.defineProperty(l,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return zw.VariablesInAllowedPositionRule}});Object.defineProperty(l,"recommendedRules",{enumerable:!0,get:function(){return MY.recommendedRules}});Object.defineProperty(l,"specifiedRules",{enumerable:!0,get:function(){return MY.specifiedRules}});Object.defineProperty(l,"validate",{enumerable:!0,get:function(){return yV.validate}});var yV=$6(),mV=g9(),MY=h9(),lV=x4(),cV=f4(),dV=h4(),pV=g4(),rV=m4(),aV=l4(),sV=d4(),nV=p4(),iV=s4(),oV=n4(),tV=i4(),eV=o4(),Dw=X9(),Fw=J9(),Pw=U9(),Bw=z9(),Zw=$9(),Xw=E9(),qw=C9(),Jw=j9(),Yw=b9(),Hw=S9(),Uw=N9(),Ww=k9(),Ow=x9(),zw=f9(),Qw=a4(),Gw=r4(),Rw=T9(),Iw=u9(),$w=L9(),Mw=w9(),Ew=M9(),Kw=K9(),Aw=Y9(),Cw=RY(),Lw=$Y()});var KY=Q((k0)=>{Object.defineProperty(k0,"__esModule",{value:!0});Object.defineProperty(k0,"GraphQLError",{enumerable:!0,get:function(){return o9.GraphQLError}});Object.defineProperty(k0,"formatError",{enumerable:!0,get:function(){return o9.formatError}});Object.defineProperty(k0,"locatedError",{enumerable:!0,get:function(){return ww.locatedError}});Object.defineProperty(k0,"printError",{enumerable:!0,get:function(){return o9.printError}});Object.defineProperty(k0,"syntaxError",{enumerable:!0,get:function(){return Vw.syntaxError}});var o9=g(),Vw=M1(),ww=D3()});var t9=Q((AY)=>{Object.defineProperty(AY,"__esModule",{value:!0});AY.getIntrospectionQuery=jw;function jw(D){let F={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...D},P=F.descriptions?"description":"",B=F.specifiedByUrl?"specifiedByURL":"",Z=F.directiveIsRepeatable?"isRepeatable":"",X=F.schemaDescription?P:"";function q(Y){return F.inputValueDeprecation?Y:""}let J=F.oneOf?"isOneOf":"";return`
78
+ `))}});var wJ=Q((VJ)=>{Object.defineProperty(VJ,"__esModule",{value:!0});VJ.memoize3=EL;function EL(D){let F;return function(B,Z,X){if(F===void 0)F=new WeakMap;let q=F.get(B);if(q===void 0)q=new WeakMap,F.set(B,q);let J=q.get(Z);if(J===void 0)J=new WeakMap,q.set(Z,J);let Y=J.get(X);if(Y===void 0)Y=D(B,Z,X),J.set(X,Y);return Y}}});var bJ=Q((jJ)=>{Object.defineProperty(jJ,"__esModule",{value:!0});jJ.promiseForObject=AL;function AL(D){return Promise.all(Object.values(D)).then((F)=>{let P=Object.create(null);for(let[B,Z]of Object.keys(D).entries())P[Z]=F[B];return P})}});var TJ=Q((SJ)=>{Object.defineProperty(SJ,"__esModule",{value:!0});SJ.promiseReduce=VL;var LL=I1();function VL(D,F,P){let B=P;for(let Z of D)B=(0,LL.isPromise)(B)?B.then((X)=>F(X,Z)):F(B,Z);return B}});var _J=Q((NJ)=>{Object.defineProperty(NJ,"__esModule",{value:!0});NJ.toError=bL;var jL=ZD();function bL(D){return D instanceof Error?D:new uJ(D)}class uJ extends Error{constructor(D){super("Unexpected error value: "+(0,jL.inspect)(D));this.name="NonErrorThrown",this.thrownValue=D}}});var D3=Q((kJ)=>{Object.defineProperty(kJ,"__esModule",{value:!0});kJ.locatedError=NL;var TL=_J(),uL=g();function NL(D,F,P){var B;let Z=(0,TL.toError)(D);if(_L(Z))return Z;return new uL.GraphQLError(Z.message,{nodes:(B=Z.nodes)!==null&&B!==void 0?B:F,source:Z.source,positions:Z.positions,path:P,originalError:Z})}function _L(D){return Array.isArray(D.path)}});var E6=Q((sJ)=>{Object.defineProperty(sJ,"__esModule",{value:!0});sJ.assertValidExecutionArguments=lJ;sJ.buildExecutionContext=cJ;sJ.buildResolveInfo=pJ;sJ.defaultTypeResolver=sJ.defaultFieldResolver=void 0;sJ.execute=mJ;sJ.executeSync=mL;sJ.getFieldDef=aJ;var m9=hD(),N0=ZD(),xL=kD(),fL=v1(),d9=K2(),R2=I1(),hL=wJ(),_0=O6(),xJ=bJ(),gL=TJ(),eD=g(),P3=D3(),y9=A2(),fJ=s(),F0=n(),R8=tD(),vL=U6(),vJ=s1(),yJ=G8(),yL=(0,hL.memoize3)((D,F,P)=>(0,vJ.collectSubfields)(D.schema,D.fragments,D.variableValues,F,P));function mJ(D){arguments.length<2||(0,m9.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:F,document:P,variableValues:B,rootValue:Z}=D;lJ(F,P,B);let X=cJ(D);if(!("schema"in X))return{errors:X};try{let{operation:q}=X,J=lL(X,q,Z);if((0,R2.isPromise)(J))return J.then((Y)=>F3(Y,X.errors),(Y)=>{return X.errors.push(Y),F3(null,X.errors)});return F3(J,X.errors)}catch(q){return X.errors.push(q),F3(null,X.errors)}}function mL(D){let F=mJ(D);if((0,R2.isPromise)(F))throw Error("GraphQL execution failed to complete synchronously.");return F}function F3(D,F){return F.length===0?{data:D}:{errors:F,data:D}}function lJ(D,F,P){F||(0,m9.devAssert)(!1,"Must provide document."),(0,vL.assertValidSchema)(D),P==null||(0,d9.isObjectLike)(P)||(0,m9.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 cJ(D){var F,P,B;let{schema:Z,document:X,rootValue:q,contextValue:J,variableValues:Y,operationName:H,fieldResolver:U,typeResolver:W,subscribeFieldResolver:O,options:z}=D,I,R=Object.create(null);for(let j of X.definitions)switch(j.kind){case fJ.Kind.OPERATION_DEFINITION:if(H==null){if(I!==void 0)return[new eD.GraphQLError("Must provide operation name if query contains multiple operations.")];I=j}else if(((F=j.name)===null||F===void 0?void 0:F.value)===H)I=j;break;case fJ.Kind.FRAGMENT_DEFINITION:R[j.name.value]=j;break;default:}if(!I){if(H!=null)return[new eD.GraphQLError(`Unknown operation named "${H}".`)];return[new eD.GraphQLError("Must provide an operation.")]}let $=(P=I.variableDefinitions)!==null&&P!==void 0?P:[],K=(0,yJ.getVariableValues)(Z,$,Y!==null&&Y!==void 0?Y:{},{maxErrors:(B=z===null||z===void 0?void 0:z.maxCoercionErrors)!==null&&B!==void 0?B:50});if(K.errors)return K.errors;return{schema:Z,fragments:R,rootValue:q,contextValue:J,operation:I,variableValues:K.coerced,fieldResolver:U!==null&&U!==void 0?U:c9,typeResolver:W!==null&&W!==void 0?W:rJ,subscribeFieldResolver:O!==null&&O!==void 0?O:c9,errors:[]}}function lL(D,F,P){let B=D.schema.getRootType(F.operation);if(B==null)throw new eD.GraphQLError(`Schema is not configured to execute ${F.operation} operation.`,{nodes:F});let Z=(0,vJ.collectFields)(D.schema,D.fragments,D.variableValues,B,F.selectionSet),X=void 0;switch(F.operation){case y9.OperationTypeNode.QUERY:return B3(D,B,P,X,Z);case y9.OperationTypeNode.MUTATION:return cL(D,B,P,X,Z);case y9.OperationTypeNode.SUBSCRIPTION:return B3(D,B,P,X,Z)}}function cL(D,F,P,B,Z){return(0,gL.promiseReduce)(Z.entries(),(X,[q,J])=>{let Y=(0,_0.addPath)(B,q,F.name),H=dJ(D,F,P,J,Y);if(H===void 0)return X;if((0,R2.isPromise)(H))return H.then((U)=>{return X[q]=U,X});return X[q]=H,X},Object.create(null))}function B3(D,F,P,B,Z){let X=Object.create(null),q=!1;try{for(let[J,Y]of Z.entries()){let H=(0,_0.addPath)(B,J,F.name),U=dJ(D,F,P,Y,H);if(U!==void 0){if(X[J]=U,(0,R2.isPromise)(U))q=!0}}}catch(J){if(q)return(0,xJ.promiseForObject)(X).finally(()=>{throw J});throw J}if(!q)return X;return(0,xJ.promiseForObject)(X)}function dJ(D,F,P,B,Z){var X;let q=aJ(D.schema,F,B[0]);if(!q)return;let J=q.type,Y=(X=q.resolve)!==null&&X!==void 0?X:D.fieldResolver,H=pJ(D,q,B,F,Z);try{let U=(0,yJ.getArgumentValues)(q,B[0],D.variableValues),W=D.contextValue,O=Y(P,U,W,H),z;if((0,R2.isPromise)(O))z=O.then((I)=>M6(D,J,B,H,Z,I));else z=M6(D,J,B,H,Z,O);if((0,R2.isPromise)(z))return z.then(void 0,(I)=>{let R=(0,P3.locatedError)(I,B,(0,_0.pathToArray)(Z));return Z3(R,J,D)});return z}catch(U){let W=(0,P3.locatedError)(U,B,(0,_0.pathToArray)(Z));return Z3(W,J,D)}}function pJ(D,F,P,B,Z){return{fieldName:F.name,fieldNodes:P,returnType:F.type,parentType:B,path:Z,schema:D.schema,fragments:D.fragments,rootValue:D.rootValue,operation:D.operation,variableValues:D.variableValues}}function Z3(D,F,P){if((0,F0.isNonNullType)(F))throw D;return P.errors.push(D),null}function M6(D,F,P,B,Z,X){if(X instanceof Error)throw X;if((0,F0.isNonNullType)(F)){let q=M6(D,F.ofType,P,B,Z,X);if(q===null)throw Error(`Cannot return null for non-nullable field ${B.parentType.name}.${B.fieldName}.`);return q}if(X==null)return null;if((0,F0.isListType)(F))return dL(D,F,P,B,Z,X);if((0,F0.isLeafType)(F))return pL(F,X);if((0,F0.isAbstractType)(F))return rL(D,F,P,B,Z,X);if((0,F0.isObjectType)(F))return l9(D,F,P,B,Z,X);(0,xL.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,N0.inspect)(F))}function dL(D,F,P,B,Z,X){if(!(0,fL.isIterableObject)(X))throw new eD.GraphQLError(`Expected Iterable, but did not find one for field "${B.parentType.name}.${B.fieldName}".`);let q=F.ofType,J=!1,Y=Array.from(X,(H,U)=>{let W=(0,_0.addPath)(Z,U,void 0);try{let O;if((0,R2.isPromise)(H))O=H.then((z)=>M6(D,q,P,B,W,z));else O=M6(D,q,P,B,W,H);if((0,R2.isPromise)(O))return J=!0,O.then(void 0,(z)=>{let I=(0,P3.locatedError)(z,P,(0,_0.pathToArray)(W));return Z3(I,q,D)});return O}catch(O){let z=(0,P3.locatedError)(O,P,(0,_0.pathToArray)(W));return Z3(z,q,D)}});return J?Promise.all(Y):Y}function pL(D,F){let P=D.serialize(F);if(P==null)throw Error(`Expected \`${(0,N0.inspect)(D)}.serialize(${(0,N0.inspect)(F)})\` to return non-nullable value, returned: ${(0,N0.inspect)(P)}`);return P}function rL(D,F,P,B,Z,X){var q;let J=(q=F.resolveType)!==null&&q!==void 0?q:D.typeResolver,Y=D.contextValue,H=J(X,Y,B,F);if((0,R2.isPromise)(H))return H.then((U)=>l9(D,hJ(U,D,F,P,B,X),P,B,Z,X));return l9(D,hJ(H,D,F,P,B,X),P,B,Z,X)}function hJ(D,F,P,B,Z,X){if(D==null)throw new eD.GraphQLError(`Abstract type "${P.name}" must resolve to an Object type at runtime for field "${Z.parentType.name}.${Z.fieldName}". Either the "${P.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,B);if((0,F0.isObjectType)(D))throw new eD.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof D!=="string")throw new eD.GraphQLError(`Abstract type "${P.name}" must resolve to an Object type at runtime for field "${Z.parentType.name}.${Z.fieldName}" with value ${(0,N0.inspect)(X)}, received "${(0,N0.inspect)(D)}".`);let q=F.schema.getType(D);if(q==null)throw new eD.GraphQLError(`Abstract type "${P.name}" was resolved to a type "${D}" that does not exist inside the schema.`,{nodes:B});if(!(0,F0.isObjectType)(q))throw new eD.GraphQLError(`Abstract type "${P.name}" was resolved to a non-object type "${D}".`,{nodes:B});if(!F.schema.isSubType(P,q))throw new eD.GraphQLError(`Runtime Object type "${q.name}" is not a possible type for "${P.name}".`,{nodes:B});return q}function l9(D,F,P,B,Z,X){let q=yL(D,F,P);if(F.isTypeOf){let J=F.isTypeOf(X,D.contextValue,B);if((0,R2.isPromise)(J))return J.then((Y)=>{if(!Y)throw gJ(F,X,P);return B3(D,F,X,Z,q)});if(!J)throw gJ(F,X,P)}return B3(D,F,X,Z,q)}function gJ(D,F,P){return new eD.GraphQLError(`Expected value of type "${D.name}" but got: ${(0,N0.inspect)(F)}.`,{nodes:P})}var rJ=function(D,F,P,B){if((0,d9.isObjectLike)(D)&&typeof D.__typename==="string")return D.__typename;let Z=P.schema.getPossibleTypes(B),X=[];for(let q=0;q<Z.length;q++){let J=Z[q];if(J.isTypeOf){let Y=J.isTypeOf(D,F,P);if((0,R2.isPromise)(Y))X[q]=Y;else if(Y)return J.name}}if(X.length)return Promise.all(X).then((q)=>{for(let J=0;J<q.length;J++)if(q[J])return Z[J].name})};sJ.defaultTypeResolver=rJ;var c9=function(D,F,P,B){if((0,d9.isObjectLike)(D)||typeof D==="function"){let Z=D[B.fieldName];if(typeof Z==="function")return D[B.fieldName](F,P,B);return Z}};sJ.defaultFieldResolver=c9;function aJ(D,F,P){let B=P.name.value;if(B===R8.SchemaMetaFieldDef.name&&D.getQueryType()===F)return R8.SchemaMetaFieldDef;else if(B===R8.TypeMetaFieldDef.name&&D.getQueryType()===F)return R8.TypeMetaFieldDef;else if(B===R8.TypeNameMetaFieldDef.name)return R8.TypeNameMetaFieldDef;return F.getFields()[B]}});var tJ=Q((oJ)=>{Object.defineProperty(oJ,"__esModule",{value:!0});oJ.graphql=qV;oJ.graphqlSync=JV;var DV=hD(),FV=I1(),PV=q8(),BV=U6(),ZV=$6(),XV=E6();function qV(D){return new Promise((F)=>F(iJ(D)))}function JV(D){let F=iJ(D);if((0,FV.isPromise)(F))throw Error("GraphQL execution failed to complete synchronously.");return F}function iJ(D){arguments.length<2||(0,DV.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:F,source:P,rootValue:B,contextValue:Z,variableValues:X,operationName:q,fieldResolver:J,typeResolver:Y}=D,H=(0,BV.validateSchema)(F);if(H.length>0)return{errors:H};let U;try{U=(0,PV.parse)(P)}catch(O){return{errors:[O]}}let W=(0,ZV.validate)(F,U);if(W.length>0)return{errors:W};return(0,XV.execute)({schema:F,document:U,rootValue:B,contextValue:Z,variableValues:X,operationName:q,fieldResolver:J,typeResolver:Y})}});var FY=Q((L)=>{Object.defineProperty(L,"__esModule",{value:!0});Object.defineProperty(L,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return I2.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(L,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return y2.GRAPHQL_MAX_INT}});Object.defineProperty(L,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return y2.GRAPHQL_MIN_INT}});Object.defineProperty(L,"GraphQLBoolean",{enumerable:!0,get:function(){return y2.GraphQLBoolean}});Object.defineProperty(L,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return I2.GraphQLDeprecatedDirective}});Object.defineProperty(L,"GraphQLDirective",{enumerable:!0,get:function(){return I2.GraphQLDirective}});Object.defineProperty(L,"GraphQLEnumType",{enumerable:!0,get:function(){return v.GraphQLEnumType}});Object.defineProperty(L,"GraphQLFloat",{enumerable:!0,get:function(){return y2.GraphQLFloat}});Object.defineProperty(L,"GraphQLID",{enumerable:!0,get:function(){return y2.GraphQLID}});Object.defineProperty(L,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return I2.GraphQLIncludeDirective}});Object.defineProperty(L,"GraphQLInputObjectType",{enumerable:!0,get:function(){return v.GraphQLInputObjectType}});Object.defineProperty(L,"GraphQLInt",{enumerable:!0,get:function(){return y2.GraphQLInt}});Object.defineProperty(L,"GraphQLInterfaceType",{enumerable:!0,get:function(){return v.GraphQLInterfaceType}});Object.defineProperty(L,"GraphQLList",{enumerable:!0,get:function(){return v.GraphQLList}});Object.defineProperty(L,"GraphQLNonNull",{enumerable:!0,get:function(){return v.GraphQLNonNull}});Object.defineProperty(L,"GraphQLObjectType",{enumerable:!0,get:function(){return v.GraphQLObjectType}});Object.defineProperty(L,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return I2.GraphQLOneOfDirective}});Object.defineProperty(L,"GraphQLScalarType",{enumerable:!0,get:function(){return v.GraphQLScalarType}});Object.defineProperty(L,"GraphQLSchema",{enumerable:!0,get:function(){return p9.GraphQLSchema}});Object.defineProperty(L,"GraphQLSkipDirective",{enumerable:!0,get:function(){return I2.GraphQLSkipDirective}});Object.defineProperty(L,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return I2.GraphQLSpecifiedByDirective}});Object.defineProperty(L,"GraphQLString",{enumerable:!0,get:function(){return y2.GraphQLString}});Object.defineProperty(L,"GraphQLUnionType",{enumerable:!0,get:function(){return v.GraphQLUnionType}});Object.defineProperty(L,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return lD.SchemaMetaFieldDef}});Object.defineProperty(L,"TypeKind",{enumerable:!0,get:function(){return lD.TypeKind}});Object.defineProperty(L,"TypeMetaFieldDef",{enumerable:!0,get:function(){return lD.TypeMetaFieldDef}});Object.defineProperty(L,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return lD.TypeNameMetaFieldDef}});Object.defineProperty(L,"__Directive",{enumerable:!0,get:function(){return lD.__Directive}});Object.defineProperty(L,"__DirectiveLocation",{enumerable:!0,get:function(){return lD.__DirectiveLocation}});Object.defineProperty(L,"__EnumValue",{enumerable:!0,get:function(){return lD.__EnumValue}});Object.defineProperty(L,"__Field",{enumerable:!0,get:function(){return lD.__Field}});Object.defineProperty(L,"__InputValue",{enumerable:!0,get:function(){return lD.__InputValue}});Object.defineProperty(L,"__Schema",{enumerable:!0,get:function(){return lD.__Schema}});Object.defineProperty(L,"__Type",{enumerable:!0,get:function(){return lD.__Type}});Object.defineProperty(L,"__TypeKind",{enumerable:!0,get:function(){return lD.__TypeKind}});Object.defineProperty(L,"assertAbstractType",{enumerable:!0,get:function(){return v.assertAbstractType}});Object.defineProperty(L,"assertCompositeType",{enumerable:!0,get:function(){return v.assertCompositeType}});Object.defineProperty(L,"assertDirective",{enumerable:!0,get:function(){return I2.assertDirective}});Object.defineProperty(L,"assertEnumType",{enumerable:!0,get:function(){return v.assertEnumType}});Object.defineProperty(L,"assertEnumValueName",{enumerable:!0,get:function(){return DY.assertEnumValueName}});Object.defineProperty(L,"assertInputObjectType",{enumerable:!0,get:function(){return v.assertInputObjectType}});Object.defineProperty(L,"assertInputType",{enumerable:!0,get:function(){return v.assertInputType}});Object.defineProperty(L,"assertInterfaceType",{enumerable:!0,get:function(){return v.assertInterfaceType}});Object.defineProperty(L,"assertLeafType",{enumerable:!0,get:function(){return v.assertLeafType}});Object.defineProperty(L,"assertListType",{enumerable:!0,get:function(){return v.assertListType}});Object.defineProperty(L,"assertName",{enumerable:!0,get:function(){return DY.assertName}});Object.defineProperty(L,"assertNamedType",{enumerable:!0,get:function(){return v.assertNamedType}});Object.defineProperty(L,"assertNonNullType",{enumerable:!0,get:function(){return v.assertNonNullType}});Object.defineProperty(L,"assertNullableType",{enumerable:!0,get:function(){return v.assertNullableType}});Object.defineProperty(L,"assertObjectType",{enumerable:!0,get:function(){return v.assertObjectType}});Object.defineProperty(L,"assertOutputType",{enumerable:!0,get:function(){return v.assertOutputType}});Object.defineProperty(L,"assertScalarType",{enumerable:!0,get:function(){return v.assertScalarType}});Object.defineProperty(L,"assertSchema",{enumerable:!0,get:function(){return p9.assertSchema}});Object.defineProperty(L,"assertType",{enumerable:!0,get:function(){return v.assertType}});Object.defineProperty(L,"assertUnionType",{enumerable:!0,get:function(){return v.assertUnionType}});Object.defineProperty(L,"assertValidSchema",{enumerable:!0,get:function(){return eJ.assertValidSchema}});Object.defineProperty(L,"assertWrappingType",{enumerable:!0,get:function(){return v.assertWrappingType}});Object.defineProperty(L,"getNamedType",{enumerable:!0,get:function(){return v.getNamedType}});Object.defineProperty(L,"getNullableType",{enumerable:!0,get:function(){return v.getNullableType}});Object.defineProperty(L,"introspectionTypes",{enumerable:!0,get:function(){return lD.introspectionTypes}});Object.defineProperty(L,"isAbstractType",{enumerable:!0,get:function(){return v.isAbstractType}});Object.defineProperty(L,"isCompositeType",{enumerable:!0,get:function(){return v.isCompositeType}});Object.defineProperty(L,"isDirective",{enumerable:!0,get:function(){return I2.isDirective}});Object.defineProperty(L,"isEnumType",{enumerable:!0,get:function(){return v.isEnumType}});Object.defineProperty(L,"isInputObjectType",{enumerable:!0,get:function(){return v.isInputObjectType}});Object.defineProperty(L,"isInputType",{enumerable:!0,get:function(){return v.isInputType}});Object.defineProperty(L,"isInterfaceType",{enumerable:!0,get:function(){return v.isInterfaceType}});Object.defineProperty(L,"isIntrospectionType",{enumerable:!0,get:function(){return lD.isIntrospectionType}});Object.defineProperty(L,"isLeafType",{enumerable:!0,get:function(){return v.isLeafType}});Object.defineProperty(L,"isListType",{enumerable:!0,get:function(){return v.isListType}});Object.defineProperty(L,"isNamedType",{enumerable:!0,get:function(){return v.isNamedType}});Object.defineProperty(L,"isNonNullType",{enumerable:!0,get:function(){return v.isNonNullType}});Object.defineProperty(L,"isNullableType",{enumerable:!0,get:function(){return v.isNullableType}});Object.defineProperty(L,"isObjectType",{enumerable:!0,get:function(){return v.isObjectType}});Object.defineProperty(L,"isOutputType",{enumerable:!0,get:function(){return v.isOutputType}});Object.defineProperty(L,"isRequiredArgument",{enumerable:!0,get:function(){return v.isRequiredArgument}});Object.defineProperty(L,"isRequiredInputField",{enumerable:!0,get:function(){return v.isRequiredInputField}});Object.defineProperty(L,"isScalarType",{enumerable:!0,get:function(){return v.isScalarType}});Object.defineProperty(L,"isSchema",{enumerable:!0,get:function(){return p9.isSchema}});Object.defineProperty(L,"isSpecifiedDirective",{enumerable:!0,get:function(){return I2.isSpecifiedDirective}});Object.defineProperty(L,"isSpecifiedScalarType",{enumerable:!0,get:function(){return y2.isSpecifiedScalarType}});Object.defineProperty(L,"isType",{enumerable:!0,get:function(){return v.isType}});Object.defineProperty(L,"isUnionType",{enumerable:!0,get:function(){return v.isUnionType}});Object.defineProperty(L,"isWrappingType",{enumerable:!0,get:function(){return v.isWrappingType}});Object.defineProperty(L,"resolveObjMapThunk",{enumerable:!0,get:function(){return v.resolveObjMapThunk}});Object.defineProperty(L,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return v.resolveReadonlyArrayThunk}});Object.defineProperty(L,"specifiedDirectives",{enumerable:!0,get:function(){return I2.specifiedDirectives}});Object.defineProperty(L,"specifiedScalarTypes",{enumerable:!0,get:function(){return y2.specifiedScalarTypes}});Object.defineProperty(L,"validateSchema",{enumerable:!0,get:function(){return eJ.validateSchema}});var p9=j0(),v=n(),I2=yD(),y2=V2(),lD=tD(),eJ=U6(),DY=i8()});var BY=Q((e)=>{Object.defineProperty(e,"__esModule",{value:!0});Object.defineProperty(e,"BREAK",{enumerable:!0,get:function(){return K6.BREAK}});Object.defineProperty(e,"DirectiveLocation",{enumerable:!0,get:function(){return RV.DirectiveLocation}});Object.defineProperty(e,"Kind",{enumerable:!0,get:function(){return OV.Kind}});Object.defineProperty(e,"Lexer",{enumerable:!0,get:function(){return QV.Lexer}});Object.defineProperty(e,"Location",{enumerable:!0,get:function(){return r9.Location}});Object.defineProperty(e,"OperationTypeNode",{enumerable:!0,get:function(){return r9.OperationTypeNode}});Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return UV.Source}});Object.defineProperty(e,"Token",{enumerable:!0,get:function(){return r9.Token}});Object.defineProperty(e,"TokenKind",{enumerable:!0,get:function(){return zV.TokenKind}});Object.defineProperty(e,"getEnterLeaveForKind",{enumerable:!0,get:function(){return K6.getEnterLeaveForKind}});Object.defineProperty(e,"getLocation",{enumerable:!0,get:function(){return WV.getLocation}});Object.defineProperty(e,"getVisitFn",{enumerable:!0,get:function(){return K6.getVisitFn}});Object.defineProperty(e,"isConstValueNode",{enumerable:!0,get:function(){return S2.isConstValueNode}});Object.defineProperty(e,"isDefinitionNode",{enumerable:!0,get:function(){return S2.isDefinitionNode}});Object.defineProperty(e,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return S2.isExecutableDefinitionNode}});Object.defineProperty(e,"isSelectionNode",{enumerable:!0,get:function(){return S2.isSelectionNode}});Object.defineProperty(e,"isTypeDefinitionNode",{enumerable:!0,get:function(){return S2.isTypeDefinitionNode}});Object.defineProperty(e,"isTypeExtensionNode",{enumerable:!0,get:function(){return S2.isTypeExtensionNode}});Object.defineProperty(e,"isTypeNode",{enumerable:!0,get:function(){return S2.isTypeNode}});Object.defineProperty(e,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return S2.isTypeSystemDefinitionNode}});Object.defineProperty(e,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return S2.isTypeSystemExtensionNode}});Object.defineProperty(e,"isValueNode",{enumerable:!0,get:function(){return S2.isValueNode}});Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return X3.parse}});Object.defineProperty(e,"parseConstValue",{enumerable:!0,get:function(){return X3.parseConstValue}});Object.defineProperty(e,"parseType",{enumerable:!0,get:function(){return X3.parseType}});Object.defineProperty(e,"parseValue",{enumerable:!0,get:function(){return X3.parseValue}});Object.defineProperty(e,"print",{enumerable:!0,get:function(){return GV.print}});Object.defineProperty(e,"printLocation",{enumerable:!0,get:function(){return PY.printLocation}});Object.defineProperty(e,"printSourceLocation",{enumerable:!0,get:function(){return PY.printSourceLocation}});Object.defineProperty(e,"visit",{enumerable:!0,get:function(){return K6.visit}});Object.defineProperty(e,"visitInParallel",{enumerable:!0,get:function(){return K6.visitInParallel}});var UV=L1(),WV=$1(),PY=m5(),OV=s(),zV=d8(),QV=A1(),X3=q8(),GV=rD(),K6=K0(),r9=A2(),S2=S0(),RV=B8()});var XY=Q((ZY)=>{Object.defineProperty(ZY,"__esModule",{value:!0});ZY.isAsyncIterable=IV;function IV(D){return typeof(D===null||D===void 0?void 0:D[Symbol.asyncIterator])==="function"}});var JY=Q((qY)=>{Object.defineProperty(qY,"__esModule",{value:!0});qY.mapAsyncIterator=MV;function MV(D,F){let P=D[Symbol.asyncIterator]();async function B(Z){if(Z.done)return Z;try{return{value:await F(Z.value),done:!1}}catch(X){if(typeof P.return==="function")try{await P.return()}catch(q){}throw X}}return{async next(){return B(await P.next())},async return(){return typeof P.return==="function"?B(await P.return()):{value:void 0,done:!0}},async throw(Z){if(typeof P.throw==="function")return B(await P.throw(Z));throw Z},[Symbol.asyncIterator](){return this}}}});var OY=Q((WY)=>{Object.defineProperty(WY,"__esModule",{value:!0});WY.createSourceEventStream=UY;WY.subscribe=jV;var KV=hD(),AV=ZD(),HY=XY(),YY=O6(),a9=g(),CV=D3(),LV=s1(),A6=E6(),VV=JY(),wV=G8();async function jV(D){arguments.length<2||(0,KV.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let F=await UY(D);if(!(0,HY.isAsyncIterable)(F))return F;let P=(B)=>(0,A6.execute)({...D,rootValue:B});return(0,VV.mapAsyncIterator)(F,P)}function bV(D){let F=D[0];if(F&&"document"in F)return F;return{schema:F,document:D[1],rootValue:D[2],contextValue:D[3],variableValues:D[4],operationName:D[5],subscribeFieldResolver:D[6]}}async function UY(...D){let F=bV(D),{schema:P,document:B,variableValues:Z}=F;(0,A6.assertValidExecutionArguments)(P,B,Z);let X=(0,A6.buildExecutionContext)(F);if(!("schema"in X))return{errors:X};try{let q=await SV(X);if(!(0,HY.isAsyncIterable)(q))throw Error(`Subscription field must return Async Iterable. Received: ${(0,AV.inspect)(q)}.`);return q}catch(q){if(q instanceof a9.GraphQLError)return{errors:[q]};throw q}}async function SV(D){let{schema:F,fragments:P,operation:B,variableValues:Z,rootValue:X}=D,q=F.getSubscriptionType();if(q==null)throw new a9.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:B});let J=(0,LV.collectFields)(F,P,Z,q,B.selectionSet),[Y,H]=[...J.entries()][0],U=(0,A6.getFieldDef)(F,q,H[0]);if(!U){let I=H[0].name.value;throw new a9.GraphQLError(`The subscription field "${I}" is not defined.`,{nodes:H})}let W=(0,YY.addPath)(void 0,Y,q.name),O=(0,A6.buildResolveInfo)(D,U,H,q,W);try{var z;let I=(0,wV.getArgumentValues)(U,H[0],Z),R=D.contextValue,K=await((z=U.subscribe)!==null&&z!==void 0?z:D.subscribeFieldResolver)(X,I,R,O);if(K instanceof Error)throw K;return K}catch(I){throw(0,CV.locatedError)(I,H,(0,YY.pathToArray)(W))}}});var QY=Q((D2)=>{Object.defineProperty(D2,"__esModule",{value:!0});Object.defineProperty(D2,"createSourceEventStream",{enumerable:!0,get:function(){return zY.createSourceEventStream}});Object.defineProperty(D2,"defaultFieldResolver",{enumerable:!0,get:function(){return q3.defaultFieldResolver}});Object.defineProperty(D2,"defaultTypeResolver",{enumerable:!0,get:function(){return q3.defaultTypeResolver}});Object.defineProperty(D2,"execute",{enumerable:!0,get:function(){return q3.execute}});Object.defineProperty(D2,"executeSync",{enumerable:!0,get:function(){return q3.executeSync}});Object.defineProperty(D2,"getArgumentValues",{enumerable:!0,get:function(){return s9.getArgumentValues}});Object.defineProperty(D2,"getDirectiveValues",{enumerable:!0,get:function(){return s9.getDirectiveValues}});Object.defineProperty(D2,"getVariableValues",{enumerable:!0,get:function(){return s9.getVariableValues}});Object.defineProperty(D2,"responsePathAsArray",{enumerable:!0,get:function(){return NV.pathToArray}});Object.defineProperty(D2,"subscribe",{enumerable:!0,get:function(){return zY.subscribe}});var NV=O6(),q3=E6(),zY=OY(),s9=G8()});var RY=Q((GY)=>{Object.defineProperty(GY,"__esModule",{value:!0});GY.NoDeprecatedCustomRule=_V;var n9=kD(),C6=g(),i9=n();function _V(D){return{Field(F){let P=D.getFieldDef(),B=P===null||P===void 0?void 0:P.deprecationReason;if(P&&B!=null){let Z=D.getParentType();Z!=null||(0,n9.invariant)(!1),D.reportError(new C6.GraphQLError(`The field ${Z.name}.${P.name} is deprecated. ${B}`,{nodes:F}))}},Argument(F){let P=D.getArgument(),B=P===null||P===void 0?void 0:P.deprecationReason;if(P&&B!=null){let Z=D.getDirective();if(Z!=null)D.reportError(new C6.GraphQLError(`Directive "@${Z.name}" argument "${P.name}" is deprecated. ${B}`,{nodes:F}));else{let X=D.getParentType(),q=D.getFieldDef();X!=null&&q!=null||(0,n9.invariant)(!1),D.reportError(new C6.GraphQLError(`Field "${X.name}.${q.name}" argument "${P.name}" is deprecated. ${B}`,{nodes:F}))}}},ObjectField(F){let P=(0,i9.getNamedType)(D.getParentInputType());if((0,i9.isInputObjectType)(P)){let B=P.getFields()[F.name.value],Z=B===null||B===void 0?void 0:B.deprecationReason;if(Z!=null)D.reportError(new C6.GraphQLError(`The input field ${P.name}.${B.name} is deprecated. ${Z}`,{nodes:F}))}},EnumValue(F){let P=D.getEnumValue(),B=P===null||P===void 0?void 0:P.deprecationReason;if(P&&B!=null){let Z=(0,i9.getNamedType)(D.getInputType());Z!=null||(0,n9.invariant)(!1),D.reportError(new C6.GraphQLError(`The enum value "${Z.name}.${P.name}" is deprecated. ${B}`,{nodes:F}))}}}}});var $Y=Q((IY)=>{Object.defineProperty(IY,"__esModule",{value:!0});IY.NoSchemaIntrospectionCustomRule=gV;var xV=g(),fV=n(),hV=tD();function gV(D){return{Field(F){let P=(0,fV.getNamedType)(D.getType());if(P&&(0,hV.isIntrospectionType)(P))D.reportError(new xV.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${F.name.value}".`,{nodes:F}))}}}});var EY=Q((l)=>{Object.defineProperty(l,"__esModule",{value:!0});Object.defineProperty(l,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return lV.ExecutableDefinitionsRule}});Object.defineProperty(l,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return cV.FieldsOnCorrectTypeRule}});Object.defineProperty(l,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return dV.FragmentsOnCompositeTypesRule}});Object.defineProperty(l,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return pV.KnownArgumentNamesRule}});Object.defineProperty(l,"KnownDirectivesRule",{enumerable:!0,get:function(){return rV.KnownDirectivesRule}});Object.defineProperty(l,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return aV.KnownFragmentNamesRule}});Object.defineProperty(l,"KnownTypeNamesRule",{enumerable:!0,get:function(){return sV.KnownTypeNamesRule}});Object.defineProperty(l,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return nV.LoneAnonymousOperationRule}});Object.defineProperty(l,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return Gw.LoneSchemaDefinitionRule}});Object.defineProperty(l,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return Qw.MaxIntrospectionDepthRule}});Object.defineProperty(l,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return Cw.NoDeprecatedCustomRule}});Object.defineProperty(l,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return iV.NoFragmentCyclesRule}});Object.defineProperty(l,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return Lw.NoSchemaIntrospectionCustomRule}});Object.defineProperty(l,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return oV.NoUndefinedVariablesRule}});Object.defineProperty(l,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return tV.NoUnusedFragmentsRule}});Object.defineProperty(l,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return eV.NoUnusedVariablesRule}});Object.defineProperty(l,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return Dw.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(l,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return Fw.PossibleFragmentSpreadsRule}});Object.defineProperty(l,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return Aw.PossibleTypeExtensionsRule}});Object.defineProperty(l,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return Pw.ProvidedRequiredArgumentsRule}});Object.defineProperty(l,"ScalarLeafsRule",{enumerable:!0,get:function(){return Bw.ScalarLeafsRule}});Object.defineProperty(l,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return Zw.SingleFieldSubscriptionsRule}});Object.defineProperty(l,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Ew.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(l,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return Xw.UniqueArgumentNamesRule}});Object.defineProperty(l,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return Kw.UniqueDirectiveNamesRule}});Object.defineProperty(l,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return qw.UniqueDirectivesPerLocationRule}});Object.defineProperty(l,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return $w.UniqueEnumValueNamesRule}});Object.defineProperty(l,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return Mw.UniqueFieldDefinitionNamesRule}});Object.defineProperty(l,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return Jw.UniqueFragmentNamesRule}});Object.defineProperty(l,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return Yw.UniqueInputFieldNamesRule}});Object.defineProperty(l,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return Hw.UniqueOperationNamesRule}});Object.defineProperty(l,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return Rw.UniqueOperationTypesRule}});Object.defineProperty(l,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return Iw.UniqueTypeNamesRule}});Object.defineProperty(l,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return Uw.UniqueVariableNamesRule}});Object.defineProperty(l,"ValidationContext",{enumerable:!0,get:function(){return mV.ValidationContext}});Object.defineProperty(l,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return Ww.ValuesOfCorrectTypeRule}});Object.defineProperty(l,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return Ow.VariablesAreInputTypesRule}});Object.defineProperty(l,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return zw.VariablesInAllowedPositionRule}});Object.defineProperty(l,"recommendedRules",{enumerable:!0,get:function(){return MY.recommendedRules}});Object.defineProperty(l,"specifiedRules",{enumerable:!0,get:function(){return MY.specifiedRules}});Object.defineProperty(l,"validate",{enumerable:!0,get:function(){return yV.validate}});var yV=$6(),mV=g9(),MY=h9(),lV=x4(),cV=f4(),dV=h4(),pV=g4(),rV=m4(),aV=l4(),sV=d4(),nV=p4(),iV=s4(),oV=n4(),tV=i4(),eV=o4(),Dw=X9(),Fw=J9(),Pw=U9(),Bw=z9(),Zw=$9(),Xw=E9(),qw=C9(),Jw=j9(),Yw=b9(),Hw=S9(),Uw=N9(),Ww=k9(),Ow=x9(),zw=f9(),Qw=a4(),Gw=r4(),Rw=T9(),Iw=u9(),$w=L9(),Mw=w9(),Ew=M9(),Kw=K9(),Aw=Y9(),Cw=RY(),Lw=$Y()});var KY=Q((k0)=>{Object.defineProperty(k0,"__esModule",{value:!0});Object.defineProperty(k0,"GraphQLError",{enumerable:!0,get:function(){return o9.GraphQLError}});Object.defineProperty(k0,"formatError",{enumerable:!0,get:function(){return o9.formatError}});Object.defineProperty(k0,"locatedError",{enumerable:!0,get:function(){return ww.locatedError}});Object.defineProperty(k0,"printError",{enumerable:!0,get:function(){return o9.printError}});Object.defineProperty(k0,"syntaxError",{enumerable:!0,get:function(){return Vw.syntaxError}});var o9=g(),Vw=M1(),ww=D3()});var t9=Q((AY)=>{Object.defineProperty(AY,"__esModule",{value:!0});AY.getIntrospectionQuery=jw;function jw(D){let F={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...D},P=F.descriptions?"description":"",B=F.specifiedByUrl?"specifiedByURL":"",Z=F.directiveIsRepeatable?"isRepeatable":"",X=F.schemaDescription?P:"";function q(Y){return F.inputValueDeprecation?Y:""}let J=F.oneOf?"isOneOf":"";return`
79
79
  query IntrospectionQuery {
80
80
  __schema {
81
81
  ${X}
@@ -181,7 +181,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
181
181
  }
182
182
  }
183
183
  }
184
- `}});var LY=Q((CY)=>{Object.defineProperty(CY,"__esModule",{value:!0});CY.getOperationAST=Tw;var Sw=s();function Tw(D,F){let P=null;for(let Z of D.definitions)if(Z.kind===Sw.Kind.OPERATION_DEFINITION){var B;if(F==null){if(P)return null;P=Z}else if(((B=Z.name)===null||B===void 0?void 0:B.value)===F)return Z}return P}});var wY=Q((VY)=>{Object.defineProperty(VY,"__esModule",{value:!0});VY.getOperationRootType=Nw;var J3=g();function Nw(D,F){if(F.operation==="query"){let P=D.getQueryType();if(!P)throw new J3.GraphQLError("Schema does not define the required query root type.",{nodes:F});return P}if(F.operation==="mutation"){let P=D.getMutationType();if(!P)throw new J3.GraphQLError("Schema is not configured for mutations.",{nodes:F});return P}if(F.operation==="subscription"){let P=D.getSubscriptionType();if(!P)throw new J3.GraphQLError("Schema is not configured for subscriptions.",{nodes:F});return P}throw new J3.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:F})}});var bY=Q((jY)=>{Object.defineProperty(jY,"__esModule",{value:!0});jY.introspectionFromSchema=gw;var kw=kD(),xw=q8(),fw=E6(),hw=t9();function gw(D,F){let P={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...F},B=(0,xw.parse)((0,hw.getIntrospectionQuery)(P)),Z=(0,fw.executeSync)({schema:D,document:B});return!Z.errors&&Z.data||(0,kw.invariant)(!1),Z.data}});var uY=Q((TY)=>{Object.defineProperty(TY,"__esModule",{value:!0});TY.buildClientSchema=rw;var yw=hD(),aD=ZD(),SY=K2(),Y3=s8(),mw=q8(),sD=n(),lw=yD(),T2=tD(),cw=V2(),dw=j0(),pw=R6();function rw(D,F){(0,SY.isObjectLike)(D)&&(0,SY.isObjectLike)(D.__schema)||(0,yw.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,aD.inspect)(D)}.`);let P=D.__schema,B=(0,Y3.keyValMap)(P.types,(M)=>M.name,(M)=>O(M));for(let M of[...cw.specifiedScalarTypes,...T2.introspectionTypes])if(B[M.name])B[M.name]=M;let Z=P.queryType?U(P.queryType):null,X=P.mutationType?U(P.mutationType):null,q=P.subscriptionType?U(P.subscriptionType):null,J=P.directives?P.directives.map(w):[];return new dw.GraphQLSchema({description:P.description,query:Z,mutation:X,subscription:q,types:Object.values(B),directives:J,assumeValid:F===null||F===void 0?void 0:F.assumeValid});function Y(M){if(M.kind===T2.TypeKind.LIST){let h=M.ofType;if(!h)throw new Error("Decorated type deeper than introspection query.");return new sD.GraphQLList(Y(h))}if(M.kind===T2.TypeKind.NON_NULL){let h=M.ofType;if(!h)throw new Error("Decorated type deeper than introspection query.");let GD=Y(h);return new sD.GraphQLNonNull((0,sD.assertNullableType)(GD))}return H(M)}function H(M){let h=M.name;if(!h)throw new Error(`Unknown type reference: ${(0,aD.inspect)(M)}.`);let GD=B[h];if(!GD)throw new Error(`Invalid or incomplete schema, unknown type: ${h}. Ensure that a full introspection query is used in order to build a client schema.`);return GD}function U(M){return(0,sD.assertObjectType)(H(M))}function W(M){return(0,sD.assertInterfaceType)(H(M))}function O(M){if(M!=null&&M.name!=null&&M.kind!=null)switch(M.kind){case T2.TypeKind.SCALAR:return z(M);case T2.TypeKind.OBJECT:return R(M);case T2.TypeKind.INTERFACE:return $(M);case T2.TypeKind.UNION:return K(M);case T2.TypeKind.ENUM:return j(M);case T2.TypeKind.INPUT_OBJECT:return A(M)}let h=(0,aD.inspect)(M);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${h}.`)}function z(M){return new sD.GraphQLScalarType({name:M.name,description:M.description,specifiedByURL:M.specifiedByURL})}function I(M){if(M.interfaces===null&&M.kind===T2.TypeKind.INTERFACE)return[];if(!M.interfaces){let h=(0,aD.inspect)(M);throw new Error(`Introspection result missing interfaces: ${h}.`)}return M.interfaces.map(W)}function R(M){return new sD.GraphQLObjectType({name:M.name,description:M.description,interfaces:()=>I(M),fields:()=>S(M)})}function $(M){return new sD.GraphQLInterfaceType({name:M.name,description:M.description,interfaces:()=>I(M),fields:()=>S(M)})}function K(M){if(!M.possibleTypes){let h=(0,aD.inspect)(M);throw new Error(`Introspection result missing possibleTypes: ${h}.`)}return new sD.GraphQLUnionType({name:M.name,description:M.description,types:()=>M.possibleTypes.map(U)})}function j(M){if(!M.enumValues){let h=(0,aD.inspect)(M);throw new Error(`Introspection result missing enumValues: ${h}.`)}return new sD.GraphQLEnumType({name:M.name,description:M.description,values:(0,Y3.keyValMap)(M.enumValues,(h)=>h.name,(h)=>({description:h.description,deprecationReason:h.deprecationReason}))})}function A(M){if(!M.inputFields){let h=(0,aD.inspect)(M);throw new Error(`Introspection result missing inputFields: ${h}.`)}return new sD.GraphQLInputObjectType({name:M.name,description:M.description,fields:()=>u(M.inputFields),isOneOf:M.isOneOf})}function S(M){if(!M.fields)throw new Error(`Introspection result missing fields: ${(0,aD.inspect)(M)}.`);return(0,Y3.keyValMap)(M.fields,(h)=>h.name,C)}function C(M){let h=Y(M.type);if(!(0,sD.isOutputType)(h)){let GD=(0,aD.inspect)(h);throw new Error(`Introspection must provide output type for fields, but received: ${GD}.`)}if(!M.args){let GD=(0,aD.inspect)(M);throw new Error(`Introspection result missing field args: ${GD}.`)}return{description:M.description,deprecationReason:M.deprecationReason,type:h,args:u(M.args)}}function u(M){return(0,Y3.keyValMap)(M,(h)=>h.name,m)}function m(M){let h=Y(M.type);if(!(0,sD.isInputType)(h)){let XD=(0,aD.inspect)(h);throw new Error(`Introspection must provide input type for arguments, but received: ${XD}.`)}let GD=M.defaultValue!=null?(0,pw.valueFromAST)((0,mw.parseValue)(M.defaultValue),h):void 0;return{description:M.description,type:h,defaultValue:GD,deprecationReason:M.deprecationReason}}function w(M){if(!M.args){let h=(0,aD.inspect)(M);throw new Error(`Introspection result missing directive args: ${h}.`)}if(!M.locations){let h=(0,aD.inspect)(M);throw new Error(`Introspection result missing directive locations: ${h}.`)}return new lw.GraphQLDirective({name:M.name,description:M.description,isRepeatable:M.isRepeatable,locations:M.locations.slice(),args:u(M.args)})}}});var D7=Q((yY)=>{Object.defineProperty(yY,"__esModule",{value:!0});yY.extendSchema=ew;yY.extendSchemaImpl=vY;var sw=hD(),nw=ZD(),iw=kD(),ow=i2(),L6=F4(),F2=s(),NY=S0(),QD=n(),V6=yD(),hY=tD(),gY=V2(),_Y=j0(),tw=$6(),e9=G8(),kY=R6();function ew(D,F,P){if((0,_Y.assertSchema)(D),F!=null&&F.kind===F2.Kind.DOCUMENT||(0,sw.devAssert)(!1,"Must provide valid Document AST."),(P===null||P===void 0?void 0:P.assumeValid)!==!0&&(P===null||P===void 0?void 0:P.assumeValidSDL)!==!0)(0,tw.assertValidSDLExtension)(F,D);let B=D.toConfig(),Z=vY(B,F,P);return B===Z?D:new _Y.GraphQLSchema(Z)}function vY(D,F,P){var B,Z,X,q;let J=[],Y=Object.create(null),H=[],U,W=[];for(let E of F.definitions)if(E.kind===F2.Kind.SCHEMA_DEFINITION)U=E;else if(E.kind===F2.Kind.SCHEMA_EXTENSION)W.push(E);else if((0,NY.isTypeDefinitionNode)(E))J.push(E);else if((0,NY.isTypeExtensionNode)(E)){let k=E.name.value,T=Y[k];Y[k]=T?T.concat([E]):[E]}else if(E.kind===F2.Kind.DIRECTIVE_DEFINITION)H.push(E);if(Object.keys(Y).length===0&&J.length===0&&H.length===0&&W.length===0&&U==null)return D;let O=Object.create(null);for(let E of D.types)O[E.name]=j(E);for(let E of J){var z;let k=E.name.value;O[k]=(z=xY[k])!==null&&z!==void 0?z:vz(E)}let I={query:D.query&&$(D.query),mutation:D.mutation&&$(D.mutation),subscription:D.subscription&&$(D.subscription),...U&&GD([U]),...GD(W)};return{description:(B=U)===null||B===void 0?void 0:(Z=B.description)===null||Z===void 0?void 0:Z.value,...I,types:Object.values(O),directives:[...D.directives.map(K),...H.map(gz)],extensions:Object.create(null),astNode:(X=U)!==null&&X!==void 0?X:D.astNode,extensionASTNodes:D.extensionASTNodes.concat(W),assumeValid:(q=P===null||P===void 0?void 0:P.assumeValid)!==null&&q!==void 0?q:!1};function R(E){if((0,QD.isListType)(E))return new QD.GraphQLList(R(E.ofType));if((0,QD.isNonNullType)(E))return new QD.GraphQLNonNull(R(E.ofType));return $(E)}function $(E){return O[E.name]}function K(E){let k=E.toConfig();return new V6.GraphQLDirective({...k,args:(0,L6.mapValue)(k.args,h)})}function j(E){if((0,hY.isIntrospectionType)(E)||(0,gY.isSpecifiedScalarType)(E))return E;if((0,QD.isScalarType)(E))return C(E);if((0,QD.isObjectType)(E))return u(E);if((0,QD.isInterfaceType)(E))return m(E);if((0,QD.isUnionType)(E))return w(E);if((0,QD.isEnumType)(E))return S(E);if((0,QD.isInputObjectType)(E))return A(E);(0,iw.invariant)(!1,"Unexpected type: "+(0,nw.inspect)(E))}function A(E){var k;let T=E.toConfig(),f=(k=Y[T.name])!==null&&k!==void 0?k:[];return new QD.GraphQLInputObjectType({...T,fields:()=>({...(0,L6.mapValue)(T.fields,(HD)=>({...HD,type:R(HD.type)})),...IP(f)}),extensionASTNodes:T.extensionASTNodes.concat(f)})}function S(E){var k;let T=E.toConfig(),f=(k=Y[E.name])!==null&&k!==void 0?k:[];return new QD.GraphQLEnumType({...T,values:{...T.values,...$P(f)},extensionASTNodes:T.extensionASTNodes.concat(f)})}function C(E){var k;let T=E.toConfig(),f=(k=Y[T.name])!==null&&k!==void 0?k:[],HD=T.specifiedByURL;for(let WD of f){var LD;HD=(LD=fY(WD))!==null&&LD!==void 0?LD:HD}return new QD.GraphQLScalarType({...T,specifiedByURL:HD,extensionASTNodes:T.extensionASTNodes.concat(f)})}function u(E){var k;let T=E.toConfig(),f=(k=Y[T.name])!==null&&k!==void 0?k:[];return new QD.GraphQLObjectType({...T,interfaces:()=>[...E.getInterfaces().map($),...Q1(f)],fields:()=>({...(0,L6.mapValue)(T.fields,M),...z1(f)}),extensionASTNodes:T.extensionASTNodes.concat(f)})}function m(E){var k;let T=E.toConfig(),f=(k=Y[T.name])!==null&&k!==void 0?k:[];return new QD.GraphQLInterfaceType({...T,interfaces:()=>[...E.getInterfaces().map($),...Q1(f)],fields:()=>({...(0,L6.mapValue)(T.fields,M),...z1(f)}),extensionASTNodes:T.extensionASTNodes.concat(f)})}function w(E){var k;let T=E.toConfig(),f=(k=Y[T.name])!==null&&k!==void 0?k:[];return new QD.GraphQLUnionType({...T,types:()=>[...E.getTypes().map($),...MP(f)],extensionASTNodes:T.extensionASTNodes.concat(f)})}function M(E){return{...E,type:R(E.type),args:E.args&&(0,L6.mapValue)(E.args,h)}}function h(E){return{...E,type:R(E.type)}}function GD(E){let k={};for(let f of E){var T;let HD=(T=f.operationTypes)!==null&&T!==void 0?T:[];for(let LD of HD)k[LD.operation]=XD(LD.type)}return k}function XD(E){var k;let T=E.name.value,f=(k=xY[T])!==null&&k!==void 0?k:O[T];if(f===void 0)throw new Error(`Unknown type: "${T}".`);return f}function s2(E){if(E.kind===F2.Kind.LIST_TYPE)return new QD.GraphQLList(s2(E.type));if(E.kind===F2.Kind.NON_NULL_TYPE)return new QD.GraphQLNonNull(s2(E.type));return XD(E)}function gz(E){var k;return new V6.GraphQLDirective({name:E.name.value,description:(k=E.description)===null||k===void 0?void 0:k.value,locations:E.locations.map(({value:T})=>T),isRepeatable:E.repeatable,args:RP(E.arguments),astNode:E})}function z1(E){let k=Object.create(null);for(let HD of E){var T;let LD=(T=HD.fields)!==null&&T!==void 0?T:[];for(let WD of LD){var f;k[WD.name.value]={type:s2(WD.type),description:(f=WD.description)===null||f===void 0?void 0:f.value,args:RP(WD.arguments),deprecationReason:H3(WD),astNode:WD}}}return k}function RP(E){let k=E!==null&&E!==void 0?E:[],T=Object.create(null);for(let HD of k){var f;let LD=s2(HD.type);T[HD.name.value]={type:LD,description:(f=HD.description)===null||f===void 0?void 0:f.value,defaultValue:(0,kY.valueFromAST)(HD.defaultValue,LD),deprecationReason:H3(HD),astNode:HD}}return T}function IP(E){let k=Object.create(null);for(let HD of E){var T;let LD=(T=HD.fields)!==null&&T!==void 0?T:[];for(let WD of LD){var f;let P8=s2(WD.type);k[WD.name.value]={type:P8,description:(f=WD.description)===null||f===void 0?void 0:f.value,defaultValue:(0,kY.valueFromAST)(WD.defaultValue,P8),deprecationReason:H3(WD),astNode:WD}}}return k}function $P(E){let k=Object.create(null);for(let HD of E){var T;let LD=(T=HD.values)!==null&&T!==void 0?T:[];for(let WD of LD){var f;k[WD.name.value]={description:(f=WD.description)===null||f===void 0?void 0:f.value,deprecationReason:H3(WD),astNode:WD}}}return k}function Q1(E){return E.flatMap((k)=>{var T,f;return(T=(f=k.interfaces)===null||f===void 0?void 0:f.map(XD))!==null&&T!==void 0?T:[]})}function MP(E){return E.flatMap((k)=>{var T,f;return(T=(f=k.types)===null||f===void 0?void 0:f.map(XD))!==null&&T!==void 0?T:[]})}function vz(E){var k;let T=E.name.value,f=(k=Y[T])!==null&&k!==void 0?k:[];switch(E.kind){case F2.Kind.OBJECT_TYPE_DEFINITION:{var HD;let Y2=[E,...f];return new QD.GraphQLObjectType({name:T,description:(HD=E.description)===null||HD===void 0?void 0:HD.value,interfaces:()=>Q1(Y2),fields:()=>z1(Y2),astNode:E,extensionASTNodes:f})}case F2.Kind.INTERFACE_TYPE_DEFINITION:{var LD;let Y2=[E,...f];return new QD.GraphQLInterfaceType({name:T,description:(LD=E.description)===null||LD===void 0?void 0:LD.value,interfaces:()=>Q1(Y2),fields:()=>z1(Y2),astNode:E,extensionASTNodes:f})}case F2.Kind.ENUM_TYPE_DEFINITION:{var WD;let Y2=[E,...f];return new QD.GraphQLEnumType({name:T,description:(WD=E.description)===null||WD===void 0?void 0:WD.value,values:$P(Y2),astNode:E,extensionASTNodes:f})}case F2.Kind.UNION_TYPE_DEFINITION:{var P8;let Y2=[E,...f];return new QD.GraphQLUnionType({name:T,description:(P8=E.description)===null||P8===void 0?void 0:P8.value,types:()=>MP(Y2),astNode:E,extensionASTNodes:f})}case F2.Kind.SCALAR_TYPE_DEFINITION:{var N5;return new QD.GraphQLScalarType({name:T,description:(N5=E.description)===null||N5===void 0?void 0:N5.value,specifiedByURL:fY(E),astNode:E,extensionASTNodes:f})}case F2.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var _5;let Y2=[E,...f];return new QD.GraphQLInputObjectType({name:T,description:(_5=E.description)===null||_5===void 0?void 0:_5.value,fields:()=>IP(Y2),astNode:E,extensionASTNodes:f,isOneOf:Dj(E)})}}}}var xY=(0,ow.keyMap)([...gY.specifiedScalarTypes,...hY.introspectionTypes],(D)=>D.name);function H3(D){let F=(0,e9.getDirectiveValues)(V6.GraphQLDeprecatedDirective,D);return F===null||F===void 0?void 0:F.reason}function fY(D){let F=(0,e9.getDirectiveValues)(V6.GraphQLSpecifiedByDirective,D);return F===null||F===void 0?void 0:F.url}function Dj(D){return Boolean((0,e9.getDirectiveValues)(V6.GraphQLOneOfDirective,D))}});var cY=Q((lY)=>{Object.defineProperty(lY,"__esModule",{value:!0});lY.buildASTSchema=mY;lY.buildSchema=Uj;var Bj=hD(),Zj=s(),Xj=q8(),qj=yD(),Jj=j0(),Yj=$6(),Hj=D7();function mY(D,F){if(D!=null&&D.kind===Zj.Kind.DOCUMENT||(0,Bj.devAssert)(!1,"Must provide valid Document AST."),(F===null||F===void 0?void 0:F.assumeValid)!==!0&&(F===null||F===void 0?void 0:F.assumeValidSDL)!==!0)(0,Yj.assertValidSDL)(D);let P={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},B=(0,Hj.extendSchemaImpl)(P,D,F);if(B.astNode==null)for(let X of B.types)switch(X.name){case"Query":B.query=X;break;case"Mutation":B.mutation=X;break;case"Subscription":B.subscription=X;break}let Z=[...B.directives,...qj.specifiedDirectives.filter((X)=>B.directives.every((q)=>q.name!==X.name))];return new Jj.GraphQLSchema({...B,directives:Z})}function Uj(D,F){let P=(0,Xj.parse)(D,{noLocation:F===null||F===void 0?void 0:F.noLocation,allowLegacyFragmentVariables:F===null||F===void 0?void 0:F.allowLegacyFragmentVariables});return mY(P,{assumeValidSDL:F===null||F===void 0?void 0:F.assumeValidSDL,assumeValid:F===null||F===void 0?void 0:F.assumeValid})}});var aY=Q((rY)=>{Object.defineProperty(rY,"__esModule",{value:!0});rY.lexicographicSortSchema=Mj;var zj=ZD(),Qj=kD(),Gj=s8(),dY=n8(),gD=n(),Rj=yD(),Ij=tD(),$j=j0();function Mj(D){let F=D.toConfig(),P=(0,Gj.keyValMap)(F7(F.types),(O)=>O.name,W);return new $j.GraphQLSchema({...F,types:Object.values(P),directives:F7(F.directives).map(q),query:X(F.query),mutation:X(F.mutation),subscription:X(F.subscription)});function B(O){if((0,gD.isListType)(O))return new gD.GraphQLList(B(O.ofType));else if((0,gD.isNonNullType)(O))return new gD.GraphQLNonNull(B(O.ofType));return Z(O)}function Z(O){return P[O.name]}function X(O){return O&&Z(O)}function q(O){let z=O.toConfig();return new Rj.GraphQLDirective({...z,locations:pY(z.locations,(I)=>I),args:J(z.args)})}function J(O){return U3(O,(z)=>({...z,type:B(z.type)}))}function Y(O){return U3(O,(z)=>({...z,type:B(z.type),args:z.args&&J(z.args)}))}function H(O){return U3(O,(z)=>({...z,type:B(z.type)}))}function U(O){return F7(O).map(Z)}function W(O){if((0,gD.isScalarType)(O)||(0,Ij.isIntrospectionType)(O))return O;if((0,gD.isObjectType)(O)){let z=O.toConfig();return new gD.GraphQLObjectType({...z,interfaces:()=>U(z.interfaces),fields:()=>Y(z.fields)})}if((0,gD.isInterfaceType)(O)){let z=O.toConfig();return new gD.GraphQLInterfaceType({...z,interfaces:()=>U(z.interfaces),fields:()=>Y(z.fields)})}if((0,gD.isUnionType)(O)){let z=O.toConfig();return new gD.GraphQLUnionType({...z,types:()=>U(z.types)})}if((0,gD.isEnumType)(O)){let z=O.toConfig();return new gD.GraphQLEnumType({...z,values:U3(z.values,(I)=>I)})}if((0,gD.isInputObjectType)(O)){let z=O.toConfig();return new gD.GraphQLInputObjectType({...z,fields:()=>H(z.fields)})}(0,Qj.invariant)(!1,"Unexpected type: "+(0,zj.inspect)(O))}}function U3(D,F){let P=Object.create(null);for(let B of Object.keys(D).sort(dY.naturalCompare))P[B]=F(D[B]);return P}function F7(D){return pY(D,(F)=>F.name)}function pY(D,F){return D.slice().sort((P,B)=>{let Z=F(P),X=F(B);return(0,dY.naturalCompare)(Z,X)})}});var FH=Q((DH)=>{Object.defineProperty(DH,"__esModule",{value:!0});DH.printIntrospectionSchema=jj;DH.printSchema=wj;DH.printType=iY;var Kj=ZD(),Aj=kD(),Cj=c8(),B7=s(),W3=rD(),I8=n(),Z7=yD(),sY=tD(),Lj=V2(),Vj=J6();function wj(D){return nY(D,(F)=>!(0,Z7.isSpecifiedDirective)(F),bj)}function jj(D){return nY(D,Z7.isSpecifiedDirective,sY.isIntrospectionType)}function bj(D){return!(0,Lj.isSpecifiedScalarType)(D)&&!(0,sY.isIntrospectionType)(D)}function nY(D,F,P){let B=D.getDirectives().filter(F),Z=Object.values(D.getTypeMap()).filter(P);return[Sj(D),...B.map((X)=>hj(X)),...Z.map((X)=>iY(X))].filter(Boolean).join(`
184
+ `}});var LY=Q((CY)=>{Object.defineProperty(CY,"__esModule",{value:!0});CY.getOperationAST=Tw;var Sw=s();function Tw(D,F){let P=null;for(let Z of D.definitions)if(Z.kind===Sw.Kind.OPERATION_DEFINITION){var B;if(F==null){if(P)return null;P=Z}else if(((B=Z.name)===null||B===void 0?void 0:B.value)===F)return Z}return P}});var wY=Q((VY)=>{Object.defineProperty(VY,"__esModule",{value:!0});VY.getOperationRootType=Nw;var J3=g();function Nw(D,F){if(F.operation==="query"){let P=D.getQueryType();if(!P)throw new J3.GraphQLError("Schema does not define the required query root type.",{nodes:F});return P}if(F.operation==="mutation"){let P=D.getMutationType();if(!P)throw new J3.GraphQLError("Schema is not configured for mutations.",{nodes:F});return P}if(F.operation==="subscription"){let P=D.getSubscriptionType();if(!P)throw new J3.GraphQLError("Schema is not configured for subscriptions.",{nodes:F});return P}throw new J3.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:F})}});var bY=Q((jY)=>{Object.defineProperty(jY,"__esModule",{value:!0});jY.introspectionFromSchema=gw;var kw=kD(),xw=q8(),fw=E6(),hw=t9();function gw(D,F){let P={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...F},B=(0,xw.parse)((0,hw.getIntrospectionQuery)(P)),Z=(0,fw.executeSync)({schema:D,document:B});return!Z.errors&&Z.data||(0,kw.invariant)(!1),Z.data}});var uY=Q((TY)=>{Object.defineProperty(TY,"__esModule",{value:!0});TY.buildClientSchema=rw;var yw=hD(),aD=ZD(),SY=K2(),Y3=s8(),mw=q8(),sD=n(),lw=yD(),T2=tD(),cw=V2(),dw=j0(),pw=R6();function rw(D,F){(0,SY.isObjectLike)(D)&&(0,SY.isObjectLike)(D.__schema)||(0,yw.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,aD.inspect)(D)}.`);let P=D.__schema,B=(0,Y3.keyValMap)(P.types,(M)=>M.name,(M)=>O(M));for(let M of[...cw.specifiedScalarTypes,...T2.introspectionTypes])if(B[M.name])B[M.name]=M;let Z=P.queryType?U(P.queryType):null,X=P.mutationType?U(P.mutationType):null,q=P.subscriptionType?U(P.subscriptionType):null,J=P.directives?P.directives.map(w):[];return new dw.GraphQLSchema({description:P.description,query:Z,mutation:X,subscription:q,types:Object.values(B),directives:J,assumeValid:F===null||F===void 0?void 0:F.assumeValid});function Y(M){if(M.kind===T2.TypeKind.LIST){let h=M.ofType;if(!h)throw Error("Decorated type deeper than introspection query.");return new sD.GraphQLList(Y(h))}if(M.kind===T2.TypeKind.NON_NULL){let h=M.ofType;if(!h)throw Error("Decorated type deeper than introspection query.");let GD=Y(h);return new sD.GraphQLNonNull((0,sD.assertNullableType)(GD))}return H(M)}function H(M){let h=M.name;if(!h)throw Error(`Unknown type reference: ${(0,aD.inspect)(M)}.`);let GD=B[h];if(!GD)throw Error(`Invalid or incomplete schema, unknown type: ${h}. Ensure that a full introspection query is used in order to build a client schema.`);return GD}function U(M){return(0,sD.assertObjectType)(H(M))}function W(M){return(0,sD.assertInterfaceType)(H(M))}function O(M){if(M!=null&&M.name!=null&&M.kind!=null)switch(M.kind){case T2.TypeKind.SCALAR:return z(M);case T2.TypeKind.OBJECT:return R(M);case T2.TypeKind.INTERFACE:return $(M);case T2.TypeKind.UNION:return K(M);case T2.TypeKind.ENUM:return j(M);case T2.TypeKind.INPUT_OBJECT:return A(M)}let h=(0,aD.inspect)(M);throw Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${h}.`)}function z(M){return new sD.GraphQLScalarType({name:M.name,description:M.description,specifiedByURL:M.specifiedByURL})}function I(M){if(M.interfaces===null&&M.kind===T2.TypeKind.INTERFACE)return[];if(!M.interfaces){let h=(0,aD.inspect)(M);throw Error(`Introspection result missing interfaces: ${h}.`)}return M.interfaces.map(W)}function R(M){return new sD.GraphQLObjectType({name:M.name,description:M.description,interfaces:()=>I(M),fields:()=>S(M)})}function $(M){return new sD.GraphQLInterfaceType({name:M.name,description:M.description,interfaces:()=>I(M),fields:()=>S(M)})}function K(M){if(!M.possibleTypes){let h=(0,aD.inspect)(M);throw Error(`Introspection result missing possibleTypes: ${h}.`)}return new sD.GraphQLUnionType({name:M.name,description:M.description,types:()=>M.possibleTypes.map(U)})}function j(M){if(!M.enumValues){let h=(0,aD.inspect)(M);throw Error(`Introspection result missing enumValues: ${h}.`)}return new sD.GraphQLEnumType({name:M.name,description:M.description,values:(0,Y3.keyValMap)(M.enumValues,(h)=>h.name,(h)=>({description:h.description,deprecationReason:h.deprecationReason}))})}function A(M){if(!M.inputFields){let h=(0,aD.inspect)(M);throw Error(`Introspection result missing inputFields: ${h}.`)}return new sD.GraphQLInputObjectType({name:M.name,description:M.description,fields:()=>u(M.inputFields),isOneOf:M.isOneOf})}function S(M){if(!M.fields)throw Error(`Introspection result missing fields: ${(0,aD.inspect)(M)}.`);return(0,Y3.keyValMap)(M.fields,(h)=>h.name,C)}function C(M){let h=Y(M.type);if(!(0,sD.isOutputType)(h)){let GD=(0,aD.inspect)(h);throw Error(`Introspection must provide output type for fields, but received: ${GD}.`)}if(!M.args){let GD=(0,aD.inspect)(M);throw Error(`Introspection result missing field args: ${GD}.`)}return{description:M.description,deprecationReason:M.deprecationReason,type:h,args:u(M.args)}}function u(M){return(0,Y3.keyValMap)(M,(h)=>h.name,m)}function m(M){let h=Y(M.type);if(!(0,sD.isInputType)(h)){let XD=(0,aD.inspect)(h);throw Error(`Introspection must provide input type for arguments, but received: ${XD}.`)}let GD=M.defaultValue!=null?(0,pw.valueFromAST)((0,mw.parseValue)(M.defaultValue),h):void 0;return{description:M.description,type:h,defaultValue:GD,deprecationReason:M.deprecationReason}}function w(M){if(!M.args){let h=(0,aD.inspect)(M);throw Error(`Introspection result missing directive args: ${h}.`)}if(!M.locations){let h=(0,aD.inspect)(M);throw Error(`Introspection result missing directive locations: ${h}.`)}return new lw.GraphQLDirective({name:M.name,description:M.description,isRepeatable:M.isRepeatable,locations:M.locations.slice(),args:u(M.args)})}}});var D7=Q((yY)=>{Object.defineProperty(yY,"__esModule",{value:!0});yY.extendSchema=ew;yY.extendSchemaImpl=vY;var sw=hD(),nw=ZD(),iw=kD(),ow=i2(),L6=F4(),F2=s(),NY=S0(),QD=n(),V6=yD(),hY=tD(),gY=V2(),_Y=j0(),tw=$6(),e9=G8(),kY=R6();function ew(D,F,P){if((0,_Y.assertSchema)(D),F!=null&&F.kind===F2.Kind.DOCUMENT||(0,sw.devAssert)(!1,"Must provide valid Document AST."),(P===null||P===void 0?void 0:P.assumeValid)!==!0&&(P===null||P===void 0?void 0:P.assumeValidSDL)!==!0)(0,tw.assertValidSDLExtension)(F,D);let B=D.toConfig(),Z=vY(B,F,P);return B===Z?D:new _Y.GraphQLSchema(Z)}function vY(D,F,P){var B,Z,X,q;let J=[],Y=Object.create(null),H=[],U,W=[];for(let E of F.definitions)if(E.kind===F2.Kind.SCHEMA_DEFINITION)U=E;else if(E.kind===F2.Kind.SCHEMA_EXTENSION)W.push(E);else if((0,NY.isTypeDefinitionNode)(E))J.push(E);else if((0,NY.isTypeExtensionNode)(E)){let k=E.name.value,T=Y[k];Y[k]=T?T.concat([E]):[E]}else if(E.kind===F2.Kind.DIRECTIVE_DEFINITION)H.push(E);if(Object.keys(Y).length===0&&J.length===0&&H.length===0&&W.length===0&&U==null)return D;let O=Object.create(null);for(let E of D.types)O[E.name]=j(E);for(let E of J){var z;let k=E.name.value;O[k]=(z=xY[k])!==null&&z!==void 0?z:vz(E)}let I={query:D.query&&$(D.query),mutation:D.mutation&&$(D.mutation),subscription:D.subscription&&$(D.subscription),...U&&GD([U]),...GD(W)};return{description:(B=U)===null||B===void 0?void 0:(Z=B.description)===null||Z===void 0?void 0:Z.value,...I,types:Object.values(O),directives:[...D.directives.map(K),...H.map(gz)],extensions:Object.create(null),astNode:(X=U)!==null&&X!==void 0?X:D.astNode,extensionASTNodes:D.extensionASTNodes.concat(W),assumeValid:(q=P===null||P===void 0?void 0:P.assumeValid)!==null&&q!==void 0?q:!1};function R(E){if((0,QD.isListType)(E))return new QD.GraphQLList(R(E.ofType));if((0,QD.isNonNullType)(E))return new QD.GraphQLNonNull(R(E.ofType));return $(E)}function $(E){return O[E.name]}function K(E){let k=E.toConfig();return new V6.GraphQLDirective({...k,args:(0,L6.mapValue)(k.args,h)})}function j(E){if((0,hY.isIntrospectionType)(E)||(0,gY.isSpecifiedScalarType)(E))return E;if((0,QD.isScalarType)(E))return C(E);if((0,QD.isObjectType)(E))return u(E);if((0,QD.isInterfaceType)(E))return m(E);if((0,QD.isUnionType)(E))return w(E);if((0,QD.isEnumType)(E))return S(E);if((0,QD.isInputObjectType)(E))return A(E);(0,iw.invariant)(!1,"Unexpected type: "+(0,nw.inspect)(E))}function A(E){var k;let T=E.toConfig(),f=(k=Y[T.name])!==null&&k!==void 0?k:[];return new QD.GraphQLInputObjectType({...T,fields:()=>({...(0,L6.mapValue)(T.fields,(HD)=>({...HD,type:R(HD.type)})),...IP(f)}),extensionASTNodes:T.extensionASTNodes.concat(f)})}function S(E){var k;let T=E.toConfig(),f=(k=Y[E.name])!==null&&k!==void 0?k:[];return new QD.GraphQLEnumType({...T,values:{...T.values,...$P(f)},extensionASTNodes:T.extensionASTNodes.concat(f)})}function C(E){var k;let T=E.toConfig(),f=(k=Y[T.name])!==null&&k!==void 0?k:[],HD=T.specifiedByURL;for(let WD of f){var LD;HD=(LD=fY(WD))!==null&&LD!==void 0?LD:HD}return new QD.GraphQLScalarType({...T,specifiedByURL:HD,extensionASTNodes:T.extensionASTNodes.concat(f)})}function u(E){var k;let T=E.toConfig(),f=(k=Y[T.name])!==null&&k!==void 0?k:[];return new QD.GraphQLObjectType({...T,interfaces:()=>[...E.getInterfaces().map($),...Q1(f)],fields:()=>({...(0,L6.mapValue)(T.fields,M),...z1(f)}),extensionASTNodes:T.extensionASTNodes.concat(f)})}function m(E){var k;let T=E.toConfig(),f=(k=Y[T.name])!==null&&k!==void 0?k:[];return new QD.GraphQLInterfaceType({...T,interfaces:()=>[...E.getInterfaces().map($),...Q1(f)],fields:()=>({...(0,L6.mapValue)(T.fields,M),...z1(f)}),extensionASTNodes:T.extensionASTNodes.concat(f)})}function w(E){var k;let T=E.toConfig(),f=(k=Y[T.name])!==null&&k!==void 0?k:[];return new QD.GraphQLUnionType({...T,types:()=>[...E.getTypes().map($),...MP(f)],extensionASTNodes:T.extensionASTNodes.concat(f)})}function M(E){return{...E,type:R(E.type),args:E.args&&(0,L6.mapValue)(E.args,h)}}function h(E){return{...E,type:R(E.type)}}function GD(E){let k={};for(let f of E){var T;let HD=(T=f.operationTypes)!==null&&T!==void 0?T:[];for(let LD of HD)k[LD.operation]=XD(LD.type)}return k}function XD(E){var k;let T=E.name.value,f=(k=xY[T])!==null&&k!==void 0?k:O[T];if(f===void 0)throw Error(`Unknown type: "${T}".`);return f}function s2(E){if(E.kind===F2.Kind.LIST_TYPE)return new QD.GraphQLList(s2(E.type));if(E.kind===F2.Kind.NON_NULL_TYPE)return new QD.GraphQLNonNull(s2(E.type));return XD(E)}function gz(E){var k;return new V6.GraphQLDirective({name:E.name.value,description:(k=E.description)===null||k===void 0?void 0:k.value,locations:E.locations.map(({value:T})=>T),isRepeatable:E.repeatable,args:RP(E.arguments),astNode:E})}function z1(E){let k=Object.create(null);for(let HD of E){var T;let LD=(T=HD.fields)!==null&&T!==void 0?T:[];for(let WD of LD){var f;k[WD.name.value]={type:s2(WD.type),description:(f=WD.description)===null||f===void 0?void 0:f.value,args:RP(WD.arguments),deprecationReason:H3(WD),astNode:WD}}}return k}function RP(E){let k=E!==null&&E!==void 0?E:[],T=Object.create(null);for(let HD of k){var f;let LD=s2(HD.type);T[HD.name.value]={type:LD,description:(f=HD.description)===null||f===void 0?void 0:f.value,defaultValue:(0,kY.valueFromAST)(HD.defaultValue,LD),deprecationReason:H3(HD),astNode:HD}}return T}function IP(E){let k=Object.create(null);for(let HD of E){var T;let LD=(T=HD.fields)!==null&&T!==void 0?T:[];for(let WD of LD){var f;let P8=s2(WD.type);k[WD.name.value]={type:P8,description:(f=WD.description)===null||f===void 0?void 0:f.value,defaultValue:(0,kY.valueFromAST)(WD.defaultValue,P8),deprecationReason:H3(WD),astNode:WD}}}return k}function $P(E){let k=Object.create(null);for(let HD of E){var T;let LD=(T=HD.values)!==null&&T!==void 0?T:[];for(let WD of LD){var f;k[WD.name.value]={description:(f=WD.description)===null||f===void 0?void 0:f.value,deprecationReason:H3(WD),astNode:WD}}}return k}function Q1(E){return E.flatMap((k)=>{var T,f;return(T=(f=k.interfaces)===null||f===void 0?void 0:f.map(XD))!==null&&T!==void 0?T:[]})}function MP(E){return E.flatMap((k)=>{var T,f;return(T=(f=k.types)===null||f===void 0?void 0:f.map(XD))!==null&&T!==void 0?T:[]})}function vz(E){var k;let T=E.name.value,f=(k=Y[T])!==null&&k!==void 0?k:[];switch(E.kind){case F2.Kind.OBJECT_TYPE_DEFINITION:{var HD;let Y2=[E,...f];return new QD.GraphQLObjectType({name:T,description:(HD=E.description)===null||HD===void 0?void 0:HD.value,interfaces:()=>Q1(Y2),fields:()=>z1(Y2),astNode:E,extensionASTNodes:f})}case F2.Kind.INTERFACE_TYPE_DEFINITION:{var LD;let Y2=[E,...f];return new QD.GraphQLInterfaceType({name:T,description:(LD=E.description)===null||LD===void 0?void 0:LD.value,interfaces:()=>Q1(Y2),fields:()=>z1(Y2),astNode:E,extensionASTNodes:f})}case F2.Kind.ENUM_TYPE_DEFINITION:{var WD;let Y2=[E,...f];return new QD.GraphQLEnumType({name:T,description:(WD=E.description)===null||WD===void 0?void 0:WD.value,values:$P(Y2),astNode:E,extensionASTNodes:f})}case F2.Kind.UNION_TYPE_DEFINITION:{var P8;let Y2=[E,...f];return new QD.GraphQLUnionType({name:T,description:(P8=E.description)===null||P8===void 0?void 0:P8.value,types:()=>MP(Y2),astNode:E,extensionASTNodes:f})}case F2.Kind.SCALAR_TYPE_DEFINITION:{var N5;return new QD.GraphQLScalarType({name:T,description:(N5=E.description)===null||N5===void 0?void 0:N5.value,specifiedByURL:fY(E),astNode:E,extensionASTNodes:f})}case F2.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var _5;let Y2=[E,...f];return new QD.GraphQLInputObjectType({name:T,description:(_5=E.description)===null||_5===void 0?void 0:_5.value,fields:()=>IP(Y2),astNode:E,extensionASTNodes:f,isOneOf:Dj(E)})}}}}var xY=(0,ow.keyMap)([...gY.specifiedScalarTypes,...hY.introspectionTypes],(D)=>D.name);function H3(D){let F=(0,e9.getDirectiveValues)(V6.GraphQLDeprecatedDirective,D);return F===null||F===void 0?void 0:F.reason}function fY(D){let F=(0,e9.getDirectiveValues)(V6.GraphQLSpecifiedByDirective,D);return F===null||F===void 0?void 0:F.url}function Dj(D){return Boolean((0,e9.getDirectiveValues)(V6.GraphQLOneOfDirective,D))}});var cY=Q((lY)=>{Object.defineProperty(lY,"__esModule",{value:!0});lY.buildASTSchema=mY;lY.buildSchema=Uj;var Bj=hD(),Zj=s(),Xj=q8(),qj=yD(),Jj=j0(),Yj=$6(),Hj=D7();function mY(D,F){if(D!=null&&D.kind===Zj.Kind.DOCUMENT||(0,Bj.devAssert)(!1,"Must provide valid Document AST."),(F===null||F===void 0?void 0:F.assumeValid)!==!0&&(F===null||F===void 0?void 0:F.assumeValidSDL)!==!0)(0,Yj.assertValidSDL)(D);let P={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},B=(0,Hj.extendSchemaImpl)(P,D,F);if(B.astNode==null)for(let X of B.types)switch(X.name){case"Query":B.query=X;break;case"Mutation":B.mutation=X;break;case"Subscription":B.subscription=X;break}let Z=[...B.directives,...qj.specifiedDirectives.filter((X)=>B.directives.every((q)=>q.name!==X.name))];return new Jj.GraphQLSchema({...B,directives:Z})}function Uj(D,F){let P=(0,Xj.parse)(D,{noLocation:F===null||F===void 0?void 0:F.noLocation,allowLegacyFragmentVariables:F===null||F===void 0?void 0:F.allowLegacyFragmentVariables});return mY(P,{assumeValidSDL:F===null||F===void 0?void 0:F.assumeValidSDL,assumeValid:F===null||F===void 0?void 0:F.assumeValid})}});var aY=Q((rY)=>{Object.defineProperty(rY,"__esModule",{value:!0});rY.lexicographicSortSchema=Mj;var zj=ZD(),Qj=kD(),Gj=s8(),dY=n8(),gD=n(),Rj=yD(),Ij=tD(),$j=j0();function Mj(D){let F=D.toConfig(),P=(0,Gj.keyValMap)(F7(F.types),(O)=>O.name,W);return new $j.GraphQLSchema({...F,types:Object.values(P),directives:F7(F.directives).map(q),query:X(F.query),mutation:X(F.mutation),subscription:X(F.subscription)});function B(O){if((0,gD.isListType)(O))return new gD.GraphQLList(B(O.ofType));else if((0,gD.isNonNullType)(O))return new gD.GraphQLNonNull(B(O.ofType));return Z(O)}function Z(O){return P[O.name]}function X(O){return O&&Z(O)}function q(O){let z=O.toConfig();return new Rj.GraphQLDirective({...z,locations:pY(z.locations,(I)=>I),args:J(z.args)})}function J(O){return U3(O,(z)=>({...z,type:B(z.type)}))}function Y(O){return U3(O,(z)=>({...z,type:B(z.type),args:z.args&&J(z.args)}))}function H(O){return U3(O,(z)=>({...z,type:B(z.type)}))}function U(O){return F7(O).map(Z)}function W(O){if((0,gD.isScalarType)(O)||(0,Ij.isIntrospectionType)(O))return O;if((0,gD.isObjectType)(O)){let z=O.toConfig();return new gD.GraphQLObjectType({...z,interfaces:()=>U(z.interfaces),fields:()=>Y(z.fields)})}if((0,gD.isInterfaceType)(O)){let z=O.toConfig();return new gD.GraphQLInterfaceType({...z,interfaces:()=>U(z.interfaces),fields:()=>Y(z.fields)})}if((0,gD.isUnionType)(O)){let z=O.toConfig();return new gD.GraphQLUnionType({...z,types:()=>U(z.types)})}if((0,gD.isEnumType)(O)){let z=O.toConfig();return new gD.GraphQLEnumType({...z,values:U3(z.values,(I)=>I)})}if((0,gD.isInputObjectType)(O)){let z=O.toConfig();return new gD.GraphQLInputObjectType({...z,fields:()=>H(z.fields)})}(0,Qj.invariant)(!1,"Unexpected type: "+(0,zj.inspect)(O))}}function U3(D,F){let P=Object.create(null);for(let B of Object.keys(D).sort(dY.naturalCompare))P[B]=F(D[B]);return P}function F7(D){return pY(D,(F)=>F.name)}function pY(D,F){return D.slice().sort((P,B)=>{let Z=F(P),X=F(B);return(0,dY.naturalCompare)(Z,X)})}});var FH=Q((DH)=>{Object.defineProperty(DH,"__esModule",{value:!0});DH.printIntrospectionSchema=jj;DH.printSchema=wj;DH.printType=iY;var Kj=ZD(),Aj=kD(),Cj=c8(),B7=s(),W3=rD(),I8=n(),Z7=yD(),sY=tD(),Lj=V2(),Vj=J6();function wj(D){return nY(D,(F)=>!(0,Z7.isSpecifiedDirective)(F),bj)}function jj(D){return nY(D,Z7.isSpecifiedDirective,sY.isIntrospectionType)}function bj(D){return!(0,Lj.isSpecifiedScalarType)(D)&&!(0,sY.isIntrospectionType)(D)}function nY(D,F,P){let B=D.getDirectives().filter(F),Z=Object.values(D.getTypeMap()).filter(P);return[Sj(D),...B.map((X)=>hj(X)),...Z.map((X)=>iY(X))].filter(Boolean).join(`
185
185
 
186
186
  `)}function Sj(D){if(D.description==null&&Tj(D))return;let F=[],P=D.getQueryType();if(P)F.push(` query: ${P.name}`);let B=D.getMutationType();if(B)F.push(` mutation: ${B.name}`);let Z=D.getSubscriptionType();if(Z)F.push(` subscription: ${Z.name}`);return P2(D)+`schema {
187
187
  ${F.join(`
@@ -195,19 +195,19 @@ ${F.join(`
195
195
  `+F+")"}function P7(D){let F=(0,Vj.astFromValue)(D.defaultValue,D.type),P=D.name+": "+String(D.type);if(F)P+=` = ${(0,W3.print)(F)}`;return P+q7(D.deprecationReason)}function hj(D){return P2(D)+"directive @"+D.name+eY(D.args)+(D.isRepeatable?" repeatable":"")+" on "+D.locations.join(" | ")}function q7(D){if(D==null)return"";if(D!==Z7.DEFAULT_DEPRECATION_REASON)return` @deprecated(reason: ${(0,W3.print)({kind:B7.Kind.STRING,value:D})})`;return" @deprecated"}function gj(D){if(D.specifiedByURL==null)return"";return` @specifiedBy(url: ${(0,W3.print)({kind:B7.Kind.STRING,value:D.specifiedByURL})})`}function P2(D,F="",P=!0){let{description:B}=D;if(B==null)return"";let Z=(0,W3.print)({kind:B7.Kind.STRING,value:B,block:(0,Cj.isPrintableAsBlockString)(B)});return(F&&!P?`
196
196
  `+F:F)+Z.replace(/\n/g,`
197
197
  `+F)+`
198
- `}});var BH=Q((PH)=>{Object.defineProperty(PH,"__esModule",{value:!0});PH.concatAST=cj;var lj=s();function cj(D){let F=[];for(let P of D)F.push(...P.definitions);return{kind:lj.Kind.DOCUMENT,definitions:F}}});var JH=Q((qH)=>{Object.defineProperty(qH,"__esModule",{value:!0});qH.separateOperations=rj;var O3=s(),pj=K0();function rj(D){let F=[],P=Object.create(null);for(let Z of D.definitions)switch(Z.kind){case O3.Kind.OPERATION_DEFINITION:F.push(Z);break;case O3.Kind.FRAGMENT_DEFINITION:P[Z.name.value]=ZH(Z.selectionSet);break;default:}let B=Object.create(null);for(let Z of F){let X=new Set;for(let J of ZH(Z.selectionSet))XH(X,P,J);let q=Z.name?Z.name.value:"";B[q]={kind:O3.Kind.DOCUMENT,definitions:D.definitions.filter((J)=>J===Z||J.kind===O3.Kind.FRAGMENT_DEFINITION&&X.has(J.name.value))}}return B}function XH(D,F,P){if(!D.has(P)){D.add(P);let B=F[P];if(B!==void 0)for(let Z of B)XH(D,F,Z)}}function ZH(D){let F=[];return(0,pj.visit)(D,{FragmentSpread(P){F.push(P.name.value)}}),F}});var WH=Q((UH)=>{Object.defineProperty(UH,"__esModule",{value:!0});UH.stripIgnoredCharacters=nj;var sj=c8(),YH=A1(),HH=L1(),J7=d8();function nj(D){let F=(0,HH.isSource)(D)?D:new HH.Source(D),P=F.body,B=new YH.Lexer(F),Z="",X=!1;while(B.advance().kind!==J7.TokenKind.EOF){let q=B.token,J=q.kind,Y=!(0,YH.isPunctuatorTokenKind)(q.kind);if(X){if(Y||q.kind===J7.TokenKind.SPREAD)Z+=" "}let H=P.slice(q.start,q.end);if(J===J7.TokenKind.BLOCK_STRING)Z+=(0,sj.printBlockString)(q.value,{minimize:!0});else Z+=H;X=Y}return Z}});var QH=Q((zH)=>{Object.defineProperty(zH,"__esModule",{value:!0});zH.assertValidName=Db;zH.isValidNameError=OH;var oj=hD(),tj=g(),ej=i8();function Db(D){let F=OH(D);if(F)throw F;return D}function OH(D){if(typeof D==="string"||(0,oj.devAssert)(!1,"Expected name to be a string."),D.startsWith("__"))return new tj.GraphQLError(`Name "${D}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,ej.assertName)(D)}catch(F){return F}}});var LH=Q((AH)=>{Object.defineProperty(AH,"__esModule",{value:!0});AH.DangerousChangeType=AH.BreakingChangeType=void 0;AH.findBreakingChanges=Yb;AH.findDangerousChanges=Hb;var Bb=ZD(),EH=kD(),GH=i2(),Zb=rD(),FD=n(),Xb=V2(),qb=J6(),Jb=e4(),ED;AH.BreakingChangeType=ED;(function(D){D.TYPE_REMOVED="TYPE_REMOVED",D.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",D.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",D.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",D.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",D.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",D.FIELD_REMOVED="FIELD_REMOVED",D.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",D.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",D.ARG_REMOVED="ARG_REMOVED",D.ARG_CHANGED_KIND="ARG_CHANGED_KIND",D.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",D.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",D.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",D.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",D.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(ED||(AH.BreakingChangeType=ED={}));var $2;AH.DangerousChangeType=$2;(function(D){D.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",D.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",D.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",D.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",D.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",D.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})($2||(AH.DangerousChangeType=$2={}));function Yb(D,F){return KH(D,F).filter((P)=>(P.type in ED))}function Hb(D,F){return KH(D,F).filter((P)=>(P.type in $2))}function KH(D,F){return[...Wb(D,F),...Ub(D,F)]}function Ub(D,F){let P=[],B=m2(D.getDirectives(),F.getDirectives());for(let Z of B.removed)P.push({type:ED.DIRECTIVE_REMOVED,description:`${Z.name} was removed.`});for(let[Z,X]of B.persisted){let q=m2(Z.args,X.args);for(let J of q.added)if((0,FD.isRequiredArgument)(J))P.push({type:ED.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${J.name} on directive ${Z.name} was added.`});for(let J of q.removed)P.push({type:ED.DIRECTIVE_ARG_REMOVED,description:`${J.name} was removed from ${Z.name}.`});if(Z.isRepeatable&&!X.isRepeatable)P.push({type:ED.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${Z.name}.`});for(let J of Z.locations)if(!X.locations.includes(J))P.push({type:ED.DIRECTIVE_LOCATION_REMOVED,description:`${J} was removed from ${Z.name}.`})}return P}function Wb(D,F){let P=[],B=m2(Object.values(D.getTypeMap()),Object.values(F.getTypeMap()));for(let Z of B.removed)P.push({type:ED.TYPE_REMOVED,description:(0,Xb.isSpecifiedScalarType)(Z)?`Standard scalar ${Z.name} was removed because it is not referenced anymore.`:`${Z.name} was removed.`});for(let[Z,X]of B.persisted)if((0,FD.isEnumType)(Z)&&(0,FD.isEnumType)(X))P.push(...Qb(Z,X));else if((0,FD.isUnionType)(Z)&&(0,FD.isUnionType)(X))P.push(...zb(Z,X));else if((0,FD.isInputObjectType)(Z)&&(0,FD.isInputObjectType)(X))P.push(...Ob(Z,X));else if((0,FD.isObjectType)(Z)&&(0,FD.isObjectType)(X))P.push(...IH(Z,X),...RH(Z,X));else if((0,FD.isInterfaceType)(Z)&&(0,FD.isInterfaceType)(X))P.push(...IH(Z,X),...RH(Z,X));else if(Z.constructor!==X.constructor)P.push({type:ED.TYPE_CHANGED_KIND,description:`${Z.name} changed from ${$H(Z)} to ${$H(X)}.`});return P}function Ob(D,F){let P=[],B=m2(Object.values(D.getFields()),Object.values(F.getFields()));for(let Z of B.added)if((0,FD.isRequiredInputField)(Z))P.push({type:ED.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${Z.name} on input type ${D.name} was added.`});else P.push({type:$2.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${Z.name} on input type ${D.name} was added.`});for(let Z of B.removed)P.push({type:ED.FIELD_REMOVED,description:`${D.name}.${Z.name} was removed.`});for(let[Z,X]of B.persisted)if(!j6(Z.type,X.type))P.push({type:ED.FIELD_CHANGED_KIND,description:`${D.name}.${Z.name} changed type from ${String(Z.type)} to ${String(X.type)}.`});return P}function zb(D,F){let P=[],B=m2(D.getTypes(),F.getTypes());for(let Z of B.added)P.push({type:$2.TYPE_ADDED_TO_UNION,description:`${Z.name} was added to union type ${D.name}.`});for(let Z of B.removed)P.push({type:ED.TYPE_REMOVED_FROM_UNION,description:`${Z.name} was removed from union type ${D.name}.`});return P}function Qb(D,F){let P=[],B=m2(D.getValues(),F.getValues());for(let Z of B.added)P.push({type:$2.VALUE_ADDED_TO_ENUM,description:`${Z.name} was added to enum type ${D.name}.`});for(let Z of B.removed)P.push({type:ED.VALUE_REMOVED_FROM_ENUM,description:`${Z.name} was removed from enum type ${D.name}.`});return P}function RH(D,F){let P=[],B=m2(D.getInterfaces(),F.getInterfaces());for(let Z of B.added)P.push({type:$2.IMPLEMENTED_INTERFACE_ADDED,description:`${Z.name} added to interfaces implemented by ${D.name}.`});for(let Z of B.removed)P.push({type:ED.IMPLEMENTED_INTERFACE_REMOVED,description:`${D.name} no longer implements interface ${Z.name}.`});return P}function IH(D,F){let P=[],B=m2(Object.values(D.getFields()),Object.values(F.getFields()));for(let Z of B.removed)P.push({type:ED.FIELD_REMOVED,description:`${D.name}.${Z.name} was removed.`});for(let[Z,X]of B.persisted)if(P.push(...Gb(D,Z,X)),!w6(Z.type,X.type))P.push({type:ED.FIELD_CHANGED_KIND,description:`${D.name}.${Z.name} changed type from ${String(Z.type)} to ${String(X.type)}.`});return P}function Gb(D,F,P){let B=[],Z=m2(F.args,P.args);for(let X of Z.removed)B.push({type:ED.ARG_REMOVED,description:`${D.name}.${F.name} arg ${X.name} was removed.`});for(let[X,q]of Z.persisted)if(!j6(X.type,q.type))B.push({type:ED.ARG_CHANGED_KIND,description:`${D.name}.${F.name} arg ${X.name} has changed type from ${String(X.type)} to ${String(q.type)}.`});else if(X.defaultValue!==void 0)if(q.defaultValue===void 0)B.push({type:$2.ARG_DEFAULT_VALUE_CHANGE,description:`${D.name}.${F.name} arg ${X.name} defaultValue was removed.`});else{let Y=MH(X.defaultValue,X.type),H=MH(q.defaultValue,q.type);if(Y!==H)B.push({type:$2.ARG_DEFAULT_VALUE_CHANGE,description:`${D.name}.${F.name} arg ${X.name} has changed defaultValue from ${Y} to ${H}.`})}for(let X of Z.added)if((0,FD.isRequiredArgument)(X))B.push({type:ED.REQUIRED_ARG_ADDED,description:`A required arg ${X.name} on ${D.name}.${F.name} was added.`});else B.push({type:$2.OPTIONAL_ARG_ADDED,description:`An optional arg ${X.name} on ${D.name}.${F.name} was added.`});return B}function w6(D,F){if((0,FD.isListType)(D))return(0,FD.isListType)(F)&&w6(D.ofType,F.ofType)||(0,FD.isNonNullType)(F)&&w6(D,F.ofType);if((0,FD.isNonNullType)(D))return(0,FD.isNonNullType)(F)&&w6(D.ofType,F.ofType);return(0,FD.isNamedType)(F)&&D.name===F.name||(0,FD.isNonNullType)(F)&&w6(D,F.ofType)}function j6(D,F){if((0,FD.isListType)(D))return(0,FD.isListType)(F)&&j6(D.ofType,F.ofType);if((0,FD.isNonNullType)(D))return(0,FD.isNonNullType)(F)&&j6(D.ofType,F.ofType)||!(0,FD.isNonNullType)(F)&&j6(D.ofType,F);return(0,FD.isNamedType)(F)&&D.name===F.name}function $H(D){if((0,FD.isScalarType)(D))return"a Scalar type";if((0,FD.isObjectType)(D))return"an Object type";if((0,FD.isInterfaceType)(D))return"an Interface type";if((0,FD.isUnionType)(D))return"a Union type";if((0,FD.isEnumType)(D))return"an Enum type";if((0,FD.isInputObjectType)(D))return"an Input type";(0,EH.invariant)(!1,"Unexpected type: "+(0,Bb.inspect)(D))}function MH(D,F){let P=(0,qb.astFromValue)(D,F);return P!=null||(0,EH.invariant)(!1),(0,Zb.print)((0,Jb.sortValueNode)(P))}function m2(D,F){let P=[],B=[],Z=[],X=(0,GH.keyMap)(D,({name:J})=>J),q=(0,GH.keyMap)(F,({name:J})=>J);for(let J of D){let Y=q[J.name];if(Y===void 0)B.push(J);else Z.push([J,Y])}for(let J of F)if(X[J.name]===void 0)P.push(J);return{added:P,persisted:Z,removed:B}}});var bH=Q((DD)=>{Object.defineProperty(DD,"__esModule",{value:!0});Object.defineProperty(DD,"BreakingChangeType",{enumerable:!0,get:function(){return z3.BreakingChangeType}});Object.defineProperty(DD,"DangerousChangeType",{enumerable:!0,get:function(){return z3.DangerousChangeType}});Object.defineProperty(DD,"TypeInfo",{enumerable:!0,get:function(){return wH.TypeInfo}});Object.defineProperty(DD,"assertValidName",{enumerable:!0,get:function(){return jH.assertValidName}});Object.defineProperty(DD,"astFromValue",{enumerable:!0,get:function(){return bb.astFromValue}});Object.defineProperty(DD,"buildASTSchema",{enumerable:!0,get:function(){return VH.buildASTSchema}});Object.defineProperty(DD,"buildClientSchema",{enumerable:!0,get:function(){return Ab.buildClientSchema}});Object.defineProperty(DD,"buildSchema",{enumerable:!0,get:function(){return VH.buildSchema}});Object.defineProperty(DD,"coerceInputValue",{enumerable:!0,get:function(){return Sb.coerceInputValue}});Object.defineProperty(DD,"concatAST",{enumerable:!0,get:function(){return Tb.concatAST}});Object.defineProperty(DD,"doTypesOverlap",{enumerable:!0,get:function(){return U7.doTypesOverlap}});Object.defineProperty(DD,"extendSchema",{enumerable:!0,get:function(){return Cb.extendSchema}});Object.defineProperty(DD,"findBreakingChanges",{enumerable:!0,get:function(){return z3.findBreakingChanges}});Object.defineProperty(DD,"findDangerousChanges",{enumerable:!0,get:function(){return z3.findDangerousChanges}});Object.defineProperty(DD,"getIntrospectionQuery",{enumerable:!0,get:function(){return $b.getIntrospectionQuery}});Object.defineProperty(DD,"getOperationAST",{enumerable:!0,get:function(){return Mb.getOperationAST}});Object.defineProperty(DD,"getOperationRootType",{enumerable:!0,get:function(){return Eb.getOperationRootType}});Object.defineProperty(DD,"introspectionFromSchema",{enumerable:!0,get:function(){return Kb.introspectionFromSchema}});Object.defineProperty(DD,"isEqualType",{enumerable:!0,get:function(){return U7.isEqualType}});Object.defineProperty(DD,"isTypeSubTypeOf",{enumerable:!0,get:function(){return U7.isTypeSubTypeOf}});Object.defineProperty(DD,"isValidNameError",{enumerable:!0,get:function(){return jH.isValidNameError}});Object.defineProperty(DD,"lexicographicSortSchema",{enumerable:!0,get:function(){return Lb.lexicographicSortSchema}});Object.defineProperty(DD,"printIntrospectionSchema",{enumerable:!0,get:function(){return H7.printIntrospectionSchema}});Object.defineProperty(DD,"printSchema",{enumerable:!0,get:function(){return H7.printSchema}});Object.defineProperty(DD,"printType",{enumerable:!0,get:function(){return H7.printType}});Object.defineProperty(DD,"separateOperations",{enumerable:!0,get:function(){return ub.separateOperations}});Object.defineProperty(DD,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Nb.stripIgnoredCharacters}});Object.defineProperty(DD,"typeFromAST",{enumerable:!0,get:function(){return Vb.typeFromAST}});Object.defineProperty(DD,"valueFromAST",{enumerable:!0,get:function(){return wb.valueFromAST}});Object.defineProperty(DD,"valueFromASTUntyped",{enumerable:!0,get:function(){return jb.valueFromASTUntyped}});Object.defineProperty(DD,"visitWithTypeInfo",{enumerable:!0,get:function(){return wH.visitWithTypeInfo}});var $b=t9(),Mb=LY(),Eb=wY(),Kb=bY(),Ab=uY(),VH=cY(),Cb=D7(),Lb=aY(),H7=FH(),Vb=w2(),wb=R6(),jb=X4(),bb=J6(),wH=m1(),Sb=G9(),Tb=BH(),ub=JH(),Nb=WH(),U7=D6(),jH=QH(),z3=LH()});var l2=Q((G)=>{Object.defineProperty(G,"__esModule",{value:!0});Object.defineProperty(G,"BREAK",{enumerable:!0,get:function(){return PD.BREAK}});Object.defineProperty(G,"BreakingChangeType",{enumerable:!0,get:function(){return BD.BreakingChangeType}});Object.defineProperty(G,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return V.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(G,"DangerousChangeType",{enumerable:!0,get:function(){return BD.DangerousChangeType}});Object.defineProperty(G,"DirectiveLocation",{enumerable:!0,get:function(){return PD.DirectiveLocation}});Object.defineProperty(G,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return d.ExecutableDefinitionsRule}});Object.defineProperty(G,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return d.FieldsOnCorrectTypeRule}});Object.defineProperty(G,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return d.FragmentsOnCompositeTypesRule}});Object.defineProperty(G,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return V.GRAPHQL_MAX_INT}});Object.defineProperty(G,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return V.GRAPHQL_MIN_INT}});Object.defineProperty(G,"GraphQLBoolean",{enumerable:!0,get:function(){return V.GraphQLBoolean}});Object.defineProperty(G,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return V.GraphQLDeprecatedDirective}});Object.defineProperty(G,"GraphQLDirective",{enumerable:!0,get:function(){return V.GraphQLDirective}});Object.defineProperty(G,"GraphQLEnumType",{enumerable:!0,get:function(){return V.GraphQLEnumType}});Object.defineProperty(G,"GraphQLError",{enumerable:!0,get:function(){return b6.GraphQLError}});Object.defineProperty(G,"GraphQLFloat",{enumerable:!0,get:function(){return V.GraphQLFloat}});Object.defineProperty(G,"GraphQLID",{enumerable:!0,get:function(){return V.GraphQLID}});Object.defineProperty(G,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return V.GraphQLIncludeDirective}});Object.defineProperty(G,"GraphQLInputObjectType",{enumerable:!0,get:function(){return V.GraphQLInputObjectType}});Object.defineProperty(G,"GraphQLInt",{enumerable:!0,get:function(){return V.GraphQLInt}});Object.defineProperty(G,"GraphQLInterfaceType",{enumerable:!0,get:function(){return V.GraphQLInterfaceType}});Object.defineProperty(G,"GraphQLList",{enumerable:!0,get:function(){return V.GraphQLList}});Object.defineProperty(G,"GraphQLNonNull",{enumerable:!0,get:function(){return V.GraphQLNonNull}});Object.defineProperty(G,"GraphQLObjectType",{enumerable:!0,get:function(){return V.GraphQLObjectType}});Object.defineProperty(G,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return V.GraphQLOneOfDirective}});Object.defineProperty(G,"GraphQLScalarType",{enumerable:!0,get:function(){return V.GraphQLScalarType}});Object.defineProperty(G,"GraphQLSchema",{enumerable:!0,get:function(){return V.GraphQLSchema}});Object.defineProperty(G,"GraphQLSkipDirective",{enumerable:!0,get:function(){return V.GraphQLSkipDirective}});Object.defineProperty(G,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return V.GraphQLSpecifiedByDirective}});Object.defineProperty(G,"GraphQLString",{enumerable:!0,get:function(){return V.GraphQLString}});Object.defineProperty(G,"GraphQLUnionType",{enumerable:!0,get:function(){return V.GraphQLUnionType}});Object.defineProperty(G,"Kind",{enumerable:!0,get:function(){return PD.Kind}});Object.defineProperty(G,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return d.KnownArgumentNamesRule}});Object.defineProperty(G,"KnownDirectivesRule",{enumerable:!0,get:function(){return d.KnownDirectivesRule}});Object.defineProperty(G,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return d.KnownFragmentNamesRule}});Object.defineProperty(G,"KnownTypeNamesRule",{enumerable:!0,get:function(){return d.KnownTypeNamesRule}});Object.defineProperty(G,"Lexer",{enumerable:!0,get:function(){return PD.Lexer}});Object.defineProperty(G,"Location",{enumerable:!0,get:function(){return PD.Location}});Object.defineProperty(G,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return d.LoneAnonymousOperationRule}});Object.defineProperty(G,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return d.LoneSchemaDefinitionRule}});Object.defineProperty(G,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return d.MaxIntrospectionDepthRule}});Object.defineProperty(G,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return d.NoDeprecatedCustomRule}});Object.defineProperty(G,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return d.NoFragmentCyclesRule}});Object.defineProperty(G,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return d.NoSchemaIntrospectionCustomRule}});Object.defineProperty(G,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return d.NoUndefinedVariablesRule}});Object.defineProperty(G,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return d.NoUnusedFragmentsRule}});Object.defineProperty(G,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return d.NoUnusedVariablesRule}});Object.defineProperty(G,"OperationTypeNode",{enumerable:!0,get:function(){return PD.OperationTypeNode}});Object.defineProperty(G,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return d.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(G,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return d.PossibleFragmentSpreadsRule}});Object.defineProperty(G,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return d.PossibleTypeExtensionsRule}});Object.defineProperty(G,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return d.ProvidedRequiredArgumentsRule}});Object.defineProperty(G,"ScalarLeafsRule",{enumerable:!0,get:function(){return d.ScalarLeafsRule}});Object.defineProperty(G,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return V.SchemaMetaFieldDef}});Object.defineProperty(G,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return d.SingleFieldSubscriptionsRule}});Object.defineProperty(G,"Source",{enumerable:!0,get:function(){return PD.Source}});Object.defineProperty(G,"Token",{enumerable:!0,get:function(){return PD.Token}});Object.defineProperty(G,"TokenKind",{enumerable:!0,get:function(){return PD.TokenKind}});Object.defineProperty(G,"TypeInfo",{enumerable:!0,get:function(){return BD.TypeInfo}});Object.defineProperty(G,"TypeKind",{enumerable:!0,get:function(){return V.TypeKind}});Object.defineProperty(G,"TypeMetaFieldDef",{enumerable:!0,get:function(){return V.TypeMetaFieldDef}});Object.defineProperty(G,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return V.TypeNameMetaFieldDef}});Object.defineProperty(G,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return d.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(G,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return d.UniqueArgumentNamesRule}});Object.defineProperty(G,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return d.UniqueDirectiveNamesRule}});Object.defineProperty(G,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return d.UniqueDirectivesPerLocationRule}});Object.defineProperty(G,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return d.UniqueEnumValueNamesRule}});Object.defineProperty(G,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return d.UniqueFieldDefinitionNamesRule}});Object.defineProperty(G,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return d.UniqueFragmentNamesRule}});Object.defineProperty(G,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return d.UniqueInputFieldNamesRule}});Object.defineProperty(G,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return d.UniqueOperationNamesRule}});Object.defineProperty(G,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return d.UniqueOperationTypesRule}});Object.defineProperty(G,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return d.UniqueTypeNamesRule}});Object.defineProperty(G,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return d.UniqueVariableNamesRule}});Object.defineProperty(G,"ValidationContext",{enumerable:!0,get:function(){return d.ValidationContext}});Object.defineProperty(G,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return d.ValuesOfCorrectTypeRule}});Object.defineProperty(G,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return d.VariablesAreInputTypesRule}});Object.defineProperty(G,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return d.VariablesInAllowedPositionRule}});Object.defineProperty(G,"__Directive",{enumerable:!0,get:function(){return V.__Directive}});Object.defineProperty(G,"__DirectiveLocation",{enumerable:!0,get:function(){return V.__DirectiveLocation}});Object.defineProperty(G,"__EnumValue",{enumerable:!0,get:function(){return V.__EnumValue}});Object.defineProperty(G,"__Field",{enumerable:!0,get:function(){return V.__Field}});Object.defineProperty(G,"__InputValue",{enumerable:!0,get:function(){return V.__InputValue}});Object.defineProperty(G,"__Schema",{enumerable:!0,get:function(){return V.__Schema}});Object.defineProperty(G,"__Type",{enumerable:!0,get:function(){return V.__Type}});Object.defineProperty(G,"__TypeKind",{enumerable:!0,get:function(){return V.__TypeKind}});Object.defineProperty(G,"assertAbstractType",{enumerable:!0,get:function(){return V.assertAbstractType}});Object.defineProperty(G,"assertCompositeType",{enumerable:!0,get:function(){return V.assertCompositeType}});Object.defineProperty(G,"assertDirective",{enumerable:!0,get:function(){return V.assertDirective}});Object.defineProperty(G,"assertEnumType",{enumerable:!0,get:function(){return V.assertEnumType}});Object.defineProperty(G,"assertEnumValueName",{enumerable:!0,get:function(){return V.assertEnumValueName}});Object.defineProperty(G,"assertInputObjectType",{enumerable:!0,get:function(){return V.assertInputObjectType}});Object.defineProperty(G,"assertInputType",{enumerable:!0,get:function(){return V.assertInputType}});Object.defineProperty(G,"assertInterfaceType",{enumerable:!0,get:function(){return V.assertInterfaceType}});Object.defineProperty(G,"assertLeafType",{enumerable:!0,get:function(){return V.assertLeafType}});Object.defineProperty(G,"assertListType",{enumerable:!0,get:function(){return V.assertListType}});Object.defineProperty(G,"assertName",{enumerable:!0,get:function(){return V.assertName}});Object.defineProperty(G,"assertNamedType",{enumerable:!0,get:function(){return V.assertNamedType}});Object.defineProperty(G,"assertNonNullType",{enumerable:!0,get:function(){return V.assertNonNullType}});Object.defineProperty(G,"assertNullableType",{enumerable:!0,get:function(){return V.assertNullableType}});Object.defineProperty(G,"assertObjectType",{enumerable:!0,get:function(){return V.assertObjectType}});Object.defineProperty(G,"assertOutputType",{enumerable:!0,get:function(){return V.assertOutputType}});Object.defineProperty(G,"assertScalarType",{enumerable:!0,get:function(){return V.assertScalarType}});Object.defineProperty(G,"assertSchema",{enumerable:!0,get:function(){return V.assertSchema}});Object.defineProperty(G,"assertType",{enumerable:!0,get:function(){return V.assertType}});Object.defineProperty(G,"assertUnionType",{enumerable:!0,get:function(){return V.assertUnionType}});Object.defineProperty(G,"assertValidName",{enumerable:!0,get:function(){return BD.assertValidName}});Object.defineProperty(G,"assertValidSchema",{enumerable:!0,get:function(){return V.assertValidSchema}});Object.defineProperty(G,"assertWrappingType",{enumerable:!0,get:function(){return V.assertWrappingType}});Object.defineProperty(G,"astFromValue",{enumerable:!0,get:function(){return BD.astFromValue}});Object.defineProperty(G,"buildASTSchema",{enumerable:!0,get:function(){return BD.buildASTSchema}});Object.defineProperty(G,"buildClientSchema",{enumerable:!0,get:function(){return BD.buildClientSchema}});Object.defineProperty(G,"buildSchema",{enumerable:!0,get:function(){return BD.buildSchema}});Object.defineProperty(G,"coerceInputValue",{enumerable:!0,get:function(){return BD.coerceInputValue}});Object.defineProperty(G,"concatAST",{enumerable:!0,get:function(){return BD.concatAST}});Object.defineProperty(G,"createSourceEventStream",{enumerable:!0,get:function(){return u2.createSourceEventStream}});Object.defineProperty(G,"defaultFieldResolver",{enumerable:!0,get:function(){return u2.defaultFieldResolver}});Object.defineProperty(G,"defaultTypeResolver",{enumerable:!0,get:function(){return u2.defaultTypeResolver}});Object.defineProperty(G,"doTypesOverlap",{enumerable:!0,get:function(){return BD.doTypesOverlap}});Object.defineProperty(G,"execute",{enumerable:!0,get:function(){return u2.execute}});Object.defineProperty(G,"executeSync",{enumerable:!0,get:function(){return u2.executeSync}});Object.defineProperty(G,"extendSchema",{enumerable:!0,get:function(){return BD.extendSchema}});Object.defineProperty(G,"findBreakingChanges",{enumerable:!0,get:function(){return BD.findBreakingChanges}});Object.defineProperty(G,"findDangerousChanges",{enumerable:!0,get:function(){return BD.findDangerousChanges}});Object.defineProperty(G,"formatError",{enumerable:!0,get:function(){return b6.formatError}});Object.defineProperty(G,"getArgumentValues",{enumerable:!0,get:function(){return u2.getArgumentValues}});Object.defineProperty(G,"getDirectiveValues",{enumerable:!0,get:function(){return u2.getDirectiveValues}});Object.defineProperty(G,"getEnterLeaveForKind",{enumerable:!0,get:function(){return PD.getEnterLeaveForKind}});Object.defineProperty(G,"getIntrospectionQuery",{enumerable:!0,get:function(){return BD.getIntrospectionQuery}});Object.defineProperty(G,"getLocation",{enumerable:!0,get:function(){return PD.getLocation}});Object.defineProperty(G,"getNamedType",{enumerable:!0,get:function(){return V.getNamedType}});Object.defineProperty(G,"getNullableType",{enumerable:!0,get:function(){return V.getNullableType}});Object.defineProperty(G,"getOperationAST",{enumerable:!0,get:function(){return BD.getOperationAST}});Object.defineProperty(G,"getOperationRootType",{enumerable:!0,get:function(){return BD.getOperationRootType}});Object.defineProperty(G,"getVariableValues",{enumerable:!0,get:function(){return u2.getVariableValues}});Object.defineProperty(G,"getVisitFn",{enumerable:!0,get:function(){return PD.getVisitFn}});Object.defineProperty(G,"graphql",{enumerable:!0,get:function(){return TH.graphql}});Object.defineProperty(G,"graphqlSync",{enumerable:!0,get:function(){return TH.graphqlSync}});Object.defineProperty(G,"introspectionFromSchema",{enumerable:!0,get:function(){return BD.introspectionFromSchema}});Object.defineProperty(G,"introspectionTypes",{enumerable:!0,get:function(){return V.introspectionTypes}});Object.defineProperty(G,"isAbstractType",{enumerable:!0,get:function(){return V.isAbstractType}});Object.defineProperty(G,"isCompositeType",{enumerable:!0,get:function(){return V.isCompositeType}});Object.defineProperty(G,"isConstValueNode",{enumerable:!0,get:function(){return PD.isConstValueNode}});Object.defineProperty(G,"isDefinitionNode",{enumerable:!0,get:function(){return PD.isDefinitionNode}});Object.defineProperty(G,"isDirective",{enumerable:!0,get:function(){return V.isDirective}});Object.defineProperty(G,"isEnumType",{enumerable:!0,get:function(){return V.isEnumType}});Object.defineProperty(G,"isEqualType",{enumerable:!0,get:function(){return BD.isEqualType}});Object.defineProperty(G,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return PD.isExecutableDefinitionNode}});Object.defineProperty(G,"isInputObjectType",{enumerable:!0,get:function(){return V.isInputObjectType}});Object.defineProperty(G,"isInputType",{enumerable:!0,get:function(){return V.isInputType}});Object.defineProperty(G,"isInterfaceType",{enumerable:!0,get:function(){return V.isInterfaceType}});Object.defineProperty(G,"isIntrospectionType",{enumerable:!0,get:function(){return V.isIntrospectionType}});Object.defineProperty(G,"isLeafType",{enumerable:!0,get:function(){return V.isLeafType}});Object.defineProperty(G,"isListType",{enumerable:!0,get:function(){return V.isListType}});Object.defineProperty(G,"isNamedType",{enumerable:!0,get:function(){return V.isNamedType}});Object.defineProperty(G,"isNonNullType",{enumerable:!0,get:function(){return V.isNonNullType}});Object.defineProperty(G,"isNullableType",{enumerable:!0,get:function(){return V.isNullableType}});Object.defineProperty(G,"isObjectType",{enumerable:!0,get:function(){return V.isObjectType}});Object.defineProperty(G,"isOutputType",{enumerable:!0,get:function(){return V.isOutputType}});Object.defineProperty(G,"isRequiredArgument",{enumerable:!0,get:function(){return V.isRequiredArgument}});Object.defineProperty(G,"isRequiredInputField",{enumerable:!0,get:function(){return V.isRequiredInputField}});Object.defineProperty(G,"isScalarType",{enumerable:!0,get:function(){return V.isScalarType}});Object.defineProperty(G,"isSchema",{enumerable:!0,get:function(){return V.isSchema}});Object.defineProperty(G,"isSelectionNode",{enumerable:!0,get:function(){return PD.isSelectionNode}});Object.defineProperty(G,"isSpecifiedDirective",{enumerable:!0,get:function(){return V.isSpecifiedDirective}});Object.defineProperty(G,"isSpecifiedScalarType",{enumerable:!0,get:function(){return V.isSpecifiedScalarType}});Object.defineProperty(G,"isType",{enumerable:!0,get:function(){return V.isType}});Object.defineProperty(G,"isTypeDefinitionNode",{enumerable:!0,get:function(){return PD.isTypeDefinitionNode}});Object.defineProperty(G,"isTypeExtensionNode",{enumerable:!0,get:function(){return PD.isTypeExtensionNode}});Object.defineProperty(G,"isTypeNode",{enumerable:!0,get:function(){return PD.isTypeNode}});Object.defineProperty(G,"isTypeSubTypeOf",{enumerable:!0,get:function(){return BD.isTypeSubTypeOf}});Object.defineProperty(G,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return PD.isTypeSystemDefinitionNode}});Object.defineProperty(G,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return PD.isTypeSystemExtensionNode}});Object.defineProperty(G,"isUnionType",{enumerable:!0,get:function(){return V.isUnionType}});Object.defineProperty(G,"isValidNameError",{enumerable:!0,get:function(){return BD.isValidNameError}});Object.defineProperty(G,"isValueNode",{enumerable:!0,get:function(){return PD.isValueNode}});Object.defineProperty(G,"isWrappingType",{enumerable:!0,get:function(){return V.isWrappingType}});Object.defineProperty(G,"lexicographicSortSchema",{enumerable:!0,get:function(){return BD.lexicographicSortSchema}});Object.defineProperty(G,"locatedError",{enumerable:!0,get:function(){return b6.locatedError}});Object.defineProperty(G,"parse",{enumerable:!0,get:function(){return PD.parse}});Object.defineProperty(G,"parseConstValue",{enumerable:!0,get:function(){return PD.parseConstValue}});Object.defineProperty(G,"parseType",{enumerable:!0,get:function(){return PD.parseType}});Object.defineProperty(G,"parseValue",{enumerable:!0,get:function(){return PD.parseValue}});Object.defineProperty(G,"print",{enumerable:!0,get:function(){return PD.print}});Object.defineProperty(G,"printError",{enumerable:!0,get:function(){return b6.printError}});Object.defineProperty(G,"printIntrospectionSchema",{enumerable:!0,get:function(){return BD.printIntrospectionSchema}});Object.defineProperty(G,"printLocation",{enumerable:!0,get:function(){return PD.printLocation}});Object.defineProperty(G,"printSchema",{enumerable:!0,get:function(){return BD.printSchema}});Object.defineProperty(G,"printSourceLocation",{enumerable:!0,get:function(){return PD.printSourceLocation}});Object.defineProperty(G,"printType",{enumerable:!0,get:function(){return BD.printType}});Object.defineProperty(G,"recommendedRules",{enumerable:!0,get:function(){return d.recommendedRules}});Object.defineProperty(G,"resolveObjMapThunk",{enumerable:!0,get:function(){return V.resolveObjMapThunk}});Object.defineProperty(G,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return V.resolveReadonlyArrayThunk}});Object.defineProperty(G,"responsePathAsArray",{enumerable:!0,get:function(){return u2.responsePathAsArray}});Object.defineProperty(G,"separateOperations",{enumerable:!0,get:function(){return BD.separateOperations}});Object.defineProperty(G,"specifiedDirectives",{enumerable:!0,get:function(){return V.specifiedDirectives}});Object.defineProperty(G,"specifiedRules",{enumerable:!0,get:function(){return d.specifiedRules}});Object.defineProperty(G,"specifiedScalarTypes",{enumerable:!0,get:function(){return V.specifiedScalarTypes}});Object.defineProperty(G,"stripIgnoredCharacters",{enumerable:!0,get:function(){return BD.stripIgnoredCharacters}});Object.defineProperty(G,"subscribe",{enumerable:!0,get:function(){return u2.subscribe}});Object.defineProperty(G,"syntaxError",{enumerable:!0,get:function(){return b6.syntaxError}});Object.defineProperty(G,"typeFromAST",{enumerable:!0,get:function(){return BD.typeFromAST}});Object.defineProperty(G,"validate",{enumerable:!0,get:function(){return d.validate}});Object.defineProperty(G,"validateSchema",{enumerable:!0,get:function(){return V.validateSchema}});Object.defineProperty(G,"valueFromAST",{enumerable:!0,get:function(){return BD.valueFromAST}});Object.defineProperty(G,"valueFromASTUntyped",{enumerable:!0,get:function(){return BD.valueFromASTUntyped}});Object.defineProperty(G,"version",{enumerable:!0,get:function(){return SH.version}});Object.defineProperty(G,"versionInfo",{enumerable:!0,get:function(){return SH.versionInfo}});Object.defineProperty(G,"visit",{enumerable:!0,get:function(){return PD.visit}});Object.defineProperty(G,"visitInParallel",{enumerable:!0,get:function(){return PD.visitInParallel}});Object.defineProperty(G,"visitWithTypeInfo",{enumerable:!0,get:function(){return BD.visitWithTypeInfo}});var SH=mP(),TH=tJ(),V=FY(),PD=BY(),u2=QY(),d=EY(),b6=KY(),BD=bH()});var w3=Q((tl,PU)=>{var FS=vD("node:tty"),PS=FS?.WriteStream?.prototype?.hasColors?.()??!1,p=(D,F)=>{if(!PS)return(Z)=>Z;let P=`\x1B[${D}m`,B=`\x1B[${F}m`;return(Z)=>{let X=Z+"",q=X.indexOf(B);if(q===-1)return P+X+B;let J=P,Y=0;while(q!==-1)J+=X.slice(Y,q)+P,Y=q+B.length,q=X.indexOf(B,Y);return J+=X.slice(Y)+B,J}},c={};c.reset=p(0,0);c.bold=p(1,22);c.dim=p(2,22);c.italic=p(3,23);c.underline=p(4,24);c.overline=p(53,55);c.inverse=p(7,27);c.hidden=p(8,28);c.strikethrough=p(9,29);c.black=p(30,39);c.red=p(31,39);c.green=p(32,39);c.yellow=p(33,39);c.blue=p(34,39);c.magenta=p(35,39);c.cyan=p(36,39);c.white=p(37,39);c.gray=p(90,39);c.bgBlack=p(40,49);c.bgRed=p(41,49);c.bgGreen=p(42,49);c.bgYellow=p(43,49);c.bgBlue=p(44,49);c.bgMagenta=p(45,49);c.bgCyan=p(46,49);c.bgWhite=p(47,49);c.bgGray=p(100,49);c.redBright=p(91,39);c.greenBright=p(92,39);c.yellowBright=p(93,39);c.blueBright=p(94,39);c.magentaBright=p(95,39);c.cyanBright=p(96,39);c.whiteBright=p(97,39);c.bgRedBright=p(101,49);c.bgGreenBright=p(102,49);c.bgYellowBright=p(103,49);c.bgBlueBright=p(104,49);c.bgMagentaBright=p(105,49);c.bgCyanBright=p(106,49);c.bgWhiteBright=p(107,49);PU.exports=c});var UU=Q((Mc,HU)=>{HU.exports=US;function HS(D){let F={defaultWidth:0,output:process.stdout,tty:vD("tty")};if(!D)return F;return Object.keys(F).forEach(function(P){if(!D[P])D[P]=F[P]}),D}function US(D){let F=HS(D);if(F.output.getWindowSize)return F.output.getWindowSize()[0]||F.defaultWidth;if(F.tty.getWindowSize)return F.tty.getWindowSize()[1]||F.defaultWidth;if(F.output.columns)return F.output.columns;if(process.env.CLI_WIDTH){let P=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(P)&&P!==0)return P}return F.defaultWidth}});var OU=Q((Ec,WU)=>{WU.exports=({onlyFirst:D=!1}={})=>{let F=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(F,D?void 0:"g")}});var j3=Q((Kc,zU)=>{var WS=OU();zU.exports=(D)=>typeof D==="string"?D.replace(WS(),""):D});var GU=Q((Ac,S7)=>{var QU=(D)=>{if(Number.isNaN(D))return!1;if(D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141))return!0;return!1};S7.exports=QU;S7.exports.default=QU});var IU=Q((Cc,RU)=>{RU.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var MU=Q((Lc,T7)=>{var OS=j3(),zS=GU(),QS=IU(),$U=(D)=>{if(typeof D!=="string"||D.length===0)return 0;if(D=OS(D),D.length===0)return 0;D=D.replace(QS()," ");let F=0;for(let P=0;P<D.length;P++){let B=D.codePointAt(P);if(B<=31||B>=127&&B<=159)continue;if(B>=768&&B<=879)continue;if(B>65535)P++;F+=zS(B)?2:1}return F};T7.exports=$U;T7.exports.default=$U});var KU=Q((Vc,EU)=>{EU.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var u7=Q((wc,CU)=>{var h6=KU(),AU={};for(let D of Object.keys(h6))AU[h6[D]]=D;var x={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};CU.exports=x;for(let D of Object.keys(x)){if(!("channels"in x[D]))throw new Error("missing channels property: "+D);if(!("labels"in x[D]))throw new Error("missing channel labels property: "+D);if(x[D].labels.length!==x[D].channels)throw new Error("channel and label counts mismatch: "+D);let{channels:F,labels:P}=x[D];delete x[D].channels,delete x[D].labels,Object.defineProperty(x[D],"channels",{value:F}),Object.defineProperty(x[D],"labels",{value:P})}x.rgb.hsl=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255,Z=Math.min(F,P,B),X=Math.max(F,P,B),q=X-Z,J,Y;if(X===Z)J=0;else if(F===X)J=(P-B)/q;else if(P===X)J=2+(B-F)/q;else if(B===X)J=4+(F-P)/q;if(J=Math.min(J*60,360),J<0)J+=360;let H=(Z+X)/2;if(X===Z)Y=0;else if(H<=0.5)Y=q/(X+Z);else Y=q/(2-X-Z);return[J,Y*100,H*100]};x.rgb.hsv=function(D){let F,P,B,Z,X,q=D[0]/255,J=D[1]/255,Y=D[2]/255,H=Math.max(q,J,Y),U=H-Math.min(q,J,Y),W=function(O){return(H-O)/6/U+0.5};if(U===0)Z=0,X=0;else{if(X=U/H,F=W(q),P=W(J),B=W(Y),q===H)Z=B-P;else if(J===H)Z=0.3333333333333333+F-B;else if(Y===H)Z=0.6666666666666666+P-F;if(Z<0)Z+=1;else if(Z>1)Z-=1}return[Z*360,X*100,H*100]};x.rgb.hwb=function(D){let F=D[0],P=D[1],B=D[2],Z=x.rgb.hsl(D)[0],X=0.00392156862745098*Math.min(F,Math.min(P,B));return B=1-0.00392156862745098*Math.max(F,Math.max(P,B)),[Z,X*100,B*100]};x.rgb.cmyk=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255,Z=Math.min(1-F,1-P,1-B),X=(1-F-Z)/(1-Z)||0,q=(1-P-Z)/(1-Z)||0,J=(1-B-Z)/(1-Z)||0;return[X*100,q*100,J*100,Z*100]};function GS(D,F){return(D[0]-F[0])**2+(D[1]-F[1])**2+(D[2]-F[2])**2}x.rgb.keyword=function(D){let F=AU[D];if(F)return F;let P=1/0,B;for(let Z of Object.keys(h6)){let X=h6[Z],q=GS(D,X);if(q<P)P=q,B=Z}return B};x.keyword.rgb=function(D){return h6[D]};x.rgb.xyz=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255;F=F>0.04045?((F+0.055)/1.055)**2.4:F/12.92,P=P>0.04045?((P+0.055)/1.055)**2.4:P/12.92,B=B>0.04045?((B+0.055)/1.055)**2.4:B/12.92;let Z=F*0.4124+P*0.3576+B*0.1805,X=F*0.2126+P*0.7152+B*0.0722,q=F*0.0193+P*0.1192+B*0.9505;return[Z*100,X*100,q*100]};x.rgb.lab=function(D){let F=x.rgb.xyz(D),P=F[0],B=F[1],Z=F[2];P/=95.047,B/=100,Z/=108.883,P=P>0.008856?P**0.3333333333333333:7.787*P+0.13793103448275862,B=B>0.008856?B**0.3333333333333333:7.787*B+0.13793103448275862,Z=Z>0.008856?Z**0.3333333333333333:7.787*Z+0.13793103448275862;let X=116*B-16,q=500*(P-B),J=200*(B-Z);return[X,q,J]};x.hsl.rgb=function(D){let F=D[0]/360,P=D[1]/100,B=D[2]/100,Z,X,q;if(P===0)return q=B*255,[q,q,q];if(B<0.5)Z=B*(1+P);else Z=B+P-B*P;let J=2*B-Z,Y=[0,0,0];for(let H=0;H<3;H++){if(X=F+0.3333333333333333*-(H-1),X<0)X++;if(X>1)X--;if(6*X<1)q=J+(Z-J)*6*X;else if(2*X<1)q=Z;else if(3*X<2)q=J+(Z-J)*(0.6666666666666666-X)*6;else q=J;Y[H]=q*255}return Y};x.hsl.hsv=function(D){let F=D[0],P=D[1]/100,B=D[2]/100,Z=P,X=Math.max(B,0.01);B*=2,P*=B<=1?B:2-B,Z*=X<=1?X:2-X;let q=(B+P)/2,J=B===0?2*Z/(X+Z):2*P/(B+P);return[F,J*100,q*100]};x.hsv.rgb=function(D){let F=D[0]/60,P=D[1]/100,B=D[2]/100,Z=Math.floor(F)%6,X=F-Math.floor(F),q=255*B*(1-P),J=255*B*(1-P*X),Y=255*B*(1-P*(1-X));switch(B*=255,Z){case 0:return[B,Y,q];case 1:return[J,B,q];case 2:return[q,B,Y];case 3:return[q,J,B];case 4:return[Y,q,B];case 5:return[B,q,J]}};x.hsv.hsl=function(D){let F=D[0],P=D[1]/100,B=D[2]/100,Z=Math.max(B,0.01),X,q;q=(2-P)*B;let J=(2-P)*Z;return X=P*Z,X/=J<=1?J:2-J,X=X||0,q/=2,[F,X*100,q*100]};x.hwb.rgb=function(D){let F=D[0]/360,P=D[1]/100,B=D[2]/100,Z=P+B,X;if(Z>1)P/=Z,B/=Z;let q=Math.floor(6*F),J=1-B;if(X=6*F-q,(q&1)!==0)X=1-X;let Y=P+X*(J-P),H,U,W;switch(q){default:case 6:case 0:H=J,U=Y,W=P;break;case 1:H=Y,U=J,W=P;break;case 2:H=P,U=J,W=Y;break;case 3:H=P,U=Y,W=J;break;case 4:H=Y,U=P,W=J;break;case 5:H=J,U=P,W=Y;break}return[H*255,U*255,W*255]};x.cmyk.rgb=function(D){let F=D[0]/100,P=D[1]/100,B=D[2]/100,Z=D[3]/100,X=1-Math.min(1,F*(1-Z)+Z),q=1-Math.min(1,P*(1-Z)+Z),J=1-Math.min(1,B*(1-Z)+Z);return[X*255,q*255,J*255]};x.xyz.rgb=function(D){let F=D[0]/100,P=D[1]/100,B=D[2]/100,Z,X,q;return Z=F*3.2406+P*-1.5372+B*-0.4986,X=F*-0.9689+P*1.8758+B*0.0415,q=F*0.0557+P*-0.204+B*1.057,Z=Z>0.0031308?1.055*Z**0.4166666666666667-0.055:Z*12.92,X=X>0.0031308?1.055*X**0.4166666666666667-0.055:X*12.92,q=q>0.0031308?1.055*q**0.4166666666666667-0.055:q*12.92,Z=Math.min(Math.max(0,Z),1),X=Math.min(Math.max(0,X),1),q=Math.min(Math.max(0,q),1),[Z*255,X*255,q*255]};x.xyz.lab=function(D){let F=D[0],P=D[1],B=D[2];F/=95.047,P/=100,B/=108.883,F=F>0.008856?F**0.3333333333333333:7.787*F+0.13793103448275862,P=P>0.008856?P**0.3333333333333333:7.787*P+0.13793103448275862,B=B>0.008856?B**0.3333333333333333:7.787*B+0.13793103448275862;let Z=116*P-16,X=500*(F-P),q=200*(P-B);return[Z,X,q]};x.lab.xyz=function(D){let F=D[0],P=D[1],B=D[2],Z,X,q;X=(F+16)/116,Z=P/500+X,q=X-B/200;let J=X**3,Y=Z**3,H=q**3;return X=J>0.008856?J:(X-0.13793103448275862)/7.787,Z=Y>0.008856?Y:(Z-0.13793103448275862)/7.787,q=H>0.008856?H:(q-0.13793103448275862)/7.787,Z*=95.047,X*=100,q*=108.883,[Z,X,q]};x.lab.lch=function(D){let F=D[0],P=D[1],B=D[2],Z;if(Z=Math.atan2(B,P)*360/2/Math.PI,Z<0)Z+=360;let q=Math.sqrt(P*P+B*B);return[F,q,Z]};x.lch.lab=function(D){let F=D[0],P=D[1],Z=D[2]/360*2*Math.PI,X=P*Math.cos(Z),q=P*Math.sin(Z);return[F,X,q]};x.rgb.ansi16=function(D,F=null){let[P,B,Z]=D,X=F===null?x.rgb.hsv(D)[2]:F;if(X=Math.round(X/50),X===0)return 30;let q=30+(Math.round(Z/255)<<2|Math.round(B/255)<<1|Math.round(P/255));if(X===2)q+=60;return q};x.hsv.ansi16=function(D){return x.rgb.ansi16(x.hsv.rgb(D),D[2])};x.rgb.ansi256=function(D){let F=D[0],P=D[1],B=D[2];if(F===P&&P===B){if(F<8)return 16;if(F>248)return 231;return Math.round((F-8)/247*24)+232}return 16+36*Math.round(F/255*5)+6*Math.round(P/255*5)+Math.round(B/255*5)};x.ansi16.rgb=function(D){let F=D%10;if(F===0||F===7){if(D>50)F+=3.5;return F=F/10.5*255,[F,F,F]}let P=(~~(D>50)+1)*0.5,B=(F&1)*P*255,Z=(F>>1&1)*P*255,X=(F>>2&1)*P*255;return[B,Z,X]};x.ansi256.rgb=function(D){if(D>=232){let X=(D-232)*10+8;return[X,X,X]}D-=16;let F,P=Math.floor(D/36)/5*255,B=Math.floor((F=D%36)/6)/5*255,Z=F%6/5*255;return[P,B,Z]};x.rgb.hex=function(D){let P=(((Math.round(D[0])&255)<<16)+((Math.round(D[1])&255)<<8)+(Math.round(D[2])&255)).toString(16).toUpperCase();return"000000".substring(P.length)+P};x.hex.rgb=function(D){let F=D.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!F)return[0,0,0];let P=F[0];if(F[0].length===3)P=P.split("").map((J)=>{return J+J}).join("");let B=parseInt(P,16),Z=B>>16&255,X=B>>8&255,q=B&255;return[Z,X,q]};x.rgb.hcg=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255,Z=Math.max(Math.max(F,P),B),X=Math.min(Math.min(F,P),B),q=Z-X,J,Y;if(q<1)J=X/(1-q);else J=0;if(q<=0)Y=0;else if(Z===F)Y=(P-B)/q%6;else if(Z===P)Y=2+(B-F)/q;else Y=4+(F-P)/q;return Y/=6,Y%=1,[Y*360,q*100,J*100]};x.hsl.hcg=function(D){let F=D[1]/100,P=D[2]/100,B=P<0.5?2*F*P:2*F*(1-P),Z=0;if(B<1)Z=(P-0.5*B)/(1-B);return[D[0],B*100,Z*100]};x.hsv.hcg=function(D){let F=D[1]/100,P=D[2]/100,B=F*P,Z=0;if(B<1)Z=(P-B)/(1-B);return[D[0],B*100,Z*100]};x.hcg.rgb=function(D){let F=D[0]/360,P=D[1]/100,B=D[2]/100;if(P===0)return[B*255,B*255,B*255];let Z=[0,0,0],X=F%1*6,q=X%1,J=1-q,Y=0;switch(Math.floor(X)){case 0:Z[0]=1,Z[1]=q,Z[2]=0;break;case 1:Z[0]=J,Z[1]=1,Z[2]=0;break;case 2:Z[0]=0,Z[1]=1,Z[2]=q;break;case 3:Z[0]=0,Z[1]=J,Z[2]=1;break;case 4:Z[0]=q,Z[1]=0,Z[2]=1;break;default:Z[0]=1,Z[1]=0,Z[2]=J}return Y=(1-P)*B,[(P*Z[0]+Y)*255,(P*Z[1]+Y)*255,(P*Z[2]+Y)*255]};x.hcg.hsv=function(D){let F=D[1]/100,P=D[2]/100,B=F+P*(1-F),Z=0;if(B>0)Z=F/B;return[D[0],Z*100,B*100]};x.hcg.hsl=function(D){let F=D[1]/100,B=D[2]/100*(1-F)+0.5*F,Z=0;if(B>0&&B<0.5)Z=F/(2*B);else if(B>=0.5&&B<1)Z=F/(2*(1-B));return[D[0],Z*100,B*100]};x.hcg.hwb=function(D){let F=D[1]/100,P=D[2]/100,B=F+P*(1-F);return[D[0],(B-F)*100,(1-B)*100]};x.hwb.hcg=function(D){let F=D[1]/100,B=1-D[2]/100,Z=B-F,X=0;if(Z<1)X=(B-Z)/(1-Z);return[D[0],Z*100,X*100]};x.apple.rgb=function(D){return[D[0]/65535*255,D[1]/65535*255,D[2]/65535*255]};x.rgb.apple=function(D){return[D[0]/255*65535,D[1]/255*65535,D[2]/255*65535]};x.gray.rgb=function(D){return[D[0]/100*255,D[0]/100*255,D[0]/100*255]};x.gray.hsl=function(D){return[0,0,D[0]]};x.gray.hsv=x.gray.hsl;x.gray.hwb=function(D){return[0,100,D[0]]};x.gray.cmyk=function(D){return[0,0,0,D[0]]};x.gray.lab=function(D){return[D[0],0,0]};x.gray.hex=function(D){let F=Math.round(D[0]/100*255)&255,B=((F<<16)+(F<<8)+F).toString(16).toUpperCase();return"000000".substring(B.length)+B};x.rgb.gray=function(D){return[(D[0]+D[1]+D[2])/3/255*100]}});var VU=Q((jc,LU)=>{var b3=u7();function RS(){let D={},F=Object.keys(b3);for(let P=F.length,B=0;B<P;B++)D[F[B]]={distance:-1,parent:null};return D}function IS(D){let F=RS(),P=[D];F[D].distance=0;while(P.length){let B=P.pop(),Z=Object.keys(b3[B]);for(let X=Z.length,q=0;q<X;q++){let J=Z[q],Y=F[J];if(Y.distance===-1)Y.distance=F[B].distance+1,Y.parent=B,P.unshift(J)}}return F}function $S(D,F){return function(P){return F(D(P))}}function MS(D,F){let P=[F[D].parent,D],B=b3[F[D].parent][D],Z=F[D].parent;while(F[Z].parent)P.unshift(F[Z].parent),B=$S(b3[F[Z].parent][Z],B),Z=F[Z].parent;return B.conversion=P,B}LU.exports=function(D){let F=IS(D),P={},B=Object.keys(F);for(let Z=B.length,X=0;X<Z;X++){let q=B[X];if(F[q].parent===null)continue;P[q]=MS(q,F)}return P}});var jU=Q((bc,wU)=>{var N7=u7(),ES=VU(),L8={},KS=Object.keys(N7);function AS(D){let F=function(...P){let B=P[0];if(B===void 0||B===null)return B;if(B.length>1)P=B;return D(P)};if("conversion"in D)F.conversion=D.conversion;return F}function CS(D){let F=function(...P){let B=P[0];if(B===void 0||B===null)return B;if(B.length>1)P=B;let Z=D(P);if(typeof Z==="object")for(let X=Z.length,q=0;q<X;q++)Z[q]=Math.round(Z[q]);return Z};if("conversion"in D)F.conversion=D.conversion;return F}KS.forEach((D)=>{L8[D]={},Object.defineProperty(L8[D],"channels",{value:N7[D].channels}),Object.defineProperty(L8[D],"labels",{value:N7[D].labels});let F=ES(D);Object.keys(F).forEach((B)=>{let Z=F[B];L8[D][B]=CS(Z),L8[D][B].raw=AS(Z)})});wU.exports=L8});var k7=Q((Sc,NU)=>{var bU=(D,F)=>(...P)=>{return`\x1B[${D(...P)+F}m`},SU=(D,F)=>(...P)=>{let B=D(...P);return`\x1B[${38+F};5;${B}m`},TU=(D,F)=>(...P)=>{let B=D(...P);return`\x1B[${38+F};2;${B[0]};${B[1]};${B[2]}m`},S3=(D)=>D,uU=(D,F,P)=>[D,F,P],V8=(D,F,P)=>{Object.defineProperty(D,F,{get:()=>{let B=P();return Object.defineProperty(D,F,{value:B,enumerable:!0,configurable:!0}),B},enumerable:!0,configurable:!0})},_7,w8=(D,F,P,B)=>{if(_7===void 0)_7=jU();let Z=B?10:0,X={};for(let[q,J]of Object.entries(_7)){let Y=q==="ansi16"?"ansi":q;if(q===F)X[Y]=D(P,Z);else if(typeof J==="object")X[Y]=D(J[F],Z)}return X};function LS(){let D=new Map,F={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};F.color.gray=F.color.blackBright,F.bgColor.bgGray=F.bgColor.bgBlackBright,F.color.grey=F.color.blackBright,F.bgColor.bgGrey=F.bgColor.bgBlackBright;for(let[P,B]of Object.entries(F)){for(let[Z,X]of Object.entries(B))F[Z]={open:`\x1B[${X[0]}m`,close:`\x1B[${X[1]}m`},B[Z]=F[Z],D.set(X[0],X[1]);Object.defineProperty(F,P,{value:B,enumerable:!1})}return Object.defineProperty(F,"codes",{value:D,enumerable:!1}),F.color.close="\x1B[39m",F.bgColor.close="\x1B[49m",V8(F.color,"ansi",()=>w8(bU,"ansi16",S3,!1)),V8(F.color,"ansi256",()=>w8(SU,"ansi256",S3,!1)),V8(F.color,"ansi16m",()=>w8(TU,"rgb",uU,!1)),V8(F.bgColor,"ansi",()=>w8(bU,"ansi16",S3,!0)),V8(F.bgColor,"ansi256",()=>w8(SU,"ansi256",S3,!0)),V8(F.bgColor,"ansi16m",()=>w8(TU,"rgb",uU,!0)),F}Object.defineProperty(NU,"exports",{enumerable:!0,get:LS})});var xU=Q((Tc,kU)=>{var g6=MU(),VS=j3(),wS=k7(),f7=new Set(["\x1B","›"]),_U=(D)=>`${f7.values().next().value}[${D}m`,jS=(D)=>D.split(" ").map((F)=>g6(F)),x7=(D,F,P)=>{let B=[...F],Z=!1,X=g6(VS(D[D.length-1]));for(let[q,J]of B.entries()){let Y=g6(J);if(X+Y<=P)D[D.length-1]+=J;else D.push(J),X=0;if(f7.has(J))Z=!0;else if(Z&&J==="m"){Z=!1;continue}if(Z)continue;if(X+=Y,X===P&&q<B.length-1)D.push(""),X=0}if(!X&&D[D.length-1].length>0&&D.length>1)D[D.length-2]+=D.pop()},bS=(D)=>{let F=D.split(" "),P=F.length;while(P>0){if(g6(F[P-1])>0)break;P--}if(P===F.length)return D;return F.slice(0,P).join(" ")+F.slice(P).join("")},SS=(D,F,P={})=>{if(P.trim!==!1&&D.trim()==="")return"";let B="",Z="",X,q=jS(D),J=[""];for(let[Y,H]of D.split(" ").entries()){if(P.trim!==!1)J[J.length-1]=J[J.length-1].trimLeft();let U=g6(J[J.length-1]);if(Y!==0){if(U>=F&&(P.wordWrap===!1||P.trim===!1))J.push(""),U=0;if(U>0||P.trim===!1)J[J.length-1]+=" ",U++}if(P.hard&&q[Y]>F){let W=F-U,O=1+Math.floor((q[Y]-W-1)/F);if(Math.floor((q[Y]-1)/F)<O)J.push("");x7(J,H,F);continue}if(U+q[Y]>F&&U>0&&q[Y]>0){if(P.wordWrap===!1&&U<F){x7(J,H,F);continue}J.push("")}if(U+q[Y]>F&&P.wordWrap===!1){x7(J,H,F);continue}J[J.length-1]+=H}if(P.trim!==!1)J=J.map(bS);B=J.join(`
198
+ `}});var BH=Q((PH)=>{Object.defineProperty(PH,"__esModule",{value:!0});PH.concatAST=cj;var lj=s();function cj(D){let F=[];for(let P of D)F.push(...P.definitions);return{kind:lj.Kind.DOCUMENT,definitions:F}}});var JH=Q((qH)=>{Object.defineProperty(qH,"__esModule",{value:!0});qH.separateOperations=rj;var O3=s(),pj=K0();function rj(D){let F=[],P=Object.create(null);for(let Z of D.definitions)switch(Z.kind){case O3.Kind.OPERATION_DEFINITION:F.push(Z);break;case O3.Kind.FRAGMENT_DEFINITION:P[Z.name.value]=ZH(Z.selectionSet);break;default:}let B=Object.create(null);for(let Z of F){let X=new Set;for(let J of ZH(Z.selectionSet))XH(X,P,J);let q=Z.name?Z.name.value:"";B[q]={kind:O3.Kind.DOCUMENT,definitions:D.definitions.filter((J)=>J===Z||J.kind===O3.Kind.FRAGMENT_DEFINITION&&X.has(J.name.value))}}return B}function XH(D,F,P){if(!D.has(P)){D.add(P);let B=F[P];if(B!==void 0)for(let Z of B)XH(D,F,Z)}}function ZH(D){let F=[];return(0,pj.visit)(D,{FragmentSpread(P){F.push(P.name.value)}}),F}});var WH=Q((UH)=>{Object.defineProperty(UH,"__esModule",{value:!0});UH.stripIgnoredCharacters=nj;var sj=c8(),YH=A1(),HH=L1(),J7=d8();function nj(D){let F=(0,HH.isSource)(D)?D:new HH.Source(D),P=F.body,B=new YH.Lexer(F),Z="",X=!1;while(B.advance().kind!==J7.TokenKind.EOF){let q=B.token,J=q.kind,Y=!(0,YH.isPunctuatorTokenKind)(q.kind);if(X){if(Y||q.kind===J7.TokenKind.SPREAD)Z+=" "}let H=P.slice(q.start,q.end);if(J===J7.TokenKind.BLOCK_STRING)Z+=(0,sj.printBlockString)(q.value,{minimize:!0});else Z+=H;X=Y}return Z}});var QH=Q((zH)=>{Object.defineProperty(zH,"__esModule",{value:!0});zH.assertValidName=Db;zH.isValidNameError=OH;var oj=hD(),tj=g(),ej=i8();function Db(D){let F=OH(D);if(F)throw F;return D}function OH(D){if(typeof D==="string"||(0,oj.devAssert)(!1,"Expected name to be a string."),D.startsWith("__"))return new tj.GraphQLError(`Name "${D}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,ej.assertName)(D)}catch(F){return F}}});var LH=Q((AH)=>{Object.defineProperty(AH,"__esModule",{value:!0});AH.DangerousChangeType=AH.BreakingChangeType=void 0;AH.findBreakingChanges=Yb;AH.findDangerousChanges=Hb;var Bb=ZD(),EH=kD(),GH=i2(),Zb=rD(),FD=n(),Xb=V2(),qb=J6(),Jb=e4(),ED;AH.BreakingChangeType=ED;(function(D){D.TYPE_REMOVED="TYPE_REMOVED",D.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",D.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",D.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",D.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",D.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",D.FIELD_REMOVED="FIELD_REMOVED",D.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",D.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",D.ARG_REMOVED="ARG_REMOVED",D.ARG_CHANGED_KIND="ARG_CHANGED_KIND",D.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",D.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",D.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",D.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",D.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(ED||(AH.BreakingChangeType=ED={}));var $2;AH.DangerousChangeType=$2;(function(D){D.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",D.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",D.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",D.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",D.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",D.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})($2||(AH.DangerousChangeType=$2={}));function Yb(D,F){return KH(D,F).filter((P)=>(P.type in ED))}function Hb(D,F){return KH(D,F).filter((P)=>(P.type in $2))}function KH(D,F){return[...Wb(D,F),...Ub(D,F)]}function Ub(D,F){let P=[],B=m2(D.getDirectives(),F.getDirectives());for(let Z of B.removed)P.push({type:ED.DIRECTIVE_REMOVED,description:`${Z.name} was removed.`});for(let[Z,X]of B.persisted){let q=m2(Z.args,X.args);for(let J of q.added)if((0,FD.isRequiredArgument)(J))P.push({type:ED.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${J.name} on directive ${Z.name} was added.`});for(let J of q.removed)P.push({type:ED.DIRECTIVE_ARG_REMOVED,description:`${J.name} was removed from ${Z.name}.`});if(Z.isRepeatable&&!X.isRepeatable)P.push({type:ED.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${Z.name}.`});for(let J of Z.locations)if(!X.locations.includes(J))P.push({type:ED.DIRECTIVE_LOCATION_REMOVED,description:`${J} was removed from ${Z.name}.`})}return P}function Wb(D,F){let P=[],B=m2(Object.values(D.getTypeMap()),Object.values(F.getTypeMap()));for(let Z of B.removed)P.push({type:ED.TYPE_REMOVED,description:(0,Xb.isSpecifiedScalarType)(Z)?`Standard scalar ${Z.name} was removed because it is not referenced anymore.`:`${Z.name} was removed.`});for(let[Z,X]of B.persisted)if((0,FD.isEnumType)(Z)&&(0,FD.isEnumType)(X))P.push(...Qb(Z,X));else if((0,FD.isUnionType)(Z)&&(0,FD.isUnionType)(X))P.push(...zb(Z,X));else if((0,FD.isInputObjectType)(Z)&&(0,FD.isInputObjectType)(X))P.push(...Ob(Z,X));else if((0,FD.isObjectType)(Z)&&(0,FD.isObjectType)(X))P.push(...IH(Z,X),...RH(Z,X));else if((0,FD.isInterfaceType)(Z)&&(0,FD.isInterfaceType)(X))P.push(...IH(Z,X),...RH(Z,X));else if(Z.constructor!==X.constructor)P.push({type:ED.TYPE_CHANGED_KIND,description:`${Z.name} changed from ${$H(Z)} to ${$H(X)}.`});return P}function Ob(D,F){let P=[],B=m2(Object.values(D.getFields()),Object.values(F.getFields()));for(let Z of B.added)if((0,FD.isRequiredInputField)(Z))P.push({type:ED.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${Z.name} on input type ${D.name} was added.`});else P.push({type:$2.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${Z.name} on input type ${D.name} was added.`});for(let Z of B.removed)P.push({type:ED.FIELD_REMOVED,description:`${D.name}.${Z.name} was removed.`});for(let[Z,X]of B.persisted)if(!j6(Z.type,X.type))P.push({type:ED.FIELD_CHANGED_KIND,description:`${D.name}.${Z.name} changed type from ${String(Z.type)} to ${String(X.type)}.`});return P}function zb(D,F){let P=[],B=m2(D.getTypes(),F.getTypes());for(let Z of B.added)P.push({type:$2.TYPE_ADDED_TO_UNION,description:`${Z.name} was added to union type ${D.name}.`});for(let Z of B.removed)P.push({type:ED.TYPE_REMOVED_FROM_UNION,description:`${Z.name} was removed from union type ${D.name}.`});return P}function Qb(D,F){let P=[],B=m2(D.getValues(),F.getValues());for(let Z of B.added)P.push({type:$2.VALUE_ADDED_TO_ENUM,description:`${Z.name} was added to enum type ${D.name}.`});for(let Z of B.removed)P.push({type:ED.VALUE_REMOVED_FROM_ENUM,description:`${Z.name} was removed from enum type ${D.name}.`});return P}function RH(D,F){let P=[],B=m2(D.getInterfaces(),F.getInterfaces());for(let Z of B.added)P.push({type:$2.IMPLEMENTED_INTERFACE_ADDED,description:`${Z.name} added to interfaces implemented by ${D.name}.`});for(let Z of B.removed)P.push({type:ED.IMPLEMENTED_INTERFACE_REMOVED,description:`${D.name} no longer implements interface ${Z.name}.`});return P}function IH(D,F){let P=[],B=m2(Object.values(D.getFields()),Object.values(F.getFields()));for(let Z of B.removed)P.push({type:ED.FIELD_REMOVED,description:`${D.name}.${Z.name} was removed.`});for(let[Z,X]of B.persisted)if(P.push(...Gb(D,Z,X)),!w6(Z.type,X.type))P.push({type:ED.FIELD_CHANGED_KIND,description:`${D.name}.${Z.name} changed type from ${String(Z.type)} to ${String(X.type)}.`});return P}function Gb(D,F,P){let B=[],Z=m2(F.args,P.args);for(let X of Z.removed)B.push({type:ED.ARG_REMOVED,description:`${D.name}.${F.name} arg ${X.name} was removed.`});for(let[X,q]of Z.persisted)if(!j6(X.type,q.type))B.push({type:ED.ARG_CHANGED_KIND,description:`${D.name}.${F.name} arg ${X.name} has changed type from ${String(X.type)} to ${String(q.type)}.`});else if(X.defaultValue!==void 0)if(q.defaultValue===void 0)B.push({type:$2.ARG_DEFAULT_VALUE_CHANGE,description:`${D.name}.${F.name} arg ${X.name} defaultValue was removed.`});else{let Y=MH(X.defaultValue,X.type),H=MH(q.defaultValue,q.type);if(Y!==H)B.push({type:$2.ARG_DEFAULT_VALUE_CHANGE,description:`${D.name}.${F.name} arg ${X.name} has changed defaultValue from ${Y} to ${H}.`})}for(let X of Z.added)if((0,FD.isRequiredArgument)(X))B.push({type:ED.REQUIRED_ARG_ADDED,description:`A required arg ${X.name} on ${D.name}.${F.name} was added.`});else B.push({type:$2.OPTIONAL_ARG_ADDED,description:`An optional arg ${X.name} on ${D.name}.${F.name} was added.`});return B}function w6(D,F){if((0,FD.isListType)(D))return(0,FD.isListType)(F)&&w6(D.ofType,F.ofType)||(0,FD.isNonNullType)(F)&&w6(D,F.ofType);if((0,FD.isNonNullType)(D))return(0,FD.isNonNullType)(F)&&w6(D.ofType,F.ofType);return(0,FD.isNamedType)(F)&&D.name===F.name||(0,FD.isNonNullType)(F)&&w6(D,F.ofType)}function j6(D,F){if((0,FD.isListType)(D))return(0,FD.isListType)(F)&&j6(D.ofType,F.ofType);if((0,FD.isNonNullType)(D))return(0,FD.isNonNullType)(F)&&j6(D.ofType,F.ofType)||!(0,FD.isNonNullType)(F)&&j6(D.ofType,F);return(0,FD.isNamedType)(F)&&D.name===F.name}function $H(D){if((0,FD.isScalarType)(D))return"a Scalar type";if((0,FD.isObjectType)(D))return"an Object type";if((0,FD.isInterfaceType)(D))return"an Interface type";if((0,FD.isUnionType)(D))return"a Union type";if((0,FD.isEnumType)(D))return"an Enum type";if((0,FD.isInputObjectType)(D))return"an Input type";(0,EH.invariant)(!1,"Unexpected type: "+(0,Bb.inspect)(D))}function MH(D,F){let P=(0,qb.astFromValue)(D,F);return P!=null||(0,EH.invariant)(!1),(0,Zb.print)((0,Jb.sortValueNode)(P))}function m2(D,F){let P=[],B=[],Z=[],X=(0,GH.keyMap)(D,({name:J})=>J),q=(0,GH.keyMap)(F,({name:J})=>J);for(let J of D){let Y=q[J.name];if(Y===void 0)B.push(J);else Z.push([J,Y])}for(let J of F)if(X[J.name]===void 0)P.push(J);return{added:P,persisted:Z,removed:B}}});var bH=Q((DD)=>{Object.defineProperty(DD,"__esModule",{value:!0});Object.defineProperty(DD,"BreakingChangeType",{enumerable:!0,get:function(){return z3.BreakingChangeType}});Object.defineProperty(DD,"DangerousChangeType",{enumerable:!0,get:function(){return z3.DangerousChangeType}});Object.defineProperty(DD,"TypeInfo",{enumerable:!0,get:function(){return wH.TypeInfo}});Object.defineProperty(DD,"assertValidName",{enumerable:!0,get:function(){return jH.assertValidName}});Object.defineProperty(DD,"astFromValue",{enumerable:!0,get:function(){return bb.astFromValue}});Object.defineProperty(DD,"buildASTSchema",{enumerable:!0,get:function(){return VH.buildASTSchema}});Object.defineProperty(DD,"buildClientSchema",{enumerable:!0,get:function(){return Ab.buildClientSchema}});Object.defineProperty(DD,"buildSchema",{enumerable:!0,get:function(){return VH.buildSchema}});Object.defineProperty(DD,"coerceInputValue",{enumerable:!0,get:function(){return Sb.coerceInputValue}});Object.defineProperty(DD,"concatAST",{enumerable:!0,get:function(){return Tb.concatAST}});Object.defineProperty(DD,"doTypesOverlap",{enumerable:!0,get:function(){return U7.doTypesOverlap}});Object.defineProperty(DD,"extendSchema",{enumerable:!0,get:function(){return Cb.extendSchema}});Object.defineProperty(DD,"findBreakingChanges",{enumerable:!0,get:function(){return z3.findBreakingChanges}});Object.defineProperty(DD,"findDangerousChanges",{enumerable:!0,get:function(){return z3.findDangerousChanges}});Object.defineProperty(DD,"getIntrospectionQuery",{enumerable:!0,get:function(){return $b.getIntrospectionQuery}});Object.defineProperty(DD,"getOperationAST",{enumerable:!0,get:function(){return Mb.getOperationAST}});Object.defineProperty(DD,"getOperationRootType",{enumerable:!0,get:function(){return Eb.getOperationRootType}});Object.defineProperty(DD,"introspectionFromSchema",{enumerable:!0,get:function(){return Kb.introspectionFromSchema}});Object.defineProperty(DD,"isEqualType",{enumerable:!0,get:function(){return U7.isEqualType}});Object.defineProperty(DD,"isTypeSubTypeOf",{enumerable:!0,get:function(){return U7.isTypeSubTypeOf}});Object.defineProperty(DD,"isValidNameError",{enumerable:!0,get:function(){return jH.isValidNameError}});Object.defineProperty(DD,"lexicographicSortSchema",{enumerable:!0,get:function(){return Lb.lexicographicSortSchema}});Object.defineProperty(DD,"printIntrospectionSchema",{enumerable:!0,get:function(){return H7.printIntrospectionSchema}});Object.defineProperty(DD,"printSchema",{enumerable:!0,get:function(){return H7.printSchema}});Object.defineProperty(DD,"printType",{enumerable:!0,get:function(){return H7.printType}});Object.defineProperty(DD,"separateOperations",{enumerable:!0,get:function(){return ub.separateOperations}});Object.defineProperty(DD,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Nb.stripIgnoredCharacters}});Object.defineProperty(DD,"typeFromAST",{enumerable:!0,get:function(){return Vb.typeFromAST}});Object.defineProperty(DD,"valueFromAST",{enumerable:!0,get:function(){return wb.valueFromAST}});Object.defineProperty(DD,"valueFromASTUntyped",{enumerable:!0,get:function(){return jb.valueFromASTUntyped}});Object.defineProperty(DD,"visitWithTypeInfo",{enumerable:!0,get:function(){return wH.visitWithTypeInfo}});var $b=t9(),Mb=LY(),Eb=wY(),Kb=bY(),Ab=uY(),VH=cY(),Cb=D7(),Lb=aY(),H7=FH(),Vb=w2(),wb=R6(),jb=X4(),bb=J6(),wH=m1(),Sb=G9(),Tb=BH(),ub=JH(),Nb=WH(),U7=D6(),jH=QH(),z3=LH()});var l2=Q((G)=>{Object.defineProperty(G,"__esModule",{value:!0});Object.defineProperty(G,"BREAK",{enumerable:!0,get:function(){return PD.BREAK}});Object.defineProperty(G,"BreakingChangeType",{enumerable:!0,get:function(){return BD.BreakingChangeType}});Object.defineProperty(G,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return V.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(G,"DangerousChangeType",{enumerable:!0,get:function(){return BD.DangerousChangeType}});Object.defineProperty(G,"DirectiveLocation",{enumerable:!0,get:function(){return PD.DirectiveLocation}});Object.defineProperty(G,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return d.ExecutableDefinitionsRule}});Object.defineProperty(G,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return d.FieldsOnCorrectTypeRule}});Object.defineProperty(G,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return d.FragmentsOnCompositeTypesRule}});Object.defineProperty(G,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return V.GRAPHQL_MAX_INT}});Object.defineProperty(G,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return V.GRAPHQL_MIN_INT}});Object.defineProperty(G,"GraphQLBoolean",{enumerable:!0,get:function(){return V.GraphQLBoolean}});Object.defineProperty(G,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return V.GraphQLDeprecatedDirective}});Object.defineProperty(G,"GraphQLDirective",{enumerable:!0,get:function(){return V.GraphQLDirective}});Object.defineProperty(G,"GraphQLEnumType",{enumerable:!0,get:function(){return V.GraphQLEnumType}});Object.defineProperty(G,"GraphQLError",{enumerable:!0,get:function(){return b6.GraphQLError}});Object.defineProperty(G,"GraphQLFloat",{enumerable:!0,get:function(){return V.GraphQLFloat}});Object.defineProperty(G,"GraphQLID",{enumerable:!0,get:function(){return V.GraphQLID}});Object.defineProperty(G,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return V.GraphQLIncludeDirective}});Object.defineProperty(G,"GraphQLInputObjectType",{enumerable:!0,get:function(){return V.GraphQLInputObjectType}});Object.defineProperty(G,"GraphQLInt",{enumerable:!0,get:function(){return V.GraphQLInt}});Object.defineProperty(G,"GraphQLInterfaceType",{enumerable:!0,get:function(){return V.GraphQLInterfaceType}});Object.defineProperty(G,"GraphQLList",{enumerable:!0,get:function(){return V.GraphQLList}});Object.defineProperty(G,"GraphQLNonNull",{enumerable:!0,get:function(){return V.GraphQLNonNull}});Object.defineProperty(G,"GraphQLObjectType",{enumerable:!0,get:function(){return V.GraphQLObjectType}});Object.defineProperty(G,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return V.GraphQLOneOfDirective}});Object.defineProperty(G,"GraphQLScalarType",{enumerable:!0,get:function(){return V.GraphQLScalarType}});Object.defineProperty(G,"GraphQLSchema",{enumerable:!0,get:function(){return V.GraphQLSchema}});Object.defineProperty(G,"GraphQLSkipDirective",{enumerable:!0,get:function(){return V.GraphQLSkipDirective}});Object.defineProperty(G,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return V.GraphQLSpecifiedByDirective}});Object.defineProperty(G,"GraphQLString",{enumerable:!0,get:function(){return V.GraphQLString}});Object.defineProperty(G,"GraphQLUnionType",{enumerable:!0,get:function(){return V.GraphQLUnionType}});Object.defineProperty(G,"Kind",{enumerable:!0,get:function(){return PD.Kind}});Object.defineProperty(G,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return d.KnownArgumentNamesRule}});Object.defineProperty(G,"KnownDirectivesRule",{enumerable:!0,get:function(){return d.KnownDirectivesRule}});Object.defineProperty(G,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return d.KnownFragmentNamesRule}});Object.defineProperty(G,"KnownTypeNamesRule",{enumerable:!0,get:function(){return d.KnownTypeNamesRule}});Object.defineProperty(G,"Lexer",{enumerable:!0,get:function(){return PD.Lexer}});Object.defineProperty(G,"Location",{enumerable:!0,get:function(){return PD.Location}});Object.defineProperty(G,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return d.LoneAnonymousOperationRule}});Object.defineProperty(G,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return d.LoneSchemaDefinitionRule}});Object.defineProperty(G,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return d.MaxIntrospectionDepthRule}});Object.defineProperty(G,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return d.NoDeprecatedCustomRule}});Object.defineProperty(G,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return d.NoFragmentCyclesRule}});Object.defineProperty(G,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return d.NoSchemaIntrospectionCustomRule}});Object.defineProperty(G,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return d.NoUndefinedVariablesRule}});Object.defineProperty(G,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return d.NoUnusedFragmentsRule}});Object.defineProperty(G,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return d.NoUnusedVariablesRule}});Object.defineProperty(G,"OperationTypeNode",{enumerable:!0,get:function(){return PD.OperationTypeNode}});Object.defineProperty(G,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return d.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(G,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return d.PossibleFragmentSpreadsRule}});Object.defineProperty(G,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return d.PossibleTypeExtensionsRule}});Object.defineProperty(G,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return d.ProvidedRequiredArgumentsRule}});Object.defineProperty(G,"ScalarLeafsRule",{enumerable:!0,get:function(){return d.ScalarLeafsRule}});Object.defineProperty(G,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return V.SchemaMetaFieldDef}});Object.defineProperty(G,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return d.SingleFieldSubscriptionsRule}});Object.defineProperty(G,"Source",{enumerable:!0,get:function(){return PD.Source}});Object.defineProperty(G,"Token",{enumerable:!0,get:function(){return PD.Token}});Object.defineProperty(G,"TokenKind",{enumerable:!0,get:function(){return PD.TokenKind}});Object.defineProperty(G,"TypeInfo",{enumerable:!0,get:function(){return BD.TypeInfo}});Object.defineProperty(G,"TypeKind",{enumerable:!0,get:function(){return V.TypeKind}});Object.defineProperty(G,"TypeMetaFieldDef",{enumerable:!0,get:function(){return V.TypeMetaFieldDef}});Object.defineProperty(G,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return V.TypeNameMetaFieldDef}});Object.defineProperty(G,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return d.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(G,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return d.UniqueArgumentNamesRule}});Object.defineProperty(G,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return d.UniqueDirectiveNamesRule}});Object.defineProperty(G,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return d.UniqueDirectivesPerLocationRule}});Object.defineProperty(G,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return d.UniqueEnumValueNamesRule}});Object.defineProperty(G,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return d.UniqueFieldDefinitionNamesRule}});Object.defineProperty(G,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return d.UniqueFragmentNamesRule}});Object.defineProperty(G,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return d.UniqueInputFieldNamesRule}});Object.defineProperty(G,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return d.UniqueOperationNamesRule}});Object.defineProperty(G,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return d.UniqueOperationTypesRule}});Object.defineProperty(G,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return d.UniqueTypeNamesRule}});Object.defineProperty(G,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return d.UniqueVariableNamesRule}});Object.defineProperty(G,"ValidationContext",{enumerable:!0,get:function(){return d.ValidationContext}});Object.defineProperty(G,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return d.ValuesOfCorrectTypeRule}});Object.defineProperty(G,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return d.VariablesAreInputTypesRule}});Object.defineProperty(G,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return d.VariablesInAllowedPositionRule}});Object.defineProperty(G,"__Directive",{enumerable:!0,get:function(){return V.__Directive}});Object.defineProperty(G,"__DirectiveLocation",{enumerable:!0,get:function(){return V.__DirectiveLocation}});Object.defineProperty(G,"__EnumValue",{enumerable:!0,get:function(){return V.__EnumValue}});Object.defineProperty(G,"__Field",{enumerable:!0,get:function(){return V.__Field}});Object.defineProperty(G,"__InputValue",{enumerable:!0,get:function(){return V.__InputValue}});Object.defineProperty(G,"__Schema",{enumerable:!0,get:function(){return V.__Schema}});Object.defineProperty(G,"__Type",{enumerable:!0,get:function(){return V.__Type}});Object.defineProperty(G,"__TypeKind",{enumerable:!0,get:function(){return V.__TypeKind}});Object.defineProperty(G,"assertAbstractType",{enumerable:!0,get:function(){return V.assertAbstractType}});Object.defineProperty(G,"assertCompositeType",{enumerable:!0,get:function(){return V.assertCompositeType}});Object.defineProperty(G,"assertDirective",{enumerable:!0,get:function(){return V.assertDirective}});Object.defineProperty(G,"assertEnumType",{enumerable:!0,get:function(){return V.assertEnumType}});Object.defineProperty(G,"assertEnumValueName",{enumerable:!0,get:function(){return V.assertEnumValueName}});Object.defineProperty(G,"assertInputObjectType",{enumerable:!0,get:function(){return V.assertInputObjectType}});Object.defineProperty(G,"assertInputType",{enumerable:!0,get:function(){return V.assertInputType}});Object.defineProperty(G,"assertInterfaceType",{enumerable:!0,get:function(){return V.assertInterfaceType}});Object.defineProperty(G,"assertLeafType",{enumerable:!0,get:function(){return V.assertLeafType}});Object.defineProperty(G,"assertListType",{enumerable:!0,get:function(){return V.assertListType}});Object.defineProperty(G,"assertName",{enumerable:!0,get:function(){return V.assertName}});Object.defineProperty(G,"assertNamedType",{enumerable:!0,get:function(){return V.assertNamedType}});Object.defineProperty(G,"assertNonNullType",{enumerable:!0,get:function(){return V.assertNonNullType}});Object.defineProperty(G,"assertNullableType",{enumerable:!0,get:function(){return V.assertNullableType}});Object.defineProperty(G,"assertObjectType",{enumerable:!0,get:function(){return V.assertObjectType}});Object.defineProperty(G,"assertOutputType",{enumerable:!0,get:function(){return V.assertOutputType}});Object.defineProperty(G,"assertScalarType",{enumerable:!0,get:function(){return V.assertScalarType}});Object.defineProperty(G,"assertSchema",{enumerable:!0,get:function(){return V.assertSchema}});Object.defineProperty(G,"assertType",{enumerable:!0,get:function(){return V.assertType}});Object.defineProperty(G,"assertUnionType",{enumerable:!0,get:function(){return V.assertUnionType}});Object.defineProperty(G,"assertValidName",{enumerable:!0,get:function(){return BD.assertValidName}});Object.defineProperty(G,"assertValidSchema",{enumerable:!0,get:function(){return V.assertValidSchema}});Object.defineProperty(G,"assertWrappingType",{enumerable:!0,get:function(){return V.assertWrappingType}});Object.defineProperty(G,"astFromValue",{enumerable:!0,get:function(){return BD.astFromValue}});Object.defineProperty(G,"buildASTSchema",{enumerable:!0,get:function(){return BD.buildASTSchema}});Object.defineProperty(G,"buildClientSchema",{enumerable:!0,get:function(){return BD.buildClientSchema}});Object.defineProperty(G,"buildSchema",{enumerable:!0,get:function(){return BD.buildSchema}});Object.defineProperty(G,"coerceInputValue",{enumerable:!0,get:function(){return BD.coerceInputValue}});Object.defineProperty(G,"concatAST",{enumerable:!0,get:function(){return BD.concatAST}});Object.defineProperty(G,"createSourceEventStream",{enumerable:!0,get:function(){return u2.createSourceEventStream}});Object.defineProperty(G,"defaultFieldResolver",{enumerable:!0,get:function(){return u2.defaultFieldResolver}});Object.defineProperty(G,"defaultTypeResolver",{enumerable:!0,get:function(){return u2.defaultTypeResolver}});Object.defineProperty(G,"doTypesOverlap",{enumerable:!0,get:function(){return BD.doTypesOverlap}});Object.defineProperty(G,"execute",{enumerable:!0,get:function(){return u2.execute}});Object.defineProperty(G,"executeSync",{enumerable:!0,get:function(){return u2.executeSync}});Object.defineProperty(G,"extendSchema",{enumerable:!0,get:function(){return BD.extendSchema}});Object.defineProperty(G,"findBreakingChanges",{enumerable:!0,get:function(){return BD.findBreakingChanges}});Object.defineProperty(G,"findDangerousChanges",{enumerable:!0,get:function(){return BD.findDangerousChanges}});Object.defineProperty(G,"formatError",{enumerable:!0,get:function(){return b6.formatError}});Object.defineProperty(G,"getArgumentValues",{enumerable:!0,get:function(){return u2.getArgumentValues}});Object.defineProperty(G,"getDirectiveValues",{enumerable:!0,get:function(){return u2.getDirectiveValues}});Object.defineProperty(G,"getEnterLeaveForKind",{enumerable:!0,get:function(){return PD.getEnterLeaveForKind}});Object.defineProperty(G,"getIntrospectionQuery",{enumerable:!0,get:function(){return BD.getIntrospectionQuery}});Object.defineProperty(G,"getLocation",{enumerable:!0,get:function(){return PD.getLocation}});Object.defineProperty(G,"getNamedType",{enumerable:!0,get:function(){return V.getNamedType}});Object.defineProperty(G,"getNullableType",{enumerable:!0,get:function(){return V.getNullableType}});Object.defineProperty(G,"getOperationAST",{enumerable:!0,get:function(){return BD.getOperationAST}});Object.defineProperty(G,"getOperationRootType",{enumerable:!0,get:function(){return BD.getOperationRootType}});Object.defineProperty(G,"getVariableValues",{enumerable:!0,get:function(){return u2.getVariableValues}});Object.defineProperty(G,"getVisitFn",{enumerable:!0,get:function(){return PD.getVisitFn}});Object.defineProperty(G,"graphql",{enumerable:!0,get:function(){return TH.graphql}});Object.defineProperty(G,"graphqlSync",{enumerable:!0,get:function(){return TH.graphqlSync}});Object.defineProperty(G,"introspectionFromSchema",{enumerable:!0,get:function(){return BD.introspectionFromSchema}});Object.defineProperty(G,"introspectionTypes",{enumerable:!0,get:function(){return V.introspectionTypes}});Object.defineProperty(G,"isAbstractType",{enumerable:!0,get:function(){return V.isAbstractType}});Object.defineProperty(G,"isCompositeType",{enumerable:!0,get:function(){return V.isCompositeType}});Object.defineProperty(G,"isConstValueNode",{enumerable:!0,get:function(){return PD.isConstValueNode}});Object.defineProperty(G,"isDefinitionNode",{enumerable:!0,get:function(){return PD.isDefinitionNode}});Object.defineProperty(G,"isDirective",{enumerable:!0,get:function(){return V.isDirective}});Object.defineProperty(G,"isEnumType",{enumerable:!0,get:function(){return V.isEnumType}});Object.defineProperty(G,"isEqualType",{enumerable:!0,get:function(){return BD.isEqualType}});Object.defineProperty(G,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return PD.isExecutableDefinitionNode}});Object.defineProperty(G,"isInputObjectType",{enumerable:!0,get:function(){return V.isInputObjectType}});Object.defineProperty(G,"isInputType",{enumerable:!0,get:function(){return V.isInputType}});Object.defineProperty(G,"isInterfaceType",{enumerable:!0,get:function(){return V.isInterfaceType}});Object.defineProperty(G,"isIntrospectionType",{enumerable:!0,get:function(){return V.isIntrospectionType}});Object.defineProperty(G,"isLeafType",{enumerable:!0,get:function(){return V.isLeafType}});Object.defineProperty(G,"isListType",{enumerable:!0,get:function(){return V.isListType}});Object.defineProperty(G,"isNamedType",{enumerable:!0,get:function(){return V.isNamedType}});Object.defineProperty(G,"isNonNullType",{enumerable:!0,get:function(){return V.isNonNullType}});Object.defineProperty(G,"isNullableType",{enumerable:!0,get:function(){return V.isNullableType}});Object.defineProperty(G,"isObjectType",{enumerable:!0,get:function(){return V.isObjectType}});Object.defineProperty(G,"isOutputType",{enumerable:!0,get:function(){return V.isOutputType}});Object.defineProperty(G,"isRequiredArgument",{enumerable:!0,get:function(){return V.isRequiredArgument}});Object.defineProperty(G,"isRequiredInputField",{enumerable:!0,get:function(){return V.isRequiredInputField}});Object.defineProperty(G,"isScalarType",{enumerable:!0,get:function(){return V.isScalarType}});Object.defineProperty(G,"isSchema",{enumerable:!0,get:function(){return V.isSchema}});Object.defineProperty(G,"isSelectionNode",{enumerable:!0,get:function(){return PD.isSelectionNode}});Object.defineProperty(G,"isSpecifiedDirective",{enumerable:!0,get:function(){return V.isSpecifiedDirective}});Object.defineProperty(G,"isSpecifiedScalarType",{enumerable:!0,get:function(){return V.isSpecifiedScalarType}});Object.defineProperty(G,"isType",{enumerable:!0,get:function(){return V.isType}});Object.defineProperty(G,"isTypeDefinitionNode",{enumerable:!0,get:function(){return PD.isTypeDefinitionNode}});Object.defineProperty(G,"isTypeExtensionNode",{enumerable:!0,get:function(){return PD.isTypeExtensionNode}});Object.defineProperty(G,"isTypeNode",{enumerable:!0,get:function(){return PD.isTypeNode}});Object.defineProperty(G,"isTypeSubTypeOf",{enumerable:!0,get:function(){return BD.isTypeSubTypeOf}});Object.defineProperty(G,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return PD.isTypeSystemDefinitionNode}});Object.defineProperty(G,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return PD.isTypeSystemExtensionNode}});Object.defineProperty(G,"isUnionType",{enumerable:!0,get:function(){return V.isUnionType}});Object.defineProperty(G,"isValidNameError",{enumerable:!0,get:function(){return BD.isValidNameError}});Object.defineProperty(G,"isValueNode",{enumerable:!0,get:function(){return PD.isValueNode}});Object.defineProperty(G,"isWrappingType",{enumerable:!0,get:function(){return V.isWrappingType}});Object.defineProperty(G,"lexicographicSortSchema",{enumerable:!0,get:function(){return BD.lexicographicSortSchema}});Object.defineProperty(G,"locatedError",{enumerable:!0,get:function(){return b6.locatedError}});Object.defineProperty(G,"parse",{enumerable:!0,get:function(){return PD.parse}});Object.defineProperty(G,"parseConstValue",{enumerable:!0,get:function(){return PD.parseConstValue}});Object.defineProperty(G,"parseType",{enumerable:!0,get:function(){return PD.parseType}});Object.defineProperty(G,"parseValue",{enumerable:!0,get:function(){return PD.parseValue}});Object.defineProperty(G,"print",{enumerable:!0,get:function(){return PD.print}});Object.defineProperty(G,"printError",{enumerable:!0,get:function(){return b6.printError}});Object.defineProperty(G,"printIntrospectionSchema",{enumerable:!0,get:function(){return BD.printIntrospectionSchema}});Object.defineProperty(G,"printLocation",{enumerable:!0,get:function(){return PD.printLocation}});Object.defineProperty(G,"printSchema",{enumerable:!0,get:function(){return BD.printSchema}});Object.defineProperty(G,"printSourceLocation",{enumerable:!0,get:function(){return PD.printSourceLocation}});Object.defineProperty(G,"printType",{enumerable:!0,get:function(){return BD.printType}});Object.defineProperty(G,"recommendedRules",{enumerable:!0,get:function(){return d.recommendedRules}});Object.defineProperty(G,"resolveObjMapThunk",{enumerable:!0,get:function(){return V.resolveObjMapThunk}});Object.defineProperty(G,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return V.resolveReadonlyArrayThunk}});Object.defineProperty(G,"responsePathAsArray",{enumerable:!0,get:function(){return u2.responsePathAsArray}});Object.defineProperty(G,"separateOperations",{enumerable:!0,get:function(){return BD.separateOperations}});Object.defineProperty(G,"specifiedDirectives",{enumerable:!0,get:function(){return V.specifiedDirectives}});Object.defineProperty(G,"specifiedRules",{enumerable:!0,get:function(){return d.specifiedRules}});Object.defineProperty(G,"specifiedScalarTypes",{enumerable:!0,get:function(){return V.specifiedScalarTypes}});Object.defineProperty(G,"stripIgnoredCharacters",{enumerable:!0,get:function(){return BD.stripIgnoredCharacters}});Object.defineProperty(G,"subscribe",{enumerable:!0,get:function(){return u2.subscribe}});Object.defineProperty(G,"syntaxError",{enumerable:!0,get:function(){return b6.syntaxError}});Object.defineProperty(G,"typeFromAST",{enumerable:!0,get:function(){return BD.typeFromAST}});Object.defineProperty(G,"validate",{enumerable:!0,get:function(){return d.validate}});Object.defineProperty(G,"validateSchema",{enumerable:!0,get:function(){return V.validateSchema}});Object.defineProperty(G,"valueFromAST",{enumerable:!0,get:function(){return BD.valueFromAST}});Object.defineProperty(G,"valueFromASTUntyped",{enumerable:!0,get:function(){return BD.valueFromASTUntyped}});Object.defineProperty(G,"version",{enumerable:!0,get:function(){return SH.version}});Object.defineProperty(G,"versionInfo",{enumerable:!0,get:function(){return SH.versionInfo}});Object.defineProperty(G,"visit",{enumerable:!0,get:function(){return PD.visit}});Object.defineProperty(G,"visitInParallel",{enumerable:!0,get:function(){return PD.visitInParallel}});Object.defineProperty(G,"visitWithTypeInfo",{enumerable:!0,get:function(){return BD.visitWithTypeInfo}});var SH=mP(),TH=tJ(),V=FY(),PD=BY(),u2=QY(),d=EY(),b6=KY(),BD=bH()});var w3=Q((tl,PU)=>{var FS=vD("node:tty"),PS=FS?.WriteStream?.prototype?.hasColors?.()??!1,p=(D,F)=>{if(!PS)return(Z)=>Z;let P=`\x1B[${D}m`,B=`\x1B[${F}m`;return(Z)=>{let X=Z+"",q=X.indexOf(B);if(q===-1)return P+X+B;let J=P,Y=0;while(q!==-1)J+=X.slice(Y,q)+P,Y=q+B.length,q=X.indexOf(B,Y);return J+=X.slice(Y)+B,J}},c={};c.reset=p(0,0);c.bold=p(1,22);c.dim=p(2,22);c.italic=p(3,23);c.underline=p(4,24);c.overline=p(53,55);c.inverse=p(7,27);c.hidden=p(8,28);c.strikethrough=p(9,29);c.black=p(30,39);c.red=p(31,39);c.green=p(32,39);c.yellow=p(33,39);c.blue=p(34,39);c.magenta=p(35,39);c.cyan=p(36,39);c.white=p(37,39);c.gray=p(90,39);c.bgBlack=p(40,49);c.bgRed=p(41,49);c.bgGreen=p(42,49);c.bgYellow=p(43,49);c.bgBlue=p(44,49);c.bgMagenta=p(45,49);c.bgCyan=p(46,49);c.bgWhite=p(47,49);c.bgGray=p(100,49);c.redBright=p(91,39);c.greenBright=p(92,39);c.yellowBright=p(93,39);c.blueBright=p(94,39);c.magentaBright=p(95,39);c.cyanBright=p(96,39);c.whiteBright=p(97,39);c.bgRedBright=p(101,49);c.bgGreenBright=p(102,49);c.bgYellowBright=p(103,49);c.bgBlueBright=p(104,49);c.bgMagentaBright=p(105,49);c.bgCyanBright=p(106,49);c.bgWhiteBright=p(107,49);PU.exports=c});var UU=Q((Mc,HU)=>{HU.exports=US;function HS(D){let F={defaultWidth:0,output:process.stdout,tty:vD("tty")};if(!D)return F;return Object.keys(F).forEach(function(P){if(!D[P])D[P]=F[P]}),D}function US(D){let F=HS(D);if(F.output.getWindowSize)return F.output.getWindowSize()[0]||F.defaultWidth;if(F.tty.getWindowSize)return F.tty.getWindowSize()[1]||F.defaultWidth;if(F.output.columns)return F.output.columns;if(process.env.CLI_WIDTH){let P=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(P)&&P!==0)return P}return F.defaultWidth}});var OU=Q((Ec,WU)=>{WU.exports=({onlyFirst:D=!1}={})=>{let F=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(F,D?void 0:"g")}});var j3=Q((Kc,zU)=>{var WS=OU();zU.exports=(D)=>typeof D==="string"?D.replace(WS(),""):D});var GU=Q((Ac,S7)=>{var QU=(D)=>{if(Number.isNaN(D))return!1;if(D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141))return!0;return!1};S7.exports=QU;S7.exports.default=QU});var IU=Q((Cc,RU)=>{RU.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var MU=Q((Lc,T7)=>{var OS=j3(),zS=GU(),QS=IU(),$U=(D)=>{if(typeof D!=="string"||D.length===0)return 0;if(D=OS(D),D.length===0)return 0;D=D.replace(QS()," ");let F=0;for(let P=0;P<D.length;P++){let B=D.codePointAt(P);if(B<=31||B>=127&&B<=159)continue;if(B>=768&&B<=879)continue;if(B>65535)P++;F+=zS(B)?2:1}return F};T7.exports=$U;T7.exports.default=$U});var KU=Q((Vc,EU)=>{EU.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var u7=Q((wc,CU)=>{var h6=KU(),AU={};for(let D of Object.keys(h6))AU[h6[D]]=D;var x={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};CU.exports=x;for(let D of Object.keys(x)){if(!("channels"in x[D]))throw Error("missing channels property: "+D);if(!("labels"in x[D]))throw Error("missing channel labels property: "+D);if(x[D].labels.length!==x[D].channels)throw Error("channel and label counts mismatch: "+D);let{channels:F,labels:P}=x[D];delete x[D].channels,delete x[D].labels,Object.defineProperty(x[D],"channels",{value:F}),Object.defineProperty(x[D],"labels",{value:P})}x.rgb.hsl=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255,Z=Math.min(F,P,B),X=Math.max(F,P,B),q=X-Z,J,Y;if(X===Z)J=0;else if(F===X)J=(P-B)/q;else if(P===X)J=2+(B-F)/q;else if(B===X)J=4+(F-P)/q;if(J=Math.min(J*60,360),J<0)J+=360;let H=(Z+X)/2;if(X===Z)Y=0;else if(H<=0.5)Y=q/(X+Z);else Y=q/(2-X-Z);return[J,Y*100,H*100]};x.rgb.hsv=function(D){let F,P,B,Z,X,q=D[0]/255,J=D[1]/255,Y=D[2]/255,H=Math.max(q,J,Y),U=H-Math.min(q,J,Y),W=function(O){return(H-O)/6/U+0.5};if(U===0)Z=0,X=0;else{if(X=U/H,F=W(q),P=W(J),B=W(Y),q===H)Z=B-P;else if(J===H)Z=0.3333333333333333+F-B;else if(Y===H)Z=0.6666666666666666+P-F;if(Z<0)Z+=1;else if(Z>1)Z-=1}return[Z*360,X*100,H*100]};x.rgb.hwb=function(D){let F=D[0],P=D[1],B=D[2],Z=x.rgb.hsl(D)[0],X=0.00392156862745098*Math.min(F,Math.min(P,B));return B=1-0.00392156862745098*Math.max(F,Math.max(P,B)),[Z,X*100,B*100]};x.rgb.cmyk=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255,Z=Math.min(1-F,1-P,1-B),X=(1-F-Z)/(1-Z)||0,q=(1-P-Z)/(1-Z)||0,J=(1-B-Z)/(1-Z)||0;return[X*100,q*100,J*100,Z*100]};function GS(D,F){return(D[0]-F[0])**2+(D[1]-F[1])**2+(D[2]-F[2])**2}x.rgb.keyword=function(D){let F=AU[D];if(F)return F;let P=1/0,B;for(let Z of Object.keys(h6)){let X=h6[Z],q=GS(D,X);if(q<P)P=q,B=Z}return B};x.keyword.rgb=function(D){return h6[D]};x.rgb.xyz=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255;F=F>0.04045?((F+0.055)/1.055)**2.4:F/12.92,P=P>0.04045?((P+0.055)/1.055)**2.4:P/12.92,B=B>0.04045?((B+0.055)/1.055)**2.4:B/12.92;let Z=F*0.4124+P*0.3576+B*0.1805,X=F*0.2126+P*0.7152+B*0.0722,q=F*0.0193+P*0.1192+B*0.9505;return[Z*100,X*100,q*100]};x.rgb.lab=function(D){let F=x.rgb.xyz(D),P=F[0],B=F[1],Z=F[2];P/=95.047,B/=100,Z/=108.883,P=P>0.008856?P**0.3333333333333333:7.787*P+0.13793103448275862,B=B>0.008856?B**0.3333333333333333:7.787*B+0.13793103448275862,Z=Z>0.008856?Z**0.3333333333333333:7.787*Z+0.13793103448275862;let X=116*B-16,q=500*(P-B),J=200*(B-Z);return[X,q,J]};x.hsl.rgb=function(D){let F=D[0]/360,P=D[1]/100,B=D[2]/100,Z,X,q;if(P===0)return q=B*255,[q,q,q];if(B<0.5)Z=B*(1+P);else Z=B+P-B*P;let J=2*B-Z,Y=[0,0,0];for(let H=0;H<3;H++){if(X=F+0.3333333333333333*-(H-1),X<0)X++;if(X>1)X--;if(6*X<1)q=J+(Z-J)*6*X;else if(2*X<1)q=Z;else if(3*X<2)q=J+(Z-J)*(0.6666666666666666-X)*6;else q=J;Y[H]=q*255}return Y};x.hsl.hsv=function(D){let F=D[0],P=D[1]/100,B=D[2]/100,Z=P,X=Math.max(B,0.01);B*=2,P*=B<=1?B:2-B,Z*=X<=1?X:2-X;let q=(B+P)/2,J=B===0?2*Z/(X+Z):2*P/(B+P);return[F,J*100,q*100]};x.hsv.rgb=function(D){let F=D[0]/60,P=D[1]/100,B=D[2]/100,Z=Math.floor(F)%6,X=F-Math.floor(F),q=255*B*(1-P),J=255*B*(1-P*X),Y=255*B*(1-P*(1-X));switch(B*=255,Z){case 0:return[B,Y,q];case 1:return[J,B,q];case 2:return[q,B,Y];case 3:return[q,J,B];case 4:return[Y,q,B];case 5:return[B,q,J]}};x.hsv.hsl=function(D){let F=D[0],P=D[1]/100,B=D[2]/100,Z=Math.max(B,0.01),X,q;q=(2-P)*B;let J=(2-P)*Z;return X=P*Z,X/=J<=1?J:2-J,X=X||0,q/=2,[F,X*100,q*100]};x.hwb.rgb=function(D){let F=D[0]/360,P=D[1]/100,B=D[2]/100,Z=P+B,X;if(Z>1)P/=Z,B/=Z;let q=Math.floor(6*F),J=1-B;if(X=6*F-q,(q&1)!==0)X=1-X;let Y=P+X*(J-P),H,U,W;switch(q){default:case 6:case 0:H=J,U=Y,W=P;break;case 1:H=Y,U=J,W=P;break;case 2:H=P,U=J,W=Y;break;case 3:H=P,U=Y,W=J;break;case 4:H=Y,U=P,W=J;break;case 5:H=J,U=P,W=Y;break}return[H*255,U*255,W*255]};x.cmyk.rgb=function(D){let F=D[0]/100,P=D[1]/100,B=D[2]/100,Z=D[3]/100,X=1-Math.min(1,F*(1-Z)+Z),q=1-Math.min(1,P*(1-Z)+Z),J=1-Math.min(1,B*(1-Z)+Z);return[X*255,q*255,J*255]};x.xyz.rgb=function(D){let F=D[0]/100,P=D[1]/100,B=D[2]/100,Z,X,q;return Z=F*3.2406+P*-1.5372+B*-0.4986,X=F*-0.9689+P*1.8758+B*0.0415,q=F*0.0557+P*-0.204+B*1.057,Z=Z>0.0031308?1.055*Z**0.4166666666666667-0.055:Z*12.92,X=X>0.0031308?1.055*X**0.4166666666666667-0.055:X*12.92,q=q>0.0031308?1.055*q**0.4166666666666667-0.055:q*12.92,Z=Math.min(Math.max(0,Z),1),X=Math.min(Math.max(0,X),1),q=Math.min(Math.max(0,q),1),[Z*255,X*255,q*255]};x.xyz.lab=function(D){let F=D[0],P=D[1],B=D[2];F/=95.047,P/=100,B/=108.883,F=F>0.008856?F**0.3333333333333333:7.787*F+0.13793103448275862,P=P>0.008856?P**0.3333333333333333:7.787*P+0.13793103448275862,B=B>0.008856?B**0.3333333333333333:7.787*B+0.13793103448275862;let Z=116*P-16,X=500*(F-P),q=200*(P-B);return[Z,X,q]};x.lab.xyz=function(D){let F=D[0],P=D[1],B=D[2],Z,X,q;X=(F+16)/116,Z=P/500+X,q=X-B/200;let J=X**3,Y=Z**3,H=q**3;return X=J>0.008856?J:(X-0.13793103448275862)/7.787,Z=Y>0.008856?Y:(Z-0.13793103448275862)/7.787,q=H>0.008856?H:(q-0.13793103448275862)/7.787,Z*=95.047,X*=100,q*=108.883,[Z,X,q]};x.lab.lch=function(D){let F=D[0],P=D[1],B=D[2],Z;if(Z=Math.atan2(B,P)*360/2/Math.PI,Z<0)Z+=360;let q=Math.sqrt(P*P+B*B);return[F,q,Z]};x.lch.lab=function(D){let F=D[0],P=D[1],Z=D[2]/360*2*Math.PI,X=P*Math.cos(Z),q=P*Math.sin(Z);return[F,X,q]};x.rgb.ansi16=function(D,F=null){let[P,B,Z]=D,X=F===null?x.rgb.hsv(D)[2]:F;if(X=Math.round(X/50),X===0)return 30;let q=30+(Math.round(Z/255)<<2|Math.round(B/255)<<1|Math.round(P/255));if(X===2)q+=60;return q};x.hsv.ansi16=function(D){return x.rgb.ansi16(x.hsv.rgb(D),D[2])};x.rgb.ansi256=function(D){let F=D[0],P=D[1],B=D[2];if(F===P&&P===B){if(F<8)return 16;if(F>248)return 231;return Math.round((F-8)/247*24)+232}return 16+36*Math.round(F/255*5)+6*Math.round(P/255*5)+Math.round(B/255*5)};x.ansi16.rgb=function(D){let F=D%10;if(F===0||F===7){if(D>50)F+=3.5;return F=F/10.5*255,[F,F,F]}let P=(~~(D>50)+1)*0.5,B=(F&1)*P*255,Z=(F>>1&1)*P*255,X=(F>>2&1)*P*255;return[B,Z,X]};x.ansi256.rgb=function(D){if(D>=232){let X=(D-232)*10+8;return[X,X,X]}D-=16;let F,P=Math.floor(D/36)/5*255,B=Math.floor((F=D%36)/6)/5*255,Z=F%6/5*255;return[P,B,Z]};x.rgb.hex=function(D){let P=(((Math.round(D[0])&255)<<16)+((Math.round(D[1])&255)<<8)+(Math.round(D[2])&255)).toString(16).toUpperCase();return"000000".substring(P.length)+P};x.hex.rgb=function(D){let F=D.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!F)return[0,0,0];let P=F[0];if(F[0].length===3)P=P.split("").map((J)=>{return J+J}).join("");let B=parseInt(P,16),Z=B>>16&255,X=B>>8&255,q=B&255;return[Z,X,q]};x.rgb.hcg=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255,Z=Math.max(Math.max(F,P),B),X=Math.min(Math.min(F,P),B),q=Z-X,J,Y;if(q<1)J=X/(1-q);else J=0;if(q<=0)Y=0;else if(Z===F)Y=(P-B)/q%6;else if(Z===P)Y=2+(B-F)/q;else Y=4+(F-P)/q;return Y/=6,Y%=1,[Y*360,q*100,J*100]};x.hsl.hcg=function(D){let F=D[1]/100,P=D[2]/100,B=P<0.5?2*F*P:2*F*(1-P),Z=0;if(B<1)Z=(P-0.5*B)/(1-B);return[D[0],B*100,Z*100]};x.hsv.hcg=function(D){let F=D[1]/100,P=D[2]/100,B=F*P,Z=0;if(B<1)Z=(P-B)/(1-B);return[D[0],B*100,Z*100]};x.hcg.rgb=function(D){let F=D[0]/360,P=D[1]/100,B=D[2]/100;if(P===0)return[B*255,B*255,B*255];let Z=[0,0,0],X=F%1*6,q=X%1,J=1-q,Y=0;switch(Math.floor(X)){case 0:Z[0]=1,Z[1]=q,Z[2]=0;break;case 1:Z[0]=J,Z[1]=1,Z[2]=0;break;case 2:Z[0]=0,Z[1]=1,Z[2]=q;break;case 3:Z[0]=0,Z[1]=J,Z[2]=1;break;case 4:Z[0]=q,Z[1]=0,Z[2]=1;break;default:Z[0]=1,Z[1]=0,Z[2]=J}return Y=(1-P)*B,[(P*Z[0]+Y)*255,(P*Z[1]+Y)*255,(P*Z[2]+Y)*255]};x.hcg.hsv=function(D){let F=D[1]/100,P=D[2]/100,B=F+P*(1-F),Z=0;if(B>0)Z=F/B;return[D[0],Z*100,B*100]};x.hcg.hsl=function(D){let F=D[1]/100,B=D[2]/100*(1-F)+0.5*F,Z=0;if(B>0&&B<0.5)Z=F/(2*B);else if(B>=0.5&&B<1)Z=F/(2*(1-B));return[D[0],Z*100,B*100]};x.hcg.hwb=function(D){let F=D[1]/100,P=D[2]/100,B=F+P*(1-F);return[D[0],(B-F)*100,(1-B)*100]};x.hwb.hcg=function(D){let F=D[1]/100,B=1-D[2]/100,Z=B-F,X=0;if(Z<1)X=(B-Z)/(1-Z);return[D[0],Z*100,X*100]};x.apple.rgb=function(D){return[D[0]/65535*255,D[1]/65535*255,D[2]/65535*255]};x.rgb.apple=function(D){return[D[0]/255*65535,D[1]/255*65535,D[2]/255*65535]};x.gray.rgb=function(D){return[D[0]/100*255,D[0]/100*255,D[0]/100*255]};x.gray.hsl=function(D){return[0,0,D[0]]};x.gray.hsv=x.gray.hsl;x.gray.hwb=function(D){return[0,100,D[0]]};x.gray.cmyk=function(D){return[0,0,0,D[0]]};x.gray.lab=function(D){return[D[0],0,0]};x.gray.hex=function(D){let F=Math.round(D[0]/100*255)&255,B=((F<<16)+(F<<8)+F).toString(16).toUpperCase();return"000000".substring(B.length)+B};x.rgb.gray=function(D){return[(D[0]+D[1]+D[2])/3/255*100]}});var VU=Q((jc,LU)=>{var b3=u7();function RS(){let D={},F=Object.keys(b3);for(let P=F.length,B=0;B<P;B++)D[F[B]]={distance:-1,parent:null};return D}function IS(D){let F=RS(),P=[D];F[D].distance=0;while(P.length){let B=P.pop(),Z=Object.keys(b3[B]);for(let X=Z.length,q=0;q<X;q++){let J=Z[q],Y=F[J];if(Y.distance===-1)Y.distance=F[B].distance+1,Y.parent=B,P.unshift(J)}}return F}function $S(D,F){return function(P){return F(D(P))}}function MS(D,F){let P=[F[D].parent,D],B=b3[F[D].parent][D],Z=F[D].parent;while(F[Z].parent)P.unshift(F[Z].parent),B=$S(b3[F[Z].parent][Z],B),Z=F[Z].parent;return B.conversion=P,B}LU.exports=function(D){let F=IS(D),P={},B=Object.keys(F);for(let Z=B.length,X=0;X<Z;X++){let q=B[X];if(F[q].parent===null)continue;P[q]=MS(q,F)}return P}});var jU=Q((bc,wU)=>{var N7=u7(),ES=VU(),L8={},KS=Object.keys(N7);function AS(D){let F=function(...P){let B=P[0];if(B===void 0||B===null)return B;if(B.length>1)P=B;return D(P)};if("conversion"in D)F.conversion=D.conversion;return F}function CS(D){let F=function(...P){let B=P[0];if(B===void 0||B===null)return B;if(B.length>1)P=B;let Z=D(P);if(typeof Z==="object")for(let X=Z.length,q=0;q<X;q++)Z[q]=Math.round(Z[q]);return Z};if("conversion"in D)F.conversion=D.conversion;return F}KS.forEach((D)=>{L8[D]={},Object.defineProperty(L8[D],"channels",{value:N7[D].channels}),Object.defineProperty(L8[D],"labels",{value:N7[D].labels});let F=ES(D);Object.keys(F).forEach((B)=>{let Z=F[B];L8[D][B]=CS(Z),L8[D][B].raw=AS(Z)})});wU.exports=L8});var k7=Q((Sc,NU)=>{var bU=(D,F)=>(...P)=>{return`\x1B[${D(...P)+F}m`},SU=(D,F)=>(...P)=>{let B=D(...P);return`\x1B[${38+F};5;${B}m`},TU=(D,F)=>(...P)=>{let B=D(...P);return`\x1B[${38+F};2;${B[0]};${B[1]};${B[2]}m`},S3=(D)=>D,uU=(D,F,P)=>[D,F,P],V8=(D,F,P)=>{Object.defineProperty(D,F,{get:()=>{let B=P();return Object.defineProperty(D,F,{value:B,enumerable:!0,configurable:!0}),B},enumerable:!0,configurable:!0})},_7,w8=(D,F,P,B)=>{if(_7===void 0)_7=jU();let Z=B?10:0,X={};for(let[q,J]of Object.entries(_7)){let Y=q==="ansi16"?"ansi":q;if(q===F)X[Y]=D(P,Z);else if(typeof J==="object")X[Y]=D(J[F],Z)}return X};function LS(){let D=new Map,F={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};F.color.gray=F.color.blackBright,F.bgColor.bgGray=F.bgColor.bgBlackBright,F.color.grey=F.color.blackBright,F.bgColor.bgGrey=F.bgColor.bgBlackBright;for(let[P,B]of Object.entries(F)){for(let[Z,X]of Object.entries(B))F[Z]={open:`\x1B[${X[0]}m`,close:`\x1B[${X[1]}m`},B[Z]=F[Z],D.set(X[0],X[1]);Object.defineProperty(F,P,{value:B,enumerable:!1})}return Object.defineProperty(F,"codes",{value:D,enumerable:!1}),F.color.close="\x1B[39m",F.bgColor.close="\x1B[49m",V8(F.color,"ansi",()=>w8(bU,"ansi16",S3,!1)),V8(F.color,"ansi256",()=>w8(SU,"ansi256",S3,!1)),V8(F.color,"ansi16m",()=>w8(TU,"rgb",uU,!1)),V8(F.bgColor,"ansi",()=>w8(bU,"ansi16",S3,!0)),V8(F.bgColor,"ansi256",()=>w8(SU,"ansi256",S3,!0)),V8(F.bgColor,"ansi16m",()=>w8(TU,"rgb",uU,!0)),F}Object.defineProperty(NU,"exports",{enumerable:!0,get:LS})});var xU=Q((Tc,kU)=>{var g6=MU(),VS=j3(),wS=k7(),f7=new Set(["\x1B","›"]),_U=(D)=>`${f7.values().next().value}[${D}m`,jS=(D)=>D.split(" ").map((F)=>g6(F)),x7=(D,F,P)=>{let B=[...F],Z=!1,X=g6(VS(D[D.length-1]));for(let[q,J]of B.entries()){let Y=g6(J);if(X+Y<=P)D[D.length-1]+=J;else D.push(J),X=0;if(f7.has(J))Z=!0;else if(Z&&J==="m"){Z=!1;continue}if(Z)continue;if(X+=Y,X===P&&q<B.length-1)D.push(""),X=0}if(!X&&D[D.length-1].length>0&&D.length>1)D[D.length-2]+=D.pop()},bS=(D)=>{let F=D.split(" "),P=F.length;while(P>0){if(g6(F[P-1])>0)break;P--}if(P===F.length)return D;return F.slice(0,P).join(" ")+F.slice(P).join("")},SS=(D,F,P={})=>{if(P.trim!==!1&&D.trim()==="")return"";let B="",Z="",X,q=jS(D),J=[""];for(let[Y,H]of D.split(" ").entries()){if(P.trim!==!1)J[J.length-1]=J[J.length-1].trimLeft();let U=g6(J[J.length-1]);if(Y!==0){if(U>=F&&(P.wordWrap===!1||P.trim===!1))J.push(""),U=0;if(U>0||P.trim===!1)J[J.length-1]+=" ",U++}if(P.hard&&q[Y]>F){let W=F-U,O=1+Math.floor((q[Y]-W-1)/F);if(Math.floor((q[Y]-1)/F)<O)J.push("");x7(J,H,F);continue}if(U+q[Y]>F&&U>0&&q[Y]>0){if(P.wordWrap===!1&&U<F){x7(J,H,F);continue}J.push("")}if(U+q[Y]>F&&P.wordWrap===!1){x7(J,H,F);continue}J[J.length-1]+=H}if(P.trim!==!1)J=J.map(bS);B=J.join(`
199
199
  `);for(let[Y,H]of[...B].entries()){if(Z+=H,f7.has(H)){let W=parseFloat(/\d[^m]*/.exec(B.slice(Y,Y+4)));X=W===39?null:W}let U=wS.codes.get(Number(X));if(X&&U){if(B[Y+1]===`
200
200
  `)Z+=_U(U);else if(H===`
201
201
  `)Z+=_U(X)}}return Z};kU.exports=(D,F,P)=>{return String(D).normalize().replace(/\r\n/g,`
202
202
  `).split(`
203
203
  `).map((B)=>SS(B,F,P)).join(`
204
- `)}});var cU=Q((mc,lU)=>{var NS=vD("stream");class mU extends NS{#P=null;constructor(D={}){super(D);this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=D.replace,this._prompt=D.prompt||null,this._hadControl=!1}#F(D,F){if(this._dest)return this._dest[D];if(this._src)return this._src[D];return F}#D(D,...F){if(typeof this._dest?.[D]==="function")this._dest[D](...F);if(typeof this._src?.[D]==="function")this._src[D](...F)}get isTTY(){if(this.#P!==null)return this.#P;return this.#F("isTTY",!1)}set isTTY(D){this.#P=D}get rows(){return this.#F("rows")}get columns(){return this.#F("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(D){this._src=D}pipe(D,F){return this._dest=D,super.pipe(D,F)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(D){if(this.muted){if(!this.replace)return!0;if(D.match(/^\u001b/)){if(D.indexOf(this._prompt)===0)D=D.slice(this._prompt.length),D=D.replace(/./g,this.replace),D=this._prompt+D;return this._hadControl=!0,this.emit("data",D)}else{if(this._prompt&&this._hadControl&&D.indexOf(this._prompt)===0)this._hadControl=!1,this.emit("data",this._prompt),D=D.slice(this._prompt.length);D=D.toString().replace(/./g,this.replace)}}this.emit("data",D)}end(D){if(this.muted)if(D&&this.replace)D=D.toString().replace(/./g,this.replace);else D=null;if(D)this.emit("data",D);this.emit("end")}destroy(...D){return this.#D("destroy",...D)}destroySoon(...D){return this.#D("destroySoon",...D)}close(...D){return this.#D("close",...D)}}lU.exports=mU});var c7=Q((xS,l7)=>{var o=xS;xS.default=o;var qD="\x1B[",y6="\x1B]",j8="\x07",N3=";",sU=process.env.TERM_PROGRAM==="Apple_Terminal";o.cursorTo=(D,F)=>{if(typeof D!=="number")throw new TypeError("The `x` argument is required");if(typeof F!=="number")return qD+(D+1)+"G";return qD+(F+1)+";"+(D+1)+"H"};o.cursorMove=(D,F)=>{if(typeof D!=="number")throw new TypeError("The `x` argument is required");let P="";if(D<0)P+=qD+-D+"D";else if(D>0)P+=qD+D+"C";if(F<0)P+=qD+-F+"A";else if(F>0)P+=qD+F+"B";return P};o.cursorUp=(D=1)=>qD+D+"A";o.cursorDown=(D=1)=>qD+D+"B";o.cursorForward=(D=1)=>qD+D+"C";o.cursorBackward=(D=1)=>qD+D+"D";o.cursorLeft=qD+"G";o.cursorSavePosition=sU?"\x1B7":qD+"s";o.cursorRestorePosition=sU?"\x1B8":qD+"u";o.cursorGetPosition=qD+"6n";o.cursorNextLine=qD+"E";o.cursorPrevLine=qD+"F";o.cursorHide=qD+"?25l";o.cursorShow=qD+"?25h";o.eraseLines=(D)=>{let F="";for(let P=0;P<D;P++)F+=o.eraseLine+(P<D-1?o.cursorUp():"");if(D)F+=o.cursorLeft;return F};o.eraseEndLine=qD+"K";o.eraseStartLine=qD+"1K";o.eraseLine=qD+"2K";o.eraseDown=qD+"J";o.eraseUp=qD+"1J";o.eraseScreen=qD+"2J";o.scrollUp=qD+"S";o.scrollDown=qD+"T";o.clearScreen="\x1Bc";o.clearTerminal=process.platform==="win32"?`${o.eraseScreen}${qD}0f`:`${o.eraseScreen}${qD}3J${qD}H`;o.beep=j8;o.link=(D,F)=>{return[y6,"8",N3,N3,F,j8,D,y6,"8",N3,N3,j8].join("")};o.image=(D,F={})=>{let P=`${y6}1337;File=inline=1`;if(F.width)P+=`;width=${F.width}`;if(F.height)P+=`;height=${F.height}`;if(F.preserveAspectRatio===!1)P+=";preserveAspectRatio=0";return P+":"+D.toString("base64")+j8};o.iTerm={setCwd:(D=process.cwd())=>`${y6}50;CurrentDir=${D}${j8}`,annotation:(D,F={})=>{let P=`${y6}1337;`,B=typeof F.x!=="undefined",Z=typeof F.y!=="undefined";if((B||Z)&&!(B&&Z&&typeof F.length!=="undefined"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");if(D=D.replace(/\|/g,""),P+=F.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",F.length>0)P+=(B?[D,F.length,F.x,F.y]:[F.length,D]).join("|");else P+=D;return P+j8}}});var BW=Q((Sd,PW)=>{PW.exports=(D,F=process.argv)=>{let P=D.startsWith("-")?"":D.length===1?"-":"--",B=F.indexOf(P+D),Z=F.indexOf("--");return B!==-1&&(Z===-1||B<Z)}});var qW=Q((Td,XW)=>{var mS=vD("os"),ZW=vD("tty"),Z2=BW(),{env:ND}=process,Y0;if(Z2("no-color")||Z2("no-colors")||Z2("color=false")||Z2("color=never"))Y0=0;else if(Z2("color")||Z2("colors")||Z2("color=true")||Z2("color=always"))Y0=1;if("FORCE_COLOR"in ND)if(ND.FORCE_COLOR==="true")Y0=1;else if(ND.FORCE_COLOR==="false")Y0=0;else Y0=ND.FORCE_COLOR.length===0?1:Math.min(parseInt(ND.FORCE_COLOR,10),3);function r7(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function a7(D,F){if(Y0===0)return 0;if(Z2("color=16m")||Z2("color=full")||Z2("color=truecolor"))return 3;if(Z2("color=256"))return 2;if(D&&!F&&Y0===void 0)return 0;let P=Y0||0;if(ND.TERM==="dumb")return P;if(process.platform==="win32"){let B=mS.release().split(".");if(Number(B[0])>=10&&Number(B[2])>=10586)return Number(B[2])>=14931?3:2;return 1}if("CI"in ND){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((B)=>(B in ND))||ND.CI_NAME==="codeship")return 1;return P}if("TEAMCITY_VERSION"in ND)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ND.TEAMCITY_VERSION)?1:0;if(ND.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ND){let B=parseInt((ND.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ND.TERM_PROGRAM){case"iTerm.app":return B>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(ND.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ND.TERM))return 1;if("COLORTERM"in ND)return 1;return P}function lS(D){let F=a7(D,D&&D.isTTY);return r7(F)}XW.exports={supportsColor:lS,stdout:r7(a7(!0,ZW.isatty(1))),stderr:r7(a7(!0,ZW.isatty(2)))}});var YW=Q((ud,JW)=>{var cS=(D,F,P)=>{let B=D.indexOf(F);if(B===-1)return D;let Z=F.length,X=0,q="";do q+=D.substr(X,B-X)+F+P,X=B+Z,B=D.indexOf(F,X);while(B!==-1);return q+=D.substr(X),q},dS=(D,F,P,B)=>{let Z=0,X="";do{let q=D[B-1]==="\r";X+=D.substr(Z,(q?B-1:B)-Z)+F+(q?`\r
204
+ `)}});var cU=Q((mc,lU)=>{var NS=vD("stream");class mU extends NS{#P=null;constructor(D={}){super(D);this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=D.replace,this._prompt=D.prompt||null,this._hadControl=!1}#F(D,F){if(this._dest)return this._dest[D];if(this._src)return this._src[D];return F}#D(D,...F){if(typeof this._dest?.[D]==="function")this._dest[D](...F);if(typeof this._src?.[D]==="function")this._src[D](...F)}get isTTY(){if(this.#P!==null)return this.#P;return this.#F("isTTY",!1)}set isTTY(D){this.#P=D}get rows(){return this.#F("rows")}get columns(){return this.#F("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(D){this._src=D}pipe(D,F){return this._dest=D,super.pipe(D,F)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(D){if(this.muted){if(!this.replace)return!0;if(D.match(/^\u001b/)){if(D.indexOf(this._prompt)===0)D=D.slice(this._prompt.length),D=D.replace(/./g,this.replace),D=this._prompt+D;return this._hadControl=!0,this.emit("data",D)}else{if(this._prompt&&this._hadControl&&D.indexOf(this._prompt)===0)this._hadControl=!1,this.emit("data",this._prompt),D=D.slice(this._prompt.length);D=D.toString().replace(/./g,this.replace)}}this.emit("data",D)}end(D){if(this.muted)if(D&&this.replace)D=D.toString().replace(/./g,this.replace);else D=null;if(D)this.emit("data",D);this.emit("end")}destroy(...D){return this.#D("destroy",...D)}destroySoon(...D){return this.#D("destroySoon",...D)}close(...D){return this.#D("close",...D)}}lU.exports=mU});var c7=Q((xS,l7)=>{var o=xS;xS.default=o;var qD="\x1B[",y6="\x1B]",j8="\x07",N3=";",sU=process.env.TERM_PROGRAM==="Apple_Terminal";o.cursorTo=(D,F)=>{if(typeof D!=="number")throw TypeError("The `x` argument is required");if(typeof F!=="number")return qD+(D+1)+"G";return qD+(F+1)+";"+(D+1)+"H"};o.cursorMove=(D,F)=>{if(typeof D!=="number")throw TypeError("The `x` argument is required");let P="";if(D<0)P+=qD+-D+"D";else if(D>0)P+=qD+D+"C";if(F<0)P+=qD+-F+"A";else if(F>0)P+=qD+F+"B";return P};o.cursorUp=(D=1)=>qD+D+"A";o.cursorDown=(D=1)=>qD+D+"B";o.cursorForward=(D=1)=>qD+D+"C";o.cursorBackward=(D=1)=>qD+D+"D";o.cursorLeft=qD+"G";o.cursorSavePosition=sU?"\x1B7":qD+"s";o.cursorRestorePosition=sU?"\x1B8":qD+"u";o.cursorGetPosition=qD+"6n";o.cursorNextLine=qD+"E";o.cursorPrevLine=qD+"F";o.cursorHide=qD+"?25l";o.cursorShow=qD+"?25h";o.eraseLines=(D)=>{let F="";for(let P=0;P<D;P++)F+=o.eraseLine+(P<D-1?o.cursorUp():"");if(D)F+=o.cursorLeft;return F};o.eraseEndLine=qD+"K";o.eraseStartLine=qD+"1K";o.eraseLine=qD+"2K";o.eraseDown=qD+"J";o.eraseUp=qD+"1J";o.eraseScreen=qD+"2J";o.scrollUp=qD+"S";o.scrollDown=qD+"T";o.clearScreen="\x1Bc";o.clearTerminal=process.platform==="win32"?`${o.eraseScreen}${qD}0f`:`${o.eraseScreen}${qD}3J${qD}H`;o.beep=j8;o.link=(D,F)=>{return[y6,"8",N3,N3,F,j8,D,y6,"8",N3,N3,j8].join("")};o.image=(D,F={})=>{let P=`${y6}1337;File=inline=1`;if(F.width)P+=`;width=${F.width}`;if(F.height)P+=`;height=${F.height}`;if(F.preserveAspectRatio===!1)P+=";preserveAspectRatio=0";return P+":"+D.toString("base64")+j8};o.iTerm={setCwd:(D=process.cwd())=>`${y6}50;CurrentDir=${D}${j8}`,annotation:(D,F={})=>{let P=`${y6}1337;`,B=typeof F.x<"u",Z=typeof F.y<"u";if((B||Z)&&!(B&&Z&&typeof F.length<"u"))throw Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");if(D=D.replace(/\|/g,""),P+=F.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",F.length>0)P+=(B?[D,F.length,F.x,F.y]:[F.length,D]).join("|");else P+=D;return P+j8}}});var BW=Q((Sd,PW)=>{PW.exports=(D,F=process.argv)=>{let P=D.startsWith("-")?"":D.length===1?"-":"--",B=F.indexOf(P+D),Z=F.indexOf("--");return B!==-1&&(Z===-1||B<Z)}});var qW=Q((Td,XW)=>{var mS=vD("os"),ZW=vD("tty"),Z2=BW(),{env:ND}=process,Y0;if(Z2("no-color")||Z2("no-colors")||Z2("color=false")||Z2("color=never"))Y0=0;else if(Z2("color")||Z2("colors")||Z2("color=true")||Z2("color=always"))Y0=1;if("FORCE_COLOR"in ND)if(ND.FORCE_COLOR==="true")Y0=1;else if(ND.FORCE_COLOR==="false")Y0=0;else Y0=ND.FORCE_COLOR.length===0?1:Math.min(parseInt(ND.FORCE_COLOR,10),3);function r7(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function a7(D,F){if(Y0===0)return 0;if(Z2("color=16m")||Z2("color=full")||Z2("color=truecolor"))return 3;if(Z2("color=256"))return 2;if(D&&!F&&Y0===void 0)return 0;let P=Y0||0;if(ND.TERM==="dumb")return P;if(process.platform==="win32"){let B=mS.release().split(".");if(Number(B[0])>=10&&Number(B[2])>=10586)return Number(B[2])>=14931?3:2;return 1}if("CI"in ND){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((B)=>(B in ND))||ND.CI_NAME==="codeship")return 1;return P}if("TEAMCITY_VERSION"in ND)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ND.TEAMCITY_VERSION)?1:0;if(ND.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ND){let B=parseInt((ND.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ND.TERM_PROGRAM){case"iTerm.app":return B>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(ND.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ND.TERM))return 1;if("COLORTERM"in ND)return 1;return P}function lS(D){let F=a7(D,D&&D.isTTY);return r7(F)}XW.exports={supportsColor:lS,stdout:r7(a7(!0,ZW.isatty(1))),stderr:r7(a7(!0,ZW.isatty(2)))}});var YW=Q((ud,JW)=>{var cS=(D,F,P)=>{let B=D.indexOf(F);if(B===-1)return D;let Z=F.length,X=0,q="";do q+=D.substr(X,B-X)+F+P,X=B+Z,B=D.indexOf(F,X);while(B!==-1);return q+=D.substr(X),q},dS=(D,F,P,B)=>{let Z=0,X="";do{let q=D[B-1]==="\r";X+=D.substr(Z,(q?B-1:B)-Z)+F+(q?`\r
205
205
  `:`
206
206
  `)+P,Z=B+1,B=D.indexOf(`
207
207
  `,Z)}while(B!==-1);return X+=D.substr(Z),X};JW.exports={stringReplaceAll:cS,stringEncaseCRLFWithFirstIndex:dS}});var zW=Q((Nd,OW)=>{var pS=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,HW=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,rS=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,aS=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,sS=new Map([["n",`
208
- `],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function WW(D){let F=D[0]==="u",P=D[1]==="{";if(F&&!P&&D.length===5||D[0]==="x"&&D.length===3)return String.fromCharCode(parseInt(D.slice(1),16));if(F&&P)return String.fromCodePoint(parseInt(D.slice(2,-1),16));return sS.get(D)||D}function nS(D,F){let P=[],B=F.trim().split(/\s*,\s*/g),Z;for(let X of B){let q=Number(X);if(!Number.isNaN(q))P.push(q);else if(Z=X.match(rS))P.push(Z[2].replace(aS,(J,Y,H)=>Y?WW(Y):H));else throw new Error(`Invalid Chalk template style argument: ${X} (in style '${D}')`)}return P}function iS(D){HW.lastIndex=0;let F=[],P;while((P=HW.exec(D))!==null){let B=P[1];if(P[2]){let Z=nS(B,P[2]);F.push([B].concat(Z))}else F.push([B])}return F}function UW(D,F){let P={};for(let Z of F)for(let X of Z.styles)P[X[0]]=Z.inverse?null:X.slice(1);let B=D;for(let[Z,X]of Object.entries(P)){if(!Array.isArray(X))continue;if(!(Z in B))throw new Error(`Unknown Chalk style: ${Z}`);B=X.length>0?B[Z](...X):B[Z]}return B}OW.exports=(D,F)=>{let P=[],B=[],Z=[];if(F.replace(pS,(X,q,J,Y,H,U)=>{if(q)Z.push(WW(q));else if(Y){let W=Z.join("");Z=[],B.push(P.length===0?W:UW(D,P)(W)),P.push({inverse:J,styles:iS(Y)})}else if(H){if(P.length===0)throw new Error("Found extraneous } in Chalk template literal");B.push(UW(D,P)(Z.join(""))),Z=[],P.pop()}else Z.push(U)}),B.push(Z.join("")),P.length>0){let X=`Chalk template literal is missing ${P.length} closing bracket${P.length===1?"":"s"} (\`}\`)`;throw new Error(X)}return B.join("")}});var v3=Q((_d,EW)=>{var m6=k7(),{stdout:n7,stderr:i7}=qW(),{stringReplaceAll:oS,stringEncaseCRLFWithFirstIndex:tS}=YW(),{isArray:x3}=Array,GW=["ansi","ansi","ansi256","ansi16m"],S8=Object.create(null),eS=(D,F={})=>{if(F.level&&!(Number.isInteger(F.level)&&F.level>=0&&F.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let P=n7?n7.level:0;D.level=F.level===void 0?P:F.level};class RW{constructor(D){return IW(D)}}var IW=(D)=>{let F={};return eS(F,D),F.template=(...P)=>MW(F.template,...P),Object.setPrototypeOf(F,f3.prototype),Object.setPrototypeOf(F.template,F),F.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},F.template.Instance=RW,F.template};function f3(D){return IW(D)}for(let[D,F]of Object.entries(m6))S8[D]={get(){let P=h3(this,o7(F.open,F.close,this._styler),this._isEmpty);return Object.defineProperty(this,D,{value:P}),P}};S8.visible={get(){let D=h3(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:D}),D}};var $W=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let D of $W)S8[D]={get(){let{level:F}=this;return function(...P){let B=o7(m6.color[GW[F]][D](...P),m6.color.close,this._styler);return h3(this,B,this._isEmpty)}}};for(let D of $W){let F="bg"+D[0].toUpperCase()+D.slice(1);S8[F]={get(){let{level:P}=this;return function(...B){let Z=o7(m6.bgColor[GW[P]][D](...B),m6.bgColor.close,this._styler);return h3(this,Z,this._isEmpty)}}}}var DT=Object.defineProperties(()=>{},{...S8,level:{enumerable:!0,get(){return this._generator.level},set(D){this._generator.level=D}}}),o7=(D,F,P)=>{let B,Z;if(P===void 0)B=D,Z=F;else B=P.openAll+D,Z=F+P.closeAll;return{open:D,close:F,openAll:B,closeAll:Z,parent:P}},h3=(D,F,P)=>{let B=(...Z)=>{if(x3(Z[0])&&x3(Z[0].raw))return QW(B,MW(B,...Z));return QW(B,Z.length===1?""+Z[0]:Z.join(" "))};return Object.setPrototypeOf(B,DT),B._generator=D,B._styler=F,B._isEmpty=P,B},QW=(D,F)=>{if(D.level<=0||!F)return D._isEmpty?"":F;let P=D._styler;if(P===void 0)return F;let{openAll:B,closeAll:Z}=P;if(F.indexOf("\x1B")!==-1)while(P!==void 0)F=oS(F,P.close,P.open),P=P.parent;let X=F.indexOf(`
209
- `);if(X!==-1)F=tS(F,Z,B,X);return B+F+Z},s7,MW=(D,...F)=>{let[P]=F;if(!x3(P)||!x3(P.raw))return F.join(" ");let B=F.slice(1),Z=[P.raw[0]];for(let X=1;X<P.length;X++)Z.push(String(B[X-1]).replace(/[{}\\]/g,"\\$&"),String(P.raw[X]));if(s7===void 0)s7=zW();return s7(D,Z.join(""))};Object.defineProperties(f3.prototype,S8);var g3=f3();g3.supportsColor=n7;g3.stderr=f3({level:i7?i7.level:0});g3.stderr.supportsColor=i7;EW.exports=g3});var t=Q((GT)=>{var PF=Symbol.for("yaml.alias"),VW=Symbol.for("yaml.document"),p3=Symbol.for("yaml.map"),wW=Symbol.for("yaml.pair"),BF=Symbol.for("yaml.scalar"),r3=Symbol.for("yaml.seq"),p2=Symbol.for("yaml.node.type"),YT=(D)=>!!D&&typeof D==="object"&&D[p2]===PF,HT=(D)=>!!D&&typeof D==="object"&&D[p2]===VW,UT=(D)=>!!D&&typeof D==="object"&&D[p2]===p3,WT=(D)=>!!D&&typeof D==="object"&&D[p2]===wW,jW=(D)=>!!D&&typeof D==="object"&&D[p2]===BF,OT=(D)=>!!D&&typeof D==="object"&&D[p2]===r3;function bW(D){if(D&&typeof D==="object")switch(D[p2]){case p3:case r3:return!0}return!1}function zT(D){if(D&&typeof D==="object")switch(D[p2]){case PF:case p3:case BF:case r3:return!0}return!1}var QT=(D)=>(jW(D)||bW(D))&&!!D.anchor;GT.ALIAS=PF;GT.DOC=VW;GT.MAP=p3;GT.NODE_TYPE=p2;GT.PAIR=wW;GT.SCALAR=BF;GT.SEQ=r3;GT.hasAnchor=QT;GT.isAlias=YT;GT.isCollection=bW;GT.isDocument=HT;GT.isMap=UT;GT.isNode=zT;GT.isPair=WT;GT.isScalar=jW;GT.isSeq=OT});var c6=Q((NT)=>{var bD=t(),pD=Symbol("break visit"),SW=Symbol("skip children"),_2=Symbol("remove node");function a3(D,F){let P=TW(F);if(bD.isDocument(D)){if(T8(null,D.contents,P,Object.freeze([D]))===_2)D.contents=null}else T8(null,D,P,Object.freeze([]))}a3.BREAK=pD;a3.SKIP=SW;a3.REMOVE=_2;function T8(D,F,P,B){let Z=uW(D,F,P,B);if(bD.isNode(Z)||bD.isPair(Z))return NW(D,B,Z),T8(D,Z,P,B);if(typeof Z!=="symbol"){if(bD.isCollection(F)){B=Object.freeze(B.concat(F));for(let X=0;X<F.items.length;++X){let q=T8(X,F.items[X],P,B);if(typeof q==="number")X=q-1;else if(q===pD)return pD;else if(q===_2)F.items.splice(X,1),X-=1}}else if(bD.isPair(F)){B=Object.freeze(B.concat(F));let X=T8("key",F.key,P,B);if(X===pD)return pD;else if(X===_2)F.key=null;let q=T8("value",F.value,P,B);if(q===pD)return pD;else if(q===_2)F.value=null}}return Z}async function s3(D,F){let P=TW(F);if(bD.isDocument(D)){if(await u8(null,D.contents,P,Object.freeze([D]))===_2)D.contents=null}else await u8(null,D,P,Object.freeze([]))}s3.BREAK=pD;s3.SKIP=SW;s3.REMOVE=_2;async function u8(D,F,P,B){let Z=await uW(D,F,P,B);if(bD.isNode(Z)||bD.isPair(Z))return NW(D,B,Z),u8(D,Z,P,B);if(typeof Z!=="symbol"){if(bD.isCollection(F)){B=Object.freeze(B.concat(F));for(let X=0;X<F.items.length;++X){let q=await u8(X,F.items[X],P,B);if(typeof q==="number")X=q-1;else if(q===pD)return pD;else if(q===_2)F.items.splice(X,1),X-=1}}else if(bD.isPair(F)){B=Object.freeze(B.concat(F));let X=await u8("key",F.key,P,B);if(X===pD)return pD;else if(X===_2)F.key=null;let q=await u8("value",F.value,P,B);if(q===pD)return pD;else if(q===_2)F.value=null}}return Z}function TW(D){if(typeof D==="object"&&(D.Collection||D.Node||D.Value))return Object.assign({Alias:D.Node,Map:D.Node,Scalar:D.Node,Seq:D.Node},D.Value&&{Map:D.Value,Scalar:D.Value,Seq:D.Value},D.Collection&&{Map:D.Collection,Seq:D.Collection},D);return D}function uW(D,F,P,B){if(typeof P==="function")return P(D,F,B);if(bD.isMap(F))return P.Map?.(D,F,B);if(bD.isSeq(F))return P.Seq?.(D,F,B);if(bD.isPair(F))return P.Pair?.(D,F,B);if(bD.isScalar(F))return P.Scalar?.(D,F,B);if(bD.isAlias(F))return P.Alias?.(D,F,B);return}function NW(D,F,P){let B=F[F.length-1];if(bD.isCollection(B))B.items[D]=P;else if(bD.isPair(B))if(D==="key")B.key=P;else B.value=P;else if(bD.isDocument(B))B.contents=P;else{let Z=bD.isAlias(B)?"alias":"scalar";throw new Error(`Cannot replace node with ${Z} parent`)}}NT.visit=a3;NT.visitAsync=s3});var ZF=Q((gT)=>{var _W=t(),xT=c6(),fT={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},hT=(D)=>D.replace(/[!,[\]{}]/g,(F)=>fT[F]);class q2{constructor(D,F){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},q2.defaultYaml,D),this.tags=Object.assign({},q2.defaultTags,F)}clone(){let D=new q2(this.yaml,this.tags);return D.docStart=this.docStart,D}atDocument(){let D=new q2(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:q2.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},q2.defaultTags);break}return D}add(D,F){if(this.atNextDocument)this.yaml={explicit:q2.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},q2.defaultTags),this.atNextDocument=!1;let P=D.trim().split(/[ \t]+/),B=P.shift();switch(B){case"%TAG":{if(P.length!==2){if(F(0,"%TAG directive should contain exactly two parts"),P.length<2)return!1}let[Z,X]=P;return this.tags[Z]=X,!0}case"%YAML":{if(this.yaml.explicit=!0,P.length!==1)return F(0,"%YAML directive should contain exactly one part"),!1;let[Z]=P;if(Z==="1.1"||Z==="1.2")return this.yaml.version=Z,!0;else{let X=/^\d+\.\d+$/.test(Z);return F(6,`Unsupported YAML version ${Z}`,X),!1}}default:return F(0,`Unknown directive ${B}`,!0),!1}}tagName(D,F){if(D==="!")return"!";if(D[0]!=="!")return F(`Not a valid tag: ${D}`),null;if(D[1]==="<"){let X=D.slice(2,-1);if(X==="!"||X==="!!")return F(`Verbatim tags aren't resolved, so ${D} is invalid.`),null;if(D[D.length-1]!==">")F("Verbatim tags must end with a >");return X}let[,P,B]=D.match(/^(.*!)([^!]*)$/s);if(!B)F(`The ${D} tag has no suffix`);let Z=this.tags[P];if(Z)try{return Z+decodeURIComponent(B)}catch(X){return F(String(X)),null}if(P==="!")return D;return F(`Could not resolve tag: ${D}`),null}tagString(D){for(let[F,P]of Object.entries(this.tags))if(D.startsWith(P))return F+hT(D.substring(P.length));return D[0]==="!"?D:`!<${D}>`}toString(D){let F=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],P=Object.entries(this.tags),B;if(D&&P.length>0&&_W.isNode(D.contents)){let Z={};xT.visit(D.contents,(X,q)=>{if(_W.isNode(q)&&q.tag)Z[q.tag]=!0}),B=Object.keys(Z)}else B=[];for(let[Z,X]of P){if(Z==="!!"&&X==="tag:yaml.org,2002:")continue;if(!D||B.some((q)=>q.startsWith(X)))F.push(`%TAG ${Z} ${X}`)}return F.join(`
210
- `)}}q2.defaultYaml={explicit:!1,version:"1.2"};q2.defaultTags={"!!":"tag:yaml.org,2002:"};gT.Directives=q2});var n3=Q((cT)=>{var kW=t(),yT=c6();function mT(D){if(/[\x00-\x19\s,[\]{}]/.test(D)){let P=`Anchor must not contain whitespace or control characters: ${JSON.stringify(D)}`;throw new Error(P)}return!0}function xW(D){let F=new Set;return yT.visit(D,{Value(P,B){if(B.anchor)F.add(B.anchor)}}),F}function fW(D,F){for(let P=1;;++P){let B=`${D}${P}`;if(!F.has(B))return B}}function lT(D,F){let P=[],B=new Map,Z=null;return{onAnchor:(X)=>{P.push(X),Z??(Z=xW(D));let q=fW(F,Z);return Z.add(q),q},setAnchors:()=>{for(let X of P){let q=B.get(X);if(typeof q==="object"&&q.anchor&&(kW.isScalar(q.node)||kW.isCollection(q.node)))q.node.anchor=q.anchor;else{let J=new Error("Failed to resolve repeated object (this should not happen)");throw J.source=X,J}}},sourceObjects:B}}cT.anchorIsValid=mT;cT.anchorNames=xW;cT.createNodeAnchors=lT;cT.findNewAnchor=fW});var XF=Q((sT)=>{function d6(D,F,P,B){if(B&&typeof B==="object")if(Array.isArray(B))for(let Z=0,X=B.length;Z<X;++Z){let q=B[Z],J=d6(D,B,String(Z),q);if(J===void 0)delete B[Z];else if(J!==q)B[Z]=J}else if(B instanceof Map)for(let Z of Array.from(B.keys())){let X=B.get(Z),q=d6(D,B,Z,X);if(q===void 0)B.delete(Z);else if(q!==X)B.set(Z,q)}else if(B instanceof Set)for(let Z of Array.from(B)){let X=d6(D,B,Z,Z);if(X===void 0)B.delete(Z);else if(X!==Z)B.delete(Z),B.add(X)}else for(let[Z,X]of Object.entries(B)){let q=d6(D,B,Z,X);if(q===void 0)delete B[Z];else if(q!==X)B[Z]=q}return D.call(F,P,B)}sT.applyReviver=d6});var H0=Q((oT)=>{var iT=t();function hW(D,F,P){if(Array.isArray(D))return D.map((B,Z)=>hW(B,String(Z),P));if(D&&typeof D.toJSON==="function"){if(!P||!iT.hasAnchor(D))return D.toJSON(F,P);let B={aliasCount:0,count:1,res:void 0};P.anchors.set(D,B),P.onCreate=(X)=>{B.res=X,delete P.onCreate};let Z=D.toJSON(F,P);if(P.onCreate)P.onCreate(Z);return Z}if(typeof D==="bigint"&&!P?.keep)return Number(D);return D}oT.toJS=hW});var i3=Q((Fu)=>{var eT=XF(),gW=t(),Du=H0();class vW{constructor(D){Object.defineProperty(this,gW.NODE_TYPE,{value:D})}clone(){let D=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)D.range=this.range.slice();return D}toJS(D,{mapAsMap:F,maxAliasCount:P,onAnchor:B,reviver:Z}={}){if(!gW.isDocument(D))throw new TypeError("A document argument is required");let X={anchors:new Map,doc:D,keep:!0,mapAsMap:F===!0,mapKeyWarned:!1,maxAliasCount:typeof P==="number"?P:100},q=Du.toJS(this,"",X);if(typeof B==="function")for(let{count:J,res:Y}of X.anchors.values())B(Y,J);return typeof Z==="function"?eT.applyReviver(Z,{"":q},"",q):q}}Fu.NodeBase=vW});var p6=Q((Ju)=>{var Bu=n3(),Zu=c6(),N8=t(),Xu=i3(),qu=H0();class yW extends Xu.NodeBase{constructor(D){super(N8.ALIAS);this.source=D,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(D,F){let P;if(F?.aliasResolveCache)P=F.aliasResolveCache;else if(P=[],Zu.visit(D,{Node:(Z,X)=>{if(N8.isAlias(X)||N8.hasAnchor(X))P.push(X)}}),F)F.aliasResolveCache=P;let B=void 0;for(let Z of P){if(Z===this)break;if(Z.anchor===this.source)B=Z}return B}toJSON(D,F){if(!F)return{source:this.source};let{anchors:P,doc:B,maxAliasCount:Z}=F,X=this.resolve(B,F);if(!X){let J=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(J)}let q=P.get(X);if(!q)qu.toJS(X,null,F),q=P.get(X);if(!q||q.res===void 0)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(Z>=0){if(q.count+=1,q.aliasCount===0)q.aliasCount=o3(B,X,P);if(q.count*q.aliasCount>Z)throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return q.res}toString(D,F,P){let B=`*${this.source}`;if(D){if(Bu.anchorIsValid(this.source),D.options.verifyAliasOrder&&!D.anchors.has(this.source)){let Z=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(Z)}if(D.implicitKey)return`${B} `}return B}}function o3(D,F,P){if(N8.isAlias(F)){let B=F.resolve(D),Z=P&&B&&P.get(B);return Z?Z.count*Z.aliasCount:0}else if(N8.isCollection(F)){let B=0;for(let Z of F.items){let X=o3(D,Z,P);if(X>B)B=X}return B}else if(N8.isPair(F)){let B=o3(D,F.key,P),Z=o3(D,F.value,P);return Math.max(B,Z)}return 1}Ju.Alias=yW});var CD=Q((zu)=>{var Hu=t(),Uu=i3(),Wu=H0(),Ou=(D)=>!D||typeof D!=="function"&&typeof D!=="object";class s0 extends Uu.NodeBase{constructor(D){super(Hu.SCALAR);this.value=D}toJSON(D,F){return F?.keep?this.value:Wu.toJS(this.value,D,F)}toString(){return String(this.value)}}s0.BLOCK_FOLDED="BLOCK_FOLDED";s0.BLOCK_LITERAL="BLOCK_LITERAL";s0.PLAIN="PLAIN";s0.QUOTE_DOUBLE="QUOTE_DOUBLE";s0.QUOTE_SINGLE="QUOTE_SINGLE";zu.Scalar=s0;zu.isScalarValue=Ou});var r6=Q((Eu)=>{var Ru=p6(),n0=t(),mW=CD(),Iu="tag:yaml.org,2002:";function $u(D,F,P){if(F){let B=P.filter((X)=>X.tag===F),Z=B.find((X)=>!X.format)??B[0];if(!Z)throw new Error(`Tag ${F} not found`);return Z}return P.find((B)=>B.identify?.(D)&&!B.format)}function Mu(D,F,P){if(n0.isDocument(D))D=D.contents;if(n0.isNode(D))return D;if(n0.isPair(D)){let W=P.schema[n0.MAP].createNode?.(P.schema,null,P);return W.items.push(D),W}if(D instanceof String||D instanceof Number||D instanceof Boolean||typeof BigInt!=="undefined"&&D instanceof BigInt)D=D.valueOf();let{aliasDuplicateObjects:B,onAnchor:Z,onTagObj:X,schema:q,sourceObjects:J}=P,Y=void 0;if(B&&D&&typeof D==="object")if(Y=J.get(D),Y)return Y.anchor??(Y.anchor=Z(D)),new Ru.Alias(Y.anchor);else Y={anchor:null,node:null},J.set(D,Y);if(F?.startsWith("!!"))F=Iu+F.slice(2);let H=$u(D,F,q.tags);if(!H){if(D&&typeof D.toJSON==="function")D=D.toJSON();if(!D||typeof D!=="object"){let W=new mW.Scalar(D);if(Y)Y.node=W;return W}H=D instanceof Map?q[n0.MAP]:(Symbol.iterator in Object(D))?q[n0.SEQ]:q[n0.MAP]}if(X)X(H),delete P.onTagObj;let U=H?.createNode?H.createNode(P.schema,D,P):typeof H?.nodeClass?.from==="function"?H.nodeClass.from(P.schema,D,P):new mW.Scalar(D);if(F)U.tag=F;else if(!H.default)U.tag=H.tag;if(Y)Y.node=U;return U}Eu.createNode=Mu});var t3=Q((Lu)=>{var Au=r6(),k2=t(),Cu=i3();function qF(D,F,P){let B=P;for(let Z=F.length-1;Z>=0;--Z){let X=F[Z];if(typeof X==="number"&&Number.isInteger(X)&&X>=0){let q=[];q[X]=B,B=q}else B=new Map([[X,B]])}return Au.createNode(B,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:D,sourceObjects:new Map})}var lW=(D)=>D==null||typeof D==="object"&&!!D[Symbol.iterator]().next().done;class cW extends Cu.NodeBase{constructor(D,F){super(D);Object.defineProperty(this,"schema",{value:F,configurable:!0,enumerable:!1,writable:!0})}clone(D){let F=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(D)F.schema=D;if(F.items=F.items.map((P)=>k2.isNode(P)||k2.isPair(P)?P.clone(D):P),this.range)F.range=this.range.slice();return F}addIn(D,F){if(lW(D))this.add(F);else{let[P,...B]=D,Z=this.get(P,!0);if(k2.isCollection(Z))Z.addIn(B,F);else if(Z===void 0&&this.schema)this.set(P,qF(this.schema,B,F));else throw new Error(`Expected YAML collection at ${P}. Remaining path: ${B}`)}}deleteIn(D){let[F,...P]=D;if(P.length===0)return this.delete(F);let B=this.get(F,!0);if(k2.isCollection(B))return B.deleteIn(P);else throw new Error(`Expected YAML collection at ${F}. Remaining path: ${P}`)}getIn(D,F){let[P,...B]=D,Z=this.get(P,!0);if(B.length===0)return!F&&k2.isScalar(Z)?Z.value:Z;else return k2.isCollection(Z)?Z.getIn(B,F):void 0}hasAllNullValues(D){return this.items.every((F)=>{if(!k2.isPair(F))return!1;let P=F.value;return P==null||D&&k2.isScalar(P)&&P.value==null&&!P.commentBefore&&!P.comment&&!P.tag})}hasIn(D){let[F,...P]=D;if(P.length===0)return this.has(F);let B=this.get(F,!0);return k2.isCollection(B)?B.hasIn(P):!1}setIn(D,F){let[P,...B]=D;if(B.length===0)this.set(P,F);else{let Z=this.get(P,!0);if(k2.isCollection(Z))Z.setIn(B,F);else if(Z===void 0&&this.schema)this.set(P,qF(this.schema,B,F));else throw new Error(`Expected YAML collection at ${P}. Remaining path: ${B}`)}}}Lu.Collection=cW;Lu.collectionFromPath=qF;Lu.isEmptyPath=lW});var a6=Q((Tu)=>{var bu=(D)=>D.replace(/^(?!$)(?: $)?/gm,"#");function JF(D,F){if(/^\n+$/.test(D))return D.substring(1);return F?D.replace(/^(?! *$)/gm,F):D}var Su=(D,F,P)=>D.endsWith(`
208
+ `],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function WW(D){let F=D[0]==="u",P=D[1]==="{";if(F&&!P&&D.length===5||D[0]==="x"&&D.length===3)return String.fromCharCode(parseInt(D.slice(1),16));if(F&&P)return String.fromCodePoint(parseInt(D.slice(2,-1),16));return sS.get(D)||D}function nS(D,F){let P=[],B=F.trim().split(/\s*,\s*/g),Z;for(let X of B){let q=Number(X);if(!Number.isNaN(q))P.push(q);else if(Z=X.match(rS))P.push(Z[2].replace(aS,(J,Y,H)=>Y?WW(Y):H));else throw Error(`Invalid Chalk template style argument: ${X} (in style '${D}')`)}return P}function iS(D){HW.lastIndex=0;let F=[],P;while((P=HW.exec(D))!==null){let B=P[1];if(P[2]){let Z=nS(B,P[2]);F.push([B].concat(Z))}else F.push([B])}return F}function UW(D,F){let P={};for(let Z of F)for(let X of Z.styles)P[X[0]]=Z.inverse?null:X.slice(1);let B=D;for(let[Z,X]of Object.entries(P)){if(!Array.isArray(X))continue;if(!(Z in B))throw Error(`Unknown Chalk style: ${Z}`);B=X.length>0?B[Z](...X):B[Z]}return B}OW.exports=(D,F)=>{let P=[],B=[],Z=[];if(F.replace(pS,(X,q,J,Y,H,U)=>{if(q)Z.push(WW(q));else if(Y){let W=Z.join("");Z=[],B.push(P.length===0?W:UW(D,P)(W)),P.push({inverse:J,styles:iS(Y)})}else if(H){if(P.length===0)throw Error("Found extraneous } in Chalk template literal");B.push(UW(D,P)(Z.join(""))),Z=[],P.pop()}else Z.push(U)}),B.push(Z.join("")),P.length>0){let X=`Chalk template literal is missing ${P.length} closing bracket${P.length===1?"":"s"} (\`}\`)`;throw Error(X)}return B.join("")}});var v3=Q((_d,EW)=>{var m6=k7(),{stdout:n7,stderr:i7}=qW(),{stringReplaceAll:oS,stringEncaseCRLFWithFirstIndex:tS}=YW(),{isArray:x3}=Array,GW=["ansi","ansi","ansi256","ansi16m"],S8=Object.create(null),eS=(D,F={})=>{if(F.level&&!(Number.isInteger(F.level)&&F.level>=0&&F.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let P=n7?n7.level:0;D.level=F.level===void 0?P:F.level};class RW{constructor(D){return IW(D)}}var IW=(D)=>{let F={};return eS(F,D),F.template=(...P)=>MW(F.template,...P),Object.setPrototypeOf(F,f3.prototype),Object.setPrototypeOf(F.template,F),F.template.constructor=()=>{throw Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},F.template.Instance=RW,F.template};function f3(D){return IW(D)}for(let[D,F]of Object.entries(m6))S8[D]={get(){let P=h3(this,o7(F.open,F.close,this._styler),this._isEmpty);return Object.defineProperty(this,D,{value:P}),P}};S8.visible={get(){let D=h3(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:D}),D}};var $W=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let D of $W)S8[D]={get(){let{level:F}=this;return function(...P){let B=o7(m6.color[GW[F]][D](...P),m6.color.close,this._styler);return h3(this,B,this._isEmpty)}}};for(let D of $W){let F="bg"+D[0].toUpperCase()+D.slice(1);S8[F]={get(){let{level:P}=this;return function(...B){let Z=o7(m6.bgColor[GW[P]][D](...B),m6.bgColor.close,this._styler);return h3(this,Z,this._isEmpty)}}}}var DT=Object.defineProperties(()=>{},{...S8,level:{enumerable:!0,get(){return this._generator.level},set(D){this._generator.level=D}}}),o7=(D,F,P)=>{let B,Z;if(P===void 0)B=D,Z=F;else B=P.openAll+D,Z=F+P.closeAll;return{open:D,close:F,openAll:B,closeAll:Z,parent:P}},h3=(D,F,P)=>{let B=(...Z)=>{if(x3(Z[0])&&x3(Z[0].raw))return QW(B,MW(B,...Z));return QW(B,Z.length===1?""+Z[0]:Z.join(" "))};return Object.setPrototypeOf(B,DT),B._generator=D,B._styler=F,B._isEmpty=P,B},QW=(D,F)=>{if(D.level<=0||!F)return D._isEmpty?"":F;let P=D._styler;if(P===void 0)return F;let{openAll:B,closeAll:Z}=P;if(F.indexOf("\x1B")!==-1)while(P!==void 0)F=oS(F,P.close,P.open),P=P.parent;let X=F.indexOf(`
209
+ `);if(X!==-1)F=tS(F,Z,B,X);return B+F+Z},s7,MW=(D,...F)=>{let[P]=F;if(!x3(P)||!x3(P.raw))return F.join(" ");let B=F.slice(1),Z=[P.raw[0]];for(let X=1;X<P.length;X++)Z.push(String(B[X-1]).replace(/[{}\\]/g,"\\$&"),String(P.raw[X]));if(s7===void 0)s7=zW();return s7(D,Z.join(""))};Object.defineProperties(f3.prototype,S8);var g3=f3();g3.supportsColor=n7;g3.stderr=f3({level:i7?i7.level:0});g3.stderr.supportsColor=i7;EW.exports=g3});var t=Q((GT)=>{var PF=Symbol.for("yaml.alias"),VW=Symbol.for("yaml.document"),p3=Symbol.for("yaml.map"),wW=Symbol.for("yaml.pair"),BF=Symbol.for("yaml.scalar"),r3=Symbol.for("yaml.seq"),p2=Symbol.for("yaml.node.type"),YT=(D)=>!!D&&typeof D==="object"&&D[p2]===PF,HT=(D)=>!!D&&typeof D==="object"&&D[p2]===VW,UT=(D)=>!!D&&typeof D==="object"&&D[p2]===p3,WT=(D)=>!!D&&typeof D==="object"&&D[p2]===wW,jW=(D)=>!!D&&typeof D==="object"&&D[p2]===BF,OT=(D)=>!!D&&typeof D==="object"&&D[p2]===r3;function bW(D){if(D&&typeof D==="object")switch(D[p2]){case p3:case r3:return!0}return!1}function zT(D){if(D&&typeof D==="object")switch(D[p2]){case PF:case p3:case BF:case r3:return!0}return!1}var QT=(D)=>(jW(D)||bW(D))&&!!D.anchor;GT.ALIAS=PF;GT.DOC=VW;GT.MAP=p3;GT.NODE_TYPE=p2;GT.PAIR=wW;GT.SCALAR=BF;GT.SEQ=r3;GT.hasAnchor=QT;GT.isAlias=YT;GT.isCollection=bW;GT.isDocument=HT;GT.isMap=UT;GT.isNode=zT;GT.isPair=WT;GT.isScalar=jW;GT.isSeq=OT});var c6=Q((NT)=>{var bD=t(),pD=Symbol("break visit"),SW=Symbol("skip children"),_2=Symbol("remove node");function a3(D,F){let P=TW(F);if(bD.isDocument(D)){if(T8(null,D.contents,P,Object.freeze([D]))===_2)D.contents=null}else T8(null,D,P,Object.freeze([]))}a3.BREAK=pD;a3.SKIP=SW;a3.REMOVE=_2;function T8(D,F,P,B){let Z=uW(D,F,P,B);if(bD.isNode(Z)||bD.isPair(Z))return NW(D,B,Z),T8(D,Z,P,B);if(typeof Z!=="symbol"){if(bD.isCollection(F)){B=Object.freeze(B.concat(F));for(let X=0;X<F.items.length;++X){let q=T8(X,F.items[X],P,B);if(typeof q==="number")X=q-1;else if(q===pD)return pD;else if(q===_2)F.items.splice(X,1),X-=1}}else if(bD.isPair(F)){B=Object.freeze(B.concat(F));let X=T8("key",F.key,P,B);if(X===pD)return pD;else if(X===_2)F.key=null;let q=T8("value",F.value,P,B);if(q===pD)return pD;else if(q===_2)F.value=null}}return Z}async function s3(D,F){let P=TW(F);if(bD.isDocument(D)){if(await u8(null,D.contents,P,Object.freeze([D]))===_2)D.contents=null}else await u8(null,D,P,Object.freeze([]))}s3.BREAK=pD;s3.SKIP=SW;s3.REMOVE=_2;async function u8(D,F,P,B){let Z=await uW(D,F,P,B);if(bD.isNode(Z)||bD.isPair(Z))return NW(D,B,Z),u8(D,Z,P,B);if(typeof Z!=="symbol"){if(bD.isCollection(F)){B=Object.freeze(B.concat(F));for(let X=0;X<F.items.length;++X){let q=await u8(X,F.items[X],P,B);if(typeof q==="number")X=q-1;else if(q===pD)return pD;else if(q===_2)F.items.splice(X,1),X-=1}}else if(bD.isPair(F)){B=Object.freeze(B.concat(F));let X=await u8("key",F.key,P,B);if(X===pD)return pD;else if(X===_2)F.key=null;let q=await u8("value",F.value,P,B);if(q===pD)return pD;else if(q===_2)F.value=null}}return Z}function TW(D){if(typeof D==="object"&&(D.Collection||D.Node||D.Value))return Object.assign({Alias:D.Node,Map:D.Node,Scalar:D.Node,Seq:D.Node},D.Value&&{Map:D.Value,Scalar:D.Value,Seq:D.Value},D.Collection&&{Map:D.Collection,Seq:D.Collection},D);return D}function uW(D,F,P,B){if(typeof P==="function")return P(D,F,B);if(bD.isMap(F))return P.Map?.(D,F,B);if(bD.isSeq(F))return P.Seq?.(D,F,B);if(bD.isPair(F))return P.Pair?.(D,F,B);if(bD.isScalar(F))return P.Scalar?.(D,F,B);if(bD.isAlias(F))return P.Alias?.(D,F,B);return}function NW(D,F,P){let B=F[F.length-1];if(bD.isCollection(B))B.items[D]=P;else if(bD.isPair(B))if(D==="key")B.key=P;else B.value=P;else if(bD.isDocument(B))B.contents=P;else{let Z=bD.isAlias(B)?"alias":"scalar";throw Error(`Cannot replace node with ${Z} parent`)}}NT.visit=a3;NT.visitAsync=s3});var ZF=Q((gT)=>{var _W=t(),xT=c6(),fT={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},hT=(D)=>D.replace(/[!,[\]{}]/g,(F)=>fT[F]);class q2{constructor(D,F){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},q2.defaultYaml,D),this.tags=Object.assign({},q2.defaultTags,F)}clone(){let D=new q2(this.yaml,this.tags);return D.docStart=this.docStart,D}atDocument(){let D=new q2(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:q2.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},q2.defaultTags);break}return D}add(D,F){if(this.atNextDocument)this.yaml={explicit:q2.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},q2.defaultTags),this.atNextDocument=!1;let P=D.trim().split(/[ \t]+/),B=P.shift();switch(B){case"%TAG":{if(P.length!==2){if(F(0,"%TAG directive should contain exactly two parts"),P.length<2)return!1}let[Z,X]=P;return this.tags[Z]=X,!0}case"%YAML":{if(this.yaml.explicit=!0,P.length!==1)return F(0,"%YAML directive should contain exactly one part"),!1;let[Z]=P;if(Z==="1.1"||Z==="1.2")return this.yaml.version=Z,!0;else{let X=/^\d+\.\d+$/.test(Z);return F(6,`Unsupported YAML version ${Z}`,X),!1}}default:return F(0,`Unknown directive ${B}`,!0),!1}}tagName(D,F){if(D==="!")return"!";if(D[0]!=="!")return F(`Not a valid tag: ${D}`),null;if(D[1]==="<"){let X=D.slice(2,-1);if(X==="!"||X==="!!")return F(`Verbatim tags aren't resolved, so ${D} is invalid.`),null;if(D[D.length-1]!==">")F("Verbatim tags must end with a >");return X}let[,P,B]=D.match(/^(.*!)([^!]*)$/s);if(!B)F(`The ${D} tag has no suffix`);let Z=this.tags[P];if(Z)try{return Z+decodeURIComponent(B)}catch(X){return F(String(X)),null}if(P==="!")return D;return F(`Could not resolve tag: ${D}`),null}tagString(D){for(let[F,P]of Object.entries(this.tags))if(D.startsWith(P))return F+hT(D.substring(P.length));return D[0]==="!"?D:`!<${D}>`}toString(D){let F=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],P=Object.entries(this.tags),B;if(D&&P.length>0&&_W.isNode(D.contents)){let Z={};xT.visit(D.contents,(X,q)=>{if(_W.isNode(q)&&q.tag)Z[q.tag]=!0}),B=Object.keys(Z)}else B=[];for(let[Z,X]of P){if(Z==="!!"&&X==="tag:yaml.org,2002:")continue;if(!D||B.some((q)=>q.startsWith(X)))F.push(`%TAG ${Z} ${X}`)}return F.join(`
210
+ `)}}q2.defaultYaml={explicit:!1,version:"1.2"};q2.defaultTags={"!!":"tag:yaml.org,2002:"};gT.Directives=q2});var n3=Q((cT)=>{var kW=t(),yT=c6();function mT(D){if(/[\x00-\x19\s,[\]{}]/.test(D)){let P=`Anchor must not contain whitespace or control characters: ${JSON.stringify(D)}`;throw Error(P)}return!0}function xW(D){let F=new Set;return yT.visit(D,{Value(P,B){if(B.anchor)F.add(B.anchor)}}),F}function fW(D,F){for(let P=1;;++P){let B=`${D}${P}`;if(!F.has(B))return B}}function lT(D,F){let P=[],B=new Map,Z=null;return{onAnchor:(X)=>{P.push(X),Z??(Z=xW(D));let q=fW(F,Z);return Z.add(q),q},setAnchors:()=>{for(let X of P){let q=B.get(X);if(typeof q==="object"&&q.anchor&&(kW.isScalar(q.node)||kW.isCollection(q.node)))q.node.anchor=q.anchor;else{let J=Error("Failed to resolve repeated object (this should not happen)");throw J.source=X,J}}},sourceObjects:B}}cT.anchorIsValid=mT;cT.anchorNames=xW;cT.createNodeAnchors=lT;cT.findNewAnchor=fW});var XF=Q((sT)=>{function d6(D,F,P,B){if(B&&typeof B==="object")if(Array.isArray(B))for(let Z=0,X=B.length;Z<X;++Z){let q=B[Z],J=d6(D,B,String(Z),q);if(J===void 0)delete B[Z];else if(J!==q)B[Z]=J}else if(B instanceof Map)for(let Z of Array.from(B.keys())){let X=B.get(Z),q=d6(D,B,Z,X);if(q===void 0)B.delete(Z);else if(q!==X)B.set(Z,q)}else if(B instanceof Set)for(let Z of Array.from(B)){let X=d6(D,B,Z,Z);if(X===void 0)B.delete(Z);else if(X!==Z)B.delete(Z),B.add(X)}else for(let[Z,X]of Object.entries(B)){let q=d6(D,B,Z,X);if(q===void 0)delete B[Z];else if(q!==X)B[Z]=q}return D.call(F,P,B)}sT.applyReviver=d6});var H0=Q((oT)=>{var iT=t();function hW(D,F,P){if(Array.isArray(D))return D.map((B,Z)=>hW(B,String(Z),P));if(D&&typeof D.toJSON==="function"){if(!P||!iT.hasAnchor(D))return D.toJSON(F,P);let B={aliasCount:0,count:1,res:void 0};P.anchors.set(D,B),P.onCreate=(X)=>{B.res=X,delete P.onCreate};let Z=D.toJSON(F,P);if(P.onCreate)P.onCreate(Z);return Z}if(typeof D==="bigint"&&!P?.keep)return Number(D);return D}oT.toJS=hW});var i3=Q((Fu)=>{var eT=XF(),gW=t(),Du=H0();class vW{constructor(D){Object.defineProperty(this,gW.NODE_TYPE,{value:D})}clone(){let D=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)D.range=this.range.slice();return D}toJS(D,{mapAsMap:F,maxAliasCount:P,onAnchor:B,reviver:Z}={}){if(!gW.isDocument(D))throw TypeError("A document argument is required");let X={anchors:new Map,doc:D,keep:!0,mapAsMap:F===!0,mapKeyWarned:!1,maxAliasCount:typeof P==="number"?P:100},q=Du.toJS(this,"",X);if(typeof B==="function")for(let{count:J,res:Y}of X.anchors.values())B(Y,J);return typeof Z==="function"?eT.applyReviver(Z,{"":q},"",q):q}}Fu.NodeBase=vW});var p6=Q((Ju)=>{var Bu=n3(),Zu=c6(),N8=t(),Xu=i3(),qu=H0();class yW extends Xu.NodeBase{constructor(D){super(N8.ALIAS);this.source=D,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(D,F){let P;if(F?.aliasResolveCache)P=F.aliasResolveCache;else if(P=[],Zu.visit(D,{Node:(Z,X)=>{if(N8.isAlias(X)||N8.hasAnchor(X))P.push(X)}}),F)F.aliasResolveCache=P;let B=void 0;for(let Z of P){if(Z===this)break;if(Z.anchor===this.source)B=Z}return B}toJSON(D,F){if(!F)return{source:this.source};let{anchors:P,doc:B,maxAliasCount:Z}=F,X=this.resolve(B,F);if(!X){let J=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(J)}let q=P.get(X);if(!q)qu.toJS(X,null,F),q=P.get(X);if(!q||q.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(Z>=0){if(q.count+=1,q.aliasCount===0)q.aliasCount=o3(B,X,P);if(q.count*q.aliasCount>Z)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return q.res}toString(D,F,P){let B=`*${this.source}`;if(D){if(Bu.anchorIsValid(this.source),D.options.verifyAliasOrder&&!D.anchors.has(this.source)){let Z=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(Z)}if(D.implicitKey)return`${B} `}return B}}function o3(D,F,P){if(N8.isAlias(F)){let B=F.resolve(D),Z=P&&B&&P.get(B);return Z?Z.count*Z.aliasCount:0}else if(N8.isCollection(F)){let B=0;for(let Z of F.items){let X=o3(D,Z,P);if(X>B)B=X}return B}else if(N8.isPair(F)){let B=o3(D,F.key,P),Z=o3(D,F.value,P);return Math.max(B,Z)}return 1}Ju.Alias=yW});var CD=Q((zu)=>{var Hu=t(),Uu=i3(),Wu=H0(),Ou=(D)=>!D||typeof D!=="function"&&typeof D!=="object";class s0 extends Uu.NodeBase{constructor(D){super(Hu.SCALAR);this.value=D}toJSON(D,F){return F?.keep?this.value:Wu.toJS(this.value,D,F)}toString(){return String(this.value)}}s0.BLOCK_FOLDED="BLOCK_FOLDED";s0.BLOCK_LITERAL="BLOCK_LITERAL";s0.PLAIN="PLAIN";s0.QUOTE_DOUBLE="QUOTE_DOUBLE";s0.QUOTE_SINGLE="QUOTE_SINGLE";zu.Scalar=s0;zu.isScalarValue=Ou});var r6=Q((Eu)=>{var Ru=p6(),n0=t(),mW=CD(),Iu="tag:yaml.org,2002:";function $u(D,F,P){if(F){let B=P.filter((X)=>X.tag===F),Z=B.find((X)=>!X.format)??B[0];if(!Z)throw Error(`Tag ${F} not found`);return Z}return P.find((B)=>B.identify?.(D)&&!B.format)}function Mu(D,F,P){if(n0.isDocument(D))D=D.contents;if(n0.isNode(D))return D;if(n0.isPair(D)){let W=P.schema[n0.MAP].createNode?.(P.schema,null,P);return W.items.push(D),W}if(D instanceof String||D instanceof Number||D instanceof Boolean||typeof BigInt<"u"&&D instanceof BigInt)D=D.valueOf();let{aliasDuplicateObjects:B,onAnchor:Z,onTagObj:X,schema:q,sourceObjects:J}=P,Y=void 0;if(B&&D&&typeof D==="object")if(Y=J.get(D),Y)return Y.anchor??(Y.anchor=Z(D)),new Ru.Alias(Y.anchor);else Y={anchor:null,node:null},J.set(D,Y);if(F?.startsWith("!!"))F=Iu+F.slice(2);let H=$u(D,F,q.tags);if(!H){if(D&&typeof D.toJSON==="function")D=D.toJSON();if(!D||typeof D!=="object"){let W=new mW.Scalar(D);if(Y)Y.node=W;return W}H=D instanceof Map?q[n0.MAP]:(Symbol.iterator in Object(D))?q[n0.SEQ]:q[n0.MAP]}if(X)X(H),delete P.onTagObj;let U=H?.createNode?H.createNode(P.schema,D,P):typeof H?.nodeClass?.from==="function"?H.nodeClass.from(P.schema,D,P):new mW.Scalar(D);if(F)U.tag=F;else if(!H.default)U.tag=H.tag;if(Y)Y.node=U;return U}Eu.createNode=Mu});var t3=Q((Lu)=>{var Au=r6(),k2=t(),Cu=i3();function qF(D,F,P){let B=P;for(let Z=F.length-1;Z>=0;--Z){let X=F[Z];if(typeof X==="number"&&Number.isInteger(X)&&X>=0){let q=[];q[X]=B,B=q}else B=new Map([[X,B]])}return Au.createNode(B,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:D,sourceObjects:new Map})}var lW=(D)=>D==null||typeof D==="object"&&!!D[Symbol.iterator]().next().done;class cW extends Cu.NodeBase{constructor(D,F){super(D);Object.defineProperty(this,"schema",{value:F,configurable:!0,enumerable:!1,writable:!0})}clone(D){let F=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(D)F.schema=D;if(F.items=F.items.map((P)=>k2.isNode(P)||k2.isPair(P)?P.clone(D):P),this.range)F.range=this.range.slice();return F}addIn(D,F){if(lW(D))this.add(F);else{let[P,...B]=D,Z=this.get(P,!0);if(k2.isCollection(Z))Z.addIn(B,F);else if(Z===void 0&&this.schema)this.set(P,qF(this.schema,B,F));else throw Error(`Expected YAML collection at ${P}. Remaining path: ${B}`)}}deleteIn(D){let[F,...P]=D;if(P.length===0)return this.delete(F);let B=this.get(F,!0);if(k2.isCollection(B))return B.deleteIn(P);else throw Error(`Expected YAML collection at ${F}. Remaining path: ${P}`)}getIn(D,F){let[P,...B]=D,Z=this.get(P,!0);if(B.length===0)return!F&&k2.isScalar(Z)?Z.value:Z;else return k2.isCollection(Z)?Z.getIn(B,F):void 0}hasAllNullValues(D){return this.items.every((F)=>{if(!k2.isPair(F))return!1;let P=F.value;return P==null||D&&k2.isScalar(P)&&P.value==null&&!P.commentBefore&&!P.comment&&!P.tag})}hasIn(D){let[F,...P]=D;if(P.length===0)return this.has(F);let B=this.get(F,!0);return k2.isCollection(B)?B.hasIn(P):!1}setIn(D,F){let[P,...B]=D;if(B.length===0)this.set(P,F);else{let Z=this.get(P,!0);if(k2.isCollection(Z))Z.setIn(B,F);else if(Z===void 0&&this.schema)this.set(P,qF(this.schema,B,F));else throw Error(`Expected YAML collection at ${P}. Remaining path: ${B}`)}}}Lu.Collection=cW;Lu.collectionFromPath=qF;Lu.isEmptyPath=lW});var a6=Q((Tu)=>{var bu=(D)=>D.replace(/^(?!$)(?: $)?/gm,"#");function JF(D,F){if(/^\n+$/.test(D))return D.substring(1);return F?D.replace(/^(?! *$)/gm,F):D}var Su=(D,F,P)=>D.endsWith(`
211
211
  `)?JF(P,F):P.includes(`
212
212
  `)?`
213
213
  `+JF(P,F):(D.endsWith(" ")?"":" ")+P;Tu.indentComment=JF;Tu.lineComment=Su;Tu.stringifyComment=bu});var pW=Q((xu)=>{function ku(D,F,P="flow",{indentAtStart:B,lineWidth:Z=80,minContentWidth:X=20,onFold:q,onOverflow:J}={}){if(!Z||Z<0)return D;if(Z<X)X=0;let Y=Math.max(1+X,1+Z-F.length);if(D.length<=Y)return D;let H=[],U={},W=Z-F.length;if(typeof B==="number")if(B>Z-Math.max(2,X))H.push(0);else W=Z-B;let O=void 0,z=void 0,I=!1,R=-1,$=-1,K=-1;if(P==="block"){if(R=dW(D,R,F.length),R!==-1)W=R+Y}for(let A;A=D[R+=1];){if(P==="quoted"&&A==="\\"){switch($=R,D[R+1]){case"x":R+=3;break;case"u":R+=5;break;case"U":R+=9;break;default:R+=1}K=R}if(A===`
@@ -238,8 +238,8 @@ ${H}${j}${P}${z}`}function mu(D,F,P,B){let{type:Z,value:X}=D,{actualString:q,imp
238
238
  `)||U&&/[[\]{},]/.test(X))return _8(X,F);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(X))return J||U||!X.includes(`
239
239
  `)?_8(X,F):e3(D,F,P,B);if(!J&&!U&&Z!==M2.Scalar.PLAIN&&X.includes(`
240
240
  `))return e3(D,F,P,B);if(F5(X)){if(Y==="")return F.forceBlockIndent=!0,e3(D,F,P,B);else if(J&&Y===H)return _8(X,F)}let W=X.replace(/\n+/g,`$&
241
- ${Y}`);if(q){let O=(R)=>R.default&&R.tag!=="tag:yaml.org,2002:str"&&R.test?.test(W),{compat:z,tags:I}=F.doc.schema;if(I.some(O)||z?.some(O))return _8(X,F)}return J?W:U0.foldFlowLines(W,Y,U0.FOLD_FLOW,D5(F,!1))}function lu(D,F,P,B){let{implicitKey:Z,inFlow:X}=F,q=typeof D.value==="string"?D:Object.assign({},D,{value:String(D.value)}),{type:J}=D;if(J!==M2.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(q.value))J=M2.Scalar.QUOTE_DOUBLE}let Y=(U)=>{switch(U){case M2.Scalar.BLOCK_FOLDED:case M2.Scalar.BLOCK_LITERAL:return Z||X?_8(q.value,F):e3(q,F,P,B);case M2.Scalar.QUOTE_DOUBLE:return s6(q.value,F);case M2.Scalar.QUOTE_SINGLE:return YF(q.value,F);case M2.Scalar.PLAIN:return mu(q,F,P,B);default:return null}},H=Y(J);if(H===null){let{defaultKeyType:U,defaultStringType:W}=F.options,O=Z&&U||W;if(H=Y(O),H===null)throw new Error(`Unsupported default string type ${O}`)}return H}cu.stringifyString=lu});var i6=Q((tu)=>{var pu=n3(),W0=t(),ru=a6(),au=n6();function su(D,F){let P=Object.assign({blockQuote:!0,commentString:ru.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},D.schema.toStringOptions,F),B;switch(P.collectionStyle){case"block":B=!1;break;case"flow":B=!0;break;default:B=null}return{anchors:new Set,doc:D,flowCollectionPadding:P.flowCollectionPadding?" ":"",indent:"",indentStep:typeof P.indent==="number"?" ".repeat(P.indent):" ",inFlow:B,options:P}}function nu(D,F){if(F.tag){let Z=D.filter((X)=>X.tag===F.tag);if(Z.length>0)return Z.find((X)=>X.format===F.format)??Z[0]}let P=void 0,B;if(W0.isScalar(F)){B=F.value;let Z=D.filter((X)=>X.identify?.(B));if(Z.length>1){let X=Z.filter((q)=>q.test);if(X.length>0)Z=X}P=Z.find((X)=>X.format===F.format)??Z.find((X)=>!X.format)}else B=F,P=D.find((Z)=>Z.nodeClass&&B instanceof Z.nodeClass);if(!P){let Z=B?.constructor?.name??(B===null?"null":typeof B);throw new Error(`Tag not resolved for ${Z} value`)}return P}function iu(D,F,{anchors:P,doc:B}){if(!B.directives)return"";let Z=[],X=(W0.isScalar(D)||W0.isCollection(D))&&D.anchor;if(X&&pu.anchorIsValid(X))P.add(X),Z.push(`&${X}`);let q=D.tag??(F.default?null:F.tag);if(q)Z.push(B.directives.tagString(q));return Z.join(" ")}function ou(D,F,P,B){if(W0.isPair(D))return D.toString(F,P,B);if(W0.isAlias(D)){if(F.doc.directives)return D.toString(F);if(F.resolvedAliases?.has(D))throw new TypeError("Cannot stringify circular structure without alias nodes");else{if(F.resolvedAliases)F.resolvedAliases.add(D);else F.resolvedAliases=new Set([D]);D=D.resolve(F.doc)}}let Z=void 0,X=W0.isNode(D)?D:F.doc.createNode(D,{onTagObj:(Y)=>Z=Y});Z??(Z=nu(F.doc.schema.tags,X));let q=iu(X,Z,F);if(q.length>0)F.indentAtStart=(F.indentAtStart??0)+q.length+1;let J=typeof Z.stringify==="function"?Z.stringify(X,F,P,B):W0.isScalar(X)?au.stringifyString(X,F,P,B):X.toString(F,P,B);if(!q)return J;return W0.isScalar(X)||J[0]==="{"||J[0]==="["?`${q} ${J}`:`${q}
242
- ${F.indent}${J}`}tu.createStringifyContext=su;tu.stringify=ou});var sW=Q((PN)=>{var r2=t(),rW=CD(),aW=i6(),o6=a6();function FN({key:D,value:F},P,B,Z){let{allNullValues:X,doc:q,indent:J,indentStep:Y,options:{commentString:H,indentSeq:U,simpleKeys:W}}=P,O=r2.isNode(D)&&D.comment||null;if(W){if(O)throw new Error("With simple keys, key nodes cannot have comments");if(r2.isCollection(D)||!r2.isNode(D)&&typeof D==="object")throw new Error("With simple keys, collection cannot be used as a key value")}let z=!W&&(!D||O&&F==null&&!P.inFlow||r2.isCollection(D)||(r2.isScalar(D)?D.type===rW.Scalar.BLOCK_FOLDED||D.type===rW.Scalar.BLOCK_LITERAL:typeof D==="object"));P=Object.assign({},P,{allNullValues:!1,implicitKey:!z&&(W||!X),indent:J+Y});let I=!1,R=!1,$=aW.stringify(D,P,()=>I=!0,()=>R=!0);if(!z&&!P.inFlow&&$.length>1024){if(W)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");z=!0}if(P.inFlow){if(X||F==null){if(I&&B)B();return $===""?"?":z?`? ${$}`:$}}else if(X&&!W||F==null&&z){if($=`? ${$}`,O&&!I)$+=o6.lineComment($,P.indent,H(O));else if(R&&Z)Z();return $}if(I)O=null;if(z){if(O)$+=o6.lineComment($,P.indent,H(O));$=`? ${$}
241
+ ${Y}`);if(q){let O=(R)=>R.default&&R.tag!=="tag:yaml.org,2002:str"&&R.test?.test(W),{compat:z,tags:I}=F.doc.schema;if(I.some(O)||z?.some(O))return _8(X,F)}return J?W:U0.foldFlowLines(W,Y,U0.FOLD_FLOW,D5(F,!1))}function lu(D,F,P,B){let{implicitKey:Z,inFlow:X}=F,q=typeof D.value==="string"?D:Object.assign({},D,{value:String(D.value)}),{type:J}=D;if(J!==M2.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(q.value))J=M2.Scalar.QUOTE_DOUBLE}let Y=(U)=>{switch(U){case M2.Scalar.BLOCK_FOLDED:case M2.Scalar.BLOCK_LITERAL:return Z||X?_8(q.value,F):e3(q,F,P,B);case M2.Scalar.QUOTE_DOUBLE:return s6(q.value,F);case M2.Scalar.QUOTE_SINGLE:return YF(q.value,F);case M2.Scalar.PLAIN:return mu(q,F,P,B);default:return null}},H=Y(J);if(H===null){let{defaultKeyType:U,defaultStringType:W}=F.options,O=Z&&U||W;if(H=Y(O),H===null)throw Error(`Unsupported default string type ${O}`)}return H}cu.stringifyString=lu});var i6=Q((tu)=>{var pu=n3(),W0=t(),ru=a6(),au=n6();function su(D,F){let P=Object.assign({blockQuote:!0,commentString:ru.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},D.schema.toStringOptions,F),B;switch(P.collectionStyle){case"block":B=!1;break;case"flow":B=!0;break;default:B=null}return{anchors:new Set,doc:D,flowCollectionPadding:P.flowCollectionPadding?" ":"",indent:"",indentStep:typeof P.indent==="number"?" ".repeat(P.indent):" ",inFlow:B,options:P}}function nu(D,F){if(F.tag){let Z=D.filter((X)=>X.tag===F.tag);if(Z.length>0)return Z.find((X)=>X.format===F.format)??Z[0]}let P=void 0,B;if(W0.isScalar(F)){B=F.value;let Z=D.filter((X)=>X.identify?.(B));if(Z.length>1){let X=Z.filter((q)=>q.test);if(X.length>0)Z=X}P=Z.find((X)=>X.format===F.format)??Z.find((X)=>!X.format)}else B=F,P=D.find((Z)=>Z.nodeClass&&B instanceof Z.nodeClass);if(!P){let Z=B?.constructor?.name??(B===null?"null":typeof B);throw Error(`Tag not resolved for ${Z} value`)}return P}function iu(D,F,{anchors:P,doc:B}){if(!B.directives)return"";let Z=[],X=(W0.isScalar(D)||W0.isCollection(D))&&D.anchor;if(X&&pu.anchorIsValid(X))P.add(X),Z.push(`&${X}`);let q=D.tag??(F.default?null:F.tag);if(q)Z.push(B.directives.tagString(q));return Z.join(" ")}function ou(D,F,P,B){if(W0.isPair(D))return D.toString(F,P,B);if(W0.isAlias(D)){if(F.doc.directives)return D.toString(F);if(F.resolvedAliases?.has(D))throw TypeError("Cannot stringify circular structure without alias nodes");else{if(F.resolvedAliases)F.resolvedAliases.add(D);else F.resolvedAliases=new Set([D]);D=D.resolve(F.doc)}}let Z=void 0,X=W0.isNode(D)?D:F.doc.createNode(D,{onTagObj:(Y)=>Z=Y});Z??(Z=nu(F.doc.schema.tags,X));let q=iu(X,Z,F);if(q.length>0)F.indentAtStart=(F.indentAtStart??0)+q.length+1;let J=typeof Z.stringify==="function"?Z.stringify(X,F,P,B):W0.isScalar(X)?au.stringifyString(X,F,P,B):X.toString(F,P,B);if(!q)return J;return W0.isScalar(X)||J[0]==="{"||J[0]==="["?`${q} ${J}`:`${q}
242
+ ${F.indent}${J}`}tu.createStringifyContext=su;tu.stringify=ou});var sW=Q((PN)=>{var r2=t(),rW=CD(),aW=i6(),o6=a6();function FN({key:D,value:F},P,B,Z){let{allNullValues:X,doc:q,indent:J,indentStep:Y,options:{commentString:H,indentSeq:U,simpleKeys:W}}=P,O=r2.isNode(D)&&D.comment||null;if(W){if(O)throw Error("With simple keys, key nodes cannot have comments");if(r2.isCollection(D)||!r2.isNode(D)&&typeof D==="object")throw Error("With simple keys, collection cannot be used as a key value")}let z=!W&&(!D||O&&F==null&&!P.inFlow||r2.isCollection(D)||(r2.isScalar(D)?D.type===rW.Scalar.BLOCK_FOLDED||D.type===rW.Scalar.BLOCK_LITERAL:typeof D==="object"));P=Object.assign({},P,{allNullValues:!1,implicitKey:!z&&(W||!X),indent:J+Y});let I=!1,R=!1,$=aW.stringify(D,P,()=>I=!0,()=>R=!0);if(!z&&!P.inFlow&&$.length>1024){if(W)throw Error("With simple keys, single line scalar must not span more than 1024 characters");z=!0}if(P.inFlow){if(X||F==null){if(I&&B)B();return $===""?"?":z?`? ${$}`:$}}else if(X&&!W||F==null&&z){if($=`? ${$}`,O&&!I)$+=o6.lineComment($,P.indent,H(O));else if(R&&Z)Z();return $}if(I)O=null;if(z){if(O)$+=o6.lineComment($,P.indent,H(O));$=`? ${$}
243
243
  ${J}:`}else if($=`${$}:`,O)$+=o6.lineComment($,P.indent,H(O));let K,j,A;if(r2.isNode(F))K=!!F.spaceBefore,j=F.commentBefore,A=F.comment;else if(K=!1,j=null,A=null,F&&typeof F==="object")F=q.createNode(F);if(P.implicitKey=!1,!z&&!O&&r2.isScalar(F))P.indentAtStart=$.length+1;if(R=!1,!U&&Y.length>=2&&!P.inFlow&&!z&&r2.isSeq(F)&&!F.flow&&!F.tag&&!F.anchor)P.indent=P.indent.substring(2);let S=!1,C=aW.stringify(F,P,()=>S=!0,()=>R=!0),u=" ";if(O||K||j){if(u=K?`
244
244
  `:"",j){let m=H(j);u+=`
245
245
  ${o6.indentComment(m,P.indent)}`}if(C===""&&!P.inFlow){if(u===`
@@ -249,20 +249,20 @@ ${o6.indentComment(m,P.indent)}`}if(C===""&&!P.inFlow){if(u===`
249
249
  ${P.indent}`}else if(!z&&r2.isCollection(F)){let m=C[0],w=C.indexOf(`
250
250
  `),M=w!==-1,h=P.inFlow??F.flow??F.items.length===0;if(M||!h){let GD=!1;if(M&&(m==="&"||m==="!")){let XD=C.indexOf(" ");if(m==="&"&&XD!==-1&&XD<w&&C[XD+1]==="!")XD=C.indexOf(" ",XD+1);if(XD===-1||w<XD)GD=!0}if(!GD)u=`
251
251
  ${P.indent}`}}else if(C===""||C[0]===`
252
- `)u="";if($+=u+C,P.inFlow){if(S&&B)B()}else if(A&&!S)$+=o6.lineComment($,P.indent,H(A));else if(R&&Z)Z();return $}PN.stringifyPair=FN});var UF=Q((qN)=>{var nW=vD("process");function ZN(D,...F){if(D==="debug")console.log(...F)}function XN(D,F){if(D==="debug"||D==="warn")if(typeof nW.emitWarning==="function")nW.emitWarning(F);else console.warn(F)}qN.debug=ZN;qN.warn=XN});var Z5=Q((UN)=>{var t6=t(),iW=CD(),P5="<<",B5={identify:(D)=>D===P5||typeof D==="symbol"&&D.description===P5,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new iW.Scalar(Symbol(P5)),{addToJSMap:oW}),stringify:()=>P5},HN=(D,F)=>(B5.identify(F)||t6.isScalar(F)&&(!F.type||F.type===iW.Scalar.PLAIN)&&B5.identify(F.value))&&D?.doc.schema.tags.some((P)=>P.tag===B5.tag&&P.default);function oW(D,F,P){if(P=D&&t6.isAlias(P)?P.resolve(D.doc):P,t6.isSeq(P))for(let B of P.items)WF(D,F,B);else if(Array.isArray(P))for(let B of P)WF(D,F,B);else WF(D,F,P)}function WF(D,F,P){let B=D&&t6.isAlias(P)?P.resolve(D.doc):P;if(!t6.isMap(B))throw new Error("Merge sources must be maps or map aliases");let Z=B.toJSON(null,D,Map);for(let[X,q]of Z)if(F instanceof Map){if(!F.has(X))F.set(X,q)}else if(F instanceof Set)F.add(X);else if(!Object.prototype.hasOwnProperty.call(F,X))Object.defineProperty(F,X,{value:q,writable:!0,enumerable:!0,configurable:!0});return F}UN.addMergeToJSMap=oW;UN.isMergeKey=HN;UN.merge=B5});var zF=Q(($N)=>{var QN=UF(),tW=Z5(),GN=i6(),eW=t(),OF=H0();function RN(D,F,{key:P,value:B}){if(eW.isNode(P)&&P.addToJSMap)P.addToJSMap(D,F,B);else if(tW.isMergeKey(D,P))tW.addMergeToJSMap(D,F,B);else{let Z=OF.toJS(P,"",D);if(F instanceof Map)F.set(Z,OF.toJS(B,Z,D));else if(F instanceof Set)F.add(Z);else{let X=IN(P,Z,D),q=OF.toJS(B,X,D);if(X in F)Object.defineProperty(F,X,{value:q,writable:!0,enumerable:!0,configurable:!0});else F[X]=q}}return F}function IN(D,F,P){if(F===null)return"";if(typeof F!=="object")return String(F);if(eW.isNode(D)&&P?.doc){let B=GN.createStringifyContext(P.doc,{});B.anchors=new Set;for(let X of P.anchors.keys())B.anchors.add(X.anchor);B.inFlow=!0,B.inStringifyKey=!0;let Z=D.toString(B);if(!P.mapKeyWarned){let X=JSON.stringify(Z);if(X.length>40)X=X.substring(0,36)+'..."';QN.warn(P.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${X}. Set mapAsMap: true to use object keys.`),P.mapKeyWarned=!0}return Z}return JSON.stringify(F)}$N.addPairToJSMap=RN});var O0=Q((CN)=>{var DO=r6(),EN=sW(),KN=zF(),X5=t();function AN(D,F,P){let B=DO.createNode(D,void 0,P),Z=DO.createNode(F,void 0,P);return new q5(B,Z)}class q5{constructor(D,F=null){Object.defineProperty(this,X5.NODE_TYPE,{value:X5.PAIR}),this.key=D,this.value=F}clone(D){let{key:F,value:P}=this;if(X5.isNode(F))F=F.clone(D);if(X5.isNode(P))P=P.clone(D);return new q5(F,P)}toJSON(D,F){let P=F?.mapAsMap?new Map:{};return KN.addPairToJSMap(F,P,this)}toString(D,F,P){return D?.doc?EN.stringifyPair(this,D,F,P):JSON.stringify(this)}}CN.Pair=q5;CN.createPair=AN});var QF=Q((SN)=>{var i0=t(),FO=i6(),J5=a6();function wN(D,F,P){return(F.inFlow??D.flow?bN:jN)(D,F,P)}function jN({comment:D,items:F},P,{blockItemPrefix:B,flowChars:Z,itemIndent:X,onChompKeep:q,onComment:J}){let{indent:Y,options:{commentString:H}}=P,U=Object.assign({},P,{indent:X,type:null}),W=!1,O=[];for(let I=0;I<F.length;++I){let R=F[I],$=null;if(i0.isNode(R)){if(!W&&R.spaceBefore)O.push("");if(Y5(P,O,R.commentBefore,W),R.comment)$=R.comment}else if(i0.isPair(R)){let j=i0.isNode(R.key)?R.key:null;if(j){if(!W&&j.spaceBefore)O.push("");Y5(P,O,j.commentBefore,W)}}W=!1;let K=FO.stringify(R,U,()=>$=null,()=>W=!0);if($)K+=J5.lineComment(K,X,H($));if(W&&$)W=!1;O.push(B+K)}let z;if(O.length===0)z=Z.start+Z.end;else{z=O[0];for(let I=1;I<O.length;++I){let R=O[I];z+=R?`
252
+ `)u="";if($+=u+C,P.inFlow){if(S&&B)B()}else if(A&&!S)$+=o6.lineComment($,P.indent,H(A));else if(R&&Z)Z();return $}PN.stringifyPair=FN});var UF=Q((qN)=>{var nW=vD("process");function ZN(D,...F){if(D==="debug")console.log(...F)}function XN(D,F){if(D==="debug"||D==="warn")if(typeof nW.emitWarning==="function")nW.emitWarning(F);else console.warn(F)}qN.debug=ZN;qN.warn=XN});var Z5=Q((UN)=>{var t6=t(),iW=CD(),P5="<<",B5={identify:(D)=>D===P5||typeof D==="symbol"&&D.description===P5,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new iW.Scalar(Symbol(P5)),{addToJSMap:oW}),stringify:()=>P5},HN=(D,F)=>(B5.identify(F)||t6.isScalar(F)&&(!F.type||F.type===iW.Scalar.PLAIN)&&B5.identify(F.value))&&D?.doc.schema.tags.some((P)=>P.tag===B5.tag&&P.default);function oW(D,F,P){if(P=D&&t6.isAlias(P)?P.resolve(D.doc):P,t6.isSeq(P))for(let B of P.items)WF(D,F,B);else if(Array.isArray(P))for(let B of P)WF(D,F,B);else WF(D,F,P)}function WF(D,F,P){let B=D&&t6.isAlias(P)?P.resolve(D.doc):P;if(!t6.isMap(B))throw Error("Merge sources must be maps or map aliases");let Z=B.toJSON(null,D,Map);for(let[X,q]of Z)if(F instanceof Map){if(!F.has(X))F.set(X,q)}else if(F instanceof Set)F.add(X);else if(!Object.prototype.hasOwnProperty.call(F,X))Object.defineProperty(F,X,{value:q,writable:!0,enumerable:!0,configurable:!0});return F}UN.addMergeToJSMap=oW;UN.isMergeKey=HN;UN.merge=B5});var zF=Q(($N)=>{var QN=UF(),tW=Z5(),GN=i6(),eW=t(),OF=H0();function RN(D,F,{key:P,value:B}){if(eW.isNode(P)&&P.addToJSMap)P.addToJSMap(D,F,B);else if(tW.isMergeKey(D,P))tW.addMergeToJSMap(D,F,B);else{let Z=OF.toJS(P,"",D);if(F instanceof Map)F.set(Z,OF.toJS(B,Z,D));else if(F instanceof Set)F.add(Z);else{let X=IN(P,Z,D),q=OF.toJS(B,X,D);if(X in F)Object.defineProperty(F,X,{value:q,writable:!0,enumerable:!0,configurable:!0});else F[X]=q}}return F}function IN(D,F,P){if(F===null)return"";if(typeof F!=="object")return String(F);if(eW.isNode(D)&&P?.doc){let B=GN.createStringifyContext(P.doc,{});B.anchors=new Set;for(let X of P.anchors.keys())B.anchors.add(X.anchor);B.inFlow=!0,B.inStringifyKey=!0;let Z=D.toString(B);if(!P.mapKeyWarned){let X=JSON.stringify(Z);if(X.length>40)X=X.substring(0,36)+'..."';QN.warn(P.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${X}. Set mapAsMap: true to use object keys.`),P.mapKeyWarned=!0}return Z}return JSON.stringify(F)}$N.addPairToJSMap=RN});var O0=Q((CN)=>{var DO=r6(),EN=sW(),KN=zF(),X5=t();function AN(D,F,P){let B=DO.createNode(D,void 0,P),Z=DO.createNode(F,void 0,P);return new q5(B,Z)}class q5{constructor(D,F=null){Object.defineProperty(this,X5.NODE_TYPE,{value:X5.PAIR}),this.key=D,this.value=F}clone(D){let{key:F,value:P}=this;if(X5.isNode(F))F=F.clone(D);if(X5.isNode(P))P=P.clone(D);return new q5(F,P)}toJSON(D,F){let P=F?.mapAsMap?new Map:{};return KN.addPairToJSMap(F,P,this)}toString(D,F,P){return D?.doc?EN.stringifyPair(this,D,F,P):JSON.stringify(this)}}CN.Pair=q5;CN.createPair=AN});var QF=Q((SN)=>{var i0=t(),FO=i6(),J5=a6();function wN(D,F,P){return(F.inFlow??D.flow?bN:jN)(D,F,P)}function jN({comment:D,items:F},P,{blockItemPrefix:B,flowChars:Z,itemIndent:X,onChompKeep:q,onComment:J}){let{indent:Y,options:{commentString:H}}=P,U=Object.assign({},P,{indent:X,type:null}),W=!1,O=[];for(let I=0;I<F.length;++I){let R=F[I],$=null;if(i0.isNode(R)){if(!W&&R.spaceBefore)O.push("");if(Y5(P,O,R.commentBefore,W),R.comment)$=R.comment}else if(i0.isPair(R)){let j=i0.isNode(R.key)?R.key:null;if(j){if(!W&&j.spaceBefore)O.push("");Y5(P,O,j.commentBefore,W)}}W=!1;let K=FO.stringify(R,U,()=>$=null,()=>W=!0);if($)K+=J5.lineComment(K,X,H($));if(W&&$)W=!1;O.push(B+K)}let z;if(O.length===0)z=Z.start+Z.end;else{z=O[0];for(let I=1;I<O.length;++I){let R=O[I];z+=R?`
253
253
  ${Y}${R}`:`
254
254
  `}}if(D){if(z+=`
255
255
  `+J5.indentComment(H(D),Y),J)J()}else if(W&&q)q();return z}function bN({items:D},F,{flowChars:P,itemIndent:B}){let{indent:Z,indentStep:X,flowCollectionPadding:q,options:{commentString:J}}=F;B+=X;let Y=Object.assign({},F,{indent:B,inFlow:!0,type:null}),H=!1,U=0,W=[];for(let I=0;I<D.length;++I){let R=D[I],$=null;if(i0.isNode(R)){if(R.spaceBefore)W.push("");if(Y5(F,W,R.commentBefore,!1),R.comment)$=R.comment}else if(i0.isPair(R)){let j=i0.isNode(R.key)?R.key:null;if(j){if(j.spaceBefore)W.push("");if(Y5(F,W,j.commentBefore,!1),j.comment)H=!0}let A=i0.isNode(R.value)?R.value:null;if(A){if(A.comment)$=A.comment;if(A.commentBefore)H=!0}else if(R.value==null&&j?.comment)$=j.comment}if($)H=!0;let K=FO.stringify(R,Y,()=>$=null);if(I<D.length-1)K+=",";if($)K+=J5.lineComment(K,B,J($));if(!H&&(W.length>U||K.includes(`
256
256
  `)))H=!0;W.push(K),U=W.length}let{start:O,end:z}=P;if(W.length===0)return O+z;else{if(!H){let I=W.reduce((R,$)=>R+$.length+2,2);H=F.options.lineWidth>0&&I>F.options.lineWidth}if(H){let I=O;for(let R of W)I+=R?`
257
257
  ${X}${Z}${R}`:`
258
258
  `;return`${I}
259
- ${Z}${z}`}else return`${O}${q}${W.join(" ")}${q}${z}`}}function Y5({indent:D,options:{commentString:F}},P,B,Z){if(B&&Z)B=B.replace(/^\n+/,"");if(B){let X=J5.indentComment(F(B),D);P.push(X.trimStart())}}SN.stringifyCollection=wN});var Q0=Q((xN)=>{var uN=QF(),NN=zF(),_N=t3(),z0=t(),H5=O0(),kN=CD();function e6(D,F){let P=z0.isScalar(F)?F.value:F;for(let B of D)if(z0.isPair(B)){if(B.key===F||B.key===P)return B;if(z0.isScalar(B.key)&&B.key.value===P)return B}return}class PO extends _N.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(D){super(z0.MAP,D);this.items=[]}static from(D,F,P){let{keepUndefined:B,replacer:Z}=P,X=new this(D),q=(J,Y)=>{if(typeof Z==="function")Y=Z.call(F,J,Y);else if(Array.isArray(Z)&&!Z.includes(J))return;if(Y!==void 0||B)X.items.push(H5.createPair(J,Y,P))};if(F instanceof Map)for(let[J,Y]of F)q(J,Y);else if(F&&typeof F==="object")for(let J of Object.keys(F))q(J,F[J]);if(typeof D.sortMapEntries==="function")X.items.sort(D.sortMapEntries);return X}add(D,F){let P;if(z0.isPair(D))P=D;else if(!D||typeof D!=="object"||!("key"in D))P=new H5.Pair(D,D?.value);else P=new H5.Pair(D.key,D.value);let B=e6(this.items,P.key),Z=this.schema?.sortMapEntries;if(B){if(!F)throw new Error(`Key ${P.key} already set`);if(z0.isScalar(B.value)&&kN.isScalarValue(P.value))B.value.value=P.value;else B.value=P.value}else if(Z){let X=this.items.findIndex((q)=>Z(P,q)<0);if(X===-1)this.items.push(P);else this.items.splice(X,0,P)}else this.items.push(P)}delete(D){let F=e6(this.items,D);if(!F)return!1;return this.items.splice(this.items.indexOf(F),1).length>0}get(D,F){let B=e6(this.items,D)?.value;return(!F&&z0.isScalar(B)?B.value:B)??void 0}has(D){return!!e6(this.items,D)}set(D,F){this.add(new H5.Pair(D,F),!0)}toJSON(D,F,P){let B=P?new P:F?.mapAsMap?new Map:{};if(F?.onCreate)F.onCreate(B);for(let Z of this.items)NN.addPairToJSMap(F,B,Z);return B}toString(D,F,P){if(!D)return JSON.stringify(this);for(let B of this.items)if(!z0.isPair(B))throw new Error(`Map items must all be pairs; found ${JSON.stringify(B)} instead`);if(!D.allNullValues&&this.hasAllNullValues(!1))D=Object.assign({},D,{allNullValues:!0});return uN.stringifyCollection(this,D,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:D.indent||"",onChompKeep:P,onComment:F})}}xN.YAMLMap=PO;xN.findPair=e6});var k8=Q((yN)=>{var gN=t(),BO=Q0(),vN={collection:"map",default:!0,nodeClass:BO.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(D,F){if(!gN.isMap(D))F("Expected a mapping for this tag");return D},createNode:(D,F,P)=>BO.YAMLMap.from(D,F,P)};yN.map=vN});var G0=Q((aN)=>{var lN=r6(),cN=QF(),dN=t3(),W5=t(),pN=CD(),rN=H0();class ZO extends dN.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(D){super(W5.SEQ,D);this.items=[]}add(D){this.items.push(D)}delete(D){let F=U5(D);if(typeof F!=="number")return!1;return this.items.splice(F,1).length>0}get(D,F){let P=U5(D);if(typeof P!=="number")return;let B=this.items[P];return!F&&W5.isScalar(B)?B.value:B}has(D){let F=U5(D);return typeof F==="number"&&F<this.items.length}set(D,F){let P=U5(D);if(typeof P!=="number")throw new Error(`Expected a valid index, not ${D}.`);let B=this.items[P];if(W5.isScalar(B)&&pN.isScalarValue(F))B.value=F;else this.items[P]=F}toJSON(D,F){let P=[];if(F?.onCreate)F.onCreate(P);let B=0;for(let Z of this.items)P.push(rN.toJS(Z,String(B++),F));return P}toString(D,F,P){if(!D)return JSON.stringify(this);return cN.stringifyCollection(this,D,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(D.indent||"")+" ",onChompKeep:P,onComment:F})}static from(D,F,P){let{replacer:B}=P,Z=new this(D);if(F&&Symbol.iterator in Object(F)){let X=0;for(let q of F){if(typeof B==="function"){let J=F instanceof Set?q:String(X++);q=B.call(F,J,q)}Z.items.push(lN.createNode(q,void 0,P))}}return Z}}function U5(D){let F=W5.isScalar(D)?D.value:D;if(F&&typeof F==="string")F=Number(F);return typeof F==="number"&&Number.isInteger(F)&&F>=0?F:null}aN.YAMLSeq=ZO});var x8=Q((oN)=>{var nN=t(),XO=G0(),iN={collection:"seq",default:!0,nodeClass:XO.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(D,F){if(!nN.isSeq(D))F("Expected a sequence for this tag");return D},createNode:(D,F,P)=>XO.YAMLSeq.from(D,F,P)};oN.seq=iN});var D1=Q((F_)=>{var eN=n6(),D_={identify:(D)=>typeof D==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(D)=>D,stringify(D,F,P,B){return F=Object.assign({actualString:!0},F),eN.stringifyString(D,F,P,B)}};F_.string=D_});var O5=Q((B_)=>{var qO=CD(),JO={identify:(D)=>D==null,createNode:()=>new qO.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new qO.Scalar(null),stringify:({source:D},F)=>typeof D==="string"&&JO.test.test(D)?D:F.options.nullStr};B_.nullTag=JO});var GF=Q((q_)=>{var X_=CD(),YO={identify:(D)=>typeof D==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(D)=>new X_.Scalar(D[0]==="t"||D[0]==="T"),stringify({source:D,value:F},P){if(D&&YO.test.test(D)){let B=D[0]==="t"||D[0]==="T";if(F===B)return D}return F?P.options.trueStr:P.options.falseStr}};q_.boolTag=YO});var f8=Q((H_)=>{function Y_({format:D,minFractionDigits:F,tag:P,value:B}){if(typeof B==="bigint")return String(B);let Z=typeof B==="number"?B:Number(B);if(!isFinite(Z))return isNaN(Z)?".nan":Z<0?"-.inf":".inf";let X=JSON.stringify(B);if(!D&&F&&(!P||P==="tag:yaml.org,2002:float")&&/^\d/.test(X)){let q=X.indexOf(".");if(q<0)q=X.length,X+=".";let J=F-(X.length-q-1);while(J-- >0)X+="0"}return X}H_.stringifyNumber=Y_});var IF=Q((G_)=>{var W_=CD(),RF=f8(),O_={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(D)=>D.slice(-3).toLowerCase()==="nan"?NaN:D[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:RF.stringifyNumber},z_={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:(D)=>parseFloat(D),stringify(D){let F=Number(D.value);return isFinite(F)?F.toExponential():RF.stringifyNumber(D)}},Q_={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(D){let F=new W_.Scalar(parseFloat(D)),P=D.indexOf(".");if(P!==-1&&D[D.length-1]==="0")F.minFractionDigits=D.length-P-1;return F},stringify:RF.stringifyNumber};G_.float=Q_;G_.floatExp=z_;G_.floatNaN=O_});var MF=Q((A_)=>{var HO=f8(),z5=(D)=>typeof D==="bigint"||Number.isInteger(D),$F=(D,F,P,{intAsBigInt:B})=>B?BigInt(D):parseInt(D.substring(F),P);function UO(D,F,P){let{value:B}=D;if(z5(B)&&B>=0)return P+B.toString(F);return HO.stringifyNumber(D)}var M_={identify:(D)=>z5(D)&&D>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(D,F,P)=>$F(D,2,8,P),stringify:(D)=>UO(D,8,"0o")},E_={identify:z5,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(D,F,P)=>$F(D,0,10,P),stringify:HO.stringifyNumber},K_={identify:(D)=>z5(D)&&D>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(D,F,P)=>$F(D,2,16,P),stringify:(D)=>UO(D,16,"0x")};A_.int=E_;A_.intHex=K_;A_.intOct=M_});var WO=Q((N_)=>{var w_=k8(),j_=O5(),b_=x8(),S_=D1(),T_=GF(),EF=IF(),KF=MF(),u_=[w_.map,b_.seq,S_.string,j_.nullTag,T_.boolTag,KF.intOct,KF.int,KF.intHex,EF.floatNaN,EF.floatExp,EF.float];N_.schema=u_});var zO=Q((y_)=>{var k_=CD(),x_=k8(),f_=x8();function OO(D){return typeof D==="bigint"||Number.isInteger(D)}var Q5=({value:D})=>JSON.stringify(D),h_=[{identify:(D)=>typeof D==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(D)=>D,stringify:Q5},{identify:(D)=>D==null,createNode:()=>new k_.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Q5},{identify:(D)=>typeof D==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:(D)=>D==="true",stringify:Q5},{identify:OO,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(D,F,{intAsBigInt:P})=>P?BigInt(D):parseInt(D,10),stringify:({value:D})=>OO(D)?D.toString():JSON.stringify(D)},{identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:(D)=>parseFloat(D),stringify:Q5}],g_={default:!0,tag:"",test:/^/,resolve(D,F){return F(`Unresolved plain scalar ${JSON.stringify(D)}`),D}},v_=[x_.map,f_.seq].concat(h_,g_);y_.schema=v_});var CF=Q((d_)=>{var F1=vD("buffer"),AF=CD(),l_=n6(),c_={identify:(D)=>D instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(D,F){if(typeof F1.Buffer==="function")return F1.Buffer.from(D,"base64");else if(typeof atob==="function"){let P=atob(D.replace(/[\n\r]/g,"")),B=new Uint8Array(P.length);for(let Z=0;Z<P.length;++Z)B[Z]=P.charCodeAt(Z);return B}else return F("This environment does not support reading binary tags; either Buffer or atob is required"),D},stringify({comment:D,type:F,value:P},B,Z,X){if(!P)return"";let q=P,J;if(typeof F1.Buffer==="function")J=q instanceof F1.Buffer?q.toString("base64"):F1.Buffer.from(q.buffer).toString("base64");else if(typeof btoa==="function"){let Y="";for(let H=0;H<q.length;++H)Y+=String.fromCharCode(q[H]);J=btoa(Y)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(F??(F=AF.Scalar.BLOCK_LITERAL),F!==AF.Scalar.QUOTE_DOUBLE){let Y=Math.max(B.options.lineWidth-B.indent.length,B.options.minContentWidth),H=Math.ceil(J.length/Y),U=new Array(H);for(let W=0,O=0;W<H;++W,O+=Y)U[W]=J.substr(O,Y);J=U.join(F===AF.Scalar.BLOCK_LITERAL?`
259
+ ${Z}${z}`}else return`${O}${q}${W.join(" ")}${q}${z}`}}function Y5({indent:D,options:{commentString:F}},P,B,Z){if(B&&Z)B=B.replace(/^\n+/,"");if(B){let X=J5.indentComment(F(B),D);P.push(X.trimStart())}}SN.stringifyCollection=wN});var Q0=Q((xN)=>{var uN=QF(),NN=zF(),_N=t3(),z0=t(),H5=O0(),kN=CD();function e6(D,F){let P=z0.isScalar(F)?F.value:F;for(let B of D)if(z0.isPair(B)){if(B.key===F||B.key===P)return B;if(z0.isScalar(B.key)&&B.key.value===P)return B}return}class PO extends _N.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(D){super(z0.MAP,D);this.items=[]}static from(D,F,P){let{keepUndefined:B,replacer:Z}=P,X=new this(D),q=(J,Y)=>{if(typeof Z==="function")Y=Z.call(F,J,Y);else if(Array.isArray(Z)&&!Z.includes(J))return;if(Y!==void 0||B)X.items.push(H5.createPair(J,Y,P))};if(F instanceof Map)for(let[J,Y]of F)q(J,Y);else if(F&&typeof F==="object")for(let J of Object.keys(F))q(J,F[J]);if(typeof D.sortMapEntries==="function")X.items.sort(D.sortMapEntries);return X}add(D,F){let P;if(z0.isPair(D))P=D;else if(!D||typeof D!=="object"||!("key"in D))P=new H5.Pair(D,D?.value);else P=new H5.Pair(D.key,D.value);let B=e6(this.items,P.key),Z=this.schema?.sortMapEntries;if(B){if(!F)throw Error(`Key ${P.key} already set`);if(z0.isScalar(B.value)&&kN.isScalarValue(P.value))B.value.value=P.value;else B.value=P.value}else if(Z){let X=this.items.findIndex((q)=>Z(P,q)<0);if(X===-1)this.items.push(P);else this.items.splice(X,0,P)}else this.items.push(P)}delete(D){let F=e6(this.items,D);if(!F)return!1;return this.items.splice(this.items.indexOf(F),1).length>0}get(D,F){let B=e6(this.items,D)?.value;return(!F&&z0.isScalar(B)?B.value:B)??void 0}has(D){return!!e6(this.items,D)}set(D,F){this.add(new H5.Pair(D,F),!0)}toJSON(D,F,P){let B=P?new P:F?.mapAsMap?new Map:{};if(F?.onCreate)F.onCreate(B);for(let Z of this.items)NN.addPairToJSMap(F,B,Z);return B}toString(D,F,P){if(!D)return JSON.stringify(this);for(let B of this.items)if(!z0.isPair(B))throw Error(`Map items must all be pairs; found ${JSON.stringify(B)} instead`);if(!D.allNullValues&&this.hasAllNullValues(!1))D=Object.assign({},D,{allNullValues:!0});return uN.stringifyCollection(this,D,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:D.indent||"",onChompKeep:P,onComment:F})}}xN.YAMLMap=PO;xN.findPair=e6});var k8=Q((yN)=>{var gN=t(),BO=Q0(),vN={collection:"map",default:!0,nodeClass:BO.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(D,F){if(!gN.isMap(D))F("Expected a mapping for this tag");return D},createNode:(D,F,P)=>BO.YAMLMap.from(D,F,P)};yN.map=vN});var G0=Q((aN)=>{var lN=r6(),cN=QF(),dN=t3(),W5=t(),pN=CD(),rN=H0();class ZO extends dN.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(D){super(W5.SEQ,D);this.items=[]}add(D){this.items.push(D)}delete(D){let F=U5(D);if(typeof F!=="number")return!1;return this.items.splice(F,1).length>0}get(D,F){let P=U5(D);if(typeof P!=="number")return;let B=this.items[P];return!F&&W5.isScalar(B)?B.value:B}has(D){let F=U5(D);return typeof F==="number"&&F<this.items.length}set(D,F){let P=U5(D);if(typeof P!=="number")throw Error(`Expected a valid index, not ${D}.`);let B=this.items[P];if(W5.isScalar(B)&&pN.isScalarValue(F))B.value=F;else this.items[P]=F}toJSON(D,F){let P=[];if(F?.onCreate)F.onCreate(P);let B=0;for(let Z of this.items)P.push(rN.toJS(Z,String(B++),F));return P}toString(D,F,P){if(!D)return JSON.stringify(this);return cN.stringifyCollection(this,D,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(D.indent||"")+" ",onChompKeep:P,onComment:F})}static from(D,F,P){let{replacer:B}=P,Z=new this(D);if(F&&Symbol.iterator in Object(F)){let X=0;for(let q of F){if(typeof B==="function"){let J=F instanceof Set?q:String(X++);q=B.call(F,J,q)}Z.items.push(lN.createNode(q,void 0,P))}}return Z}}function U5(D){let F=W5.isScalar(D)?D.value:D;if(F&&typeof F==="string")F=Number(F);return typeof F==="number"&&Number.isInteger(F)&&F>=0?F:null}aN.YAMLSeq=ZO});var x8=Q((oN)=>{var nN=t(),XO=G0(),iN={collection:"seq",default:!0,nodeClass:XO.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(D,F){if(!nN.isSeq(D))F("Expected a sequence for this tag");return D},createNode:(D,F,P)=>XO.YAMLSeq.from(D,F,P)};oN.seq=iN});var D1=Q((F_)=>{var eN=n6(),D_={identify:(D)=>typeof D==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(D)=>D,stringify(D,F,P,B){return F=Object.assign({actualString:!0},F),eN.stringifyString(D,F,P,B)}};F_.string=D_});var O5=Q((B_)=>{var qO=CD(),JO={identify:(D)=>D==null,createNode:()=>new qO.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new qO.Scalar(null),stringify:({source:D},F)=>typeof D==="string"&&JO.test.test(D)?D:F.options.nullStr};B_.nullTag=JO});var GF=Q((q_)=>{var X_=CD(),YO={identify:(D)=>typeof D==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(D)=>new X_.Scalar(D[0]==="t"||D[0]==="T"),stringify({source:D,value:F},P){if(D&&YO.test.test(D)){let B=D[0]==="t"||D[0]==="T";if(F===B)return D}return F?P.options.trueStr:P.options.falseStr}};q_.boolTag=YO});var f8=Q((H_)=>{function Y_({format:D,minFractionDigits:F,tag:P,value:B}){if(typeof B==="bigint")return String(B);let Z=typeof B==="number"?B:Number(B);if(!isFinite(Z))return isNaN(Z)?".nan":Z<0?"-.inf":".inf";let X=JSON.stringify(B);if(!D&&F&&(!P||P==="tag:yaml.org,2002:float")&&/^\d/.test(X)){let q=X.indexOf(".");if(q<0)q=X.length,X+=".";let J=F-(X.length-q-1);while(J-- >0)X+="0"}return X}H_.stringifyNumber=Y_});var IF=Q((G_)=>{var W_=CD(),RF=f8(),O_={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(D)=>D.slice(-3).toLowerCase()==="nan"?NaN:D[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:RF.stringifyNumber},z_={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:(D)=>parseFloat(D),stringify(D){let F=Number(D.value);return isFinite(F)?F.toExponential():RF.stringifyNumber(D)}},Q_={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(D){let F=new W_.Scalar(parseFloat(D)),P=D.indexOf(".");if(P!==-1&&D[D.length-1]==="0")F.minFractionDigits=D.length-P-1;return F},stringify:RF.stringifyNumber};G_.float=Q_;G_.floatExp=z_;G_.floatNaN=O_});var MF=Q((A_)=>{var HO=f8(),z5=(D)=>typeof D==="bigint"||Number.isInteger(D),$F=(D,F,P,{intAsBigInt:B})=>B?BigInt(D):parseInt(D.substring(F),P);function UO(D,F,P){let{value:B}=D;if(z5(B)&&B>=0)return P+B.toString(F);return HO.stringifyNumber(D)}var M_={identify:(D)=>z5(D)&&D>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(D,F,P)=>$F(D,2,8,P),stringify:(D)=>UO(D,8,"0o")},E_={identify:z5,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(D,F,P)=>$F(D,0,10,P),stringify:HO.stringifyNumber},K_={identify:(D)=>z5(D)&&D>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(D,F,P)=>$F(D,2,16,P),stringify:(D)=>UO(D,16,"0x")};A_.int=E_;A_.intHex=K_;A_.intOct=M_});var WO=Q((N_)=>{var w_=k8(),j_=O5(),b_=x8(),S_=D1(),T_=GF(),EF=IF(),KF=MF(),u_=[w_.map,b_.seq,S_.string,j_.nullTag,T_.boolTag,KF.intOct,KF.int,KF.intHex,EF.floatNaN,EF.floatExp,EF.float];N_.schema=u_});var zO=Q((y_)=>{var k_=CD(),x_=k8(),f_=x8();function OO(D){return typeof D==="bigint"||Number.isInteger(D)}var Q5=({value:D})=>JSON.stringify(D),h_=[{identify:(D)=>typeof D==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(D)=>D,stringify:Q5},{identify:(D)=>D==null,createNode:()=>new k_.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Q5},{identify:(D)=>typeof D==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:(D)=>D==="true",stringify:Q5},{identify:OO,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(D,F,{intAsBigInt:P})=>P?BigInt(D):parseInt(D,10),stringify:({value:D})=>OO(D)?D.toString():JSON.stringify(D)},{identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:(D)=>parseFloat(D),stringify:Q5}],g_={default:!0,tag:"",test:/^/,resolve(D,F){return F(`Unresolved plain scalar ${JSON.stringify(D)}`),D}},v_=[x_.map,f_.seq].concat(h_,g_);y_.schema=v_});var CF=Q((d_)=>{var F1=vD("buffer"),AF=CD(),l_=n6(),c_={identify:(D)=>D instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(D,F){if(typeof F1.Buffer==="function")return F1.Buffer.from(D,"base64");else if(typeof atob==="function"){let P=atob(D.replace(/[\n\r]/g,"")),B=new Uint8Array(P.length);for(let Z=0;Z<P.length;++Z)B[Z]=P.charCodeAt(Z);return B}else return F("This environment does not support reading binary tags; either Buffer or atob is required"),D},stringify({comment:D,type:F,value:P},B,Z,X){if(!P)return"";let q=P,J;if(typeof F1.Buffer==="function")J=q instanceof F1.Buffer?q.toString("base64"):F1.Buffer.from(q.buffer).toString("base64");else if(typeof btoa==="function"){let Y="";for(let H=0;H<q.length;++H)Y+=String.fromCharCode(q[H]);J=btoa(Y)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(F??(F=AF.Scalar.BLOCK_LITERAL),F!==AF.Scalar.QUOTE_DOUBLE){let Y=Math.max(B.options.lineWidth-B.indent.length,B.options.minContentWidth),H=Math.ceil(J.length/Y),U=Array(H);for(let W=0,O=0;W<H;++W,O+=Y)U[W]=J.substr(O,Y);J=U.join(F===AF.Scalar.BLOCK_LITERAL?`
260
260
  `:" ")}return l_.stringifyString({comment:D,type:F,value:J},B,Z,X)}};d_.binary=c_});var R5=Q((n_)=>{var G5=t(),LF=O0(),r_=CD(),a_=G0();function QO(D,F){if(G5.isSeq(D))for(let P=0;P<D.items.length;++P){let B=D.items[P];if(G5.isPair(B))continue;else if(G5.isMap(B)){if(B.items.length>1)F("Each pair must have its own sequence indicator");let Z=B.items[0]||new LF.Pair(new r_.Scalar(null));if(B.commentBefore)Z.key.commentBefore=Z.key.commentBefore?`${B.commentBefore}
261
261
  ${Z.key.commentBefore}`:B.commentBefore;if(B.comment){let X=Z.value??Z.key;X.comment=X.comment?`${B.comment}
262
- ${X.comment}`:B.comment}B=Z}D.items[P]=G5.isPair(B)?B:new LF.Pair(B)}else F("Expected a sequence for this tag");return D}function GO(D,F,P){let{replacer:B}=P,Z=new a_.YAMLSeq(D);Z.tag="tag:yaml.org,2002:pairs";let X=0;if(F&&Symbol.iterator in Object(F))for(let q of F){if(typeof B==="function")q=B.call(F,String(X++),q);let J,Y;if(Array.isArray(q))if(q.length===2)J=q[0],Y=q[1];else throw new TypeError(`Expected [key, value] tuple: ${q}`);else if(q&&q instanceof Object){let H=Object.keys(q);if(H.length===1)J=H[0],Y=q[J];else throw new TypeError(`Expected tuple with one key, not ${H.length} keys`)}else J=q;Z.items.push(LF.createPair(J,Y,P))}return Z}var s_={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:QO,createNode:GO};n_.createPairs=GO;n_.pairs=s_;n_.resolvePairs=QO});var wF=Q((Fk)=>{var RO=t(),VF=H0(),P1=Q0(),e_=G0(),IO=R5();class o0 extends e_.YAMLSeq{constructor(){super();this.add=P1.YAMLMap.prototype.add.bind(this),this.delete=P1.YAMLMap.prototype.delete.bind(this),this.get=P1.YAMLMap.prototype.get.bind(this),this.has=P1.YAMLMap.prototype.has.bind(this),this.set=P1.YAMLMap.prototype.set.bind(this),this.tag=o0.tag}toJSON(D,F){if(!F)return super.toJSON(D);let P=new Map;if(F?.onCreate)F.onCreate(P);for(let B of this.items){let Z,X;if(RO.isPair(B))Z=VF.toJS(B.key,"",F),X=VF.toJS(B.value,Z,F);else Z=VF.toJS(B,"",F);if(P.has(Z))throw new Error("Ordered maps must not include duplicate keys");P.set(Z,X)}return P}static from(D,F,P){let B=IO.createPairs(D,F,P),Z=new this;return Z.items=B.items,Z}}o0.tag="tag:yaml.org,2002:omap";var Dk={collection:"seq",identify:(D)=>D instanceof Map,nodeClass:o0,default:!1,tag:"tag:yaml.org,2002:omap",resolve(D,F){let P=IO.resolvePairs(D,F),B=[];for(let{key:Z}of P.items)if(RO.isScalar(Z))if(B.includes(Z.value))F(`Ordered maps must not include duplicate keys: ${Z.value}`);else B.push(Z.value);return Object.assign(new o0,P)},createNode:(D,F,P)=>o0.from(D,F,P)};Fk.YAMLOMap=o0;Fk.omap=Dk});var AO=Q((Zk)=>{var $O=CD();function MO({value:D,source:F},P){if(F&&(D?EO:KO).test.test(F))return F;return D?P.options.trueStr:P.options.falseStr}var EO={identify:(D)=>D===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new $O.Scalar(!0),stringify:MO},KO={identify:(D)=>D===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new $O.Scalar(!1),stringify:MO};Zk.falseTag=KO;Zk.trueTag=EO});var CO=Q((Wk)=>{var Jk=CD(),jF=f8(),Yk={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(D)=>D.slice(-3).toLowerCase()==="nan"?NaN:D[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:jF.stringifyNumber},Hk={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(D)=>parseFloat(D.replace(/_/g,"")),stringify(D){let F=Number(D.value);return isFinite(F)?F.toExponential():jF.stringifyNumber(D)}},Uk={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(D){let F=new Jk.Scalar(parseFloat(D.replace(/_/g,""))),P=D.indexOf(".");if(P!==-1){let B=D.substring(P+1).replace(/_/g,"");if(B[B.length-1]==="0")F.minFractionDigits=B.length}return F},stringify:jF.stringifyNumber};Wk.float=Uk;Wk.floatExp=Hk;Wk.floatNaN=Yk});var VO=Q((Mk)=>{var LO=f8(),B1=(D)=>typeof D==="bigint"||Number.isInteger(D);function I5(D,F,P,{intAsBigInt:B}){let Z=D[0];if(Z==="-"||Z==="+")F+=1;if(D=D.substring(F).replace(/_/g,""),B){switch(P){case 2:D=`0b${D}`;break;case 8:D=`0o${D}`;break;case 16:D=`0x${D}`;break}let q=BigInt(D);return Z==="-"?BigInt(-1)*q:q}let X=parseInt(D,P);return Z==="-"?-1*X:X}function bF(D,F,P){let{value:B}=D;if(B1(B)){let Z=B.toString(F);return B<0?"-"+P+Z.substr(1):P+Z}return LO.stringifyNumber(D)}var Gk={identify:B1,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(D,F,P)=>I5(D,2,2,P),stringify:(D)=>bF(D,2,"0b")},Rk={identify:B1,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(D,F,P)=>I5(D,1,8,P),stringify:(D)=>bF(D,8,"0")},Ik={identify:B1,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(D,F,P)=>I5(D,0,10,P),stringify:LO.stringifyNumber},$k={identify:B1,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(D,F,P)=>I5(D,2,16,P),stringify:(D)=>bF(D,16,"0x")};Mk.int=Ik;Mk.intBin=Gk;Mk.intHex=$k;Mk.intOct=Rk});var SF=Q((Vk)=>{var E5=t(),$5=O0(),M5=Q0();class t0 extends M5.YAMLMap{constructor(D){super(D);this.tag=t0.tag}add(D){let F;if(E5.isPair(D))F=D;else if(D&&typeof D==="object"&&"key"in D&&"value"in D&&D.value===null)F=new $5.Pair(D.key,null);else F=new $5.Pair(D,null);if(!M5.findPair(this.items,F.key))this.items.push(F)}get(D,F){let P=M5.findPair(this.items,D);return!F&&E5.isPair(P)?E5.isScalar(P.key)?P.key.value:P.key:P}set(D,F){if(typeof F!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof F}`);let P=M5.findPair(this.items,D);if(P&&!F)this.items.splice(this.items.indexOf(P),1);else if(!P&&F)this.items.push(new $5.Pair(D))}toJSON(D,F){return super.toJSON(D,F,Set)}toString(D,F,P){if(!D)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},D,{allNullValues:!0}),F,P);else throw new Error("Set items must all have null values")}static from(D,F,P){let{replacer:B}=P,Z=new this(D);if(F&&Symbol.iterator in Object(F))for(let X of F){if(typeof B==="function")X=B.call(F,X,X);Z.items.push($5.createPair(X,null,P))}return Z}}t0.tag="tag:yaml.org,2002:set";var Lk={collection:"map",identify:(D)=>D instanceof Set,nodeClass:t0,default:!1,tag:"tag:yaml.org,2002:set",createNode:(D,F,P)=>t0.from(D,F,P),resolve(D,F){if(E5.isMap(D))if(D.hasAllNullValues(!0))return Object.assign(new t0,D);else F("Set items must all have null values");else F("Expected a mapping for this tag");return D}};Vk.YAMLSet=t0;Vk.set=Lk});var uF=Q((uk)=>{var bk=f8();function TF(D,F){let P=D[0],B=P==="-"||P==="+"?D.substring(1):D,Z=(q)=>F?BigInt(q):Number(q),X=B.replace(/_/g,"").split(":").reduce((q,J)=>q*Z(60)+Z(J),Z(0));return P==="-"?Z(-1)*X:X}function wO(D){let{value:F}=D,P=(q)=>q;if(typeof F==="bigint")P=(q)=>BigInt(q);else if(isNaN(F)||!isFinite(F))return bk.stringifyNumber(D);let B="";if(F<0)B="-",F*=P(-1);let Z=P(60),X=[F%Z];if(F<60)X.unshift(0);else if(F=(F-X[0])/Z,X.unshift(F%Z),F>=60)F=(F-X[0])/Z,X.unshift(F);return B+X.map((q)=>String(q).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var Sk={identify:(D)=>typeof D==="bigint"||Number.isInteger(D),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(D,F,{intAsBigInt:P})=>TF(D,P),stringify:wO},Tk={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:(D)=>TF(D,!1),stringify:wO},jO={identify:(D)=>D instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(D){let F=D.match(jO.test);if(!F)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,P,B,Z,X,q,J]=F.map(Number),Y=F[7]?Number((F[7]+"00").substr(1,3)):0,H=Date.UTC(P,B-1,Z,X||0,q||0,J||0,Y),U=F[8];if(U&&U!=="Z"){let W=TF(U,!1);if(Math.abs(W)<30)W*=60;H-=60000*W}return new Date(H)},stringify:({value:D})=>D?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};uk.floatTime=Tk;uk.intTime=Sk;uk.timestamp=jO});var SO=Q((pk)=>{var xk=k8(),fk=O5(),hk=x8(),gk=D1(),vk=CF(),bO=AO(),NF=CO(),K5=VO(),yk=Z5(),mk=wF(),lk=R5(),ck=SF(),_F=uF(),dk=[xk.map,hk.seq,gk.string,fk.nullTag,bO.trueTag,bO.falseTag,K5.intBin,K5.intOct,K5.int,K5.intHex,NF.floatNaN,NF.floatExp,NF.float,vk.binary,yk.merge,mk.omap,lk.pairs,ck.set,_F.intTime,_F.floatTime,_F.timestamp];pk.schema=dk});var vO=Q((Dx)=>{var _O=k8(),ak=O5(),kO=x8(),sk=D1(),nk=GF(),kF=IF(),xF=MF(),ik=WO(),ok=zO(),xO=CF(),Z1=Z5(),fO=wF(),hO=R5(),TO=SO(),gO=SF(),A5=uF(),uO=new Map([["core",ik.schema],["failsafe",[_O.map,kO.seq,sk.string]],["json",ok.schema],["yaml11",TO.schema],["yaml-1.1",TO.schema]]),NO={binary:xO.binary,bool:nk.boolTag,float:kF.float,floatExp:kF.floatExp,floatNaN:kF.floatNaN,floatTime:A5.floatTime,int:xF.int,intHex:xF.intHex,intOct:xF.intOct,intTime:A5.intTime,map:_O.map,merge:Z1.merge,null:ak.nullTag,omap:fO.omap,pairs:hO.pairs,seq:kO.seq,set:gO.set,timestamp:A5.timestamp},tk={"tag:yaml.org,2002:binary":xO.binary,"tag:yaml.org,2002:merge":Z1.merge,"tag:yaml.org,2002:omap":fO.omap,"tag:yaml.org,2002:pairs":hO.pairs,"tag:yaml.org,2002:set":gO.set,"tag:yaml.org,2002:timestamp":A5.timestamp};function ek(D,F,P){let B=uO.get(F);if(B&&!D)return P&&!B.includes(Z1.merge)?B.concat(Z1.merge):B.slice();let Z=B;if(!Z)if(Array.isArray(D))Z=[];else{let X=Array.from(uO.keys()).filter((q)=>q!=="yaml11").map((q)=>JSON.stringify(q)).join(", ");throw new Error(`Unknown schema "${F}"; use one of ${X} or define customTags array`)}if(Array.isArray(D))for(let X of D)Z=Z.concat(X);else if(typeof D==="function")Z=D(Z.slice());if(P)Z=Z.concat(Z1.merge);return Z.reduce((X,q)=>{let J=typeof q==="string"?NO[q]:q;if(!J){let Y=JSON.stringify(q),H=Object.keys(NO).map((U)=>JSON.stringify(U)).join(", ");throw new Error(`Unknown custom tag ${Y}; use one of ${H}`)}if(!X.includes(J))X.push(J);return X},[])}Dx.coreKnownTags=tk;Dx.getTags=ek});var gF=Q((Jx)=>{var fF=t(),Bx=k8(),Zx=x8(),Xx=D1(),C5=vO(),qx=(D,F)=>D.key<F.key?-1:D.key>F.key?1:0;class hF{constructor({compat:D,customTags:F,merge:P,resolveKnownTags:B,schema:Z,sortMapEntries:X,toStringDefaults:q}){this.compat=Array.isArray(D)?C5.getTags(D,"compat"):D?C5.getTags(null,D):null,this.name=typeof Z==="string"&&Z||"core",this.knownTags=B?C5.coreKnownTags:{},this.tags=C5.getTags(F,this.name,P),this.toStringOptions=q??null,Object.defineProperty(this,fF.MAP,{value:Bx.map}),Object.defineProperty(this,fF.SCALAR,{value:Xx.string}),Object.defineProperty(this,fF.SEQ,{value:Zx.seq}),this.sortMapEntries=typeof X==="function"?X:X===!0?qx:null}clone(){let D=Object.create(hF.prototype,Object.getOwnPropertyDescriptors(this));return D.tags=this.tags.slice(),D}}Jx.Schema=hF});var yO=Q((Wx)=>{var Hx=t(),vF=i6(),X1=a6();function Ux(D,F){let P=[],B=F.directives===!0;if(F.directives!==!1&&D.directives){let Y=D.directives.toString(D);if(Y)P.push(Y),B=!0;else if(D.directives.docStart)B=!0}if(B)P.push("---");let Z=vF.createStringifyContext(D,F),{commentString:X}=Z.options;if(D.commentBefore){if(P.length!==1)P.unshift("");let Y=X(D.commentBefore);P.unshift(X1.indentComment(Y,""))}let q=!1,J=null;if(D.contents){if(Hx.isNode(D.contents)){if(D.contents.spaceBefore&&B)P.push("");if(D.contents.commentBefore){let U=X(D.contents.commentBefore);P.push(X1.indentComment(U,""))}Z.forceBlockIndent=!!D.comment,J=D.contents.comment}let Y=J?void 0:()=>q=!0,H=vF.stringify(D.contents,Z,()=>J=null,Y);if(J)H+=X1.lineComment(H,"",X(J));if((H[0]==="|"||H[0]===">")&&P[P.length-1]==="---")P[P.length-1]=`--- ${H}`;else P.push(H)}else P.push(vF.stringify(D.contents,Z));if(D.directives?.docEnd)if(D.comment){let Y=X(D.comment);if(Y.includes(`
262
+ ${X.comment}`:B.comment}B=Z}D.items[P]=G5.isPair(B)?B:new LF.Pair(B)}else F("Expected a sequence for this tag");return D}function GO(D,F,P){let{replacer:B}=P,Z=new a_.YAMLSeq(D);Z.tag="tag:yaml.org,2002:pairs";let X=0;if(F&&Symbol.iterator in Object(F))for(let q of F){if(typeof B==="function")q=B.call(F,String(X++),q);let J,Y;if(Array.isArray(q))if(q.length===2)J=q[0],Y=q[1];else throw TypeError(`Expected [key, value] tuple: ${q}`);else if(q&&q instanceof Object){let H=Object.keys(q);if(H.length===1)J=H[0],Y=q[J];else throw TypeError(`Expected tuple with one key, not ${H.length} keys`)}else J=q;Z.items.push(LF.createPair(J,Y,P))}return Z}var s_={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:QO,createNode:GO};n_.createPairs=GO;n_.pairs=s_;n_.resolvePairs=QO});var wF=Q((Fk)=>{var RO=t(),VF=H0(),P1=Q0(),e_=G0(),IO=R5();class o0 extends e_.YAMLSeq{constructor(){super();this.add=P1.YAMLMap.prototype.add.bind(this),this.delete=P1.YAMLMap.prototype.delete.bind(this),this.get=P1.YAMLMap.prototype.get.bind(this),this.has=P1.YAMLMap.prototype.has.bind(this),this.set=P1.YAMLMap.prototype.set.bind(this),this.tag=o0.tag}toJSON(D,F){if(!F)return super.toJSON(D);let P=new Map;if(F?.onCreate)F.onCreate(P);for(let B of this.items){let Z,X;if(RO.isPair(B))Z=VF.toJS(B.key,"",F),X=VF.toJS(B.value,Z,F);else Z=VF.toJS(B,"",F);if(P.has(Z))throw Error("Ordered maps must not include duplicate keys");P.set(Z,X)}return P}static from(D,F,P){let B=IO.createPairs(D,F,P),Z=new this;return Z.items=B.items,Z}}o0.tag="tag:yaml.org,2002:omap";var Dk={collection:"seq",identify:(D)=>D instanceof Map,nodeClass:o0,default:!1,tag:"tag:yaml.org,2002:omap",resolve(D,F){let P=IO.resolvePairs(D,F),B=[];for(let{key:Z}of P.items)if(RO.isScalar(Z))if(B.includes(Z.value))F(`Ordered maps must not include duplicate keys: ${Z.value}`);else B.push(Z.value);return Object.assign(new o0,P)},createNode:(D,F,P)=>o0.from(D,F,P)};Fk.YAMLOMap=o0;Fk.omap=Dk});var AO=Q((Zk)=>{var $O=CD();function MO({value:D,source:F},P){if(F&&(D?EO:KO).test.test(F))return F;return D?P.options.trueStr:P.options.falseStr}var EO={identify:(D)=>D===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new $O.Scalar(!0),stringify:MO},KO={identify:(D)=>D===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new $O.Scalar(!1),stringify:MO};Zk.falseTag=KO;Zk.trueTag=EO});var CO=Q((Wk)=>{var Jk=CD(),jF=f8(),Yk={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(D)=>D.slice(-3).toLowerCase()==="nan"?NaN:D[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:jF.stringifyNumber},Hk={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(D)=>parseFloat(D.replace(/_/g,"")),stringify(D){let F=Number(D.value);return isFinite(F)?F.toExponential():jF.stringifyNumber(D)}},Uk={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(D){let F=new Jk.Scalar(parseFloat(D.replace(/_/g,""))),P=D.indexOf(".");if(P!==-1){let B=D.substring(P+1).replace(/_/g,"");if(B[B.length-1]==="0")F.minFractionDigits=B.length}return F},stringify:jF.stringifyNumber};Wk.float=Uk;Wk.floatExp=Hk;Wk.floatNaN=Yk});var VO=Q((Mk)=>{var LO=f8(),B1=(D)=>typeof D==="bigint"||Number.isInteger(D);function I5(D,F,P,{intAsBigInt:B}){let Z=D[0];if(Z==="-"||Z==="+")F+=1;if(D=D.substring(F).replace(/_/g,""),B){switch(P){case 2:D=`0b${D}`;break;case 8:D=`0o${D}`;break;case 16:D=`0x${D}`;break}let q=BigInt(D);return Z==="-"?BigInt(-1)*q:q}let X=parseInt(D,P);return Z==="-"?-1*X:X}function bF(D,F,P){let{value:B}=D;if(B1(B)){let Z=B.toString(F);return B<0?"-"+P+Z.substr(1):P+Z}return LO.stringifyNumber(D)}var Gk={identify:B1,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(D,F,P)=>I5(D,2,2,P),stringify:(D)=>bF(D,2,"0b")},Rk={identify:B1,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(D,F,P)=>I5(D,1,8,P),stringify:(D)=>bF(D,8,"0")},Ik={identify:B1,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(D,F,P)=>I5(D,0,10,P),stringify:LO.stringifyNumber},$k={identify:B1,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(D,F,P)=>I5(D,2,16,P),stringify:(D)=>bF(D,16,"0x")};Mk.int=Ik;Mk.intBin=Gk;Mk.intHex=$k;Mk.intOct=Rk});var SF=Q((Vk)=>{var E5=t(),$5=O0(),M5=Q0();class t0 extends M5.YAMLMap{constructor(D){super(D);this.tag=t0.tag}add(D){let F;if(E5.isPair(D))F=D;else if(D&&typeof D==="object"&&"key"in D&&"value"in D&&D.value===null)F=new $5.Pair(D.key,null);else F=new $5.Pair(D,null);if(!M5.findPair(this.items,F.key))this.items.push(F)}get(D,F){let P=M5.findPair(this.items,D);return!F&&E5.isPair(P)?E5.isScalar(P.key)?P.key.value:P.key:P}set(D,F){if(typeof F!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof F}`);let P=M5.findPair(this.items,D);if(P&&!F)this.items.splice(this.items.indexOf(P),1);else if(!P&&F)this.items.push(new $5.Pair(D))}toJSON(D,F){return super.toJSON(D,F,Set)}toString(D,F,P){if(!D)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},D,{allNullValues:!0}),F,P);else throw Error("Set items must all have null values")}static from(D,F,P){let{replacer:B}=P,Z=new this(D);if(F&&Symbol.iterator in Object(F))for(let X of F){if(typeof B==="function")X=B.call(F,X,X);Z.items.push($5.createPair(X,null,P))}return Z}}t0.tag="tag:yaml.org,2002:set";var Lk={collection:"map",identify:(D)=>D instanceof Set,nodeClass:t0,default:!1,tag:"tag:yaml.org,2002:set",createNode:(D,F,P)=>t0.from(D,F,P),resolve(D,F){if(E5.isMap(D))if(D.hasAllNullValues(!0))return Object.assign(new t0,D);else F("Set items must all have null values");else F("Expected a mapping for this tag");return D}};Vk.YAMLSet=t0;Vk.set=Lk});var uF=Q((uk)=>{var bk=f8();function TF(D,F){let P=D[0],B=P==="-"||P==="+"?D.substring(1):D,Z=(q)=>F?BigInt(q):Number(q),X=B.replace(/_/g,"").split(":").reduce((q,J)=>q*Z(60)+Z(J),Z(0));return P==="-"?Z(-1)*X:X}function wO(D){let{value:F}=D,P=(q)=>q;if(typeof F==="bigint")P=(q)=>BigInt(q);else if(isNaN(F)||!isFinite(F))return bk.stringifyNumber(D);let B="";if(F<0)B="-",F*=P(-1);let Z=P(60),X=[F%Z];if(F<60)X.unshift(0);else if(F=(F-X[0])/Z,X.unshift(F%Z),F>=60)F=(F-X[0])/Z,X.unshift(F);return B+X.map((q)=>String(q).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var Sk={identify:(D)=>typeof D==="bigint"||Number.isInteger(D),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(D,F,{intAsBigInt:P})=>TF(D,P),stringify:wO},Tk={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:(D)=>TF(D,!1),stringify:wO},jO={identify:(D)=>D instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(D){let F=D.match(jO.test);if(!F)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,P,B,Z,X,q,J]=F.map(Number),Y=F[7]?Number((F[7]+"00").substr(1,3)):0,H=Date.UTC(P,B-1,Z,X||0,q||0,J||0,Y),U=F[8];if(U&&U!=="Z"){let W=TF(U,!1);if(Math.abs(W)<30)W*=60;H-=60000*W}return new Date(H)},stringify:({value:D})=>D?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};uk.floatTime=Tk;uk.intTime=Sk;uk.timestamp=jO});var SO=Q((pk)=>{var xk=k8(),fk=O5(),hk=x8(),gk=D1(),vk=CF(),bO=AO(),NF=CO(),K5=VO(),yk=Z5(),mk=wF(),lk=R5(),ck=SF(),_F=uF(),dk=[xk.map,hk.seq,gk.string,fk.nullTag,bO.trueTag,bO.falseTag,K5.intBin,K5.intOct,K5.int,K5.intHex,NF.floatNaN,NF.floatExp,NF.float,vk.binary,yk.merge,mk.omap,lk.pairs,ck.set,_F.intTime,_F.floatTime,_F.timestamp];pk.schema=dk});var vO=Q((Dx)=>{var _O=k8(),ak=O5(),kO=x8(),sk=D1(),nk=GF(),kF=IF(),xF=MF(),ik=WO(),ok=zO(),xO=CF(),Z1=Z5(),fO=wF(),hO=R5(),TO=SO(),gO=SF(),A5=uF(),uO=new Map([["core",ik.schema],["failsafe",[_O.map,kO.seq,sk.string]],["json",ok.schema],["yaml11",TO.schema],["yaml-1.1",TO.schema]]),NO={binary:xO.binary,bool:nk.boolTag,float:kF.float,floatExp:kF.floatExp,floatNaN:kF.floatNaN,floatTime:A5.floatTime,int:xF.int,intHex:xF.intHex,intOct:xF.intOct,intTime:A5.intTime,map:_O.map,merge:Z1.merge,null:ak.nullTag,omap:fO.omap,pairs:hO.pairs,seq:kO.seq,set:gO.set,timestamp:A5.timestamp},tk={"tag:yaml.org,2002:binary":xO.binary,"tag:yaml.org,2002:merge":Z1.merge,"tag:yaml.org,2002:omap":fO.omap,"tag:yaml.org,2002:pairs":hO.pairs,"tag:yaml.org,2002:set":gO.set,"tag:yaml.org,2002:timestamp":A5.timestamp};function ek(D,F,P){let B=uO.get(F);if(B&&!D)return P&&!B.includes(Z1.merge)?B.concat(Z1.merge):B.slice();let Z=B;if(!Z)if(Array.isArray(D))Z=[];else{let X=Array.from(uO.keys()).filter((q)=>q!=="yaml11").map((q)=>JSON.stringify(q)).join(", ");throw Error(`Unknown schema "${F}"; use one of ${X} or define customTags array`)}if(Array.isArray(D))for(let X of D)Z=Z.concat(X);else if(typeof D==="function")Z=D(Z.slice());if(P)Z=Z.concat(Z1.merge);return Z.reduce((X,q)=>{let J=typeof q==="string"?NO[q]:q;if(!J){let Y=JSON.stringify(q),H=Object.keys(NO).map((U)=>JSON.stringify(U)).join(", ");throw Error(`Unknown custom tag ${Y}; use one of ${H}`)}if(!X.includes(J))X.push(J);return X},[])}Dx.coreKnownTags=tk;Dx.getTags=ek});var gF=Q((Jx)=>{var fF=t(),Bx=k8(),Zx=x8(),Xx=D1(),C5=vO(),qx=(D,F)=>D.key<F.key?-1:D.key>F.key?1:0;class hF{constructor({compat:D,customTags:F,merge:P,resolveKnownTags:B,schema:Z,sortMapEntries:X,toStringDefaults:q}){this.compat=Array.isArray(D)?C5.getTags(D,"compat"):D?C5.getTags(null,D):null,this.name=typeof Z==="string"&&Z||"core",this.knownTags=B?C5.coreKnownTags:{},this.tags=C5.getTags(F,this.name,P),this.toStringOptions=q??null,Object.defineProperty(this,fF.MAP,{value:Bx.map}),Object.defineProperty(this,fF.SCALAR,{value:Xx.string}),Object.defineProperty(this,fF.SEQ,{value:Zx.seq}),this.sortMapEntries=typeof X==="function"?X:X===!0?qx:null}clone(){let D=Object.create(hF.prototype,Object.getOwnPropertyDescriptors(this));return D.tags=this.tags.slice(),D}}Jx.Schema=hF});var yO=Q((Wx)=>{var Hx=t(),vF=i6(),X1=a6();function Ux(D,F){let P=[],B=F.directives===!0;if(F.directives!==!1&&D.directives){let Y=D.directives.toString(D);if(Y)P.push(Y),B=!0;else if(D.directives.docStart)B=!0}if(B)P.push("---");let Z=vF.createStringifyContext(D,F),{commentString:X}=Z.options;if(D.commentBefore){if(P.length!==1)P.unshift("");let Y=X(D.commentBefore);P.unshift(X1.indentComment(Y,""))}let q=!1,J=null;if(D.contents){if(Hx.isNode(D.contents)){if(D.contents.spaceBefore&&B)P.push("");if(D.contents.commentBefore){let U=X(D.contents.commentBefore);P.push(X1.indentComment(U,""))}Z.forceBlockIndent=!!D.comment,J=D.contents.comment}let Y=J?void 0:()=>q=!0,H=vF.stringify(D.contents,Z,()=>J=null,Y);if(J)H+=X1.lineComment(H,"",X(J));if((H[0]==="|"||H[0]===">")&&P[P.length-1]==="---")P[P.length-1]=`--- ${H}`;else P.push(H)}else P.push(vF.stringify(D.contents,Z));if(D.directives?.docEnd)if(D.comment){let Y=X(D.comment);if(Y.includes(`
263
263
  `))P.push("..."),P.push(X1.indentComment(Y,""));else P.push(`... ${Y}`)}else P.push("...");else{let Y=D.comment;if(Y&&q)Y=Y.replace(/^\n+/,"");if(Y){if((!q||J)&&P[P.length-1]!=="")P.push("");P.push(X1.indentComment(X(Y),""))}}return P.join(`
264
264
  `)+`
265
- `}Wx.stringifyDocument=Ux});var q1=Q((Ex)=>{var zx=p6(),h8=t3(),J2=t(),Qx=O0(),Gx=H0(),Rx=gF(),Ix=yO(),yF=n3(),$x=XF(),Mx=r6(),mF=ZF();class lF{constructor(D,F,P){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,J2.NODE_TYPE,{value:J2.DOC});let B=null;if(typeof F==="function"||Array.isArray(F))B=F;else if(P===void 0&&F)P=F,F=void 0;let Z=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},P);this.options=Z;let{version:X}=Z;if(P?._directives){if(this.directives=P._directives.atDocument(),this.directives.yaml.explicit)X=this.directives.yaml.version}else this.directives=new mF.Directives({version:X});this.setSchema(X,P),this.contents=D===void 0?null:this.createNode(D,B,P)}clone(){let D=Object.create(lF.prototype,{[J2.NODE_TYPE]:{value:J2.DOC}});if(D.commentBefore=this.commentBefore,D.comment=this.comment,D.errors=this.errors.slice(),D.warnings=this.warnings.slice(),D.options=Object.assign({},this.options),this.directives)D.directives=this.directives.clone();if(D.schema=this.schema.clone(),D.contents=J2.isNode(this.contents)?this.contents.clone(D.schema):this.contents,this.range)D.range=this.range.slice();return D}add(D){if(g8(this.contents))this.contents.add(D)}addIn(D,F){if(g8(this.contents))this.contents.addIn(D,F)}createAlias(D,F){if(!D.anchor){let P=yF.anchorNames(this);D.anchor=!F||P.has(F)?yF.findNewAnchor(F||"a",P):F}return new zx.Alias(D.anchor)}createNode(D,F,P){let B=void 0;if(typeof F==="function")D=F.call({"":D},"",D),B=F;else if(Array.isArray(F)){let R=(K)=>typeof K==="number"||K instanceof String||K instanceof Number,$=F.filter(R).map(String);if($.length>0)F=F.concat($);B=F}else if(P===void 0&&F)P=F,F=void 0;let{aliasDuplicateObjects:Z,anchorPrefix:X,flow:q,keepUndefined:J,onTagObj:Y,tag:H}=P??{},{onAnchor:U,setAnchors:W,sourceObjects:O}=yF.createNodeAnchors(this,X||"a"),z={aliasDuplicateObjects:Z??!0,keepUndefined:J??!1,onAnchor:U,onTagObj:Y,replacer:B,schema:this.schema,sourceObjects:O},I=Mx.createNode(D,H,z);if(q&&J2.isCollection(I))I.flow=!0;return W(),I}createPair(D,F,P={}){let B=this.createNode(D,null,P),Z=this.createNode(F,null,P);return new Qx.Pair(B,Z)}delete(D){return g8(this.contents)?this.contents.delete(D):!1}deleteIn(D){if(h8.isEmptyPath(D)){if(this.contents==null)return!1;return this.contents=null,!0}return g8(this.contents)?this.contents.deleteIn(D):!1}get(D,F){return J2.isCollection(this.contents)?this.contents.get(D,F):void 0}getIn(D,F){if(h8.isEmptyPath(D))return!F&&J2.isScalar(this.contents)?this.contents.value:this.contents;return J2.isCollection(this.contents)?this.contents.getIn(D,F):void 0}has(D){return J2.isCollection(this.contents)?this.contents.has(D):!1}hasIn(D){if(h8.isEmptyPath(D))return this.contents!==void 0;return J2.isCollection(this.contents)?this.contents.hasIn(D):!1}set(D,F){if(this.contents==null)this.contents=h8.collectionFromPath(this.schema,[D],F);else if(g8(this.contents))this.contents.set(D,F)}setIn(D,F){if(h8.isEmptyPath(D))this.contents=F;else if(this.contents==null)this.contents=h8.collectionFromPath(this.schema,Array.from(D),F);else if(g8(this.contents))this.contents.setIn(D,F)}setSchema(D,F={}){if(typeof D==="number")D=String(D);let P;switch(D){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new mF.Directives({version:"1.1"});P={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=D;else this.directives=new mF.Directives({version:D});P={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;P=null;break;default:{let B=JSON.stringify(D);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${B}`)}}if(F.schema instanceof Object)this.schema=F.schema;else if(P)this.schema=new Rx.Schema(Object.assign(P,F));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:D,jsonArg:F,mapAsMap:P,maxAliasCount:B,onAnchor:Z,reviver:X}={}){let q={anchors:new Map,doc:this,keep:!D,mapAsMap:P===!0,mapKeyWarned:!1,maxAliasCount:typeof B==="number"?B:100},J=Gx.toJS(this.contents,F??"",q);if(typeof Z==="function")for(let{count:Y,res:H}of q.anchors.values())Z(H,Y);return typeof X==="function"?$x.applyReviver(X,{"":J},"",J):J}toJSON(D,F){return this.toJS({json:!0,jsonArg:D,mapAsMap:!1,onAnchor:F})}toString(D={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in D&&(!Number.isInteger(D.indent)||Number(D.indent)<=0)){let F=JSON.stringify(D.indent);throw new Error(`"indent" option must be a positive integer, not ${F}`)}return Ix.stringifyDocument(this,D)}}function g8(D){if(J2.isCollection(D))return!0;throw new Error("Expected a YAML collection as document contents")}Ex.Document=lF});var J1=Q((Cx)=>{class L5 extends Error{constructor(D,F,P,B){super();this.name=D,this.code=P,this.message=B,this.pos=F}}class mO extends L5{constructor(D,F,P){super("YAMLParseError",D,F,P)}}class lO extends L5{constructor(D,F,P){super("YAMLWarning",D,F,P)}}var Ax=(D,F)=>(P)=>{if(P.pos[0]===-1)return;P.linePos=P.pos.map((J)=>F.linePos(J));let{line:B,col:Z}=P.linePos[0];P.message+=` at line ${B}, column ${Z}`;let X=Z-1,q=D.substring(F.lineStarts[B-1],F.lineStarts[B]).replace(/[\n\r]+$/,"");if(X>=60&&q.length>80){let J=Math.min(X-39,q.length-79);q="…"+q.substring(J),X-=J-1}if(q.length>80)q=q.substring(0,79)+"…";if(B>1&&/^ *$/.test(q.substring(0,X))){let J=D.substring(F.lineStarts[B-2],F.lineStarts[B-1]);if(J.length>80)J=J.substring(0,79)+`…
265
+ `}Wx.stringifyDocument=Ux});var q1=Q((Ex)=>{var zx=p6(),h8=t3(),J2=t(),Qx=O0(),Gx=H0(),Rx=gF(),Ix=yO(),yF=n3(),$x=XF(),Mx=r6(),mF=ZF();class lF{constructor(D,F,P){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,J2.NODE_TYPE,{value:J2.DOC});let B=null;if(typeof F==="function"||Array.isArray(F))B=F;else if(P===void 0&&F)P=F,F=void 0;let Z=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},P);this.options=Z;let{version:X}=Z;if(P?._directives){if(this.directives=P._directives.atDocument(),this.directives.yaml.explicit)X=this.directives.yaml.version}else this.directives=new mF.Directives({version:X});this.setSchema(X,P),this.contents=D===void 0?null:this.createNode(D,B,P)}clone(){let D=Object.create(lF.prototype,{[J2.NODE_TYPE]:{value:J2.DOC}});if(D.commentBefore=this.commentBefore,D.comment=this.comment,D.errors=this.errors.slice(),D.warnings=this.warnings.slice(),D.options=Object.assign({},this.options),this.directives)D.directives=this.directives.clone();if(D.schema=this.schema.clone(),D.contents=J2.isNode(this.contents)?this.contents.clone(D.schema):this.contents,this.range)D.range=this.range.slice();return D}add(D){if(g8(this.contents))this.contents.add(D)}addIn(D,F){if(g8(this.contents))this.contents.addIn(D,F)}createAlias(D,F){if(!D.anchor){let P=yF.anchorNames(this);D.anchor=!F||P.has(F)?yF.findNewAnchor(F||"a",P):F}return new zx.Alias(D.anchor)}createNode(D,F,P){let B=void 0;if(typeof F==="function")D=F.call({"":D},"",D),B=F;else if(Array.isArray(F)){let R=(K)=>typeof K==="number"||K instanceof String||K instanceof Number,$=F.filter(R).map(String);if($.length>0)F=F.concat($);B=F}else if(P===void 0&&F)P=F,F=void 0;let{aliasDuplicateObjects:Z,anchorPrefix:X,flow:q,keepUndefined:J,onTagObj:Y,tag:H}=P??{},{onAnchor:U,setAnchors:W,sourceObjects:O}=yF.createNodeAnchors(this,X||"a"),z={aliasDuplicateObjects:Z??!0,keepUndefined:J??!1,onAnchor:U,onTagObj:Y,replacer:B,schema:this.schema,sourceObjects:O},I=Mx.createNode(D,H,z);if(q&&J2.isCollection(I))I.flow=!0;return W(),I}createPair(D,F,P={}){let B=this.createNode(D,null,P),Z=this.createNode(F,null,P);return new Qx.Pair(B,Z)}delete(D){return g8(this.contents)?this.contents.delete(D):!1}deleteIn(D){if(h8.isEmptyPath(D)){if(this.contents==null)return!1;return this.contents=null,!0}return g8(this.contents)?this.contents.deleteIn(D):!1}get(D,F){return J2.isCollection(this.contents)?this.contents.get(D,F):void 0}getIn(D,F){if(h8.isEmptyPath(D))return!F&&J2.isScalar(this.contents)?this.contents.value:this.contents;return J2.isCollection(this.contents)?this.contents.getIn(D,F):void 0}has(D){return J2.isCollection(this.contents)?this.contents.has(D):!1}hasIn(D){if(h8.isEmptyPath(D))return this.contents!==void 0;return J2.isCollection(this.contents)?this.contents.hasIn(D):!1}set(D,F){if(this.contents==null)this.contents=h8.collectionFromPath(this.schema,[D],F);else if(g8(this.contents))this.contents.set(D,F)}setIn(D,F){if(h8.isEmptyPath(D))this.contents=F;else if(this.contents==null)this.contents=h8.collectionFromPath(this.schema,Array.from(D),F);else if(g8(this.contents))this.contents.setIn(D,F)}setSchema(D,F={}){if(typeof D==="number")D=String(D);let P;switch(D){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new mF.Directives({version:"1.1"});P={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=D;else this.directives=new mF.Directives({version:D});P={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;P=null;break;default:{let B=JSON.stringify(D);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${B}`)}}if(F.schema instanceof Object)this.schema=F.schema;else if(P)this.schema=new Rx.Schema(Object.assign(P,F));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:D,jsonArg:F,mapAsMap:P,maxAliasCount:B,onAnchor:Z,reviver:X}={}){let q={anchors:new Map,doc:this,keep:!D,mapAsMap:P===!0,mapKeyWarned:!1,maxAliasCount:typeof B==="number"?B:100},J=Gx.toJS(this.contents,F??"",q);if(typeof Z==="function")for(let{count:Y,res:H}of q.anchors.values())Z(H,Y);return typeof X==="function"?$x.applyReviver(X,{"":J},"",J):J}toJSON(D,F){return this.toJS({json:!0,jsonArg:D,mapAsMap:!1,onAnchor:F})}toString(D={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in D&&(!Number.isInteger(D.indent)||Number(D.indent)<=0)){let F=JSON.stringify(D.indent);throw Error(`"indent" option must be a positive integer, not ${F}`)}return Ix.stringifyDocument(this,D)}}function g8(D){if(J2.isCollection(D))return!0;throw Error("Expected a YAML collection as document contents")}Ex.Document=lF});var J1=Q((Cx)=>{class L5 extends Error{constructor(D,F,P,B){super();this.name=D,this.code=P,this.message=B,this.pos=F}}class mO extends L5{constructor(D,F,P){super("YAMLParseError",D,F,P)}}class lO extends L5{constructor(D,F,P){super("YAMLWarning",D,F,P)}}var Ax=(D,F)=>(P)=>{if(P.pos[0]===-1)return;P.linePos=P.pos.map((J)=>F.linePos(J));let{line:B,col:Z}=P.linePos[0];P.message+=` at line ${B}, column ${Z}`;let X=Z-1,q=D.substring(F.lineStarts[B-1],F.lineStarts[B]).replace(/[\n\r]+$/,"");if(X>=60&&q.length>80){let J=Math.min(X-39,q.length-79);q="…"+q.substring(J),X-=J-1}if(q.length>80)q=q.substring(0,79)+"…";if(B>1&&/^ *$/.test(q.substring(0,X))){let J=D.substring(F.lineStarts[B-2],F.lineStarts[B-1]);if(J.length>80)J=J.substring(0,79)+`…
266
266
  `;q=J+q}if(/[^ ]/.test(q)){let J=1,Y=P.linePos[1];if(Y&&Y.line===B&&Y.col>Z)J=Math.max(1,Math.min(Y.col-Z,80-X));let H=" ".repeat(X)+"^".repeat(J);P.message+=`:
267
267
 
268
268
  ${q}
@@ -315,11 +315,11 @@ ${F.comment}`:F.comment}this.doc.range[2]=F.offset;break}default:this.errors.pus
315
315
  `}];switch(J[0]){case"|":case">":{let H=J.indexOf(`
316
316
  `),U=J.substring(0,H),W=J.substring(H+1)+`
317
317
  `,O=[{type:"block-scalar-header",offset:X,indent:B,source:U}];if(!zz(O,Y))O.push({type:"newline",offset:-1,indent:B,source:`
318
- `});return{type:"block-scalar",offset:X,indent:B,props:O,source:W}}case'"':return{type:"double-quoted-scalar",offset:X,indent:B,source:J,end:Y};case"'":return{type:"single-quoted-scalar",offset:X,indent:B,source:J,end:Y};default:return{type:"scalar",offset:X,indent:B,source:J,end:Y}}}function Eh(D,F,P={}){let{afterKey:B=!1,implicitKey:Z=!1,inFlow:X=!1,type:q}=P,J="indent"in D?D.indent:null;if(B&&typeof J==="number")J+=2;if(!q)switch(D.type){case"single-quoted-scalar":q="QUOTE_SINGLE";break;case"double-quoted-scalar":q="QUOTE_DOUBLE";break;case"block-scalar":{let H=D.props[0];if(H.type!=="block-scalar-header")throw new Error("Invalid block scalar header");q=H.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:q="PLAIN"}let Y=Oz.stringifyString({type:q,value:F},{implicitKey:Z||J===null,indent:J!==null&&J>0?" ".repeat(J):"",inFlow:X,options:{blockQuote:!0,lineWidth:-1}});switch(Y[0]){case"|":case">":Kh(D,Y);break;case'"':FP(D,Y,"double-quoted-scalar");break;case"'":FP(D,Y,"single-quoted-scalar");break;default:FP(D,Y,"scalar")}}function Kh(D,F){let P=F.indexOf(`
318
+ `});return{type:"block-scalar",offset:X,indent:B,props:O,source:W}}case'"':return{type:"double-quoted-scalar",offset:X,indent:B,source:J,end:Y};case"'":return{type:"single-quoted-scalar",offset:X,indent:B,source:J,end:Y};default:return{type:"scalar",offset:X,indent:B,source:J,end:Y}}}function Eh(D,F,P={}){let{afterKey:B=!1,implicitKey:Z=!1,inFlow:X=!1,type:q}=P,J="indent"in D?D.indent:null;if(B&&typeof J==="number")J+=2;if(!q)switch(D.type){case"single-quoted-scalar":q="QUOTE_SINGLE";break;case"double-quoted-scalar":q="QUOTE_DOUBLE";break;case"block-scalar":{let H=D.props[0];if(H.type!=="block-scalar-header")throw Error("Invalid block scalar header");q=H.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:q="PLAIN"}let Y=Oz.stringifyString({type:q,value:F},{implicitKey:Z||J===null,indent:J!==null&&J>0?" ".repeat(J):"",inFlow:X,options:{blockQuote:!0,lineWidth:-1}});switch(Y[0]){case"|":case">":Kh(D,Y);break;case'"':FP(D,Y,"double-quoted-scalar");break;case"'":FP(D,Y,"single-quoted-scalar");break;default:FP(D,Y,"scalar")}}function Kh(D,F){let P=F.indexOf(`
319
319
  `),B=F.substring(0,P),Z=F.substring(P+1)+`
320
- `;if(D.type==="block-scalar"){let X=D.props[0];if(X.type!=="block-scalar-header")throw new Error("Invalid block scalar header");X.source=B,D.source=Z}else{let{offset:X}=D,q="indent"in D?D.indent:-1,J=[{type:"block-scalar-header",offset:X,indent:q,source:B}];if(!zz(J,"end"in D?D.end:void 0))J.push({type:"newline",offset:-1,indent:q,source:`
320
+ `;if(D.type==="block-scalar"){let X=D.props[0];if(X.type!=="block-scalar-header")throw Error("Invalid block scalar header");X.source=B,D.source=Z}else{let{offset:X}=D,q="indent"in D?D.indent:-1,J=[{type:"block-scalar-header",offset:X,indent:q,source:B}];if(!zz(J,"end"in D?D.end:void 0))J.push({type:"newline",offset:-1,indent:q,source:`
321
321
  `});for(let Y of Object.keys(D))if(Y!=="type"&&Y!=="offset")delete D[Y];Object.assign(D,{type:"block-scalar",indent:q,props:J,source:Z})}}function zz(D,F){if(F)for(let P of F)switch(P.type){case"space":case"comment":D.push(P);break;case"newline":return D.push(P),!0}return!1}function FP(D,F,P){switch(D.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":D.type=P,D.source=F;break;case"block-scalar":{let B=D.props.slice(1),Z=F.length;if(D.props[0].type==="block-scalar-header")Z-=D.props[0].source.length;for(let X of B)X.offset+=Z;delete D.props,Object.assign(D,{type:P,source:F,end:B});break}case"block-map":case"block-seq":{let Z={type:"newline",offset:D.offset+F.length,indent:D.indent,source:`
322
- `};delete D.items,Object.assign(D,{type:P,source:F,end:[Z]});break}default:{let B="indent"in D?D.indent:-1,Z="end"in D&&Array.isArray(D.end)?D.end.filter((X)=>X.type==="space"||X.type==="comment"||X.type==="newline"):[];for(let X of Object.keys(D))if(X!=="type"&&X!=="offset")delete D[X];Object.assign(D,{type:P,indent:B,source:F,end:Z})}}}Ah.createScalarToken=Mh;Ah.resolveAsScalar=$h;Ah.setScalarValue=Eh});var Gz=Q((jh)=>{var wh=(D)=>("type"in D)?j5(D):w5(D);function j5(D){switch(D.type){case"block-scalar":{let F="";for(let P of D.props)F+=j5(P);return F+D.source}case"block-map":case"block-seq":{let F="";for(let P of D.items)F+=w5(P);return F}case"flow-collection":{let F=D.start.source;for(let P of D.items)F+=w5(P);for(let P of D.end)F+=P.source;return F}case"document":{let F=w5(D);if(D.end)for(let P of D.end)F+=P.source;return F}default:{let F=D.source;if("end"in D&&D.end)for(let P of D.end)F+=P.source;return F}}}function w5({start:D,key:F,sep:P,value:B}){let Z="";for(let X of D)Z+=X.source;if(F)Z+=j5(F);if(P)for(let X of P)Z+=X.source;if(B)Z+=j5(B);return Z}jh.stringify=wh});var $z=Q((Th)=>{var PP=Symbol("break visit"),Sh=Symbol("skip children"),Rz=Symbol("remove item");function D8(D,F){if("type"in D&&D.type==="document")D={start:D.start,value:D.value};Iz(Object.freeze([]),D,F)}D8.BREAK=PP;D8.SKIP=Sh;D8.REMOVE=Rz;D8.itemAtPath=(D,F)=>{let P=D;for(let[B,Z]of F){let X=P?.[B];if(X&&"items"in X)P=X.items[Z];else return}return P};D8.parentCollection=(D,F)=>{let P=D8.itemAtPath(D,F.slice(0,-1)),B=F[F.length-1][0],Z=P?.[B];if(Z&&"items"in Z)return Z;throw new Error("Parent collection not found")};function Iz(D,F,P){let B=P(F,D);if(typeof B==="symbol")return B;for(let Z of["key","value"]){let X=F[Z];if(X&&"items"in X){for(let q=0;q<X.items.length;++q){let J=Iz(Object.freeze(D.concat([[Z,q]])),X.items[q],P);if(typeof J==="number")q=J-1;else if(J===PP)return PP;else if(J===Rz)X.items.splice(q,1),q-=1}if(typeof B==="function"&&Z==="key")B=B(F,D)}}return typeof B==="function"?B(F,D):B}Th.visit=D8});var b5=Q((gh)=>{var BP=Qz(),Nh=Gz(),_h=$z(),ZP="\uFEFF",XP="\x02",qP="\x18",JP="\x1F",kh=(D)=>!!D&&("items"in D),xh=(D)=>!!D&&(D.type==="scalar"||D.type==="single-quoted-scalar"||D.type==="double-quoted-scalar"||D.type==="block-scalar");function fh(D){switch(D){case ZP:return"<BOM>";case XP:return"<DOC>";case qP:return"<FLOW_END>";case JP:return"<SCALAR>";default:return JSON.stringify(D)}}function hh(D){switch(D){case ZP:return"byte-order-mark";case XP:return"doc-mode";case qP:return"flow-error-end";case JP:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
322
+ `};delete D.items,Object.assign(D,{type:P,source:F,end:[Z]});break}default:{let B="indent"in D?D.indent:-1,Z="end"in D&&Array.isArray(D.end)?D.end.filter((X)=>X.type==="space"||X.type==="comment"||X.type==="newline"):[];for(let X of Object.keys(D))if(X!=="type"&&X!=="offset")delete D[X];Object.assign(D,{type:P,indent:B,source:F,end:Z})}}}Ah.createScalarToken=Mh;Ah.resolveAsScalar=$h;Ah.setScalarValue=Eh});var Gz=Q((jh)=>{var wh=(D)=>("type"in D)?j5(D):w5(D);function j5(D){switch(D.type){case"block-scalar":{let F="";for(let P of D.props)F+=j5(P);return F+D.source}case"block-map":case"block-seq":{let F="";for(let P of D.items)F+=w5(P);return F}case"flow-collection":{let F=D.start.source;for(let P of D.items)F+=w5(P);for(let P of D.end)F+=P.source;return F}case"document":{let F=w5(D);if(D.end)for(let P of D.end)F+=P.source;return F}default:{let F=D.source;if("end"in D&&D.end)for(let P of D.end)F+=P.source;return F}}}function w5({start:D,key:F,sep:P,value:B}){let Z="";for(let X of D)Z+=X.source;if(F)Z+=j5(F);if(P)for(let X of P)Z+=X.source;if(B)Z+=j5(B);return Z}jh.stringify=wh});var $z=Q((Th)=>{var PP=Symbol("break visit"),Sh=Symbol("skip children"),Rz=Symbol("remove item");function D8(D,F){if("type"in D&&D.type==="document")D={start:D.start,value:D.value};Iz(Object.freeze([]),D,F)}D8.BREAK=PP;D8.SKIP=Sh;D8.REMOVE=Rz;D8.itemAtPath=(D,F)=>{let P=D;for(let[B,Z]of F){let X=P?.[B];if(X&&"items"in X)P=X.items[Z];else return}return P};D8.parentCollection=(D,F)=>{let P=D8.itemAtPath(D,F.slice(0,-1)),B=F[F.length-1][0],Z=P?.[B];if(Z&&"items"in Z)return Z;throw Error("Parent collection not found")};function Iz(D,F,P){let B=P(F,D);if(typeof B==="symbol")return B;for(let Z of["key","value"]){let X=F[Z];if(X&&"items"in X){for(let q=0;q<X.items.length;++q){let J=Iz(Object.freeze(D.concat([[Z,q]])),X.items[q],P);if(typeof J==="number")q=J-1;else if(J===PP)return PP;else if(J===Rz)X.items.splice(q,1),q-=1}if(typeof B==="function"&&Z==="key")B=B(F,D)}}return typeof B==="function"?B(F,D):B}Th.visit=D8});var b5=Q((gh)=>{var BP=Qz(),Nh=Gz(),_h=$z(),ZP="\uFEFF",XP="\x02",qP="\x18",JP="\x1F",kh=(D)=>!!D&&("items"in D),xh=(D)=>!!D&&(D.type==="scalar"||D.type==="single-quoted-scalar"||D.type==="double-quoted-scalar"||D.type==="block-scalar");function fh(D){switch(D){case ZP:return"<BOM>";case XP:return"<DOC>";case qP:return"<FLOW_END>";case JP:return"<SCALAR>";default:return JSON.stringify(D)}}function hh(D){switch(D){case ZP:return"byte-order-mark";case XP:return"doc-mode";case qP:return"flow-error-end";case JP:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
323
323
  `:case`\r
324
324
  `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(D[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}gh.createScalarToken=BP.createScalarToken;gh.resolveAsScalar=BP.resolveAsScalar;gh.setScalarValue=BP.setScalarValue;gh.stringify=Nh.stringify;gh.visit=_h.visit;gh.BOM=ZP;gh.DOCUMENT=XP;gh.FLOW_END=qP;gh.SCALAR=JP;gh.isCollection=kh;gh.isScalar=xh;gh.prettyToken=fh;gh.tokenType=hh});var HP=Q((Dg)=>{var W1=b5();function E2(D){switch(D){case void 0:case" ":case`
325
325
  `:case"\r":case"\t":return!0;default:return!1}}var Mz=new Set("0123456789ABCDEFabcdef"),th=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),S5=new Set(",[]{}"),eh=new Set(` ,[]{}
@@ -344,11 +344,43 @@ ${F.comment}`:F.comment}this.doc.range[2]=F.offset;break}default:this.errors.pus
344
344
  `)+1;while(F!==0)this.onNewLine(this.offset+F),F=this.source.indexOf(`
345
345
  `,F)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(D){let F=D.items[D.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,F.value){let P="end"in F.value?F.value.end:void 0;if((Array.isArray(P)?P[P.length-1]:void 0)?.type==="comment")P?.push(this.sourceToken);else D.items.push({start:[this.sourceToken]})}else if(F.sep)F.sep.push(this.sourceToken);else F.start.push(this.sourceToken);return;case"space":case"comment":if(F.value)D.items.push({start:[this.sourceToken]});else if(F.sep)F.sep.push(this.sourceToken);else{if(this.atIndentedComment(F.start,D.indent)){let B=D.items[D.items.length-2]?.value?.end;if(Array.isArray(B)){Array.prototype.push.apply(B,F.start),B.push(this.sourceToken),D.items.pop();return}}F.start.push(this.sourceToken)}return}if(this.indent>=D.indent){let P=!this.onKeyLine&&this.indent===D.indent,B=P&&(F.sep||F.explicitKey)&&this.type!=="seq-item-ind",Z=[];if(B&&F.sep&&!F.value){let X=[];for(let q=0;q<F.sep.length;++q){let J=F.sep[q];switch(J.type){case"newline":X.push(q);break;case"space":break;case"comment":if(J.indent>D.indent)X.length=0;break;default:X.length=0}}if(X.length>=2)Z=F.sep.splice(X[1])}switch(this.type){case"anchor":case"tag":if(B||F.value)Z.push(this.sourceToken),D.items.push({start:Z}),this.onKeyLine=!0;else if(F.sep)F.sep.push(this.sourceToken);else F.start.push(this.sourceToken);return;case"explicit-key-ind":if(!F.sep&&!F.explicitKey)F.start.push(this.sourceToken),F.explicitKey=!0;else if(B||F.value)Z.push(this.sourceToken),D.items.push({start:Z,explicitKey:!0});else this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]});this.onKeyLine=!0;return;case"map-value-ind":if(F.explicitKey)if(!F.sep)if(R0(F.start,"newline"))Object.assign(F,{key:null,sep:[this.sourceToken]});else{let X=y8(F.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:X,key:null,sep:[this.sourceToken]}]})}else if(F.value)D.items.push({start:[],key:null,sep:[this.sourceToken]});else if(R0(F.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Z,key:null,sep:[this.sourceToken]}]});else if(Vz(F.key)&&!R0(F.sep,"newline")){let X=y8(F.start),q=F.key,J=F.sep;J.push(this.sourceToken),delete F.key,delete F.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:X,key:q,sep:J}]})}else if(Z.length>0)F.sep=F.sep.concat(Z,this.sourceToken);else F.sep.push(this.sourceToken);else if(!F.sep)Object.assign(F,{key:null,sep:[this.sourceToken]});else if(F.value||B)D.items.push({start:Z,key:null,sep:[this.sourceToken]});else if(R0(F.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else F.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let X=this.flowScalar(this.type);if(B||F.value)D.items.push({start:Z,key:X,sep:[]}),this.onKeyLine=!0;else if(F.sep)this.stack.push(X);else Object.assign(F,{key:X,sep:[]}),this.onKeyLine=!0;return}default:{let X=this.startBlockValue(D);if(X){if(X.type==="block-seq"){if(!F.explicitKey&&F.sep&&!R0(F.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(P)D.items.push({start:Z});this.stack.push(X);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(D){let F=D.items[D.items.length-1];switch(this.type){case"newline":if(F.value){let P="end"in F.value?F.value.end:void 0;if((Array.isArray(P)?P[P.length-1]:void 0)?.type==="comment")P?.push(this.sourceToken);else D.items.push({start:[this.sourceToken]})}else F.start.push(this.sourceToken);return;case"space":case"comment":if(F.value)D.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(F.start,D.indent)){let B=D.items[D.items.length-2]?.value?.end;if(Array.isArray(B)){Array.prototype.push.apply(B,F.start),B.push(this.sourceToken),D.items.pop();return}}F.start.push(this.sourceToken)}return;case"anchor":case"tag":if(F.value||this.indent<=D.indent)break;F.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==D.indent)break;if(F.value||R0(F.start,"seq-item-ind"))D.items.push({start:[this.sourceToken]});else F.start.push(this.sourceToken);return}if(this.indent>D.indent){let P=this.startBlockValue(D);if(P){this.stack.push(P);return}}yield*this.pop(),yield*this.step()}*flowCollection(D){let F=D.items[D.items.length-1];if(this.type==="flow-error-end"){let P;do yield*this.pop(),P=this.peek(1);while(P&&P.type==="flow-collection")}else if(D.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!F||F.sep)D.items.push({start:[this.sourceToken]});else F.start.push(this.sourceToken);return;case"map-value-ind":if(!F||F.value)D.items.push({start:[],key:null,sep:[this.sourceToken]});else if(F.sep)F.sep.push(this.sourceToken);else Object.assign(F,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!F||F.value)D.items.push({start:[this.sourceToken]});else if(F.sep)F.sep.push(this.sourceToken);else F.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let B=this.flowScalar(this.type);if(!F||F.value)D.items.push({start:[],key:B,sep:[]});else if(F.sep)this.stack.push(B);else Object.assign(F,{key:B,sep:[]});return}case"flow-map-end":case"flow-seq-end":D.end.push(this.sourceToken);return}let P=this.startBlockValue(D);if(P)this.stack.push(P);else yield*this.pop(),yield*this.step()}else{let P=this.peek(2);if(P.type==="block-map"&&(this.type==="map-value-ind"&&P.indent===D.indent||this.type==="newline"&&!P.items[P.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&P.type!=="flow-collection"){let B=T5(P),Z=y8(B);Lz(D);let X=D.end.splice(1,D.end.length);X.push(this.sourceToken);let q={type:"block-map",offset:D.offset,indent:D.indent,items:[{start:Z,key:D,sep:X}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=q}else yield*this.lineEnd(D)}}flowScalar(D){if(this.onNewLine){let F=this.source.indexOf(`
346
346
  `)+1;while(F!==0)this.onNewLine(this.offset+F),F=this.source.indexOf(`
347
- `,F)+1}return{type:D,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(D){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let F=T5(D),P=y8(F);return P.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:P,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let F=T5(D),P=y8(F);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:P,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(D,F){if(this.type!=="comment")return!1;if(this.indent<=F)return!1;return D.every((P)=>P.type==="newline"||P.type==="space")}*documentEnd(D){if(this.type!=="doc-mode"){if(D.end)D.end.push(this.sourceToken);else D.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(D){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:if(D.end)D.end.push(this.sourceToken);else D.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}qg.Parser=wz});var uz=Q((Gg)=>{var jz=DP(),Yg=q1(),O1=J1(),Hg=UF(),Ug=t(),Wg=UP(),bz=WP();function Sz(D){let F=D.prettyErrors!==!1;return{lineCounter:D.lineCounter||F&&new Wg.LineCounter||null,prettyErrors:F}}function Og(D,F={}){let{lineCounter:P,prettyErrors:B}=Sz(F),Z=new bz.Parser(P?.addNewLine),X=new jz.Composer(F),q=Array.from(X.compose(Z.parse(D)));if(B&&P)for(let J of q)J.errors.forEach(O1.prettifyError(D,P)),J.warnings.forEach(O1.prettifyError(D,P));if(q.length>0)return q;return Object.assign([],{empty:!0},X.streamInfo())}function Tz(D,F={}){let{lineCounter:P,prettyErrors:B}=Sz(F),Z=new bz.Parser(P?.addNewLine),X=new jz.Composer(F),q=null;for(let J of X.compose(Z.parse(D),!0,D.length))if(!q)q=J;else if(q.options.logLevel!=="silent"){q.errors.push(new O1.YAMLParseError(J.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(B&&P)q.errors.forEach(O1.prettifyError(D,P)),q.warnings.forEach(O1.prettifyError(D,P));return q}function zg(D,F,P){let B=void 0;if(typeof F==="function")B=F;else if(P===void 0&&F&&typeof F==="object")P=F;let Z=Tz(D,P);if(!Z)return null;if(Z.warnings.forEach((X)=>Hg.warn(Z.options.logLevel,X)),Z.errors.length>0)if(Z.options.logLevel!=="silent")throw Z.errors[0];else Z.errors=[];return Z.toJS(Object.assign({reviver:B},P))}function Qg(D,F,P){let B=null;if(typeof F==="function"||Array.isArray(F))B=F;else if(P===void 0&&F)P=F;if(typeof P==="string")P=P.length;if(typeof P==="number"){let Z=Math.round(P);P=Z<1?void 0:Z>8?{indent:8}:{indent:Z}}if(D===void 0){let{keepUndefined:Z}=P??F??{};if(!Z)return}if(Ug.isDocument(D)&&!B)return D.toString(P);return new Yg.Document(D,B,P).toString(P)}Gg.parse=zg;Gg.parseAllDocuments=Og;Gg.parseDocument=Tz;Gg.stringify=Qg});var _z=Q((Ng)=>{var Eg=DP(),Kg=q1(),Ag=gF(),OP=J1(),Cg=p6(),I0=t(),Lg=O0(),Vg=CD(),wg=Q0(),jg=G0(),bg=b5(),Sg=HP(),Tg=UP(),ug=WP(),u5=uz(),Nz=c6();Ng.Composer=Eg.Composer;Ng.Document=Kg.Document;Ng.Schema=Ag.Schema;Ng.YAMLError=OP.YAMLError;Ng.YAMLParseError=OP.YAMLParseError;Ng.YAMLWarning=OP.YAMLWarning;Ng.Alias=Cg.Alias;Ng.isAlias=I0.isAlias;Ng.isCollection=I0.isCollection;Ng.isDocument=I0.isDocument;Ng.isMap=I0.isMap;Ng.isNode=I0.isNode;Ng.isPair=I0.isPair;Ng.isScalar=I0.isScalar;Ng.isSeq=I0.isSeq;Ng.Pair=Lg.Pair;Ng.Scalar=Vg.Scalar;Ng.YAMLMap=wg.YAMLMap;Ng.YAMLSeq=jg.YAMLSeq;Ng.CST=bg;Ng.Lexer=Sg.Lexer;Ng.LineCounter=Tg.LineCounter;Ng.Parser=ug.Parser;Ng.parse=u5.parse;Ng.parseAllDocuments=u5.parseAllDocuments;Ng.parseDocument=u5.parseDocument;Ng.stringify=u5.stringify;Ng.visit=Nz.visit;Ng.visitAsync=Nz.visitAsync});var G1={name:"@samarium.sdk/new",version:"0.24.4",main:"bin/samarium",type:"module",repository:{type:"git",url:"https://github.com/liontariai/samarium",directory:"packages/new"},keywords:["graphql","typescript","compiler","api","sdk","openapi","oas3","oas3.1","swagger","graphql-sdk","graphql-codegen"],homepage:"https://liontari.ai",bin:{samarium:"bin/samarium"},publishConfig:{access:"public"},files:["bin/**/*","README.md","package.json"],scripts:{prettier:"prettier --write .",bundle:"bun bundle.ts",prepublishOnly:"bun run bundle",test:"bun test"},prettier:{tabWidth:4},devDependencies:{"bun-types":"^1.2.19","@samarium.sdk/make":"workspace:*"},peerDependencies:{typescript:"^5.0.0"},dependencies:{"@inquirer/prompts":"^5.0.5",commander:"^11.1.0","detect-indent":"^7.0.1",prettier:"^3.2.5",yaml:"^2.6.0"}};var hP=RD(fP(),1),{program:Ev,createCommand:Kv,createArgument:Av,createOption:Cv,CommanderError:Lv,InvalidArgumentError:Vv,InvalidOptionArgumentError:wv,Command:gP,Argument:jv,Option:bv,Help:Sv}=hP.default;var dH=RD(l2(),1);var E3=RD(l2(),1);class P0 extends Error{response;request;constructor(D,F){let P=`${P0.extractMessage(D)}: ${JSON.stringify({response:D,request:F})}`;super(P);if(Object.setPrototypeOf(this,P0.prototype),this.response=D,this.request=F,typeof Error.captureStackTrace==="function")Error.captureStackTrace(this,P0)}static extractMessage(D){return D.errors?.[0]?.message??`GraphQL Error (Code: ${String(D.status)})`}}var W7=(D)=>D.toUpperCase(),Q3=(D)=>{return typeof D==="function"?D():D},O7=(D,F)=>D.map((P,B)=>[P,F[B]]),x0=(D)=>{let F={};if(D instanceof Headers)F=_b(D);else if(Array.isArray(D))D.forEach(([P,B])=>{if(P&&B!==void 0)F[P]=B});else if(D)F=D;return F},_b=(D)=>{let F={};return D.forEach((P,B)=>{F[B]=P}),F},NH=(D)=>{try{let F=D();if(kb(F))return F.catch((P)=>{return uH(P)});return F}catch(F){return uH(F)}},uH=(D)=>{if(D instanceof Error)return D;return new Error(String(D))},kb=(D)=>{return typeof D==="object"&&D!==null&&"then"in D&&typeof D.then==="function"&&"catch"in D&&typeof D.catch==="function"&&"finally"in D&&typeof D.finally==="function"},G3=(D)=>{throw new Error(`Unhandled case: ${String(D)}`)},S6=(D)=>{return typeof D==="object"&&D!==null&&!Array.isArray(D)};var _H=(D,F)=>{return D.documents?D:{documents:D,requestHeaders:F,signal:void 0}};var kH=(D,F,P)=>{return D.query?D:{query:D,variables:F,requestHeaders:P,signal:void 0}};var hH=RD(l2(),1);var z7="Accept",R3="Content-Type",T6="application/json",I3="application/graphql-response+json";var Q7=(D)=>D.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),gH=(D)=>{let F=D.toLowerCase();return F.includes(I3)||F.includes(T6)},G7=(D)=>{try{if(Array.isArray(D))return{_tag:"Batch",executionResults:D.map(xH)};else if(S6(D))return{_tag:"Single",executionResult:xH(D)};else throw new Error(`Invalid execution result: result is not object or array.
347
+ `,F)+1}return{type:D,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(D){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let F=T5(D),P=y8(F);return P.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:P,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let F=T5(D),P=y8(F);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:P,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(D,F){if(this.type!=="comment")return!1;if(this.indent<=F)return!1;return D.every((P)=>P.type==="newline"||P.type==="space")}*documentEnd(D){if(this.type!=="doc-mode"){if(D.end)D.end.push(this.sourceToken);else D.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(D){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:if(D.end)D.end.push(this.sourceToken);else D.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}qg.Parser=wz});var uz=Q((Gg)=>{var jz=DP(),Yg=q1(),O1=J1(),Hg=UF(),Ug=t(),Wg=UP(),bz=WP();function Sz(D){let F=D.prettyErrors!==!1;return{lineCounter:D.lineCounter||F&&new Wg.LineCounter||null,prettyErrors:F}}function Og(D,F={}){let{lineCounter:P,prettyErrors:B}=Sz(F),Z=new bz.Parser(P?.addNewLine),X=new jz.Composer(F),q=Array.from(X.compose(Z.parse(D)));if(B&&P)for(let J of q)J.errors.forEach(O1.prettifyError(D,P)),J.warnings.forEach(O1.prettifyError(D,P));if(q.length>0)return q;return Object.assign([],{empty:!0},X.streamInfo())}function Tz(D,F={}){let{lineCounter:P,prettyErrors:B}=Sz(F),Z=new bz.Parser(P?.addNewLine),X=new jz.Composer(F),q=null;for(let J of X.compose(Z.parse(D),!0,D.length))if(!q)q=J;else if(q.options.logLevel!=="silent"){q.errors.push(new O1.YAMLParseError(J.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(B&&P)q.errors.forEach(O1.prettifyError(D,P)),q.warnings.forEach(O1.prettifyError(D,P));return q}function zg(D,F,P){let B=void 0;if(typeof F==="function")B=F;else if(P===void 0&&F&&typeof F==="object")P=F;let Z=Tz(D,P);if(!Z)return null;if(Z.warnings.forEach((X)=>Hg.warn(Z.options.logLevel,X)),Z.errors.length>0)if(Z.options.logLevel!=="silent")throw Z.errors[0];else Z.errors=[];return Z.toJS(Object.assign({reviver:B},P))}function Qg(D,F,P){let B=null;if(typeof F==="function"||Array.isArray(F))B=F;else if(P===void 0&&F)P=F;if(typeof P==="string")P=P.length;if(typeof P==="number"){let Z=Math.round(P);P=Z<1?void 0:Z>8?{indent:8}:{indent:Z}}if(D===void 0){let{keepUndefined:Z}=P??F??{};if(!Z)return}if(Ug.isDocument(D)&&!B)return D.toString(P);return new Yg.Document(D,B,P).toString(P)}Gg.parse=zg;Gg.parseAllDocuments=Og;Gg.parseDocument=Tz;Gg.stringify=Qg});var _z=Q((Ng)=>{var Eg=DP(),Kg=q1(),Ag=gF(),OP=J1(),Cg=p6(),I0=t(),Lg=O0(),Vg=CD(),wg=Q0(),jg=G0(),bg=b5(),Sg=HP(),Tg=UP(),ug=WP(),u5=uz(),Nz=c6();Ng.Composer=Eg.Composer;Ng.Document=Kg.Document;Ng.Schema=Ag.Schema;Ng.YAMLError=OP.YAMLError;Ng.YAMLParseError=OP.YAMLParseError;Ng.YAMLWarning=OP.YAMLWarning;Ng.Alias=Cg.Alias;Ng.isAlias=I0.isAlias;Ng.isCollection=I0.isCollection;Ng.isDocument=I0.isDocument;Ng.isMap=I0.isMap;Ng.isNode=I0.isNode;Ng.isPair=I0.isPair;Ng.isScalar=I0.isScalar;Ng.isSeq=I0.isSeq;Ng.Pair=Lg.Pair;Ng.Scalar=Vg.Scalar;Ng.YAMLMap=wg.YAMLMap;Ng.YAMLSeq=jg.YAMLSeq;Ng.CST=bg;Ng.Lexer=Sg.Lexer;Ng.LineCounter=Tg.LineCounter;Ng.Parser=ug.Parser;Ng.parse=u5.parse;Ng.parseAllDocuments=u5.parseAllDocuments;Ng.parseDocument=u5.parseDocument;Ng.stringify=u5.stringify;Ng.visit=Nz.visit;Ng.visitAsync=Nz.visitAsync});var G1={name:"@samarium.sdk/new",version:"0.25.1",main:"bin/samarium",type:"module",repository:{type:"git",url:"https://github.com/liontariai/samarium",directory:"packages/new"},keywords:["graphql","typescript","compiler","api","sdk","openapi","oas3","oas3.1","swagger","graphql-sdk","graphql-codegen"],homepage:"https://liontari.ai",bin:{samarium:"bin/samarium"},publishConfig:{access:"public"},files:["bin/**/*","README.md","package.json"],scripts:{prettier:"prettier --write .",bundle:"bun bundle.ts",prepublishOnly:"bun run bundle",test:"bun test"},prettier:{tabWidth:4},devDependencies:{"bun-types":"^1.2.19","@samarium.sdk/make":"workspace:*"},peerDependencies:{typescript:"^5.0.0"},dependencies:{"@inquirer/prompts":"^5.0.5",commander:"^11.1.0","detect-indent":"^7.0.1",prettier:"^3.2.5",yaml:"^2.6.0"}};var hP=RD(fP(),1),{program:Ev,createCommand:Kv,createArgument:Av,createOption:Cv,CommanderError:Lv,InvalidArgumentError:Vv,InvalidOptionArgumentError:wv,Command:gP,Argument:jv,Option:bv,Help:Sv}=hP.default;var dH=RD(l2(),1);var E3=RD(l2(),1);class P0 extends Error{response;request;constructor(D,F){let P=`${P0.extractMessage(D)}: ${JSON.stringify({response:D,request:F})}`;super(P);if(Object.setPrototypeOf(this,P0.prototype),this.response=D,this.request=F,typeof Error.captureStackTrace==="function")Error.captureStackTrace(this,P0)}static extractMessage(D){return D.errors?.[0]?.message??`GraphQL Error (Code: ${String(D.status)})`}}var W7=(D)=>D.toUpperCase(),Q3=(D)=>{return typeof D==="function"?D():D},O7=(D,F)=>D.map((P,B)=>[P,F[B]]),x0=(D)=>{let F={};if(D instanceof Headers)F=_b(D);else if(Array.isArray(D))D.forEach(([P,B])=>{if(P&&B!==void 0)F[P]=B});else if(D)F=D;return F},_b=(D)=>{let F={};return D.forEach((P,B)=>{F[B]=P}),F},NH=(D)=>{try{let F=D();if(kb(F))return F.catch((P)=>{return uH(P)});return F}catch(F){return uH(F)}},uH=(D)=>{if(D instanceof Error)return D;return Error(String(D))},kb=(D)=>{return typeof D==="object"&&D!==null&&"then"in D&&typeof D.then==="function"&&"catch"in D&&typeof D.catch==="function"&&"finally"in D&&typeof D.finally==="function"},G3=(D)=>{throw Error(`Unhandled case: ${String(D)}`)},S6=(D)=>{return typeof D==="object"&&D!==null&&!Array.isArray(D)};var _H=(D,F)=>{return D.documents?D:{documents:D,requestHeaders:F,signal:void 0}};var kH=(D,F,P)=>{return D.query?D:{query:D,variables:F,requestHeaders:P,signal:void 0}};var hH=RD(l2(),1);var z7="Accept",R3="Content-Type",T6="application/json",I3="application/graphql-response+json";var Q7=(D)=>D.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),gH=(D)=>{let F=D.toLowerCase();return F.includes(I3)||F.includes(T6)},G7=(D)=>{try{if(Array.isArray(D))return{_tag:"Batch",executionResults:D.map(xH)};else if(S6(D))return{_tag:"Single",executionResult:xH(D)};else throw Error(`Invalid execution result: result is not object or array.
348
348
  Got:
349
- ${String(D)}`)}catch(F){return F}},xH=(D)=>{if(typeof D!=="object"||D===null)throw new Error("Invalid execution result: result is not object");let F=void 0,P=void 0,B=void 0;if("errors"in D){if(!S6(D.errors)&&!Array.isArray(D.errors))throw new Error("Invalid execution result: errors is not plain object OR array");F=D.errors}if("data"in D){if(!S6(D.data)&&D.data!==null)throw new Error("Invalid execution result: data is not plain object");P=D.data}if("extensions"in D){if(!S6(D.extensions))throw new Error("Invalid execution result: extensions is not plain object");B=D.extensions}return{data:P,errors:F,extensions:B}},vH=(D)=>D._tag==="Batch"?D.executionResults.some(fH):fH(D.executionResult),fH=(D)=>Array.isArray(D.errors)?D.errors.length>0:Boolean(D.errors),R7=(D)=>{return typeof D==="object"&&D!==null&&"kind"in D&&D.kind===hH.Kind.OPERATION_DEFINITION};var yH=RD(l2(),1),mH=RD(l2(),1),xb=(D)=>{let F=void 0,P=D.definitions.filter(R7);if(P.length===1)F=P[0].name?.value;return F},fb=(D)=>{let F=!1,P=D.definitions.filter(R7);if(P.length===1)F=P[0].operation==="mutation";return F},u6=(D,F)=>{let P=typeof D==="string"?D:mH.print(D),B=!1,Z=void 0;if(F)return{expression:P,isMutation:B,operationName:Z};let X=NH(()=>typeof D==="string"?yH.parse(D):D);if(X instanceof Error)return{expression:P,isMutation:B,operationName:Z};return Z=xb(X),B=fb(X),{expression:P,operationName:Z,isMutation:B}};var $3=JSON;var M3=async(D)=>{let F={...D,method:D.request._tag==="Single"?D.request.document.isMutation?"POST":W7(D.method??"post"):D.request.hasMutations?"POST":W7(D.method??"post"),fetchOptions:{...D.fetchOptions,errorPolicy:D.fetchOptions.errorPolicy??"none"}},B=await gb(F.method)(F);if(!B.ok)return new P0({status:B.status,headers:B.headers},{query:D.request._tag==="Single"?D.request.document.expression:D.request.query,variables:D.request.variables});let Z=await hb(B,D.fetchOptions.jsonSerializer??$3);if(Z instanceof Error)throw Z;let X={status:B.status,headers:B.headers};if(vH(Z)&&F.fetchOptions.errorPolicy==="none"){let q=Z._tag==="Batch"?{...Z.executionResults,...X}:{...Z.executionResult,...X};return new P0(q,{query:D.request._tag==="Single"?D.request.document.expression:D.request.query,variables:D.request.variables})}switch(Z._tag){case"Single":return{...X,...lH(F)(Z.executionResult)};case"Batch":return{...X,data:Z.executionResults.map(lH(F))};default:G3(Z)}},lH=(D)=>(F)=>{return{extensions:F.extensions,data:F.data,errors:D.fetchOptions.errorPolicy==="all"?F.errors:void 0}},hb=async(D,F)=>{let P=D.headers.get(R3),B=await D.text();if(P&&gH(P))return G7(F.parse(B));else return G7(B)},gb=(D)=>async(F)=>{let P=new Headers(F.headers),B=null,Z=void 0;if(!P.has(z7))P.set(z7,[I3,T6].join(", "));if(D==="POST"){if(Z=(F.fetchOptions.jsonSerializer??$3).stringify(vb(F)),typeof Z==="string"&&!P.has(R3))P.set(R3,T6)}else B=yb(F);let X={method:D,headers:P,body:Z,...F.fetchOptions},q=new URL(F.url),J=X;if(F.middleware){let H=await Promise.resolve(F.middleware({...X,url:F.url,operationName:F.request._tag==="Single"?F.request.document.operationName:void 0,variables:F.request.variables})),{url:U,...W}=H;q=new URL(U),J=W}if(B)B.forEach((H,U)=>{q.searchParams.append(U,H)});return await(F.fetch??fetch)(q,J)},vb=(D)=>{switch(D.request._tag){case"Single":return{query:D.request.document.expression,variables:D.request.variables,operationName:D.request.document.operationName};case"Batch":return O7(D.request.query,D.request.variables??[]).map(([F,P])=>({query:F,variables:P}));default:throw G3(D.request)}},yb=(D)=>{let F=D.fetchOptions.jsonSerializer??$3,P=new URLSearchParams;switch(D.request._tag){case"Single":{if(P.append("query",Q7(D.request.document.expression)),D.request.variables)P.append("variables",F.stringify(D.request.variables));if(D.request.document.operationName)P.append("operationName",D.request.document.operationName);return P}case"Batch":{let B=D.request.variables?.map((q)=>F.stringify(q))??[],Z=D.request.query.map(Q7),X=O7(Z,B).map(([q,J])=>({query:q,variables:J}));return P.append("query",F.stringify(X)),P}default:throw G3(D.request)}};class f0{url;requestConfig;constructor(D,F={}){this.url=D,this.requestConfig=F}rawRequest=async(...D)=>{let[F,P,B]=D,Z=kH(F,P,B),{headers:X,fetch:q=globalThis.fetch,method:J="POST",requestMiddleware:Y,responseMiddleware:H,excludeOperationName:U,...W}=this.requestConfig,{url:O}=this;if(Z.signal!==void 0)W.signal=Z.signal;let z=u6(Z.query,U),I=await M3({url:O,request:{_tag:"Single",document:z,variables:Z.variables},headers:{...x0(Q3(X)),...x0(Z.requestHeaders)},fetch:q,method:J,fetchOptions:W,middleware:Y});if(H)await H(I,{operationName:z.operationName,variables:P,url:this.url});if(I instanceof Error)throw I;return I};async request(D,...F){let[P,B]=F,Z=cH(D,P,B),{headers:X,fetch:q=globalThis.fetch,method:J="POST",requestMiddleware:Y,responseMiddleware:H,excludeOperationName:U,...W}=this.requestConfig,{url:O}=this;if(Z.signal!==void 0)W.signal=Z.signal;let z=u6(Z.document,U),I=await M3({url:O,request:{_tag:"Single",document:z,variables:Z.variables},headers:{...x0(Q3(X)),...x0(Z.requestHeaders)},fetch:q,method:J,fetchOptions:W,middleware:Y});if(H)await H(I,{operationName:z.operationName,variables:Z.variables,url:this.url});if(I instanceof Error)throw I;return I.data}async batchRequests(D,F){let P=_H(D,F),{headers:B,excludeOperationName:Z,...X}=this.requestConfig;if(P.signal!==void 0)X.signal=P.signal;let q=P.documents.map(({document:W})=>u6(W,Z)),J=q.map(({expression:W})=>W),Y=q.some(({isMutation:W})=>W),H=P.documents.map(({variables:W})=>W),U=await M3({url:this.url,request:{_tag:"Batch",operationName:void 0,query:J,hasMutations:Y,variables:H},headers:{...x0(Q3(B)),...x0(P.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:X,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware)await this.requestConfig.responseMiddleware(U,{operationName:void 0,variables:H,url:this.url});if(U instanceof Error)throw U;return U.data}setHeaders(D){return this.requestConfig.headers=D,this}setHeader(D,F){let{headers:P}=this.requestConfig;if(P)P[D]=F;else this.requestConfig.headers={[D]:F};return this}setEndpoint(D){return this.url=D,this}}var cH=(D,F,P)=>{return D.document?D:{document:D,variables:F,requestHeaders:P,signal:void 0}};async function h0(D,F){try{let B=await new f0(D).request(E3.getIntrospectionQuery(),void 0,new Headers(F?.map((X)=>X.split("="))));return E3.buildClientSchema(B)}catch(P){throw P}}import mb from"fs";var I7=async(D,F)=>{let P=await h0(D.url,D.headers),B=dH.printSchema(P);mb.writeFileSync(F,B)};var K3=RD(l2(),1),A3=RD(l2(),1),KD=RD(l2(),1),lb=Object.defineProperty,rH=(D,F)=>{for(var P in F)lb(D,P,{get:F[P],enumerable:!0,configurable:!0,set:(B)=>F[P]=()=>B})};class aH{collector;options;authConfig;static FieldValueWrapperType;static EnumTypesMapped;static HelperTypes;static HelperFunctions;typeMeta;typeName;originalFullTypeName;constructor(D,F,P,B){this.collector=F,this.options=P,this.authConfig=B,this.typeMeta=F.getType(D),this.originalFullTypeName=D,this.typeName=this.originalTypeNameToTypescriptFriendlyName(D)}originalTypeNameToTypescriptFriendlyName(D){return D.replaceAll("[","").replaceAll("]","Array").replaceAll("!","NotNull")}originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F=""){return`${D.replaceAll("[","").replaceAll("]","").replaceAll("!","")}${F}`}originalTypeNameToTypescriptTypeName(D,F=""){return`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F)}${Array.from({length:D.split("[").length-1}).fill("[]").join("")}`}static makeRootOperationFunction(D){throw new Error("Method not implemented.")}}var cb=`const Proxy = globalThis.Proxy;
349
+ ${String(D)}`)}catch(F){return F}},xH=(D)=>{if(typeof D!=="object"||D===null)throw Error("Invalid execution result: result is not object");let F=void 0,P=void 0,B=void 0;if("errors"in D){if(!S6(D.errors)&&!Array.isArray(D.errors))throw Error("Invalid execution result: errors is not plain object OR array");F=D.errors}if("data"in D){if(!S6(D.data)&&D.data!==null)throw Error("Invalid execution result: data is not plain object");P=D.data}if("extensions"in D){if(!S6(D.extensions))throw Error("Invalid execution result: extensions is not plain object");B=D.extensions}return{data:P,errors:F,extensions:B}},vH=(D)=>D._tag==="Batch"?D.executionResults.some(fH):fH(D.executionResult),fH=(D)=>Array.isArray(D.errors)?D.errors.length>0:Boolean(D.errors),R7=(D)=>{return typeof D==="object"&&D!==null&&"kind"in D&&D.kind===hH.Kind.OPERATION_DEFINITION};var yH=RD(l2(),1),mH=RD(l2(),1),xb=(D)=>{let F=void 0,P=D.definitions.filter(R7);if(P.length===1)F=P[0].name?.value;return F},fb=(D)=>{let F=!1,P=D.definitions.filter(R7);if(P.length===1)F=P[0].operation==="mutation";return F},u6=(D,F)=>{let P=typeof D==="string"?D:mH.print(D),B=!1,Z=void 0;if(F)return{expression:P,isMutation:B,operationName:Z};let X=NH(()=>typeof D==="string"?yH.parse(D):D);if(X instanceof Error)return{expression:P,isMutation:B,operationName:Z};return Z=xb(X),B=fb(X),{expression:P,operationName:Z,isMutation:B}};var $3=JSON;var M3=async(D)=>{let F={...D,method:D.request._tag==="Single"?D.request.document.isMutation?"POST":W7(D.method??"post"):D.request.hasMutations?"POST":W7(D.method??"post"),fetchOptions:{...D.fetchOptions,errorPolicy:D.fetchOptions.errorPolicy??"none"}},B=await gb(F.method)(F);if(!B.ok)return new P0({status:B.status,headers:B.headers},{query:D.request._tag==="Single"?D.request.document.expression:D.request.query,variables:D.request.variables});let Z=await hb(B,D.fetchOptions.jsonSerializer??$3);if(Z instanceof Error)throw Z;let X={status:B.status,headers:B.headers};if(vH(Z)&&F.fetchOptions.errorPolicy==="none"){let q=Z._tag==="Batch"?{...Z.executionResults,...X}:{...Z.executionResult,...X};return new P0(q,{query:D.request._tag==="Single"?D.request.document.expression:D.request.query,variables:D.request.variables})}switch(Z._tag){case"Single":return{...X,...lH(F)(Z.executionResult)};case"Batch":return{...X,data:Z.executionResults.map(lH(F))};default:G3(Z)}},lH=(D)=>(F)=>{return{extensions:F.extensions,data:F.data,errors:D.fetchOptions.errorPolicy==="all"?F.errors:void 0}},hb=async(D,F)=>{let P=D.headers.get(R3),B=await D.text();if(P&&gH(P))return G7(F.parse(B));else return G7(B)},gb=(D)=>async(F)=>{let P=new Headers(F.headers),B=null,Z=void 0;if(!P.has(z7))P.set(z7,[I3,T6].join(", "));if(D==="POST"){if(Z=(F.fetchOptions.jsonSerializer??$3).stringify(vb(F)),typeof Z==="string"&&!P.has(R3))P.set(R3,T6)}else B=yb(F);let X={method:D,headers:P,body:Z,...F.fetchOptions},q=new URL(F.url),J=X;if(F.middleware){let H=await Promise.resolve(F.middleware({...X,url:F.url,operationName:F.request._tag==="Single"?F.request.document.operationName:void 0,variables:F.request.variables})),{url:U,...W}=H;q=new URL(U),J=W}if(B)B.forEach((H,U)=>{q.searchParams.append(U,H)});return await(F.fetch??fetch)(q,J)},vb=(D)=>{switch(D.request._tag){case"Single":return{query:D.request.document.expression,variables:D.request.variables,operationName:D.request.document.operationName};case"Batch":return O7(D.request.query,D.request.variables??[]).map(([F,P])=>({query:F,variables:P}));default:throw G3(D.request)}},yb=(D)=>{let F=D.fetchOptions.jsonSerializer??$3,P=new URLSearchParams;switch(D.request._tag){case"Single":{if(P.append("query",Q7(D.request.document.expression)),D.request.variables)P.append("variables",F.stringify(D.request.variables));if(D.request.document.operationName)P.append("operationName",D.request.document.operationName);return P}case"Batch":{let B=D.request.variables?.map((q)=>F.stringify(q))??[],Z=D.request.query.map(Q7),X=O7(Z,B).map(([q,J])=>({query:q,variables:J}));return P.append("query",F.stringify(X)),P}default:throw G3(D.request)}};class f0{url;requestConfig;constructor(D,F={}){this.url=D,this.requestConfig=F}rawRequest=async(...D)=>{let[F,P,B]=D,Z=kH(F,P,B),{headers:X,fetch:q=globalThis.fetch,method:J="POST",requestMiddleware:Y,responseMiddleware:H,excludeOperationName:U,...W}=this.requestConfig,{url:O}=this;if(Z.signal!==void 0)W.signal=Z.signal;let z=u6(Z.query,U),I=await M3({url:O,request:{_tag:"Single",document:z,variables:Z.variables},headers:{...x0(Q3(X)),...x0(Z.requestHeaders)},fetch:q,method:J,fetchOptions:W,middleware:Y});if(H)await H(I,{operationName:z.operationName,variables:P,url:this.url});if(I instanceof Error)throw I;return I};async request(D,...F){let[P,B]=F,Z=cH(D,P,B),{headers:X,fetch:q=globalThis.fetch,method:J="POST",requestMiddleware:Y,responseMiddleware:H,excludeOperationName:U,...W}=this.requestConfig,{url:O}=this;if(Z.signal!==void 0)W.signal=Z.signal;let z=u6(Z.document,U),I=await M3({url:O,request:{_tag:"Single",document:z,variables:Z.variables},headers:{...x0(Q3(X)),...x0(Z.requestHeaders)},fetch:q,method:J,fetchOptions:W,middleware:Y});if(H)await H(I,{operationName:z.operationName,variables:Z.variables,url:this.url});if(I instanceof Error)throw I;return I.data}async batchRequests(D,F){let P=_H(D,F),{headers:B,excludeOperationName:Z,...X}=this.requestConfig;if(P.signal!==void 0)X.signal=P.signal;let q=P.documents.map(({document:W})=>u6(W,Z)),J=q.map(({expression:W})=>W),Y=q.some(({isMutation:W})=>W),H=P.documents.map(({variables:W})=>W),U=await M3({url:this.url,request:{_tag:"Batch",operationName:void 0,query:J,hasMutations:Y,variables:H},headers:{...x0(Q3(B)),...x0(P.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:X,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware)await this.requestConfig.responseMiddleware(U,{operationName:void 0,variables:H,url:this.url});if(U instanceof Error)throw U;return U.data}setHeaders(D){return this.requestConfig.headers=D,this}setHeader(D,F){let{headers:P}=this.requestConfig;if(P)P[D]=F;else this.requestConfig.headers={[D]:F};return this}setEndpoint(D){return this.url=D,this}}var cH=(D,F,P)=>{return D.document?D:{document:D,variables:F,requestHeaders:P,signal:void 0}};async function h0(D,F){try{let B=await new f0(D).request(E3.getIntrospectionQuery(),void 0,new Headers(F?.map((X)=>X.split("="))));return E3.buildClientSchema(B)}catch(P){throw P}}import mb from"fs";var I7=async(D,F)=>{let P=await h0(D.url,D.headers),B=dH.printSchema(P);mb.writeFileSync(F,B)};var K3=RD(l2(),1),A3=RD(l2(),1),KD=RD(l2(),1),lb=Object.defineProperty,rH=(D,F)=>{for(var P in F)lb(D,P,{get:F[P],enumerable:!0,configurable:!0,set:(B)=>F[P]=()=>B})};class aH{collector;options;authConfig;static FieldValueWrapperType;static EnumTypesMapped;static HelperTypes;static HelperFunctions;typeMeta;typeName;originalFullTypeName;constructor(D,F,P,B){this.collector=F,this.options=P,this.authConfig=B,this.typeMeta=F.getType(D),this.originalFullTypeName=D,this.typeName=this.originalTypeNameToTypescriptFriendlyName(D)}originalTypeNameToTypescriptFriendlyName(D){return D.replaceAll("[","").replaceAll("]","Array").replaceAll("!","NotNull")}originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F=""){return`${D.replaceAll("[","").replaceAll("]","").replaceAll("!","")}${F}`}originalTypeNameToTypescriptTypeName(D,F=""){return`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F)}${Array.from({length:D.split("[").length-1}).fill("[]").join("")}`}static makeRootOperationFunction(D){throw Error("Method not implemented.")}}var cb=`const Proxy = globalThis.Proxy;
350
350
  Proxy.prototype = {};
351
351
 
352
+ function proxify(data: any, slw: any): any & ArrayLike<any> {
353
+ // Create proxy around empty array (ensures Array.isArray(proxy) === true)
354
+ const proxy = new Proxy(data as any | any[], {
355
+ get(target: any[], prop: PropertyKey, receiver: any): any {
356
+ return Reflect.get(slw, prop, receiver);
357
+ },
358
+ set(target: any[], prop: PropertyKey, value: any, receiver: any): boolean {
359
+ return Reflect.set(slw, prop, value, receiver);
360
+ },
361
+ has(target: any[], prop: PropertyKey): boolean {
362
+ return Reflect.has(slw, prop);
363
+ },
364
+ deleteProperty(target: any[], prop: PropertyKey): boolean {
365
+ return Reflect.deleteProperty(slw, prop);
366
+ },
367
+ ownKeys(target: any[]): ArrayLike<string | symbol> {
368
+ return Reflect.ownKeys(slw);
369
+ },
370
+ getOwnPropertyDescriptor(target: any[], prop: PropertyKey): PropertyDescriptor | undefined {
371
+ return Reflect.getOwnPropertyDescriptor(slw, prop);
372
+ },
373
+ getPrototypeOf(target: any[]): object | null {
374
+ // Return Array.prototype for better array-like behavior (e.g., instanceof Array)
375
+ return Object.getPrototypeOf(target);
376
+ },
377
+ // Add more traps as needed for full array-like behavior (e.g., apply/construct if callable)
378
+ });
379
+
380
+ // Optionally, augment here (e.g., add methods or computed props via additional get trap logic)
381
+ return proxy as unknown as any & ArrayLike<any>;
382
+ }
383
+
352
384
  type FnOrPromisOrPrimitive =
353
385
  | (() => string | { [key: string]: string } | undefined)
354
386
  | (() => Promise<string | { [key: string]: string } | undefined>)
@@ -358,9 +390,7 @@ export const _ = Symbol("_") as any;
358
390
  export const OPTIONS = Symbol("OPTIONS");
359
391
  export class RootOperation {
360
392
  public static authHeaderName = "[AUTH_HEADER_NAME]";
361
- private resolveFnOrPromisOrPrimitiveHeaders = (
362
- arg?: FnOrPromisOrPrimitive,
363
- ) => {
393
+ private resolveFnOrPromisOrPrimitiveHeaders = (arg?: FnOrPromisOrPrimitive) => {
364
394
  if (!arg) return undefined;
365
395
  let headers: Record<string, string> | undefined = undefined;
366
396
  if (typeof arg === "string") {
@@ -369,8 +399,7 @@ export class RootOperation {
369
399
  const tokenOrPromise = arg();
370
400
  if (tokenOrPromise instanceof Promise) {
371
401
  return tokenOrPromise.then((t) => {
372
- if (typeof t === "string")
373
- headers = { [RootOperation.authHeaderName]: t };
402
+ if (typeof t === "string") headers = { [RootOperation.authHeaderName]: t };
374
403
  else headers = t;
375
404
 
376
405
  return headers;
@@ -410,9 +439,7 @@ export class RootOperation {
410
439
  sseFetchTransform: undefined as unknown as (
411
440
  input: string | URL | globalThis.Request,
412
441
  init?: RequestInit,
413
- ) => Promise<
414
- [string | URL | globalThis.Request, RequestInit | undefined]
415
- >,
442
+ ) => Promise<[string | URL | globalThis.Request, RequestInit | undefined]>,
416
443
 
417
444
  _auth_fn: undefined as
418
445
  | (() => string | { [key: string]: string } | undefined)
@@ -428,10 +455,7 @@ export class RootOperation {
428
455
  };
429
456
 
430
457
  private utilSet = (obj: Record<string, any>, path: string[], value: any) =>
431
- path.reduce(
432
- (o, p, i, a) => (o[p] = a.length - 1 === i ? value : o[p] || {}),
433
- obj,
434
- );
458
+ path.reduce((o, p, i, a) => (o[p] = a.length - 1 === i ? value : o[p] || {}), obj);
435
459
 
436
460
  private rootCollector: OperationSelectionCollector | undefined = undefined;
437
461
  public registerRootCollector(collector: OperationSelectionCollector) {
@@ -442,16 +466,12 @@ export class RootOperation {
442
466
  throw new Error("RootOperation has no registered collector");
443
467
  }
444
468
 
445
- const authHeaders =
446
- await this.rootCollector.op!.resolveFnOrPromisOrPrimitiveHeaders(
447
- this.rootCollector.op!.authArg ??
448
- RootOperation[OPTIONS]._auth_fn,
449
- );
450
- const headersHeaders =
451
- await this.rootCollector.op!.resolveFnOrPromisOrPrimitiveHeaders(
452
- this.rootCollector.op!.headers ??
453
- RootOperation[OPTIONS].headers,
454
- );
469
+ const authHeaders = await this.rootCollector.op!.resolveFnOrPromisOrPrimitiveHeaders(
470
+ this.rootCollector.op!.authArg ?? RootOperation[OPTIONS]._auth_fn,
471
+ );
472
+ const headersHeaders = await this.rootCollector.op!.resolveFnOrPromisOrPrimitiveHeaders(
473
+ this.rootCollector.op!.headers ?? RootOperation[OPTIONS].headers,
474
+ );
455
475
 
456
476
  headers = {
457
477
  ...authHeaders,
@@ -459,19 +479,14 @@ export class RootOperation {
459
479
  ...headers,
460
480
  };
461
481
 
462
- type selection = ReturnType<
463
- typeof OperationSelectionCollector.prototype.renderSelections
464
- >;
482
+ type selection = ReturnType<typeof OperationSelectionCollector.prototype.renderSelections>;
465
483
  const operations: {
466
484
  [key: string]: {
467
485
  selection: selection;
468
486
  rootSlw: SelectionWrapperImpl<string, string, number, any>;
469
487
  };
470
488
  } = {};
471
- for (const [
472
- opName,
473
- opSelection,
474
- ] of this.rootCollector?.selections.entries()) {
489
+ for (const [opName, opSelection] of this.rootCollector?.selections.entries()) {
475
490
  if (opSelection[SLW_LAZY_FLAG]) continue;
476
491
 
477
492
  let rootSlw = opSelection;
@@ -497,14 +512,9 @@ export class RootOperation {
497
512
  (acc, [opName, { selection, rootSlw }]) => ({
498
513
  ...acc,
499
514
  [opName]: {
500
- opType: rootSlw[SLW_IS_ROOT_TYPE]?.toLowerCase() as
501
- | "subscription"
502
- | "query"
503
- | "mutation",
515
+ opType: rootSlw[SLW_IS_ROOT_TYPE]?.toLowerCase() as "subscription" | "query" | "mutation",
504
516
  query: \`\${rootSlw[SLW_IS_ROOT_TYPE]?.toLowerCase()} \${opName} \${
505
- selection.variableDefinitions.length
506
- ? \`(\${selection.variableDefinitions.join(", ")}) \`
507
- : ""
517
+ selection.variableDefinitions.length ? \`(\${selection.variableDefinitions.join(", ")}) \` : ""
508
518
  }\${selection.selection}\`,
509
519
  variables: selection.variables,
510
520
  fragments: selection.usedFragments,
@@ -550,8 +560,7 @@ export class RootOperation {
550
560
  const that = this;
551
561
  const generator = (async function* () {
552
562
  const [url, options] = (await (
553
- RootOperation[OPTIONS].sseFetchTransform ??
554
- ((url: string, options?: RequestInit) => [url, options])
563
+ RootOperation[OPTIONS].sseFetchTransform ?? ((url: string, options?: RequestInit) => [url, options])
555
564
  )("http://localhost:4000/graphql", {
556
565
  method: "POST",
557
566
  headers: {
@@ -590,8 +599,7 @@ export class RootOperation {
590
599
  const eventName = event.match(/^event: (.*)$/m)?.[1];
591
600
  const rawdata = event.match(/^data: (.*)$/m)?.[1];
592
601
 
593
- if ((eventName === null && rawdata === "") || !rawdata)
594
- continue;
602
+ if ((eventName === null && rawdata === "") || !rawdata) continue;
595
603
  if (eventName === "complete" || done) break;
596
604
 
597
605
  const parsed = JSON.parse(rawdata) as {
@@ -633,20 +641,17 @@ export class RootOperation {
633
641
  },
634
642
  headers: Record<string, string> = {},
635
643
  ) {
636
- const res = await (RootOperation[OPTIONS].fetcher ?? globalThis.fetch)(
637
- "[ENDPOINT]",
638
- {
639
- method: "POST",
640
- headers: {
641
- "Content-Type": "application/json",
642
- ...headers,
643
- },
644
- body: JSON.stringify({
645
- query: \`\${[...query.fragments.values()].join("\\n")}\\n \${query.query}\`.trim(),
646
- variables: query.variables,
647
- }),
644
+ const res = await (RootOperation[OPTIONS].fetcher ?? globalThis.fetch)("[ENDPOINT]", {
645
+ method: "POST",
646
+ headers: {
647
+ "Content-Type": "application/json",
648
+ ...headers,
648
649
  },
649
- );
650
+ body: JSON.stringify({
651
+ query: \`\${[...query.fragments.values()].join("\\n")}\\n \${query.query}\`.trim(),
652
+ variables: query.variables,
653
+ }),
654
+ });
650
655
  const result = (await res.json()) as { data: any; errors: any[] };
651
656
 
652
657
  const { data, errors } = result ?? {};
@@ -673,9 +678,7 @@ export type OperationSelectionCollectorRef = {
673
678
  export class OperationSelectionCollector {
674
679
  constructor(
675
680
  public readonly name?: string,
676
- public readonly parent?:
677
- | OperationSelectionCollector
678
- | OperationSelectionCollectorRef,
681
+ public readonly parent?: OperationSelectionCollector | OperationSelectionCollectorRef,
679
682
  public readonly op?: RootOperation,
680
683
  ) {
681
684
  if (op) op.registerRootCollector(this);
@@ -694,25 +697,18 @@ export class OperationSelectionCollector {
694
697
 
695
698
  public async execute(headers?: Record<string, string>) {
696
699
  if (!this.op) {
697
- throw new Error(
698
- "OperationSelectionCollector is not registered to a root operation",
699
- );
700
+ throw new Error("OperationSelectionCollector is not registered to a root operation");
700
701
  }
701
702
  this.operationResult = await this.op.execute(headers);
702
703
  this.executed = true;
704
+ return this.operationResult;
703
705
  }
704
706
  public get isExecuted() {
705
707
  return this.executed;
706
708
  }
707
709
 
708
- public readonly selections = new Map<
709
- string,
710
- SelectionWrapperImpl<string, string, number, any>
711
- >();
712
- public registerSelection(
713
- id: string,
714
- selection: SelectionWrapperImpl<string, string, number, any, any>,
715
- ) {
710
+ public readonly selections = new Map<string, SelectionWrapperImpl<string, string, number, any>>();
711
+ public registerSelection(id: string, selection: SelectionWrapperImpl<string, string, number, any, any>) {
716
712
  this.selections.set(id, selection);
717
713
  }
718
714
 
@@ -720,12 +716,7 @@ export class OperationSelectionCollector {
720
716
  path: string[] = [],
721
717
  opVars: Record<string, any> = {},
722
718
  usedFragments: Map<string, string> = new Map(),
723
- renderOnlyTheseSelections: SelectionWrapperImpl<
724
- string,
725
- string,
726
- number,
727
- any
728
- >[] = [],
719
+ renderOnlyTheseSelections: SelectionWrapperImpl<string, string, number, any>[] = [],
729
720
  ) {
730
721
  const result: Record<string, string | undefined> = {};
731
722
  const varDefs: string[] = [];
@@ -734,9 +725,7 @@ export class OperationSelectionCollector {
734
725
  for (const [key, value] of [...this.selections.entries()].filter(
735
726
  ([k, v]) =>
736
727
  renderOnlyTheseSelections.length === 0 ||
737
- renderOnlyTheseSelections.find(
738
- (r) => r[SLW_UID] === v[SLW_UID],
739
- ),
728
+ renderOnlyTheseSelections.find((r) => r[SLW_UID] === v[SLW_UID]),
740
729
  )) {
741
730
  const subPath = [...path, key];
742
731
  const {
@@ -752,10 +741,7 @@ export class OperationSelectionCollector {
752
741
  varDefs.push(...fieldVarDefs);
753
742
 
754
743
  if (directiveRendered) {
755
- const {
756
- variableDefinitions: directiveVarDefs,
757
- variables: directiveVars,
758
- } = directiveRendered;
744
+ const { variableDefinitions: directiveVarDefs, variables: directiveVars } = directiveRendered;
759
745
 
760
746
  varDefs.push(...directiveVarDefs);
761
747
  Object.assign(variables, directiveVars);
@@ -766,38 +752,29 @@ export class OperationSelectionCollector {
766
752
 
767
753
  if (value[SLW_PARENT_COLLECTOR] === undefined) {
768
754
  if (directiveRendered) {
769
- result[key] =
770
- \`\${fieldSelection} \${directiveRendered.rendered}\`;
755
+ result[key] = \`\${fieldSelection} \${directiveRendered.rendered}\`;
771
756
  } else {
772
757
  result[key] = fieldSelection;
773
758
  }
774
- } else if (
775
- value[SLW_COLLECTOR] instanceof OperationSelectionCollector
776
- ) {
759
+ } else if (value[SLW_COLLECTOR] instanceof OperationSelectionCollector) {
777
760
  const {
778
761
  selection: subSelection,
779
762
  variableDefinitions: subVarDefs,
780
763
  variables: subVars,
781
- } = value[SLW_COLLECTOR].renderSelections(
782
- subPath,
783
- opVars,
784
- usedFragments,
785
- );
764
+ } = value[SLW_COLLECTOR].renderSelections(subPath, opVars, usedFragments);
786
765
 
787
766
  if (value[SLW_IS_ON_TYPE_FRAGMENT]) {
788
767
  if (directiveRendered) {
789
768
  result[key] =
790
769
  \`... on \${value[SLW_IS_ON_TYPE_FRAGMENT]} \${directiveRendered.rendered} \${subSelection}\`;
791
770
  } else {
792
- result[key] =
793
- \`... on \${value[SLW_IS_ON_TYPE_FRAGMENT]} \${subSelection}\`;
771
+ result[key] = \`... on \${value[SLW_IS_ON_TYPE_FRAGMENT]} \${subSelection}\`;
794
772
  }
795
773
  } else if (value[SLW_IS_FRAGMENT]) {
796
774
  const fragmentName = \`\${key}_\${subVarDefs.map((v) => v.split(":")[0].slice(1)).join("_")}\`;
797
775
 
798
776
  if (directiveRendered) {
799
- result[key] =
800
- \`...\${fragmentName} \${directiveRendered.rendered}\`;
777
+ result[key] = \`...\${fragmentName} \${directiveRendered.rendered}\`;
801
778
  } else {
802
779
  result[key] = \`...\${fragmentName}\`;
803
780
  }
@@ -806,14 +783,11 @@ export class OperationSelectionCollector {
806
783
  if (!usedFragments.has(fragmentName)) {
807
784
  usedFragments.set(fragmentName, fragment);
808
785
  } else if (usedFragments.get(fragmentName) !== fragment) {
809
- console.warn(
810
- \`Fragment \${fragmentName} is already defined with a different selection\`,
811
- );
786
+ console.warn(\`Fragment \${fragmentName} is already defined with a different selection\`);
812
787
  }
813
788
  } else {
814
789
  if (directiveRendered) {
815
- result[key] =
816
- \`\${fieldSelection} \${directiveRendered.rendered} \${subSelection}\`;
790
+ result[key] = \`\${fieldSelection} \${directiveRendered.rendered} \${subSelection}\`;
817
791
  } else {
818
792
  result[key] = \`\${fieldSelection} \${subSelection}\`;
819
793
  }
@@ -825,11 +799,8 @@ export class OperationSelectionCollector {
825
799
  }
826
800
  }
827
801
  let rendered = "{ ";
828
- for (const [key, value] of Object.entries(result).filter(
829
- ([k, v]) => v !== undefined,
830
- ) as [string, string][]) {
831
- const keyIsFieldName =
832
- value.startsWith(\`\${key} {\`) || value.startsWith(\`\${key} (\`);
802
+ for (const [key, value] of Object.entries(result).filter(([k, v]) => v !== undefined) as [string, string][]) {
803
+ const keyIsFieldName = value.startsWith(\`\${key} {\`) || value.startsWith(\`\${key} (\`);
833
804
  const isSubSelection = value.startsWith("{");
834
805
  const isOnType = value.startsWith("... on");
835
806
  const isFragment = value.startsWith("...");
@@ -850,17 +821,10 @@ export class OperationSelectionCollector {
850
821
  };
851
822
  }
852
823
 
853
- private utilGet = (obj: Record<string, any>, path: (string | number)[]) =>
854
- path.reduce((o, p) => o?.[p], obj);
855
- public getOperationResultPath<T>(
856
- path: (string | number)[] = [],
857
- _type?: string,
858
- opResultDataOverride?: any,
859
- ): T {
824
+ private utilGet = (obj: Record<string, any>, path: (string | number)[]) => path.reduce((o, p) => o?.[p], obj);
825
+ public getOperationResultPath<T>(path: (string | number)[] = [], _type?: string, opResultDataOverride?: any): T {
860
826
  if (!this.op) {
861
- throw new Error(
862
- "OperationSelectionCollector is not registered to a root operation",
863
- );
827
+ throw new Error("OperationSelectionCollector is not registered to a root operation");
864
828
  }
865
829
 
866
830
  let result = opResultDataOverride ?? this.operationResult;
@@ -879,25 +843,18 @@ export class OperationSelectionCollector {
879
843
  depth++;
880
844
  }
881
845
 
882
- const deepParse = (
883
- res: any | any[],
884
- depth: number,
885
- parse: (v: string) => any,
886
- ) => {
846
+ const deepParse = (res: any | any[], depth: number, parse: (v: string) => any) => {
887
847
  if (depth === 0) {
888
848
  return parse(res);
889
849
  }
890
- return res.map((rarr: any) =>
891
- deepParse(rarr, depth - 1, parse),
892
- );
850
+ return res.map((rarr: any) => deepParse(rarr, depth - 1, parse));
893
851
  };
894
852
 
895
853
  return deepParse(
896
854
  finalResult,
897
855
  depth,
898
- RootOperation[OPTIONS].scalars[
899
- type as keyof (typeof RootOperation)[typeof OPTIONS]["scalars"]
900
- ] ?? ((value: string) => JSON.parse(value)),
856
+ RootOperation[OPTIONS].scalars[type as keyof (typeof RootOperation)[typeof OPTIONS]["scalars"]] ??
857
+ ((value: string) => JSON.parse(value)),
901
858
  ) as T;
902
859
  }
903
860
 
@@ -929,13 +886,9 @@ export const SLW_OP_PATH = Symbol("SLW_OP_PATH");
929
886
  export const SLW_REGISTER_PATH = Symbol("SLW_REGISTER_PATH");
930
887
  export const SLW_RENDER_WITH_ARGS = Symbol("SLW_RENDER_WITH_ARGS");
931
888
 
932
- export const SLW_OP_RESULT_DATA_OVERRIDE = Symbol(
933
- "SLW_OP_RESULT_DATA_OVERRIDE",
934
- );
889
+ export const SLW_OP_RESULT_DATA_OVERRIDE = Symbol("SLW_OP_RESULT_DATA_OVERRIDE");
935
890
 
936
- export const SLW_RECREATE_VALUE_CALLBACK = Symbol(
937
- "SLW_RECREATE_VALUE_CALLBACK",
938
- );
891
+ export const SLW_RECREATE_VALUE_CALLBACK = Symbol("SLW_RECREATE_VALUE_CALLBACK");
939
892
  export const SLW_SETTER_DATA_OVERRIDE = Symbol("SLW_SETTER_DATA_OVERRIDE");
940
893
  export const SLW_NEEDS_CLONE = Symbol("SLW_NEEDS_CLONE");
941
894
 
@@ -949,10 +902,7 @@ export class SelectionWrapperImpl<
949
902
  argsT extends Record<string, any> | undefined = undefined,
950
903
  > {
951
904
  private generateUniqueId(): string {
952
- return (
953
- performance.now().toString(36) +
954
- Math.random().toString(36).substring(2)
955
- );
905
+ return performance.now().toString(36) + Math.random().toString(36).substring(2);
956
906
  }
957
907
  [SLW_CLONE](
958
908
  overrides: {
@@ -978,15 +928,9 @@ export class SelectionWrapperImpl<
978
928
  slw[SLW_IS_FRAGMENT] = this[SLW_IS_FRAGMENT];
979
929
  slw[SLW_PARENT_SLW] = this[SLW_PARENT_SLW];
980
930
  slw[SLW_OP_PATH] = overrides.SLW_OP_PATH ?? this[SLW_OP_PATH];
981
- slw[SLW_SETTER_DATA_OVERRIDE] =
982
- overrides.SLW_SETTER_DATA_OVERRIDE ??
983
- this[SLW_SETTER_DATA_OVERRIDE];
931
+ slw[SLW_SETTER_DATA_OVERRIDE] = overrides.SLW_SETTER_DATA_OVERRIDE ?? this[SLW_SETTER_DATA_OVERRIDE];
984
932
 
985
- slw[SLW_NEEDS_CLONE] = overrides.SLW_NEEDS_CLONE
986
- ? true
987
- : this[SLW_NEEDS_CLONE]
988
- ? false
989
- : true;
933
+ slw[SLW_NEEDS_CLONE] = overrides.SLW_NEEDS_CLONE ? true : this[SLW_NEEDS_CLONE] ? false : true;
990
934
 
991
935
  if (overrides.OP_RESULT_DATA) {
992
936
  slw[SLW_OP_RESULT_DATA_OVERRIDE] = overrides.OP_RESULT_DATA;
@@ -995,10 +939,10 @@ export class SelectionWrapperImpl<
995
939
  return slw;
996
940
  }
997
941
 
998
- readonly [SLW_UID] = this.generateUniqueId();
942
+ [SLW_UID] = this.generateUniqueId();
999
943
  [ROOT_OP_COLLECTOR]?: OperationSelectionCollectorRef;
1000
944
  [SLW_PARENT_COLLECTOR]?: OperationSelectionCollector;
1001
- readonly [SLW_COLLECTOR]?: OperationSelectionCollector;
945
+ [SLW_COLLECTOR]?: OperationSelectionCollector;
1002
946
 
1003
947
  [SLW_FIELD_NAME]?: fieldName;
1004
948
  [SLW_FIELD_TYPENAME]?: typeNamePure;
@@ -1052,9 +996,7 @@ export class SelectionWrapperImpl<
1052
996
  this[SLW_COLLECTOR] = collector;
1053
997
 
1054
998
  let rootCollector = collector;
1055
- while (
1056
- rootCollector?.parent instanceof OperationSelectionCollector
1057
- ) {
999
+ while (rootCollector?.parent instanceof OperationSelectionCollector) {
1058
1000
  rootCollector = rootCollector.parent;
1059
1001
  }
1060
1002
  if (rootCollector.parent && "ref" in rootCollector.parent) {
@@ -1072,20 +1014,14 @@ export class SelectionWrapperImpl<
1072
1014
  if (!this[SLW_OP_PATH]) this[SLW_OP_PATH] = path.join(".");
1073
1015
  }
1074
1016
  [SLW_RENDER_WITH_ARGS](opVars: Record<string, any> = {}) {
1075
- const renderArgsString = (
1076
- args: Record<string, any>,
1077
- argsMeta: Record<string, string>,
1078
- ) => {
1017
+ const renderArgsString = (args: Record<string, any>, argsMeta: Record<string, string>) => {
1079
1018
  const argToVarMap: Record<string, string> = {};
1080
1019
  let argsString = "(";
1081
1020
  const argsStringParts: string[] = [];
1082
1021
  for (const key of Object.keys(args)) {
1083
1022
  let varName = key;
1084
1023
  if (opVars[key] !== undefined) {
1085
- varName = \`\${key}_\${
1086
- Object.keys(opVars).filter((k) => k.startsWith(key))
1087
- .length
1088
- }\`;
1024
+ varName = \`\${key}_\${Object.keys(opVars).filter((k) => k.startsWith(key)).length}\`;
1089
1025
  argToVarMap[varName] = varName;
1090
1026
  args[varName] = args[key];
1091
1027
  argsMeta[varName] = argsMeta[key];
@@ -1109,19 +1045,14 @@ export class SelectionWrapperImpl<
1109
1045
  const args = this[SLW_DIRECTIVE_ARGS];
1110
1046
  const argsMeta = this[SLW_DIRECTIVE_ARGS_META]!;
1111
1047
 
1112
- const { argsString, argToVarMap } = renderArgsString(
1113
- args,
1114
- argsMeta,
1115
- );
1048
+ const { argsString, argToVarMap } = renderArgsString(args, argsMeta);
1116
1049
 
1117
1050
  directiveRender.rendered = \`@\${directive}\${Object.keys(args).length ? argsString : ""}\`;
1118
1051
  directiveRender.variables = args;
1119
- directiveRender.variableDefinitions = Object.keys(args).map(
1120
- (key) => {
1121
- const varName = argToVarMap[key] ?? key;
1122
- return \`$\${varName}: \${argsMeta[key]}\`;
1123
- },
1124
- );
1052
+ directiveRender.variableDefinitions = Object.keys(args).map((key) => {
1053
+ const varName = argToVarMap[key] ?? key;
1054
+ return \`$\${varName}: \${argsMeta[key]}\`;
1055
+ });
1125
1056
  } else {
1126
1057
  directiveRender.rendered = \`@\${directive}\`;
1127
1058
  }
@@ -1131,10 +1062,7 @@ export class SelectionWrapperImpl<
1131
1062
  const args = this[SLW_ARGS];
1132
1063
  const argsMeta = this[SLW_ARGS_META]!;
1133
1064
 
1134
- const { argsString, argToVarMap } = renderArgsString(
1135
- args,
1136
- argsMeta,
1137
- );
1065
+ const { argsString, argToVarMap } = renderArgsString(args, argsMeta);
1138
1066
  return {
1139
1067
  selection: \`\${this[SLW_FIELD_NAME]}\${Object.keys(args).length ? argsString : ""}\`,
1140
1068
  variables: args,
@@ -1143,9 +1071,7 @@ export class SelectionWrapperImpl<
1143
1071
  return \`$\${varName}: \${argsMeta[key]}\`;
1144
1072
  }),
1145
1073
 
1146
- directive: directiveRender.rendered
1147
- ? directiveRender
1148
- : undefined,
1074
+ directive: directiveRender.rendered ? directiveRender : undefined,
1149
1075
  };
1150
1076
  }
1151
1077
  return {
@@ -1163,9 +1089,7 @@ export class SelectionWrapper<
1163
1089
  typeArrDepth extends number,
1164
1090
  valueT extends any = any,
1165
1091
  argsT extends Record<string, any> | undefined = undefined,
1166
- > extends Proxy<
1167
- SelectionWrapperImpl<fieldName, typeNamePure, typeArrDepth, valueT, argsT>
1168
- > {
1092
+ > extends Proxy<SelectionWrapperImpl<fieldName, typeNamePure, typeArrDepth, valueT, argsT>> {
1169
1093
  constructor(
1170
1094
  fieldName?: fieldName,
1171
1095
  typeNamePure?: typeNamePure,
@@ -1178,13 +1102,7 @@ export class SelectionWrapper<
1178
1102
  reCreateValueCallback?: () => valueT,
1179
1103
  ) {
1180
1104
  super(
1181
- new SelectionWrapperImpl<
1182
- fieldName,
1183
- typeNamePure,
1184
- typeArrDepth,
1185
- valueT,
1186
- argsT
1187
- >(
1105
+ new SelectionWrapperImpl<fieldName, typeNamePure, typeArrDepth, valueT, argsT>(
1188
1106
  fieldName,
1189
1107
  typeNamePure,
1190
1108
  typeArrDepth,
@@ -1196,43 +1114,27 @@ export class SelectionWrapper<
1196
1114
  reCreateValueCallback,
1197
1115
  ),
1198
1116
  (() => {
1199
- const getCache = (
1200
- t: SelectionWrapperImpl<
1201
- fieldName,
1202
- typeNamePure,
1203
- typeArrDepth,
1204
- valueT,
1205
- argsT
1206
- >,
1207
- ) => t[ROOT_OP_COLLECTOR]!.ref.cache;
1117
+ const getCache = (t: SelectionWrapperImpl<fieldName, typeNamePure, typeArrDepth, valueT, argsT>) =>
1118
+ t[SLW_OP_RESULT_DATA_OVERRIDE]
1119
+ ? { data: new Map(), proxiedArray: new Map() }
1120
+ : t[ROOT_OP_COLLECTOR]!.ref.cache;
1208
1121
 
1209
1122
  const getResultDataForTarget = (
1210
- t: SelectionWrapperImpl<
1211
- fieldName,
1212
- typeNamePure,
1213
- typeArrDepth,
1214
- valueT,
1215
- argsT
1216
- >,
1123
+ t: SelectionWrapperImpl<fieldName, typeNamePure, typeArrDepth, valueT, argsT>,
1217
1124
  overrideOpPath?: string,
1218
1125
  ): valueT | undefined => {
1219
1126
  const cache = getCache(t);
1220
1127
 
1221
- const path = overrideOpPath ?? t[SLW_OP_PATH] ?? "";
1222
- if (cache.data.has(path) && !t[SLW_NEEDS_CLONE])
1223
- return cache.data.get(path);
1128
+ const path = overrideOpPath ?? t[SLW_OP_PATH] ?? undefined;
1129
+ if (path && cache.data.has(path) && !t[SLW_NEEDS_CLONE]) return cache.data.get(path);
1224
1130
 
1225
- const data = t[
1226
- ROOT_OP_COLLECTOR
1227
- ]!.ref.getOperationResultPath<valueT>(
1228
- (path?.split(".") ?? []).map((p) =>
1229
- !isNaN(+p) ? +p : p,
1230
- ),
1131
+ const data = t[ROOT_OP_COLLECTOR]!.ref.getOperationResultPath<valueT>(
1132
+ (path?.split(".") ?? []).map((p) => (!isNaN(+p) ? +p : p)),
1231
1133
  t[SLW_FIELD_TYPENAME],
1232
1134
  t[SLW_OP_RESULT_DATA_OVERRIDE],
1233
1135
  );
1234
1136
 
1235
- cache.data.set(path, data);
1137
+ if (path) cache.data.set(path, data);
1236
1138
  return data;
1237
1139
  };
1238
1140
 
@@ -1242,19 +1144,14 @@ export class SelectionWrapper<
1242
1144
  return Reflect.ownKeys(value ?? {});
1243
1145
  },
1244
1146
  getOwnPropertyDescriptor(target, prop) {
1245
- return Reflect.getOwnPropertyDescriptor(
1246
- value ?? {},
1247
- prop,
1248
- );
1147
+ return Reflect.getOwnPropertyDescriptor(value ?? {}, prop);
1249
1148
  },
1250
1149
  has(target, prop) {
1251
- if (prop === Symbol.for("nodejs.util.inspect.custom"))
1252
- return true;
1150
+ if (prop === Symbol.for("nodejs.util.inspect.custom")) return true;
1253
1151
  if (prop === Symbol.iterator && typeArrDepth) {
1254
1152
  const dataArr = getResultDataForTarget(target);
1255
1153
  if (Array.isArray(dataArr)) return true;
1256
- if (dataArr === undefined || dataArr === null)
1257
- return false;
1154
+ if (dataArr === undefined || dataArr === null) return false;
1258
1155
  }
1259
1156
 
1260
1157
  return Reflect.has(value ?? {}, prop);
@@ -1263,8 +1160,7 @@ export class SelectionWrapper<
1263
1160
  const pstr = String(p);
1264
1161
  if (
1265
1162
  typeof p === "symbol" &&
1266
- (pstr.startsWith("Symbol(SLW_") ||
1267
- pstr == "Symbol(ROOT_OP_COLLECTOR)")
1163
+ (pstr.startsWith("Symbol(SLW_") || pstr == "Symbol(ROOT_OP_COLLECTOR)")
1268
1164
  ) {
1269
1165
  return Reflect.set(target, p, newValue, receiver);
1270
1166
  }
@@ -1279,10 +1175,7 @@ export class SelectionWrapper<
1279
1175
  );
1280
1176
  },
1281
1177
  get: (target, prop) => {
1282
- if (
1283
- target[SLW_SETTER_DATA_OVERRIDE] &&
1284
- target[SLW_SETTER_DATA_OVERRIDE][prop]
1285
- ) {
1178
+ if (target[SLW_SETTER_DATA_OVERRIDE] && target[SLW_SETTER_DATA_OVERRIDE][prop]) {
1286
1179
  return target[SLW_SETTER_DATA_OVERRIDE][prop];
1287
1180
  }
1288
1181
  if (prop === "$lazy") {
@@ -1306,25 +1199,17 @@ export class SelectionWrapper<
1306
1199
  undefined,
1307
1200
  undefined,
1308
1201
  new RootOperation(
1309
- that[
1310
- ROOT_OP_COLLECTOR
1311
- ]!.ref.op!.authArg,
1312
- that[
1313
- ROOT_OP_COLLECTOR
1314
- ]!.ref.op!.headers,
1202
+ that[ROOT_OP_COLLECTOR]!.ref.op!.authArg,
1203
+ that[ROOT_OP_COLLECTOR]!.ref.op!.headers,
1315
1204
  ),
1316
1205
  ),
1317
1206
  };
1318
1207
 
1319
- const newThisCollector =
1320
- new OperationSelectionCollector(
1321
- undefined,
1322
- newRootOpCollectorRef,
1323
- );
1324
- const r =
1325
- that[SLW_RECREATE_VALUE_CALLBACK]?.bind(
1326
- newThisCollector,
1327
- )?.() ?? {};
1208
+ const newThisCollector = new OperationSelectionCollector(
1209
+ undefined,
1210
+ newRootOpCollectorRef,
1211
+ );
1212
+ const r = that[SLW_RECREATE_VALUE_CALLBACK]?.bind(newThisCollector)?.() ?? {};
1328
1213
 
1329
1214
  const newThat = new SelectionWrapper(
1330
1215
  that[SLW_FIELD_NAME],
@@ -1335,31 +1220,20 @@ export class SelectionWrapper<
1335
1220
  // only set parent collector, if 'that' had one,
1336
1221
  // the absence indicates, that 'that' is a scalar field
1337
1222
  // without a subselection!
1338
- that[SLW_PARENT_COLLECTOR]
1339
- ? newRootOpCollectorRef
1340
- : undefined,
1223
+ that[SLW_PARENT_COLLECTOR] ? newRootOpCollectorRef : undefined,
1341
1224
  that[SLW_ARGS],
1342
1225
  that[SLW_ARGS_META],
1343
1226
  );
1344
- Object.keys(r!).forEach(
1345
- (key) =>
1346
- (newThat as valueT)[
1347
- key as keyof valueT
1348
- ],
1349
- );
1227
+ newThat[SLW_UID] = that[SLW_UID];
1350
1228
 
1351
- newThat[SLW_IS_ROOT_TYPE] =
1352
- that[SLW_IS_ROOT_TYPE];
1353
- newThat[SLW_IS_ON_TYPE_FRAGMENT] =
1354
- that[SLW_IS_ON_TYPE_FRAGMENT];
1355
- newThat[SLW_IS_FRAGMENT] =
1356
- that[SLW_IS_FRAGMENT];
1229
+ Object.keys(r!).forEach((key) => (newThat as valueT)[key as keyof valueT]);
1230
+
1231
+ newThat[SLW_IS_ROOT_TYPE] = that[SLW_IS_ROOT_TYPE];
1232
+ newThat[SLW_IS_ON_TYPE_FRAGMENT] = that[SLW_IS_ON_TYPE_FRAGMENT];
1233
+ newThat[SLW_IS_FRAGMENT] = that[SLW_IS_FRAGMENT];
1357
1234
 
1358
1235
  newThat[SLW_PARENT_SLW] = parentSlw;
1359
- parentSlw[SLW_COLLECTOR]?.registerSelection(
1360
- key,
1361
- newThat,
1362
- );
1236
+ parentSlw[SLW_COLLECTOR]?.registerSelection(key, newThat);
1363
1237
  newThat[SLW_ARGS] = {
1364
1238
  ...(that[SLW_ARGS] ?? {}),
1365
1239
  ...args,
@@ -1367,25 +1241,30 @@ export class SelectionWrapper<
1367
1241
 
1368
1242
  newThat[SLW_OP_PATH] = that[SLW_OP_PATH];
1369
1243
 
1370
- newRootOpCollectorRef.ref.registerSelection(
1371
- newThat[SLW_FIELD_NAME]!,
1372
- newThat,
1373
- );
1244
+ newRootOpCollectorRef.ref.registerSelection(newThat[SLW_FIELD_NAME]!, newThat);
1374
1245
 
1375
1246
  const resultProxy = new Proxy(
1376
1247
  {},
1377
1248
  {
1378
1249
  get(_t, _prop) {
1379
- const result = new Promise(
1380
- (resolve, reject) => {
1381
- newRootOpCollectorRef.ref
1382
- .execute()
1383
- .catch(reject)
1384
- .then(() => {
1385
- resolve(newThat);
1386
- });
1387
- },
1388
- );
1250
+ const result = new Promise((resolve, reject) => {
1251
+ newRootOpCollectorRef.ref
1252
+ .execute()
1253
+ .catch(reject)
1254
+ .then((_data) => {
1255
+ const fieldName = newThat[SLW_FIELD_NAME]!;
1256
+ const d = _data[fieldName];
1257
+
1258
+ if (Symbol.asyncIterator in d) {
1259
+ return resolve(newThat);
1260
+ }
1261
+ if (typeof d === "object" && d && fieldName in d) {
1262
+ return resolve(proxify(d[fieldName], newThat as any));
1263
+ }
1264
+
1265
+ return resolve(proxify(d, newThat as any));
1266
+ });
1267
+ });
1389
1268
  if (String(_prop) === "then") {
1390
1269
  return result.then.bind(result);
1391
1270
  }
@@ -1399,12 +1278,8 @@ export class SelectionWrapper<
1399
1278
  {
1400
1279
  get(_t, _prop) {
1401
1280
  if (String(_prop) === "auth") {
1402
- return (
1403
- auth: FnOrPromisOrPrimitive,
1404
- ) => {
1405
- newRootOpCollectorRef.ref.op!.setAuth(
1406
- auth,
1407
- );
1281
+ return (auth: FnOrPromisOrPrimitive) => {
1282
+ newRootOpCollectorRef.ref.op!.setAuth(auth);
1408
1283
  return resultProxy;
1409
1284
  };
1410
1285
  }
@@ -1442,15 +1317,11 @@ export class SelectionWrapper<
1442
1317
  prop === SLW_RECREATE_VALUE_CALLBACK ||
1443
1318
  prop === SLW_OP_RESULT_DATA_OVERRIDE ||
1444
1319
  prop === SLW_CLONE ||
1445
- prop === SLW_SETTER_DATA_OVERRIDE
1320
+ prop === SLW_SETTER_DATA_OVERRIDE ||
1321
+ prop === SLW_NEEDS_CLONE
1446
1322
  ) {
1447
1323
  return target[
1448
- prop as keyof SelectionWrapperImpl<
1449
- fieldName,
1450
- typeNamePure,
1451
- typeArrDepth,
1452
- valueT
1453
- >
1324
+ prop as keyof SelectionWrapperImpl<fieldName, typeNamePure, typeArrDepth, valueT>
1454
1325
  ];
1455
1326
  }
1456
1327
  if (prop === SLW_VALUE) {
@@ -1460,40 +1331,35 @@ export class SelectionWrapper<
1460
1331
  return this;
1461
1332
  }
1462
1333
 
1463
- let slw_value = target[SLW_VALUE] as
1464
- | Record<string, any>
1465
- | undefined;
1334
+ let slw_value = target[SLW_VALUE] as Record<string, any> | undefined;
1466
1335
 
1467
1336
  if (target[ROOT_OP_COLLECTOR]?.ref.isExecuted) {
1468
1337
  if (prop === Symbol.asyncIterator) {
1469
- const asyncGenRootPath =
1470
- target[SLW_OP_PATH]?.split(".")?.[0];
1471
- const asyncGen = getResultDataForTarget(
1472
- target,
1473
- asyncGenRootPath,
1474
- ) as AsyncGenerator<valueT, any, any>;
1338
+ const asyncGenRootPath = target[SLW_OP_PATH]?.split(".")?.[0];
1339
+ const asyncGen = getResultDataForTarget(target, asyncGenRootPath) as AsyncGenerator<
1340
+ valueT,
1341
+ any,
1342
+ any
1343
+ >;
1475
1344
 
1476
1345
  return function () {
1477
1346
  return {
1478
1347
  next() {
1479
- return asyncGen
1480
- .next()
1481
- .then((val) => {
1482
- return {
1483
- done: val.done,
1484
- value: target[
1485
- SLW_CLONE
1486
- ]({
1487
- SLW_OP_PATH:
1488
- asyncGenRootPath,
1489
- OP_RESULT_DATA:
1490
- val.value,
1348
+ return asyncGen.next().then((val) => {
1349
+ return {
1350
+ done: val.done,
1351
+ value: proxify(
1352
+ val.value,
1353
+ target[SLW_CLONE]({
1354
+ SLW_OP_PATH: asyncGenRootPath,
1355
+ OP_RESULT_DATA: val.value,
1491
1356
 
1492
1357
  // this is only for subscriptions
1493
1358
  SLW_NEEDS_CLONE: true,
1494
1359
  }),
1495
- };
1496
- });
1360
+ ),
1361
+ };
1362
+ });
1497
1363
  },
1498
1364
  };
1499
1365
  };
@@ -1507,14 +1373,10 @@ export class SelectionWrapper<
1507
1373
  if (typeArrDepth && Array.isArray(_data)) {
1508
1374
  if (!isNaN(+String(prop))) {
1509
1375
  const elm = target[SLW_CLONE]({
1510
- SLW_OP_PATH:
1511
- path + "." + String(prop),
1512
- OP_RESULT_DATA:
1513
- target[
1514
- SLW_OP_RESULT_DATA_OVERRIDE
1515
- ],
1376
+ SLW_OP_PATH: path + "." + String(prop),
1377
+ OP_RESULT_DATA: target[SLW_OP_RESULT_DATA_OVERRIDE],
1516
1378
  });
1517
- return elm;
1379
+ return proxify(_data[Number(prop)], elm);
1518
1380
  }
1519
1381
 
1520
1382
  const data = _data as valueT[] | undefined;
@@ -1523,37 +1385,30 @@ export class SelectionWrapper<
1523
1385
  const cache = getCache(target);
1524
1386
 
1525
1387
  const proxiedData =
1526
- cache.proxiedArray.get(
1527
- target[SLW_OP_PATH]!,
1528
- ) ??
1529
- Array.from(
1530
- { length: data.length },
1531
- (_, i) =>
1532
- target[SLW_CLONE]({
1533
- SLW_OP_PATH:
1534
- target[SLW_OP_PATH] +
1535
- "." +
1536
- String(i),
1537
- OP_RESULT_DATA:
1538
- target[
1539
- SLW_OP_RESULT_DATA_OVERRIDE
1540
- ],
1541
- }),
1388
+ cache.proxiedArray.get(target[SLW_OP_PATH]!) ??
1389
+ Array.from({ length: data.length }, (_, i) =>
1390
+ typeof data[i] === "object"
1391
+ ? proxify(
1392
+ data[i],
1393
+ target[SLW_CLONE]({
1394
+ SLW_OP_PATH: target[SLW_OP_PATH] + "." + String(i),
1395
+ OP_RESULT_DATA: target[SLW_OP_RESULT_DATA_OVERRIDE],
1396
+ }),
1397
+ )
1398
+ : target[SLW_CLONE]({
1399
+ SLW_OP_PATH: target[SLW_OP_PATH] + "." + String(i),
1400
+ OP_RESULT_DATA: target[SLW_OP_RESULT_DATA_OVERRIDE],
1401
+ }),
1542
1402
  );
1543
1403
 
1544
1404
  if (!cache.proxiedArray.has(path)) {
1545
- cache.proxiedArray.set(
1546
- path,
1547
- proxiedData,
1548
- );
1405
+ cache.proxiedArray.set(path, proxiedData);
1549
1406
  }
1550
1407
 
1551
- const proto =
1552
- Object.getPrototypeOf(proxiedData);
1408
+ const proto = Object.getPrototypeOf(proxiedData);
1553
1409
  if (Object.hasOwn(proto, prop)) {
1554
1410
  const v = (proxiedData as any)[prop];
1555
- if (typeof v === "function")
1556
- return v.bind(proxiedData);
1411
+ if (typeof v === "function") return v.bind(proxiedData);
1557
1412
  return v;
1558
1413
  }
1559
1414
 
@@ -1570,8 +1425,7 @@ export class SelectionWrapper<
1570
1425
  const proto = Object.getPrototypeOf(data);
1571
1426
  if (Object.hasOwn(proto, prop)) {
1572
1427
  const v = (data as any)[prop];
1573
- if (typeof v === "function")
1574
- return v.bind(data);
1428
+ if (typeof v === "function") return v.bind(data);
1575
1429
  return v;
1576
1430
  }
1577
1431
 
@@ -1580,8 +1434,7 @@ export class SelectionWrapper<
1580
1434
 
1581
1435
  let slw = slw_value?.[String(prop)];
1582
1436
  let slwOpPathIsIndexAccessOrInArray = false;
1583
- let targetOpPathArr =
1584
- target[SLW_OP_PATH]?.split(".") ?? [];
1437
+ let targetOpPathArr = target[SLW_OP_PATH]?.split(".") ?? [];
1585
1438
  while (targetOpPathArr.length) {
1586
1439
  if (!isNaN(+targetOpPathArr.pop()!)) {
1587
1440
  slwOpPathIsIndexAccessOrInArray = true;
@@ -1591,8 +1444,7 @@ export class SelectionWrapper<
1591
1444
 
1592
1445
  if (
1593
1446
  slwOpPathIsIndexAccessOrInArray ||
1594
- (target[SLW_OP_RESULT_DATA_OVERRIDE] &&
1595
- !slw[SLW_OP_RESULT_DATA_OVERRIDE])
1447
+ (target[SLW_OP_RESULT_DATA_OVERRIDE] && !slw[SLW_OP_RESULT_DATA_OVERRIDE])
1596
1448
  ) {
1597
1449
  if (target[SLW_NEEDS_CLONE]) {
1598
1450
  // if the slw is flagged it needs to be cloned
@@ -1602,54 +1454,40 @@ export class SelectionWrapper<
1602
1454
  // we need a new object that doesn't reference
1603
1455
  // the other objects
1604
1456
  slw = slw[SLW_CLONE]({
1605
- SLW_OP_PATH:
1606
- target[SLW_OP_PATH] +
1607
- "." +
1608
- String(prop),
1609
- OP_RESULT_DATA:
1610
- target[SLW_OP_RESULT_DATA_OVERRIDE],
1457
+ SLW_OP_PATH: target[SLW_OP_PATH] + "." + String(prop),
1458
+ OP_RESULT_DATA: target[SLW_OP_RESULT_DATA_OVERRIDE],
1611
1459
  });
1612
1460
  } else {
1613
1461
  // index access detected, setting the op path
1614
1462
  // with the index (coming from the slw's parent (target))
1615
1463
  // it's in the parent because the parent was cloned before
1616
- slw[SLW_OP_PATH] =
1617
- target[SLW_OP_PATH] +
1618
- "." +
1619
- String(prop);
1620
- slw[SLW_OP_RESULT_DATA_OVERRIDE] =
1621
- target[SLW_OP_RESULT_DATA_OVERRIDE];
1464
+ slw[SLW_OP_PATH] = target[SLW_OP_PATH] + "." + String(prop);
1465
+ slw[SLW_OP_RESULT_DATA_OVERRIDE] = target[SLW_OP_RESULT_DATA_OVERRIDE];
1622
1466
  }
1623
1467
  }
1624
1468
 
1625
- if (
1626
- slw instanceof SelectionWrapperImpl &&
1627
- slw[SLW_FIELD_ARR_DEPTH]
1628
- ) {
1629
- const dataArr = getResultDataForTarget(slw) as
1630
- | unknown[]
1631
- | undefined
1632
- | null;
1469
+ if (slw instanceof SelectionWrapperImpl && slw[SLW_FIELD_ARR_DEPTH]) {
1470
+ const dataArr = getResultDataForTarget(slw) as unknown[] | undefined | null;
1633
1471
  if (dataArr === undefined) return undefined;
1634
1472
  if (dataArr === null) return null;
1635
1473
  if (!dataArr?.length) {
1636
1474
  return [];
1637
1475
  }
1476
+
1477
+ if (slw[SLW_PARENT_COLLECTOR]) {
1478
+ return proxify(dataArr, slw);
1479
+ }
1638
1480
  } else if (slw instanceof SelectionWrapperImpl) {
1639
- const data = getResultDataForTarget(slw) as
1640
- | unknown
1641
- | undefined
1642
- | null;
1481
+ const data = getResultDataForTarget(slw) as unknown | undefined | null;
1643
1482
  if (data === undefined) return undefined;
1644
1483
  if (data === null) return null;
1484
+
1485
+ if (slw[SLW_PARENT_COLLECTOR]) {
1486
+ return proxify(data, slw);
1487
+ }
1645
1488
  }
1646
1489
 
1647
- if (
1648
- slw instanceof SelectionWrapperImpl &&
1649
- slw[SLW_PARENT_COLLECTOR]
1650
- ) {
1651
- return slw;
1652
- } else if (slw instanceof SelectionWrapperImpl) {
1490
+ if (slw instanceof SelectionWrapperImpl) {
1653
1491
  return getResultDataForTarget(slw);
1654
1492
  } else if (slw[SLW_LAZY_FLAG]) {
1655
1493
  return slw;
@@ -1660,18 +1498,13 @@ export class SelectionWrapper<
1660
1498
 
1661
1499
  if (
1662
1500
  Object.hasOwn(slw_value ?? {}, String(prop)) &&
1663
- slw_value?.[String(prop)] instanceof
1664
- SelectionWrapperImpl
1501
+ slw_value?.[String(prop)] instanceof SelectionWrapperImpl
1665
1502
  ) {
1666
1503
  if (target[SLW_COLLECTOR]) {
1667
- target[SLW_COLLECTOR].registerSelection(
1668
- String(prop),
1669
- slw_value[String(prop)],
1670
- );
1504
+ target[SLW_COLLECTOR].registerSelection(String(prop), slw_value[String(prop)]);
1671
1505
  }
1672
1506
  if (!slw_value[String(prop)][SLW_PARENT_SLW]) {
1673
- slw_value[String(prop)][SLW_PARENT_SLW] =
1674
- target;
1507
+ slw_value[String(prop)][SLW_PARENT_SLW] = target;
1675
1508
  }
1676
1509
  }
1677
1510
  if (slw_value?.[String(prop)]?.[SLW_LAZY_FLAG]) {
@@ -1681,8 +1514,7 @@ export class SelectionWrapper<
1681
1514
  parentSlw: target,
1682
1515
  key: String(prop),
1683
1516
  });
1684
- slw_value[String(prop)][SLW_PARENT_SLW] =
1685
- target;
1517
+ slw_value[String(prop)][SLW_PARENT_SLW] = target;
1686
1518
  slw_value[String(prop)][SLW_LAZY_FLAG] = true;
1687
1519
  }
1688
1520
  }
@@ -2230,7 +2062,7 @@ export class SelectionWrapper<
2230
2062
  };
2231
2063
  `;return this.collector.addEnumType(this.typeMeta,P),D}makeSelectionTypeInputValueForFieldWrapperType(D,F){let P="";if(F.isEnum)P=F.ofType.name.replaceAll("!","").replaceAll("[","").replaceAll("]","");else P=this.ScalarTypeMap().get(F.name.replaceAll("!","").replaceAll("[","").replaceAll("]",""))??(F.scalarTSType?`ScalarTypeMapWithCustom["${F.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}"]`:"any");if(F.isList)return`${Array.from({length:F.isList}).map((B)=>"Array<").join("")}${P}${Array.from({length:F.isList}).map((B)=>">").join("")}`;return P}makeSelectionTypeInputValueForField(D,F=[],P=!1){let B=()=>{let X=D.args.some((J)=>J.type.isNonNull),q=`${F.join()}${D.name.slice(0,1).toUpperCase()}${D.name.slice(1)}Args`;if(!this.collector.hasArgumentType(q)){let Y=`{ ${D.args.map((H)=>{let U=H.type.isScalar,W=H.type.isEnum,O=H.type.isInput,z=`${H.name}${H.type.isNonNull?"":"?"}`,I="any";if(U)I=H.type.scalarTSType?`ScalarTypeMapWithCustom["${H.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}"]`:this.ScalarTypeMap().get(H.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]",""))??"any";else if(O||W)I=this.originalTypeNameToTypescriptTypeName(H.type.name);return`${H.description?`/** ${H.description??`${z}`} */`:""}
2232
2064
  ${z}: ${I};`}).join(" ")} }`;this.collector.addArgumentType(q,`export type ${q} = ${Y};`)}return{argsTypeName:q,hasAtLeastOneNonNullArg:X}},Z=D.description?`/* ${D.description} */
2233
- `:"";if(D.type.isScalar||D.type.isEnum){let X=this.makeSelectionTypeInputValueForFieldWrapperType(D.name,D.type);if(this.collector.addSelectionType(D.type,X),D.hasArgs){let{argsTypeName:q,hasAtLeastOneNonNullArg:J}=B();return`${Z}${D.name}: (args${J?"":"?"}: ${q}) => ${X};`}return`${Z}${D.name}${D.type.isNonNull?"":"?"}: ${X};`}else if(D.type.ofType){let X=new g0(D.type.ofType.name,this.collector,this.options);X.makeSelectionFunction();let q=X.originalTypeNameToTypescriptTypeName(X.originalFullTypeName);if(D.hasArgs){let{argsTypeName:J,hasAtLeastOneNonNullArg:Y}=B();return`${Z}${D.name}: (args${Y?"":"?"}: ${J} ) => ${q};`}if(P)return`${Z}${D.name}${D.type.isNonNull?"":"?"}: ${this.originalTypeNameToTypescriptTypeName(D.type.ofType.name)};`;return`${Z}${D.name}${D.type.isNonNull?"":"?"}: ${q};`}else throw console.error(D.type),new Error(`Unknown type for field ${D.name}: ${D.type.name}`)}makeSelectionType(){if(this.typeMeta.isDirective)return"";if(this.typeMeta.isScalar||this.typeMeta.isEnum)return this.makeSelectionTypeInputValueForFieldWrapperType(this.typeName,this.typeMeta);let D=this.originalTypeNameToTypescriptTypeNameWithoutModifiers(this.originalFullTypeName);if(this.collector.hasSelectionType(this.typeMeta))return D;let F="";if(this.typeMeta.isUnion){let P=this.typeMeta.possibleTypes.map((B)=>this.originalTypeNameToTypescriptFriendlyName(B.name)).join(" | ");F=`
2065
+ `:"";if(D.type.isScalar||D.type.isEnum){let X=this.makeSelectionTypeInputValueForFieldWrapperType(D.name,D.type);if(this.collector.addSelectionType(D.type,X),D.hasArgs){let{argsTypeName:q,hasAtLeastOneNonNullArg:J}=B();return`${Z}${D.name}: (args${J?"":"?"}: ${q}) => ${X};`}return`${Z}${D.name}${D.type.isNonNull?"":"?"}: ${X};`}else if(D.type.ofType){let X=new g0(D.type.ofType.name,this.collector,this.options);X.makeSelectionFunction();let q=X.originalTypeNameToTypescriptTypeName(X.originalFullTypeName);if(D.hasArgs){let{argsTypeName:J,hasAtLeastOneNonNullArg:Y}=B();return`${Z}${D.name}: (args${Y?"":"?"}: ${J} ) => ${q};`}if(P)return`${Z}${D.name}${D.type.isNonNull?"":"?"}: ${this.originalTypeNameToTypescriptTypeName(D.type.ofType.name)};`;return`${Z}${D.name}${D.type.isNonNull?"":"?"}: ${q};`}else throw console.error(D.type),Error(`Unknown type for field ${D.name}: ${D.type.name}`)}makeSelectionType(){if(this.typeMeta.isDirective)return"";if(this.typeMeta.isScalar||this.typeMeta.isEnum)return this.makeSelectionTypeInputValueForFieldWrapperType(this.typeName,this.typeMeta);let D=this.originalTypeNameToTypescriptTypeNameWithoutModifiers(this.originalFullTypeName);if(this.collector.hasSelectionType(this.typeMeta))return D;let F="";if(this.typeMeta.isUnion){let P=this.typeMeta.possibleTypes.map((B)=>this.originalTypeNameToTypescriptFriendlyName(B.name)).join(" | ");F=`
2234
2066
  export type ${D} = ${P};
2235
2067
  `}else F=`
2236
2068
  export type ${D} = {
@@ -2244,7 +2076,7 @@ export class SelectionWrapper<
2244
2076
  {},
2245
2077
  this,
2246
2078
  undefined,
2247
- ${D.hasArgs?`args, ${P}Meta`:""})`}makeSelectionFunctionInputObjectValueForField(D,F){let P=()=>{let Z=`${F.join()}${D.name.slice(0,1).toUpperCase()}${D.name.slice(1)}Args`;if(!this.collector.hasArgumentMeta(Z)){let q=`{ ${D.args.map((J)=>{return`${J.name}: "${J.type.name}",`}).join(" ")} }`;this.collector.addArgumentMeta(Z,`export const ${Z}Meta = ${q} as const;`)}return{argsTypeName:Z}},B=D.type;if(B.isScalar||B.isEnum){let Z=this.makeSelectionFunctionInputObjectValueForFieldWrapper(D,F);if(D.hasArgs)P();return this.collector.addSelectionFunction(B,Z),`${D.name}: ${Z}`}else if(B.ofType){let Z=new g0(B.ofType.name,this.collector,this.options).makeSelectionFunction();if(D.hasArgs){let{argsTypeName:X}=P();return`${D.name}: (args: ${X}) => ${Z}.bind({ collector: this, fieldName: "${D.name}", args, argsMeta: ${X}Meta })`}return`${D.name}: ${Z}.bind({ collector: this, fieldName: "${D.name}" })`}else throw console.error(B),new Error(`Unknown type for field ${D.name}: ${B.name}`)}makeDirective(){if(!this.typeMeta.isDirective)return"";let D=`_directive_${this.typeMeta.isDirective.name}`;if(this.collector.hasDirectiveFunction(this.typeMeta.isDirective))return D;let F=`${this.typeName}Args`;if(!this.collector.hasArgumentType(F)){let B=this.typeMeta.isDirective.args.map((Z)=>{let X=Z.type.isScalar,q=Z.type.isEnum,J=Z.type.isInput,Y=`${Z.name}${Z.type.isNonNull?"":"?"}`,H="any";if(X)H=Z.type.scalarTSType?`ScalarTypeMapWithCustom["${Z.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}"]`:this.ScalarTypeMap().get(Z.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]",""))??"any";else if(J||q)H=this.originalTypeNameToTypescriptTypeName(Z.type.name);return`
2079
+ ${D.hasArgs?`args, ${P}Meta`:""})`}makeSelectionFunctionInputObjectValueForField(D,F){let P=()=>{let Z=`${F.join()}${D.name.slice(0,1).toUpperCase()}${D.name.slice(1)}Args`;if(!this.collector.hasArgumentMeta(Z)){let q=`{ ${D.args.map((J)=>{return`${J.name}: "${J.type.name}",`}).join(" ")} }`;this.collector.addArgumentMeta(Z,`export const ${Z}Meta = ${q} as const;`)}return{argsTypeName:Z}},B=D.type;if(B.isScalar||B.isEnum){let Z=this.makeSelectionFunctionInputObjectValueForFieldWrapper(D,F);if(D.hasArgs)P();return this.collector.addSelectionFunction(B,Z),`${D.name}: ${Z}`}else if(B.ofType){let Z=new g0(B.ofType.name,this.collector,this.options).makeSelectionFunction();if(D.hasArgs){let{argsTypeName:X}=P();return`${D.name}: (args: ${X}) => ${Z}.bind({ collector: this, fieldName: "${D.name}", args, argsMeta: ${X}Meta })`}return`${D.name}: ${Z}.bind({ collector: this, fieldName: "${D.name}" })`}else throw console.error(B),Error(`Unknown type for field ${D.name}: ${B.name}`)}makeDirective(){if(!this.typeMeta.isDirective)return"";let D=`_directive_${this.typeMeta.isDirective.name}`;if(this.collector.hasDirectiveFunction(this.typeMeta.isDirective))return D;let F=`${this.typeName}Args`;if(!this.collector.hasArgumentType(F)){let B=this.typeMeta.isDirective.args.map((Z)=>{let X=Z.type.isScalar,q=Z.type.isEnum,J=Z.type.isInput,Y=`${Z.name}${Z.type.isNonNull?"":"?"}`,H="any";if(X)H=Z.type.scalarTSType?`ScalarTypeMapWithCustom["${Z.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}"]`:this.ScalarTypeMap().get(Z.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]",""))??"any";else if(J||q)H=this.originalTypeNameToTypescriptTypeName(Z.type.name);return`
2248
2080
  /** ${Z.description??`${Y}`} */
2249
2081
  ${Y}: ${H};`}).join(" ");this.collector.addArgumentType(F,`export type ${F} = { ${B} };`)}if(!this.collector.hasArgumentMeta(F)){let Z=`{ ${this.typeMeta.isDirective.args.map((X)=>{return`${X.name}: "${X.type.name}",`}).join(" ")} }`;this.collector.addArgumentMeta(F,`export const ${F}Meta = ${Z} as const;`)}let P=`
2250
2082
  export const ${D} = (
@@ -2836,7 +2668,7 @@ export class SelectionWrapper<
2836
2668
  };`).join(`
2837
2669
  `)}
2838
2670
  }
2839
- `}}class $8{collector;options;static FieldValueWrapperType;static EnumTypesMapped;static HelperTypes;static HelperFunctions;typeMeta;typeName;originalFullTypeName;constructor(D,F,P){this.collector=F,this.options=P,this.typeMeta=F.getType(D),this.originalFullTypeName=D,this.typeName=this.originalTypeNameToTypescriptFriendlyName(D)}static reservedKeywords=["import","const","export"];static originalTypeNameToTypescriptFriendlyName(D){if($8.reservedKeywords.includes(D))D=`_${D}`;return D.replaceAll("/","_").replaceAll("[","").replaceAll("]","Array").replaceAll("!","")}originalTypeNameToTypescriptFriendlyName(D){return $8.originalTypeNameToTypescriptFriendlyName(D)}static originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F=""){return`${D.replaceAll("/","_").replaceAll("[","").replaceAll("]","").replaceAll("!","")}${F}`}originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F=""){return $8.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F)}static originalTypeNameToTypescriptTypeName(D,F=""){return`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F)}${Array.from({length:D.split("[").length-1}).fill("[]").join("")}`}originalTypeNameToTypescriptTypeName(D,F=""){return $8.originalTypeNameToTypescriptTypeName(D,F)}static makeRootOperationFunction(D,F,P,B){throw new Error("Method not implemented.")}}var db=`const Proxy = global.Proxy;
2671
+ `}}class $8{collector;options;static FieldValueWrapperType;static EnumTypesMapped;static HelperTypes;static HelperFunctions;typeMeta;typeName;originalFullTypeName;constructor(D,F,P){this.collector=F,this.options=P,this.typeMeta=F.getType(D),this.originalFullTypeName=D,this.typeName=this.originalTypeNameToTypescriptFriendlyName(D)}static reservedKeywords=["import","const","export"];static originalTypeNameToTypescriptFriendlyName(D){if($8.reservedKeywords.includes(D))D=`_${D}`;return D.replaceAll("/","_").replaceAll("[","").replaceAll("]","Array").replaceAll("!","")}originalTypeNameToTypescriptFriendlyName(D){return $8.originalTypeNameToTypescriptFriendlyName(D)}static originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F=""){return`${D.replaceAll("/","_").replaceAll("[","").replaceAll("]","").replaceAll("!","")}${F}`}originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F=""){return $8.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F)}static originalTypeNameToTypescriptTypeName(D,F=""){return`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F)}${Array.from({length:D.split("[").length-1}).fill("[]").join("")}`}originalTypeNameToTypescriptTypeName(D,F=""){return $8.originalTypeNameToTypescriptTypeName(D,F)}static makeRootOperationFunction(D,F,P,B){throw Error("Method not implemented.")}}var db=`const Proxy = global.Proxy;
2840
2672
  Proxy.prototype = {};
2841
2673
 
2842
2674
  export const _ = Symbol("_") as any;
@@ -2858,10 +2690,7 @@ export class RootOperation {
2858
2690
  };
2859
2691
 
2860
2692
  private utilSet = (obj: Record<string, any>, path: string[], value: any) =>
2861
- path.reduce(
2862
- (o, p, i, a) => (o[p] = a.length - 1 === i ? value : o[p] || {}),
2863
- obj,
2864
- );
2693
+ path.reduce((o, p, i, a) => (o[p] = a.length - 1 === i ? value : o[p] || {}), obj);
2865
2694
 
2866
2695
  private rootCollector: OperationSelectionCollector | undefined = undefined;
2867
2696
  public registerRootCollector(collector: OperationSelectionCollector) {
@@ -2872,26 +2701,18 @@ export class RootOperation {
2872
2701
  throw new Error("RootOperation has no registered collector");
2873
2702
  }
2874
2703
 
2875
- type selection = ReturnType<
2876
- typeof OperationSelectionCollector.prototype.renderSelections
2877
- >;
2704
+ type selection = ReturnType<typeof OperationSelectionCollector.prototype.renderSelections>;
2878
2705
  const operations: {
2879
2706
  [key: string]: {
2880
2707
  selection: selection;
2881
2708
  rootSlw: SelectionWrapperImpl<string, string, number, any>;
2882
2709
  };
2883
2710
  } = {};
2884
- for (const [
2885
- opName,
2886
- opSelection,
2887
- ] of this.rootCollector?.selections.entries()) {
2711
+ for (const [opName, opSelection] of this.rootCollector?.selections.entries()) {
2888
2712
  if (opSelection[SLW_LAZY_FLAG]) continue;
2889
2713
 
2890
2714
  const rootSlw = opSelection;
2891
- const selection = rootSlw[SLW_PARENT_COLLECTOR]!.renderSelections(
2892
- [],
2893
- [rootSlw],
2894
- );
2715
+ const selection = rootSlw[SLW_PARENT_COLLECTOR]!.renderSelections([], [rootSlw]);
2895
2716
 
2896
2717
  operations[opName] = {
2897
2718
  selection,
@@ -2901,15 +2722,13 @@ export class RootOperation {
2901
2722
 
2902
2723
  const ops = Object.entries(operations).reduce(
2903
2724
  (acc, [opName, { selection, rootSlw }]) => {
2904
- const bodyVarDefCount = Object.entries(
2905
- selection.variableDefinitions,
2906
- ).filter(([_, v]) => v.location === "body").length;
2725
+ const bodyVarDefCount = Object.entries(selection.variableDefinitions).filter(
2726
+ ([_, v]) => v.location === "body",
2727
+ ).length;
2907
2728
  const body =
2908
2729
  bodyVarDefCount === 0
2909
2730
  ? undefined
2910
- : bodyVarDefCount === 1 &&
2911
- Object.keys(selection.variableDefinitions)
2912
- .length === 1
2731
+ : bodyVarDefCount === 1 && Object.keys(selection.variableDefinitions).length === 1
2913
2732
  ? selection.variables
2914
2733
  : bodyVarDefCount === 1 &&
2915
2734
  "$body" in selection.variableDefinitions &&
@@ -2918,10 +2737,7 @@ export class RootOperation {
2918
2737
  : Object.fromEntries(
2919
2738
  Object.entries(selection.variableDefinitions)
2920
2739
  .filter(([_, v]) => v.location === "body")
2921
- .map(([k, _]) => [
2922
- k,
2923
- selection.variables[k],
2924
- ]),
2740
+ .map(([k, _]) => [k, selection.variables[k]]),
2925
2741
  );
2926
2742
 
2927
2743
  return {
@@ -2938,18 +2754,12 @@ export class RootOperation {
2938
2754
  path: Object.fromEntries(
2939
2755
  Object.entries(selection.variableDefinitions)
2940
2756
  .filter(([_, v]) => v.location === "path")
2941
- .map(([k, v]) => [
2942
- k,
2943
- selection.variables[k],
2944
- ]),
2757
+ .map(([k, v]) => [k, selection.variables[k]]),
2945
2758
  ),
2946
2759
  query: Object.fromEntries(
2947
2760
  Object.entries(selection.variableDefinitions)
2948
2761
  .filter(([_, v]) => v.location === "query")
2949
- .map(([k, v]) => [
2950
- k,
2951
- selection.variables[k],
2952
- ]),
2762
+ .map(([k, v]) => [k, selection.variables[k]]),
2953
2763
  ),
2954
2764
  },
2955
2765
  body,
@@ -2965,15 +2775,7 @@ export class RootOperation {
2965
2775
  string,
2966
2776
  {
2967
2777
  path: string;
2968
- method:
2969
- | "get"
2970
- | "post"
2971
- | "put"
2972
- | "delete"
2973
- | "patch"
2974
- | "head"
2975
- | "options"
2976
- | "trace";
2778
+ method: "get" | "post" | "put" | "delete" | "patch" | "head" | "options" | "trace";
2977
2779
  header: Record<string, any>;
2978
2780
  params: {
2979
2781
  path: Record<string, any>;
@@ -2989,11 +2791,7 @@ export class RootOperation {
2989
2791
  const results = Object.fromEntries(
2990
2792
  await Promise.all([
2991
2793
  ...Object.entries(ops).map(
2992
- async ([opName, op]) =>
2993
- [
2994
- opName,
2995
- await this.executeOperation(op, headers),
2996
- ] as const,
2794
+ async ([opName, op]) => [opName, await this.executeOperation(op, headers)] as const,
2997
2795
  ),
2998
2796
  ]),
2999
2797
  );
@@ -3004,15 +2802,7 @@ export class RootOperation {
3004
2802
  private async executeOperation(
3005
2803
  request: {
3006
2804
  path: string;
3007
- method:
3008
- | "get"
3009
- | "post"
3010
- | "put"
3011
- | "delete"
3012
- | "patch"
3013
- | "head"
3014
- | "options"
3015
- | "trace";
2805
+ method: "get" | "post" | "put" | "delete" | "patch" | "head" | "options" | "trace";
3016
2806
  header: Record<string, any>;
3017
2807
  params: {
3018
2808
  path: Record<string, any>;
@@ -3028,9 +2818,7 @@ export class RootOperation {
3028
2818
  });
3029
2819
  const finalQuery = new URLSearchParams(request.params.query).toString();
3030
2820
  // remove the '{?arg1, arg2, ...}' part from the finalPath and add the finalQuery to the end
3031
- finalPath = \`\${finalPath.replace(/\\{.*?\\}$/, "")}\${
3032
- finalQuery ? \`?\${finalQuery}\` : ""
3033
- }\`;
2821
+ finalPath = \`\${finalPath.replace(/\\{.*?\\}$/, "")}\${finalQuery ? \`?\${finalQuery}\` : ""}\`;
3034
2822
  const cookies = new URLSearchParams(request.cookie).toString();
3035
2823
 
3036
2824
  const res = await fetch(\`[ENDPOINT]\${finalPath}\`, {
@@ -3060,9 +2848,7 @@ export type OperationSelectionCollectorRef = {
3060
2848
  export class OperationSelectionCollector {
3061
2849
  constructor(
3062
2850
  public readonly name?: string,
3063
- public readonly parent?:
3064
- | OperationSelectionCollector
3065
- | OperationSelectionCollectorRef,
2851
+ public readonly parent?: OperationSelectionCollector | OperationSelectionCollectorRef,
3066
2852
  public readonly op?: RootOperation,
3067
2853
  ) {
3068
2854
  if (op) op.registerRootCollector(this);
@@ -3070,13 +2856,9 @@ export class OperationSelectionCollector {
3070
2856
 
3071
2857
  private executed = false;
3072
2858
  private operationResult: any | undefined = undefined;
3073
- public async execute(
3074
- headers: Record<string, string> = RootOperation[OPTIONS].headers,
3075
- ) {
2859
+ public async execute(headers: Record<string, string> = RootOperation[OPTIONS].headers) {
3076
2860
  if (!this.op) {
3077
- throw new Error(
3078
- "OperationSelectionCollector is not registered to a root operation",
3079
- );
2861
+ throw new Error("OperationSelectionCollector is not registered to a root operation");
3080
2862
  }
3081
2863
  this.operationResult = await this.op.execute(headers);
3082
2864
  this.executed = true;
@@ -3085,25 +2867,14 @@ export class OperationSelectionCollector {
3085
2867
  return this.executed;
3086
2868
  }
3087
2869
 
3088
- public readonly selections = new Map<
3089
- string,
3090
- SelectionWrapperImpl<string, string, number, any>
3091
- >();
3092
- public registerSelection(
3093
- id: string,
3094
- selection: SelectionWrapperImpl<string, string, number, any, any>,
3095
- ) {
2870
+ public readonly selections = new Map<string, SelectionWrapperImpl<string, string, number, any>>();
2871
+ public registerSelection(id: string, selection: SelectionWrapperImpl<string, string, number, any, any>) {
3096
2872
  this.selections.set(id, selection);
3097
2873
  }
3098
2874
 
3099
2875
  public renderSelections(
3100
2876
  path: string[] = [],
3101
- renderOnlyTheseSelections: SelectionWrapperImpl<
3102
- string,
3103
- string,
3104
- number,
3105
- any
3106
- >[] = [],
2877
+ renderOnlyTheseSelections: SelectionWrapperImpl<string, string, number, any>[] = [],
3107
2878
  ) {
3108
2879
  const varDefs: Record<
3109
2880
  string,
@@ -3117,13 +2888,10 @@ export class OperationSelectionCollector {
3117
2888
  for (const [key, value] of [...this.selections.entries()].filter(
3118
2889
  ([k, v]) =>
3119
2890
  renderOnlyTheseSelections.length === 0 ||
3120
- renderOnlyTheseSelections.find(
3121
- (r) => r[SLW_UID] === v[SLW_UID],
3122
- ),
2891
+ renderOnlyTheseSelections.find((r) => r[SLW_UID] === v[SLW_UID]),
3123
2892
  )) {
3124
2893
  const subPath = [...path, key];
3125
- const { variableDefinitions: fieldVarDefs, variables: fieldVars } =
3126
- value[SLW_RENDER_WITH_ARGS]();
2894
+ const { variableDefinitions: fieldVarDefs, variables: fieldVars } = value[SLW_RENDER_WITH_ARGS]();
3127
2895
 
3128
2896
  Object.assign(variables, fieldVars);
3129
2897
  Object.assign(varDefs, fieldVarDefs);
@@ -3132,9 +2900,7 @@ export class OperationSelectionCollector {
3132
2900
 
3133
2901
  if (value[SLW_PARENT_COLLECTOR] === undefined) {
3134
2902
  // do nothing
3135
- } else if (
3136
- value[SLW_COLLECTOR] instanceof OperationSelectionCollector
3137
- ) {
2903
+ } else if (value[SLW_COLLECTOR] instanceof OperationSelectionCollector) {
3138
2904
  const { variableDefinitions: subVarDefs, variables: subVars } =
3139
2905
  value[SLW_COLLECTOR].renderSelections(subPath);
3140
2906
 
@@ -3149,16 +2915,10 @@ export class OperationSelectionCollector {
3149
2915
  };
3150
2916
  }
3151
2917
 
3152
- private utilGet = (obj: Record<string, any>, path: (string | number)[]) =>
3153
- path.reduce((o, p) => o?.[p], obj);
3154
- public getOperationResultPath<T>(
3155
- path: (string | number)[] = [],
3156
- type?: string,
3157
- ): T {
2918
+ private utilGet = (obj: Record<string, any>, path: (string | number)[]) => path.reduce((o, p) => o?.[p], obj);
2919
+ public getOperationResultPath<T>(path: (string | number)[] = [], type?: string): T {
3158
2920
  if (!this.op) {
3159
- throw new Error(
3160
- "OperationSelectionCollector is not registered to a root operation",
3161
- );
2921
+ throw new Error("OperationSelectionCollector is not registered to a root operation");
3162
2922
  }
3163
2923
 
3164
2924
  let result = this.operationResult;
@@ -3176,25 +2936,17 @@ export class OperationSelectionCollector {
3176
2936
  depth++;
3177
2937
  }
3178
2938
 
3179
- const deepParse = (
3180
- res: any | any[],
3181
- depth: number,
3182
- parse: (v: string) => any,
3183
- ) => {
2939
+ const deepParse = (res: any | any[], depth: number, parse: (v: string) => any) => {
3184
2940
  if (depth === 0) {
3185
2941
  return parse(res);
3186
2942
  }
3187
- return res.map((rarr: any) =>
3188
- deepParse(rarr, depth - 1, parse),
3189
- );
2943
+ return res.map((rarr: any) => deepParse(rarr, depth - 1, parse));
3190
2944
  };
3191
2945
 
3192
2946
  return deepParse(
3193
2947
  finalResult,
3194
2948
  depth,
3195
- RootOperation[OPTIONS].scalars[
3196
- type as keyof (typeof RootOperation)[typeof OPTIONS]["scalars"]
3197
- ],
2949
+ RootOperation[OPTIONS].scalars[type as keyof (typeof RootOperation)[typeof OPTIONS]["scalars"]],
3198
2950
  ) as T;
3199
2951
  }
3200
2952
 
@@ -3223,9 +2975,7 @@ export const SLW_OP_PATH = Symbol("SLW_OP_PATH");
3223
2975
  export const SLW_REGISTER_PATH = Symbol("SLW_REGISTER_PATH");
3224
2976
  export const SLW_RENDER_WITH_ARGS = Symbol("SLW_RENDER_WITH_ARGS");
3225
2977
 
3226
- export const SLW_RECREATE_VALUE_CALLBACK = Symbol(
3227
- "SLW_RECREATE_VALUE_CALLBACK",
3228
- );
2978
+ export const SLW_RECREATE_VALUE_CALLBACK = Symbol("SLW_RECREATE_VALUE_CALLBACK");
3229
2979
 
3230
2980
  export const SLW_CLONE = Symbol("SLW_CLONE");
3231
2981
 
@@ -3240,10 +2990,7 @@ export class SelectionWrapperImpl<
3240
2990
  argsT extends Record<string, any> | any | undefined = undefined,
3241
2991
  > {
3242
2992
  private generateUniqueId(): string {
3243
- return (
3244
- performance.now().toString(36) +
3245
- Math.random().toString(36).substring(2)
3246
- );
2993
+ return performance.now().toString(36) + Math.random().toString(36).substring(2);
3247
2994
  }
3248
2995
  [SLW_CLONE](
3249
2996
  overrides: {
@@ -3280,15 +3027,7 @@ export class SelectionWrapperImpl<
3280
3027
 
3281
3028
  [ROOT_OP_META]?: {
3282
3029
  path: string;
3283
- method:
3284
- | "get"
3285
- | "post"
3286
- | "put"
3287
- | "delete"
3288
- | "patch"
3289
- | "head"
3290
- | "options"
3291
- | "trace";
3030
+ method: "get" | "post" | "put" | "delete" | "patch" | "head" | "options" | "trace";
3292
3031
  };
3293
3032
 
3294
3033
  [SLW_ARGS]?: argsT;
@@ -3343,9 +3082,7 @@ export class SelectionWrapperImpl<
3343
3082
  this[SLW_COLLECTOR] = collector;
3344
3083
 
3345
3084
  let rootCollector = collector;
3346
- while (
3347
- rootCollector?.parent instanceof OperationSelectionCollector
3348
- ) {
3085
+ while (rootCollector?.parent instanceof OperationSelectionCollector) {
3349
3086
  rootCollector = rootCollector.parent;
3350
3087
  }
3351
3088
  if (rootCollector.parent && "ref" in rootCollector.parent) {
@@ -3380,7 +3117,7 @@ export class SelectionWrapperImpl<
3380
3117
  return {
3381
3118
  variables: args ?? {},
3382
3119
  variableDefinitions: argsMeta?.["$body"]
3383
- ? argsMeta ?? {}
3120
+ ? (argsMeta ?? {})
3384
3121
  : args
3385
3122
  ? Object.keys(args).reduce(
3386
3123
  (acc, key) => {
@@ -3391,12 +3128,7 @@ export class SelectionWrapperImpl<
3391
3128
  string,
3392
3129
  {
3393
3130
  type: string;
3394
- location:
3395
- | "path"
3396
- | "query"
3397
- | "header"
3398
- | "cookie"
3399
- | "body";
3131
+ location: "path" | "query" | "header" | "cookie" | "body";
3400
3132
  }
3401
3133
  >,
3402
3134
  )
@@ -3421,9 +3153,7 @@ export class SelectionWrapper<
3421
3153
  typeArrDepth extends number,
3422
3154
  valueT extends any = any,
3423
3155
  argsT extends Record<string, any> | any | undefined = undefined,
3424
- > extends Proxy<
3425
- SelectionWrapperImpl<fieldName, typeNamePure, typeArrDepth, valueT, argsT>
3426
- > {
3156
+ > extends Proxy<SelectionWrapperImpl<fieldName, typeNamePure, typeArrDepth, valueT, argsT>> {
3427
3157
  constructor(
3428
3158
  fieldName?: fieldName,
3429
3159
  typeNamePure?: typeNamePure,
@@ -3443,13 +3173,7 @@ export class SelectionWrapper<
3443
3173
  isScalarOp?: boolean,
3444
3174
  ) {
3445
3175
  super(
3446
- new SelectionWrapperImpl<
3447
- fieldName,
3448
- typeNamePure,
3449
- typeArrDepth,
3450
- valueT,
3451
- argsT
3452
- >(
3176
+ new SelectionWrapperImpl<fieldName, typeNamePure, typeArrDepth, valueT, argsT>(
3453
3177
  fieldName,
3454
3178
  typeNamePure,
3455
3179
  typeArrDepth,
@@ -3470,8 +3194,7 @@ export class SelectionWrapper<
3470
3194
  return Reflect.getOwnPropertyDescriptor(value ?? {}, prop);
3471
3195
  },
3472
3196
  has(target, prop) {
3473
- if (prop === Symbol.for("nodejs.util.inspect.custom"))
3474
- return true;
3197
+ if (prop === Symbol.for("nodejs.util.inspect.custom")) return true;
3475
3198
  return Reflect.has(value ?? {}, prop);
3476
3199
  },
3477
3200
  get: (target, prop) => {
@@ -3479,35 +3202,18 @@ export class SelectionWrapper<
3479
3202
  const that = this;
3480
3203
  function lazy(
3481
3204
  this: {
3482
- parentSlw: SelectionWrapperImpl<
3483
- fieldName,
3484
- typeNamePure,
3485
- typeArrDepth,
3486
- valueT,
3487
- argsT
3488
- >;
3205
+ parentSlw: SelectionWrapperImpl<fieldName, typeNamePure, typeArrDepth, valueT, argsT>;
3489
3206
  key: string;
3490
3207
  },
3491
3208
  args?: argsT,
3492
3209
  ) {
3493
3210
  const { parentSlw, key } = this;
3494
3211
  const newRootOpCollectorRef = {
3495
- ref: new OperationSelectionCollector(
3496
- undefined,
3497
- undefined,
3498
- new RootOperation(),
3499
- ),
3212
+ ref: new OperationSelectionCollector(undefined, undefined, new RootOperation()),
3500
3213
  };
3501
3214
 
3502
- const newThisCollector =
3503
- new OperationSelectionCollector(
3504
- undefined,
3505
- newRootOpCollectorRef,
3506
- );
3507
- const r =
3508
- that[SLW_RECREATE_VALUE_CALLBACK]?.bind(
3509
- newThisCollector,
3510
- )();
3215
+ const newThisCollector = new OperationSelectionCollector(undefined, newRootOpCollectorRef);
3216
+ const r = that[SLW_RECREATE_VALUE_CALLBACK]?.bind(newThisCollector)();
3511
3217
 
3512
3218
  const newThat = new SelectionWrapper(
3513
3219
  that[SLW_FIELD_NAME],
@@ -3521,18 +3227,12 @@ export class SelectionWrapper<
3521
3227
  that[SLW_RECREATE_VALUE_CALLBACK],
3522
3228
  that[SLW_IS_SCALAR_OP],
3523
3229
  );
3524
- Object.keys(r!).forEach(
3525
- (key) =>
3526
- (newThat as valueT)[key as keyof valueT],
3527
- );
3230
+ Object.keys(r!).forEach((key) => (newThat as valueT)[key as keyof valueT]);
3528
3231
 
3529
3232
  newThat[ROOT_OP_META] = that[ROOT_OP_META];
3530
3233
 
3531
3234
  newThat[SLW_PARENT_SLW] = parentSlw;
3532
- parentSlw[SLW_COLLECTOR]?.registerSelection(
3533
- key,
3534
- newThat,
3535
- );
3235
+ parentSlw[SLW_COLLECTOR]?.registerSelection(key, newThat);
3536
3236
  newThat[SLW_ARGS] = {
3537
3237
  ...(that[SLW_ARGS] ?? {}),
3538
3238
  ...(args as any), // need to fix this
@@ -3540,10 +3240,7 @@ export class SelectionWrapper<
3540
3240
 
3541
3241
  newThat[SLW_OP_PATH] = that[SLW_OP_PATH];
3542
3242
 
3543
- newRootOpCollectorRef.ref.registerSelection(
3544
- newThat[SLW_FIELD_NAME]!,
3545
- newThat,
3546
- );
3243
+ newRootOpCollectorRef.ref.registerSelection(newThat[SLW_FIELD_NAME]!, newThat);
3547
3244
 
3548
3245
  return new Promise((resolve, reject) => {
3549
3246
  newRootOpCollectorRef.ref
@@ -3583,12 +3280,7 @@ export class SelectionWrapper<
3583
3280
  prop === SLW_IS_SCALAR_OP
3584
3281
  ) {
3585
3282
  return target[
3586
- prop as keyof SelectionWrapperImpl<
3587
- fieldName,
3588
- typeNamePure,
3589
- typeArrDepth,
3590
- valueT
3591
- >
3283
+ prop as keyof SelectionWrapperImpl<fieldName, typeNamePure, typeArrDepth, valueT>
3592
3284
  ];
3593
3285
  }
3594
3286
  if (prop === SLW_VALUE) {
@@ -3598,26 +3290,14 @@ export class SelectionWrapper<
3598
3290
  return this;
3599
3291
  }
3600
3292
 
3601
- let slw_value = target[SLW_VALUE] as
3602
- | Record<string, any>
3603
- | undefined;
3293
+ let slw_value = target[SLW_VALUE] as Record<string, any> | undefined;
3604
3294
 
3605
3295
  if (target[ROOT_OP_COLLECTOR]?.ref.isExecuted) {
3606
3296
  const getResultDataForTarget = (
3607
- t: SelectionWrapperImpl<
3608
- fieldName,
3609
- typeNamePure,
3610
- typeArrDepth,
3611
- valueT,
3612
- argsT
3613
- >,
3297
+ t: SelectionWrapperImpl<fieldName, typeNamePure, typeArrDepth, valueT, argsT>,
3614
3298
  ): valueT | undefined => {
3615
- const data = t[
3616
- ROOT_OP_COLLECTOR
3617
- ]!.ref.getOperationResultPath<valueT>(
3618
- (t[SLW_OP_PATH]?.split(".") ?? []).map((p) =>
3619
- !isNaN(+p) ? +p : p,
3620
- ),
3299
+ const data = t[ROOT_OP_COLLECTOR]!.ref.getOperationResultPath<valueT>(
3300
+ (t[SLW_OP_PATH]?.split(".") ?? []).map((p) => (!isNaN(+p) ? +p : p)),
3621
3301
  t[SLW_FIELD_TYPENAME],
3622
3302
  );
3623
3303
  return data;
@@ -3628,37 +3308,25 @@ export class SelectionWrapper<
3628
3308
  if (typeArrDepth) {
3629
3309
  if (!isNaN(+String(prop))) {
3630
3310
  const elm = target[SLW_CLONE]({
3631
- SLW_OP_PATH:
3632
- target[SLW_OP_PATH] +
3633
- "." +
3634
- String(prop),
3311
+ SLW_OP_PATH: target[SLW_OP_PATH] + "." + String(prop),
3635
3312
  });
3636
3313
  return elm;
3637
3314
  }
3638
3315
 
3639
- const data = getResultDataForTarget(target) as
3640
- | valueT[]
3641
- | undefined;
3316
+ const data = getResultDataForTarget(target) as valueT[] | undefined;
3642
3317
 
3643
3318
  if (data === undefined) return undefined;
3644
3319
 
3645
- const proxiedData = Array.from(
3646
- { length: data.length },
3647
- (_, i) =>
3648
- target[SLW_CLONE]({
3649
- SLW_OP_PATH:
3650
- target[SLW_OP_PATH] +
3651
- "." +
3652
- String(i),
3653
- }),
3320
+ const proxiedData = Array.from({ length: data.length }, (_, i) =>
3321
+ target[SLW_CLONE]({
3322
+ SLW_OP_PATH: target[SLW_OP_PATH] + "." + String(i),
3323
+ }),
3654
3324
  );
3655
3325
 
3656
- const proto =
3657
- Object.getPrototypeOf(proxiedData);
3326
+ const proto = Object.getPrototypeOf(proxiedData);
3658
3327
  if (Object.hasOwn(proto, prop)) {
3659
3328
  const v = (proxiedData as any)[prop];
3660
- if (typeof v === "function")
3661
- return v.bind(proxiedData);
3329
+ if (typeof v === "function") return v.bind(proxiedData);
3662
3330
  return v;
3663
3331
  }
3664
3332
 
@@ -3670,8 +3338,7 @@ export class SelectionWrapper<
3670
3338
  const proto = Object.getPrototypeOf(data);
3671
3339
  if (Object.hasOwn(proto, prop)) {
3672
3340
  const v = (data as any)[prop];
3673
- if (typeof v === "function")
3674
- return v.bind(data);
3341
+ if (typeof v === "function") return v.bind(data);
3675
3342
  return v;
3676
3343
  }
3677
3344
 
@@ -3679,21 +3346,15 @@ export class SelectionWrapper<
3679
3346
  }
3680
3347
 
3681
3348
  let slw = slw_value?.[String(prop)];
3682
- const slwOpPathIsIndexAccess = !isNaN(
3683
- +target[SLW_OP_PATH]?.split(".").pop()!,
3684
- );
3349
+ const slwOpPathIsIndexAccess = !isNaN(+target[SLW_OP_PATH]?.split(".").pop()!);
3685
3350
  if (slwOpPathIsIndexAccess) {
3686
3351
  // index access detected, cloning
3687
3352
  slw = slw[SLW_CLONE]({
3688
- SLW_OP_PATH:
3689
- target[SLW_OP_PATH] + "." + String(prop),
3353
+ SLW_OP_PATH: target[SLW_OP_PATH] + "." + String(prop),
3690
3354
  });
3691
3355
  }
3692
3356
 
3693
- if (
3694
- slw instanceof SelectionWrapperImpl &&
3695
- slw[SLW_PARENT_COLLECTOR]
3696
- ) {
3357
+ if (slw instanceof SelectionWrapperImpl && slw[SLW_PARENT_COLLECTOR]) {
3697
3358
  return slw;
3698
3359
  } else if (slw instanceof SelectionWrapperImpl) {
3699
3360
  return getResultDataForTarget(slw);
@@ -3706,14 +3367,10 @@ export class SelectionWrapper<
3706
3367
 
3707
3368
  if (
3708
3369
  Object.hasOwn(slw_value ?? {}, String(prop)) &&
3709
- slw_value?.[String(prop)] instanceof
3710
- SelectionWrapperImpl
3370
+ slw_value?.[String(prop)] instanceof SelectionWrapperImpl
3711
3371
  ) {
3712
3372
  if (target[SLW_COLLECTOR]) {
3713
- target[SLW_COLLECTOR].registerSelection(
3714
- String(prop),
3715
- slw_value[String(prop)],
3716
- );
3373
+ target[SLW_COLLECTOR].registerSelection(String(prop), slw_value[String(prop)]);
3717
3374
  }
3718
3375
  if (!slw_value[String(prop)][SLW_PARENT_SLW]) {
3719
3376
  slw_value[String(prop)][SLW_PARENT_SLW] = target;
@@ -4092,7 +3749,7 @@ export class SelectionWrapper<
4092
3749
  };
4093
3750
  `;if(this.collector.hasEnumTypeName(D)&&this.collector.getEnumTypeByName(D)!==Z(D)){let X=0,q=[D];while(this.collector.hasEnumTypeName(q.join("_")))q=[D,(++X).toString()];this.typeMeta.name=q.join("_"),this.collector.addEnumType(this.typeMeta,Z(this.typeMeta.name))}else this.typeMeta.name=D,this.collector.addEnumType(this.typeMeta,Z(D));return D}makeSelectionTypeInputValueForFieldWrapperType(D,F){let P="";if(F.isEnum)P=F.ofType.name.replaceAll("!","").replaceAll("[","").replaceAll("]","");else P=this.ScalarTypeMap().get(F.name.replaceAll("!","").replaceAll("[","").replaceAll("]",""))??(F.scalarTSType?`ScalarTypeMapWithCustom["${F.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}"]`:"any");if(F.isList)return`${Array.from({length:F.isList}).map((B)=>"Array<").join("")}${P}${Array.from({length:F.isList}).map((B)=>">").join("")}`;return P}makeSelectionTypeInputValueForField(D,F=[],P=!1){let B=D.description?`/* ${D.description.replaceAll("*/","\\*\\/")} */
4094
3751
  `:"";if(D.type.isScalar||D.type.isEnum){let Z=this.makeSelectionTypeInputValueForFieldWrapperType(D.name,D.type);return this.collector.addSelectionType(D.type,Z),`${B}${D.name}${D.type.isNonNull?"":"?"}: ${Z};`}else if(D.type.isUnion&&D.type.possibleTypes.every((Z)=>Z.isScalar||Z.isEnum))return`${B}${D.name}${D.type.isNonNull?"":"?"}: ${Array.from({length:D.type.isList}).map((Z)=>"Array<").join("")}${D.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}
4095
- ${Array.from({length:D.type.isList}).map((Z)=>">").join("")};`;else if(D.type.ofType){let Z=new B0(D.type.ofType.name,this.collector,this.options).makeSelectionType();return`${B}"${D.name}"${D.type.isNonNull?"":"?"}: ${this.originalTypeNameToTypescriptTypeName(D.type.ofType.name,!D.type.isInput&&D.type.isList?"Array":"").replaceAll("!","")}`}else throw console.error(D.type),new Error(`Unknown type for field "${D.name}": ${D.type.name}`)}makeSelectionType(){if(this.typeMeta.isScalar||this.typeMeta.isEnum)return this.makeSelectionTypeInputValueForFieldWrapperType(this.typeName,this.typeMeta);let D=this.typeMeta.isInput?`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(this.originalFullTypeName)}`:this.typeName;if(this.collector.hasSelectionType(this.typeMeta))return D;let F="";if(this.typeMeta.isUnion){let P=this.typeMeta.possibleTypes.map((B)=>B.isScalar||B.isEnum?this.makeSelectionTypeInputValueForFieldWrapperType(B.name,B):this.typeMeta.isInput?`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(B.name)}`:`${this.originalTypeNameToTypescriptFriendlyName(B.name)}`).join(" | ");F=`
3752
+ ${Array.from({length:D.type.isList}).map((Z)=>">").join("")};`;else if(D.type.ofType){let Z=new B0(D.type.ofType.name,this.collector,this.options).makeSelectionType();return`${B}"${D.name}"${D.type.isNonNull?"":"?"}: ${this.originalTypeNameToTypescriptTypeName(D.type.ofType.name,!D.type.isInput&&D.type.isList?"Array":"").replaceAll("!","")}`}else throw console.error(D.type),Error(`Unknown type for field "${D.name}": ${D.type.name}`)}makeSelectionType(){if(this.typeMeta.isScalar||this.typeMeta.isEnum)return this.makeSelectionTypeInputValueForFieldWrapperType(this.typeName,this.typeMeta);let D=this.typeMeta.isInput?`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(this.originalFullTypeName)}`:this.typeName;if(this.collector.hasSelectionType(this.typeMeta))return D;let F="";if(this.typeMeta.isUnion){let P=this.typeMeta.possibleTypes.map((B)=>B.isScalar||B.isEnum?this.makeSelectionTypeInputValueForFieldWrapperType(B.name,B):this.typeMeta.isInput?`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(B.name)}`:`${this.originalTypeNameToTypescriptFriendlyName(B.name)}`).join(" | ");F=`
4096
3753
  export type ${D} = ${P};
4097
3754
  `}else F=`
4098
3755
  export type ${D} = {
@@ -4106,7 +3763,7 @@ export class SelectionWrapper<
4106
3763
  {},
4107
3764
  this,
4108
3765
  undefined,
4109
- )`}makeSelectionFunctionInputObjectValueForField(D,F){let P=D.type;if(P.isScalar||P.isEnum||P.isUnion&&P.possibleTypes.every((B)=>B.isScalar||B.isEnum)){let B=this.makeSelectionFunctionInputObjectValueForFieldWrapper(D,F);return this.collector.addSelectionFunction(P,B),`"${D.name}": ${B}`}else if(P.ofType){let B=new B0(P.ofType.name,this.collector,this.options).makeSelectionFunction();return`"${D.name}": ${B}.bind({ collector: this, fieldName: "${D.name}" })`}else throw console.error(P),new Error(`Unknown type for field "${D.name}": ${P.name}`)}makeSelectionFunction(){if(this.typeMeta.isScalar||this.typeMeta.isEnum)return`new SelectionWrapper(
3766
+ )`}makeSelectionFunctionInputObjectValueForField(D,F){let P=D.type;if(P.isScalar||P.isEnum||P.isUnion&&P.possibleTypes.every((B)=>B.isScalar||B.isEnum)){let B=this.makeSelectionFunctionInputObjectValueForFieldWrapper(D,F);return this.collector.addSelectionFunction(P,B),`"${D.name}": ${B}`}else if(P.ofType){let B=new B0(P.ofType.name,this.collector,this.options).makeSelectionFunction();return`"${D.name}": ${B}.bind({ collector: this, fieldName: "${D.name}" })`}else throw console.error(P),Error(`Unknown type for field "${D.name}": ${P.name}`)}makeSelectionFunction(){if(this.typeMeta.isScalar||this.typeMeta.isEnum)return`new SelectionWrapper(
4110
3767
  "${this.typeName}",
4111
3768
  "${this.typeMeta.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")}",
4112
3769
  ${this.typeMeta.isList??0},
@@ -4431,7 +4088,7 @@ export class SelectionWrapper<
4431
4088
  init: typeof __init__;
4432
4089
  };
4433
4090
  `}}var N6={};rH(N6,{Generator:()=>nH});var pb=(D,F,P,B)=>{let X=F?.includes("@typedef")?F?.match(/@typedef\s*{(.*)}/)?.[1]:void 0,q={name:D,description:F,isScalar:!0,scalarTSType:X??P,isEnum:!1,isObject:!1,isUnion:!1,isList:0,isNonNull:!1,fields:[],possibleTypes:[],inputFields:[],isInput:!1,enumValues:[],isInterface:!1,isQuery:!1,isMutation:!1,isSubscription:!1};q.ofType=q,B.addType(q),B.addCustomScalar(q);let J={...q,name:`${q.name}!`,isNonNull:!0};return J.ofType=J,B.addType(J),B.addCustomScalar(J),q},rb=(D,F,P)=>{let B={types:[],directives:[],query:[],mutation:[],subscription:[]};for(let Y in D.getTypeMap()){if(!F.includeSchemaDefinition){if(["__Schema","__Type","__TypeKind","__Field","__InputValue","__EnumValue","__Directive"].includes(Y))continue}let H=D.getTypeMap()[Y];if(H instanceof KD.GraphQLScalarType){if(["String","Int","Float","Boolean","ID","Date","DateTime","DateTimeISO","Time","JSON"].includes(Y))continue;B.types.push(pb(Y,H.description??void 0,"Record<string | number | symbol, unknown>",P))}}let Z=P.customScalars.size>0,X=D.getQueryType();if(X)for(let Y of Object.values(X.getFields()))B.query.push($7(D,Y,"query",F,P));let q=D.getMutationType();if(q)for(let Y of Object.values(q.getFields()))B.mutation.push($7(D,Y,"mutation",F,P));let J=D.getSubscriptionType();if(J)for(let Y of Object.values(J.getFields()))B.subscription.push($7(D,Y,"subscription",F,P));for(let Y in D.getTypeMap()){if(!F.includeSchemaDefinition){if(["__Schema","__Type","__TypeKind","__Field","__InputValue","__EnumValue","__Directive"].includes(Y))continue}let H=D.getTypeMap()[Y];if(KD.isObjectType(H)||Z&&KD.isInputObjectType(H)||KD.isInterfaceType(H))B.types.push(_6(D,H,F,P))}for(let Y of D.getDirectives())B.directives.push(ab(D,Y,F,P));return B},$7=(D,F,P,B,Z)=>{let X={name:F.name,description:F.description??void 0,operation:P,args:[],type:_6(D,F.type,B,Z)};for(let q in F.args){let J=F.args[q];X.args.push(C3(D,J,B,Z))}return X},C3=(D,F,P,B)=>{return{name:F.name,hasArgs:!1,args:[],description:F.description??void 0,type:_6(D,F.type,P,B)}},_6=(D,F,P,B)=>{let Z=KD.getNamedType(F),X={name:F.toString(),description:Z.description??void 0,isList:F.toString().split("[").length-1,isNonNull:F.toString().endsWith("!"),isScalar:Z instanceof KD.GraphQLScalarType,isEnum:Z instanceof KD.GraphQLEnumType,isInput:Z instanceof KD.GraphQLInputObjectType,isInterface:Z instanceof KD.GraphQLInterfaceType,isObject:Z instanceof KD.GraphQLObjectType,isUnion:Z instanceof KD.GraphQLUnionType,isQuery:!1,isMutation:!1,isSubscription:!1,fields:[],possibleTypes:[],enumValues:[],inputFields:[]};if(B.hasType(X.name))return B.getType(X.name);else B.addType(X);if(X.ofType=X,X.isEnum)for(let q of Z.getValues())X.enumValues.push({name:q.name,description:q.description??void 0});if(X.isInput){let q=Z.getFields();for(let J in q)X.inputFields.push(C3(D,q[J],P,B))}if(X.isInterface){let q=Z.getFields();for(let J in q)X.fields.push(pH(D,q[J],P,B))}if(X.isObject){let q=Z.getFields();for(let J in q)X.fields.push(pH(D,q[J],P,B))}if(X.isUnion)for(let q of Z.getTypes())X.possibleTypes.push(_6(D,q,P,B));if(Z instanceof KD.GraphQLObjectType){if(Z.name==="Query")X.isQuery=!0;else if(Z.name==="Mutation")X.isMutation=!0;else if(Z.name==="Subscription")X.isSubscription=!0}return B.addType(X),X},pH=(D,F,P,B)=>{let Z={name:F.name,description:F.description??void 0,hasArgs:Object.keys(F.args).length>0,args:[],type:_6(D,F.type,P,B)};for(let X in F.args){let q=F.args[X];Z.args.push(C3(D,q,P,B))}return Z},ab=(D,F,P,B)=>{let Z={name:F.name,description:F.description??void 0,locations:F.locations,args:[]};for(let X in F.args){let q=F.args[X];Z.args.push(C3(D,q,P,B))}return B.addType({name:`Directive_${F.name}`,description:F.description??void 0,isList:0,isNonNull:!1,isScalar:!1,isEnum:!1,isInput:!1,isInterface:!1,isObject:!1,isUnion:!1,isQuery:!1,isMutation:!1,isSubscription:!1,fields:[],possibleTypes:[],enumValues:[],inputFields:[],isDirective:Z}),Z};class sH{QueryTypeName;MutationTypeName;SubscriptionTypeName;OperationTypeNames;constructor(D,F,P){this.QueryTypeName=D,this.MutationTypeName=F,this.SubscriptionTypeName=P,this.OperationTypeNames=[D,F,P].filter((B)=>B)}_types=new Map;get types(){return this._types}addType(D){this._types.set(D.name,D)}hasType(D){return this._types.has(D)}getType(D){return this._types.get(D)}_customScalars=new Map;get customScalars(){return this._customScalars}addCustomScalar(D){this._customScalars.set(D.name,D)}hasCustomScalar(D){return this._customScalars.has(D)}getCustomScalar(D){return this._customScalars.get(D)}removeCustomScalar(D){this._customScalars.delete(D)}_enumsTypes=new Map;get enumsTypes(){return this._enumsTypes}addEnumType(D,F){this._enumsTypes.set(D,F)}hasEnumType(D){if(!D)return!1;return this._enumsTypes.has(D)}getEnumType(D){return this._enumsTypes.get(D)}_argumentTypes=new Map;get argumentTypes(){return this._argumentTypes}addArgumentType(D,F){this._argumentTypes.set(D,F)}hasArgumentType(D){return this._argumentTypes.has(D)}getArgumentType(D){return this._argumentTypes.get(D)}_argumentMeta=new Map;get argumentMeta(){return this._argumentMeta}addArgumentMeta(D,F){this._argumentMeta.set(D,F)}hasArgumentMeta(D){return this._argumentMeta.has(D)}getArgumentMeta(D){return this._argumentMeta.get(D)}_directivesFunctions=new Map;get directivesFunctions(){return this._directivesFunctions}addDirectiveFunction(D,F){this._directivesFunctions.set(D,F)}hasDirectiveFunction(D){return this._directivesFunctions.has(D)}getDirectiveFunction(D){return this._directivesFunctions.get(D)}_selectionTypes=new Map;get selectionTypes(){return this._selectionTypes}addSelectionType(D,F){this._selectionTypes.set(D,F)}hasSelectionType(D){if(!D)return!1;return this._selectionTypes.has(D)}getSelectionType(D){return this._selectionTypes.get(D)}_selectionFunctions=new Map;get selectionFunctions(){return this._selectionFunctions}addSelectionFunction(D,F){this._selectionFunctions.set(D,F)}hasSelectionFunction(D){if(!D)return!1;return this._selectionFunctions.has(D)}getSelectionFunction(D){return this._selectionFunctions.get(D)}}class nH{Codegen;constructor(D){this.Codegen=D}async generate({schema:D,options:F,authConfig:P}){let B=D.getQueryType()?.name,Z=D.getMutationType()?.name,X=D.getSubscriptionType()?.name,q=new sH(B,Z,X);rb(D,F,q);for(let[Y,H]of q.types.entries()){if(!H.isEnum)continue;new this.Codegen(Y,q,F,P).makeEnumType()}for(let[Y,H]of q.types.entries()){if(!H.isInput)continue;new this.Codegen(Y,q,F,P).makeSelectionType()}for(let[Y,H]of q.types.entries()){if(!H.isDirective?.locations.some((U)=>[A3.DirectiveLocation.FIELD,A3.DirectiveLocation.FRAGMENT_SPREAD,A3.DirectiveLocation.INLINE_FRAGMENT].includes(U)))continue;new this.Codegen(Y,q,F,P).makeDirective()}for(let[Y,H]of q.types.entries()){if(H.isScalar||H.isInput||H.isEnum||H.isDirective)continue;new this.Codegen(Y,q,F,P).makeSelectionType(),new this.Codegen(Y,q,F,P).makeSelectionFunction()}return[this.Codegen.FieldValueWrapperType,this.Codegen.HelperTypes(Array.from(q.customScalars.values())),this.Codegen.HelperFunctions,...[...q.enumsTypes.entries()].map(([Y,H])=>H).filter((Y,H,U)=>U.indexOf(Y)===H),...[...q.argumentTypes.entries()].map(([Y,H])=>H).filter((Y,H,U)=>U.indexOf(Y)===H),...[...q.argumentMeta.entries()].map(([Y,H])=>H).filter((Y,H,U)=>U.indexOf(Y)===H),...[...q.selectionTypes.entries()].filter(([Y])=>Y.isInput||Y.isObject||Y.isUnion).map(([Y,H])=>H).filter((Y,H,U)=>U.indexOf(Y)===H),this.Codegen.EnumTypesMapped(q),...[...q.selectionFunctions.entries()].filter(([Y])=>!Y.isScalar&&!Y.isEnum&&!Y.isInput).map(([Y,H])=>H),...[...q.directivesFunctions.entries()].map(([Y,H])=>H),this.Codegen.makeRootOperationFunction(q,P)].join(`
4434
- `)}}var k6={};rH(k6,{Generator:()=>oH});var uD=(D,F="$")=>{let P="";for(let B of D.filter(Boolean))P+=B.charAt(0).toUpperCase()+B.slice(1)+F;return P.slice(0,P.length-F.length).replaceAll("/","_").replaceAll("-","_").replaceAll(".","_")},sb=(D,F,P)=>{let B={types:[],operations:[],customScalars:[]};for(let[Z,X]of Object.entries(D?.components?.schemas??{}))B.types.push(cD(D,Z,X,"schemas",{isNonNull:!1},P));for(let[Z,X]of Object.entries(D?.paths??{})){if("$ref"in X)continue;for(let[q,J]of Object.entries(X)){if(!J)continue;if("$ref"in J){console.warn(`TODO: Handle $ref in methodValue for ${Z}`);continue}let Y=ob(D,Z,q,J,F,P);if(!Y)continue;B.operations.push(Y)}}return B},M7=(D,F,P,B)=>{let Z={name:D,description:F,isScalar:!0,scalarTSType:P,isEnum:!1,isObject:!1,isUnion:!1,isList:0,isNonNull:!1,fields:[],possibleTypes:[],inputFields:[],isInput:!1,enumValues:[]};return Z.ofType=Z,B.addType(Z),B.addCustomScalar(Z),Z},E7=(D,F)=>{let P=F?.isInput??D.isInput,B=F?.isNonNull??D.isNonNull;return`${D.name.slice(0,P&&B?-1:void 0)}${P?`${B?"Input!":"Input"}`:""}`.replaceAll("-","_")},K7=(D,F)=>{if(D.isInput||D.isScalar)return D;let P=E7(D,{isInput:!0}),B={...D,name:P,isInput:!0,isObject:!1,inputFields:D.fields.map((Z)=>({...Z,location:"$",type:K7(Z.type,F)})),fields:[],possibleTypes:D.possibleTypes.map((Z)=>K7(Z,F))};return B.ofType=B,F.addType(B),B},cD=(D,F,P,B,Z,X)=>{if("ofType"in P)return P;if("$ref"in P){let H=P.$ref.split("/");H.shift();let U=H.shift(),W=H.shift(),O=H.shift(),z=D[U]?.[W]?.[O];if(z)return cD(D,uD([Z.operationResponseType?"":F,O]),z,W,{isNonNull:Z.isNonNull},X);throw new Error(`Reference ${P.$ref} not found`)}if("schema"in P)return cD(D,F,P.schema,"schemas",{isNonNull:Z.isNonNull,operationResponseType:Z.operationResponseType},X);let q=P;if("properties"in q&&!("type"in q))q.type="object";let J={name:Z.operationResponseType?F:Z.isNonNull?`${F}!`:F,description:q.description,isObject:"type"in q&&(q.type==="object"||JSON.stringify(q.type)===JSON.stringify(["object","null"])),fields:[],isUnion:!!q.oneOf||!!q.anyOf||!!q.allOf,possibleTypes:[],isList:0,isNonNull:Z.isNonNull,isScalar:!1,scalarTSType:void 0,isEnum:{schemas:!!q.enum,parameters:!1,responses:!1,requestBodies:!1,headers:!1}[B],enumValues:[],isInput:B==="parameters"||B==="headers"||B==="requestBodies",inputFields:[],ofType:void 0};J.isScalar=!J.isObject&&!J.isUnion&&!J.isEnum&&!J.isInput;let Y=E7(J);if(X.hasType(Y))return X.getType(Y);else J.name=Y,X.addType(J);if(J.ofType=J,J.isEnum){let H=q;for(let U of[...H.enum??[]])J.enumValues.push({name:String(U),description:q.description,type:cD(D,F,q,B,{isNonNull:Z.isNonNull},X)})}if(J.isInput){let H=q;if("content"in H){let U=H;for(let[W,O]of Object.entries(U.content??{})){X.removeType(Y);let z=K7(cD(D,F,O,B,{isNonNull:U.required??!1},X),X);if(z.fields.length===1&&!!z.fields[0].type.scalarTSType)return X.removeType(Y),J=z.fields[0].type,X.addType(J),J;else return X.removeType(Y),J=z,X.addType(J),J}}if("schema"in H&&"in"in H){let U=H;if(U.schema)J.inputFields.push(M8(D,U.name,U.schema,B,U.in,{isNonNull:U.required??!1},X));else J.inputFields.push(M8(D,U.name,cD(D,uD([F,"Input",U.name]),U.content["application/json"],B,{isNonNull:U.required??!1},X),B,U.in,{isNonNull:U.required??!1},X))}if("schema"in H&&!("in"in H)){let U=H;if(U.schema)J.inputFields.push(M8(D,uD([F,"Header"]),U.schema,B,"header",{isNonNull:U.required??!1},X));else J.inputFields.push(M8(D,uD([F,"Header"]),cD(D,uD([F,"Input","Header"]),U.content["application/json"],B,{isNonNull:U.required??!1},X),B,"header",{isNonNull:U.required??!1},X))}}if(J.isObject){let H=q,U=H.properties;for(let[z,I]of Object.entries(U??{})){let R="$ref"in I;X.removeType(uD([F,z]));let $=cD(D,uD([F,z]),I,B,{isNonNull:H.required?.includes(z)??!1},X),K=nb(D,z,$,{isNonNull:H.required?.includes(z)??!1},X);J.fields.push(K)}let W,O=H.additionalProperties;if(O===!0||JSON.stringify(O)===JSON.stringify({}))W=M7(uD([F,"AdditionalProperties"]),"Additional properties","Record<string, any>",X),J.fields.push({name:uD([F,"Any"]),description:"Additional properties",type:W});else if(typeof O==="object")if("type"in O&&O.type==="string")W=M7(uD([F,"AdditionalProperties"]),"Additional properties","Record<string, string>",X),J.fields.push({name:uD([F,"AdditionalProperties"]),description:"Additional properties",type:W});else{let z="$ref"in O,I=cD(D,z?"":uD([F,"AdditionalProperties"]),O,B,{isNonNull:!1},X),R=I.name.replaceAll("!","").replaceAll("[","").replaceAll("]","");R={Int:"number",Float:"number",String:"string",Boolean:"boolean"}[R]??R;let $=R+(I.isList?Array.from({length:I.isList}).map((K)=>"[]").join(""):"");if(I.isScalar&&I.scalarTSType)W=I,J.fields.push({name:uD([F,R]),description:"Additional properties",type:W});else W=M7(uD([F,R]),"Additional properties",`Record<string, ${$}>`,X),J.fields.push({name:uD([F,R]),description:"Additional properties",type:W})}if(W&&J.fields.length===1)return X.removeType(Y),X.addType(W),W}if(J.isUnion){let H=0;for(let U of[...q.oneOf??[],...q.anyOf??[],...q.allOf??[]]){H++,X.removeType(Y);let W="$ref"in U;J.possibleTypes.push(cD(D,W?"":`${F}Subtype${H}`,U,B,{isNonNull:Z.isNonNull},X))}if(J.possibleTypes.length===1){let U=J.possibleTypes[0];J={...U,isList:J.isList,ofType:U,name:J.name}}}if(J.isScalar){let H=q;if(H.type==="array"){let U="$ref"in q.items;if(!U||q.items.$ref!==`#/components/${B}/${Y}`)X.removeType(Y);J.isList++;let W=cD(D,U?"":F,q.items,"schemas",{isNonNull:Z.isNonNull},X),O=J.isList+=W?.isList??0;J={...W,isList:O,name:`[${W.name}]`},J.ofType=J}else if(typeof H.type==="string"){X.removeType(Y),J.name=uD([H.type]);let U={double:"Float",float:"Float",integer:"Int",long:"Int",int32:"Int",int64:"Int",number:"Float",byte:"Int"};if(H.format&&H.format.toLowerCase()in U)J.name=U[H.format.toLowerCase()]}else if(Array.isArray(H))X.removeType(Y),J.name=uD(H);if(Z.isNonNull&&!J.name.endsWith("!"))X.removeType(Y),J.name=`${J.name}!`;J.name=E7(J)}return X.addType(J),J},M8=(D,F,P,B,Z,X,q)=>{return{name:F,description:P.description,location:Z,type:cD(D,F,P,B,X,q)}},nb=(D,F,P,B,Z)=>{return{name:F,description:P.description,type:cD(D,F,P,"schemas",B,Z)}},ib={get:"Get",post:"Create",put:"Update",delete:"Delete",patch:"Patch",options:"Options",head:"Head",trace:"Trace"},ob=(D,F,P,B,Z,X)=>{if(!B.responses){console.warn("Operation has no responses!");return}let q=Object.entries(B.responses).filter(([W,O])=>W.toString().startsWith("2")).sort(([W,O],[z,I])=>+W-+z),J=q.length>0?q[0][1]:B.responses.default,Y=Object.entries(B.responses).filter(([W,O])=>W.toString().startsWith("4")||W.toString().startsWith("5"));if(!J){console.warn("Operation has no success response!",B);return}let H=B.operationId?.replaceAll(".","_").replaceAll("/","_").replaceAll("-","_")??uD([ib[P],...F.split("/").flatMap((W)=>[W.includes("{")?"By":"",W.replace(/{([^}]+)}/g,"$1")].filter((O)=>O.length>0))],""),U={name:H,description:B.description,path:F,method:P,args:[],type:cD(D,H,"content"in J?J.content["application/json"]??Object.entries(J.content).find(([W,O])=>O)?.[1]:J,"responses",{isNonNull:!1,operationResponseType:!0},X)};for(let W of B.parameters??[]){let O="$ref"in W?W.$ref.split("/").pop():W.name,z="in"in W?W.in:W.$ref.split("/").at(-2),I={parameters:"query",requestBodies:"body",headers:"header",cookie:"cookie",path:"path",query:"query",header:"header"}[z];U.args.push(M8(D,O,W,"parameters",I,{isNonNull:"$ref"in W?!1:W.required??!1},X))}if(B.requestBody){let W=B.requestBody,O=M8(D,`${H}RequestBody`,W,"requestBodies","body",{isNonNull:W.required??!1},X);O.name="$",U.args.push(O)}return U};class iH{constructor(){}_types=new Map;get types(){return this._types}addType(D){this._types.set(D.name,D)}hasType(D){return this._types.has(D)}getType(D){return this._types.get(D)}removeType(D){this._types.delete(D)}_customScalars=new Map;get customScalars(){return this._customScalars}addCustomScalar(D){this._customScalars.set(D.name,D)}hasCustomScalar(D){return this._customScalars.has(D)}getCustomScalar(D){return this._customScalars.get(D)}removeCustomScalar(D){this._customScalars.delete(D)}_enumsTypes=new Map;get enumsTypes(){return this._enumsTypes}addEnumType(D,F){this._enumsTypes.set(D,F)}hasEnumType(D){if(!D)return!1;return this._enumsTypes.has(D)}hasEnumTypeName(D){for(let[F,P]of this._enumsTypes.entries())if(F.name===D)return!0;return!1}getEnumType(D){return this._enumsTypes.get(D)}getEnumTypeByName(D){for(let[F,P]of this._enumsTypes.entries())if(F.name===D)return P;return""}_argumentTypes=new Map;get argumentTypes(){return this._argumentTypes}addArgumentType(D,F){this._argumentTypes.set(D,F)}hasArgumentType(D){return this._argumentTypes.has(D)}getArgumentType(D){return this._argumentTypes.get(D)}_argumentMeta=new Map;get argumentMeta(){return this._argumentMeta}addArgumentMeta(D,F){this._argumentMeta.set(D,F)}hasArgumentMeta(D){return this._argumentMeta.has(D)}getArgumentMeta(D){return this._argumentMeta.get(D)}_selectionTypes=new Map;get selectionTypes(){return this._selectionTypes}addSelectionType(D,F){this._selectionTypes.set(D,F)}hasSelectionType(D){if(!D)return!1;return this._selectionTypes.has(D)}getSelectionType(D){return this._selectionTypes.get(D)}_selectionFunctions=new Map;get selectionFunctions(){return this._selectionFunctions}addSelectionFunction(D,F){this._selectionFunctions.set(D,F)}hasSelectionFunction(D){if(!D)return!1;return this._selectionFunctions.has(D)}getSelectionFunction(D){return this._selectionFunctions.get(D)}}class oH{Codegen;constructor(D){this.Codegen=D}async generate({schema:D,options:F,authConfig:P}){let B=new iH,Z=sb(D,F,B);for(let[J,Y]of B.types.entries()){if(!Y.isEnum)continue;new this.Codegen(J,B,F).makeEnumType()}for(let[J,Y]of B.types.entries()){if(!Y.isInput)continue;new this.Codegen(J,B,F).makeSelectionType()}for(let[J,Y]of B.types.entries()){if(Y.isScalar||Y.isInput||Y.isEnum)continue;new this.Codegen(J,B,F).makeSelectionType(),new this.Codegen(J,B,F).makeSelectionFunction()}let X=this.Codegen.makeRootOperationFunction(Z.operations,B,F,P);return[this.Codegen.FieldValueWrapperType,this.Codegen.HelperTypes(Array.from(B.customScalars.values())),this.Codegen.HelperFunctions,...[...B.enumsTypes.entries()].map(([J,Y])=>Y).filter((J,Y,H)=>H.indexOf(J)===Y),...[...B.argumentTypes.entries()].map(([J,Y])=>Y).filter((J,Y,H)=>H.indexOf(J)===Y),...[...B.argumentMeta.entries()].map(([J,Y])=>Y).filter((J,Y,H)=>H.indexOf(J)===Y),...[...B.selectionTypes.entries()].filter(([J])=>!J.isScalar&&!J.isEnum&&!(J.isScalar&&J.isUnion)).map(([J,Y])=>Y).filter((J,Y,H)=>H.indexOf(J)===Y),this.Codegen.EnumTypesMapped(B),this.Codegen.UnionTypesMapped(B),...[...B.selectionFunctions.entries()].filter(([J])=>!J.isScalar&&!J.isEnum&&!J.isInput&&!(J.isScalar&&J.isUnion)).map(([J,Y])=>Y).filter((J)=>!J.startsWith("new SelectionWrapper")).filter((J,Y,H)=>H.indexOf(J)===Y),X].join(`
4091
+ `)}}var k6={};rH(k6,{Generator:()=>oH});var uD=(D,F="$")=>{let P="";for(let B of D.filter(Boolean))P+=B.charAt(0).toUpperCase()+B.slice(1)+F;return P.slice(0,P.length-F.length).replaceAll("/","_").replaceAll("-","_").replaceAll(".","_")},sb=(D,F,P)=>{let B={types:[],operations:[],customScalars:[]};for(let[Z,X]of Object.entries(D?.components?.schemas??{}))B.types.push(cD(D,Z,X,"schemas",{isNonNull:!1},P));for(let[Z,X]of Object.entries(D?.paths??{})){if("$ref"in X)continue;for(let[q,J]of Object.entries(X)){if(!J)continue;if("$ref"in J){console.warn(`TODO: Handle $ref in methodValue for ${Z}`);continue}let Y=ob(D,Z,q,J,F,P);if(!Y)continue;B.operations.push(Y)}}return B},M7=(D,F,P,B)=>{let Z={name:D,description:F,isScalar:!0,scalarTSType:P,isEnum:!1,isObject:!1,isUnion:!1,isList:0,isNonNull:!1,fields:[],possibleTypes:[],inputFields:[],isInput:!1,enumValues:[]};return Z.ofType=Z,B.addType(Z),B.addCustomScalar(Z),Z},E7=(D,F)=>{let P=F?.isInput??D.isInput,B=F?.isNonNull??D.isNonNull;return`${D.name.slice(0,P&&B?-1:void 0)}${P?`${B?"Input!":"Input"}`:""}`.replaceAll("-","_")},K7=(D,F)=>{if(D.isInput||D.isScalar)return D;let P=E7(D,{isInput:!0}),B={...D,name:P,isInput:!0,isObject:!1,inputFields:D.fields.map((Z)=>({...Z,location:"$",type:K7(Z.type,F)})),fields:[],possibleTypes:D.possibleTypes.map((Z)=>K7(Z,F))};return B.ofType=B,F.addType(B),B},cD=(D,F,P,B,Z,X)=>{if("ofType"in P)return P;if("$ref"in P){let H=P.$ref.split("/");H.shift();let U=H.shift(),W=H.shift(),O=H.shift(),z=D[U]?.[W]?.[O];if(z)return cD(D,uD([Z.operationResponseType?"":F,O]),z,W,{isNonNull:Z.isNonNull},X);throw Error(`Reference ${P.$ref} not found`)}if("schema"in P)return cD(D,F,P.schema,"schemas",{isNonNull:Z.isNonNull,operationResponseType:Z.operationResponseType},X);let q=P;if("properties"in q&&!("type"in q))q.type="object";let J={name:Z.operationResponseType?F:Z.isNonNull?`${F}!`:F,description:q.description,isObject:"type"in q&&(q.type==="object"||JSON.stringify(q.type)===JSON.stringify(["object","null"])),fields:[],isUnion:!!q.oneOf||!!q.anyOf||!!q.allOf,possibleTypes:[],isList:0,isNonNull:Z.isNonNull,isScalar:!1,scalarTSType:void 0,isEnum:{schemas:!!q.enum,parameters:!1,responses:!1,requestBodies:!1,headers:!1}[B],enumValues:[],isInput:B==="parameters"||B==="headers"||B==="requestBodies",inputFields:[],ofType:void 0};J.isScalar=!J.isObject&&!J.isUnion&&!J.isEnum&&!J.isInput;let Y=E7(J);if(X.hasType(Y))return X.getType(Y);else J.name=Y,X.addType(J);if(J.ofType=J,J.isEnum){let H=q;for(let U of[...H.enum??[]])J.enumValues.push({name:String(U),description:q.description,type:cD(D,F,q,B,{isNonNull:Z.isNonNull},X)})}if(J.isInput){let H=q;if("content"in H){let U=H;for(let[W,O]of Object.entries(U.content??{})){X.removeType(Y);let z=K7(cD(D,F,O,B,{isNonNull:U.required??!1},X),X);if(z.fields.length===1&&!!z.fields[0].type.scalarTSType)return X.removeType(Y),J=z.fields[0].type,X.addType(J),J;else return X.removeType(Y),J=z,X.addType(J),J}}if("schema"in H&&"in"in H){let U=H;if(U.schema)J.inputFields.push(M8(D,U.name,U.schema,B,U.in,{isNonNull:U.required??!1},X));else J.inputFields.push(M8(D,U.name,cD(D,uD([F,"Input",U.name]),U.content["application/json"],B,{isNonNull:U.required??!1},X),B,U.in,{isNonNull:U.required??!1},X))}if("schema"in H&&!("in"in H)){let U=H;if(U.schema)J.inputFields.push(M8(D,uD([F,"Header"]),U.schema,B,"header",{isNonNull:U.required??!1},X));else J.inputFields.push(M8(D,uD([F,"Header"]),cD(D,uD([F,"Input","Header"]),U.content["application/json"],B,{isNonNull:U.required??!1},X),B,"header",{isNonNull:U.required??!1},X))}}if(J.isObject){let H=q,U=H.properties;for(let[z,I]of Object.entries(U??{})){let R="$ref"in I;X.removeType(uD([F,z]));let $=cD(D,uD([F,z]),I,B,{isNonNull:H.required?.includes(z)??!1},X),K=nb(D,z,$,{isNonNull:H.required?.includes(z)??!1},X);J.fields.push(K)}let W,O=H.additionalProperties;if(O===!0||JSON.stringify(O)===JSON.stringify({}))W=M7(uD([F,"AdditionalProperties"]),"Additional properties","Record<string, any>",X),J.fields.push({name:uD([F,"Any"]),description:"Additional properties",type:W});else if(typeof O==="object")if("type"in O&&O.type==="string")W=M7(uD([F,"AdditionalProperties"]),"Additional properties","Record<string, string>",X),J.fields.push({name:uD([F,"AdditionalProperties"]),description:"Additional properties",type:W});else{let z="$ref"in O,I=cD(D,z?"":uD([F,"AdditionalProperties"]),O,B,{isNonNull:!1},X),R=I.name.replaceAll("!","").replaceAll("[","").replaceAll("]","");R={Int:"number",Float:"number",String:"string",Boolean:"boolean"}[R]??R;let $=R+(I.isList?Array.from({length:I.isList}).map((K)=>"[]").join(""):"");if(I.isScalar&&I.scalarTSType)W=I,J.fields.push({name:uD([F,R]),description:"Additional properties",type:W});else W=M7(uD([F,R]),"Additional properties",`Record<string, ${$}>`,X),J.fields.push({name:uD([F,R]),description:"Additional properties",type:W})}if(W&&J.fields.length===1)return X.removeType(Y),X.addType(W),W}if(J.isUnion){let H=0;for(let U of[...q.oneOf??[],...q.anyOf??[],...q.allOf??[]]){H++,X.removeType(Y);let W="$ref"in U;J.possibleTypes.push(cD(D,W?"":`${F}Subtype${H}`,U,B,{isNonNull:Z.isNonNull},X))}if(J.possibleTypes.length===1){let U=J.possibleTypes[0];J={...U,isList:J.isList,ofType:U,name:J.name}}}if(J.isScalar){let H=q;if(H.type==="array"){let U="$ref"in q.items;if(!U||q.items.$ref!==`#/components/${B}/${Y}`)X.removeType(Y);J.isList++;let W=cD(D,U?"":F,q.items,"schemas",{isNonNull:Z.isNonNull},X),O=J.isList+=W?.isList??0;J={...W,isList:O,name:`[${W.name}]`},J.ofType=J}else if(typeof H.type==="string"){X.removeType(Y),J.name=uD([H.type]);let U={double:"Float",float:"Float",integer:"Int",long:"Int",int32:"Int",int64:"Int",number:"Float",byte:"Int"};if(H.format&&H.format.toLowerCase()in U)J.name=U[H.format.toLowerCase()]}else if(Array.isArray(H))X.removeType(Y),J.name=uD(H);if(Z.isNonNull&&!J.name.endsWith("!"))X.removeType(Y),J.name=`${J.name}!`;J.name=E7(J)}return X.addType(J),J},M8=(D,F,P,B,Z,X,q)=>{return{name:F,description:P.description,location:Z,type:cD(D,F,P,B,X,q)}},nb=(D,F,P,B,Z)=>{return{name:F,description:P.description,type:cD(D,F,P,"schemas",B,Z)}},ib={get:"Get",post:"Create",put:"Update",delete:"Delete",patch:"Patch",options:"Options",head:"Head",trace:"Trace"},ob=(D,F,P,B,Z,X)=>{if(!B.responses){console.warn("Operation has no responses!");return}let q=Object.entries(B.responses).filter(([W,O])=>W.toString().startsWith("2")).sort(([W,O],[z,I])=>+W-+z),J=q.length>0?q[0][1]:B.responses.default,Y=Object.entries(B.responses).filter(([W,O])=>W.toString().startsWith("4")||W.toString().startsWith("5"));if(!J){console.warn("Operation has no success response!",B);return}let H=B.operationId?.replaceAll(".","_").replaceAll("/","_").replaceAll("-","_")??uD([ib[P],...F.split("/").flatMap((W)=>[W.includes("{")?"By":"",W.replace(/{([^}]+)}/g,"$1")].filter((O)=>O.length>0))],""),U={name:H,description:B.description,path:F,method:P,args:[],type:cD(D,H,"content"in J?J.content["application/json"]??Object.entries(J.content).find(([W,O])=>O)?.[1]:J,"responses",{isNonNull:!1,operationResponseType:!0},X)};for(let W of B.parameters??[]){let O="$ref"in W?W.$ref.split("/").pop():W.name,z="in"in W?W.in:W.$ref.split("/").at(-2),I={parameters:"query",requestBodies:"body",headers:"header",cookie:"cookie",path:"path",query:"query",header:"header"}[z];U.args.push(M8(D,O,W,"parameters",I,{isNonNull:"$ref"in W?!1:W.required??!1},X))}if(B.requestBody){let W=B.requestBody,O=M8(D,`${H}RequestBody`,W,"requestBodies","body",{isNonNull:W.required??!1},X);O.name="$",U.args.push(O)}return U};class iH{constructor(){}_types=new Map;get types(){return this._types}addType(D){this._types.set(D.name,D)}hasType(D){return this._types.has(D)}getType(D){return this._types.get(D)}removeType(D){this._types.delete(D)}_customScalars=new Map;get customScalars(){return this._customScalars}addCustomScalar(D){this._customScalars.set(D.name,D)}hasCustomScalar(D){return this._customScalars.has(D)}getCustomScalar(D){return this._customScalars.get(D)}removeCustomScalar(D){this._customScalars.delete(D)}_enumsTypes=new Map;get enumsTypes(){return this._enumsTypes}addEnumType(D,F){this._enumsTypes.set(D,F)}hasEnumType(D){if(!D)return!1;return this._enumsTypes.has(D)}hasEnumTypeName(D){for(let[F,P]of this._enumsTypes.entries())if(F.name===D)return!0;return!1}getEnumType(D){return this._enumsTypes.get(D)}getEnumTypeByName(D){for(let[F,P]of this._enumsTypes.entries())if(F.name===D)return P;return""}_argumentTypes=new Map;get argumentTypes(){return this._argumentTypes}addArgumentType(D,F){this._argumentTypes.set(D,F)}hasArgumentType(D){return this._argumentTypes.has(D)}getArgumentType(D){return this._argumentTypes.get(D)}_argumentMeta=new Map;get argumentMeta(){return this._argumentMeta}addArgumentMeta(D,F){this._argumentMeta.set(D,F)}hasArgumentMeta(D){return this._argumentMeta.has(D)}getArgumentMeta(D){return this._argumentMeta.get(D)}_selectionTypes=new Map;get selectionTypes(){return this._selectionTypes}addSelectionType(D,F){this._selectionTypes.set(D,F)}hasSelectionType(D){if(!D)return!1;return this._selectionTypes.has(D)}getSelectionType(D){return this._selectionTypes.get(D)}_selectionFunctions=new Map;get selectionFunctions(){return this._selectionFunctions}addSelectionFunction(D,F){this._selectionFunctions.set(D,F)}hasSelectionFunction(D){if(!D)return!1;return this._selectionFunctions.has(D)}getSelectionFunction(D){return this._selectionFunctions.get(D)}}class oH{Codegen;constructor(D){this.Codegen=D}async generate({schema:D,options:F,authConfig:P}){let B=new iH,Z=sb(D,F,B);for(let[J,Y]of B.types.entries()){if(!Y.isEnum)continue;new this.Codegen(J,B,F).makeEnumType()}for(let[J,Y]of B.types.entries()){if(!Y.isInput)continue;new this.Codegen(J,B,F).makeSelectionType()}for(let[J,Y]of B.types.entries()){if(Y.isScalar||Y.isInput||Y.isEnum)continue;new this.Codegen(J,B,F).makeSelectionType(),new this.Codegen(J,B,F).makeSelectionFunction()}let X=this.Codegen.makeRootOperationFunction(Z.operations,B,F,P);return[this.Codegen.FieldValueWrapperType,this.Codegen.HelperTypes(Array.from(B.customScalars.values())),this.Codegen.HelperFunctions,...[...B.enumsTypes.entries()].map(([J,Y])=>Y).filter((J,Y,H)=>H.indexOf(J)===Y),...[...B.argumentTypes.entries()].map(([J,Y])=>Y).filter((J,Y,H)=>H.indexOf(J)===Y),...[...B.argumentMeta.entries()].map(([J,Y])=>Y).filter((J,Y,H)=>H.indexOf(J)===Y),...[...B.selectionTypes.entries()].filter(([J])=>!J.isScalar&&!J.isEnum&&!(J.isScalar&&J.isUnion)).map(([J,Y])=>Y).filter((J,Y,H)=>H.indexOf(J)===Y),this.Codegen.EnumTypesMapped(B),this.Codegen.UnionTypesMapped(B),...[...B.selectionFunctions.entries()].filter(([J])=>!J.isScalar&&!J.isEnum&&!J.isInput&&!(J.isScalar&&J.isUnion)).map(([J,Y])=>Y).filter((J)=>!J.startsWith("new SelectionWrapper")).filter((J,Y,H)=>H.indexOf(J)===Y),X].join(`
4435
4092
  `)}}var Z0={GraphQL:{default:g0},OpenAPI:{default:B0}};import AW from"fs";import l6 from"fs";import e7 from"path";var E8=(D)=>{process.stdout.write("\x1Bc"),process.stdout.write(`
4436
4093
  _____ _
4437
4094
  / ___| (_)
@@ -4444,7 +4101,7 @@ export class SelectionWrapper<
4444
4101
  `).map((B)=>B.trimEnd())).join(`
4445
4102
  `)}function T3(){return fU.default({defaultWidth:80,output:j7().output})}function TS(D,F){return v6(D,F).split(`
4446
4103
  `)}function uS(D,F){let P=F.length,B=(D%P+P)%P;return[...F.slice(B),...F.slice(0,B)]}function gU({items:D,width:F,renderItem:P,active:B,position:Z,pageSize:X}){let q=D.map((I,R)=>({item:I,index:R,isActive:R===B})),J=uS(B-Z,q).slice(0,X),Y=(I)=>J[I]==null?[]:TS(P(J[I]),F),H=Array.from({length:X}),U=Y(Z).slice(0,X),W=Z+U.length<=X?Z:X-U.length;H.splice(W,U.length,...U);let O=W+U.length,z=Z+1;while(O<X&&z<J.length){for(let I of Y(z))if(H[O++]=I,O>=X)break;z++}O=W-1,z=Z-1;while(O>=0&&z>=0){for(let I of Y(z).reverse())if(H[O--]=I,O<0)break;z--}return H.filter((I)=>typeof I==="string")}function vU({active:D,pageSize:F,total:P}){let B=Math.floor(F/2);if(P<=F||D<B)return D;if(D>=P-B)return D+F-P;return B}function yU({active:D,lastActive:F,total:P,pageSize:B,pointer:Z}){if(P<=B)return D;if(F<D&&D-F<B)return Math.min(Math.floor(B/2),Z+D-F);return Z}function h7({items:D,active:F,renderItem:P,pageSize:B,loop:Z=!0}){let X=X0({position:0,lastActive:0}),q=Z?yU({active:F,lastActive:X.current.lastActive,total:D.length,pageSize:B,pointer:X.current.position}):vU({active:F,total:D.length,pageSize:B});return X.current.position=q,X.current.lastActive=F,gU({items:D,width:T3(),renderItem:P,active:F,position:q,pageSize:B}).join(`
4447
- `)}var eU=RD(cU(),1);import*as tU from"node:readline";import{AsyncResource as gS}from"node:async_hooks";var d0=[];d0.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32")d0.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")d0.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var u3=(D)=>!!D&&typeof D==="object"&&typeof D.removeListener==="function"&&typeof D.emit==="function"&&typeof D.reallyExit==="function"&&typeof D.listeners==="function"&&typeof D.kill==="function"&&typeof D.pid==="number"&&typeof D.on==="function",g7=Symbol.for("signal-exit emitter"),v7=globalThis,_S=Object.defineProperty.bind(Object);class dU{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(v7[g7])return v7[g7];_S(v7,g7,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(D,F){this.listeners[D].push(F)}removeListener(D,F){let P=this.listeners[D],B=P.indexOf(F);if(B===-1)return;if(B===0&&P.length===1)P.length=0;else P.splice(B,1)}emit(D,F,P){if(this.emitted[D])return!1;this.emitted[D]=!0;let B=!1;for(let Z of this.listeners[D])B=Z(F,P)===!0||B;if(D==="exit")B=this.emit("afterExit",F,P)||B;return B}}class m7{}var kS=(D)=>{return{onExit(F,P){return D.onExit(F,P)},load(){return D.load()},unload(){return D.unload()}}};class pU extends m7{onExit(){return()=>{}}load(){}unload(){}}class rU extends m7{#P=y7.platform==="win32"?"SIGINT":"SIGHUP";#F=new dU;#D;#X;#q;#Z={};#B=!1;constructor(D){super();this.#D=D,this.#Z={};for(let F of d0)this.#Z[F]=()=>{let P=this.#D.listeners(F),{count:B}=this.#F,Z=D;if(typeof Z.__signal_exit_emitter__==="object"&&typeof Z.__signal_exit_emitter__.count==="number")B+=Z.__signal_exit_emitter__.count;if(P.length===B){this.unload();let X=this.#F.emit("exit",null,F),q=F==="SIGHUP"?this.#P:F;if(!X)D.kill(D.pid,q)}};this.#q=D.reallyExit,this.#X=D.emit}onExit(D,F){if(!u3(this.#D))return()=>{};if(this.#B===!1)this.load();let P=F?.alwaysLast?"afterExit":"exit";return this.#F.on(P,D),()=>{if(this.#F.removeListener(P,D),this.#F.listeners.exit.length===0&&this.#F.listeners.afterExit.length===0)this.unload()}}load(){if(this.#B)return;this.#B=!0,this.#F.count+=1;for(let D of d0)try{let F=this.#Z[D];if(F)this.#D.on(D,F)}catch(F){}this.#D.emit=(D,...F)=>{return this.#Y(D,...F)},this.#D.reallyExit=(D)=>{return this.#J(D)}}unload(){if(!this.#B)return;this.#B=!1,d0.forEach((D)=>{let F=this.#Z[D];if(!F)throw new Error("Listener not defined for signal: "+D);try{this.#D.removeListener(D,F)}catch(P){}}),this.#D.emit=this.#X,this.#D.reallyExit=this.#q,this.#F.count-=1}#J(D){if(!u3(this.#D))return 0;return this.#D.exitCode=D||0,this.#F.emit("exit",this.#D.exitCode,null),this.#q.call(this.#D,this.#D.exitCode)}#Y(D,...F){let P=this.#X;if(D==="exit"&&u3(this.#D)){if(typeof F[0]==="number")this.#D.exitCode=F[0];let B=P.call(this.#D,D,...F);return this.#F.emit("exit",this.#D.exitCode,null),B}else return P.call(this.#D,D,...F)}}var y7=globalThis.process,{onExit:aU,load:dc,unload:pc}=kS(u3(y7)?new rU(y7):new pU);var oU=RD(j3(),1),q0=RD(c7(),1);var nU=(D)=>D.split(`
4104
+ `)}var eU=RD(cU(),1);import*as tU from"node:readline";import{AsyncResource as gS}from"node:async_hooks";var d0=[];d0.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32")d0.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")d0.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var u3=(D)=>!!D&&typeof D==="object"&&typeof D.removeListener==="function"&&typeof D.emit==="function"&&typeof D.reallyExit==="function"&&typeof D.listeners==="function"&&typeof D.kill==="function"&&typeof D.pid==="number"&&typeof D.on==="function",g7=Symbol.for("signal-exit emitter"),v7=globalThis,_S=Object.defineProperty.bind(Object);class dU{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(v7[g7])return v7[g7];_S(v7,g7,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(D,F){this.listeners[D].push(F)}removeListener(D,F){let P=this.listeners[D],B=P.indexOf(F);if(B===-1)return;if(B===0&&P.length===1)P.length=0;else P.splice(B,1)}emit(D,F,P){if(this.emitted[D])return!1;this.emitted[D]=!0;let B=!1;for(let Z of this.listeners[D])B=Z(F,P)===!0||B;if(D==="exit")B=this.emit("afterExit",F,P)||B;return B}}class m7{}var kS=(D)=>{return{onExit(F,P){return D.onExit(F,P)},load(){return D.load()},unload(){return D.unload()}}};class pU extends m7{onExit(){return()=>{}}load(){}unload(){}}class rU extends m7{#P=y7.platform==="win32"?"SIGINT":"SIGHUP";#F=new dU;#D;#X;#q;#Z={};#B=!1;constructor(D){super();this.#D=D,this.#Z={};for(let F of d0)this.#Z[F]=()=>{let P=this.#D.listeners(F),{count:B}=this.#F,Z=D;if(typeof Z.__signal_exit_emitter__==="object"&&typeof Z.__signal_exit_emitter__.count==="number")B+=Z.__signal_exit_emitter__.count;if(P.length===B){this.unload();let X=this.#F.emit("exit",null,F),q=F==="SIGHUP"?this.#P:F;if(!X)D.kill(D.pid,q)}};this.#q=D.reallyExit,this.#X=D.emit}onExit(D,F){if(!u3(this.#D))return()=>{};if(this.#B===!1)this.load();let P=F?.alwaysLast?"afterExit":"exit";return this.#F.on(P,D),()=>{if(this.#F.removeListener(P,D),this.#F.listeners.exit.length===0&&this.#F.listeners.afterExit.length===0)this.unload()}}load(){if(this.#B)return;this.#B=!0,this.#F.count+=1;for(let D of d0)try{let F=this.#Z[D];if(F)this.#D.on(D,F)}catch(F){}this.#D.emit=(D,...F)=>{return this.#Y(D,...F)},this.#D.reallyExit=(D)=>{return this.#J(D)}}unload(){if(!this.#B)return;this.#B=!1,d0.forEach((D)=>{let F=this.#Z[D];if(!F)throw Error("Listener not defined for signal: "+D);try{this.#D.removeListener(D,F)}catch(P){}}),this.#D.emit=this.#X,this.#D.reallyExit=this.#q,this.#F.count-=1}#J(D){if(!u3(this.#D))return 0;return this.#D.exitCode=D||0,this.#F.emit("exit",this.#D.exitCode,null),this.#q.call(this.#D,this.#D.exitCode)}#Y(D,...F){let P=this.#X;if(D==="exit"&&u3(this.#D)){if(typeof F[0]==="number")this.#D.exitCode=F[0];let B=P.call(this.#D,D,...F);return this.#F.emit("exit",this.#D.exitCode,null),B}else return P.call(this.#D,D,...F)}}var y7=globalThis.process,{onExit:aU,load:dc,unload:pc}=kS(u3(y7)?new rU(y7):new pU);var oU=RD(j3(),1),q0=RD(c7(),1);var nU=(D)=>D.split(`
4448
4105
  `).length,hS=(D)=>D.split(`
4449
4106
  `).pop()??"";function iU(D){return D>0?q0.default.cursorDown(D):""}class _3{rl;height=0;extraLinesUnderPrompt=0;cursorPos;constructor(D){this.rl=D,this.rl=D,this.cursorPos=D.getCursorPos()}write(D){this.rl.output.unmute(),this.rl.output.write(D),this.rl.output.mute()}render(D,F=""){let P=hS(D),B=oU.default(P),Z=B;if(this.rl.line.length>0)Z=Z.slice(0,-this.rl.line.length);this.rl.setPrompt(Z),this.cursorPos=this.rl.getCursorPos();let X=T3();if(D=v6(D,X),F=v6(F,X),B.length%X===0)D+=`
4450
4107
  `;let q=D+(F?`
@@ -4452,7 +4109,7 @@ export class SelectionWrapper<
4452
4109
  `,F+=q0.default.cursorShow,this.write(F),this.rl.close()}}class d7 extends Promise{static withResolver(){let D,F;return{promise:new Promise((B,Z)=>{D=B,F=Z}),resolve:D,reject:F}}}function p0(D){return(P,B={})=>{let{input:Z=process.stdin,signal:X}=B,q=new Set,J=new eU.default;J.pipe(B.output??process.stdout);let Y=tU.createInterface({terminal:!0,input:Z,output:J}),H=new _3(Y),{promise:U,resolve:W,reject:O}=d7.withResolver(),z=()=>O(new L7);if(X){let R=()=>O(new C7({cause:X.reason}));if(X.aborted)return R(),Object.assign(U,{cancel:z});X.addEventListener("abort",R),q.add(()=>X.removeEventListener("abort",R))}q.add(aU((R,$)=>{O(new V7(`User force closed the prompt with ${R} ${$}`))}));let I=()=>H.checkCursorPos();return Y.input.on("keypress",I),q.add(()=>Y.input.removeListener("keypress",I)),DU(Y,(R)=>{let $=gS.bind(()=>y0.clearAll());return Y.on("close",$),q.add(()=>Y.removeListener("close",$)),R(()=>{try{let K=D(P,(S)=>{setImmediate(()=>W(S))}),[j,A]=typeof K==="string"?[K]:K;H.render(j,A),y0.run()}catch(K){O(K)}}),Object.assign(U.then((K)=>{return y0.clearAll(),K},(K)=>{throw y0.clearAll(),K}).finally(()=>{q.forEach((K)=>K()),H.done({clearContent:Boolean(B?.clearPromptOnDone)}),J.end()}).then(()=>U),{cancel:z})})}}var DW=RD(w3(),1);class r0{separator=DW.default.dim(Array.from({length:15}).join(C8.line));type="separator";constructor(D){if(D)this.separator=D}static isSeparator(D){return Boolean(D&&typeof D==="object"&&"type"in D&&D.type==="separator")}}var k3=p0((D,F)=>{let{transformer:P=(O)=>O?"yes":"no"}=D,[B,Z]=_D("pending"),[X,q]=_D(""),J=c2(D.theme),Y=l0({theme:J});c0((O,z)=>{if(K8(O)){let I=D.default!==!1;if(/^(y|yes)/i.test(X))I=!0;else if(/^(n|no)/i.test(X))I=!1;q(P(I)),Z("done"),F(I)}else q(z.line)});let H=X,U="";if(B==="done")H=J.style.answer(X);else U=` ${J.style.defaultAnswer(D.default===!1?"y/N":"Y/n")}`;let W=J.style.message(D.message);return`${Y} ${W}${U} ${H}`});var d2=p0((D,F)=>{let{required:P,validate:B=()=>!0}=D,Z=c2(D.theme),[X,q]=_D("pending"),[J="",Y]=_D(D.default),[H,U]=_D(),[W,O]=_D(""),I=l0({isLoading:X==="loading",theme:Z});c0(async(A,S)=>{if(X!=="pending")return;if(K8(A)){let C=W||J;q("loading");let u=P&&!C?"You must provide a value":await B(C);if(u===!0)O(C),q("done"),F(C);else S.write(W),U(u||"You must provide a valid value"),q("pending")}else if(V3(A)&&!W)Y(void 0);else if(A.name==="tab"&&!W)Y(void 0),S.clearLine(0),S.write(J),O(J);else O(S.line),U(void 0)});let R=Z.style.message(D.message),$=W;if(typeof D.transformer==="function")$=D.transformer(W,{isFinal:X==="done"});else if(X==="done")$=Z.style.answer(W);let K;if(J&&X!=="done"&&!W)K=Z.style.defaultAnswer(J);let j="";if(H)j=Z.style.error(H);return[[I,R,K,$].filter((A)=>A!==void 0).join(" "),j]});var p7=RD(w3(),1);var FW=RD(c7(),1);var vS={icon:{cursor:C8.pointer},style:{disabled:(D)=>p7.default.dim(`- ${D}`),description:(D)=>p7.default.cyan(D)},helpMode:"auto"};function b8(D){return!r0.isSeparator(D)&&!D.disabled}function yS(D){return D.map((F)=>{if(r0.isSeparator(F))return F;if(typeof F==="string")return{value:F,name:F,short:F,disabled:!1};let P=F.name??String(F.value);return{value:F.value,name:P,description:F.description,short:F.short??P,disabled:F.disabled??!1}})}var J0=p0((D,F)=>{let{loop:P=!0,pageSize:B=7}=D,Z=X0(!0),X=c2(vS,D.theme),q=l0({theme:X}),[J,Y]=_D("pending"),H=X0(),U=f6(()=>yS(D.choices),[D.choices]),W=f6(()=>{let C=U.findIndex(b8),u=U.findLastIndex(b8);if(C<0)throw new x6("[select prompt] No selectable choices. All choices are disabled.");return{first:C,last:u}},[U]),O=f6(()=>{if(!("default"in D))return-1;return U.findIndex((C)=>b8(C)&&C.value===D.default)},[D.default,U]),[z,I]=_D(O===-1?W.first:O),R=U[z];c0((C,u)=>{if(clearTimeout(H.current),K8(C))Y("done"),F(R.value);else if(L3(C)||A7(C)){if(u.clearLine(0),P||L3(C)&&z!==W.first||A7(C)&&z!==W.last){let m=L3(C)?-1:1,w=z;do w=(w+m+U.length)%U.length;while(!b8(U[w]));I(w)}}else if(tH(C)){u.clearLine(0);let m=Number(C.name)-1,w=U[m];if(w!=null&&b8(w))I(m)}else if(V3(C))u.clearLine(0);else{let m=u.line.toLowerCase(),w=U.findIndex((M)=>{if(r0.isSeparator(M)||!b8(M))return!1;return M.name.toLowerCase().startsWith(m)});if(w>=0)I(w);H.current=setTimeout(()=>{u.clearLine(0)},700)}}),m0(()=>()=>{clearTimeout(H.current)},[]);let $=X.style.message(D.message),K="",j="";if(X.helpMode==="always"||X.helpMode==="auto"&&Z.current)if(Z.current=!1,U.length>B)j=`
4453
4110
  ${X.style.help("(Use arrow keys to reveal more choices)")}`;else K=X.style.help("(Use arrow keys)");let A=h7({items:U,active:z,renderItem({item:C,isActive:u}){if(r0.isSeparator(C))return` ${C.separator}`;if(C.disabled){let M=typeof C.disabled==="string"?C.disabled:"(disabled)";return X.style.disabled(`${C.name} ${M}`)}let m=u?X.style.highlight:(M)=>M,w=u?X.icon.cursor:" ";return m(`${w} ${C.name}`)},pageSize:B,loop:P});if(J==="done")return`${q} ${$} ${X.style.answer(R.short)}`;let S=R.description?`
4454
4111
  ${X.style.description(R.description)}`:"";return`${[q,$,K].filter(Boolean).join(" ")}
4455
- ${A}${j}${S}${FW.default.cursorHide}`});var a0=RD(v3(),1);var FT=/^(?:( )+|\t+)/;function KW(D,F){let P=new Map,B=0,Z,X;for(let q of D.split(/\n/g)){if(!q)continue;let J,Y,H,U,W,O=q.match(FT);if(O===null)B=0,Z="";else{if(J=O[0].length,Y=O[1]?"space":"tab",F&&Y==="space"&&J===1)continue;if(Y!==Z)B=0;Z=Y,H=1,U=0;let z=J-B;if(B=J,z===0)H=0,U=1;else{let I=z>0?z:-z;X=PT(Y,I)}W=P.get(X),W=W===void 0?[1,0]:[W[0]+H,W[1]+U],P.set(X,W)}}return P}function PT(D,F){return(D==="space"?"s":"t")+String(F)}function BT(D){let P=D[0]==="s"?"space":"tab",B=Number(D.slice(1));return{type:P,amount:B}}function ZT(D){let F,P=0,B=0;for(let[Z,[X,q]]of D)if(X>P||X===P&&q>B)P=X,B=q,F=Z;return F}function XT(D,F){return(D==="space"?" ":"\t").repeat(F)}function t7(D){if(typeof D!=="string")throw new TypeError("Expected a string");let F=KW(D,!0);if(F.size===0)F=KW(D,!1);let P=ZT(F),B,Z=0,X="";if(P!==void 0)({type:B,amount:Z}=BT(P)),X=XT(B,Z);return{amount:Z,type:B,indent:X}}var X2=async(D,F,P,B=!1)=>{let Z=/<([^>]+)>|\[([^\]]+)\]/g,X,q=[];while(X=Z.exec(F))q.push(X[1]??X[2]);if(q.length>0){if(!B)E8(D),B=!1;let J=F.replace(Z,(Y)=>`\x1B[32m${Y}\x1B[0m`);if(await k3({message:`${P} contains placeholders: ${J} . Do you want to replace them with actual values?`})){let Y=[];for(let H of q){let U=await d2({message:`Enter value for placeholder ${H}:`});Y.push(U)}F=F.replace(Z,()=>Y.shift()??""),console.log(`${P} has been updated to: ${F}`),console.log(" ")}else console.log(`${P} has not been updated. Using the original value: ${F}`),console.log(" ");return F}return F},y3=async(D)=>{let F="";while(!F){F=await d2({message:D});try{new URL(F)}catch(P){console.log("Invalid URL"),F=""}}return F},m3=async()=>{let D=await J0({message:"The endpoint seems to need authorization, choose the header name, or enter a custom name:",default:"Authorization",choices:[{name:"Authorization",value:"Authorization"},{name:"X-Authorization",value:"X-Authorization"},{name:"X-Api-Key",value:"X-Api-Key"},{name:"custom",value:"custom"}]});if(D==="custom")while(!D||D==="custom")D=await d2({message:"Enter the header name:"});let F="";while(!F)F=await d2({message:"Enter the header value:"});return[D,F]},l3=async(D=["."])=>{while(!0){let F=l6.readdirSync(D.join("/"),{withFileTypes:!0}),P=await J0({message:`Navigate to the output directory: ${D.join("/")}`,default:".",choices:[{name:"[create new directory]",value:"[new_dir]",description:"Current directory"},{name:".",value:".",description:"Current directory"},{name:"..",value:"..",description:"Parent directory"},...F.filter((B)=>B.isDirectory()).map((B)=>({name:B.name,value:B.name}))]});if(D.push(P),P==="[new_dir]"){D.pop();let B=await d2({message:"Enter the new directory name:"});l6.mkdirSync(e7.resolve(...D,B)),D.push(B);break}if(P===".")break;if(P===".."){D.pop(),D.pop();continue}}return D},c3=async(D)=>{let F=await d2({message:D,default:"sdk.ts"});if(!F.endsWith(".ts"))F+=".ts";return F},dD={import:a0.default.rgb(185,126,180),name:a0.default.rgb(156,220,254),from:a0.default.rgb(185,126,180),string:a0.default.rgb(206,145,120)},d3=async(D,F)=>{let P=!1;if(l6.existsSync("tsconfig.json")&&await k3({message:`
4112
+ ${A}${j}${S}${FW.default.cursorHide}`});var a0=RD(v3(),1);var FT=/^(?:( )+|\t+)/;function KW(D,F){let P=new Map,B=0,Z,X;for(let q of D.split(/\n/g)){if(!q)continue;let J,Y,H,U,W,O=q.match(FT);if(O===null)B=0,Z="";else{if(J=O[0].length,Y=O[1]?"space":"tab",F&&Y==="space"&&J===1)continue;if(Y!==Z)B=0;Z=Y,H=1,U=0;let z=J-B;if(B=J,z===0)H=0,U=1;else{let I=z>0?z:-z;X=PT(Y,I)}W=P.get(X),W=W===void 0?[1,0]:[W[0]+H,W[1]+U],P.set(X,W)}}return P}function PT(D,F){return(D==="space"?"s":"t")+String(F)}function BT(D){let P=D[0]==="s"?"space":"tab",B=Number(D.slice(1));return{type:P,amount:B}}function ZT(D){let F,P=0,B=0;for(let[Z,[X,q]]of D)if(X>P||X===P&&q>B)P=X,B=q,F=Z;return F}function XT(D,F){return(D==="space"?" ":"\t").repeat(F)}function t7(D){if(typeof D!=="string")throw TypeError("Expected a string");let F=KW(D,!0);if(F.size===0)F=KW(D,!1);let P=ZT(F),B,Z=0,X="";if(P!==void 0)({type:B,amount:Z}=BT(P)),X=XT(B,Z);return{amount:Z,type:B,indent:X}}var X2=async(D,F,P,B=!1)=>{let Z=/<([^>]+)>|\[([^\]]+)\]/g,X,q=[];while(X=Z.exec(F))q.push(X[1]??X[2]);if(q.length>0){if(!B)E8(D),B=!1;let J=F.replace(Z,(Y)=>`\x1B[32m${Y}\x1B[0m`);if(await k3({message:`${P} contains placeholders: ${J} . Do you want to replace them with actual values?`})){let Y=[];for(let H of q){let U=await d2({message:`Enter value for placeholder ${H}:`});Y.push(U)}F=F.replace(Z,()=>Y.shift()??""),console.log(`${P} has been updated to: ${F}`),console.log(" ")}else console.log(`${P} has not been updated. Using the original value: ${F}`),console.log(" ");return F}return F},y3=async(D)=>{let F="";while(!F){F=await d2({message:D});try{new URL(F)}catch(P){console.log("Invalid URL"),F=""}}return F},m3=async()=>{let D=await J0({message:"The endpoint seems to need authorization, choose the header name, or enter a custom name:",default:"Authorization",choices:[{name:"Authorization",value:"Authorization"},{name:"X-Authorization",value:"X-Authorization"},{name:"X-Api-Key",value:"X-Api-Key"},{name:"custom",value:"custom"}]});if(D==="custom")while(!D||D==="custom")D=await d2({message:"Enter the header name:"});let F="";while(!F)F=await d2({message:"Enter the header value:"});return[D,F]},l3=async(D=["."])=>{while(!0){let F=l6.readdirSync(D.join("/"),{withFileTypes:!0}),P=await J0({message:`Navigate to the output directory: ${D.join("/")}`,default:".",choices:[{name:"[create new directory]",value:"[new_dir]",description:"Current directory"},{name:".",value:".",description:"Current directory"},{name:"..",value:"..",description:"Parent directory"},...F.filter((B)=>B.isDirectory()).map((B)=>({name:B.name,value:B.name}))]});if(D.push(P),P==="[new_dir]"){D.pop();let B=await d2({message:"Enter the new directory name:"});l6.mkdirSync(e7.resolve(...D,B)),D.push(B);break}if(P===".")break;if(P===".."){D.pop(),D.pop();continue}}return D},c3=async(D)=>{let F=await d2({message:D,default:"sdk.ts"});if(!F.endsWith(".ts"))F+=".ts";return F},dD={import:a0.default.rgb(185,126,180),name:a0.default.rgb(156,220,254),from:a0.default.rgb(185,126,180),string:a0.default.rgb(206,145,120)},d3=async(D,F)=>{let P=!1;if(l6.existsSync("tsconfig.json")&&await k3({message:`
4456
4113
  File 'tsconfig.json' detected. Do you want to add an import alias for the generated file?`,default:!1})){console.log(" ");let B=await d2({message:"Enter the alias name:",default:D.replace(".ts","")}),Z=l6.readFileSync("tsconfig.json","utf-8");Z=Z.replace(/\/\/.*/g,"");let X=t7(Z).indent||" ",q=JSON.parse(Z),J=q.compilerOptions?.baseUrl||".",Y=e7.relative(e7.resolve(process.cwd(),J),F);if(!q.compilerOptions)q.compilerOptions={};if(!q.compilerOptions.paths)q.compilerOptions.paths={};q.compilerOptions.paths[B]=[Y],l6.writeFileSync("tsconfig.json",JSON.stringify(q,null,X)),console.log(`
4457
4114
  ${a0.default.green("Done! Alias added to 'tsconfig.json'.")}
4458
4115
  ${a0.default.green("Go ahead and import the generated file in your project:")}