@samarium.sdk/new 0.14.0-beta.1 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/samarium +47 -47
- package/package.json +3 -6
package/bin/samarium
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{createRequire as _B}from"node:module";var KB=Object.create;var{getPrototypeOf:jB,defineProperty:D1,getOwnPropertyNames:$B}=Object;var VB=Object.prototype.hasOwnProperty;var XD=(D,P,O)=>{O=D!=null?KB(jB(D)):{};let W=P||!D||!D.__esModule?D1(O,"default",{value:D,enumerable:!0}):O;for(let E of $B(D))if(!VB.call(W,E))D1(W,E,{get:()=>D[E],enumerable:!0});return W};var J=(D,P)=>()=>(P||D((P={exports:{}}).exports,P),P.exports);var v6=(D,P)=>{for(var O in P)D1(D,O,{get:P[O],enumerable:!0,configurable:!0,set:(W)=>P[O]=()=>W})};var E0=_B(import.meta.url);var Y8=J((NB)=>{class P1 extends Error{constructor(D,P,O){super(O);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=P,this.exitCode=D,this.nestedError=void 0}}class g6 extends P1{constructor(D){super(1,"commander.invalidArgument",D);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}NB.CommanderError=P1;NB.InvalidArgumentError=g6});var AP=J((vB)=>{var{InvalidArgumentError:fB}=Y8();class y6{constructor(D,P){switch(this.description=P||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,D[0]){case"<":this.required=!0,this._name=D.slice(1,-1);break;case"[":this.required=!1,this._name=D.slice(1,-1);break;default:this.required=!0,this._name=D;break}if(this._name.length>3&&this._name.slice(-3)==="...")this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_concatValue(D,P){if(P===this.defaultValue||!Array.isArray(P))return[D];return P.concat(D)}default(D,P){return this.defaultValue=D,this.defaultValueDescription=P,this}argParser(D){return this.parseArg=D,this}choices(D){return this.argChoices=D.slice(),this.parseArg=(P,O)=>{if(!this.argChoices.includes(P))throw new fB(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(P,O);return P},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function hB(D){let P=D.name()+(D.variadic===!0?"...":"");return D.required?"<"+P+">":"["+P+"]"}vB.Argument=y6;vB.humanReadableArgName=hB});var O1=J((cB)=>{var{humanReadableArgName:mB}=AP();class m6{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(D){let P=D.commands.filter((O)=>!O._hidden);if(D._hasImplicitHelpCommand()){let[,O,W]=D._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),E=D.createCommand(O).helpOption(!1);if(E.description(D._helpCommandDescription),W)E.arguments(W);P.push(E)}if(this.sortSubcommands)P.sort((O,W)=>{return O.name().localeCompare(W.name())});return P}compareOptions(D,P){let O=(W)=>{return W.short?W.short.replace(/^-/,""):W.long.replace(/^--/,"")};return O(D).localeCompare(O(P))}visibleOptions(D){let P=D.options.filter((E)=>!E.hidden),O=D._hasHelpOption&&D._helpShortFlag&&!D._findOption(D._helpShortFlag),W=D._hasHelpOption&&!D._findOption(D._helpLongFlag);if(O||W){let E;if(!O)E=D.createOption(D._helpLongFlag,D._helpDescription);else if(!W)E=D.createOption(D._helpShortFlag,D._helpDescription);else E=D.createOption(D._helpFlags,D._helpDescription);P.push(E)}if(this.sortOptions)P.sort(this.compareOptions);return P}visibleGlobalOptions(D){if(!this.showGlobalOptions)return[];let P=[];for(let O=D.parent;O;O=O.parent){let W=O.options.filter((E)=>!E.hidden);P.push(...W)}if(this.sortOptions)P.sort(this.compareOptions);return P}visibleArguments(D){if(D._argsDescription)D.registeredArguments.forEach((P)=>{P.description=P.description||D._argsDescription[P.name()]||""});if(D.registeredArguments.find((P)=>P.description))return D.registeredArguments;return[]}subcommandTerm(D){let P=D.registeredArguments.map((O)=>mB(O)).join(" ");return D._name+(D._aliases[0]?"|"+D._aliases[0]:"")+(D.options.length?" [options]":"")+(P?" "+P:"")}optionTerm(D){return D.flags}argumentTerm(D){return D.name()}longestSubcommandTermLength(D,P){return P.visibleCommands(D).reduce((O,W)=>{return Math.max(O,P.subcommandTerm(W).length)},0)}longestOptionTermLength(D,P){return P.visibleOptions(D).reduce((O,W)=>{return Math.max(O,P.optionTerm(W).length)},0)}longestGlobalOptionTermLength(D,P){return P.visibleGlobalOptions(D).reduce((O,W)=>{return Math.max(O,P.optionTerm(W).length)},0)}longestArgumentTermLength(D,P){return P.visibleArguments(D).reduce((O,W)=>{return Math.max(O,P.argumentTerm(W).length)},0)}commandUsage(D){let P=D._name;if(D._aliases[0])P=P+"|"+D._aliases[0];let O="";for(let W=D.parent;W;W=W.parent)O=W.name()+" "+O;return O+P+" "+D.usage()}commandDescription(D){return D.description()}subcommandDescription(D){return D.summary()||D.description()}optionDescription(D){let P=[];if(D.argChoices)P.push(`choices: ${D.argChoices.map((O)=>JSON.stringify(O)).join(", ")}`);if(D.defaultValue!==void 0){if(D.required||D.optional||D.isBoolean()&&typeof D.defaultValue==="boolean")P.push(`default: ${D.defaultValueDescription||JSON.stringify(D.defaultValue)}`)}if(D.presetArg!==void 0&&D.optional)P.push(`preset: ${JSON.stringify(D.presetArg)}`);if(D.envVar!==void 0)P.push(`env: ${D.envVar}`);if(P.length>0)return`${D.description} (${P.join(", ")})`;return D.description}argumentDescription(D){let P=[];if(D.argChoices)P.push(`choices: ${D.argChoices.map((O)=>JSON.stringify(O)).join(", ")}`);if(D.defaultValue!==void 0)P.push(`default: ${D.defaultValueDescription||JSON.stringify(D.defaultValue)}`);if(P.length>0){let O=`(${P.join(", ")})`;if(D.description)return`${D.description} ${O}`;return O}return D.description}formatHelp(D,P){let O=P.padWidth(D,P),W=P.helpWidth||80,E=2,F=2;function R(A,X){if(X){let I=`${A.padEnd(O+2)}${X}`;return P.wrap(I,W-2,O+2)}return A}function S(A){return A.join("\n").replace(/^/gm," ".repeat(2))}let L=[`Usage: ${P.commandUsage(D)}`,""],B=P.commandDescription(D);if(B.length>0)L=L.concat([P.wrap(B,W,0),""]);let Y=P.visibleArguments(D).map((A)=>{return R(P.argumentTerm(A),P.argumentDescription(A))});if(Y.length>0)L=L.concat(["Arguments:",S(Y),""]);let Z=P.visibleOptions(D).map((A)=>{return R(P.optionTerm(A),P.optionDescription(A))});if(Z.length>0)L=L.concat(["Options:",S(Z),""]);if(this.showGlobalOptions){let A=P.visibleGlobalOptions(D).map((X)=>{return R(P.optionTerm(X),P.optionDescription(X))});if(A.length>0)L=L.concat(["Global Options:",S(A),""])}let H=P.visibleCommands(D).map((A)=>{return R(P.subcommandTerm(A),P.subcommandDescription(A))});if(H.length>0)L=L.concat(["Commands:",S(H),""]);return L.join("\n")}padWidth(D,P){return Math.max(P.longestOptionTermLength(D,P),P.longestGlobalOptionTermLength(D,P),P.longestSubcommandTermLength(D,P),P.longestArgumentTermLength(D,P))}wrap(D,P,O,W=40){let F=new RegExp(`[\\n][${" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF"}]+`);if(D.match(F))return D;let R=P-O;if(R<W)return D;let S=D.slice(0,O),L=D.slice(O).replace("\r\n","\n"),B=" ".repeat(O),Z=`\\s${"\u200B"}`,H=new RegExp(`\n|.{1,${R-1}}([${Z}]|\$)|[^${Z}]+?([${Z}]|\$)`,"g"),A=L.match(H)||[];return S+A.map((X,I)=>{if(X==="\n")return"";return(I>0?B:"")+X.trimEnd()}).join("\n")}}cB.Help=m6});var W1=J((pB)=>{var{InvalidArgumentError:rB}=Y8();class c6{constructor(D,P){this.flags=D,this.description=P||"",this.required=D.includes("<"),this.optional=D.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(D),this.mandatory=!1;let O=r6(D);if(this.short=O.shortFlag,this.long=O.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,P){return this.defaultValue=D,this.defaultValueDescription=P,this}preset(D){return this.presetArg=D,this}conflicts(D){return this.conflictsWith=this.conflictsWith.concat(D),this}implies(D){let P=D;if(typeof D==="string")P={[D]:!0};return this.implied=Object.assign(this.implied||{},P),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,P){if(P===this.defaultValue||!Array.isArray(P))return[D];return P.concat(D)}choices(D){return this.argChoices=D.slice(),this.parseArg=(P,O)=>{if(!this.argChoices.includes(P))throw new rB(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(P,O);return P},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){return dB(this.name().replace(/^no-/,""))}is(D){return this.short===D||this.long===D}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class l6{constructor(D){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,D.forEach((P)=>{if(P.negate)this.negativeOptions.set(P.attributeName(),P);else this.positiveOptions.set(P.attributeName(),P)}),this.negativeOptions.forEach((P,O)=>{if(this.positiveOptions.has(O))this.dualOptions.add(O)})}valueFromOption(D,P){let O=P.attributeName();if(!this.dualOptions.has(O))return!0;let W=this.negativeOptions.get(O).presetArg,E=W!==void 0?W:!1;return P.negate===(E===D)}}function dB(D){return D.split("-").reduce((P,O)=>{return P+O[0].toUpperCase()+O.slice(1)})}function r6(D){let P,O,W=D.split(/[ |,]+/);if(W.length>1&&!/^[[<]/.test(W[1]))P=W.shift();if(O=W.shift(),!P&&/^-[^-]$/.test(O))P=O,O=void 0;return{shortFlag:P,longFlag:O}}pB.Option=c6;pB.splitOptionFlags=r6;pB.DualOptions=l6});var d6=J((oB)=>{function sB(D,P){if(Math.abs(D.length-P.length)>3)return Math.max(D.length,P.length);let O=[];for(let W=0;W<=D.length;W++)O[W]=[W];for(let W=0;W<=P.length;W++)O[0][W]=W;for(let W=1;W<=P.length;W++)for(let E=1;E<=D.length;E++){let F=1;if(D[E-1]===P[W-1])F=0;else F=1;if(O[E][W]=Math.min(O[E-1][W]+1,O[E][W-1]+1,O[E-1][W-1]+F),E>1&&W>1&&D[E-1]===P[W-2]&&D[E-2]===P[W-1])O[E][W]=Math.min(O[E][W],O[E-2][W-2]+1)}return O[D.length][P.length]}function iB(D,P){if(!P||P.length===0)return"";P=Array.from(new Set(P));let O=D.startsWith("--");if(O)D=D.slice(2),P=P.map((R)=>R.slice(2));let W=[],E=3,F=0.4;if(P.forEach((R)=>{if(R.length<=1)return;let S=sB(D,R),L=Math.max(D.length,R.length);if((L-S)/L>F){if(S<E)E=S,W=[R];else if(S===E)W.push(R)}}),W.sort((R,S)=>R.localeCompare(S)),O)W=W.map((R)=>`--${R}`);if(W.length>1)return`\n(Did you mean one of ${W.join(", ")}?)`;if(W.length===1)return`\n(Did you mean ${W[0]}?)`;return""}oB.suggestSimilar=iB});var s6=J((RY)=>{var DY=E0("events").EventEmitter,E1=E0("child_process"),_0=E0("path"),F1=E0("fs"),RD=E0("process"),{Argument:PY,humanReadableArgName:OY}=AP(),{CommanderError:R1}=Y8(),{Help:WY}=O1(),{Option:p6,splitOptionFlags:EY,DualOptions:FY}=W1(),{suggestSimilar:a6}=d6();class S1 extends DY{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:(P)=>RD.stdout.write(P),writeErr:(P)=>RD.stderr.write(P),getOutHelpWidth:()=>RD.stdout.isTTY?RD.stdout.columns:void 0,getErrHelpWidth:()=>RD.stderr.isTTY?RD.stderr.columns:void 0,outputError:(P,O)=>O(P)},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 P=this;P;P=P.parent)D.push(P);return D}command(D,P,O){let W=P,E=O;if(typeof W==="object"&&W!==null)E=W,W=null;E=E||{};let[,F,R]=D.match(/([^ ]+) *(.*)/),S=this.createCommand(F);if(W)S.description(W),S._executableHandler=!0;if(E.isDefault)this._defaultCommandName=S._name;if(S._hidden=!!(E.noHelp||E.hidden),S._executableFile=E.executableFile||null,R)S.arguments(R);if(this.commands.push(S),S.parent=this,S.copyInheritedSettings(this),W)return this;return S}createCommand(D){return new S1(D)}createHelp(){return Object.assign(new WY,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,P){if(!D._name)throw new Error(`Command passed to .addCommand() must have a name
|
|
3
|
-
- specify the name in Command constructor or using .name()`);if(P=P||{},P.isDefault)this._defaultCommandName=D._name;if(P.noHelp||P.hidden)D._hidden=!0;return this.commands.push(D),D.parent=this,this}createArgument(D,P){return new
|
|
4
|
-
Expecting one of '${O.join("', '")}'`);if(this._lifeCycleHooks[D])this._lifeCycleHooks[D].push(P);else this._lifeCycleHooks[D]=[P];return this}exitOverride(D){if(D)this._exitCallback=D;else this._exitCallback=(P)=>{if(P.code!=="commander.executeSubCommandAsync")throw P};return this}_exit(D,P,O){if(this._exitCallback)this._exitCallback(new R1(D,P,O));RD.exit(D)}action(D){let P=(O)=>{let W=this.registeredArguments.length,E=O.slice(0,W);if(this._storeOptionsAsProperties)E[W]=this;else E[W]=this.opts();return E.push(this),D.apply(this,E)};return this._actionHandler=P,this}createOption(D,P){return new
|
|
2
|
+
import{createRequire as tB}from"node:module";var dB=Object.create;var{getPrototypeOf:pB,defineProperty:D1,getOwnPropertyNames:nB}=Object;var aB=Object.prototype.hasOwnProperty;var YD=(D,P,O)=>{O=D!=null?dB(pB(D)):{};let W=P||!D||!D.__esModule?D1(O,"default",{value:D,enumerable:!0}):O;for(let E of nB(D))if(!aB.call(W,E))D1(W,E,{get:()=>D[E],enumerable:!0});return W};var J=(D,P)=>()=>(P||D((P={exports:{}}).exports,P),P.exports);var m6=(D,P)=>{for(var O in P)D1(D,O,{get:P[O],enumerable:!0,configurable:!0,set:(W)=>P[O]=()=>W})};var yD=tB(import.meta.url);var L8=J((iB)=>{class P1 extends Error{constructor(D,P,O){super(O);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=P,this.exitCode=D,this.nestedError=void 0}}class c6 extends P1{constructor(D){super(1,"commander.invalidArgument",D);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}iB.CommanderError=P1;iB.InvalidArgumentError=c6});var HP=J((OY)=>{var{InvalidArgumentError:DY}=L8();class l6{constructor(D,P){switch(this.description=P||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,D[0]){case"<":this.required=!0,this._name=D.slice(1,-1);break;case"[":this.required=!1,this._name=D.slice(1,-1);break;default:this.required=!0,this._name=D;break}if(this._name.length>3&&this._name.slice(-3)==="...")this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_concatValue(D,P){if(P===this.defaultValue||!Array.isArray(P))return[D];return P.concat(D)}default(D,P){return this.defaultValue=D,this.defaultValueDescription=P,this}argParser(D){return this.parseArg=D,this}choices(D){return this.argChoices=D.slice(),this.parseArg=(P,O)=>{if(!this.argChoices.includes(P))throw new DY(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(P,O);return P},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function PY(D){let P=D.name()+(D.variadic===!0?"...":"");return D.required?"<"+P+">":"["+P+"]"}OY.Argument=l6;OY.humanReadableArgName=PY});var O1=J((RY)=>{var{humanReadableArgName:FY}=HP();class r6{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(D){let P=D.commands.filter((O)=>!O._hidden);if(D._hasImplicitHelpCommand()){let[,O,W]=D._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),E=D.createCommand(O).helpOption(!1);if(E.description(D._helpCommandDescription),W)E.arguments(W);P.push(E)}if(this.sortSubcommands)P.sort((O,W)=>{return O.name().localeCompare(W.name())});return P}compareOptions(D,P){let O=(W)=>{return W.short?W.short.replace(/^-/,""):W.long.replace(/^--/,"")};return O(D).localeCompare(O(P))}visibleOptions(D){let P=D.options.filter((E)=>!E.hidden),O=D._hasHelpOption&&D._helpShortFlag&&!D._findOption(D._helpShortFlag),W=D._hasHelpOption&&!D._findOption(D._helpLongFlag);if(O||W){let E;if(!O)E=D.createOption(D._helpLongFlag,D._helpDescription);else if(!W)E=D.createOption(D._helpShortFlag,D._helpDescription);else E=D.createOption(D._helpFlags,D._helpDescription);P.push(E)}if(this.sortOptions)P.sort(this.compareOptions);return P}visibleGlobalOptions(D){if(!this.showGlobalOptions)return[];let P=[];for(let O=D.parent;O;O=O.parent){let W=O.options.filter((E)=>!E.hidden);P.push(...W)}if(this.sortOptions)P.sort(this.compareOptions);return P}visibleArguments(D){if(D._argsDescription)D.registeredArguments.forEach((P)=>{P.description=P.description||D._argsDescription[P.name()]||""});if(D.registeredArguments.find((P)=>P.description))return D.registeredArguments;return[]}subcommandTerm(D){let P=D.registeredArguments.map((O)=>FY(O)).join(" ");return D._name+(D._aliases[0]?"|"+D._aliases[0]:"")+(D.options.length?" [options]":"")+(P?" "+P:"")}optionTerm(D){return D.flags}argumentTerm(D){return D.name()}longestSubcommandTermLength(D,P){return P.visibleCommands(D).reduce((O,W)=>{return Math.max(O,P.subcommandTerm(W).length)},0)}longestOptionTermLength(D,P){return P.visibleOptions(D).reduce((O,W)=>{return Math.max(O,P.optionTerm(W).length)},0)}longestGlobalOptionTermLength(D,P){return P.visibleGlobalOptions(D).reduce((O,W)=>{return Math.max(O,P.optionTerm(W).length)},0)}longestArgumentTermLength(D,P){return P.visibleArguments(D).reduce((O,W)=>{return Math.max(O,P.argumentTerm(W).length)},0)}commandUsage(D){let P=D._name;if(D._aliases[0])P=P+"|"+D._aliases[0];let O="";for(let W=D.parent;W;W=W.parent)O=W.name()+" "+O;return O+P+" "+D.usage()}commandDescription(D){return D.description()}subcommandDescription(D){return D.summary()||D.description()}optionDescription(D){let P=[];if(D.argChoices)P.push(`choices: ${D.argChoices.map((O)=>JSON.stringify(O)).join(", ")}`);if(D.defaultValue!==void 0){if(D.required||D.optional||D.isBoolean()&&typeof D.defaultValue==="boolean")P.push(`default: ${D.defaultValueDescription||JSON.stringify(D.defaultValue)}`)}if(D.presetArg!==void 0&&D.optional)P.push(`preset: ${JSON.stringify(D.presetArg)}`);if(D.envVar!==void 0)P.push(`env: ${D.envVar}`);if(P.length>0)return`${D.description} (${P.join(", ")})`;return D.description}argumentDescription(D){let P=[];if(D.argChoices)P.push(`choices: ${D.argChoices.map((O)=>JSON.stringify(O)).join(", ")}`);if(D.defaultValue!==void 0)P.push(`default: ${D.defaultValueDescription||JSON.stringify(D.defaultValue)}`);if(P.length>0){let O=`(${P.join(", ")})`;if(D.description)return`${D.description} ${O}`;return O}return D.description}formatHelp(D,P){let O=P.padWidth(D,P),W=P.helpWidth||80,E=2,F=2;function R(C,X){if(X){let I=`${C.padEnd(O+2)}${X}`;return P.wrap(I,W-2,O+2)}return C}function S(C){return C.join("\n").replace(/^/gm," ".repeat(2))}let L=[`Usage: ${P.commandUsage(D)}`,""],B=P.commandDescription(D);if(B.length>0)L=L.concat([P.wrap(B,W,0),""]);let Y=P.visibleArguments(D).map((C)=>{return R(P.argumentTerm(C),P.argumentDescription(C))});if(Y.length>0)L=L.concat(["Arguments:",S(Y),""]);let Z=P.visibleOptions(D).map((C)=>{return R(P.optionTerm(C),P.optionDescription(C))});if(Z.length>0)L=L.concat(["Options:",S(Z),""]);if(this.showGlobalOptions){let C=P.visibleGlobalOptions(D).map((X)=>{return R(P.optionTerm(X),P.optionDescription(X))});if(C.length>0)L=L.concat(["Global Options:",S(C),""])}let H=P.visibleCommands(D).map((C)=>{return R(P.subcommandTerm(C),P.subcommandDescription(C))});if(H.length>0)L=L.concat(["Commands:",S(H),""]);return L.join("\n")}padWidth(D,P){return Math.max(P.longestOptionTermLength(D,P),P.longestGlobalOptionTermLength(D,P),P.longestSubcommandTermLength(D,P),P.longestArgumentTermLength(D,P))}wrap(D,P,O,W=40){let F=new RegExp(`[\\n][${" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF"}]+`);if(D.match(F))return D;let R=P-O;if(R<W)return D;let S=D.slice(0,O),L=D.slice(O).replace("\r\n","\n"),B=" ".repeat(O),Z=`\\s${"\u200B"}`,H=new RegExp(`\n|.{1,${R-1}}([${Z}]|\$)|[^${Z}]+?([${Z}]|\$)`,"g"),C=L.match(H)||[];return S+C.map((X,I)=>{if(X==="\n")return"";return(I>0?B:"")+X.trimEnd()}).join("\n")}}RY.Help=r6});var W1=J((YY)=>{var{InvalidArgumentError:LY}=L8();class d6{constructor(D,P){this.flags=D,this.description=P||"",this.required=D.includes("<"),this.optional=D.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(D),this.mandatory=!1;let O=n6(D);if(this.short=O.shortFlag,this.long=O.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,P){return this.defaultValue=D,this.defaultValueDescription=P,this}preset(D){return this.presetArg=D,this}conflicts(D){return this.conflictsWith=this.conflictsWith.concat(D),this}implies(D){let P=D;if(typeof D==="string")P={[D]:!0};return this.implied=Object.assign(this.implied||{},P),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,P){if(P===this.defaultValue||!Array.isArray(P))return[D];return P.concat(D)}choices(D){return this.argChoices=D.slice(),this.parseArg=(P,O)=>{if(!this.argChoices.includes(P))throw new LY(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(P,O);return P},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){return BY(this.name().replace(/^no-/,""))}is(D){return this.short===D||this.long===D}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class p6{constructor(D){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,D.forEach((P)=>{if(P.negate)this.negativeOptions.set(P.attributeName(),P);else this.positiveOptions.set(P.attributeName(),P)}),this.negativeOptions.forEach((P,O)=>{if(this.positiveOptions.has(O))this.dualOptions.add(O)})}valueFromOption(D,P){let O=P.attributeName();if(!this.dualOptions.has(O))return!0;let W=this.negativeOptions.get(O).presetArg,E=W!==void 0?W:!1;return P.negate===(E===D)}}function BY(D){return D.split("-").reduce((P,O)=>{return P+O[0].toUpperCase()+O.slice(1)})}function n6(D){let P,O,W=D.split(/[ |,]+/);if(W.length>1&&!/^[[<]/.test(W[1]))P=W.shift();if(O=W.shift(),!P&&/^-[^-]$/.test(O))P=O,O=void 0;return{shortFlag:P,longFlag:O}}YY.Option=d6;YY.splitOptionFlags=n6;YY.DualOptions=p6});var a6=J((UY)=>{function CY(D,P){if(Math.abs(D.length-P.length)>3)return Math.max(D.length,P.length);let O=[];for(let W=0;W<=D.length;W++)O[W]=[W];for(let W=0;W<=P.length;W++)O[0][W]=W;for(let W=1;W<=P.length;W++)for(let E=1;E<=D.length;E++){let F=1;if(D[E-1]===P[W-1])F=0;else F=1;if(O[E][W]=Math.min(O[E-1][W]+1,O[E][W-1]+1,O[E-1][W-1]+F),E>1&&W>1&&D[E-1]===P[W-2]&&D[E-2]===P[W-1])O[E][W]=Math.min(O[E][W],O[E-2][W-2]+1)}return O[D.length][P.length]}function JY(D,P){if(!P||P.length===0)return"";P=Array.from(new Set(P));let O=D.startsWith("--");if(O)D=D.slice(2),P=P.map((R)=>R.slice(2));let W=[],E=3,F=0.4;if(P.forEach((R)=>{if(R.length<=1)return;let S=CY(D,R),L=Math.max(D.length,R.length);if((L-S)/L>F){if(S<E)E=S,W=[R];else if(S===E)W.push(R)}}),W.sort((R,S)=>R.localeCompare(S)),O)W=W.map((R)=>`--${R}`);if(W.length>1)return`\n(Did you mean one of ${W.join(", ")}?)`;if(W.length===1)return`\n(Did you mean ${W[0]}?)`;return""}UY.suggestSimilar=JY});var e6=J((MY)=>{var qY=yD("events").EventEmitter,E1=yD("child_process"),j0=yD("path"),F1=yD("fs"),RD=yD("process"),{Argument:zY,humanReadableArgName:GY}=HP(),{CommanderError:R1}=L8(),{Help:uY}=O1(),{Option:t6,splitOptionFlags:IY,DualOptions:QY}=W1(),{suggestSimilar:s6}=a6();class S1 extends qY{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:(P)=>RD.stdout.write(P),writeErr:(P)=>RD.stderr.write(P),getOutHelpWidth:()=>RD.stdout.isTTY?RD.stdout.columns:void 0,getErrHelpWidth:()=>RD.stderr.isTTY?RD.stderr.columns:void 0,outputError:(P,O)=>O(P)},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 P=this;P;P=P.parent)D.push(P);return D}command(D,P,O){let W=P,E=O;if(typeof W==="object"&&W!==null)E=W,W=null;E=E||{};let[,F,R]=D.match(/([^ ]+) *(.*)/),S=this.createCommand(F);if(W)S.description(W),S._executableHandler=!0;if(E.isDefault)this._defaultCommandName=S._name;if(S._hidden=!!(E.noHelp||E.hidden),S._executableFile=E.executableFile||null,R)S.arguments(R);if(this.commands.push(S),S.parent=this,S.copyInheritedSettings(this),W)return this;return S}createCommand(D){return new S1(D)}createHelp(){return Object.assign(new uY,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,P){if(!D._name)throw new Error(`Command passed to .addCommand() must have a name
|
|
3
|
+
- specify the name in Command constructor or using .name()`);if(P=P||{},P.isDefault)this._defaultCommandName=D._name;if(P.noHelp||P.hidden)D._hidden=!0;return this.commands.push(D),D.parent=this,this}createArgument(D,P){return new zY(D,P)}argument(D,P,O,W){let E=this.createArgument(D,P);if(typeof O==="function")E.default(W).argParser(O);else E.default(O);return this.addArgument(E),this}arguments(D){return D.trim().split(/ +/).forEach((P)=>{this.argument(P)}),this}addArgument(D){let P=this.registeredArguments.slice(-1)[0];if(P&&P.variadic)throw new Error(`only the last argument can be variadic '${P.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,P){if(D===!1)this._addImplicitHelpCommand=!1;else{if(this._addImplicitHelpCommand=!0,typeof D==="string")this._helpCommandName=D.split(" ")[0],this._helpCommandnameAndArgs=D;this._helpCommandDescription=P||this._helpCommandDescription}return this}_hasImplicitHelpCommand(){if(this._addImplicitHelpCommand===void 0)return this.commands.length&&!this._actionHandler&&!this._findCommand("help");return this._addImplicitHelpCommand}hook(D,P){let O=["preSubcommand","preAction","postAction"];if(!O.includes(D))throw new Error(`Unexpected value for event passed to hook : '${D}'.
|
|
4
|
+
Expecting one of '${O.join("', '")}'`);if(this._lifeCycleHooks[D])this._lifeCycleHooks[D].push(P);else this._lifeCycleHooks[D]=[P];return this}exitOverride(D){if(D)this._exitCallback=D;else this._exitCallback=(P)=>{if(P.code!=="commander.executeSubCommandAsync")throw P};return this}_exit(D,P,O){if(this._exitCallback)this._exitCallback(new R1(D,P,O));RD.exit(D)}action(D){let P=(O)=>{let W=this.registeredArguments.length,E=O.slice(0,W);if(this._storeOptionsAsProperties)E[W]=this;else E[W]=this.opts();return E.push(this),D.apply(this,E)};return this._actionHandler=P,this}createOption(D,P){return new t6(D,P)}_callParseArg(D,P,O,W){try{return D.parseArg(P,O)}catch(E){if(E.code==="commander.invalidArgument"){let F=`${W} ${E.message}`;this.error(F,{exitCode:E.exitCode,code:E.code})}throw E}}addOption(D){let P=D.name(),O=D.attributeName();if(D.negate){let E=D.long.replace(/^--no-/,"--");if(!this._findOption(E))this.setOptionValueWithSource(O,D.defaultValue===void 0?!0:D.defaultValue,"default")}else if(D.defaultValue!==void 0)this.setOptionValueWithSource(O,D.defaultValue,"default");this.options.push(D);let W=(E,F,R)=>{if(E==null&&D.presetArg!==void 0)E=D.presetArg;let S=this.getOptionValue(O);if(E!==null&&D.parseArg)E=this._callParseArg(D,E,S,F);else if(E!==null&&D.variadic)E=D._concatValue(E,S);if(E==null)if(D.negate)E=!1;else if(D.isBoolean()||D.optional)E=!0;else E="";this.setOptionValueWithSource(O,E,R)};if(this.on("option:"+P,(E)=>{let F=`error: option '${D.flags}' argument '${E}' is invalid.`;W(E,F,"cli")}),D.envVar)this.on("optionEnv:"+P,(E)=>{let F=`error: option '${D.flags}' value '${E}' from env '${D.envVar}' is invalid.`;W(E,F,"env")});return this}_optionEx(D,P,O,W,E){if(typeof P==="object"&&P instanceof t6)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let F=this.createOption(P,O);if(F.makeOptionMandatory(!!D.mandatory),typeof W==="function")F.default(E).argParser(W);else if(W instanceof RegExp){let R=W;W=(S,L)=>{let B=R.exec(S);return B?B[0]:L},F.default(E).argParser(W)}else F.default(W);return this.addOption(F)}option(D,P,O,W){return this._optionEx({},D,P,O,W)}requiredOption(D,P,O,W){return this._optionEx({mandatory:!0},D,P,O,W)}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,P){return this.setOptionValueWithSource(D,P,void 0)}setOptionValueWithSource(D,P,O){if(this._storeOptionsAsProperties)this[D]=P;else this._optionValues[D]=P;return this._optionValueSources[D]=O,this}getOptionValueSource(D){return this._optionValueSources[D]}getOptionValueSourceWithGlobals(D){let P;return this._getCommandAndAncestors().forEach((O)=>{if(O.getOptionValueSource(D)!==void 0)P=O.getOptionValueSource(D)}),P}_prepareUserArgs(D,P){if(D!==void 0&&!Array.isArray(D))throw new Error("first parameter to parse must be array or undefined");if(P=P||{},D===void 0){if(D=RD.argv,RD.versions&&RD.versions.electron)P.from="electron"}this.rawArgs=D.slice();let O;switch(P.from){case void 0:case"node":this._scriptPath=D[1],O=D.slice(2);break;case"electron":if(RD.defaultApp)this._scriptPath=D[1],O=D.slice(2);else O=D.slice(1);break;case"user":O=D.slice(0);break;default:throw new Error(`unexpected parse option { from: '${P.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",O}parse(D,P){let O=this._prepareUserArgs(D,P);return this._parseCommand([],O),this}async parseAsync(D,P){let O=this._prepareUserArgs(D,P);return await this._parseCommand([],O),this}_executeSubCommand(D,P){P=P.slice();let O=!1,W=[".js",".ts",".tsx",".mjs",".cjs"];function E(B,Y){let Z=j0.resolve(B,Y);if(F1.existsSync(Z))return Z;if(W.includes(j0.extname(Y)))return;let H=W.find((C)=>F1.existsSync(`${Z}${C}`));if(H)return`${Z}${H}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let F=D._executableFile||`${this._name}-${D._name}`,R=this._executableDir||"";if(this._scriptPath){let B;try{B=F1.realpathSync(this._scriptPath)}catch(Y){B=this._scriptPath}R=j0.resolve(j0.dirname(B),R)}if(R){let B=E(R,F);if(!B&&!D._executableFile&&this._scriptPath){let Y=j0.basename(this._scriptPath,j0.extname(this._scriptPath));if(Y!==this._name)B=E(R,`${Y}-${D._name}`)}F=B||F}O=W.includes(j0.extname(F));let S;if(RD.platform!=="win32")if(O)P.unshift(F),P=o6(RD.execArgv).concat(P),S=E1.spawn(RD.argv[0],P,{stdio:"inherit"});else S=E1.spawn(F,P,{stdio:"inherit"});else P.unshift(F),P=o6(RD.execArgv).concat(P),S=E1.spawn(RD.execPath,P,{stdio:"inherit"});if(!S.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((Y)=>{RD.on(Y,()=>{if(S.killed===!1&&S.exitCode===null)S.kill(Y)})});let L=this._exitCallback;if(!L)S.on("close",RD.exit.bind(RD));else S.on("close",()=>{L(new R1(RD.exitCode||0,"commander.executeSubCommandAsync","(close)"))});S.on("error",(B)=>{if(B.code==="ENOENT"){let Y=R?`searched for local subcommand relative to directory '${R}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",Z=`'${F}' does not exist
|
|
5
5
|
- if '${D._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
6
6
|
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
7
|
-
- ${Y}`;throw new Error(Z)}else if(B.code==="EACCES")throw new Error(`'${F}' not executable`);if(!L)RD.exit(1);else{let Y=new R1(1,"commander.executeSubCommandAsync","(error)");Y.nestedError=B,L(Y)}}),this.runningCommand=S}_dispatchSubcommand(D,P,O){let W=this._findCommand(D);if(!W)this.help({error:!0});let E;return E=this._chainOrCallSubCommandHook(E,W,"preSubcommand"),E=this._chainOrCall(E,()=>{if(W._executableHandler)this._executeSubCommand(W,P.concat(O));else return W._parseCommand(P,O)}),E}_dispatchHelpCommand(D){if(!D)this.help();let P=this._findCommand(D);if(P&&!P._executableHandler)P.help();return this._dispatchSubcommand(D,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((D,P)=>{if(D.required&&this.args[P]==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=(O,W,E)=>{let F=W;if(W!==null&&O.parseArg){let R=`error: command-argument value '${W}' is invalid for argument '${O.name()}'.`;F=this._callParseArg(O,W,E,R)}return F};this._checkNumberOfArguments();let P=[];this.registeredArguments.forEach((O,W)=>{let E=O.defaultValue;if(O.variadic){if(W<this.args.length){if(E=this.args.slice(W),O.parseArg)E=E.reduce((F,R)=>{return D(O,R,F)},O.defaultValue)}else if(E===void 0)E=[]}else if(W<this.args.length){if(E=this.args[W],O.parseArg)E=D(O,E,O.defaultValue)}P[W]=E}),this.processedArgs=P}_chainOrCall(D,P){if(D&&D.then&&typeof D.then==="function")return D.then(()=>P());return P()}_chainOrCallHooks(D,P){let O=D,W=[];if(this._getCommandAndAncestors().reverse().filter((E)=>E._lifeCycleHooks[P]!==void 0).forEach((E)=>{E._lifeCycleHooks[P].forEach((F)=>{W.push({hookedCommand:E,callback:F})})}),P==="postAction")W.reverse();return W.forEach((E)=>{O=this._chainOrCall(O,()=>{return E.callback(E.hookedCommand,this)})}),O}_chainOrCallSubCommandHook(D,P,O){let W=D;if(this._lifeCycleHooks[O]!==void 0)this._lifeCycleHooks[O].forEach((E)=>{W=this._chainOrCall(W,()=>{return E(this,P)})});return W}_parseCommand(D,P){let O=this.parseOptions(P);if(this._parseOptionsEnv(),this._parseOptionsImplied(),D=D.concat(O.operands),P=O.unknown,this.args=D.concat(P),D&&this._findCommand(D[0]))return this._dispatchSubcommand(D[0],D.slice(1),P);if(this._hasImplicitHelpCommand()&&D[0]===this._helpCommandName)return this._dispatchHelpCommand(D[1]);if(this._defaultCommandName)return n6(this,P),this._dispatchSubcommand(this._defaultCommandName,D,P);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});n6(this,O.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let W=()=>{if(O.unknown.length>0)this.unknownOption(O.unknown[0])},E=`command:${this.name()}`;if(this._actionHandler){W(),this._processArguments();let F;if(F=this._chainOrCallHooks(F,"preAction"),F=this._chainOrCall(F,()=>this._actionHandler(this.processedArgs)),this.parent)F=this._chainOrCall(F,()=>{this.parent.emit(E,D,P)});return F=this._chainOrCallHooks(F,"postAction"),F}if(this.parent&&this.parent.listenerCount(E))W(),this._processArguments(),this.parent.emit(E,D,P);else if(D.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",D,P);if(this.listenerCount("command:*"))this.emit("command:*",D,P);else if(this.commands.length)this.unknownCommand();else W(),this._processArguments()}else if(this.commands.length)W(),this.help({error:!0});else W(),this._processArguments()}_findCommand(D){if(!D)return;return this.commands.find((P)=>P._name===D||P._aliases.includes(D))}_findOption(D){return this.options.find((P)=>P.is(D))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((D)=>{D.options.forEach((P)=>{if(P.mandatory&&D.getOptionValue(P.attributeName())===void 0)D.missingMandatoryOptionValue(P)})})}_checkForConflictingLocalOptions(){let D=this.options.filter((O)=>{let W=O.attributeName();if(this.getOptionValue(W)===void 0)return!1;return this.getOptionValueSource(W)!=="default"});D.filter((O)=>O.conflictsWith.length>0).forEach((O)=>{let W=D.find((E)=>O.conflictsWith.includes(E.attributeName()));if(W)this._conflictingOption(O,W)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((D)=>{D._checkForConflictingLocalOptions()})}parseOptions(D){let P=[],O=[],W=P,E=D.slice();function F(S){return S.length>1&&S[0]==="-"}let R=null;while(E.length){let S=E.shift();if(S==="--"){if(W===O)W.push(S);W.push(...E);break}if(R&&!F(S)){this.emit(`option:${R.name()}`,S);continue}if(R=null,F(S)){let L=this._findOption(S);if(L){if(L.required){let B=E.shift();if(B===void 0)this.optionMissingArgument(L);this.emit(`option:${L.name()}`,B)}else if(L.optional){let B=null;if(E.length>0&&!F(E[0]))B=E.shift();this.emit(`option:${L.name()}`,B)}else this.emit(`option:${L.name()}`);R=L.variadic?L:null;continue}}if(S.length>2&&S[0]==="-"&&S[1]!=="-"){let L=this._findOption(`-${S[1]}`);if(L){if(L.required||L.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${L.name()}`,S.slice(2));else this.emit(`option:${L.name()}`),E.unshift(`-${S.slice(2)}`);continue}}if(/^--[^=]+=/.test(S)){let L=S.indexOf("="),B=this._findOption(S.slice(0,L));if(B&&(B.required||B.optional)){this.emit(`option:${B.name()}`,S.slice(L+1));continue}}if(F(S))W=O;if((this._enablePositionalOptions||this._passThroughOptions)&&P.length===0&&O.length===0){if(this._findCommand(S)){if(P.push(S),E.length>0)O.push(...E);break}else if(S===this._helpCommandName&&this._hasImplicitHelpCommand()){if(P.push(S),E.length>0)P.push(...E);break}else if(this._defaultCommandName){if(O.push(S),E.length>0)O.push(...E);break}}if(this._passThroughOptions){if(W.push(S),E.length>0)W.push(...E);break}W.push(S)}return{operands:P,unknown:O}}opts(){if(this._storeOptionsAsProperties){let D={},P=this.options.length;for(let O=0;O<P;O++){let W=this.options[O].attributeName();D[W]=W===this._versionOptionName?this._version:this[W]}return D}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((D,P)=>Object.assign(D,P.opts()),{})}error(D,P){if(this._outputConfiguration.outputError(`${D}\n`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`);else if(this._showHelpAfterError)this._outputConfiguration.writeErr("\n"),this.outputHelp({error:!0});let O=P||{},W=O.exitCode||1,E=O.code||"commander.error";this._exit(W,E,D)}_parseOptionsEnv(){this.options.forEach((D)=>{if(D.envVar&&D.envVar in RD.env){let P=D.attributeName();if(this.getOptionValue(P)===void 0||["default","config","env"].includes(this.getOptionValueSource(P)))if(D.required||D.optional)this.emit(`optionEnv:${D.name()}`,RD.env[D.envVar]);else this.emit(`optionEnv:${D.name()}`)}})}_parseOptionsImplied(){let D=new FY(this.options),P=(O)=>{return this.getOptionValue(O)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(O))};this.options.filter((O)=>O.implied!==void 0&&P(O.attributeName())&&D.valueFromOption(this.getOptionValue(O.attributeName()),O)).forEach((O)=>{Object.keys(O.implied).filter((W)=>!P(W)).forEach((W)=>{this.setOptionValueWithSource(W,O.implied[W],"implied")})})}missingArgument(D){let P=`error: missing required argument '${D}'`;this.error(P,{code:"commander.missingArgument"})}optionMissingArgument(D){let P=`error: option '${D.flags}' argument missing`;this.error(P,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(D){let P=`error: required option '${D.flags}' not specified`;this.error(P,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(D,P){let O=(F)=>{let R=F.attributeName(),S=this.getOptionValue(R),L=this.options.find((Y)=>Y.negate&&R===Y.attributeName()),B=this.options.find((Y)=>!Y.negate&&R===Y.attributeName());if(L&&(L.presetArg===void 0&&S===!1||L.presetArg!==void 0&&S===L.presetArg))return L;return B||F},W=(F)=>{let R=O(F),S=R.attributeName();if(this.getOptionValueSource(S)==="env")return`environment variable '${R.envVar}'`;return`option '${R.flags}'`},E=`error: ${W(D)} cannot be used with ${W(P)}`;this.error(E,{code:"commander.conflictingOption"})}unknownOption(D){if(this._allowUnknownOption)return;let P="";if(D.startsWith("--")&&this._showSuggestionAfterError){let W=[],E=this;do{let F=E.createHelp().visibleOptions(E).filter((R)=>R.long).map((R)=>R.long);W=W.concat(F),E=E.parent}while(E&&!E._enablePositionalOptions);P=a6(D,W)}let O=`error: unknown option '${D}'${P}`;this.error(O,{code:"commander.unknownOption"})}_excessArguments(D){if(this._allowExcessArguments)return;let P=this.registeredArguments.length,O=P===1?"":"s",E=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${P} argument${O} but got ${D.length}.`;this.error(E,{code:"commander.excessArguments"})}unknownCommand(){let D=this.args[0],P="";if(this._showSuggestionAfterError){let W=[];this.createHelp().visibleCommands(this).forEach((E)=>{if(W.push(E.name()),E.alias())W.push(E.alias())}),P=a6(D,W)}let O=`error: unknown command '${D}'${P}`;this.error(O,{code:"commander.unknownCommand"})}version(D,P,O){if(D===void 0)return this._version;this._version=D,P=P||"-V, --version",O=O||"output the version number";let W=this.createOption(P,O);return this._versionOptionName=W.attributeName(),this.options.push(W),this.on("option:"+W.name(),()=>{this._outputConfiguration.writeOut(`${D}\n`),this._exit(0,"commander.version",D)}),this}description(D,P){if(D===void 0&&P===void 0)return this._description;if(this._description=D,P)this._argsDescription=P;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 P=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)P=this.commands[this.commands.length-1];if(D===P._name)throw new Error("Command alias can\'t be the same as its name");return P._aliases.push(D),this}aliases(D){if(D===void 0)return this._aliases;return D.forEach((P)=>this.alias(P)),this}usage(D){if(D===void 0){if(this._usage)return this._usage;let P=this.registeredArguments.map((O)=>{return OY(O)});return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?P:[]).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=_0.basename(D,_0.extname(D)),this}executableDir(D){if(D===void 0)return this._executableDir;return this._executableDir=D,this}helpInformation(D){let P=this.createHelp();if(P.helpWidth===void 0)P.helpWidth=D&&D.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth();return P.formatHelp(this,P)}_getHelpContext(D){D=D||{};let P={error:!!D.error},O;if(P.error)O=(W)=>this._outputConfiguration.writeErr(W);else O=(W)=>this._outputConfiguration.writeOut(W);return P.write=D.write||O,P.command=this,P}outputHelp(D){let P;if(typeof D==="function")P=D,D=void 0;let O=this._getHelpContext(D);this._getCommandAndAncestors().reverse().forEach((E)=>E.emit("beforeAllHelp",O)),this.emit("beforeHelp",O);let W=this.helpInformation(O);if(P){if(W=P(W),typeof W!=="string"&&!Buffer.isBuffer(W))throw new Error("outputHelp callback must return a string or a Buffer")}if(O.write(W),this._helpLongFlag)this.emit(this._helpLongFlag);this.emit("afterHelp",O),this._getCommandAndAncestors().forEach((E)=>E.emit("afterAllHelp",O))}helpOption(D,P){if(typeof D==="boolean")return this._hasHelpOption=D,this;this._helpFlags=D||this._helpFlags,this._helpDescription=P||this._helpDescription;let O=EY(this._helpFlags);return this._helpShortFlag=O.shortFlag,this._helpLongFlag=O.longFlag,this}help(D){this.outputHelp(D);let P=RD.exitCode||0;if(P===0&&D&&typeof D!=="function"&&D.error)P=1;this._exit(P,"commander.help","(outputHelp)")}addHelpText(D,P){let O=["beforeAll","before","after","afterAll"];if(!O.includes(D))throw new Error(`Unexpected value for position to addHelpText.
|
|
8
|
-
Expecting one of '${O.join("', '")}'`);let W=`${D}Help`;return this.on(W,(E)=>{let F;if(typeof P==="function")F=P({error:E.error,command:E.command});else F=P;if(F)E.write(`${F}\n`)}),this}}function n6(D,P){if(D._hasHelpOption&&P.find((W)=>W===D._helpLongFlag||W===D._helpShortFlag))D.outputHelp(),D._exit(0,"commander.helpDisplayed","(outputHelp)")}function t6(D){return D.map((P)=>{if(!P.startsWith("--inspect"))return P;let O,W="127.0.0.1",E="9229",F;if((F=P.match(/^(--inspect(-brk)?)$/))!==null)O=F[1];else if((F=P.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(O=F[1],/^\d+$/.test(F[3]))E=F[3];else W=F[3];else if((F=P.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)O=F[1],W=F[3],E=F[4];if(O&&E!=="0")return`${O}=${W}:${parseInt(E)+1}`;return P})}RY.Command=S1});var DE=J((F0,e6)=>{var{Argument:LY}=AP(),{Command:i6}=s6(),{CommanderError:BY,InvalidArgumentError:o6}=Y8(),{Help:YY}=O1(),{Option:ZY}=W1();F0=e6.exports=new i6;F0.program=F0;F0.Command=i6;F0.Option=ZY;F0.Argument=LY;F0.Help=YY;F0.CommanderError=BY;F0.InvalidArgumentError=o6;F0.InvalidOptionArgumentError=o6});var FE=J((WE)=>{Object.defineProperty(WE,"__esModule",{value:!0});WE.versionInfo=WE.version=void 0;var HY="16.9.0";WE.version=HY;var CY=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});WE.versionInfo=CY});var kD=J((RE)=>{Object.defineProperty(RE,"__esModule",{value:!0});RE.devAssert=JY;function JY(D,P){if(!Boolean(D))throw new Error(P)}});var JP=J((SE)=>{Object.defineProperty(SE,"__esModule",{value:!0});SE.isPromise=XY;function XY(D){return typeof(D===null||D===void 0?void 0:D.then)==="function"}});var U0=J((LE)=>{Object.defineProperty(LE,"__esModule",{value:!0});LE.isObjectLike=GY;function GY(D){return typeof D=="object"&&D!==null}});var $D=J((BE)=>{Object.defineProperty(BE,"__esModule",{value:!0});BE.invariant=uY;function uY(D,P){if(!Boolean(D))throw new Error(P!=null?P:"Unexpected invariant triggered.")}});var UP=J((YE)=>{Object.defineProperty(YE,"__esModule",{value:!0});YE.getLocation=bY;var QY=$D(),MY=/\r\n|[\n\r]/g;function bY(D,P){let O=0,W=1;for(let E of D.body.matchAll(MY)){if(typeof E.index==="number"||QY.invariant(!1),E.index>=P)break;O=E.index+E[0].length,W+=1}return{line:W,column:P+1-O}}});var L1=J((CE)=>{Object.defineProperty(CE,"__esModule",{value:!0});CE.printLocation=jY;CE.printSourceLocation=HE;var KY=UP();function jY(D){return HE(D.source,KY.getLocation(D.source,D.start))}function HE(D,P){let O=D.locationOffset.column-1,W="".padStart(O)+D.body,E=P.line-1,F=D.locationOffset.line-1,R=P.line+F,S=P.line===1?O:0,L=P.column+S,B=`${D.name}:${R}:${L}\n`,Y=W.split(/\r\n|[\n\r]/g),Z=Y[E];if(Z.length>120){let H=Math.floor(L/80),A=L%80,X=[];for(let I=0;I<Z.length;I+=80)X.push(Z.slice(I,I+80));return B+ZE([[`${R} |`,X[0]],...X.slice(1,H+1).map((I)=>["|",I]),["|","^".padStart(A)],["|",X[H+1]]])}return B+ZE([[`${R-1} |`,Y[E-1]],[`${R} |`,Z],["|","^".padStart(L)],[`${R+1} |`,Y[E+1]]])}function ZE(D){let P=D.filter(([W,E])=>E!==void 0),O=Math.max(...P.map(([W])=>W.length));return P.map(([W,E])=>W.padStart(O)+(E?" "+E:"")).join("\n")}});var T=J((XE)=>{Object.defineProperty(XE,"__esModule",{value:!0});XE.GraphQLError=void 0;XE.formatError=kY;XE.printError=NY;var _Y=U0(),AE=UP(),JE=L1();function TY(D){let P=D[0];if(P==null||"kind"in P||"length"in P)return{nodes:P,source:D[1],positions:D[2],path:D[3],originalError:D[4],extensions:D[5]};return P}class B1 extends Error{constructor(D,...P){var O,W,E;let{nodes:F,source:R,positions:S,path:L,originalError:B,extensions:Y}=TY(P);super(D);this.name="GraphQLError",this.path=L!==null&&L!==void 0?L:void 0,this.originalError=B!==null&&B!==void 0?B:void 0,this.nodes=UE(Array.isArray(F)?F:F?[F]:void 0);let Z=UE((O=this.nodes)===null||O===void 0?void 0:O.map((A)=>A.loc).filter((A)=>A!=null));this.source=R!==null&&R!==void 0?R:Z===null||Z===void 0?void 0:(W=Z[0])===null||W===void 0?void 0:W.source,this.positions=S!==null&&S!==void 0?S:Z===null||Z===void 0?void 0:Z.map((A)=>A.start),this.locations=S&&R?S.map((A)=>AE.getLocation(R,A)):Z===null||Z===void 0?void 0:Z.map((A)=>AE.getLocation(A.source,A.start));let H=_Y.isObjectLike(B===null||B===void 0?void 0:B.extensions)?B===null||B===void 0?void 0:B.extensions:void 0;if(this.extensions=(E=Y!==null&&Y!==void 0?Y:H)!==null&&E!==void 0?E: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}}),B!==null&&B!==void 0&&B.stack)Object.defineProperty(this,"stack",{value:B.stack,writable:!0,configurable:!0});else if(Error.captureStackTrace)Error.captureStackTrace(this,B1);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 P of this.nodes)if(P.loc)D+="\n\n"+JE.printLocation(P.loc)}else if(this.source&&this.locations)for(let P of this.locations)D+="\n\n"+JE.printSourceLocation(this.source,P);return D}toJSON(){let D={message:this.message};if(this.locations!=null)D.locations=this.locations;if(this.path!=null)D.path=this.path;if(this.extensions!=null&&Object.keys(this.extensions).length>0)D.extensions=this.extensions;return D}}XE.GraphQLError=B1;function UE(D){return D===void 0||D.length===0?void 0:D}function NY(D){return D.toString()}function kY(D){return D.toJSON()}});var XP=J((GE)=>{Object.defineProperty(GE,"__esModule",{value:!0});GE.syntaxError=vY;var hY=T();function vY(D,P,O){return new hY.GraphQLError(`Syntax Error: ${O}`,{source:D,positions:[P]})}});var X0=J((QE)=>{Object.defineProperty(QE,"__esModule",{value:!0});QE.Token=QE.QueryDocumentKeys=QE.OperationTypeNode=QE.Location=void 0;QE.isNode=mY;class zE{constructor(D,P,O){this.start=D.start,this.end=P.end,this.startToken=D,this.endToken=P,this.source=O}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}QE.Location=zE;class uE{constructor(D,P,O,W,E,F){this.kind=D,this.start=P,this.end=O,this.line=W,this.column=E,this.value=F,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}QE.Token=uE;var IE={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};QE.QueryDocumentKeys=IE;var yY=new Set(Object.keys(IE));function mY(D){let P=D===null||D===void 0?void 0:D.kind;return typeof P==="string"&&yY.has(P)}var Y1;QE.OperationTypeNode=Y1;(function(D){D.QUERY="query",D.MUTATION="mutation",D.SUBSCRIPTION="subscription"})(Y1||(QE.OperationTypeNode=Y1={}))});var $2=J((wE)=>{Object.defineProperty(wE,"__esModule",{value:!0});wE.DirectiveLocation=void 0;var Z1;wE.DirectiveLocation=Z1;(function(D){D.QUERY="QUERY",D.MUTATION="MUTATION",D.SUBSCRIPTION="SUBSCRIPTION",D.FIELD="FIELD",D.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",D.FRAGMENT_SPREAD="FRAGMENT_SPREAD",D.INLINE_FRAGMENT="INLINE_FRAGMENT",D.VARIABLE_DEFINITION="VARIABLE_DEFINITION",D.SCHEMA="SCHEMA",D.SCALAR="SCALAR",D.OBJECT="OBJECT",D.FIELD_DEFINITION="FIELD_DEFINITION",D.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",D.INTERFACE="INTERFACE",D.UNION="UNION",D.ENUM="ENUM",D.ENUM_VALUE="ENUM_VALUE",D.INPUT_OBJECT="INPUT_OBJECT",D.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Z1||(wE.DirectiveLocation=Z1={}))});var c=J((KE)=>{Object.defineProperty(KE,"__esModule",{value:!0});KE.Kind=void 0;var C1;KE.Kind=C1;(function(D){D.NAME="Name",D.DOCUMENT="Document",D.OPERATION_DEFINITION="OperationDefinition",D.VARIABLE_DEFINITION="VariableDefinition",D.SELECTION_SET="SelectionSet",D.FIELD="Field",D.ARGUMENT="Argument",D.FRAGMENT_SPREAD="FragmentSpread",D.INLINE_FRAGMENT="InlineFragment",D.FRAGMENT_DEFINITION="FragmentDefinition",D.VARIABLE="Variable",D.INT="IntValue",D.FLOAT="FloatValue",D.STRING="StringValue",D.BOOLEAN="BooleanValue",D.NULL="NullValue",D.ENUM="EnumValue",D.LIST="ListValue",D.OBJECT="ObjectValue",D.OBJECT_FIELD="ObjectField",D.DIRECTIVE="Directive",D.NAMED_TYPE="NamedType",D.LIST_TYPE="ListType",D.NON_NULL_TYPE="NonNullType",D.SCHEMA_DEFINITION="SchemaDefinition",D.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",D.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",D.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",D.FIELD_DEFINITION="FieldDefinition",D.INPUT_VALUE_DEFINITION="InputValueDefinition",D.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",D.UNION_TYPE_DEFINITION="UnionTypeDefinition",D.ENUM_TYPE_DEFINITION="EnumTypeDefinition",D.ENUM_VALUE_DEFINITION="EnumValueDefinition",D.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",D.DIRECTIVE_DEFINITION="DirectiveDefinition",D.SCHEMA_EXTENSION="SchemaExtension",D.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",D.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",D.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",D.UNION_TYPE_EXTENSION="UnionTypeExtension",D.ENUM_TYPE_EXTENSION="EnumTypeExtension",D.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(C1||(KE.Kind=C1={}))});var qP=J(($E)=>{Object.defineProperty($E,"__esModule",{value:!0});$E.isDigit=jE;$E.isLetter=J1;$E.isNameContinue=aY;$E.isNameStart=pY;$E.isWhiteSpace=dY;function dY(D){return D===9||D===32}function jE(D){return D>=48&&D<=57}function J1(D){return D>=97&&D<=122||D>=65&&D<=90}function pY(D){return J1(D)||D===95}function aY(D){return J1(D)||jE(D)||D===95}});var Z8=J((VE)=>{Object.defineProperty(VE,"__esModule",{value:!0});VE.dedentBlockStringLines=eY;VE.isPrintableAsBlockString=PZ;VE.printBlockString=OZ;var U1=qP();function eY(D){var P;let O=Number.MAX_SAFE_INTEGER,W=null,E=-1;for(let R=0;R<D.length;++R){var F;let S=D[R],L=DZ(S);if(L===S.length)continue;if(W=(F=W)!==null&&F!==void 0?F:R,E=R,R!==0&&L<O)O=L}return D.map((R,S)=>S===0?R:R.slice(O)).slice((P=W)!==null&&P!==void 0?P:0,E+1)}function DZ(D){let P=0;while(P<D.length&&U1.isWhiteSpace(D.charCodeAt(P)))++P;return P}function PZ(D){if(D==="")return!0;let P=!0,O=!1,W=!0,E=!1;for(let F=0;F<D.length;++F)switch(D.codePointAt(F)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(P&&!E)return!1;E=!0,P=!0,O=!1;break;case 9:case 32:O||(O=P);break;default:W&&(W=O),P=!1}if(P)return!1;if(W&&E)return!1;return!0}function OZ(D,P){let O=D.replace(/"""/g,'\\"""'),W=O.split(/\r\n|[\n\r]/g),E=W.length===1,F=W.length>1&&W.slice(1).every((A)=>A.length===0||U1.isWhiteSpace(A.charCodeAt(0))),R=O.endsWith('\\"""'),S=D.endsWith('"')&&!R,L=D.endsWith("\\"),B=S||L,Y=!(P!==null&&P!==void 0&&P.minimize)&&(!E||D.length>70||B||F||R),Z="",H=E&&U1.isWhiteSpace(D.charCodeAt(0));if(Y&&!H||F)Z+="\n";if(Z+=O,Y||B)Z+="\n";return'"""'+Z+'"""'}});var H8=J((_E)=>{Object.defineProperty(_E,"__esModule",{value:!0});_E.TokenKind=void 0;var X1;_E.TokenKind=X1;(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"})(X1||(_E.TokenKind=X1={}))});var zP=J((hE)=>{Object.defineProperty(hE,"__esModule",{value:!0});hE.Lexer=void 0;hE.isPunctuatorTokenKind=SZ;var R0=XP(),NE=X0(),RZ=Z8(),W2=qP(),g=H8();class kE{constructor(D){let P=new NE.Token(g.TokenKind.SOF,0,0,0,0);this.source=D,this.lastToken=P,this.token=P,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!==g.TokenKind.EOF)do if(D.next)D=D.next;else{let P=LZ(this,D.end);D.next=P,P.prev=D,D=P}while(D.kind===g.TokenKind.COMMENT);return D}}hE.Lexer=kE;function SZ(D){return D===g.TokenKind.BANG||D===g.TokenKind.DOLLAR||D===g.TokenKind.AMP||D===g.TokenKind.PAREN_L||D===g.TokenKind.PAREN_R||D===g.TokenKind.SPREAD||D===g.TokenKind.COLON||D===g.TokenKind.EQUALS||D===g.TokenKind.AT||D===g.TokenKind.BRACKET_L||D===g.TokenKind.BRACKET_R||D===g.TokenKind.BRACE_L||D===g.TokenKind.PIPE||D===g.TokenKind.BRACE_R}function V2(D){return D>=0&&D<=55295||D>=57344&&D<=1114111}function GP(D,P){return xE(D.charCodeAt(P))&&fE(D.charCodeAt(P+1))}function xE(D){return D>=55296&&D<=56319}function fE(D){return D>=56320&&D<=57343}function E2(D,P){let O=D.source.body.codePointAt(P);if(O===void 0)return g.TokenKind.EOF;else if(O>=32&&O<=126){let W=String.fromCodePoint(O);return W==='"'?"'\"'":`"${W}"`}return"U+"+O.toString(16).toUpperCase().padStart(4,"0")}function qD(D,P,O,W,E){let F=D.line,R=1+O-D.lineStart;return new NE.Token(P,O,W,F,R,E)}function LZ(D,P){let O=D.source.body,W=O.length,E=P;while(E<W){let F=O.charCodeAt(E);switch(F){case 65279:case 9:case 32:case 44:++E;continue;case 10:++E,++D.line,D.lineStart=E;continue;case 13:if(O.charCodeAt(E+1)===10)E+=2;else++E;++D.line,D.lineStart=E;continue;case 35:return BZ(D,E);case 33:return qD(D,g.TokenKind.BANG,E,E+1);case 36:return qD(D,g.TokenKind.DOLLAR,E,E+1);case 38:return qD(D,g.TokenKind.AMP,E,E+1);case 40:return qD(D,g.TokenKind.PAREN_L,E,E+1);case 41:return qD(D,g.TokenKind.PAREN_R,E,E+1);case 46:if(O.charCodeAt(E+1)===46&&O.charCodeAt(E+2)===46)return qD(D,g.TokenKind.SPREAD,E,E+3);break;case 58:return qD(D,g.TokenKind.COLON,E,E+1);case 61:return qD(D,g.TokenKind.EQUALS,E,E+1);case 64:return qD(D,g.TokenKind.AT,E,E+1);case 91:return qD(D,g.TokenKind.BRACKET_L,E,E+1);case 93:return qD(D,g.TokenKind.BRACKET_R,E,E+1);case 123:return qD(D,g.TokenKind.BRACE_L,E,E+1);case 124:return qD(D,g.TokenKind.PIPE,E,E+1);case 125:return qD(D,g.TokenKind.BRACE_R,E,E+1);case 34:if(O.charCodeAt(E+1)===34&&O.charCodeAt(E+2)===34)return JZ(D,E);return ZZ(D,E)}if(W2.isDigit(F)||F===45)return YZ(D,E,F);if(W2.isNameStart(F))return UZ(D,E);throw R0.syntaxError(D.source,E,F===39?'Unexpected single quote character (\'), did you mean to use a double quote (")?':V2(F)||GP(O,E)?`Unexpected character: ${E2(D,E)}.`:`Invalid character: ${E2(D,E)}.`)}return qD(D,g.TokenKind.EOF,W,W)}function BZ(D,P){let O=D.source.body,W=O.length,E=P+1;while(E<W){let F=O.charCodeAt(E);if(F===10||F===13)break;if(V2(F))++E;else if(GP(O,E))E+=2;else break}return qD(D,g.TokenKind.COMMENT,P,E,O.slice(P+1,E))}function YZ(D,P,O){let W=D.source.body,E=P,F=O,R=!1;if(F===45)F=W.charCodeAt(++E);if(F===48){if(F=W.charCodeAt(++E),W2.isDigit(F))throw R0.syntaxError(D.source,E,`Invalid number, unexpected digit after 0: ${E2(D,E)}.`)}else E=G1(D,E,F),F=W.charCodeAt(E);if(F===46)R=!0,F=W.charCodeAt(++E),E=G1(D,E,F),F=W.charCodeAt(E);if(F===69||F===101){if(R=!0,F=W.charCodeAt(++E),F===43||F===45)F=W.charCodeAt(++E);E=G1(D,E,F),F=W.charCodeAt(E)}if(F===46||W2.isNameStart(F))throw R0.syntaxError(D.source,E,`Invalid number, expected digit but got: ${E2(D,E)}.`);return qD(D,R?g.TokenKind.FLOAT:g.TokenKind.INT,P,E,W.slice(P,E))}function G1(D,P,O){if(!W2.isDigit(O))throw R0.syntaxError(D.source,P,`Invalid number, expected digit but got: ${E2(D,P)}.`);let W=D.source.body,E=P+1;while(W2.isDigit(W.charCodeAt(E)))++E;return E}function ZZ(D,P){let O=D.source.body,W=O.length,E=P+1,F=E,R="";while(E<W){let S=O.charCodeAt(E);if(S===34)return R+=O.slice(F,E),qD(D,g.TokenKind.STRING,P,E+1,R);if(S===92){R+=O.slice(F,E);let L=O.charCodeAt(E+1)===117?O.charCodeAt(E+2)===123?HZ(D,E):CZ(D,E):AZ(D,E);R+=L.value,E+=L.size,F=E;continue}if(S===10||S===13)break;if(V2(S))++E;else if(GP(O,E))E+=2;else throw R0.syntaxError(D.source,E,`Invalid character within String: ${E2(D,E)}.`)}throw R0.syntaxError(D.source,E,"Unterminated string.")}function HZ(D,P){let O=D.source.body,W=0,E=3;while(E<12){let F=O.charCodeAt(P+E++);if(F===125){if(E<5||!V2(W))break;return{value:String.fromCodePoint(W),size:E}}if(W=W<<4|C8(F),W<0)break}throw R0.syntaxError(D.source,P,`Invalid Unicode escape sequence: "${O.slice(P,P+E)}".`)}function CZ(D,P){let O=D.source.body,W=TE(O,P+2);if(V2(W))return{value:String.fromCodePoint(W),size:6};if(xE(W)){if(O.charCodeAt(P+6)===92&&O.charCodeAt(P+7)===117){let E=TE(O,P+8);if(fE(E))return{value:String.fromCodePoint(W,E),size:12}}}throw R0.syntaxError(D.source,P,`Invalid Unicode escape sequence: "${O.slice(P,P+6)}".`)}function TE(D,P){return C8(D.charCodeAt(P))<<12|C8(D.charCodeAt(P+1))<<8|C8(D.charCodeAt(P+2))<<4|C8(D.charCodeAt(P+3))}function C8(D){return D>=48&&D<=57?D-48:D>=65&&D<=70?D-55:D>=97&&D<=102?D-87:-1}function AZ(D,P){let O=D.source.body;switch(O.charCodeAt(P+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:`
|
|
9
|
-
`,size:2};case 114:return{value:`\r`,size:2};case 116:return{value:"\t",size:2}}throw
|
|
7
|
+
- ${Y}`;throw new Error(Z)}else if(B.code==="EACCES")throw new Error(`'${F}' not executable`);if(!L)RD.exit(1);else{let Y=new R1(1,"commander.executeSubCommandAsync","(error)");Y.nestedError=B,L(Y)}}),this.runningCommand=S}_dispatchSubcommand(D,P,O){let W=this._findCommand(D);if(!W)this.help({error:!0});let E;return E=this._chainOrCallSubCommandHook(E,W,"preSubcommand"),E=this._chainOrCall(E,()=>{if(W._executableHandler)this._executeSubCommand(W,P.concat(O));else return W._parseCommand(P,O)}),E}_dispatchHelpCommand(D){if(!D)this.help();let P=this._findCommand(D);if(P&&!P._executableHandler)P.help();return this._dispatchSubcommand(D,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((D,P)=>{if(D.required&&this.args[P]==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=(O,W,E)=>{let F=W;if(W!==null&&O.parseArg){let R=`error: command-argument value '${W}' is invalid for argument '${O.name()}'.`;F=this._callParseArg(O,W,E,R)}return F};this._checkNumberOfArguments();let P=[];this.registeredArguments.forEach((O,W)=>{let E=O.defaultValue;if(O.variadic){if(W<this.args.length){if(E=this.args.slice(W),O.parseArg)E=E.reduce((F,R)=>{return D(O,R,F)},O.defaultValue)}else if(E===void 0)E=[]}else if(W<this.args.length){if(E=this.args[W],O.parseArg)E=D(O,E,O.defaultValue)}P[W]=E}),this.processedArgs=P}_chainOrCall(D,P){if(D&&D.then&&typeof D.then==="function")return D.then(()=>P());return P()}_chainOrCallHooks(D,P){let O=D,W=[];if(this._getCommandAndAncestors().reverse().filter((E)=>E._lifeCycleHooks[P]!==void 0).forEach((E)=>{E._lifeCycleHooks[P].forEach((F)=>{W.push({hookedCommand:E,callback:F})})}),P==="postAction")W.reverse();return W.forEach((E)=>{O=this._chainOrCall(O,()=>{return E.callback(E.hookedCommand,this)})}),O}_chainOrCallSubCommandHook(D,P,O){let W=D;if(this._lifeCycleHooks[O]!==void 0)this._lifeCycleHooks[O].forEach((E)=>{W=this._chainOrCall(W,()=>{return E(this,P)})});return W}_parseCommand(D,P){let O=this.parseOptions(P);if(this._parseOptionsEnv(),this._parseOptionsImplied(),D=D.concat(O.operands),P=O.unknown,this.args=D.concat(P),D&&this._findCommand(D[0]))return this._dispatchSubcommand(D[0],D.slice(1),P);if(this._hasImplicitHelpCommand()&&D[0]===this._helpCommandName)return this._dispatchHelpCommand(D[1]);if(this._defaultCommandName)return i6(this,P),this._dispatchSubcommand(this._defaultCommandName,D,P);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});i6(this,O.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let W=()=>{if(O.unknown.length>0)this.unknownOption(O.unknown[0])},E=`command:${this.name()}`;if(this._actionHandler){W(),this._processArguments();let F;if(F=this._chainOrCallHooks(F,"preAction"),F=this._chainOrCall(F,()=>this._actionHandler(this.processedArgs)),this.parent)F=this._chainOrCall(F,()=>{this.parent.emit(E,D,P)});return F=this._chainOrCallHooks(F,"postAction"),F}if(this.parent&&this.parent.listenerCount(E))W(),this._processArguments(),this.parent.emit(E,D,P);else if(D.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",D,P);if(this.listenerCount("command:*"))this.emit("command:*",D,P);else if(this.commands.length)this.unknownCommand();else W(),this._processArguments()}else if(this.commands.length)W(),this.help({error:!0});else W(),this._processArguments()}_findCommand(D){if(!D)return;return this.commands.find((P)=>P._name===D||P._aliases.includes(D))}_findOption(D){return this.options.find((P)=>P.is(D))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((D)=>{D.options.forEach((P)=>{if(P.mandatory&&D.getOptionValue(P.attributeName())===void 0)D.missingMandatoryOptionValue(P)})})}_checkForConflictingLocalOptions(){let D=this.options.filter((O)=>{let W=O.attributeName();if(this.getOptionValue(W)===void 0)return!1;return this.getOptionValueSource(W)!=="default"});D.filter((O)=>O.conflictsWith.length>0).forEach((O)=>{let W=D.find((E)=>O.conflictsWith.includes(E.attributeName()));if(W)this._conflictingOption(O,W)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((D)=>{D._checkForConflictingLocalOptions()})}parseOptions(D){let P=[],O=[],W=P,E=D.slice();function F(S){return S.length>1&&S[0]==="-"}let R=null;while(E.length){let S=E.shift();if(S==="--"){if(W===O)W.push(S);W.push(...E);break}if(R&&!F(S)){this.emit(`option:${R.name()}`,S);continue}if(R=null,F(S)){let L=this._findOption(S);if(L){if(L.required){let B=E.shift();if(B===void 0)this.optionMissingArgument(L);this.emit(`option:${L.name()}`,B)}else if(L.optional){let B=null;if(E.length>0&&!F(E[0]))B=E.shift();this.emit(`option:${L.name()}`,B)}else this.emit(`option:${L.name()}`);R=L.variadic?L:null;continue}}if(S.length>2&&S[0]==="-"&&S[1]!=="-"){let L=this._findOption(`-${S[1]}`);if(L){if(L.required||L.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${L.name()}`,S.slice(2));else this.emit(`option:${L.name()}`),E.unshift(`-${S.slice(2)}`);continue}}if(/^--[^=]+=/.test(S)){let L=S.indexOf("="),B=this._findOption(S.slice(0,L));if(B&&(B.required||B.optional)){this.emit(`option:${B.name()}`,S.slice(L+1));continue}}if(F(S))W=O;if((this._enablePositionalOptions||this._passThroughOptions)&&P.length===0&&O.length===0){if(this._findCommand(S)){if(P.push(S),E.length>0)O.push(...E);break}else if(S===this._helpCommandName&&this._hasImplicitHelpCommand()){if(P.push(S),E.length>0)P.push(...E);break}else if(this._defaultCommandName){if(O.push(S),E.length>0)O.push(...E);break}}if(this._passThroughOptions){if(W.push(S),E.length>0)W.push(...E);break}W.push(S)}return{operands:P,unknown:O}}opts(){if(this._storeOptionsAsProperties){let D={},P=this.options.length;for(let O=0;O<P;O++){let W=this.options[O].attributeName();D[W]=W===this._versionOptionName?this._version:this[W]}return D}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((D,P)=>Object.assign(D,P.opts()),{})}error(D,P){if(this._outputConfiguration.outputError(`${D}\n`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`);else if(this._showHelpAfterError)this._outputConfiguration.writeErr("\n"),this.outputHelp({error:!0});let O=P||{},W=O.exitCode||1,E=O.code||"commander.error";this._exit(W,E,D)}_parseOptionsEnv(){this.options.forEach((D)=>{if(D.envVar&&D.envVar in RD.env){let P=D.attributeName();if(this.getOptionValue(P)===void 0||["default","config","env"].includes(this.getOptionValueSource(P)))if(D.required||D.optional)this.emit(`optionEnv:${D.name()}`,RD.env[D.envVar]);else this.emit(`optionEnv:${D.name()}`)}})}_parseOptionsImplied(){let D=new QY(this.options),P=(O)=>{return this.getOptionValue(O)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(O))};this.options.filter((O)=>O.implied!==void 0&&P(O.attributeName())&&D.valueFromOption(this.getOptionValue(O.attributeName()),O)).forEach((O)=>{Object.keys(O.implied).filter((W)=>!P(W)).forEach((W)=>{this.setOptionValueWithSource(W,O.implied[W],"implied")})})}missingArgument(D){let P=`error: missing required argument '${D}'`;this.error(P,{code:"commander.missingArgument"})}optionMissingArgument(D){let P=`error: option '${D.flags}' argument missing`;this.error(P,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(D){let P=`error: required option '${D.flags}' not specified`;this.error(P,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(D,P){let O=(F)=>{let R=F.attributeName(),S=this.getOptionValue(R),L=this.options.find((Y)=>Y.negate&&R===Y.attributeName()),B=this.options.find((Y)=>!Y.negate&&R===Y.attributeName());if(L&&(L.presetArg===void 0&&S===!1||L.presetArg!==void 0&&S===L.presetArg))return L;return B||F},W=(F)=>{let R=O(F),S=R.attributeName();if(this.getOptionValueSource(S)==="env")return`environment variable '${R.envVar}'`;return`option '${R.flags}'`},E=`error: ${W(D)} cannot be used with ${W(P)}`;this.error(E,{code:"commander.conflictingOption"})}unknownOption(D){if(this._allowUnknownOption)return;let P="";if(D.startsWith("--")&&this._showSuggestionAfterError){let W=[],E=this;do{let F=E.createHelp().visibleOptions(E).filter((R)=>R.long).map((R)=>R.long);W=W.concat(F),E=E.parent}while(E&&!E._enablePositionalOptions);P=s6(D,W)}let O=`error: unknown option '${D}'${P}`;this.error(O,{code:"commander.unknownOption"})}_excessArguments(D){if(this._allowExcessArguments)return;let P=this.registeredArguments.length,O=P===1?"":"s",E=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${P} argument${O} but got ${D.length}.`;this.error(E,{code:"commander.excessArguments"})}unknownCommand(){let D=this.args[0],P="";if(this._showSuggestionAfterError){let W=[];this.createHelp().visibleCommands(this).forEach((E)=>{if(W.push(E.name()),E.alias())W.push(E.alias())}),P=s6(D,W)}let O=`error: unknown command '${D}'${P}`;this.error(O,{code:"commander.unknownCommand"})}version(D,P,O){if(D===void 0)return this._version;this._version=D,P=P||"-V, --version",O=O||"output the version number";let W=this.createOption(P,O);return this._versionOptionName=W.attributeName(),this.options.push(W),this.on("option:"+W.name(),()=>{this._outputConfiguration.writeOut(`${D}\n`),this._exit(0,"commander.version",D)}),this}description(D,P){if(D===void 0&&P===void 0)return this._description;if(this._description=D,P)this._argsDescription=P;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 P=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)P=this.commands[this.commands.length-1];if(D===P._name)throw new Error("Command alias can\'t be the same as its name");return P._aliases.push(D),this}aliases(D){if(D===void 0)return this._aliases;return D.forEach((P)=>this.alias(P)),this}usage(D){if(D===void 0){if(this._usage)return this._usage;let P=this.registeredArguments.map((O)=>{return GY(O)});return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?P:[]).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=j0.basename(D,j0.extname(D)),this}executableDir(D){if(D===void 0)return this._executableDir;return this._executableDir=D,this}helpInformation(D){let P=this.createHelp();if(P.helpWidth===void 0)P.helpWidth=D&&D.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth();return P.formatHelp(this,P)}_getHelpContext(D){D=D||{};let P={error:!!D.error},O;if(P.error)O=(W)=>this._outputConfiguration.writeErr(W);else O=(W)=>this._outputConfiguration.writeOut(W);return P.write=D.write||O,P.command=this,P}outputHelp(D){let P;if(typeof D==="function")P=D,D=void 0;let O=this._getHelpContext(D);this._getCommandAndAncestors().reverse().forEach((E)=>E.emit("beforeAllHelp",O)),this.emit("beforeHelp",O);let W=this.helpInformation(O);if(P){if(W=P(W),typeof W!=="string"&&!Buffer.isBuffer(W))throw new Error("outputHelp callback must return a string or a Buffer")}if(O.write(W),this._helpLongFlag)this.emit(this._helpLongFlag);this.emit("afterHelp",O),this._getCommandAndAncestors().forEach((E)=>E.emit("afterAllHelp",O))}helpOption(D,P){if(typeof D==="boolean")return this._hasHelpOption=D,this;this._helpFlags=D||this._helpFlags,this._helpDescription=P||this._helpDescription;let O=IY(this._helpFlags);return this._helpShortFlag=O.shortFlag,this._helpLongFlag=O.longFlag,this}help(D){this.outputHelp(D);let P=RD.exitCode||0;if(P===0&&D&&typeof D!=="function"&&D.error)P=1;this._exit(P,"commander.help","(outputHelp)")}addHelpText(D,P){let O=["beforeAll","before","after","afterAll"];if(!O.includes(D))throw new Error(`Unexpected value for position to addHelpText.
|
|
8
|
+
Expecting one of '${O.join("', '")}'`);let W=`${D}Help`;return this.on(W,(E)=>{let F;if(typeof P==="function")F=P({error:E.error,command:E.command});else F=P;if(F)E.write(`${F}\n`)}),this}}function i6(D,P){if(D._hasHelpOption&&P.find((W)=>W===D._helpLongFlag||W===D._helpShortFlag))D.outputHelp(),D._exit(0,"commander.helpDisplayed","(outputHelp)")}function o6(D){return D.map((P)=>{if(!P.startsWith("--inspect"))return P;let O,W="127.0.0.1",E="9229",F;if((F=P.match(/^(--inspect(-brk)?)$/))!==null)O=F[1];else if((F=P.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(O=F[1],/^\d+$/.test(F[3]))E=F[3];else W=F[3];else if((F=P.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)O=F[1],W=F[3],E=F[4];if(O&&E!=="0")return`${O}=${W}:${parseInt(E)+1}`;return P})}MY.Command=S1});var WE=J((W0,OE)=>{var{Argument:wY}=HP(),{Command:DE}=e6(),{CommanderError:KY,InvalidArgumentError:PE}=L8(),{Help:jY}=O1(),{Option:$Y}=W1();W0=OE.exports=new DE;W0.program=W0;W0.Command=DE;W0.Option=$Y;W0.Argument=wY;W0.Help=jY;W0.CommanderError=KY;W0.InvalidArgumentError=PE;W0.InvalidOptionArgumentError=PE});var LE=J((RE)=>{Object.defineProperty(RE,"__esModule",{value:!0});RE.versionInfo=RE.version=void 0;var VY="16.9.0";RE.version=VY;var _Y=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});RE.versionInfo=_Y});var ND=J((BE)=>{Object.defineProperty(BE,"__esModule",{value:!0});BE.devAssert=NY;function NY(D,P){if(!Boolean(D))throw new Error(P)}});var AP=J((YE)=>{Object.defineProperty(YE,"__esModule",{value:!0});YE.isPromise=xY;function xY(D){return typeof(D===null||D===void 0?void 0:D.then)==="function"}});var A0=J((ZE)=>{Object.defineProperty(ZE,"__esModule",{value:!0});ZE.isObjectLike=vY;function vY(D){return typeof D=="object"&&D!==null}});var jD=J((HE)=>{Object.defineProperty(HE,"__esModule",{value:!0});HE.invariant=gY;function gY(D,P){if(!Boolean(D))throw new Error(P!=null?P:"Unexpected invariant triggered.")}});var CP=J((AE)=>{Object.defineProperty(AE,"__esModule",{value:!0});AE.getLocation=lY;var mY=jD(),cY=/\r\n|[\n\r]/g;function lY(D,P){let O=0,W=1;for(let E of D.body.matchAll(cY)){if(typeof E.index==="number"||mY.invariant(!1),E.index>=P)break;O=E.index+E[0].length,W+=1}return{line:W,column:P+1-O}}});var L1=J((UE)=>{Object.defineProperty(UE,"__esModule",{value:!0});UE.printLocation=pY;UE.printSourceLocation=JE;var dY=CP();function pY(D){return JE(D.source,dY.getLocation(D.source,D.start))}function JE(D,P){let O=D.locationOffset.column-1,W="".padStart(O)+D.body,E=P.line-1,F=D.locationOffset.line-1,R=P.line+F,S=P.line===1?O:0,L=P.column+S,B=`${D.name}:${R}:${L}\n`,Y=W.split(/\r\n|[\n\r]/g),Z=Y[E];if(Z.length>120){let H=Math.floor(L/80),C=L%80,X=[];for(let I=0;I<Z.length;I+=80)X.push(Z.slice(I,I+80));return B+CE([[`${R} |`,X[0]],...X.slice(1,H+1).map((I)=>["|",I]),["|","^".padStart(C)],["|",X[H+1]]])}return B+CE([[`${R-1} |`,Y[E-1]],[`${R} |`,Z],["|","^".padStart(L)],[`${R+1} |`,Y[E+1]]])}function CE(D){let P=D.filter(([W,E])=>E!==void 0),O=Math.max(...P.map(([W])=>W.length));return P.map(([W,E])=>W.padStart(O)+(E?" "+E:"")).join("\n")}});var T=J((GE)=>{Object.defineProperty(GE,"__esModule",{value:!0});GE.GraphQLError=void 0;GE.formatError=oY;GE.printError=iY;var tY=A0(),XE=CP(),qE=L1();function sY(D){let P=D[0];if(P==null||"kind"in P||"length"in P)return{nodes:P,source:D[1],positions:D[2],path:D[3],originalError:D[4],extensions:D[5]};return P}class B1 extends Error{constructor(D,...P){var O,W,E;let{nodes:F,source:R,positions:S,path:L,originalError:B,extensions:Y}=sY(P);super(D);this.name="GraphQLError",this.path=L!==null&&L!==void 0?L:void 0,this.originalError=B!==null&&B!==void 0?B:void 0,this.nodes=zE(Array.isArray(F)?F:F?[F]:void 0);let Z=zE((O=this.nodes)===null||O===void 0?void 0:O.map((C)=>C.loc).filter((C)=>C!=null));this.source=R!==null&&R!==void 0?R:Z===null||Z===void 0?void 0:(W=Z[0])===null||W===void 0?void 0:W.source,this.positions=S!==null&&S!==void 0?S:Z===null||Z===void 0?void 0:Z.map((C)=>C.start),this.locations=S&&R?S.map((C)=>XE.getLocation(R,C)):Z===null||Z===void 0?void 0:Z.map((C)=>XE.getLocation(C.source,C.start));let H=tY.isObjectLike(B===null||B===void 0?void 0:B.extensions)?B===null||B===void 0?void 0:B.extensions:void 0;if(this.extensions=(E=Y!==null&&Y!==void 0?Y:H)!==null&&E!==void 0?E: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}}),B!==null&&B!==void 0&&B.stack)Object.defineProperty(this,"stack",{value:B.stack,writable:!0,configurable:!0});else if(Error.captureStackTrace)Error.captureStackTrace(this,B1);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 P of this.nodes)if(P.loc)D+="\n\n"+qE.printLocation(P.loc)}else if(this.source&&this.locations)for(let P of this.locations)D+="\n\n"+qE.printSourceLocation(this.source,P);return D}toJSON(){let D={message:this.message};if(this.locations!=null)D.locations=this.locations;if(this.path!=null)D.path=this.path;if(this.extensions!=null&&Object.keys(this.extensions).length>0)D.extensions=this.extensions;return D}}GE.GraphQLError=B1;function zE(D){return D===void 0||D.length===0?void 0:D}function iY(D){return D.toString()}function oY(D){return D.toJSON()}});var JP=J((IE)=>{Object.defineProperty(IE,"__esModule",{value:!0});IE.syntaxError=OZ;var PZ=T();function OZ(D,P,O){return new PZ.GraphQLError(`Syntax Error: ${O}`,{source:D,positions:[P]})}});var C0=J((wE)=>{Object.defineProperty(wE,"__esModule",{value:!0});wE.Token=wE.QueryDocumentKeys=wE.OperationTypeNode=wE.Location=void 0;wE.isNode=FZ;class QE{constructor(D,P,O){this.start=D.start,this.end=P.end,this.startToken=D,this.endToken=P,this.source=O}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}wE.Location=QE;class ME{constructor(D,P,O,W,E,F){this.kind=D,this.start=P,this.end=O,this.line=W,this.column=E,this.value=F,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}wE.Token=ME;var bE={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};wE.QueryDocumentKeys=bE;var EZ=new Set(Object.keys(bE));function FZ(D){let P=D===null||D===void 0?void 0:D.kind;return typeof P==="string"&&EZ.has(P)}var Y1;wE.OperationTypeNode=Y1;(function(D){D.QUERY="query",D.MUTATION="mutation",D.SUBSCRIPTION="subscription"})(Y1||(wE.OperationTypeNode=Y1={}))});var j2=J(($E)=>{Object.defineProperty($E,"__esModule",{value:!0});$E.DirectiveLocation=void 0;var Z1;$E.DirectiveLocation=Z1;(function(D){D.QUERY="QUERY",D.MUTATION="MUTATION",D.SUBSCRIPTION="SUBSCRIPTION",D.FIELD="FIELD",D.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",D.FRAGMENT_SPREAD="FRAGMENT_SPREAD",D.INLINE_FRAGMENT="INLINE_FRAGMENT",D.VARIABLE_DEFINITION="VARIABLE_DEFINITION",D.SCHEMA="SCHEMA",D.SCALAR="SCALAR",D.OBJECT="OBJECT",D.FIELD_DEFINITION="FIELD_DEFINITION",D.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",D.INTERFACE="INTERFACE",D.UNION="UNION",D.ENUM="ENUM",D.ENUM_VALUE="ENUM_VALUE",D.INPUT_OBJECT="INPUT_OBJECT",D.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Z1||($E.DirectiveLocation=Z1={}))});var c=J((VE)=>{Object.defineProperty(VE,"__esModule",{value:!0});VE.Kind=void 0;var A1;VE.Kind=A1;(function(D){D.NAME="Name",D.DOCUMENT="Document",D.OPERATION_DEFINITION="OperationDefinition",D.VARIABLE_DEFINITION="VariableDefinition",D.SELECTION_SET="SelectionSet",D.FIELD="Field",D.ARGUMENT="Argument",D.FRAGMENT_SPREAD="FragmentSpread",D.INLINE_FRAGMENT="InlineFragment",D.FRAGMENT_DEFINITION="FragmentDefinition",D.VARIABLE="Variable",D.INT="IntValue",D.FLOAT="FloatValue",D.STRING="StringValue",D.BOOLEAN="BooleanValue",D.NULL="NullValue",D.ENUM="EnumValue",D.LIST="ListValue",D.OBJECT="ObjectValue",D.OBJECT_FIELD="ObjectField",D.DIRECTIVE="Directive",D.NAMED_TYPE="NamedType",D.LIST_TYPE="ListType",D.NON_NULL_TYPE="NonNullType",D.SCHEMA_DEFINITION="SchemaDefinition",D.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",D.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",D.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",D.FIELD_DEFINITION="FieldDefinition",D.INPUT_VALUE_DEFINITION="InputValueDefinition",D.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",D.UNION_TYPE_DEFINITION="UnionTypeDefinition",D.ENUM_TYPE_DEFINITION="EnumTypeDefinition",D.ENUM_VALUE_DEFINITION="EnumValueDefinition",D.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",D.DIRECTIVE_DEFINITION="DirectiveDefinition",D.SCHEMA_EXTENSION="SchemaExtension",D.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",D.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",D.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",D.UNION_TYPE_EXTENSION="UnionTypeExtension",D.ENUM_TYPE_EXTENSION="EnumTypeExtension",D.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(A1||(VE.Kind=A1={}))});var UP=J((TE)=>{Object.defineProperty(TE,"__esModule",{value:!0});TE.isDigit=_E;TE.isLetter=J1;TE.isNameContinue=ZZ;TE.isNameStart=YZ;TE.isWhiteSpace=BZ;function BZ(D){return D===9||D===32}function _E(D){return D>=48&&D<=57}function J1(D){return D>=97&&D<=122||D>=65&&D<=90}function YZ(D){return J1(D)||D===95}function ZZ(D){return J1(D)||_E(D)||D===95}});var B8=J((NE)=>{Object.defineProperty(NE,"__esModule",{value:!0});NE.dedentBlockStringLines=XZ;NE.isPrintableAsBlockString=zZ;NE.printBlockString=GZ;var U1=UP();function XZ(D){var P;let O=Number.MAX_SAFE_INTEGER,W=null,E=-1;for(let R=0;R<D.length;++R){var F;let S=D[R],L=qZ(S);if(L===S.length)continue;if(W=(F=W)!==null&&F!==void 0?F:R,E=R,R!==0&&L<O)O=L}return D.map((R,S)=>S===0?R:R.slice(O)).slice((P=W)!==null&&P!==void 0?P:0,E+1)}function qZ(D){let P=0;while(P<D.length&&U1.isWhiteSpace(D.charCodeAt(P)))++P;return P}function zZ(D){if(D==="")return!0;let P=!0,O=!1,W=!0,E=!1;for(let F=0;F<D.length;++F)switch(D.codePointAt(F)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(P&&!E)return!1;E=!0,P=!0,O=!1;break;case 9:case 32:O||(O=P);break;default:W&&(W=O),P=!1}if(P)return!1;if(W&&E)return!1;return!0}function GZ(D,P){let O=D.replace(/"""/g,'\\"""'),W=O.split(/\r\n|[\n\r]/g),E=W.length===1,F=W.length>1&&W.slice(1).every((C)=>C.length===0||U1.isWhiteSpace(C.charCodeAt(0))),R=O.endsWith('\\"""'),S=D.endsWith('"')&&!R,L=D.endsWith("\\"),B=S||L,Y=!(P!==null&&P!==void 0&&P.minimize)&&(!E||D.length>70||B||F||R),Z="",H=E&&U1.isWhiteSpace(D.charCodeAt(0));if(Y&&!H||F)Z+="\n";if(Z+=O,Y||B)Z+="\n";return'"""'+Z+'"""'}});var Y8=J((kE)=>{Object.defineProperty(kE,"__esModule",{value:!0});kE.TokenKind=void 0;var X1;kE.TokenKind=X1;(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"})(X1||(kE.TokenKind=X1={}))});var qP=J((yE)=>{Object.defineProperty(yE,"__esModule",{value:!0});yE.Lexer=void 0;yE.isPunctuatorTokenKind=bZ;var E0=JP(),fE=C0(),MZ=B8(),P2=UP(),g=Y8();class vE{constructor(D){let P=new fE.Token(g.TokenKind.SOF,0,0,0,0);this.source=D,this.lastToken=P,this.token=P,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!==g.TokenKind.EOF)do if(D.next)D=D.next;else{let P=wZ(this,D.end);D.next=P,P.prev=D,D=P}while(D.kind===g.TokenKind.COMMENT);return D}}yE.Lexer=vE;function bZ(D){return D===g.TokenKind.BANG||D===g.TokenKind.DOLLAR||D===g.TokenKind.AMP||D===g.TokenKind.PAREN_L||D===g.TokenKind.PAREN_R||D===g.TokenKind.SPREAD||D===g.TokenKind.COLON||D===g.TokenKind.EQUALS||D===g.TokenKind.AT||D===g.TokenKind.BRACKET_L||D===g.TokenKind.BRACKET_R||D===g.TokenKind.BRACE_L||D===g.TokenKind.PIPE||D===g.TokenKind.BRACE_R}function $2(D){return D>=0&&D<=55295||D>=57344&&D<=1114111}function XP(D,P){return hE(D.charCodeAt(P))&&gE(D.charCodeAt(P+1))}function hE(D){return D>=55296&&D<=56319}function gE(D){return D>=56320&&D<=57343}function O2(D,P){let O=D.source.body.codePointAt(P);if(O===void 0)return g.TokenKind.EOF;else if(O>=32&&O<=126){let W=String.fromCodePoint(O);return W==='"'?"'\"'":`"${W}"`}return"U+"+O.toString(16).toUpperCase().padStart(4,"0")}function UD(D,P,O,W,E){let F=D.line,R=1+O-D.lineStart;return new fE.Token(P,O,W,F,R,E)}function wZ(D,P){let O=D.source.body,W=O.length,E=P;while(E<W){let F=O.charCodeAt(E);switch(F){case 65279:case 9:case 32:case 44:++E;continue;case 10:++E,++D.line,D.lineStart=E;continue;case 13:if(O.charCodeAt(E+1)===10)E+=2;else++E;++D.line,D.lineStart=E;continue;case 35:return KZ(D,E);case 33:return UD(D,g.TokenKind.BANG,E,E+1);case 36:return UD(D,g.TokenKind.DOLLAR,E,E+1);case 38:return UD(D,g.TokenKind.AMP,E,E+1);case 40:return UD(D,g.TokenKind.PAREN_L,E,E+1);case 41:return UD(D,g.TokenKind.PAREN_R,E,E+1);case 46:if(O.charCodeAt(E+1)===46&&O.charCodeAt(E+2)===46)return UD(D,g.TokenKind.SPREAD,E,E+3);break;case 58:return UD(D,g.TokenKind.COLON,E,E+1);case 61:return UD(D,g.TokenKind.EQUALS,E,E+1);case 64:return UD(D,g.TokenKind.AT,E,E+1);case 91:return UD(D,g.TokenKind.BRACKET_L,E,E+1);case 93:return UD(D,g.TokenKind.BRACKET_R,E,E+1);case 123:return UD(D,g.TokenKind.BRACE_L,E,E+1);case 124:return UD(D,g.TokenKind.PIPE,E,E+1);case 125:return UD(D,g.TokenKind.BRACE_R,E,E+1);case 34:if(O.charCodeAt(E+1)===34&&O.charCodeAt(E+2)===34)return NZ(D,E);return $Z(D,E)}if(P2.isDigit(F)||F===45)return jZ(D,E,F);if(P2.isNameStart(F))return kZ(D,E);throw E0.syntaxError(D.source,E,F===39?'Unexpected single quote character (\'), did you mean to use a double quote (")?':$2(F)||XP(O,E)?`Unexpected character: ${O2(D,E)}.`:`Invalid character: ${O2(D,E)}.`)}return UD(D,g.TokenKind.EOF,W,W)}function KZ(D,P){let O=D.source.body,W=O.length,E=P+1;while(E<W){let F=O.charCodeAt(E);if(F===10||F===13)break;if($2(F))++E;else if(XP(O,E))E+=2;else break}return UD(D,g.TokenKind.COMMENT,P,E,O.slice(P+1,E))}function jZ(D,P,O){let W=D.source.body,E=P,F=O,R=!1;if(F===45)F=W.charCodeAt(++E);if(F===48){if(F=W.charCodeAt(++E),P2.isDigit(F))throw E0.syntaxError(D.source,E,`Invalid number, unexpected digit after 0: ${O2(D,E)}.`)}else E=z1(D,E,F),F=W.charCodeAt(E);if(F===46)R=!0,F=W.charCodeAt(++E),E=z1(D,E,F),F=W.charCodeAt(E);if(F===69||F===101){if(R=!0,F=W.charCodeAt(++E),F===43||F===45)F=W.charCodeAt(++E);E=z1(D,E,F),F=W.charCodeAt(E)}if(F===46||P2.isNameStart(F))throw E0.syntaxError(D.source,E,`Invalid number, expected digit but got: ${O2(D,E)}.`);return UD(D,R?g.TokenKind.FLOAT:g.TokenKind.INT,P,E,W.slice(P,E))}function z1(D,P,O){if(!P2.isDigit(O))throw E0.syntaxError(D.source,P,`Invalid number, expected digit but got: ${O2(D,P)}.`);let W=D.source.body,E=P+1;while(P2.isDigit(W.charCodeAt(E)))++E;return E}function $Z(D,P){let O=D.source.body,W=O.length,E=P+1,F=E,R="";while(E<W){let S=O.charCodeAt(E);if(S===34)return R+=O.slice(F,E),UD(D,g.TokenKind.STRING,P,E+1,R);if(S===92){R+=O.slice(F,E);let L=O.charCodeAt(E+1)===117?O.charCodeAt(E+2)===123?VZ(D,E):_Z(D,E):TZ(D,E);R+=L.value,E+=L.size,F=E;continue}if(S===10||S===13)break;if($2(S))++E;else if(XP(O,E))E+=2;else throw E0.syntaxError(D.source,E,`Invalid character within String: ${O2(D,E)}.`)}throw E0.syntaxError(D.source,E,"Unterminated string.")}function VZ(D,P){let O=D.source.body,W=0,E=3;while(E<12){let F=O.charCodeAt(P+E++);if(F===125){if(E<5||!$2(W))break;return{value:String.fromCodePoint(W),size:E}}if(W=W<<4|Z8(F),W<0)break}throw E0.syntaxError(D.source,P,`Invalid Unicode escape sequence: "${O.slice(P,P+E)}".`)}function _Z(D,P){let O=D.source.body,W=xE(O,P+2);if($2(W))return{value:String.fromCodePoint(W),size:6};if(hE(W)){if(O.charCodeAt(P+6)===92&&O.charCodeAt(P+7)===117){let E=xE(O,P+8);if(gE(E))return{value:String.fromCodePoint(W,E),size:12}}}throw E0.syntaxError(D.source,P,`Invalid Unicode escape sequence: "${O.slice(P,P+6)}".`)}function xE(D,P){return Z8(D.charCodeAt(P))<<12|Z8(D.charCodeAt(P+1))<<8|Z8(D.charCodeAt(P+2))<<4|Z8(D.charCodeAt(P+3))}function Z8(D){return D>=48&&D<=57?D-48:D>=65&&D<=70?D-55:D>=97&&D<=102?D-87:-1}function TZ(D,P){let O=D.source.body;switch(O.charCodeAt(P+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:`
|
|
9
|
+
`,size:2};case 114:return{value:`\r`,size:2};case 116:return{value:"\t",size:2}}throw E0.syntaxError(D.source,P,`Invalid character escape sequence: "${O.slice(P,P+2)}".`)}function NZ(D,P){let O=D.source.body,W=O.length,E=D.lineStart,F=P+3,R=F,S="",L=[];while(F<W){let B=O.charCodeAt(F);if(B===34&&O.charCodeAt(F+1)===34&&O.charCodeAt(F+2)===34){S+=O.slice(R,F),L.push(S);let Y=UD(D,g.TokenKind.BLOCK_STRING,P,F+3,MZ.dedentBlockStringLines(L).join("\n"));return D.line+=L.length-1,D.lineStart=E,Y}if(B===92&&O.charCodeAt(F+1)===34&&O.charCodeAt(F+2)===34&&O.charCodeAt(F+3)===34){S+=O.slice(R,F),R=F+1,F+=4;continue}if(B===10||B===13){if(S+=O.slice(R,F),L.push(S),B===13&&O.charCodeAt(F+1)===10)F+=2;else++F;S="",R=F,E=F;continue}if($2(B))++F;else if(XP(O,F))F+=2;else throw E0.syntaxError(D.source,F,`Invalid character within String: ${O2(D,F)}.`)}throw E0.syntaxError(D.source,F,"Unterminated string.")}function kZ(D,P){let O=D.source.body,W=O.length,E=P+1;while(E<W){let F=O.charCodeAt(E);if(P2.isNameContinue(F))++E;else break}return UD(D,g.TokenKind.NAME,P,E,O.slice(P,E))}});var i=J((lE)=>{Object.defineProperty(lE,"__esModule",{value:!0});lE.inspect=vZ;var fZ=10,cE=2;function vZ(D){return zP(D,[])}function zP(D,P){switch(typeof D){case"string":return JSON.stringify(D);case"function":return D.name?`[function ${D.name}]`:"[function]";case"object":return hZ(D,P);default:return String(D)}}function hZ(D,P){if(D===null)return"null";if(P.includes(D))return"[Circular]";let O=[...P,D];if(gZ(D)){let W=D.toJSON();if(W!==D)return typeof W==="string"?W:zP(W,O)}else if(Array.isArray(D))return mZ(D,O);return yZ(D,O)}function gZ(D){return typeof D.toJSON==="function"}function yZ(D,P){let O=Object.entries(D);if(O.length===0)return"{}";if(P.length>cE)return"["+cZ(D)+"]";return"{ "+O.map(([E,F])=>E+": "+zP(F,P)).join(", ")+" }"}function mZ(D,P){if(D.length===0)return"[]";if(P.length>cE)return"[Array]";let O=Math.min(fZ,D.length),W=D.length-O,E=[];for(let F=0;F<O;++F)E.push(zP(D[F],P));if(W===1)E.push("... 1 more item");else if(W>1)E.push(`... ${W} more items`);return"["+E.join(", ")+"]"}function cZ(D){let P=Object.prototype.toString.call(D).replace(/^\[object /,"").replace(/]$/,"");if(P==="Object"&&typeof D.constructor==="function"){let O=D.constructor.name;if(typeof O==="string"&&O!=="")return O}return P}});var H8=J((rE)=>{Object.defineProperty(rE,"__esModule",{value:!0});rE.instanceOf=void 0;var rZ=i(),dZ=globalThis.process&&!1,pZ=dZ?function D(P,O){return P instanceof O}:function D(P,O){if(P instanceof O)return!0;if(typeof P==="object"&&P!==null){var W;let E=O.prototype[Symbol.toStringTag],F=Symbol.toStringTag in P?P[Symbol.toStringTag]:(W=P.constructor)===null||W===void 0?void 0:W.name;if(E===F){let R=rZ.inspect(P);throw new Error(`Cannot use ${E} "${R}" from another module or realm.
|
|
10
10
|
|
|
11
11
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
12
12
|
directory. If different versions of "graphql" are the dependencies of other
|
|
@@ -17,7 +17,7 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
|
17
17
|
Duplicate "graphql" modules cannot be used at the same time since different
|
|
18
18
|
versions may have different capabilities and behavior. The data from one
|
|
19
19
|
version used in the function from another could produce confusing and
|
|
20
|
-
spurious results.`)}}return!1};mE.instanceOf=jZ});var IP=J((lE)=>{Object.defineProperty(lE,"__esModule",{value:!0});lE.Source=void 0;lE.isSource=_Z;var z1=kD(),$Z=i(),VZ=A8();class u1{constructor(D,P="GraphQL request",O={line:1,column:1}){typeof D==="string"||z1.devAssert(!1,`Body must be a string. Received: ${$Z.inspect(D)}.`),this.body=D,this.name=P,this.locationOffset=O,this.locationOffset.line>0||z1.devAssert(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||z1.devAssert(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}lE.Source=u1;function _Z(D){return VZ.instanceOf(D,u1)}});var T2=J((nE)=>{Object.defineProperty(nE,"__esModule",{value:!0});nE.Parser=void 0;nE.parse=kZ;nE.parseConstValue=fZ;nE.parseType=hZ;nE.parseValue=xZ;var F2=XP(),J8=X0(),NZ=$2(),f=c(),pE=zP(),dE=IP(),u=H8();function kZ(D,P){return new _2(D,P).parseDocument()}function xZ(D,P){let O=new _2(D,P);O.expectToken(u.TokenKind.SOF);let W=O.parseValueLiteral(!1);return O.expectToken(u.TokenKind.EOF),W}function fZ(D,P){let O=new _2(D,P);O.expectToken(u.TokenKind.SOF);let W=O.parseConstValueLiteral();return O.expectToken(u.TokenKind.EOF),W}function hZ(D,P){let O=new _2(D,P);O.expectToken(u.TokenKind.SOF);let W=O.parseTypeReference();return O.expectToken(u.TokenKind.EOF),W}class _2{constructor(D,P={}){let O=dE.isSource(D)?D:new dE.Source(D);this._lexer=new pE.Lexer(O),this._options=P,this._tokenCounter=0}parseName(){let D=this.expectToken(u.TokenKind.NAME);return this.node(D,{kind:f.Kind.NAME,value:D.value})}parseDocument(){return this.node(this._lexer.token,{kind:f.Kind.DOCUMENT,definitions:this.many(u.TokenKind.SOF,this.parseDefinition,u.TokenKind.EOF)})}parseDefinition(){if(this.peek(u.TokenKind.BRACE_L))return this.parseOperationDefinition();let D=this.peekDescription(),P=D?this._lexer.lookahead():this._lexer.token;if(P.kind===u.TokenKind.NAME){switch(P.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 F2.syntaxError(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(P.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(P)}parseOperationDefinition(){let D=this._lexer.token;if(this.peek(u.TokenKind.BRACE_L))return this.node(D,{kind:f.Kind.OPERATION_DEFINITION,operation:J8.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let P=this.parseOperationType(),O;if(this.peek(u.TokenKind.NAME))O=this.parseName();return this.node(D,{kind:f.Kind.OPERATION_DEFINITION,operation:P,name:O,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let D=this.expectToken(u.TokenKind.NAME);switch(D.value){case"query":return J8.OperationTypeNode.QUERY;case"mutation":return J8.OperationTypeNode.MUTATION;case"subscription":return J8.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(D)}parseVariableDefinitions(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseVariableDefinition,u.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:f.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let D=this._lexer.token;return this.expectToken(u.TokenKind.DOLLAR),this.node(D,{kind:f.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:f.Kind.SELECTION_SET,selections:this.many(u.TokenKind.BRACE_L,this.parseSelection,u.TokenKind.BRACE_R)})}parseSelection(){return this.peek(u.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let D=this._lexer.token,P=this.parseName(),O,W;if(this.expectOptionalToken(u.TokenKind.COLON))O=P,W=this.parseName();else W=P;return this.node(D,{kind:f.Kind.FIELD,alias:O,name:W,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(u.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(D){let P=D?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.TokenKind.PAREN_L,P,u.TokenKind.PAREN_R)}parseArgument(D=!1){let P=this._lexer.token,O=this.parseName();return this.expectToken(u.TokenKind.COLON),this.node(P,{kind:f.Kind.ARGUMENT,name:O,value:this.parseValueLiteral(D)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let D=this._lexer.token;this.expectToken(u.TokenKind.SPREAD);let P=this.expectOptionalKeyword("on");if(!P&&this.peek(u.TokenKind.NAME))return this.node(D,{kind:f.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)});return this.node(D,{kind:f.Kind.INLINE_FRAGMENT,typeCondition:P?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:f.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:f.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 P=this._lexer.token;switch(P.kind){case u.TokenKind.BRACKET_L:return this.parseList(D);case u.TokenKind.BRACE_L:return this.parseObject(D);case u.TokenKind.INT:return this.advanceLexer(),this.node(P,{kind:f.Kind.INT,value:P.value});case u.TokenKind.FLOAT:return this.advanceLexer(),this.node(P,{kind:f.Kind.FLOAT,value:P.value});case u.TokenKind.STRING:case u.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case u.TokenKind.NAME:switch(this.advanceLexer(),P.value){case"true":return this.node(P,{kind:f.Kind.BOOLEAN,value:!0});case"false":return this.node(P,{kind:f.Kind.BOOLEAN,value:!1});case"null":return this.node(P,{kind:f.Kind.NULL});default:return this.node(P,{kind:f.Kind.ENUM,value:P.value})}case u.TokenKind.DOLLAR:if(D)if(this.expectToken(u.TokenKind.DOLLAR),this._lexer.token.kind===u.TokenKind.NAME){let O=this._lexer.token.value;throw F2.syntaxError(this._lexer.source,P.start,`Unexpected variable "\$${O}" in constant value.`)}else throw this.unexpected(P);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:f.Kind.STRING,value:D.value,block:D.kind===u.TokenKind.BLOCK_STRING})}parseList(D){let P=()=>this.parseValueLiteral(D);return this.node(this._lexer.token,{kind:f.Kind.LIST,values:this.any(u.TokenKind.BRACKET_L,P,u.TokenKind.BRACKET_R)})}parseObject(D){let P=()=>this.parseObjectField(D);return this.node(this._lexer.token,{kind:f.Kind.OBJECT,fields:this.any(u.TokenKind.BRACE_L,P,u.TokenKind.BRACE_R)})}parseObjectField(D){let P=this._lexer.token,O=this.parseName();return this.expectToken(u.TokenKind.COLON),this.node(P,{kind:f.Kind.OBJECT_FIELD,name:O,value:this.parseValueLiteral(D)})}parseDirectives(D){let P=[];while(this.peek(u.TokenKind.AT))P.push(this.parseDirective(D));return P}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(D){let P=this._lexer.token;return this.expectToken(u.TokenKind.AT),this.node(P,{kind:f.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(D)})}parseTypeReference(){let D=this._lexer.token,P;if(this.expectOptionalToken(u.TokenKind.BRACKET_L)){let O=this.parseTypeReference();this.expectToken(u.TokenKind.BRACKET_R),P=this.node(D,{kind:f.Kind.LIST_TYPE,type:O})}else P=this.parseNamedType();if(this.expectOptionalToken(u.TokenKind.BANG))return this.node(D,{kind:f.Kind.NON_NULL_TYPE,type:P});return P}parseNamedType(){return this.node(this._lexer.token,{kind:f.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.TokenKind.STRING)||this.peek(u.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let D=this._lexer.token,P=this.parseDescription();this.expectKeyword("schema");let O=this.parseConstDirectives(),W=this.many(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);return this.node(D,{kind:f.Kind.SCHEMA_DEFINITION,description:P,directives:O,operationTypes:W})}parseOperationTypeDefinition(){let D=this._lexer.token,P=this.parseOperationType();this.expectToken(u.TokenKind.COLON);let O=this.parseNamedType();return this.node(D,{kind:f.Kind.OPERATION_TYPE_DEFINITION,operation:P,type:O})}parseScalarTypeDefinition(){let D=this._lexer.token,P=this.parseDescription();this.expectKeyword("scalar");let O=this.parseName(),W=this.parseConstDirectives();return this.node(D,{kind:f.Kind.SCALAR_TYPE_DEFINITION,description:P,name:O,directives:W})}parseObjectTypeDefinition(){let D=this._lexer.token,P=this.parseDescription();this.expectKeyword("type");let O=this.parseName(),W=this.parseImplementsInterfaces(),E=this.parseConstDirectives(),F=this.parseFieldsDefinition();return this.node(D,{kind:f.Kind.OBJECT_TYPE_DEFINITION,description:P,name:O,interfaces:W,directives:E,fields:F})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseFieldDefinition,u.TokenKind.BRACE_R)}parseFieldDefinition(){let D=this._lexer.token,P=this.parseDescription(),O=this.parseName(),W=this.parseArgumentDefs();this.expectToken(u.TokenKind.COLON);let E=this.parseTypeReference(),F=this.parseConstDirectives();return this.node(D,{kind:f.Kind.FIELD_DEFINITION,description:P,name:O,arguments:W,type:E,directives:F})}parseArgumentDefs(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseInputValueDef,u.TokenKind.PAREN_R)}parseInputValueDef(){let D=this._lexer.token,P=this.parseDescription(),O=this.parseName();this.expectToken(u.TokenKind.COLON);let W=this.parseTypeReference(),E;if(this.expectOptionalToken(u.TokenKind.EQUALS))E=this.parseConstValueLiteral();let F=this.parseConstDirectives();return this.node(D,{kind:f.Kind.INPUT_VALUE_DEFINITION,description:P,name:O,type:W,defaultValue:E,directives:F})}parseInterfaceTypeDefinition(){let D=this._lexer.token,P=this.parseDescription();this.expectKeyword("interface");let O=this.parseName(),W=this.parseImplementsInterfaces(),E=this.parseConstDirectives(),F=this.parseFieldsDefinition();return this.node(D,{kind:f.Kind.INTERFACE_TYPE_DEFINITION,description:P,name:O,interfaces:W,directives:E,fields:F})}parseUnionTypeDefinition(){let D=this._lexer.token,P=this.parseDescription();this.expectKeyword("union");let O=this.parseName(),W=this.parseConstDirectives(),E=this.parseUnionMemberTypes();return this.node(D,{kind:f.Kind.UNION_TYPE_DEFINITION,description:P,name:O,directives:W,types:E})}parseUnionMemberTypes(){return this.expectOptionalToken(u.TokenKind.EQUALS)?this.delimitedMany(u.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let D=this._lexer.token,P=this.parseDescription();this.expectKeyword("enum");let O=this.parseName(),W=this.parseConstDirectives(),E=this.parseEnumValuesDefinition();return this.node(D,{kind:f.Kind.ENUM_TYPE_DEFINITION,description:P,name:O,directives:W,values:E})}parseEnumValuesDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseEnumValueDefinition,u.TokenKind.BRACE_R)}parseEnumValueDefinition(){let D=this._lexer.token,P=this.parseDescription(),O=this.parseEnumValueName(),W=this.parseConstDirectives();return this.node(D,{kind:f.Kind.ENUM_VALUE_DEFINITION,description:P,name:O,directives:W})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw F2.syntaxError(this._lexer.source,this._lexer.token.start,`${QP(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let D=this._lexer.token,P=this.parseDescription();this.expectKeyword("input");let O=this.parseName(),W=this.parseConstDirectives(),E=this.parseInputFieldsDefinition();return this.node(D,{kind:f.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:P,name:O,directives:W,fields:E})}parseInputFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseInputValueDef,u.TokenKind.BRACE_R)}parseTypeSystemExtension(){let D=this._lexer.lookahead();if(D.kind===u.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 P=this.parseConstDirectives(),O=this.optionalMany(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);if(P.length===0&&O.length===0)throw this.unexpected();return this.node(D,{kind:f.Kind.SCHEMA_EXTENSION,directives:P,operationTypes:O})}parseScalarTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let P=this.parseName(),O=this.parseConstDirectives();if(O.length===0)throw this.unexpected();return this.node(D,{kind:f.Kind.SCALAR_TYPE_EXTENSION,name:P,directives:O})}parseObjectTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let P=this.parseName(),O=this.parseImplementsInterfaces(),W=this.parseConstDirectives(),E=this.parseFieldsDefinition();if(O.length===0&&W.length===0&&E.length===0)throw this.unexpected();return this.node(D,{kind:f.Kind.OBJECT_TYPE_EXTENSION,name:P,interfaces:O,directives:W,fields:E})}parseInterfaceTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let P=this.parseName(),O=this.parseImplementsInterfaces(),W=this.parseConstDirectives(),E=this.parseFieldsDefinition();if(O.length===0&&W.length===0&&E.length===0)throw this.unexpected();return this.node(D,{kind:f.Kind.INTERFACE_TYPE_EXTENSION,name:P,interfaces:O,directives:W,fields:E})}parseUnionTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let P=this.parseName(),O=this.parseConstDirectives(),W=this.parseUnionMemberTypes();if(O.length===0&&W.length===0)throw this.unexpected();return this.node(D,{kind:f.Kind.UNION_TYPE_EXTENSION,name:P,directives:O,types:W})}parseEnumTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let P=this.parseName(),O=this.parseConstDirectives(),W=this.parseEnumValuesDefinition();if(O.length===0&&W.length===0)throw this.unexpected();return this.node(D,{kind:f.Kind.ENUM_TYPE_EXTENSION,name:P,directives:O,values:W})}parseInputObjectTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let P=this.parseName(),O=this.parseConstDirectives(),W=this.parseInputFieldsDefinition();if(O.length===0&&W.length===0)throw this.unexpected();return this.node(D,{kind:f.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:P,directives:O,fields:W})}parseDirectiveDefinition(){let D=this._lexer.token,P=this.parseDescription();this.expectKeyword("directive"),this.expectToken(u.TokenKind.AT);let O=this.parseName(),W=this.parseArgumentDefs(),E=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let F=this.parseDirectiveLocations();return this.node(D,{kind:f.Kind.DIRECTIVE_DEFINITION,description:P,name:O,arguments:W,repeatable:E,locations:F})}parseDirectiveLocations(){return this.delimitedMany(u.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let D=this._lexer.token,P=this.parseName();if(Object.prototype.hasOwnProperty.call(NZ.DirectiveLocation,P.value))return P;throw this.unexpected(D)}node(D,P){if(this._options.noLocation!==!0)P.loc=new J8.Location(D,this._lexer.lastToken,this._lexer.source);return P}peek(D){return this._lexer.token.kind===D}expectToken(D){let P=this._lexer.token;if(P.kind===D)return this.advanceLexer(),P;throw F2.syntaxError(this._lexer.source,P.start,`Expected ${aE(D)}, found ${QP(P)}.`)}expectOptionalToken(D){if(this._lexer.token.kind===D)return this.advanceLexer(),!0;return!1}expectKeyword(D){let P=this._lexer.token;if(P.kind===u.TokenKind.NAME&&P.value===D)this.advanceLexer();else throw F2.syntaxError(this._lexer.source,P.start,`Expected "${D}", found ${QP(P)}.`)}expectOptionalKeyword(D){let P=this._lexer.token;if(P.kind===u.TokenKind.NAME&&P.value===D)return this.advanceLexer(),!0;return!1}unexpected(D){let P=D!==null&&D!==void 0?D:this._lexer.token;return F2.syntaxError(this._lexer.source,P.start,`Unexpected ${QP(P)}.`)}any(D,P,O){this.expectToken(D);let W=[];while(!this.expectOptionalToken(O))W.push(P.call(this));return W}optionalMany(D,P,O){if(this.expectOptionalToken(D)){let W=[];do W.push(P.call(this));while(!this.expectOptionalToken(O));return W}return[]}many(D,P,O){this.expectToken(D);let W=[];do W.push(P.call(this));while(!this.expectOptionalToken(O));return W}delimitedMany(D,P){this.expectOptionalToken(D);let O=[];do O.push(P.call(this));while(this.expectOptionalToken(D));return O}advanceLexer(){let{maxTokens:D}=this._options,P=this._lexer.advance();if(D!==void 0&&P.kind!==u.TokenKind.EOF){if(++this._tokenCounter,this._tokenCounter>D)throw F2.syntaxError(this._lexer.source,P.start,`Document contains more that ${D} tokens. Parsing aborted.`)}}}nE.Parser=_2;function QP(D){let P=D.value;return aE(D.kind)+(P!=null?` "${P}"`:"")}function aE(D){return pE.isPunctuatorTokenKind(D)?`"${D}"`:D}});var c0=J((sE)=>{Object.defineProperty(sE,"__esModule",{value:!0});sE.didYouMean=lZ;var cZ=5;function lZ(D,P){let[O,W]=P?[D,P]:[void 0,D],E=" Did you mean ";if(O)E+=O+" ";let F=W.map((L)=>`"${L}"`);switch(F.length){case 0:return"";case 1:return E+F[0]+"?";case 2:return E+F[0]+" or "+F[1]+"?"}let R=F.slice(0,cZ),S=R.pop();return E+R.join(", ")+", or "+S+"?"}});var oE=J((iE)=>{Object.defineProperty(iE,"__esModule",{value:!0});iE.identityFunc=dZ;function dZ(D){return D}});var l0=J((eE)=>{Object.defineProperty(eE,"__esModule",{value:!0});eE.keyMap=aZ;function aZ(D,P){let O=Object.create(null);for(let W of D)O[P(W)]=W;return O}});var U8=J((DF)=>{Object.defineProperty(DF,"__esModule",{value:!0});DF.keyValMap=tZ;function tZ(D,P,O){let W=Object.create(null);for(let E of D)W[P(E)]=O(E);return W}});var I1=J((PF)=>{Object.defineProperty(PF,"__esModule",{value:!0});PF.mapValue=iZ;function iZ(D,P){let O=Object.create(null);for(let W of Object.keys(D))O[W]=P(D[W],W);return O}});var X8=J((OF)=>{Object.defineProperty(OF,"__esModule",{value:!0});OF.naturalCompare=eZ;function eZ(D,P){let O=0,W=0;while(O<D.length&&W<P.length){let E=D.charCodeAt(O),F=P.charCodeAt(W);if(MP(E)&&MP(F)){let R=0;do++O,R=R*10+E-Q1,E=D.charCodeAt(O);while(MP(E)&&R>0);let S=0;do++W,S=S*10+F-Q1,F=P.charCodeAt(W);while(MP(F)&&S>0);if(R<S)return-1;if(R>S)return 1}else{if(E<F)return-1;if(E>F)return 1;++O,++W}}return D.length-P.length}var Q1=48,DH=57;function MP(D){return!isNaN(D)&&Q1<=D&&D<=DH}});var r0=J((FF)=>{Object.defineProperty(FF,"__esModule",{value:!0});FF.suggestionList=WH;var OH=X8();function WH(D,P){let O=Object.create(null),W=new EF(D),E=Math.floor(D.length*0.4)+1;for(let F of P){let R=W.measure(F,E);if(R!==void 0)O[F]=R}return Object.keys(O).sort((F,R)=>{let S=O[F]-O[R];return S!==0?S:OH.naturalCompare(F,R)})}class EF{constructor(D){this._input=D,this._inputLowerCase=D.toLowerCase(),this._inputArray=WF(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,P){if(this._input===D)return 0;let O=D.toLowerCase();if(this._inputLowerCase===O)return 1;let W=WF(O),E=this._inputArray;if(W.length<E.length){let B=W;W=E,E=B}let F=W.length,R=E.length;if(F-R>P)return;let S=this._rows;for(let B=0;B<=R;B++)S[0][B]=B;for(let B=1;B<=F;B++){let Y=S[(B-1)%3],Z=S[B%3],H=Z[0]=B;for(let A=1;A<=R;A++){let X=W[B-1]===E[A-1]?0:1,I=Math.min(Y[A]+1,Z[A-1]+1,Y[A-1]+X);if(B>1&&A>1&&W[B-1]===E[A-2]&&W[B-2]===E[A-1]){let $=S[(B-2)%3][A-2];I=Math.min(I,$+1)}if(I<H)H=I;Z[A]=I}if(H>P)return}let L=S[F%3][R];return L<=P?L:void 0}}function WF(D){let P=D.length,O=new Array(P);for(let W=0;W<P;++W)O[W]=D.charCodeAt(W);return O}});var bP=J((RF)=>{Object.defineProperty(RF,"__esModule",{value:!0});RF.toObjMap=FH;function FH(D){if(D==null)return Object.create(null);if(Object.getPrototypeOf(D)===null)return D;let P=Object.create(null);for(let[O,W]of Object.entries(D))P[O]=W;return P}});var LF=J((SF)=>{Object.defineProperty(SF,"__esModule",{value:!0});SF.printString=SH;function SH(D){return`"${D.replace(LH,BH)}"`}var LH=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function BH(D){return YH[D.charCodeAt(0)]}var YH=["\\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 R2=J((YF)=>{Object.defineProperty(YF,"__esModule",{value:!0});YF.BREAK=void 0;YF.getEnterLeaveForKind=wP;YF.getVisitFn=UH;YF.visit=AH;YF.visitInParallel=JH;var HH=kD(),CH=i(),M1=X0(),BF=c(),N2=Object.freeze({});YF.BREAK=N2;function AH(D,P,O=M1.QueryDocumentKeys){let W=new Map;for(let x of Object.values(BF.Kind))W.set(x,wP(P,x));let E=void 0,F=Array.isArray(D),R=[D],S=-1,L=[],B=D,Y=void 0,Z=void 0,H=[],A=[];do{S++;let x=S===R.length,y=x&&L.length!==0;if(x){if(Y=A.length===0?void 0:H[H.length-1],B=Z,Z=A.pop(),y)if(F){B=B.slice();let DD=0;for(let[N,ED]of L){let UD=N-DD;if(ED===null)B.splice(UD,1),DD++;else B[UD]=ED}}else{B=Object.defineProperties({},Object.getOwnPropertyDescriptors(B));for(let[DD,N]of L)B[DD]=N}S=E.index,R=E.keys,L=E.edits,F=E.inArray,E=E.prev}else if(Z){if(Y=F?S:R[S],B=Z[Y],B===null||B===void 0)continue;H.push(Y)}let V;if(!Array.isArray(B)){var X,I;M1.isNode(B)||HH.devAssert(!1,`Invalid AST Node: ${CH.inspect(B)}.`);let DD=x?(X=W.get(B.kind))===null||X===void 0?void 0:X.leave:(I=W.get(B.kind))===null||I===void 0?void 0:I.enter;if(V=DD===null||DD===void 0?void 0:DD.call(P,B,Y,Z,H,A),V===N2)break;if(V===!1){if(!x){H.pop();continue}}else if(V!==void 0){if(L.push([Y,V]),!x)if(M1.isNode(V))B=V;else{H.pop();continue}}}if(V===void 0&&y)L.push([Y,B]);if(x)H.pop();else{var $;if(E={inArray:F,index:S,keys:R,edits:L,prev:E},F=Array.isArray(B),R=F?B:($=O[B.kind])!==null&&$!==void 0?$:[],S=-1,L=[],Z)A.push(Z);Z=B}}while(E!==void 0);if(L.length!==0)return L[L.length-1][1];return D}function JH(D){let P=new Array(D.length).fill(null),O=Object.create(null);for(let W of Object.values(BF.Kind)){let E=!1,F=new Array(D.length).fill(void 0),R=new Array(D.length).fill(void 0);for(let L=0;L<D.length;++L){let{enter:B,leave:Y}=wP(D[L],W);E||(E=B!=null||Y!=null),F[L]=B,R[L]=Y}if(!E)continue;let S={enter(...L){let B=L[0];for(let Z=0;Z<D.length;Z++)if(P[Z]===null){var Y;let H=(Y=F[Z])===null||Y===void 0?void 0:Y.apply(D[Z],L);if(H===!1)P[Z]=B;else if(H===N2)P[Z]=N2;else if(H!==void 0)return H}},leave(...L){let B=L[0];for(let Z=0;Z<D.length;Z++)if(P[Z]===null){var Y;let H=(Y=R[Z])===null||Y===void 0?void 0:Y.apply(D[Z],L);if(H===N2)P[Z]=N2;else if(H!==void 0&&H!==!1)return H}else if(P[Z]===B)P[Z]=null}};O[W]=S}return O}function wP(D,P){let O=D[P];if(typeof O==="object")return O;else if(typeof O==="function")return{enter:O,leave:void 0};return{enter:D.enter,leave:D.leave}}function UH(D,P,O){let{enter:W,leave:E}=wP(D,P);return O?E:W}});var mD=J((CF)=>{Object.defineProperty(CF,"__esModule",{value:!0});CF.print=MH;var uH=Z8(),IH=LF(),QH=R2();function MH(D){return QH.visit(D,wH)}var bH=80,wH={Name:{leave:(D)=>D.value},Variable:{leave:(D)=>"$"+D.name},Document:{leave:(D)=>b(D.definitions,"\n\n")},OperationDefinition:{leave(D){let P=m("(",b(D.variableDefinitions,", "),")"),O=b([D.operation,b([D.name,P]),b(D.directives," ")]," ");return(O==="query"?"":O+" ")+D.selectionSet}},VariableDefinition:{leave:({variable:D,type:P,defaultValue:O,directives:W})=>D+": "+P+m(" = ",O)+m(" ",b(W," "))},SelectionSet:{leave:({selections:D})=>S0(D)},Field:{leave({alias:D,name:P,arguments:O,directives:W,selectionSet:E}){let F=m("",D,": ")+P,R=F+m("(",b(O,", "),")");if(R.length>bH)R=F+m("(\n",KP(b(O,"\n")),"\n)");return b([R,b(W," "),E]," ")}},Argument:{leave:({name:D,value:P})=>D+": "+P},FragmentSpread:{leave:({name:D,directives:P})=>"..."+D+m(" ",b(P," "))},InlineFragment:{leave:({typeCondition:D,directives:P,selectionSet:O})=>b(["...",m("on ",D),b(P," "),O]," ")},FragmentDefinition:{leave:({name:D,typeCondition:P,variableDefinitions:O,directives:W,selectionSet:E})=>`fragment ${D}${m("(",b(O,", "),")")} on ${P} ${m("",b(W," ")," ")}`+E},IntValue:{leave:({value:D})=>D},FloatValue:{leave:({value:D})=>D},StringValue:{leave:({value:D,block:P})=>P?uH.printBlockString(D):IH.printString(D)},BooleanValue:{leave:({value:D})=>D?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:D})=>D},ListValue:{leave:({values:D})=>"["+b(D,", ")+"]"},ObjectValue:{leave:({fields:D})=>"{"+b(D,", ")+"}"},ObjectField:{leave:({name:D,value:P})=>D+": "+P},Directive:{leave:({name:D,arguments:P})=>"@"+D+m("(",b(P,", "),")")},NamedType:{leave:({name:D})=>D},ListType:{leave:({type:D})=>"["+D+"]"},NonNullType:{leave:({type:D})=>D+"!"},SchemaDefinition:{leave:({description:D,directives:P,operationTypes:O})=>m("",D,"\n")+b(["schema",b(P," "),S0(O)]," ")},OperationTypeDefinition:{leave:({operation:D,type:P})=>D+": "+P},ScalarTypeDefinition:{leave:({description:D,name:P,directives:O})=>m("",D,"\n")+b(["scalar",P,b(O," ")]," ")},ObjectTypeDefinition:{leave:({description:D,name:P,interfaces:O,directives:W,fields:E})=>m("",D,"\n")+b(["type",P,m("implements ",b(O," & ")),b(W," "),S0(E)]," ")},FieldDefinition:{leave:({description:D,name:P,arguments:O,type:W,directives:E})=>m("",D,"\n")+P+(HF(O)?m("(\n",KP(b(O,"\n")),"\n)"):m("(",b(O,", "),")"))+": "+W+m(" ",b(E," "))},InputValueDefinition:{leave:({description:D,name:P,type:O,defaultValue:W,directives:E})=>m("",D,"\n")+b([P+": "+O,m("= ",W),b(E," ")]," ")},InterfaceTypeDefinition:{leave:({description:D,name:P,interfaces:O,directives:W,fields:E})=>m("",D,"\n")+b(["interface",P,m("implements ",b(O," & ")),b(W," "),S0(E)]," ")},UnionTypeDefinition:{leave:({description:D,name:P,directives:O,types:W})=>m("",D,"\n")+b(["union",P,b(O," "),m("= ",b(W," | "))]," ")},EnumTypeDefinition:{leave:({description:D,name:P,directives:O,values:W})=>m("",D,"\n")+b(["enum",P,b(O," "),S0(W)]," ")},EnumValueDefinition:{leave:({description:D,name:P,directives:O})=>m("",D,"\n")+b([P,b(O," ")]," ")},InputObjectTypeDefinition:{leave:({description:D,name:P,directives:O,fields:W})=>m("",D,"\n")+b(["input",P,b(O," "),S0(W)]," ")},DirectiveDefinition:{leave:({description:D,name:P,arguments:O,repeatable:W,locations:E})=>m("",D,"\n")+"directive @"+P+(HF(O)?m("(\n",KP(b(O,"\n")),"\n)"):m("(",b(O,", "),")"))+(W?" repeatable":"")+" on "+b(E," | ")},SchemaExtension:{leave:({directives:D,operationTypes:P})=>b(["extend schema",b(D," "),S0(P)]," ")},ScalarTypeExtension:{leave:({name:D,directives:P})=>b(["extend scalar",D,b(P," ")]," ")},ObjectTypeExtension:{leave:({name:D,interfaces:P,directives:O,fields:W})=>b(["extend type",D,m("implements ",b(P," & ")),b(O," "),S0(W)]," ")},InterfaceTypeExtension:{leave:({name:D,interfaces:P,directives:O,fields:W})=>b(["extend interface",D,m("implements ",b(P," & ")),b(O," "),S0(W)]," ")},UnionTypeExtension:{leave:({name:D,directives:P,types:O})=>b(["extend union",D,b(P," "),m("= ",b(O," | "))]," ")},EnumTypeExtension:{leave:({name:D,directives:P,values:O})=>b(["extend enum",D,b(P," "),S0(O)]," ")},InputObjectTypeExtension:{leave:({name:D,directives:P,fields:O})=>b(["extend input",D,b(P," "),S0(O)]," ")}};function b(D,P=""){var O;return(O=D===null||D===void 0?void 0:D.filter((W)=>W).join(P))!==null&&O!==void 0?O:""}function S0(D){return m("{\n",KP(b(D,"\n")),"\n}")}function m(D,P,O=""){return P!=null&&P!==""?D+P+O:""}function KP(D){return m(" ",D.replace(/\n/g,"\n "))}function HF(D){var P;return(P=D===null||D===void 0?void 0:D.some((O)=>O.includes("\n")))!==null&&P!==void 0?P:!1}});var w1=J((AF)=>{Object.defineProperty(AF,"__esModule",{value:!0});AF.valueFromASTUntyped=b1;var jH=U8(),T0=c();function b1(D,P){switch(D.kind){case T0.Kind.NULL:return null;case T0.Kind.INT:return parseInt(D.value,10);case T0.Kind.FLOAT:return parseFloat(D.value);case T0.Kind.STRING:case T0.Kind.ENUM:case T0.Kind.BOOLEAN:return D.value;case T0.Kind.LIST:return D.values.map((O)=>b1(O,P));case T0.Kind.OBJECT:return jH.keyValMap(D.fields,(O)=>O.name.value,(O)=>b1(O.value,P));case T0.Kind.VARIABLE:return P===null||P===void 0?void 0:P[D.name.value]}}});var q8=J((qF)=>{Object.defineProperty(qF,"__esModule",{value:!0});qF.assertEnumValueName=VH;qF.assertName=XF;var JF=kD(),jP=T(),UF=qP();function XF(D){if(D!=null||JF.devAssert(!1,"Must provide name."),typeof D==="string"||JF.devAssert(!1,"Expected name to be a string."),D.length===0)throw new jP.GraphQLError("Expected name to be a non-empty string.");for(let P=1;P<D.length;++P)if(!UF.isNameContinue(D.charCodeAt(P)))throw new jP.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${D}" does not.`);if(!UF.isNameStart(D.charCodeAt(0)))throw new jP.GraphQLError(`Names must start with [_a-zA-Z] but "${D}" does not.`);return D}function VH(D){if(D==="true"||D==="false"||D==="null")throw new jP.GraphQLError(`Enum values cannot be named: ${D}`);return XF(D)}});var l=J((TF)=>{Object.defineProperty(TF,"__esModule",{value:!0});TF.GraphQLUnionType=TF.GraphQLScalarType=TF.GraphQLObjectType=TF.GraphQLNonNull=TF.GraphQLList=TF.GraphQLInterfaceType=TF.GraphQLInputObjectType=TF.GraphQLEnumType=void 0;TF.argsToArgsConfig=_F;TF.assertAbstractType=oH;TF.assertCompositeType=iH;TF.assertEnumType=rH;TF.assertInputObjectType=dH;TF.assertInputType=nH;TF.assertInterfaceType=cH;TF.assertLeafType=sH;TF.assertListType=pH;TF.assertNamedType=OC;TF.assertNonNullType=aH;TF.assertNullableType=DC;TF.assertObjectType=mH;TF.assertOutputType=tH;TF.assertScalarType=yH;TF.assertType=gH;TF.assertUnionType=lH;TF.assertWrappingType=eH;TF.defineArguments=$F;TF.getNamedType=WC;TF.getNullableType=PC;TF.isAbstractType=bF;TF.isCompositeType=MF;TF.isEnumType=Y2;TF.isInputObjectType=z8;TF.isInputType=K1;TF.isInterfaceType=L2;TF.isLeafType=QF;TF.isListType=TP;TF.isNamedType=wF;TF.isNonNullType=p0;TF.isNullableType=_1;TF.isObjectType=x2;TF.isOutputType=j1;TF.isRequiredArgument=EC;TF.isRequiredInputField=SC;TF.isScalarType=S2;TF.isType=_P;TF.isUnionType=B2;TF.isWrappingType=u8;TF.resolveObjMapThunk=N1;TF.resolveReadonlyArrayThunk=T1;var MD=kD(),NH=c0(),GF=oE(),PD=i(),d0=A8(),kH=U0(),xH=l0(),IF=U8(),VP=I1(),fH=r0(),q0=bP(),G8=T(),hH=c(),zF=mD(),vH=w1(),G0=q8();function _P(D){return S2(D)||x2(D)||L2(D)||B2(D)||Y2(D)||z8(D)||TP(D)||p0(D)}function gH(D){if(!_P(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL type.`);return D}function S2(D){return d0.instanceOf(D,k1)}function yH(D){if(!S2(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL Scalar type.`);return D}function x2(D){return d0.instanceOf(D,x1)}function mH(D){if(!x2(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL Object type.`);return D}function L2(D){return d0.instanceOf(D,f1)}function cH(D){if(!L2(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL Interface type.`);return D}function B2(D){return d0.instanceOf(D,h1)}function lH(D){if(!B2(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL Union type.`);return D}function Y2(D){return d0.instanceOf(D,v1)}function rH(D){if(!Y2(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL Enum type.`);return D}function z8(D){return d0.instanceOf(D,g1)}function dH(D){if(!z8(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL Input Object type.`);return D}function TP(D){return d0.instanceOf(D,$1)}function pH(D){if(!TP(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL List type.`);return D}function p0(D){return d0.instanceOf(D,V1)}function aH(D){if(!p0(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL Non-Null type.`);return D}function K1(D){return S2(D)||Y2(D)||z8(D)||u8(D)&&K1(D.ofType)}function nH(D){if(!K1(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL input type.`);return D}function j1(D){return S2(D)||x2(D)||L2(D)||B2(D)||Y2(D)||u8(D)&&j1(D.ofType)}function tH(D){if(!j1(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL output type.`);return D}function QF(D){return S2(D)||Y2(D)}function sH(D){if(!QF(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL leaf type.`);return D}function MF(D){return x2(D)||L2(D)||B2(D)}function iH(D){if(!MF(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL composite type.`);return D}function bF(D){return L2(D)||B2(D)}function oH(D){if(!bF(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL abstract type.`);return D}class $1{constructor(D){_P(D)||MD.devAssert(!1,`Expected ${PD.inspect(D)} to be a GraphQL type.`),this.ofType=D}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}TF.GraphQLList=$1;class V1{constructor(D){_1(D)||MD.devAssert(!1,`Expected ${PD.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()}}TF.GraphQLNonNull=V1;function u8(D){return TP(D)||p0(D)}function eH(D){if(!u8(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL wrapping type.`);return D}function _1(D){return _P(D)&&!p0(D)}function DC(D){if(!_1(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL nullable type.`);return D}function PC(D){if(D)return p0(D)?D.ofType:D}function wF(D){return S2(D)||x2(D)||L2(D)||B2(D)||Y2(D)||z8(D)}function OC(D){if(!wF(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL named type.`);return D}function WC(D){if(D){let P=D;while(u8(P))P=P.ofType;return P}}function T1(D){return typeof D==="function"?D():D}function N1(D){return typeof D==="function"?D():D}class k1{constructor(D){var P,O,W,E;let F=(P=D.parseValue)!==null&&P!==void 0?P:GF.identityFunc;if(this.name=G0.assertName(D.name),this.description=D.description,this.specifiedByURL=D.specifiedByURL,this.serialize=(O=D.serialize)!==null&&O!==void 0?O:GF.identityFunc,this.parseValue=F,this.parseLiteral=(W=D.parseLiteral)!==null&&W!==void 0?W:(R,S)=>F(vH.valueFromASTUntyped(R,S)),this.extensions=q0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(E=D.extensionASTNodes)!==null&&E!==void 0?E:[],D.specifiedByURL==null||typeof D.specifiedByURL==="string"||MD.devAssert(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${PD.inspect(D.specifiedByURL)}.`),D.serialize==null||typeof D.serialize==="function"||MD.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"||MD.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()}}TF.GraphQLScalarType=k1;class x1{constructor(D){var P;this.name=G0.assertName(D.name),this.description=D.description,this.isTypeOf=D.isTypeOf,this.extensions=q0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(P=D.extensionASTNodes)!==null&&P!==void 0?P:[],this._fields=()=>jF(D),this._interfaces=()=>KF(D),D.isTypeOf==null||typeof D.isTypeOf==="function"||MD.devAssert(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${PD.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:VF(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}TF.GraphQLObjectType=x1;function KF(D){var P;let O=T1((P=D.interfaces)!==null&&P!==void 0?P:[]);return Array.isArray(O)||MD.devAssert(!1,`${D.name} interfaces must be an Array or a function which returns an Array.`),O}function jF(D){let P=N1(D.fields);return k2(P)||MD.devAssert(!1,`${D.name} fields must be an object with field names as keys or a function which returns such an object.`),VP.mapValue(P,(O,W)=>{var E;k2(O)||MD.devAssert(!1,`${D.name}.${W} field config must be an object.`),O.resolve==null||typeof O.resolve==="function"||MD.devAssert(!1,`${D.name}.${W} field resolver must be a function if provided, but got: ${PD.inspect(O.resolve)}.`);let F=(E=O.args)!==null&&E!==void 0?E:{};return k2(F)||MD.devAssert(!1,`${D.name}.${W} args must be an object with argument names as keys.`),{name:G0.assertName(W),description:O.description,type:O.type,args:$F(F),resolve:O.resolve,subscribe:O.subscribe,deprecationReason:O.deprecationReason,extensions:q0.toObjMap(O.extensions),astNode:O.astNode}})}function $F(D){return Object.entries(D).map(([P,O])=>({name:G0.assertName(P),description:O.description,type:O.type,defaultValue:O.defaultValue,deprecationReason:O.deprecationReason,extensions:q0.toObjMap(O.extensions),astNode:O.astNode}))}function k2(D){return kH.isObjectLike(D)&&!Array.isArray(D)}function VF(D){return VP.mapValue(D,(P)=>({description:P.description,type:P.type,args:_F(P.args),resolve:P.resolve,subscribe:P.subscribe,deprecationReason:P.deprecationReason,extensions:P.extensions,astNode:P.astNode}))}function _F(D){return IF.keyValMap(D,(P)=>P.name,(P)=>({description:P.description,type:P.type,defaultValue:P.defaultValue,deprecationReason:P.deprecationReason,extensions:P.extensions,astNode:P.astNode}))}function EC(D){return p0(D.type)&&D.defaultValue===void 0}class f1{constructor(D){var P;this.name=G0.assertName(D.name),this.description=D.description,this.resolveType=D.resolveType,this.extensions=q0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(P=D.extensionASTNodes)!==null&&P!==void 0?P:[],this._fields=jF.bind(void 0,D),this._interfaces=KF.bind(void 0,D),D.resolveType==null||typeof D.resolveType==="function"||MD.devAssert(!1,`${this.name} must provide "resolveType" as a function, but got: ${PD.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:VF(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}TF.GraphQLInterfaceType=f1;class h1{constructor(D){var P;this.name=G0.assertName(D.name),this.description=D.description,this.resolveType=D.resolveType,this.extensions=q0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(P=D.extensionASTNodes)!==null&&P!==void 0?P:[],this._types=FC.bind(void 0,D),D.resolveType==null||typeof D.resolveType==="function"||MD.devAssert(!1,`${this.name} must provide "resolveType" as a function, but got: ${PD.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()}}TF.GraphQLUnionType=h1;function FC(D){let P=T1(D.types);return Array.isArray(P)||MD.devAssert(!1,`Must provide Array of types or a function which returns such an array for Union ${D.name}.`),P}class v1{constructor(D){var P;this.name=G0.assertName(D.name),this.description=D.description,this.extensions=q0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(P=D.extensionASTNodes)!==null&&P!==void 0?P:[],this._values=typeof D.values==="function"?D.values:uF(this.name,D.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){if(typeof this._values==="function")this._values=uF(this.name,this._values());return this._values}getValue(D){if(this._nameLookup===null)this._nameLookup=xH.keyMap(this.getValues(),(P)=>P.name);return this._nameLookup[D]}serialize(D){if(this._valueLookup===null)this._valueLookup=new Map(this.getValues().map((O)=>[O.value,O]));let P=this._valueLookup.get(D);if(P===void 0)throw new G8.GraphQLError(`Enum "${this.name}" cannot represent value: ${PD.inspect(D)}`);return P.name}parseValue(D){if(typeof D!=="string"){let O=PD.inspect(D);throw new G8.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${O}.`+$P(this,O))}let P=this.getValue(D);if(P==null)throw new G8.GraphQLError(`Value "${D}" does not exist in "${this.name}" enum.`+$P(this,D));return P.value}parseLiteral(D,P){if(D.kind!==hH.Kind.ENUM){let W=zF.print(D);throw new G8.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${W}.`+$P(this,W),{nodes:D})}let O=this.getValue(D.value);if(O==null){let W=zF.print(D);throw new G8.GraphQLError(`Value "${W}" does not exist in "${this.name}" enum.`+$P(this,W),{nodes:D})}return O.value}toConfig(){let D=IF.keyValMap(this.getValues(),(P)=>P.name,(P)=>({description:P.description,value:P.value,deprecationReason:P.deprecationReason,extensions:P.extensions,astNode:P.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()}}TF.GraphQLEnumType=v1;function $P(D,P){let O=D.getValues().map((E)=>E.name),W=fH.suggestionList(P,O);return NH.didYouMean("the enum value",W)}function uF(D,P){return k2(P)||MD.devAssert(!1,`${D} values must be an object with value names as keys.`),Object.entries(P).map(([O,W])=>{return k2(W)||MD.devAssert(!1,`${D}.${O} must refer to an object with a "value" key representing an internal value but got: ${PD.inspect(W)}.`),{name:G0.assertEnumValueName(O),description:W.description,value:W.value!==void 0?W.value:O,deprecationReason:W.deprecationReason,extensions:q0.toObjMap(W.extensions),astNode:W.astNode}})}class g1{constructor(D){var P,O;this.name=G0.assertName(D.name),this.description=D.description,this.extensions=q0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(P=D.extensionASTNodes)!==null&&P!==void 0?P:[],this.isOneOf=(O=D.isOneOf)!==null&&O!==void 0?O:!1,this._fields=RC.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=VP.mapValue(this.getFields(),(P)=>({description:P.description,type:P.type,defaultValue:P.defaultValue,deprecationReason:P.deprecationReason,extensions:P.extensions,astNode:P.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()}}TF.GraphQLInputObjectType=g1;function RC(D){let P=N1(D.fields);return k2(P)||MD.devAssert(!1,`${D.name} fields must be an object with field names as keys or a function which returns such an object.`),VP.mapValue(P,(O,W)=>{return!("resolve"in O)||MD.devAssert(!1,`${D.name}.${W} field has a resolve property, but Input Types cannot define resolvers.`),{name:G0.assertName(W),description:O.description,type:O.type,defaultValue:O.defaultValue,deprecationReason:O.deprecationReason,extensions:q0.toObjMap(O.extensions),astNode:O.astNode}})}function SC(D){return p0(D.type)&&D.defaultValue===void 0}});var I8=J((kF)=>{Object.defineProperty(kF,"__esModule",{value:!0});kF.doTypesOverlap=WA;kF.isEqualType=y1;kF.isTypeSubTypeOf=NP;var VD=l();function y1(D,P){if(D===P)return!0;if(VD.isNonNullType(D)&&VD.isNonNullType(P))return y1(D.ofType,P.ofType);if(VD.isListType(D)&&VD.isListType(P))return y1(D.ofType,P.ofType);return!1}function NP(D,P,O){if(P===O)return!0;if(VD.isNonNullType(O)){if(VD.isNonNullType(P))return NP(D,P.ofType,O.ofType);return!1}if(VD.isNonNullType(P))return NP(D,P.ofType,O);if(VD.isListType(O)){if(VD.isListType(P))return NP(D,P.ofType,O.ofType);return!1}if(VD.isListType(P))return!1;return VD.isAbstractType(O)&&(VD.isInterfaceType(P)||VD.isObjectType(P))&&D.isSubType(O,P)}function WA(D,P,O){if(P===O)return!0;if(VD.isAbstractType(P)){if(VD.isAbstractType(O))return D.getPossibleTypes(P).some((W)=>D.isSubType(O,W));return D.isSubType(P,O)}if(VD.isAbstractType(O))return D.isSubType(O,P);return!1}});var z0=J((cF)=>{Object.defineProperty(cF,"__esModule",{value:!0});cF.GraphQLString=cF.GraphQLInt=cF.GraphQLID=cF.GraphQLFloat=cF.GraphQLBoolean=cF.GRAPHQL_MIN_INT=cF.GRAPHQL_MAX_INT=void 0;cF.isSpecifiedScalarType=SA;cF.specifiedScalarTypes=void 0;var L0=i(),xF=U0(),bD=T(),Z2=c(),Q8=mD(),M8=l(),kP=2147483647;cF.GRAPHQL_MAX_INT=kP;var xP=-2147483648;cF.GRAPHQL_MIN_INT=xP;var fF=new M8.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 P=b8(D);if(typeof P==="boolean")return P?1:0;let O=P;if(typeof P==="string"&&P!=="")O=Number(P);if(typeof O!=="number"||!Number.isInteger(O))throw new bD.GraphQLError(`Int cannot represent non-integer value: ${L0.inspect(P)}`);if(O>kP||O<xP)throw new bD.GraphQLError("Int cannot represent non 32-bit signed integer value: "+L0.inspect(P));return O},parseValue(D){if(typeof D!=="number"||!Number.isInteger(D))throw new bD.GraphQLError(`Int cannot represent non-integer value: ${L0.inspect(D)}`);if(D>kP||D<xP)throw new bD.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${D}`);return D},parseLiteral(D){if(D.kind!==Z2.Kind.INT)throw new bD.GraphQLError(`Int cannot represent non-integer value: ${Q8.print(D)}`,{nodes:D});let P=parseInt(D.value,10);if(P>kP||P<xP)throw new bD.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${D.value}`,{nodes:D});return P}});cF.GraphQLInt=fF;var hF=new M8.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 P=b8(D);if(typeof P==="boolean")return P?1:0;let O=P;if(typeof P==="string"&&P!=="")O=Number(P);if(typeof O!=="number"||!Number.isFinite(O))throw new bD.GraphQLError(`Float cannot represent non numeric value: ${L0.inspect(P)}`);return O},parseValue(D){if(typeof D!=="number"||!Number.isFinite(D))throw new bD.GraphQLError(`Float cannot represent non numeric value: ${L0.inspect(D)}`);return D},parseLiteral(D){if(D.kind!==Z2.Kind.FLOAT&&D.kind!==Z2.Kind.INT)throw new bD.GraphQLError(`Float cannot represent non numeric value: ${Q8.print(D)}`,D);return parseFloat(D.value)}});cF.GraphQLFloat=hF;var vF=new M8.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 P=b8(D);if(typeof P==="string")return P;if(typeof P==="boolean")return P?"true":"false";if(typeof P==="number"&&Number.isFinite(P))return P.toString();throw new bD.GraphQLError(`String cannot represent value: ${L0.inspect(D)}`)},parseValue(D){if(typeof D!=="string")throw new bD.GraphQLError(`String cannot represent a non string value: ${L0.inspect(D)}`);return D},parseLiteral(D){if(D.kind!==Z2.Kind.STRING)throw new bD.GraphQLError(`String cannot represent a non string value: ${Q8.print(D)}`,{nodes:D});return D.value}});cF.GraphQLString=vF;var gF=new M8.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(D){let P=b8(D);if(typeof P==="boolean")return P;if(Number.isFinite(P))return P!==0;throw new bD.GraphQLError(`Boolean cannot represent a non boolean value: ${L0.inspect(P)}`)},parseValue(D){if(typeof D!=="boolean")throw new bD.GraphQLError(`Boolean cannot represent a non boolean value: ${L0.inspect(D)}`);return D},parseLiteral(D){if(D.kind!==Z2.Kind.BOOLEAN)throw new bD.GraphQLError(`Boolean cannot represent a non boolean value: ${Q8.print(D)}`,{nodes:D});return D.value}});cF.GraphQLBoolean=gF;var yF=new M8.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 P=b8(D);if(typeof P==="string")return P;if(Number.isInteger(P))return String(P);throw new bD.GraphQLError(`ID cannot represent value: ${L0.inspect(D)}`)},parseValue(D){if(typeof D==="string")return D;if(typeof D==="number"&&Number.isInteger(D))return D.toString();throw new bD.GraphQLError(`ID cannot represent value: ${L0.inspect(D)}`)},parseLiteral(D){if(D.kind!==Z2.Kind.STRING&&D.kind!==Z2.Kind.INT)throw new bD.GraphQLError("ID cannot represent a non-string and non-integer value: "+Q8.print(D),{nodes:D});return D.value}});cF.GraphQLID=yF;var mF=Object.freeze([vF,fF,hF,gF,yF]);cF.specifiedScalarTypes=mF;function SA(D){return mF.some(({name:P})=>D.name===P)}function b8(D){if(xF.isObjectLike(D)){if(typeof D.valueOf==="function"){let P=D.valueOf();if(!xF.isObjectLike(P))return P}if(typeof D.toJSON==="function")return D.toJSON()}return D}});var fD=J((D5)=>{Object.defineProperty(D5,"__esModule",{value:!0});D5.GraphQLSpecifiedByDirective=D5.GraphQLSkipDirective=D5.GraphQLOneOfDirective=D5.GraphQLIncludeDirective=D5.GraphQLDirective=D5.GraphQLDeprecatedDirective=D5.DEFAULT_DEPRECATION_REASON=void 0;D5.assertDirective=zA;D5.isDirective=pF;D5.isSpecifiedDirective=uA;D5.specifiedDirectives=void 0;var dF=kD(),JA=i(),UA=A8(),XA=U0(),qA=bP(),dD=$2(),GA=q8(),w8=l(),fP=z0();function pF(D){return UA.instanceOf(D,a0)}function zA(D){if(!pF(D))throw new Error(`Expected ${JA.inspect(D)} to be a GraphQL directive.`);return D}class a0{constructor(D){var P,O;this.name=GA.assertName(D.name),this.description=D.description,this.locations=D.locations,this.isRepeatable=(P=D.isRepeatable)!==null&&P!==void 0?P:!1,this.extensions=qA.toObjMap(D.extensions),this.astNode=D.astNode,Array.isArray(D.locations)||dF.devAssert(!1,`@${D.name} locations must be an Array.`);let W=(O=D.args)!==null&&O!==void 0?O:{};XA.isObjectLike(W)&&!Array.isArray(W)||dF.devAssert(!1,`@${D.name} args must be an object with argument names as keys.`),this.args=w8.defineArguments(W)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:w8.argsToArgsConfig(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}D5.GraphQLDirective=a0;var aF=new a0({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[dD.DirectiveLocation.FIELD,dD.DirectiveLocation.FRAGMENT_SPREAD,dD.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new w8.GraphQLNonNull(fP.GraphQLBoolean),description:"Included when true."}}});D5.GraphQLIncludeDirective=aF;var nF=new a0({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[dD.DirectiveLocation.FIELD,dD.DirectiveLocation.FRAGMENT_SPREAD,dD.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new w8.GraphQLNonNull(fP.GraphQLBoolean),description:"Skipped when true."}}});D5.GraphQLSkipDirective=nF;var tF="No longer supported";D5.DEFAULT_DEPRECATION_REASON=tF;var sF=new a0({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[dD.DirectiveLocation.FIELD_DEFINITION,dD.DirectiveLocation.ARGUMENT_DEFINITION,dD.DirectiveLocation.INPUT_FIELD_DEFINITION,dD.DirectiveLocation.ENUM_VALUE],args:{reason:{type:fP.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:tF}}});D5.GraphQLDeprecatedDirective=sF;var iF=new a0({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[dD.DirectiveLocation.SCALAR],args:{url:{type:new w8.GraphQLNonNull(fP.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});D5.GraphQLSpecifiedByDirective=iF;var oF=new a0({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[dD.DirectiveLocation.INPUT_OBJECT],args:{}});D5.GraphQLOneOfDirective=oF;var eF=Object.freeze([aF,nF,sF,iF,oF]);D5.specifiedDirectives=eF;function uA(D){return eF.some(({name:P})=>P===D.name)}});var hP=J((W5)=>{Object.defineProperty(W5,"__esModule",{value:!0});W5.isIterableObject=_A;function _A(D){return typeof D==="object"&&typeof(D===null||D===void 0?void 0:D[Symbol.iterator])==="function"}});var $8=J((R5)=>{Object.defineProperty(R5,"__esModule",{value:!0});R5.astFromValue=j8;var E5=i(),NA=$D(),kA=hP(),xA=U0(),pD=c(),K8=l(),fA=z0();function j8(D,P){if(K8.isNonNullType(P)){let O=j8(D,P.ofType);if((O===null||O===void 0?void 0:O.kind)===pD.Kind.NULL)return null;return O}if(D===null)return{kind:pD.Kind.NULL};if(D===void 0)return null;if(K8.isListType(P)){let O=P.ofType;if(kA.isIterableObject(D)){let W=[];for(let E of D){let F=j8(E,O);if(F!=null)W.push(F)}return{kind:pD.Kind.LIST,values:W}}return j8(D,O)}if(K8.isInputObjectType(P)){if(!xA.isObjectLike(D))return null;let O=[];for(let W of Object.values(P.getFields())){let E=j8(D[W.name],W.type);if(E)O.push({kind:pD.Kind.OBJECT_FIELD,name:{kind:pD.Kind.NAME,value:W.name},value:E})}return{kind:pD.Kind.OBJECT,fields:O}}if(K8.isLeafType(P)){let O=P.serialize(D);if(O==null)return null;if(typeof O==="boolean")return{kind:pD.Kind.BOOLEAN,value:O};if(typeof O==="number"&&Number.isFinite(O)){let W=String(O);return F5.test(W)?{kind:pD.Kind.INT,value:W}:{kind:pD.Kind.FLOAT,value:W}}if(typeof O==="string"){if(K8.isEnumType(P))return{kind:pD.Kind.ENUM,value:O};if(P===fA.GraphQLID&&F5.test(O))return{kind:pD.Kind.INT,value:O};return{kind:pD.Kind.STRING,value:O}}throw new TypeError(`Cannot convert value to AST: ${E5.inspect(O)}.`)}NA.invariant(!1,"Unexpected input type: "+E5.inspect(P))}var F5=/^-?(?:0|[1-9][0-9]*)$/});var nD=J((L5)=>{Object.defineProperty(L5,"__esModule",{value:!0});L5.introspectionTypes=L5.__TypeKind=L5.__Type=L5.__Schema=L5.__InputValue=L5.__Field=L5.__EnumValue=L5.__DirectiveLocation=L5.__Directive=L5.TypeNameMetaFieldDef=L5.TypeMetaFieldDef=L5.TypeKind=L5.SchemaMetaFieldDef=void 0;L5.isIntrospectionType=dA;var vA=i(),gA=$D(),zD=$2(),yA=mD(),mA=$8(),M=l(),e=z0(),m1=new M.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:e.GraphQLString,resolve:(D)=>D.description},types:{description:"A list of all types supported by this server.",type:new M.GraphQLNonNull(new M.GraphQLList(new M.GraphQLNonNull(aD))),resolve(D){return Object.values(D.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new M.GraphQLNonNull(aD),resolve:(D)=>D.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:aD,resolve:(D)=>D.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:aD,resolve:(D)=>D.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new M.GraphQLNonNull(new M.GraphQLList(new M.GraphQLNonNull(c1))),resolve:(D)=>D.getDirectives()}})});L5.__Schema=m1;var c1=new M.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new M.GraphQLNonNull(e.GraphQLString),resolve:(D)=>D.name},description:{type:e.GraphQLString,resolve:(D)=>D.description},isRepeatable:{type:new M.GraphQLNonNull(e.GraphQLBoolean),resolve:(D)=>D.isRepeatable},locations:{type:new M.GraphQLNonNull(new M.GraphQLList(new M.GraphQLNonNull(l1))),resolve:(D)=>D.locations},args:{type:new M.GraphQLNonNull(new M.GraphQLList(new M.GraphQLNonNull(V8))),args:{includeDeprecated:{type:e.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:P}){return P?D.args:D.args.filter((O)=>O.deprecationReason==null)}}})});L5.__Directive=c1;var l1=new M.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:zD.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:zD.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:zD.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:zD.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:zD.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:zD.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:zD.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:zD.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:zD.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:zD.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:zD.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:zD.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:zD.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:zD.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:zD.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:zD.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:zD.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:zD.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:zD.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});L5.__DirectiveLocation=l1;var aD=new M.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 M.GraphQLNonNull(p1),resolve(D){if(M.isScalarType(D))return uD.SCALAR;if(M.isObjectType(D))return uD.OBJECT;if(M.isInterfaceType(D))return uD.INTERFACE;if(M.isUnionType(D))return uD.UNION;if(M.isEnumType(D))return uD.ENUM;if(M.isInputObjectType(D))return uD.INPUT_OBJECT;if(M.isListType(D))return uD.LIST;if(M.isNonNullType(D))return uD.NON_NULL;gA.invariant(!1,`Unexpected type: "${vA.inspect(D)}".`)}},name:{type:e.GraphQLString,resolve:(D)=>("name"in D)?D.name:void 0},description:{type:e.GraphQLString,resolve:(D)=>("description"in D)?D.description:void 0},specifiedByURL:{type:e.GraphQLString,resolve:(D)=>("specifiedByURL"in D)?D.specifiedByURL:void 0},fields:{type:new M.GraphQLList(new M.GraphQLNonNull(r1)),args:{includeDeprecated:{type:e.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:P}){if(M.isObjectType(D)||M.isInterfaceType(D)){let O=Object.values(D.getFields());return P?O:O.filter((W)=>W.deprecationReason==null)}}},interfaces:{type:new M.GraphQLList(new M.GraphQLNonNull(aD)),resolve(D){if(M.isObjectType(D)||M.isInterfaceType(D))return D.getInterfaces()}},possibleTypes:{type:new M.GraphQLList(new M.GraphQLNonNull(aD)),resolve(D,P,O,{schema:W}){if(M.isAbstractType(D))return W.getPossibleTypes(D)}},enumValues:{type:new M.GraphQLList(new M.GraphQLNonNull(d1)),args:{includeDeprecated:{type:e.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:P}){if(M.isEnumType(D)){let O=D.getValues();return P?O:O.filter((W)=>W.deprecationReason==null)}}},inputFields:{type:new M.GraphQLList(new M.GraphQLNonNull(V8)),args:{includeDeprecated:{type:e.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:P}){if(M.isInputObjectType(D)){let O=Object.values(D.getFields());return P?O:O.filter((W)=>W.deprecationReason==null)}}},ofType:{type:aD,resolve:(D)=>("ofType"in D)?D.ofType:void 0},isOneOf:{type:e.GraphQLBoolean,resolve:(D)=>{if(M.isInputObjectType(D))return D.isOneOf}}})});L5.__Type=aD;var r1=new M.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 M.GraphQLNonNull(e.GraphQLString),resolve:(D)=>D.name},description:{type:e.GraphQLString,resolve:(D)=>D.description},args:{type:new M.GraphQLNonNull(new M.GraphQLList(new M.GraphQLNonNull(V8))),args:{includeDeprecated:{type:e.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:P}){return P?D.args:D.args.filter((O)=>O.deprecationReason==null)}},type:{type:new M.GraphQLNonNull(aD),resolve:(D)=>D.type},isDeprecated:{type:new M.GraphQLNonNull(e.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:e.GraphQLString,resolve:(D)=>D.deprecationReason}})});L5.__Field=r1;var V8=new M.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 M.GraphQLNonNull(e.GraphQLString),resolve:(D)=>D.name},description:{type:e.GraphQLString,resolve:(D)=>D.description},type:{type:new M.GraphQLNonNull(aD),resolve:(D)=>D.type},defaultValue:{type:e.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(D){let{type:P,defaultValue:O}=D,W=mA.astFromValue(O,P);return W?yA.print(W):null}},isDeprecated:{type:new M.GraphQLNonNull(e.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:e.GraphQLString,resolve:(D)=>D.deprecationReason}})});L5.__InputValue=V8;var d1=new M.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 M.GraphQLNonNull(e.GraphQLString),resolve:(D)=>D.name},description:{type:e.GraphQLString,resolve:(D)=>D.description},isDeprecated:{type:new M.GraphQLNonNull(e.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:e.GraphQLString,resolve:(D)=>D.deprecationReason}})});L5.__EnumValue=d1;var uD;L5.TypeKind=uD;(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"})(uD||(L5.TypeKind=uD={}));var p1=new M.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:uD.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:uD.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:uD.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:uD.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:uD.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:uD.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:uD.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:uD.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});L5.__TypeKind=p1;var cA={name:"__schema",type:new M.GraphQLNonNull(m1),description:"Access the current type schema of this server.",args:[],resolve:(D,P,O,{schema:W})=>W,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};L5.SchemaMetaFieldDef=cA;var lA={name:"__type",type:aD,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new M.GraphQLNonNull(e.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(D,{name:P},O,{schema:W})=>W.getType(P),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};L5.TypeMetaFieldDef=lA;var rA={name:"__typename",type:new M.GraphQLNonNull(e.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(D,P,O,{parentType:W})=>W.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};L5.TypeNameMetaFieldDef=rA;var S5=Object.freeze([m1,c1,l1,aD,r1,V8,d1,p1]);L5.introspectionTypes=S5;function dA(D){return S5.some(({name:P})=>D.name===P)}});var H2=J((C5)=>{Object.defineProperty(C5,"__esModule",{value:!0});C5.GraphQLSchema=void 0;C5.assertSchema=LJ;C5.isSchema=H5;var vP=kD(),n1=i(),EJ=A8(),FJ=U0(),RJ=bP(),a1=X0(),B0=l(),Z5=fD(),SJ=nD();function H5(D){return EJ.instanceOf(D,t1)}function LJ(D){if(!H5(D))throw new Error(`Expected ${n1.inspect(D)} to be a GraphQL schema.`);return D}class t1{constructor(D){var P,O;this.__validationErrors=D.assumeValid===!0?[]:void 0,FJ.isObjectLike(D)||vP.devAssert(!1,"Must provide configuration object."),!D.types||Array.isArray(D.types)||vP.devAssert(!1,`"types" must be Array if provided but got: ${n1.inspect(D.types)}.`),!D.directives||Array.isArray(D.directives)||vP.devAssert(!1,`"directives" must be Array if provided but got: ${n1.inspect(D.directives)}.`),this.description=D.description,this.extensions=RJ.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(P=D.extensionASTNodes)!==null&&P!==void 0?P:[],this._queryType=D.query,this._mutationType=D.mutation,this._subscriptionType=D.subscription,this._directives=(O=D.directives)!==null&&O!==void 0?O:Z5.specifiedDirectives;let W=new Set(D.types);if(D.types!=null)for(let E of D.types)W.delete(E),Y0(E,W);if(this._queryType!=null)Y0(this._queryType,W);if(this._mutationType!=null)Y0(this._mutationType,W);if(this._subscriptionType!=null)Y0(this._subscriptionType,W);for(let E of this._directives)if(Z5.isDirective(E))for(let F of E.args)Y0(F.type,W);Y0(SJ.__Schema,W),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let E of W){if(E==null)continue;let F=E.name;if(F||vP.devAssert(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[F]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${F}".`);if(this._typeMap[F]=E,B0.isInterfaceType(E)){for(let R of E.getInterfaces())if(B0.isInterfaceType(R)){let S=this._implementationsMap[R.name];if(S===void 0)S=this._implementationsMap[R.name]={objects:[],interfaces:[]};S.interfaces.push(E)}}else if(B0.isObjectType(E)){for(let R of E.getInterfaces())if(B0.isInterfaceType(R)){let S=this._implementationsMap[R.name];if(S===void 0)S=this._implementationsMap[R.name]={objects:[],interfaces:[]};S.objects.push(E)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(D){switch(D){case a1.OperationTypeNode.QUERY:return this.getQueryType();case a1.OperationTypeNode.MUTATION:return this.getMutationType();case a1.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(D){return this.getTypeMap()[D]}getPossibleTypes(D){return B0.isUnionType(D)?D.getTypes():this.getImplementations(D).objects}getImplementations(D){let P=this._implementationsMap[D.name];return P!==null&&P!==void 0?P:{objects:[],interfaces:[]}}isSubType(D,P){let O=this._subTypeMap[D.name];if(O===void 0){if(O=Object.create(null),B0.isUnionType(D))for(let W of D.getTypes())O[W.name]=!0;else{let W=this.getImplementations(D);for(let E of W.objects)O[E.name]=!0;for(let E of W.interfaces)O[E.name]=!0}this._subTypeMap[D.name]=O}return O[P.name]!==void 0}getDirectives(){return this._directives}getDirective(D){return this.getDirectives().find((P)=>P.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}}}C5.GraphQLSchema=t1;function Y0(D,P){let O=B0.getNamedType(D);if(!P.has(O)){if(P.add(O),B0.isUnionType(O))for(let W of O.getTypes())Y0(W,P);else if(B0.isObjectType(O)||B0.isInterfaceType(O)){for(let W of O.getInterfaces())Y0(W,P);for(let W of Object.values(O.getFields())){Y0(W.type,P);for(let E of W.args)Y0(E.type,P)}}else if(B0.isInputObjectType(O))for(let W of Object.values(O.getFields()))Y0(W.type,P)}return P}});var T8=J((I5)=>{Object.defineProperty(I5,"__esModule",{value:!0});I5.assertValidSchema=AJ;I5.validateSchema=z5;var _D=i(),ZJ=T(),s1=X0(),J5=I8(),HD=l(),G5=fD(),HJ=nD(),CJ=H2();function z5(D){if(CJ.assertSchema(D),D.__validationErrors)return D.__validationErrors;let P=new u5(D);JJ(P),UJ(P),XJ(P);let O=P.getErrors();return D.__validationErrors=O,O}function AJ(D){let P=z5(D);if(P.length!==0)throw new Error(P.map((O)=>O.message).join("\n\n"))}class u5{constructor(D){this._errors=[],this.schema=D}reportError(D,P){let O=Array.isArray(P)?P.filter(Boolean):P;this._errors.push(new ZJ.GraphQLError(D,{nodes:O}))}getErrors(){return this._errors}}function JJ(D){let P=D.schema,O=P.getQueryType();if(!O)D.reportError("Query root type must be provided.",P.astNode);else if(!HD.isObjectType(O)){var W;D.reportError(`Query root type must be Object type, it cannot be ${_D.inspect(O)}.`,(W=i1(P,s1.OperationTypeNode.QUERY))!==null&&W!==void 0?W:O.astNode)}let E=P.getMutationType();if(E&&!HD.isObjectType(E)){var F;D.reportError(`Mutation root type must be Object type if provided, it cannot be ${_D.inspect(E)}.`,(F=i1(P,s1.OperationTypeNode.MUTATION))!==null&&F!==void 0?F:E.astNode)}let R=P.getSubscriptionType();if(R&&!HD.isObjectType(R)){var S;D.reportError(`Subscription root type must be Object type if provided, it cannot be ${_D.inspect(R)}.`,(S=i1(P,s1.OperationTypeNode.SUBSCRIPTION))!==null&&S!==void 0?S:R.astNode)}}function i1(D,P){var O;return(O=[D.astNode,...D.extensionASTNodes].flatMap((W)=>{var E;return(E=W===null||W===void 0?void 0:W.operationTypes)!==null&&E!==void 0?E:[]}).find((W)=>W.operation===P))===null||O===void 0?void 0:O.type}function UJ(D){for(let O of D.schema.getDirectives()){if(!G5.isDirective(O)){D.reportError(`Expected directive but got: ${_D.inspect(O)}.`,O===null||O===void 0?void 0:O.astNode);continue}C2(D,O);for(let W of O.args){if(C2(D,W),!HD.isInputType(W.type))D.reportError(`The type of @${O.name}(${W.name}:) must be Input Type but got: ${_D.inspect(W.type)}.`,W.astNode);if(HD.isRequiredArgument(W)&&W.deprecationReason!=null){var P;D.reportError(`Required argument @${O.name}(${W.name}:) cannot be deprecated.`,[o1(W.astNode),(P=W.astNode)===null||P===void 0?void 0:P.type])}}}}function C2(D,P){if(P.name.startsWith("__"))D.reportError(`Name "${P.name}" must not begin with "__", which is reserved by GraphQL introspection.`,P.astNode)}function XJ(D){let P=MJ(D),O=D.schema.getTypeMap();for(let W of Object.values(O)){if(!HD.isNamedType(W)){D.reportError(`Expected GraphQL named type but got: ${_D.inspect(W)}.`,W.astNode);continue}if(!HJ.isIntrospectionType(W))C2(D,W);if(HD.isObjectType(W))U5(D,W),X5(D,W);else if(HD.isInterfaceType(W))U5(D,W),X5(D,W);else if(HD.isUnionType(W))zJ(D,W);else if(HD.isEnumType(W))uJ(D,W);else if(HD.isInputObjectType(W))IJ(D,W),P(W)}}function U5(D,P){let O=Object.values(P.getFields());if(O.length===0)D.reportError(`Type ${P.name} must define one or more fields.`,[P.astNode,...P.extensionASTNodes]);for(let R of O){if(C2(D,R),!HD.isOutputType(R.type)){var W;D.reportError(`The type of ${P.name}.${R.name} must be Output Type but got: ${_D.inspect(R.type)}.`,(W=R.astNode)===null||W===void 0?void 0:W.type)}for(let S of R.args){let L=S.name;if(C2(D,S),!HD.isInputType(S.type)){var E;D.reportError(`The type of ${P.name}.${R.name}(${L}:) must be Input Type but got: ${_D.inspect(S.type)}.`,(E=S.astNode)===null||E===void 0?void 0:E.type)}if(HD.isRequiredArgument(S)&&S.deprecationReason!=null){var F;D.reportError(`Required argument ${P.name}.${R.name}(${L}:) cannot be deprecated.`,[o1(S.astNode),(F=S.astNode)===null||F===void 0?void 0:F.type])}}}}function X5(D,P){let O=Object.create(null);for(let W of P.getInterfaces()){if(!HD.isInterfaceType(W)){D.reportError(`Type ${_D.inspect(P)} must only implement Interface types, it cannot implement ${_D.inspect(W)}.`,_8(P,W));continue}if(P===W){D.reportError(`Type ${P.name} cannot implement itself because it would create a circular reference.`,_8(P,W));continue}if(O[W.name]){D.reportError(`Type ${P.name} can only implement ${W.name} once.`,_8(P,W));continue}O[W.name]=!0,GJ(D,P,W),qJ(D,P,W)}}function qJ(D,P,O){let W=P.getFields();for(let L of Object.values(O.getFields())){let B=L.name,Y=W[B];if(!Y){D.reportError(`Interface field ${O.name}.${B} expected but ${P.name} does not provide it.`,[L.astNode,P.astNode,...P.extensionASTNodes]);continue}if(!J5.isTypeSubTypeOf(D.schema,Y.type,L.type)){var E,F;D.reportError(`Interface field ${O.name}.${B} expects type ${_D.inspect(L.type)} but ${P.name}.${B} is type ${_D.inspect(Y.type)}.`,[(E=L.astNode)===null||E===void 0?void 0:E.type,(F=Y.astNode)===null||F===void 0?void 0:F.type])}for(let Z of L.args){let H=Z.name,A=Y.args.find((X)=>X.name===H);if(!A){D.reportError(`Interface field argument ${O.name}.${B}(${H}:) expected but ${P.name}.${B} does not provide it.`,[Z.astNode,Y.astNode]);continue}if(!J5.isEqualType(Z.type,A.type)){var R,S;D.reportError(`Interface field argument ${O.name}.${B}(${H}:) expects type ${_D.inspect(Z.type)} but ${P.name}.${B}(${H}:) is type ${_D.inspect(A.type)}.`,[(R=Z.astNode)===null||R===void 0?void 0:R.type,(S=A.astNode)===null||S===void 0?void 0:S.type])}}for(let Z of Y.args){let H=Z.name;if(!L.args.find((X)=>X.name===H)&&HD.isRequiredArgument(Z))D.reportError(`Object field ${P.name}.${B} includes required argument ${H} that is missing from the Interface field ${O.name}.${B}.`,[Z.astNode,L.astNode])}}}function GJ(D,P,O){let W=P.getInterfaces();for(let E of O.getInterfaces())if(!W.includes(E))D.reportError(E===P?`Type ${P.name} cannot implement ${O.name} because it would create a circular reference.`:`Type ${P.name} must implement ${E.name} because it is implemented by ${O.name}.`,[..._8(O,E),..._8(P,O)])}function zJ(D,P){let O=P.getTypes();if(O.length===0)D.reportError(`Union type ${P.name} must define one or more member types.`,[P.astNode,...P.extensionASTNodes]);let W=Object.create(null);for(let E of O){if(W[E.name]){D.reportError(`Union type ${P.name} can only include type ${E.name} once.`,q5(P,E.name));continue}if(W[E.name]=!0,!HD.isObjectType(E))D.reportError(`Union type ${P.name} can only include Object types, it cannot include ${_D.inspect(E)}.`,q5(P,String(E)))}}function uJ(D,P){let O=P.getValues();if(O.length===0)D.reportError(`Enum type ${P.name} must define one or more values.`,[P.astNode,...P.extensionASTNodes]);for(let W of O)C2(D,W)}function IJ(D,P){let O=Object.values(P.getFields());if(O.length===0)D.reportError(`Input Object type ${P.name} must define one or more fields.`,[P.astNode,...P.extensionASTNodes]);for(let F of O){if(C2(D,F),!HD.isInputType(F.type)){var W;D.reportError(`The type of ${P.name}.${F.name} must be Input Type but got: ${_D.inspect(F.type)}.`,(W=F.astNode)===null||W===void 0?void 0:W.type)}if(HD.isRequiredInputField(F)&&F.deprecationReason!=null){var E;D.reportError(`Required input field ${P.name}.${F.name} cannot be deprecated.`,[o1(F.astNode),(E=F.astNode)===null||E===void 0?void 0:E.type])}if(P.isOneOf)QJ(P,F,D)}}function QJ(D,P,O){if(HD.isNonNullType(P.type)){var W;O.reportError(`OneOf input field ${D.name}.${P.name} must be nullable.`,(W=P.astNode)===null||W===void 0?void 0:W.type)}if(P.defaultValue!==void 0)O.reportError(`OneOf input field ${D.name}.${P.name} cannot have a default value.`,P.astNode)}function MJ(D){let P=Object.create(null),O=[],W=Object.create(null);return E;function E(F){if(P[F.name])return;P[F.name]=!0,W[F.name]=O.length;let R=Object.values(F.getFields());for(let S of R)if(HD.isNonNullType(S.type)&&HD.isInputObjectType(S.type.ofType)){let L=S.type.ofType,B=W[L.name];if(O.push(S),B===void 0)E(L);else{let Y=O.slice(B),Z=Y.map((H)=>H.name).join(".");D.reportError(`Cannot reference Input Object "${L.name}" within itself through a series of non-null fields: "${Z}".`,Y.map((H)=>H.astNode))}O.pop()}W[F.name]=void 0}}function _8(D,P){let{astNode:O,extensionASTNodes:W}=D;return(O!=null?[O,...W]:W).flatMap((F)=>{var R;return(R=F.interfaces)!==null&&R!==void 0?R:[]}).filter((F)=>F.name.value===P.name)}function q5(D,P){let{astNode:O,extensionASTNodes:W}=D;return(O!=null?[O,...W]:W).flatMap((F)=>{var R;return(R=F.types)!==null&&R!==void 0?R:[]}).filter((F)=>F.name.value===P)}function o1(D){var P;return D===null||D===void 0?void 0:(P=D.directives)===null||P===void 0?void 0:P.find((O)=>O.name.value===G5.GraphQLDeprecatedDirective.name)}});var u0=J((M5)=>{Object.defineProperty(M5,"__esModule",{value:!0});M5.typeFromAST=DW;var e1=c(),Q5=l();function DW(D,P){switch(P.kind){case e1.Kind.LIST_TYPE:{let O=DW(D,P.type);return O&&new Q5.GraphQLList(O)}case e1.Kind.NON_NULL_TYPE:{let O=DW(D,P.type);return O&&new Q5.GraphQLNonNull(O)}case e1.Kind.NAMED_TYPE:return D.getType(P.name.value)}}});var gP=J((j5)=>{Object.defineProperty(j5,"__esModule",{value:!0});j5.TypeInfo=void 0;j5.visitWithTypeInfo=VJ;var jJ=X0(),CD=c(),b5=R2(),AD=l(),f2=nD(),w5=u0();class K5{constructor(D,P,O){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=O!==null&&O!==void 0?O:$J,P){if(AD.isInputType(P))this._inputTypeStack.push(P);if(AD.isCompositeType(P))this._parentTypeStack.push(P);if(AD.isOutputType(P))this._typeStack.push(P)}}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 P=this._schema;switch(D.kind){case CD.Kind.SELECTION_SET:{let W=AD.getNamedType(this.getType());this._parentTypeStack.push(AD.isCompositeType(W)?W:void 0);break}case CD.Kind.FIELD:{let W=this.getParentType(),E,F;if(W){if(E=this._getFieldDef(P,W,D),E)F=E.type}this._fieldDefStack.push(E),this._typeStack.push(AD.isOutputType(F)?F:void 0);break}case CD.Kind.DIRECTIVE:this._directive=P.getDirective(D.name.value);break;case CD.Kind.OPERATION_DEFINITION:{let W=P.getRootType(D.operation);this._typeStack.push(AD.isObjectType(W)?W:void 0);break}case CD.Kind.INLINE_FRAGMENT:case CD.Kind.FRAGMENT_DEFINITION:{let W=D.typeCondition,E=W?w5.typeFromAST(P,W):AD.getNamedType(this.getType());this._typeStack.push(AD.isOutputType(E)?E:void 0);break}case CD.Kind.VARIABLE_DEFINITION:{let W=w5.typeFromAST(P,D.type);this._inputTypeStack.push(AD.isInputType(W)?W:void 0);break}case CD.Kind.ARGUMENT:{var O;let W,E,F=(O=this.getDirective())!==null&&O!==void 0?O:this.getFieldDef();if(F){if(W=F.args.find((R)=>R.name===D.name.value),W)E=W.type}this._argument=W,this._defaultValueStack.push(W?W.defaultValue:void 0),this._inputTypeStack.push(AD.isInputType(E)?E:void 0);break}case CD.Kind.LIST:{let W=AD.getNullableType(this.getInputType()),E=AD.isListType(W)?W.ofType:W;this._defaultValueStack.push(void 0),this._inputTypeStack.push(AD.isInputType(E)?E:void 0);break}case CD.Kind.OBJECT_FIELD:{let W=AD.getNamedType(this.getInputType()),E,F;if(AD.isInputObjectType(W)){if(F=W.getFields()[D.name.value],F)E=F.type}this._defaultValueStack.push(F?F.defaultValue:void 0),this._inputTypeStack.push(AD.isInputType(E)?E:void 0);break}case CD.Kind.ENUM:{let W=AD.getNamedType(this.getInputType()),E;if(AD.isEnumType(W))E=W.getValue(D.value);this._enumValue=E;break}default:}}leave(D){switch(D.kind){case CD.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case CD.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case CD.Kind.DIRECTIVE:this._directive=null;break;case CD.Kind.OPERATION_DEFINITION:case CD.Kind.INLINE_FRAGMENT:case CD.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case CD.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case CD.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case CD.Kind.LIST:case CD.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case CD.Kind.ENUM:this._enumValue=null;break;default:}}}j5.TypeInfo=K5;function $J(D,P,O){let W=O.name.value;if(W===f2.SchemaMetaFieldDef.name&&D.getQueryType()===P)return f2.SchemaMetaFieldDef;if(W===f2.TypeMetaFieldDef.name&&D.getQueryType()===P)return f2.TypeMetaFieldDef;if(W===f2.TypeNameMetaFieldDef.name&&AD.isCompositeType(P))return f2.TypeNameMetaFieldDef;if(AD.isObjectType(P)||AD.isInterfaceType(P))return P.getFields()[W]}function VJ(D,P){return{enter(...O){let W=O[0];D.enter(W);let E=b5.getEnterLeaveForKind(P,W.kind).enter;if(E){let F=E.apply(P,O);if(F!==void 0){if(D.leave(W),jJ.isNode(F))D.enter(F)}return F}},leave(...O){let W=O[0],E=b5.getEnterLeaveForKind(P,W.kind).leave,F;if(E)F=E.apply(P,O);return D.leave(W),F}}}});var A2=J((f5)=>{Object.defineProperty(f5,"__esModule",{value:!0});f5.isConstValueNode=PW;f5.isDefinitionNode=TJ;f5.isExecutableDefinitionNode=V5;f5.isSelectionNode=NJ;f5.isTypeDefinitionNode=N5;f5.isTypeExtensionNode=x5;f5.isTypeNode=kJ;f5.isTypeSystemDefinitionNode=T5;f5.isTypeSystemExtensionNode=k5;f5.isValueNode=_5;var r=c();function TJ(D){return V5(D)||T5(D)||k5(D)}function V5(D){return D.kind===r.Kind.OPERATION_DEFINITION||D.kind===r.Kind.FRAGMENT_DEFINITION}function NJ(D){return D.kind===r.Kind.FIELD||D.kind===r.Kind.FRAGMENT_SPREAD||D.kind===r.Kind.INLINE_FRAGMENT}function _5(D){return D.kind===r.Kind.VARIABLE||D.kind===r.Kind.INT||D.kind===r.Kind.FLOAT||D.kind===r.Kind.STRING||D.kind===r.Kind.BOOLEAN||D.kind===r.Kind.NULL||D.kind===r.Kind.ENUM||D.kind===r.Kind.LIST||D.kind===r.Kind.OBJECT}function PW(D){return _5(D)&&(D.kind===r.Kind.LIST?D.values.some(PW):D.kind===r.Kind.OBJECT?D.fields.some((P)=>PW(P.value)):D.kind!==r.Kind.VARIABLE)}function kJ(D){return D.kind===r.Kind.NAMED_TYPE||D.kind===r.Kind.LIST_TYPE||D.kind===r.Kind.NON_NULL_TYPE}function T5(D){return D.kind===r.Kind.SCHEMA_DEFINITION||N5(D)||D.kind===r.Kind.DIRECTIVE_DEFINITION}function N5(D){return D.kind===r.Kind.SCALAR_TYPE_DEFINITION||D.kind===r.Kind.OBJECT_TYPE_DEFINITION||D.kind===r.Kind.INTERFACE_TYPE_DEFINITION||D.kind===r.Kind.UNION_TYPE_DEFINITION||D.kind===r.Kind.ENUM_TYPE_DEFINITION||D.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function k5(D){return D.kind===r.Kind.SCHEMA_EXTENSION||x5(D)}function x5(D){return D.kind===r.Kind.SCALAR_TYPE_EXTENSION||D.kind===r.Kind.OBJECT_TYPE_EXTENSION||D.kind===r.Kind.INTERFACE_TYPE_EXTENSION||D.kind===r.Kind.UNION_TYPE_EXTENSION||D.kind===r.Kind.ENUM_TYPE_EXTENSION||D.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var OW=J((v5)=>{Object.defineProperty(v5,"__esModule",{value:!0});v5.ExecutableDefinitionsRule=aJ;var dJ=T(),h5=c(),pJ=A2();function aJ(D){return{Document(P){for(let O of P.definitions)if(!pJ.isExecutableDefinitionNode(O)){let W=O.kind===h5.Kind.SCHEMA_DEFINITION||O.kind===h5.Kind.SCHEMA_EXTENSION?"schema":'"'+O.name.value+'"';D.reportError(new dJ.GraphQLError(`The ${W} definition is not executable.`,{nodes:O}))}return!1}}}});var WW=J((y5)=>{Object.defineProperty(y5,"__esModule",{value:!0});y5.FieldsOnCorrectTypeRule=oJ;var g5=c0(),tJ=X8(),sJ=r0(),iJ=T(),N8=l();function oJ(D){return{Field(P){let O=D.getParentType();if(O){if(!D.getFieldDef()){let E=D.getSchema(),F=P.name.value,R=g5.didYouMean("to use an inline fragment on",eJ(E,O,F));if(R==="")R=g5.didYouMean(DU(O,F));D.reportError(new iJ.GraphQLError(`Cannot query field "${F}" on type "${O.name}".`+R,{nodes:P}))}}}}}function eJ(D,P,O){if(!N8.isAbstractType(P))return[];let W=new Set,E=Object.create(null);for(let R of D.getPossibleTypes(P)){if(!R.getFields()[O])continue;W.add(R),E[R.name]=1;for(let S of R.getInterfaces()){var F;if(!S.getFields()[O])continue;W.add(S),E[S.name]=((F=E[S.name])!==null&&F!==void 0?F:0)+1}}return[...W].sort((R,S)=>{let L=E[S.name]-E[R.name];if(L!==0)return L;if(N8.isInterfaceType(R)&&D.isSubType(R,S))return-1;if(N8.isInterfaceType(S)&&D.isSubType(S,R))return 1;return tJ.naturalCompare(R.name,S.name)}).map((R)=>R.name)}function DU(D,P){if(N8.isObjectType(D)||N8.isInterfaceType(D)){let O=Object.keys(D.getFields());return sJ.suggestionList(P,O)}return[]}});var EW=J((d5)=>{Object.defineProperty(d5,"__esModule",{value:!0});d5.FragmentsOnCompositeTypesRule=OU;var m5=T(),c5=mD(),l5=l(),r5=u0();function OU(D){return{InlineFragment(P){let O=P.typeCondition;if(O){let W=r5.typeFromAST(D.getSchema(),O);if(W&&!l5.isCompositeType(W)){let E=c5.print(O);D.reportError(new m5.GraphQLError(`Fragment cannot condition on non composite type "${E}".`,{nodes:O}))}}},FragmentDefinition(P){let O=r5.typeFromAST(D.getSchema(),P.typeCondition);if(O&&!l5.isCompositeType(O)){let W=c5.print(P.typeCondition);D.reportError(new m5.GraphQLError(`Fragment "${P.name.value}" cannot condition on non composite type "${W}".`,{nodes:P.typeCondition}))}}}}});var FW=J((s5)=>{Object.defineProperty(s5,"__esModule",{value:!0});s5.KnownArgumentNamesOnDirectivesRule=t5;s5.KnownArgumentNamesRule=RU;var p5=c0(),a5=r0(),n5=T(),EU=c(),FU=fD();function RU(D){return{...t5(D),Argument(P){let O=D.getArgument(),W=D.getFieldDef(),E=D.getParentType();if(!O&&W&&E){let F=P.name.value,R=W.args.map((L)=>L.name),S=a5.suggestionList(F,R);D.reportError(new n5.GraphQLError(`Unknown argument "${F}" on field "${E.name}.${W.name}".`+p5.didYouMean(S),{nodes:P}))}}}}function t5(D){let P=Object.create(null),O=D.getSchema(),W=O?O.getDirectives():FU.specifiedDirectives;for(let R of W)P[R.name]=R.args.map((S)=>S.name);let E=D.getDocument().definitions;for(let R of E)if(R.kind===EU.Kind.DIRECTIVE_DEFINITION){var F;let S=(F=R.arguments)!==null&&F!==void 0?F:[];P[R.name.value]=S.map((L)=>L.name.value)}return{Directive(R){let S=R.name.value,L=P[S];if(R.arguments&&L)for(let B of R.arguments){let Y=B.name.value;if(!L.includes(Y)){let Z=a5.suggestionList(Y,L);D.reportError(new n5.GraphQLError(`Unknown argument "${Y}" on directive "@${S}".`+p5.didYouMean(Z),{nodes:B}))}}return!1}}}});var LW=J((o5)=>{Object.defineProperty(o5,"__esModule",{value:!0});o5.KnownDirectivesRule=ZU;var BU=i(),RW=$D(),i5=T(),SW=X0(),ID=$2(),WD=c(),YU=fD();function ZU(D){let P=Object.create(null),O=D.getSchema(),W=O?O.getDirectives():YU.specifiedDirectives;for(let F of W)P[F.name]=F.locations;let E=D.getDocument().definitions;for(let F of E)if(F.kind===WD.Kind.DIRECTIVE_DEFINITION)P[F.name.value]=F.locations.map((R)=>R.value);return{Directive(F,R,S,L,B){let Y=F.name.value,Z=P[Y];if(!Z){D.reportError(new i5.GraphQLError(`Unknown directive "@${Y}".`,{nodes:F}));return}let H=HU(B);if(H&&!Z.includes(H))D.reportError(new i5.GraphQLError(`Directive "@${Y}" may not be used on ${H}.`,{nodes:F}))}}}function HU(D){let P=D[D.length-1];switch("kind"in P||RW.invariant(!1),P.kind){case WD.Kind.OPERATION_DEFINITION:return CU(P.operation);case WD.Kind.FIELD:return ID.DirectiveLocation.FIELD;case WD.Kind.FRAGMENT_SPREAD:return ID.DirectiveLocation.FRAGMENT_SPREAD;case WD.Kind.INLINE_FRAGMENT:return ID.DirectiveLocation.INLINE_FRAGMENT;case WD.Kind.FRAGMENT_DEFINITION:return ID.DirectiveLocation.FRAGMENT_DEFINITION;case WD.Kind.VARIABLE_DEFINITION:return ID.DirectiveLocation.VARIABLE_DEFINITION;case WD.Kind.SCHEMA_DEFINITION:case WD.Kind.SCHEMA_EXTENSION:return ID.DirectiveLocation.SCHEMA;case WD.Kind.SCALAR_TYPE_DEFINITION:case WD.Kind.SCALAR_TYPE_EXTENSION:return ID.DirectiveLocation.SCALAR;case WD.Kind.OBJECT_TYPE_DEFINITION:case WD.Kind.OBJECT_TYPE_EXTENSION:return ID.DirectiveLocation.OBJECT;case WD.Kind.FIELD_DEFINITION:return ID.DirectiveLocation.FIELD_DEFINITION;case WD.Kind.INTERFACE_TYPE_DEFINITION:case WD.Kind.INTERFACE_TYPE_EXTENSION:return ID.DirectiveLocation.INTERFACE;case WD.Kind.UNION_TYPE_DEFINITION:case WD.Kind.UNION_TYPE_EXTENSION:return ID.DirectiveLocation.UNION;case WD.Kind.ENUM_TYPE_DEFINITION:case WD.Kind.ENUM_TYPE_EXTENSION:return ID.DirectiveLocation.ENUM;case WD.Kind.ENUM_VALUE_DEFINITION:return ID.DirectiveLocation.ENUM_VALUE;case WD.Kind.INPUT_OBJECT_TYPE_DEFINITION:case WD.Kind.INPUT_OBJECT_TYPE_EXTENSION:return ID.DirectiveLocation.INPUT_OBJECT;case WD.Kind.INPUT_VALUE_DEFINITION:{let O=D[D.length-3];return"kind"in O||RW.invariant(!1),O.kind===WD.Kind.INPUT_OBJECT_TYPE_DEFINITION?ID.DirectiveLocation.INPUT_FIELD_DEFINITION:ID.DirectiveLocation.ARGUMENT_DEFINITION}default:RW.invariant(!1,"Unexpected kind: "+BU.inspect(P.kind))}}function CU(D){switch(D){case SW.OperationTypeNode.QUERY:return ID.DirectiveLocation.QUERY;case SW.OperationTypeNode.MUTATION:return ID.DirectiveLocation.MUTATION;case SW.OperationTypeNode.SUBSCRIPTION:return ID.DirectiveLocation.SUBSCRIPTION}}});var BW=J((e5)=>{Object.defineProperty(e5,"__esModule",{value:!0});e5.KnownFragmentNamesRule=UU;var JU=T();function UU(D){return{FragmentSpread(P){let O=P.name.value;if(!D.getFragment(O))D.reportError(new JU.GraphQLError(`Unknown fragment "${O}".`,{nodes:P.name}))}}}});var ZW=J((PR)=>{Object.defineProperty(PR,"__esModule",{value:!0});PR.KnownTypeNamesRule=QU;var qU=c0(),GU=r0(),zU=T(),YW=A2(),uU=nD(),IU=z0();function QU(D){let P=D.getSchema(),O=P?P.getTypeMap():Object.create(null),W=Object.create(null);for(let F of D.getDocument().definitions)if(YW.isTypeDefinitionNode(F))W[F.name.value]=!0;let E=[...Object.keys(O),...Object.keys(W)];return{NamedType(F,R,S,L,B){let Y=F.name.value;if(!O[Y]&&!W[Y]){var Z;let H=(Z=B[2])!==null&&Z!==void 0?Z:S,A=H!=null&&MU(H);if(A&&DR.includes(Y))return;let X=GU.suggestionList(Y,A?DR.concat(E):E);D.reportError(new zU.GraphQLError(`Unknown type "${Y}".`+qU.didYouMean(X),{nodes:F}))}}}}var DR=[...IU.specifiedScalarTypes,...uU.introspectionTypes].map((D)=>D.name);function MU(D){return"kind"in D&&(YW.isTypeSystemDefinitionNode(D)||YW.isTypeSystemExtensionNode(D))}});var HW=J((OR)=>{Object.defineProperty(OR,"__esModule",{value:!0});OR.LoneAnonymousOperationRule=jU;var wU=T(),KU=c();function jU(D){let P=0;return{Document(O){P=O.definitions.filter((W)=>W.kind===KU.Kind.OPERATION_DEFINITION).length},OperationDefinition(O){if(!O.name&&P>1)D.reportError(new wU.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:O}))}}}});var CW=J((ER)=>{Object.defineProperty(ER,"__esModule",{value:!0});ER.LoneSchemaDefinitionRule=VU;var WR=T();function VU(D){var P,O,W;let E=D.getSchema(),F=(P=(O=(W=E===null||E===void 0?void 0:E.astNode)!==null&&W!==void 0?W:E===null||E===void 0?void 0:E.getQueryType())!==null&&O!==void 0?O:E===null||E===void 0?void 0:E.getMutationType())!==null&&P!==void 0?P:E===null||E===void 0?void 0:E.getSubscriptionType(),R=0;return{SchemaDefinition(S){if(F){D.reportError(new WR.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:S}));return}if(R>0)D.reportError(new WR.GraphQLError("Must provide only one schema definition.",{nodes:S}));++R}}}});var AW=J((RR)=>{Object.defineProperty(RR,"__esModule",{value:!0});RR.MaxIntrospectionDepthRule=kU;var TU=T(),FR=c(),NU=3;function kU(D){function P(O,W=Object.create(null),E=0){if(O.kind===FR.Kind.FRAGMENT_SPREAD){let F=O.name.value;if(W[F]===!0)return!1;let R=D.getFragment(F);if(!R)return!1;try{return W[F]=!0,P(R,W,E)}finally{W[F]=void 0}}if(O.kind===FR.Kind.FIELD&&(O.name.value==="fields"||O.name.value==="interfaces"||O.name.value==="possibleTypes"||O.name.value==="inputFields")){if(E++,E>=NU)return!0}if("selectionSet"in O&&O.selectionSet){for(let F of O.selectionSet.selections)if(P(F,W,E))return!0}return!1}return{Field(O){if(O.name.value==="__schema"||O.name.value==="__type"){if(P(O))return D.reportError(new TU.GraphQLError("Maximum introspection depth exceeded",{nodes:[O]})),!1}}}}});var JW=J((SR)=>{Object.defineProperty(SR,"__esModule",{value:!0});SR.NoFragmentCyclesRule=hU;var fU=T();function hU(D){let P=Object.create(null),O=[],W=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(F){return E(F),!1}};function E(F){if(P[F.name.value])return;let R=F.name.value;P[R]=!0;let S=D.getFragmentSpreads(F.selectionSet);if(S.length===0)return;W[R]=O.length;for(let L of S){let B=L.name.value,Y=W[B];if(O.push(L),Y===void 0){let Z=D.getFragment(B);if(Z)E(Z)}else{let Z=O.slice(Y),H=Z.slice(0,-1).map((A)=>'"'+A.name.value+'"').join(", ");D.reportError(new fU.GraphQLError(`Cannot spread fragment "${B}" within itself`+(H!==""?` via ${H}.`:"."),{nodes:Z}))}O.pop()}W[R]=void 0}}});var UW=J((LR)=>{Object.defineProperty(LR,"__esModule",{value:!0});LR.NoUndefinedVariablesRule=yU;var gU=T();function yU(D){let P=Object.create(null);return{OperationDefinition:{enter(){P=Object.create(null)},leave(O){let W=D.getRecursiveVariableUsages(O);for(let{node:E}of W){let F=E.name.value;if(P[F]!==!0)D.reportError(new gU.GraphQLError(O.name?`Variable "\$${F}" is not defined by operation "${O.name.value}".`:`Variable "\$${F}" is not defined.`,{nodes:[E,O]}))}}},VariableDefinition(O){P[O.variable.name.value]=!0}}}});var XW=J((BR)=>{Object.defineProperty(BR,"__esModule",{value:!0});BR.NoUnusedFragmentsRule=lU;var cU=T();function lU(D){let P=[],O=[];return{OperationDefinition(W){return P.push(W),!1},FragmentDefinition(W){return O.push(W),!1},Document:{leave(){let W=Object.create(null);for(let E of P)for(let F of D.getRecursivelyReferencedFragments(E))W[F.name.value]=!0;for(let E of O){let F=E.name.value;if(W[F]!==!0)D.reportError(new cU.GraphQLError(`Fragment "${F}" is never used.`,{nodes:E}))}}}}}});var qW=J((YR)=>{Object.defineProperty(YR,"__esModule",{value:!0});YR.NoUnusedVariablesRule=pU;var dU=T();function pU(D){let P=[];return{OperationDefinition:{enter(){P=[]},leave(O){let W=Object.create(null),E=D.getRecursiveVariableUsages(O);for(let{node:F}of E)W[F.name.value]=!0;for(let F of P){let R=F.variable.name.value;if(W[R]!==!0)D.reportError(new dU.GraphQLError(O.name?`Variable "\$${R}" is never used in operation "${O.name.value}".`:`Variable "\$${R}" is never used.`,{nodes:F}))}}},VariableDefinition(O){P.push(O)}}}});var zW=J((ZR)=>{Object.defineProperty(ZR,"__esModule",{value:!0});ZR.sortValueNode=GW;var nU=X8(),N0=c();function GW(D){switch(D.kind){case N0.Kind.OBJECT:return{...D,fields:tU(D.fields)};case N0.Kind.LIST:return{...D,values:D.values.map(GW)};case N0.Kind.INT:case N0.Kind.FLOAT:case N0.Kind.STRING:case N0.Kind.BOOLEAN:case N0.Kind.NULL:case N0.Kind.ENUM:case N0.Kind.VARIABLE:return D}}function tU(D){return D.map((P)=>({...P,value:GW(P.value)})).sort((P,O)=>nU.naturalCompare(P.name.value,O.name.value))}});var bW=J((GR)=>{Object.defineProperty(GR,"__esModule",{value:!0});GR.OverlappingFieldsCanBeMergedRule=DX;var HR=i(),iU=T(),uW=c(),oU=mD(),hD=l(),eU=zW(),AR=u0();function JR(D){if(Array.isArray(D))return D.map(([P,O])=>`subfields "${P}" conflict because `+JR(O)).join(" and ");return D}function DX(D){let P=new qR,O=new Map;return{SelectionSet(W){let E=PX(D,O,P,D.getParentType(),W);for(let[[F,R],S,L]of E){let B=JR(R);D.reportError(new iU.GraphQLError(`Fields "${F}" conflict because ${B}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:S.concat(L)}))}}}}function PX(D,P,O,W,E){let F=[],[R,S]=cP(D,P,W,E);if(WX(D,F,P,O,R),S.length!==0)for(let L=0;L<S.length;L++){yP(D,F,P,O,!1,R,S[L]);for(let B=L+1;B<S.length;B++)mP(D,F,P,O,!1,S[L],S[B])}return F}function yP(D,P,O,W,E,F,R){let S=D.getFragment(R);if(!S)return;let[L,B]=QW(D,O,S);if(F===L)return;MW(D,P,O,W,E,F,L);for(let Y of B){if(W.has(Y,R,E))continue;W.add(Y,R,E),yP(D,P,O,W,E,F,Y)}}function mP(D,P,O,W,E,F,R){if(F===R)return;if(W.has(F,R,E))return;W.add(F,R,E);let S=D.getFragment(F),L=D.getFragment(R);if(!S||!L)return;let[B,Y]=QW(D,O,S),[Z,H]=QW(D,O,L);MW(D,P,O,W,E,B,Z);for(let A of H)mP(D,P,O,W,E,F,A);for(let A of Y)mP(D,P,O,W,E,A,R)}function OX(D,P,O,W,E,F,R,S){let L=[],[B,Y]=cP(D,P,E,F),[Z,H]=cP(D,P,R,S);MW(D,L,P,O,W,B,Z);for(let A of H)yP(D,L,P,O,W,B,A);for(let A of Y)yP(D,L,P,O,W,Z,A);for(let A of Y)for(let X of H)mP(D,L,P,O,W,A,X);return L}function WX(D,P,O,W,E){for(let[F,R]of Object.entries(E))if(R.length>1)for(let S=0;S<R.length;S++)for(let L=S+1;L<R.length;L++){let B=UR(D,O,W,!1,F,R[S],R[L]);if(B)P.push(B)}}function MW(D,P,O,W,E,F,R){for(let[S,L]of Object.entries(F)){let B=R[S];if(B)for(let Y of L)for(let Z of B){let H=UR(D,O,W,E,S,Y,Z);if(H)P.push(H)}}}function UR(D,P,O,W,E,F,R){let[S,L,B]=F,[Y,Z,H]=R,A=W||S!==Y&&hD.isObjectType(S)&&hD.isObjectType(Y);if(!A){let y=L.name.value,V=Z.name.value;if(y!==V)return[[E,`"${y}" and "${V}" are different fields`],[L],[Z]];if(!EX(L,Z))return[[E,"they have differing arguments"],[L],[Z]]}let X=B===null||B===void 0?void 0:B.type,I=H===null||H===void 0?void 0:H.type;if(X&&I&&IW(X,I))return[[E,`they return conflicting types "${HR.inspect(X)}" and "${HR.inspect(I)}"`],[L],[Z]];let $=L.selectionSet,x=Z.selectionSet;if($&&x){let y=OX(D,P,O,A,hD.getNamedType(X),$,hD.getNamedType(I),x);return FX(y,E,L,Z)}}function EX(D,P){let O=D.arguments,W=P.arguments;if(O===void 0||O.length===0)return W===void 0||W.length===0;if(W===void 0||W.length===0)return!1;if(O.length!==W.length)return!1;let E=new Map(W.map(({name:F,value:R})=>[F.value,R]));return O.every((F)=>{let R=F.value,S=E.get(F.name.value);if(S===void 0)return!1;return CR(R)===CR(S)})}function CR(D){return oU.print(eU.sortValueNode(D))}function IW(D,P){if(hD.isListType(D))return hD.isListType(P)?IW(D.ofType,P.ofType):!0;if(hD.isListType(P))return!0;if(hD.isNonNullType(D))return hD.isNonNullType(P)?IW(D.ofType,P.ofType):!0;if(hD.isNonNullType(P))return!0;if(hD.isLeafType(D)||hD.isLeafType(P))return D!==P;return!1}function cP(D,P,O,W){let E=P.get(W);if(E)return E;let F=Object.create(null),R=Object.create(null);XR(D,O,W,F,R);let S=[F,Object.keys(R)];return P.set(W,S),S}function QW(D,P,O){let W=P.get(O.selectionSet);if(W)return W;let E=AR.typeFromAST(D.getSchema(),O.typeCondition);return cP(D,P,E,O.selectionSet)}function XR(D,P,O,W,E){for(let F of O.selections)switch(F.kind){case uW.Kind.FIELD:{let R=F.name.value,S;if(hD.isObjectType(P)||hD.isInterfaceType(P))S=P.getFields()[R];let L=F.alias?F.alias.value:R;if(!W[L])W[L]=[];W[L].push([P,F,S]);break}case uW.Kind.FRAGMENT_SPREAD:E[F.name.value]=!0;break;case uW.Kind.INLINE_FRAGMENT:{let R=F.typeCondition,S=R?AR.typeFromAST(D.getSchema(),R):P;XR(D,S,F.selectionSet,W,E);break}}}function FX(D,P,O,W){if(D.length>0)return[[P,D.map(([E])=>E)],[O,...D.map(([,E])=>E).flat()],[W,...D.map(([,,E])=>E).flat()]]}class qR{constructor(){this._data=new Map}has(D,P,O){var W;let[E,F]=D<P?[D,P]:[P,D],R=(W=this._data.get(E))===null||W===void 0?void 0:W.get(F);if(R===void 0)return!1;return O?!0:O===R}add(D,P,O){let[W,E]=D<P?[D,P]:[P,D],F=this._data.get(W);if(F===void 0)this._data.set(W,new Map([[E,O]]));else F.set(E,O)}}});var KW=J((IR)=>{Object.defineProperty(IR,"__esModule",{value:!0});IR.PossibleFragmentSpreadsRule=LX;var lP=i(),zR=T(),wW=l(),uR=I8(),SX=u0();function LX(D){return{InlineFragment(P){let O=D.getType(),W=D.getParentType();if(wW.isCompositeType(O)&&wW.isCompositeType(W)&&!uR.doTypesOverlap(D.getSchema(),O,W)){let E=lP.inspect(W),F=lP.inspect(O);D.reportError(new zR.GraphQLError(`Fragment cannot be spread here as objects of type "${E}" can never be of type "${F}".`,{nodes:P}))}},FragmentSpread(P){let O=P.name.value,W=BX(D,O),E=D.getParentType();if(W&&E&&!uR.doTypesOverlap(D.getSchema(),W,E)){let F=lP.inspect(E),R=lP.inspect(W);D.reportError(new zR.GraphQLError(`Fragment "${O}" cannot be spread here as objects of type "${F}" can never be of type "${R}".`,{nodes:P}))}}}}function BX(D,P){let O=D.getFragment(P);if(O){let W=SX.typeFromAST(D.getSchema(),O.typeCondition);if(wW.isCompositeType(W))return W}}});var jW=J((wR)=>{Object.defineProperty(wR,"__esModule",{value:!0});wR.PossibleTypeExtensionsRule=AX;var ZX=c0(),MR=i(),bR=$D(),HX=r0(),QR=T(),SD=c(),CX=A2(),h2=l();function AX(D){let P=D.getSchema(),O=Object.create(null);for(let E of D.getDocument().definitions)if(CX.isTypeDefinitionNode(E))O[E.name.value]=E;return{ScalarTypeExtension:W,ObjectTypeExtension:W,InterfaceTypeExtension:W,UnionTypeExtension:W,EnumTypeExtension:W,InputObjectTypeExtension:W};function W(E){let F=E.name.value,R=O[F],S=P===null||P===void 0?void 0:P.getType(F),L;if(R)L=JX[R.kind];else if(S)L=UX(S);if(L){if(L!==E.kind){let B=XX(E.kind);D.reportError(new QR.GraphQLError(`Cannot extend non-${B} type "${F}".`,{nodes:R?[R,E]:E}))}}else{let B=Object.keys({...O,...P===null||P===void 0?void 0:P.getTypeMap()}),Y=HX.suggestionList(F,B);D.reportError(new QR.GraphQLError(`Cannot extend type "${F}" because it is not defined.`+ZX.didYouMean(Y),{nodes:E.name}))}}}var JX={[SD.Kind.SCALAR_TYPE_DEFINITION]:SD.Kind.SCALAR_TYPE_EXTENSION,[SD.Kind.OBJECT_TYPE_DEFINITION]:SD.Kind.OBJECT_TYPE_EXTENSION,[SD.Kind.INTERFACE_TYPE_DEFINITION]:SD.Kind.INTERFACE_TYPE_EXTENSION,[SD.Kind.UNION_TYPE_DEFINITION]:SD.Kind.UNION_TYPE_EXTENSION,[SD.Kind.ENUM_TYPE_DEFINITION]:SD.Kind.ENUM_TYPE_EXTENSION,[SD.Kind.INPUT_OBJECT_TYPE_DEFINITION]:SD.Kind.INPUT_OBJECT_TYPE_EXTENSION};function UX(D){if(h2.isScalarType(D))return SD.Kind.SCALAR_TYPE_EXTENSION;if(h2.isObjectType(D))return SD.Kind.OBJECT_TYPE_EXTENSION;if(h2.isInterfaceType(D))return SD.Kind.INTERFACE_TYPE_EXTENSION;if(h2.isUnionType(D))return SD.Kind.UNION_TYPE_EXTENSION;if(h2.isEnumType(D))return SD.Kind.ENUM_TYPE_EXTENSION;if(h2.isInputObjectType(D))return SD.Kind.INPUT_OBJECT_TYPE_EXTENSION;bR.invariant(!1,"Unexpected type: "+MR.inspect(D))}function XX(D){switch(D){case SD.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case SD.Kind.OBJECT_TYPE_EXTENSION:return"object";case SD.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case SD.Kind.UNION_TYPE_EXTENSION:return"union";case SD.Kind.ENUM_TYPE_EXTENSION:return"enum";case SD.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:bR.invariant(!1,"Unexpected kind: "+MR.inspect(D))}}});var VW=J((TR)=>{Object.defineProperty(TR,"__esModule",{value:!0});TR.ProvidedRequiredArgumentsOnDirectivesRule=_R;TR.ProvidedRequiredArgumentsRule=uX;var jR=i(),KR=l0(),$R=T(),VR=c(),GX=mD(),$W=l(),zX=fD();function uX(D){return{..._R(D),Field:{leave(P){var O;let W=D.getFieldDef();if(!W)return!1;let E=new Set((O=P.arguments)===null||O===void 0?void 0:O.map((F)=>F.name.value));for(let F of W.args)if(!E.has(F.name)&&$W.isRequiredArgument(F)){let R=jR.inspect(F.type);D.reportError(new $R.GraphQLError(`Field "${W.name}" argument "${F.name}" of type "${R}" is required, but it was not provided.`,{nodes:P}))}}}}}function _R(D){var P;let O=Object.create(null),W=D.getSchema(),E=(P=W===null||W===void 0?void 0:W.getDirectives())!==null&&P!==void 0?P:zX.specifiedDirectives;for(let S of E)O[S.name]=KR.keyMap(S.args.filter($W.isRequiredArgument),(L)=>L.name);let F=D.getDocument().definitions;for(let S of F)if(S.kind===VR.Kind.DIRECTIVE_DEFINITION){var R;let L=(R=S.arguments)!==null&&R!==void 0?R:[];O[S.name.value]=KR.keyMap(L.filter(IX),(B)=>B.name.value)}return{Directive:{leave(S){let L=S.name.value,B=O[L];if(B){var Y;let Z=(Y=S.arguments)!==null&&Y!==void 0?Y:[],H=new Set(Z.map((A)=>A.name.value));for(let[A,X]of Object.entries(B))if(!H.has(A)){let I=$W.isType(X.type)?jR.inspect(X.type):GX.print(X.type);D.reportError(new $R.GraphQLError(`Directive "@${L}" argument "${A}" of type "${I}" is required, but it was not provided.`,{nodes:S}))}}}}}}function IX(D){return D.type.kind===VR.Kind.NON_NULL_TYPE&&D.defaultValue==null}});var _W=J((fR)=>{Object.defineProperty(fR,"__esModule",{value:!0});fR.ScalarLeafsRule=bX;var NR=i(),kR=T(),xR=l();function bX(D){return{Field(P){let O=D.getType(),W=P.selectionSet;if(O){if(xR.isLeafType(xR.getNamedType(O))){if(W){let E=P.name.value,F=NR.inspect(O);D.reportError(new kR.GraphQLError(`Field "${E}" must not have a selection since type "${F}" has no subfields.`,{nodes:W}))}}else if(!W){let E=P.name.value,F=NR.inspect(O);D.reportError(new kR.GraphQLError(`Field "${E}" of type "${F}" must have a selection of subfields. Did you mean "${E} { ... }"?`,{nodes:P}))}}}}}});var TW=J((hR)=>{Object.defineProperty(hR,"__esModule",{value:!0});hR.printPathArray=KX;function KX(D){return D.map((P)=>typeof P==="number"?"["+P.toString()+"]":"."+P).join("")}});var k8=J((vR)=>{Object.defineProperty(vR,"__esModule",{value:!0});vR.addPath=$X;vR.pathToArray=VX;function $X(D,P,O){return{prev:D,key:P,typename:O}}function VX(D){let P=[],O=D;while(O)P.push(O.key),O=O.prev;return P.reverse()}});var NW=J((gR)=>{Object.defineProperty(gR,"__esModule",{value:!0});gR.coerceInputValue=gX;var NX=c0(),rP=i(),kX=$D(),xX=hP(),fX=U0(),Z0=k8(),hX=TW(),vX=r0(),k0=T(),x8=l();function gX(D,P,O=yX){return f8(D,P,O,void 0)}function yX(D,P,O){let W="Invalid value "+rP.inspect(P);if(D.length>0)W+=` at "value${hX.printPathArray(D)}"`;throw O.message=W+": "+O.message,O}function f8(D,P,O,W){if(x8.isNonNullType(P)){if(D!=null)return f8(D,P.ofType,O,W);O(Z0.pathToArray(W),D,new k0.GraphQLError(`Expected non-nullable type "${rP.inspect(P)}" not to be null.`));return}if(D==null)return null;if(x8.isListType(P)){let E=P.ofType;if(xX.isIterableObject(D))return Array.from(D,(F,R)=>{let S=Z0.addPath(W,R,void 0);return f8(F,E,O,S)});return[f8(D,E,O,W)]}if(x8.isInputObjectType(P)){if(!fX.isObjectLike(D)){O(Z0.pathToArray(W),D,new k0.GraphQLError(`Expected type "${P.name}" to be an object.`));return}let E={},F=P.getFields();for(let R of Object.values(F)){let S=D[R.name];if(S===void 0){if(R.defaultValue!==void 0)E[R.name]=R.defaultValue;else if(x8.isNonNullType(R.type)){let L=rP.inspect(R.type);O(Z0.pathToArray(W),D,new k0.GraphQLError(`Field "${R.name}" of required type "${L}" was not provided.`))}continue}E[R.name]=f8(S,R.type,O,Z0.addPath(W,R.name,P.name))}for(let R of Object.keys(D))if(!F[R]){let S=vX.suggestionList(R,Object.keys(P.getFields()));O(Z0.pathToArray(W),D,new k0.GraphQLError(`Field "${R}" is not defined by type "${P.name}".`+NX.didYouMean(S)))}if(P.isOneOf){let R=Object.keys(E);if(R.length!==1)O(Z0.pathToArray(W),D,new k0.GraphQLError(`Exactly one key must be specified for OneOf type "${P.name}".`));let S=R[0],L=E[S];if(L===null)O(Z0.pathToArray(W).concat(S),L,new k0.GraphQLError(`Field "${S}" must be non-null.`))}return E}if(x8.isLeafType(P)){let E;try{E=P.parseValue(D)}catch(F){if(F instanceof k0.GraphQLError)O(Z0.pathToArray(W),D,F);else O(Z0.pathToArray(W),D,new k0.GraphQLError(`Expected type "${P.name}". `+F.message,{originalError:F}));return}if(E===void 0)O(Z0.pathToArray(W),D,new k0.GraphQLError(`Expected type "${P.name}".`));return E}kX.invariant(!1,"Unexpected input type: "+rP.inspect(P))}});var v8=J((mR)=>{Object.defineProperty(mR,"__esModule",{value:!0});mR.valueFromAST=h8;var cX=i(),lX=$D(),rX=l0(),v2=c(),J2=l();function h8(D,P,O){if(!D)return;if(D.kind===v2.Kind.VARIABLE){let W=D.name.value;if(O==null||O[W]===void 0)return;let E=O[W];if(E===null&&J2.isNonNullType(P))return;return E}if(J2.isNonNullType(P)){if(D.kind===v2.Kind.NULL)return;return h8(D,P.ofType,O)}if(D.kind===v2.Kind.NULL)return null;if(J2.isListType(P)){let W=P.ofType;if(D.kind===v2.Kind.LIST){let F=[];for(let R of D.values)if(yR(R,O)){if(J2.isNonNullType(W))return;F.push(null)}else{let S=h8(R,W,O);if(S===void 0)return;F.push(S)}return F}let E=h8(D,W,O);if(E===void 0)return;return[E]}if(J2.isInputObjectType(P)){if(D.kind!==v2.Kind.OBJECT)return;let W=Object.create(null),E=rX.keyMap(D.fields,(F)=>F.name.value);for(let F of Object.values(P.getFields())){let R=E[F.name];if(!R||yR(R.value,O)){if(F.defaultValue!==void 0)W[F.name]=F.defaultValue;else if(J2.isNonNullType(F.type))return;continue}let S=h8(R.value,F.type,O);if(S===void 0)return;W[F.name]=S}if(P.isOneOf){let F=Object.keys(W);if(F.length!==1)return;if(W[F[0]]===null)return}return W}if(J2.isLeafType(P)){let W;try{W=P.parseLiteral(D,O)}catch(E){return}if(W===void 0)return;return W}lX.invariant(!1,"Unexpected input type: "+cX.inspect(P))}function yR(D,P){return D.kind===v2.Kind.VARIABLE&&(P==null||P[D.name.value]===void 0)}});var m2=J((aR)=>{Object.defineProperty(aR,"__esModule",{value:!0});aR.getArgumentValues=dR;aR.getDirectiveValues=oX;aR.getVariableValues=sX;var g2=i(),pX=l0(),aX=TW(),x0=T(),cR=c(),lR=mD(),y2=l(),nX=NW(),tX=u0(),rR=v8();function sX(D,P,O,W){let E=[],F=W===null||W===void 0?void 0:W.maxErrors;try{let R=iX(D,P,O,(S)=>{if(F!=null&&E.length>=F)throw new x0.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");E.push(S)});if(E.length===0)return{coerced:R}}catch(R){E.push(R)}return{errors:E}}function iX(D,P,O,W){let E={};for(let F of P){let R=F.variable.name.value,S=tX.typeFromAST(D,F.type);if(!y2.isInputType(S)){let B=lR.print(F.type);W(new x0.GraphQLError(`Variable "\$${R}" expected value of type "${B}" which cannot be used as an input type.`,{nodes:F.type}));continue}if(!pR(O,R)){if(F.defaultValue)E[R]=rR.valueFromAST(F.defaultValue,S);else if(y2.isNonNullType(S)){let B=g2.inspect(S);W(new x0.GraphQLError(`Variable "\$${R}" of required type "${B}" was not provided.`,{nodes:F}))}continue}let L=O[R];if(L===null&&y2.isNonNullType(S)){let B=g2.inspect(S);W(new x0.GraphQLError(`Variable "\$${R}" of non-null type "${B}" must not be null.`,{nodes:F}));continue}E[R]=nX.coerceInputValue(L,S,(B,Y,Z)=>{let H=`Variable "\$${R}" got invalid value `+g2.inspect(Y);if(B.length>0)H+=` at "${R}${aX.printPathArray(B)}"`;W(new x0.GraphQLError(H+"; "+Z.message,{nodes:F,originalError:Z}))})}return E}function dR(D,P,O){var W;let E={},F=(W=P.arguments)!==null&&W!==void 0?W:[],R=pX.keyMap(F,(S)=>S.name.value);for(let S of D.args){let{name:L,type:B}=S,Y=R[L];if(!Y){if(S.defaultValue!==void 0)E[L]=S.defaultValue;else if(y2.isNonNullType(B))throw new x0.GraphQLError(`Argument "${L}" of required type "${g2.inspect(B)}" was not provided.`,{nodes:P});continue}let Z=Y.value,H=Z.kind===cR.Kind.NULL;if(Z.kind===cR.Kind.VARIABLE){let X=Z.name.value;if(O==null||!pR(O,X)){if(S.defaultValue!==void 0)E[L]=S.defaultValue;else if(y2.isNonNullType(B))throw new x0.GraphQLError(`Argument "${L}" of required type "${g2.inspect(B)}" was provided the variable "\$${X}" which was not provided a runtime value.`,{nodes:Z});continue}H=O[X]==null}if(H&&y2.isNonNullType(B))throw new x0.GraphQLError(`Argument "${L}" of non-null type "${g2.inspect(B)}" must not be null.`,{nodes:Z});let A=rR.valueFromAST(Z,B,O);if(A===void 0)throw new x0.GraphQLError(`Argument "${L}" has invalid value ${lR.print(Z)}.`,{nodes:Z});E[L]=A}return E}function oX(D,P,O){var W;let E=(W=P.directives)===null||W===void 0?void 0:W.find((F)=>F.name.value===D.name);if(E)return dR(D,E,O)}function pR(D,P){return Object.prototype.hasOwnProperty.call(D,P)}});var pP=J((iR)=>{Object.defineProperty(iR,"__esModule",{value:!0});iR.collectFields=Eq;iR.collectSubfields=Fq;var kW=c(),Oq=l(),nR=fD(),Wq=u0(),tR=m2();function Eq(D,P,O,W,E){let F=new Map;return dP(D,P,O,W,E,F,new Set),F}function Fq(D,P,O,W,E){let F=new Map,R=new Set;for(let S of E)if(S.selectionSet)dP(D,P,O,W,S.selectionSet,F,R);return F}function dP(D,P,O,W,E,F,R){for(let S of E.selections)switch(S.kind){case kW.Kind.FIELD:{if(!xW(O,S))continue;let L=Rq(S),B=F.get(L);if(B!==void 0)B.push(S);else F.set(L,[S]);break}case kW.Kind.INLINE_FRAGMENT:{if(!xW(O,S)||!sR(D,S,W))continue;dP(D,P,O,W,S.selectionSet,F,R);break}case kW.Kind.FRAGMENT_SPREAD:{let L=S.name.value;if(R.has(L)||!xW(O,S))continue;R.add(L);let B=P[L];if(!B||!sR(D,B,W))continue;dP(D,P,O,W,B.selectionSet,F,R);break}}}function xW(D,P){let O=tR.getDirectiveValues(nR.GraphQLSkipDirective,P,D);if((O===null||O===void 0?void 0:O.if)===!0)return!1;let W=tR.getDirectiveValues(nR.GraphQLIncludeDirective,P,D);if((W===null||W===void 0?void 0:W.if)===!1)return!1;return!0}function sR(D,P,O){let W=P.typeCondition;if(!W)return!0;let E=Wq.typeFromAST(D,W);if(E===O)return!0;if(Oq.isAbstractType(E))return D.isSubType(E,O);return!1}function Rq(D){return D.alias?D.alias.value:D.name.value}});var fW=J((eR)=>{Object.defineProperty(eR,"__esModule",{value:!0});eR.SingleFieldSubscriptionsRule=Zq;var oR=T(),Bq=c(),Yq=pP();function Zq(D){return{OperationDefinition(P){if(P.operation==="subscription"){let O=D.getSchema(),W=O.getSubscriptionType();if(W){let E=P.name?P.name.value:null,F=Object.create(null),R=D.getDocument(),S=Object.create(null);for(let B of R.definitions)if(B.kind===Bq.Kind.FRAGMENT_DEFINITION)S[B.name.value]=B;let L=Yq.collectFields(O,S,F,W,P.selectionSet);if(L.size>1){let Z=[...L.values()].slice(1).flat();D.reportError(new oR.GraphQLError(E!=null?`Subscription "${E}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:Z}))}for(let B of L.values())if(B[0].name.value.startsWith("__"))D.reportError(new oR.GraphQLError(E!=null?`Subscription "${E}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:B}))}}}}}});var aP=J((D4)=>{Object.defineProperty(D4,"__esModule",{value:!0});D4.groupBy=Cq;function Cq(D,P){let O=new Map;for(let W of D){let E=P(W),F=O.get(E);if(F===void 0)O.set(E,[W]);else F.push(W)}return O}});var hW=J((P4)=>{Object.defineProperty(P4,"__esModule",{value:!0});P4.UniqueArgumentDefinitionNamesRule=Xq;var Jq=aP(),Uq=T();function Xq(D){return{DirectiveDefinition(W){var E;let F=(E=W.arguments)!==null&&E!==void 0?E:[];return O(`@${W.name.value}`,F)},InterfaceTypeDefinition:P,InterfaceTypeExtension:P,ObjectTypeDefinition:P,ObjectTypeExtension:P};function P(W){var E;let F=W.name.value,R=(E=W.fields)!==null&&E!==void 0?E:[];for(let L of R){var S;let B=L.name.value,Y=(S=L.arguments)!==null&&S!==void 0?S:[];O(`${F}.${B}`,Y)}return!1}function O(W,E){let F=Jq.groupBy(E,(R)=>R.name.value);for(let[R,S]of F)if(S.length>1)D.reportError(new Uq.GraphQLError(`Argument "${W}(${R}:)" can only be defined once.`,{nodes:S.map((L)=>L.name)}));return!1}}});var vW=J((O4)=>{Object.defineProperty(O4,"__esModule",{value:!0});O4.UniqueArgumentNamesRule=uq;var Gq=aP(),zq=T();function uq(D){return{Field:P,Directive:P};function P(O){var W;let E=(W=O.arguments)!==null&&W!==void 0?W:[],F=Gq.groupBy(E,(R)=>R.name.value);for(let[R,S]of F)if(S.length>1)D.reportError(new zq.GraphQLError(`There can be only one argument named "${R}".`,{nodes:S.map((L)=>L.name)}))}}});var gW=J((E4)=>{Object.defineProperty(E4,"__esModule",{value:!0});E4.UniqueDirectiveNamesRule=Qq;var W4=T();function Qq(D){let P=Object.create(null),O=D.getSchema();return{DirectiveDefinition(W){let E=W.name.value;if(O!==null&&O!==void 0&&O.getDirective(E)){D.reportError(new W4.GraphQLError(`Directive "@${E}" already exists in the schema. It cannot be redefined.`,{nodes:W.name}));return}if(P[E])D.reportError(new W4.GraphQLError(`There can be only one directive named "@${E}".`,{nodes:[P[E],W.name]}));else P[E]=W.name;return!1}}}});var mW=J((R4)=>{Object.defineProperty(R4,"__esModule",{value:!0});R4.UniqueDirectivesPerLocationRule=Kq;var bq=T(),yW=c(),F4=A2(),wq=fD();function Kq(D){let P=Object.create(null),O=D.getSchema(),W=O?O.getDirectives():wq.specifiedDirectives;for(let S of W)P[S.name]=!S.isRepeatable;let E=D.getDocument().definitions;for(let S of E)if(S.kind===yW.Kind.DIRECTIVE_DEFINITION)P[S.name.value]=!S.repeatable;let F=Object.create(null),R=Object.create(null);return{enter(S){if(!("directives"in S)||!S.directives)return;let L;if(S.kind===yW.Kind.SCHEMA_DEFINITION||S.kind===yW.Kind.SCHEMA_EXTENSION)L=F;else if(F4.isTypeDefinitionNode(S)||F4.isTypeExtensionNode(S)){let B=S.name.value;if(L=R[B],L===void 0)R[B]=L=Object.create(null)}else L=Object.create(null);for(let B of S.directives){let Y=B.name.value;if(P[Y])if(L[Y])D.reportError(new bq.GraphQLError(`The directive "@${Y}" can only be used once at this location.`,{nodes:[L[Y],B]}));else L[Y]=B}}}}});var cW=J((L4)=>{Object.defineProperty(L4,"__esModule",{value:!0});L4.UniqueEnumValueNamesRule=Vq;var S4=T(),$q=l();function Vq(D){let P=D.getSchema(),O=P?P.getTypeMap():Object.create(null),W=Object.create(null);return{EnumTypeDefinition:E,EnumTypeExtension:E};function E(F){var R;let S=F.name.value;if(!W[S])W[S]=Object.create(null);let L=(R=F.values)!==null&&R!==void 0?R:[],B=W[S];for(let Y of L){let Z=Y.name.value,H=O[S];if($q.isEnumType(H)&&H.getValue(Z))D.reportError(new S4.GraphQLError(`Enum value "${S}.${Z}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:Y.name}));else if(B[Z])D.reportError(new S4.GraphQLError(`Enum value "${S}.${Z}" can only be defined once.`,{nodes:[B[Z],Y.name]}));else B[Z]=Y.name}return!1}}});var rW=J((Y4)=>{Object.defineProperty(Y4,"__esModule",{value:!0});Y4.UniqueFieldDefinitionNamesRule=Tq;var B4=T(),lW=l();function Tq(D){let P=D.getSchema(),O=P?P.getTypeMap():Object.create(null),W=Object.create(null);return{InputObjectTypeDefinition:E,InputObjectTypeExtension:E,InterfaceTypeDefinition:E,InterfaceTypeExtension:E,ObjectTypeDefinition:E,ObjectTypeExtension:E};function E(F){var R;let S=F.name.value;if(!W[S])W[S]=Object.create(null);let L=(R=F.fields)!==null&&R!==void 0?R:[],B=W[S];for(let Y of L){let Z=Y.name.value;if(Nq(O[S],Z))D.reportError(new B4.GraphQLError(`Field "${S}.${Z}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:Y.name}));else if(B[Z])D.reportError(new B4.GraphQLError(`Field "${S}.${Z}" can only be defined once.`,{nodes:[B[Z],Y.name]}));else B[Z]=Y.name}return!1}}function Nq(D,P){if(lW.isObjectType(D)||lW.isInterfaceType(D)||lW.isInputObjectType(D))return D.getFields()[P]!=null;return!1}});var dW=J((Z4)=>{Object.defineProperty(Z4,"__esModule",{value:!0});Z4.UniqueFragmentNamesRule=fq;var xq=T();function fq(D){let P=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(O){let W=O.name.value;if(P[W])D.reportError(new xq.GraphQLError(`There can be only one fragment named "${W}".`,{nodes:[P[W],O.name]}));else P[W]=O.name;return!1}}}});var pW=J((H4)=>{Object.defineProperty(H4,"__esModule",{value:!0});H4.UniqueInputFieldNamesRule=yq;var vq=$D(),gq=T();function yq(D){let P=[],O=Object.create(null);return{ObjectValue:{enter(){P.push(O),O=Object.create(null)},leave(){let W=P.pop();W||vq.invariant(!1),O=W}},ObjectField(W){let E=W.name.value;if(O[E])D.reportError(new gq.GraphQLError(`There can be only one input field named "${E}".`,{nodes:[O[E],W.name]}));else O[E]=W.name}}}});var aW=J((C4)=>{Object.defineProperty(C4,"__esModule",{value:!0});C4.UniqueOperationNamesRule=lq;var cq=T();function lq(D){let P=Object.create(null);return{OperationDefinition(O){let W=O.name;if(W)if(P[W.value])D.reportError(new cq.GraphQLError(`There can be only one operation named "${W.value}".`,{nodes:[P[W.value],W]}));else P[W.value]=W;return!1},FragmentDefinition:()=>!1}}});var nW=J((J4)=>{Object.defineProperty(J4,"__esModule",{value:!0});J4.UniqueOperationTypesRule=dq;var A4=T();function dq(D){let P=D.getSchema(),O=Object.create(null),W=P?{query:P.getQueryType(),mutation:P.getMutationType(),subscription:P.getSubscriptionType()}:{};return{SchemaDefinition:E,SchemaExtension:E};function E(F){var R;let S=(R=F.operationTypes)!==null&&R!==void 0?R:[];for(let L of S){let B=L.operation,Y=O[B];if(W[B])D.reportError(new A4.GraphQLError(`Type for ${B} already defined in the schema. It cannot be redefined.`,{nodes:L}));else if(Y)D.reportError(new A4.GraphQLError(`There can be only one ${B} type in schema.`,{nodes:[Y,L]}));else O[B]=L}return!1}}});var tW=J((X4)=>{Object.defineProperty(X4,"__esModule",{value:!0});X4.UniqueTypeNamesRule=aq;var U4=T();function aq(D){let P=Object.create(null),O=D.getSchema();return{ScalarTypeDefinition:W,ObjectTypeDefinition:W,InterfaceTypeDefinition:W,UnionTypeDefinition:W,EnumTypeDefinition:W,InputObjectTypeDefinition:W};function W(E){let F=E.name.value;if(O!==null&&O!==void 0&&O.getType(F)){D.reportError(new U4.GraphQLError(`Type "${F}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:E.name}));return}if(P[F])D.reportError(new U4.GraphQLError(`There can be only one type named "${F}".`,{nodes:[P[F],E.name]}));else P[F]=E.name;return!1}}});var sW=J((q4)=>{Object.defineProperty(q4,"__esModule",{value:!0});q4.UniqueVariableNamesRule=iq;var tq=aP(),sq=T();function iq(D){return{OperationDefinition(P){var O;let W=(O=P.variableDefinitions)!==null&&O!==void 0?O:[],E=tq.groupBy(W,(F)=>F.variable.name.value);for(let[F,R]of E)if(R.length>1)D.reportError(new sq.GraphQLError(`There can be only one variable named "\$${F}".`,{nodes:R.map((S)=>S.variable.name)}))}}}});var oW=J((G4)=>{Object.defineProperty(G4,"__esModule",{value:!0});G4.ValuesOfCorrectTypeRule=OG;var eq=c0(),g8=i(),DG=l0(),PG=r0(),Q0=T(),iW=c(),nP=mD(),I0=l();function OG(D){let P={};return{OperationDefinition:{enter(){P={}}},VariableDefinition(O){P[O.variable.name.value]=O},ListValue(O){let W=I0.getNullableType(D.getParentInputType());if(!I0.isListType(W))return U2(D,O),!1},ObjectValue(O){let W=I0.getNamedType(D.getInputType());if(!I0.isInputObjectType(W))return U2(D,O),!1;let E=DG.keyMap(O.fields,(F)=>F.name.value);for(let F of Object.values(W.getFields()))if(!E[F.name]&&I0.isRequiredInputField(F)){let S=g8.inspect(F.type);D.reportError(new Q0.GraphQLError(`Field "${W.name}.${F.name}" of required type "${S}" was not provided.`,{nodes:O}))}if(W.isOneOf)WG(D,O,W,E,P)},ObjectField(O){let W=I0.getNamedType(D.getParentInputType());if(!D.getInputType()&&I0.isInputObjectType(W)){let F=PG.suggestionList(O.name.value,Object.keys(W.getFields()));D.reportError(new Q0.GraphQLError(`Field "${O.name.value}" is not defined by type "${W.name}".`+eq.didYouMean(F),{nodes:O}))}},NullValue(O){let W=D.getInputType();if(I0.isNonNullType(W))D.reportError(new Q0.GraphQLError(`Expected value of type "${g8.inspect(W)}", found ${nP.print(O)}.`,{nodes:O}))},EnumValue:(O)=>U2(D,O),IntValue:(O)=>U2(D,O),FloatValue:(O)=>U2(D,O),StringValue:(O)=>U2(D,O),BooleanValue:(O)=>U2(D,O)}}function U2(D,P){let O=D.getInputType();if(!O)return;let W=I0.getNamedType(O);if(!I0.isLeafType(W)){let E=g8.inspect(O);D.reportError(new Q0.GraphQLError(`Expected value of type "${E}", found ${nP.print(P)}.`,{nodes:P}));return}try{if(W.parseLiteral(P,void 0)===void 0){let F=g8.inspect(O);D.reportError(new Q0.GraphQLError(`Expected value of type "${F}", found ${nP.print(P)}.`,{nodes:P}))}}catch(E){let F=g8.inspect(O);if(E instanceof Q0.GraphQLError)D.reportError(E);else D.reportError(new Q0.GraphQLError(`Expected value of type "${F}", found ${nP.print(P)}; `+E.message,{nodes:P,originalError:E}))}}function WG(D,P,O,W,E){var F;let R=Object.keys(W);if(R.length!==1){D.reportError(new Q0.GraphQLError(`OneOf Input Object "${O.name}" must specify exactly one key.`,{nodes:[P]}));return}let L=(F=W[R[0]])===null||F===void 0?void 0:F.value,B=!L||L.kind===iW.Kind.NULL,Y=(L===null||L===void 0?void 0:L.kind)===iW.Kind.VARIABLE;if(B){D.reportError(new Q0.GraphQLError(`Field "${O.name}.${R[0]}" must be non-null.`,{nodes:[P]}));return}if(Y){let Z=L.name.value;if(E[Z].type.kind!==iW.Kind.NON_NULL_TYPE)D.reportError(new Q0.GraphQLError(`Variable "${Z}" must be non-nullable to be used for OneOf Input Object "${O.name}".`,{nodes:[P]}))}}});var eW=J((z4)=>{Object.defineProperty(z4,"__esModule",{value:!0});z4.VariablesAreInputTypesRule=BG;var FG=T(),RG=mD(),SG=l(),LG=u0();function BG(D){return{VariableDefinition(P){let O=LG.typeFromAST(D.getSchema(),P.type);if(O!==void 0&&!SG.isInputType(O)){let W=P.variable.name.value,E=RG.print(P.type);D.reportError(new FG.GraphQLError(`Variable "\$${W}" cannot be non-input type "${E}".`,{nodes:P.type}))}}}}});var D3=J((M4)=>{Object.defineProperty(M4,"__esModule",{value:!0});M4.VariablesInAllowedPositionRule=AG;var u4=i(),ZG=T(),HG=c(),I4=l(),Q4=I8(),CG=u0();function AG(D){let P=Object.create(null);return{OperationDefinition:{enter(){P=Object.create(null)},leave(O){let W=D.getRecursiveVariableUsages(O);for(let{node:E,type:F,defaultValue:R}of W){let S=E.name.value,L=P[S];if(L&&F){let B=D.getSchema(),Y=CG.typeFromAST(B,L.type);if(Y&&!JG(B,Y,L.defaultValue,F,R)){let Z=u4.inspect(Y),H=u4.inspect(F);D.reportError(new ZG.GraphQLError(`Variable "\$${S}" of type "${Z}" used in position expecting type "${H}".`,{nodes:[L,E]}))}}}}},VariableDefinition(O){P[O.variable.name.value]=O}}}function JG(D,P,O,W,E){if(I4.isNonNullType(W)&&!I4.isNonNullType(P)){if(!(O!=null&&O.kind!==HG.Kind.NULL)&&E===void 0)return!1;let S=W.ofType;return Q4.isTypeSubTypeOf(D,P,S)}return Q4.isTypeSubTypeOf(D,P,W)}});var P3=J((N4)=>{Object.defineProperty(N4,"__esModule",{value:!0});N4.specifiedSDLRules=N4.specifiedRules=N4.recommendedRules=void 0;var XG=OW(),qG=WW(),GG=EW(),b4=FW(),w4=LW(),zG=BW(),K4=ZW(),uG=HW(),IG=CW(),QG=AW(),MG=JW(),bG=UW(),wG=XW(),KG=qW(),jG=bW(),$G=KW(),VG=jW(),j4=VW(),_G=_W(),TG=fW(),NG=hW(),$4=vW(),kG=gW(),V4=mW(),xG=cW(),fG=rW(),hG=dW(),_4=pW(),vG=aW(),gG=nW(),yG=tW(),mG=sW(),cG=oW(),lG=eW(),rG=D3(),T4=Object.freeze([QG.MaxIntrospectionDepthRule]);N4.recommendedRules=T4;var dG=Object.freeze([XG.ExecutableDefinitionsRule,vG.UniqueOperationNamesRule,uG.LoneAnonymousOperationRule,TG.SingleFieldSubscriptionsRule,K4.KnownTypeNamesRule,GG.FragmentsOnCompositeTypesRule,lG.VariablesAreInputTypesRule,_G.ScalarLeafsRule,qG.FieldsOnCorrectTypeRule,hG.UniqueFragmentNamesRule,zG.KnownFragmentNamesRule,wG.NoUnusedFragmentsRule,$G.PossibleFragmentSpreadsRule,MG.NoFragmentCyclesRule,mG.UniqueVariableNamesRule,bG.NoUndefinedVariablesRule,KG.NoUnusedVariablesRule,w4.KnownDirectivesRule,V4.UniqueDirectivesPerLocationRule,b4.KnownArgumentNamesRule,$4.UniqueArgumentNamesRule,cG.ValuesOfCorrectTypeRule,j4.ProvidedRequiredArgumentsRule,rG.VariablesInAllowedPositionRule,jG.OverlappingFieldsCanBeMergedRule,_4.UniqueInputFieldNamesRule,...T4]);N4.specifiedRules=dG;var pG=Object.freeze([IG.LoneSchemaDefinitionRule,gG.UniqueOperationTypesRule,yG.UniqueTypeNamesRule,xG.UniqueEnumValueNamesRule,fG.UniqueFieldDefinitionNamesRule,NG.UniqueArgumentDefinitionNamesRule,kG.UniqueDirectiveNamesRule,K4.KnownTypeNamesRule,w4.KnownDirectivesRule,V4.UniqueDirectivesPerLocationRule,VG.PossibleTypeExtensionsRule,b4.KnownArgumentNamesOnDirectivesRule,$4.UniqueArgumentNamesRule,_4.UniqueInputFieldNamesRule,j4.ProvidedRequiredArgumentsOnDirectivesRule]);N4.specifiedSDLRules=pG});var O3=J((g4)=>{Object.defineProperty(g4,"__esModule",{value:!0});g4.ValidationContext=g4.SDLValidationContext=g4.ASTValidationContext=void 0;var x4=c(),tG=R2(),f4=gP();class tP{constructor(D,P){this._ast=D,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=P}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(D){this._onError(D)}getDocument(){return this._ast}getFragment(D){let P;if(this._fragments)P=this._fragments;else{P=Object.create(null);for(let O of this.getDocument().definitions)if(O.kind===x4.Kind.FRAGMENT_DEFINITION)P[O.name.value]=O;this._fragments=P}return P[D]}getFragmentSpreads(D){let P=this._fragmentSpreads.get(D);if(!P){P=[];let O=[D],W;while(W=O.pop())for(let E of W.selections)if(E.kind===x4.Kind.FRAGMENT_SPREAD)P.push(E);else if(E.selectionSet)O.push(E.selectionSet);this._fragmentSpreads.set(D,P)}return P}getRecursivelyReferencedFragments(D){let P=this._recursivelyReferencedFragments.get(D);if(!P){P=[];let O=Object.create(null),W=[D.selectionSet],E;while(E=W.pop())for(let F of this.getFragmentSpreads(E)){let R=F.name.value;if(O[R]!==!0){O[R]=!0;let S=this.getFragment(R);if(S)P.push(S),W.push(S.selectionSet)}}this._recursivelyReferencedFragments.set(D,P)}return P}}g4.ASTValidationContext=tP;class h4 extends tP{constructor(D,P,O){super(D,O);this._schema=P}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}g4.SDLValidationContext=h4;class v4 extends tP{constructor(D,P,O,W){super(P,W);this._schema=D,this._typeInfo=O,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(D){let P=this._variableUsages.get(D);if(!P){let O=[],W=new f4.TypeInfo(this._schema);tG.visit(D,f4.visitWithTypeInfo(W,{VariableDefinition:()=>!1,Variable(E){O.push({node:E,type:W.getInputType(),defaultValue:W.getDefaultValue()})}})),P=O,this._variableUsages.set(D,P)}return P}getRecursiveVariableUsages(D){let P=this._recursiveVariableUsages.get(D);if(!P){P=this.getVariableUsages(D);for(let O of this.getRecursivelyReferencedFragments(D))P=P.concat(this.getVariableUsages(O));this._recursiveVariableUsages.set(D,P)}return P}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()}}g4.ValidationContext=v4});var y8=J((r4)=>{Object.defineProperty(r4,"__esModule",{value:!0});r4.assertValidSDL=Oz;r4.assertValidSDLExtension=Wz;r4.validate=Pz;r4.validateSDL=W3;var oG=kD(),eG=T(),sP=R2(),Dz=T8(),m4=gP(),c4=P3(),l4=O3();function Pz(D,P,O=c4.specifiedRules,W,E=new m4.TypeInfo(D)){var F;let R=(F=W===null||W===void 0?void 0:W.maxErrors)!==null&&F!==void 0?F:100;P||oG.devAssert(!1,"Must provide document."),Dz.assertValidSchema(D);let S=Object.freeze({}),L=[],B=new l4.ValidationContext(D,P,E,(Z)=>{if(L.length>=R)throw L.push(new eG.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),S;L.push(Z)}),Y=sP.visitInParallel(O.map((Z)=>Z(B)));try{sP.visit(P,m4.visitWithTypeInfo(E,Y))}catch(Z){if(Z!==S)throw Z}return L}function W3(D,P,O=c4.specifiedSDLRules){let W=[],E=new l4.SDLValidationContext(D,P,(R)=>{W.push(R)}),F=O.map((R)=>R(E));return sP.visit(D,sP.visitInParallel(F)),W}function Oz(D){let P=W3(D);if(P.length!==0)throw new Error(P.map((O)=>O.message).join("\n\n"))}function Wz(D,P){let O=W3(D,P);if(O.length!==0)throw new Error(O.map((W)=>W.message).join("\n\n"))}});var p4=J((d4)=>{Object.defineProperty(d4,"__esModule",{value:!0});d4.memoize3=Lz;function Lz(D){let P;return function O(W,E,F){if(P===void 0)P=new WeakMap;let R=P.get(W);if(R===void 0)R=new WeakMap,P.set(W,R);let S=R.get(E);if(S===void 0)S=new WeakMap,R.set(E,S);let L=S.get(F);if(L===void 0)L=D(W,E,F),S.set(F,L);return L}}});var n4=J((a4)=>{Object.defineProperty(a4,"__esModule",{value:!0});a4.promiseForObject=Yz;function Yz(D){return Promise.all(Object.values(D)).then((P)=>{let O=Object.create(null);for(let[W,E]of Object.keys(D).entries())O[E]=P[W];return O})}});var s4=J((t4)=>{Object.defineProperty(t4,"__esModule",{value:!0});t4.promiseReduce=Cz;var Hz=JP();function Cz(D,P,O){let W=O;for(let E of D)W=Hz.isPromise(W)?W.then((F)=>P(F,E)):P(W,E);return W}});var e4=J((o4)=>{Object.defineProperty(o4,"__esModule",{value:!0});o4.toError=Uz;var Jz=i();function Uz(D){return D instanceof Error?D:new i4(D)}class i4 extends Error{constructor(D){super("Unexpected error value: "+Jz.inspect(D));this.name="NonErrorThrown",this.thrownValue=D}}});var iP=J((D9)=>{Object.defineProperty(D9,"__esModule",{value:!0});D9.locatedError=zz;var qz=e4(),Gz=T();function zz(D,P,O){var W;let E=qz.toError(D);if(uz(E))return E;return new Gz.GraphQLError(E.message,{nodes:(W=E.nodes)!==null&&W!==void 0?W:P,source:E.source,positions:E.positions,path:O,originalError:E})}function uz(D){return Array.isArray(D.path)}});var c8=J((A9)=>{Object.defineProperty(A9,"__esModule",{value:!0});A9.assertValidExecutionArguments=L9;A9.buildExecutionContext=B9;A9.buildResolveInfo=Z9;A9.defaultTypeResolver=A9.defaultFieldResolver=void 0;A9.execute=S9;A9.executeSync=$z;A9.getFieldDef=C9;var F3=kD(),X2=i(),Qz=$D(),Mz=hP(),L3=U0(),H0=JP(),bz=p4(),q2=k8(),P9=n4(),wz=s4(),tD=T(),eP=iP(),E3=X0(),O9=c(),n0=l(),c2=nD(),Kz=T8(),F9=pP(),R9=m2(),jz=bz.memoize3((D,P,O)=>F9.collectSubfields(D.schema,D.fragments,D.variableValues,P,O));function S9(D){arguments.length<2||F3.devAssert(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:P,document:O,variableValues:W,rootValue:E}=D;L9(P,O,W);let F=B9(D);if(!("schema"in F))return{errors:F};try{let{operation:R}=F,S=Vz(F,R,E);if(H0.isPromise(S))return S.then((L)=>oP(L,F.errors),(L)=>{return F.errors.push(L),oP(null,F.errors)});return oP(S,F.errors)}catch(R){return F.errors.push(R),oP(null,F.errors)}}function $z(D){let P=S9(D);if(H0.isPromise(P))throw new Error("GraphQL execution failed to complete synchronously.");return P}function oP(D,P){return P.length===0?{data:D}:{errors:P,data:D}}function L9(D,P,O){P||F3.devAssert(!1,"Must provide document."),Kz.assertValidSchema(D),O==null||L3.isObjectLike(O)||F3.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 B9(D){var P,O;let{schema:W,document:E,rootValue:F,contextValue:R,variableValues:S,operationName:L,fieldResolver:B,typeResolver:Y,subscribeFieldResolver:Z}=D,H,A=Object.create(null);for(let $ of E.definitions)switch($.kind){case O9.Kind.OPERATION_DEFINITION:if(L==null){if(H!==void 0)return[new tD.GraphQLError("Must provide operation name if query contains multiple operations.")];H=$}else if(((P=$.name)===null||P===void 0?void 0:P.value)===L)H=$;break;case O9.Kind.FRAGMENT_DEFINITION:A[$.name.value]=$;break;default:}if(!H){if(L!=null)return[new tD.GraphQLError(`Unknown operation named "${L}".`)];return[new tD.GraphQLError("Must provide an operation.")]}let X=(O=H.variableDefinitions)!==null&&O!==void 0?O:[],I=R9.getVariableValues(W,X,S!==null&&S!==void 0?S:{},{maxErrors:50});if(I.errors)return I.errors;return{schema:W,fragments:A,rootValue:F,contextValue:R,operation:H,variableValues:I.coerced,fieldResolver:B!==null&&B!==void 0?B:S3,typeResolver:Y!==null&&Y!==void 0?Y:H9,subscribeFieldResolver:Z!==null&&Z!==void 0?Z:S3,errors:[]}}function Vz(D,P,O){let W=D.schema.getRootType(P.operation);if(W==null)throw new tD.GraphQLError(`Schema is not configured to execute ${P.operation} operation.`,{nodes:P});let E=F9.collectFields(D.schema,D.fragments,D.variableValues,W,P.selectionSet),F=void 0;switch(P.operation){case E3.OperationTypeNode.QUERY:return DO(D,W,O,F,E);case E3.OperationTypeNode.MUTATION:return _z(D,W,O,F,E);case E3.OperationTypeNode.SUBSCRIPTION:return DO(D,W,O,F,E)}}function _z(D,P,O,W,E){return wz.promiseReduce(E.entries(),(F,[R,S])=>{let L=q2.addPath(W,R,P.name),B=Y9(D,P,O,S,L);if(B===void 0)return F;if(H0.isPromise(B))return B.then((Y)=>{return F[R]=Y,F});return F[R]=B,F},Object.create(null))}function DO(D,P,O,W,E){let F=Object.create(null),R=!1;try{for(let[S,L]of E.entries()){let B=q2.addPath(W,S,P.name),Y=Y9(D,P,O,L,B);if(Y!==void 0){if(F[S]=Y,H0.isPromise(Y))R=!0}}}catch(S){if(R)return P9.promiseForObject(F).finally(()=>{throw S});throw S}if(!R)return F;return P9.promiseForObject(F)}function Y9(D,P,O,W,E){var F;let R=C9(D.schema,P,W[0]);if(!R)return;let S=R.type,L=(F=R.resolve)!==null&&F!==void 0?F:D.fieldResolver,B=Z9(D,R,W,P,E);try{let Y=R9.getArgumentValues(R,W[0],D.variableValues),Z=D.contextValue,H=L(O,Y,Z,B),A;if(H0.isPromise(H))A=H.then((X)=>m8(D,S,W,B,E,X));else A=m8(D,S,W,B,E,H);if(H0.isPromise(A))return A.then(void 0,(X)=>{let I=eP.locatedError(X,W,q2.pathToArray(E));return PO(I,S,D)});return A}catch(Y){let Z=eP.locatedError(Y,W,q2.pathToArray(E));return PO(Z,S,D)}}function Z9(D,P,O,W,E){return{fieldName:P.name,fieldNodes:O,returnType:P.type,parentType:W,path:E,schema:D.schema,fragments:D.fragments,rootValue:D.rootValue,operation:D.operation,variableValues:D.variableValues}}function PO(D,P,O){if(n0.isNonNullType(P))throw D;return O.errors.push(D),null}function m8(D,P,O,W,E,F){if(F instanceof Error)throw F;if(n0.isNonNullType(P)){let R=m8(D,P.ofType,O,W,E,F);if(R===null)throw new Error(`Cannot return null for non-nullable field ${W.parentType.name}.${W.fieldName}.`);return R}if(F==null)return null;if(n0.isListType(P))return Tz(D,P,O,W,E,F);if(n0.isLeafType(P))return Nz(P,F);if(n0.isAbstractType(P))return kz(D,P,O,W,E,F);if(n0.isObjectType(P))return R3(D,P,O,W,E,F);Qz.invariant(!1,"Cannot complete value of unexpected output type: "+X2.inspect(P))}function Tz(D,P,O,W,E,F){if(!Mz.isIterableObject(F))throw new tD.GraphQLError(`Expected Iterable, but did not find one for field "${W.parentType.name}.${W.fieldName}".`);let R=P.ofType,S=!1,L=Array.from(F,(B,Y)=>{let Z=q2.addPath(E,Y,void 0);try{let H;if(H0.isPromise(B))H=B.then((A)=>m8(D,R,O,W,Z,A));else H=m8(D,R,O,W,Z,B);if(H0.isPromise(H))return S=!0,H.then(void 0,(A)=>{let X=eP.locatedError(A,O,q2.pathToArray(Z));return PO(X,R,D)});return H}catch(H){let A=eP.locatedError(H,O,q2.pathToArray(Z));return PO(A,R,D)}});return S?Promise.all(L):L}function Nz(D,P){let O=D.serialize(P);if(O==null)throw new Error(`Expected \`${X2.inspect(D)}.serialize(${X2.inspect(P)})\` to return non-nullable value, returned: ${X2.inspect(O)}`);return O}function kz(D,P,O,W,E,F){var R;let S=(R=P.resolveType)!==null&&R!==void 0?R:D.typeResolver,L=D.contextValue,B=S(F,L,W,P);if(H0.isPromise(B))return B.then((Y)=>R3(D,W9(Y,D,P,O,W,F),O,W,E,F));return R3(D,W9(B,D,P,O,W,F),O,W,E,F)}function W9(D,P,O,W,E,F){if(D==null)throw new tD.GraphQLError(`Abstract type "${O.name}" must resolve to an Object type at runtime for field "${E.parentType.name}.${E.fieldName}". Either the "${O.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,W);if(n0.isObjectType(D))throw new tD.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 tD.GraphQLError(`Abstract type "${O.name}" must resolve to an Object type at runtime for field "${E.parentType.name}.${E.fieldName}" with value ${X2.inspect(F)}, received "${X2.inspect(D)}".`);let R=P.schema.getType(D);if(R==null)throw new tD.GraphQLError(`Abstract type "${O.name}" was resolved to a type "${D}" that does not exist inside the schema.`,{nodes:W});if(!n0.isObjectType(R))throw new tD.GraphQLError(`Abstract type "${O.name}" was resolved to a non-object type "${D}".`,{nodes:W});if(!P.schema.isSubType(O,R))throw new tD.GraphQLError(`Runtime Object type "${R.name}" is not a possible type for "${O.name}".`,{nodes:W});return R}function R3(D,P,O,W,E,F){let R=jz(D,P,O);if(P.isTypeOf){let S=P.isTypeOf(F,D.contextValue,W);if(H0.isPromise(S))return S.then((L)=>{if(!L)throw E9(P,F,O);return DO(D,P,F,E,R)});if(!S)throw E9(P,F,O)}return DO(D,P,F,E,R)}function E9(D,P,O){return new tD.GraphQLError(`Expected value of type "${D.name}" but got: ${X2.inspect(P)}.`,{nodes:O})}var H9=function(D,P,O,W){if(L3.isObjectLike(D)&&typeof D.__typename==="string")return D.__typename;let E=O.schema.getPossibleTypes(W),F=[];for(let R=0;R<E.length;R++){let S=E[R];if(S.isTypeOf){let L=S.isTypeOf(D,P,O);if(H0.isPromise(L))F[R]=L;else if(L)return S.name}}if(F.length)return Promise.all(F).then((R)=>{for(let S=0;S<R.length;S++)if(R[S])return E[S].name})};A9.defaultTypeResolver=H9;var S3=function(D,P,O,W){if(L3.isObjectLike(D)||typeof D==="function"){let E=D[W.fieldName];if(typeof E==="function")return D[W.fieldName](P,O,W);return E}};A9.defaultFieldResolver=S3;function C9(D,P,O){let W=O.name.value;if(W===c2.SchemaMetaFieldDef.name&&D.getQueryType()===P)return c2.SchemaMetaFieldDef;else if(W===c2.TypeMetaFieldDef.name&&D.getQueryType()===P)return c2.TypeMetaFieldDef;else if(W===c2.TypeNameMetaFieldDef.name)return c2.TypeNameMetaFieldDef;return P.getFields()[W]}});var q9=J((X9)=>{Object.defineProperty(X9,"__esModule",{value:!0});X9.graphql=nz;X9.graphqlSync=tz;var cz=kD(),lz=JP(),rz=T2(),dz=T8(),pz=y8(),az=c8();function nz(D){return new Promise((P)=>P(U9(D)))}function tz(D){let P=U9(D);if(lz.isPromise(P))throw new Error("GraphQL execution failed to complete synchronously.");return P}function U9(D){arguments.length<2||cz.devAssert(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:P,source:O,rootValue:W,contextValue:E,variableValues:F,operationName:R,fieldResolver:S,typeResolver:L}=D,B=dz.validateSchema(P);if(B.length>0)return{errors:B};let Y;try{Y=rz.parse(O)}catch(H){return{errors:[H]}}let Z=pz.validate(P,Y);if(Z.length>0)return{errors:Z};return az.execute({schema:P,document:Y,rootValue:W,contextValue:E,variableValues:F,operationName:R,fieldResolver:S,typeResolver:L})}});var u9=J((G)=>{Object.defineProperty(G,"__esModule",{value:!0});Object.defineProperty(G,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return C0.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(G,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return f0.GRAPHQL_MAX_INT}});Object.defineProperty(G,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return f0.GRAPHQL_MIN_INT}});Object.defineProperty(G,"GraphQLBoolean",{enumerable:!0,get:function(){return f0.GraphQLBoolean}});Object.defineProperty(G,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return C0.GraphQLDeprecatedDirective}});Object.defineProperty(G,"GraphQLDirective",{enumerable:!0,get:function(){return C0.GraphQLDirective}});Object.defineProperty(G,"GraphQLEnumType",{enumerable:!0,get:function(){return k.GraphQLEnumType}});Object.defineProperty(G,"GraphQLFloat",{enumerable:!0,get:function(){return f0.GraphQLFloat}});Object.defineProperty(G,"GraphQLID",{enumerable:!0,get:function(){return f0.GraphQLID}});Object.defineProperty(G,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return C0.GraphQLIncludeDirective}});Object.defineProperty(G,"GraphQLInputObjectType",{enumerable:!0,get:function(){return k.GraphQLInputObjectType}});Object.defineProperty(G,"GraphQLInt",{enumerable:!0,get:function(){return f0.GraphQLInt}});Object.defineProperty(G,"GraphQLInterfaceType",{enumerable:!0,get:function(){return k.GraphQLInterfaceType}});Object.defineProperty(G,"GraphQLList",{enumerable:!0,get:function(){return k.GraphQLList}});Object.defineProperty(G,"GraphQLNonNull",{enumerable:!0,get:function(){return k.GraphQLNonNull}});Object.defineProperty(G,"GraphQLObjectType",{enumerable:!0,get:function(){return k.GraphQLObjectType}});Object.defineProperty(G,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return C0.GraphQLOneOfDirective}});Object.defineProperty(G,"GraphQLScalarType",{enumerable:!0,get:function(){return k.GraphQLScalarType}});Object.defineProperty(G,"GraphQLSchema",{enumerable:!0,get:function(){return B3.GraphQLSchema}});Object.defineProperty(G,"GraphQLSkipDirective",{enumerable:!0,get:function(){return C0.GraphQLSkipDirective}});Object.defineProperty(G,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return C0.GraphQLSpecifiedByDirective}});Object.defineProperty(G,"GraphQLString",{enumerable:!0,get:function(){return f0.GraphQLString}});Object.defineProperty(G,"GraphQLUnionType",{enumerable:!0,get:function(){return k.GraphQLUnionType}});Object.defineProperty(G,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return vD.SchemaMetaFieldDef}});Object.defineProperty(G,"TypeKind",{enumerable:!0,get:function(){return vD.TypeKind}});Object.defineProperty(G,"TypeMetaFieldDef",{enumerable:!0,get:function(){return vD.TypeMetaFieldDef}});Object.defineProperty(G,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return vD.TypeNameMetaFieldDef}});Object.defineProperty(G,"__Directive",{enumerable:!0,get:function(){return vD.__Directive}});Object.defineProperty(G,"__DirectiveLocation",{enumerable:!0,get:function(){return vD.__DirectiveLocation}});Object.defineProperty(G,"__EnumValue",{enumerable:!0,get:function(){return vD.__EnumValue}});Object.defineProperty(G,"__Field",{enumerable:!0,get:function(){return vD.__Field}});Object.defineProperty(G,"__InputValue",{enumerable:!0,get:function(){return vD.__InputValue}});Object.defineProperty(G,"__Schema",{enumerable:!0,get:function(){return vD.__Schema}});Object.defineProperty(G,"__Type",{enumerable:!0,get:function(){return vD.__Type}});Object.defineProperty(G,"__TypeKind",{enumerable:!0,get:function(){return vD.__TypeKind}});Object.defineProperty(G,"assertAbstractType",{enumerable:!0,get:function(){return k.assertAbstractType}});Object.defineProperty(G,"assertCompositeType",{enumerable:!0,get:function(){return k.assertCompositeType}});Object.defineProperty(G,"assertDirective",{enumerable:!0,get:function(){return C0.assertDirective}});Object.defineProperty(G,"assertEnumType",{enumerable:!0,get:function(){return k.assertEnumType}});Object.defineProperty(G,"assertEnumValueName",{enumerable:!0,get:function(){return z9.assertEnumValueName}});Object.defineProperty(G,"assertInputObjectType",{enumerable:!0,get:function(){return k.assertInputObjectType}});Object.defineProperty(G,"assertInputType",{enumerable:!0,get:function(){return k.assertInputType}});Object.defineProperty(G,"assertInterfaceType",{enumerable:!0,get:function(){return k.assertInterfaceType}});Object.defineProperty(G,"assertLeafType",{enumerable:!0,get:function(){return k.assertLeafType}});Object.defineProperty(G,"assertListType",{enumerable:!0,get:function(){return k.assertListType}});Object.defineProperty(G,"assertName",{enumerable:!0,get:function(){return z9.assertName}});Object.defineProperty(G,"assertNamedType",{enumerable:!0,get:function(){return k.assertNamedType}});Object.defineProperty(G,"assertNonNullType",{enumerable:!0,get:function(){return k.assertNonNullType}});Object.defineProperty(G,"assertNullableType",{enumerable:!0,get:function(){return k.assertNullableType}});Object.defineProperty(G,"assertObjectType",{enumerable:!0,get:function(){return k.assertObjectType}});Object.defineProperty(G,"assertOutputType",{enumerable:!0,get:function(){return k.assertOutputType}});Object.defineProperty(G,"assertScalarType",{enumerable:!0,get:function(){return k.assertScalarType}});Object.defineProperty(G,"assertSchema",{enumerable:!0,get:function(){return B3.assertSchema}});Object.defineProperty(G,"assertType",{enumerable:!0,get:function(){return k.assertType}});Object.defineProperty(G,"assertUnionType",{enumerable:!0,get:function(){return k.assertUnionType}});Object.defineProperty(G,"assertValidSchema",{enumerable:!0,get:function(){return G9.assertValidSchema}});Object.defineProperty(G,"assertWrappingType",{enumerable:!0,get:function(){return k.assertWrappingType}});Object.defineProperty(G,"getNamedType",{enumerable:!0,get:function(){return k.getNamedType}});Object.defineProperty(G,"getNullableType",{enumerable:!0,get:function(){return k.getNullableType}});Object.defineProperty(G,"introspectionTypes",{enumerable:!0,get:function(){return vD.introspectionTypes}});Object.defineProperty(G,"isAbstractType",{enumerable:!0,get:function(){return k.isAbstractType}});Object.defineProperty(G,"isCompositeType",{enumerable:!0,get:function(){return k.isCompositeType}});Object.defineProperty(G,"isDirective",{enumerable:!0,get:function(){return C0.isDirective}});Object.defineProperty(G,"isEnumType",{enumerable:!0,get:function(){return k.isEnumType}});Object.defineProperty(G,"isInputObjectType",{enumerable:!0,get:function(){return k.isInputObjectType}});Object.defineProperty(G,"isInputType",{enumerable:!0,get:function(){return k.isInputType}});Object.defineProperty(G,"isInterfaceType",{enumerable:!0,get:function(){return k.isInterfaceType}});Object.defineProperty(G,"isIntrospectionType",{enumerable:!0,get:function(){return vD.isIntrospectionType}});Object.defineProperty(G,"isLeafType",{enumerable:!0,get:function(){return k.isLeafType}});Object.defineProperty(G,"isListType",{enumerable:!0,get:function(){return k.isListType}});Object.defineProperty(G,"isNamedType",{enumerable:!0,get:function(){return k.isNamedType}});Object.defineProperty(G,"isNonNullType",{enumerable:!0,get:function(){return k.isNonNullType}});Object.defineProperty(G,"isNullableType",{enumerable:!0,get:function(){return k.isNullableType}});Object.defineProperty(G,"isObjectType",{enumerable:!0,get:function(){return k.isObjectType}});Object.defineProperty(G,"isOutputType",{enumerable:!0,get:function(){return k.isOutputType}});Object.defineProperty(G,"isRequiredArgument",{enumerable:!0,get:function(){return k.isRequiredArgument}});Object.defineProperty(G,"isRequiredInputField",{enumerable:!0,get:function(){return k.isRequiredInputField}});Object.defineProperty(G,"isScalarType",{enumerable:!0,get:function(){return k.isScalarType}});Object.defineProperty(G,"isSchema",{enumerable:!0,get:function(){return B3.isSchema}});Object.defineProperty(G,"isSpecifiedDirective",{enumerable:!0,get:function(){return C0.isSpecifiedDirective}});Object.defineProperty(G,"isSpecifiedScalarType",{enumerable:!0,get:function(){return f0.isSpecifiedScalarType}});Object.defineProperty(G,"isType",{enumerable:!0,get:function(){return k.isType}});Object.defineProperty(G,"isUnionType",{enumerable:!0,get:function(){return k.isUnionType}});Object.defineProperty(G,"isWrappingType",{enumerable:!0,get:function(){return k.isWrappingType}});Object.defineProperty(G,"resolveObjMapThunk",{enumerable:!0,get:function(){return k.resolveObjMapThunk}});Object.defineProperty(G,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return k.resolveReadonlyArrayThunk}});Object.defineProperty(G,"specifiedDirectives",{enumerable:!0,get:function(){return C0.specifiedDirectives}});Object.defineProperty(G,"specifiedScalarTypes",{enumerable:!0,get:function(){return f0.specifiedScalarTypes}});Object.defineProperty(G,"validateSchema",{enumerable:!0,get:function(){return G9.validateSchema}});var B3=H2(),k=l(),C0=fD(),f0=z0(),vD=nD(),G9=T8(),z9=q8()});var Q9=J((p)=>{Object.defineProperty(p,"__esModule",{value:!0});Object.defineProperty(p,"BREAK",{enumerable:!0,get:function(){return l8.BREAK}});Object.defineProperty(p,"DirectiveLocation",{enumerable:!0,get:function(){return Eu.DirectiveLocation}});Object.defineProperty(p,"Kind",{enumerable:!0,get:function(){return Du.Kind}});Object.defineProperty(p,"Lexer",{enumerable:!0,get:function(){return Ou.Lexer}});Object.defineProperty(p,"Location",{enumerable:!0,get:function(){return Y3.Location}});Object.defineProperty(p,"OperationTypeNode",{enumerable:!0,get:function(){return Y3.OperationTypeNode}});Object.defineProperty(p,"Source",{enumerable:!0,get:function(){return oz.Source}});Object.defineProperty(p,"Token",{enumerable:!0,get:function(){return Y3.Token}});Object.defineProperty(p,"TokenKind",{enumerable:!0,get:function(){return Pu.TokenKind}});Object.defineProperty(p,"getEnterLeaveForKind",{enumerable:!0,get:function(){return l8.getEnterLeaveForKind}});Object.defineProperty(p,"getLocation",{enumerable:!0,get:function(){return ez.getLocation}});Object.defineProperty(p,"getVisitFn",{enumerable:!0,get:function(){return l8.getVisitFn}});Object.defineProperty(p,"isConstValueNode",{enumerable:!0,get:function(){return M0.isConstValueNode}});Object.defineProperty(p,"isDefinitionNode",{enumerable:!0,get:function(){return M0.isDefinitionNode}});Object.defineProperty(p,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return M0.isExecutableDefinitionNode}});Object.defineProperty(p,"isSelectionNode",{enumerable:!0,get:function(){return M0.isSelectionNode}});Object.defineProperty(p,"isTypeDefinitionNode",{enumerable:!0,get:function(){return M0.isTypeDefinitionNode}});Object.defineProperty(p,"isTypeExtensionNode",{enumerable:!0,get:function(){return M0.isTypeExtensionNode}});Object.defineProperty(p,"isTypeNode",{enumerable:!0,get:function(){return M0.isTypeNode}});Object.defineProperty(p,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return M0.isTypeSystemDefinitionNode}});Object.defineProperty(p,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return M0.isTypeSystemExtensionNode}});Object.defineProperty(p,"isValueNode",{enumerable:!0,get:function(){return M0.isValueNode}});Object.defineProperty(p,"parse",{enumerable:!0,get:function(){return OO.parse}});Object.defineProperty(p,"parseConstValue",{enumerable:!0,get:function(){return OO.parseConstValue}});Object.defineProperty(p,"parseType",{enumerable:!0,get:function(){return OO.parseType}});Object.defineProperty(p,"parseValue",{enumerable:!0,get:function(){return OO.parseValue}});Object.defineProperty(p,"print",{enumerable:!0,get:function(){return Wu.print}});Object.defineProperty(p,"printLocation",{enumerable:!0,get:function(){return I9.printLocation}});Object.defineProperty(p,"printSourceLocation",{enumerable:!0,get:function(){return I9.printSourceLocation}});Object.defineProperty(p,"visit",{enumerable:!0,get:function(){return l8.visit}});Object.defineProperty(p,"visitInParallel",{enumerable:!0,get:function(){return l8.visitInParallel}});var oz=IP(),ez=UP(),I9=L1(),Du=c(),Pu=H8(),Ou=zP(),OO=T2(),Wu=mD(),l8=R2(),Y3=X0(),M0=A2(),Eu=$2()});var b9=J((M9)=>{Object.defineProperty(M9,"__esModule",{value:!0});M9.isAsyncIterable=Fu;function Fu(D){return typeof(D===null||D===void 0?void 0:D[Symbol.asyncIterator])==="function"}});var K9=J((w9)=>{Object.defineProperty(w9,"__esModule",{value:!0});w9.mapAsyncIterator=Su;function Su(D,P){let O=D[Symbol.asyncIterator]();async function W(E){if(E.done)return E;try{return{value:await P(E.value),done:!1}}catch(F){if(typeof O.return==="function")try{await O.return()}catch(R){}throw F}}return{async next(){return W(await O.next())},async return(){return typeof O.return==="function"?W(await O.return()):{value:void 0,done:!0}},async throw(E){if(typeof O.throw==="function")return W(await O.throw(E));throw E},[Symbol.asyncIterator](){return this}}}});var T9=J((_9)=>{Object.defineProperty(_9,"__esModule",{value:!0});_9.createSourceEventStream=V9;_9.subscribe=Ju;var Bu=kD(),Yu=i(),$9=b9(),j9=k8(),Z3=T(),Zu=iP(),Hu=pP(),r8=c8(),Cu=K9(),Au=m2();async function Ju(D){arguments.length<2||Bu.devAssert(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let P=await V9(D);if(!$9.isAsyncIterable(P))return P;let O=(W)=>r8.execute({...D,rootValue:W});return Cu.mapAsyncIterator(P,O)}function Uu(D){let P=D[0];if(P&&"document"in P)return P;return{schema:P,document:D[1],rootValue:D[2],contextValue:D[3],variableValues:D[4],operationName:D[5],subscribeFieldResolver:D[6]}}async function V9(...D){let P=Uu(D),{schema:O,document:W,variableValues:E}=P;r8.assertValidExecutionArguments(O,W,E);let F=r8.buildExecutionContext(P);if(!("schema"in F))return{errors:F};try{let R=await Xu(F);if(!$9.isAsyncIterable(R))throw new Error(`Subscription field must return Async Iterable. Received: ${Yu.inspect(R)}.`);return R}catch(R){if(R instanceof Z3.GraphQLError)return{errors:[R]};throw R}}async function Xu(D){let{schema:P,fragments:O,operation:W,variableValues:E,rootValue:F}=D,R=P.getSubscriptionType();if(R==null)throw new Z3.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:W});let S=Hu.collectFields(P,O,E,R,W.selectionSet),[L,B]=[...S.entries()][0],Y=r8.getFieldDef(P,R,B[0]);if(!Y){let X=B[0].name.value;throw new Z3.GraphQLError(`The subscription field "${X}" is not defined.`,{nodes:B})}let Z=j9.addPath(void 0,L,R.name),H=r8.buildResolveInfo(D,Y,B,R,Z);try{var A;let X=Au.getArgumentValues(Y,B[0],E),I=D.contextValue,x=await((A=Y.subscribe)!==null&&A!==void 0?A:D.subscribeFieldResolver)(F,X,I,H);if(x instanceof Error)throw x;return x}catch(X){throw Zu.locatedError(X,B,j9.pathToArray(Z))}}});var k9=J((sD)=>{Object.defineProperty(sD,"__esModule",{value:!0});Object.defineProperty(sD,"createSourceEventStream",{enumerable:!0,get:function(){return N9.createSourceEventStream}});Object.defineProperty(sD,"defaultFieldResolver",{enumerable:!0,get:function(){return WO.defaultFieldResolver}});Object.defineProperty(sD,"defaultTypeResolver",{enumerable:!0,get:function(){return WO.defaultTypeResolver}});Object.defineProperty(sD,"execute",{enumerable:!0,get:function(){return WO.execute}});Object.defineProperty(sD,"executeSync",{enumerable:!0,get:function(){return WO.executeSync}});Object.defineProperty(sD,"getArgumentValues",{enumerable:!0,get:function(){return H3.getArgumentValues}});Object.defineProperty(sD,"getDirectiveValues",{enumerable:!0,get:function(){return H3.getDirectiveValues}});Object.defineProperty(sD,"getVariableValues",{enumerable:!0,get:function(){return H3.getVariableValues}});Object.defineProperty(sD,"responsePathAsArray",{enumerable:!0,get:function(){return zu.pathToArray}});Object.defineProperty(sD,"subscribe",{enumerable:!0,get:function(){return N9.subscribe}});var zu=k8(),WO=c8(),N9=T9(),H3=m2()});var f9=J((x9)=>{Object.defineProperty(x9,"__esModule",{value:!0});x9.NoDeprecatedCustomRule=uu;var C3=$D(),d8=T(),A3=l();function uu(D){return{Field(P){let O=D.getFieldDef(),W=O===null||O===void 0?void 0:O.deprecationReason;if(O&&W!=null){let E=D.getParentType();E!=null||C3.invariant(!1),D.reportError(new d8.GraphQLError(`The field ${E.name}.${O.name} is deprecated. ${W}`,{nodes:P}))}},Argument(P){let O=D.getArgument(),W=O===null||O===void 0?void 0:O.deprecationReason;if(O&&W!=null){let E=D.getDirective();if(E!=null)D.reportError(new d8.GraphQLError(`Directive "@${E.name}" argument "${O.name}" is deprecated. ${W}`,{nodes:P}));else{let F=D.getParentType(),R=D.getFieldDef();F!=null&&R!=null||C3.invariant(!1),D.reportError(new d8.GraphQLError(`Field "${F.name}.${R.name}" argument "${O.name}" is deprecated. ${W}`,{nodes:P}))}}},ObjectField(P){let O=A3.getNamedType(D.getParentInputType());if(A3.isInputObjectType(O)){let W=O.getFields()[P.name.value],E=W===null||W===void 0?void 0:W.deprecationReason;if(E!=null)D.reportError(new d8.GraphQLError(`The input field ${O.name}.${W.name} is deprecated. ${E}`,{nodes:P}))}},EnumValue(P){let O=D.getEnumValue(),W=O===null||O===void 0?void 0:O.deprecationReason;if(O&&W!=null){let E=A3.getNamedType(D.getInputType());E!=null||C3.invariant(!1),D.reportError(new d8.GraphQLError(`The enum value "${E.name}.${O.name}" is deprecated. ${W}`,{nodes:P}))}}}}});var v9=J((h9)=>{Object.defineProperty(h9,"__esModule",{value:!0});h9.NoSchemaIntrospectionCustomRule=wu;var Qu=T(),Mu=l(),bu=nD();function wu(D){return{Field(P){let O=Mu.getNamedType(D.getType());if(O&&bu.isIntrospectionType(O))D.reportError(new Qu.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${P.name.value}".`,{nodes:P}))}}}});var y9=J((h)=>{Object.defineProperty(h,"__esModule",{value:!0});Object.defineProperty(h,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return Vu.ExecutableDefinitionsRule}});Object.defineProperty(h,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return _u.FieldsOnCorrectTypeRule}});Object.defineProperty(h,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Tu.FragmentsOnCompositeTypesRule}});Object.defineProperty(h,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return Nu.KnownArgumentNamesRule}});Object.defineProperty(h,"KnownDirectivesRule",{enumerable:!0,get:function(){return ku.KnownDirectivesRule}});Object.defineProperty(h,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return xu.KnownFragmentNamesRule}});Object.defineProperty(h,"KnownTypeNamesRule",{enumerable:!0,get:function(){return fu.KnownTypeNamesRule}});Object.defineProperty(h,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return hu.LoneAnonymousOperationRule}});Object.defineProperty(h,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return WI.LoneSchemaDefinitionRule}});Object.defineProperty(h,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return OI.MaxIntrospectionDepthRule}});Object.defineProperty(h,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return ZI.NoDeprecatedCustomRule}});Object.defineProperty(h,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return vu.NoFragmentCyclesRule}});Object.defineProperty(h,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return HI.NoSchemaIntrospectionCustomRule}});Object.defineProperty(h,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return gu.NoUndefinedVariablesRule}});Object.defineProperty(h,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return yu.NoUnusedFragmentsRule}});Object.defineProperty(h,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return mu.NoUnusedVariablesRule}});Object.defineProperty(h,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return cu.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(h,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return lu.PossibleFragmentSpreadsRule}});Object.defineProperty(h,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return YI.PossibleTypeExtensionsRule}});Object.defineProperty(h,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return ru.ProvidedRequiredArgumentsRule}});Object.defineProperty(h,"ScalarLeafsRule",{enumerable:!0,get:function(){return du.ScalarLeafsRule}});Object.defineProperty(h,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return pu.SingleFieldSubscriptionsRule}});Object.defineProperty(h,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return LI.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(h,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return au.UniqueArgumentNamesRule}});Object.defineProperty(h,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return BI.UniqueDirectiveNamesRule}});Object.defineProperty(h,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return nu.UniqueDirectivesPerLocationRule}});Object.defineProperty(h,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return RI.UniqueEnumValueNamesRule}});Object.defineProperty(h,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return SI.UniqueFieldDefinitionNamesRule}});Object.defineProperty(h,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return tu.UniqueFragmentNamesRule}});Object.defineProperty(h,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return su.UniqueInputFieldNamesRule}});Object.defineProperty(h,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return iu.UniqueOperationNamesRule}});Object.defineProperty(h,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return EI.UniqueOperationTypesRule}});Object.defineProperty(h,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return FI.UniqueTypeNamesRule}});Object.defineProperty(h,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return ou.UniqueVariableNamesRule}});Object.defineProperty(h,"ValidationContext",{enumerable:!0,get:function(){return $u.ValidationContext}});Object.defineProperty(h,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return eu.ValuesOfCorrectTypeRule}});Object.defineProperty(h,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return DI.VariablesAreInputTypesRule}});Object.defineProperty(h,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return PI.VariablesInAllowedPositionRule}});Object.defineProperty(h,"recommendedRules",{enumerable:!0,get:function(){return g9.recommendedRules}});Object.defineProperty(h,"specifiedRules",{enumerable:!0,get:function(){return g9.specifiedRules}});Object.defineProperty(h,"validate",{enumerable:!0,get:function(){return ju.validate}});var ju=y8(),$u=O3(),g9=P3(),Vu=OW(),_u=WW(),Tu=EW(),Nu=FW(),ku=LW(),xu=BW(),fu=ZW(),hu=HW(),vu=JW(),gu=UW(),yu=XW(),mu=qW(),cu=bW(),lu=KW(),ru=VW(),du=_W(),pu=fW(),au=vW(),nu=mW(),tu=dW(),su=pW(),iu=aW(),ou=sW(),eu=oW(),DI=eW(),PI=D3(),OI=AW(),WI=CW(),EI=nW(),FI=tW(),RI=cW(),SI=rW(),LI=hW(),BI=gW(),YI=jW(),ZI=f9(),HI=v9()});var m9=J((G2)=>{Object.defineProperty(G2,"__esModule",{value:!0});Object.defineProperty(G2,"GraphQLError",{enumerable:!0,get:function(){return J3.GraphQLError}});Object.defineProperty(G2,"formatError",{enumerable:!0,get:function(){return J3.formatError}});Object.defineProperty(G2,"locatedError",{enumerable:!0,get:function(){return AI.locatedError}});Object.defineProperty(G2,"printError",{enumerable:!0,get:function(){return J3.printError}});Object.defineProperty(G2,"syntaxError",{enumerable:!0,get:function(){return CI.syntaxError}});var J3=T(),CI=XP(),AI=iP()});var U3=J((c9)=>{Object.defineProperty(c9,"__esModule",{value:!0});c9.getIntrospectionQuery=JI;function JI(D){let P={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...D},O=P.descriptions?"description":"",W=P.specifiedByUrl?"specifiedByURL":"",E=P.directiveIsRepeatable?"isRepeatable":"",F=P.schemaDescription?O:"";function R(L){return P.inputValueDeprecation?L:""}let S=P.oneOf?"isOneOf":"";return`
|
|
20
|
+
spurious results.`)}}return!1};rE.instanceOf=pZ});var GP=J((pE)=>{Object.defineProperty(pE,"__esModule",{value:!0});pE.Source=void 0;pE.isSource=tZ;var G1=ND(),nZ=i(),aZ=H8();class u1{constructor(D,P="GraphQL request",O={line:1,column:1}){typeof D==="string"||G1.devAssert(!1,`Body must be a string. Received: ${nZ.inspect(D)}.`),this.body=D,this.name=P,this.locationOffset=O,this.locationOffset.line>0||G1.devAssert(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||G1.devAssert(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}pE.Source=u1;function tZ(D){return aZ.instanceOf(D,u1)}});var _2=J((iE)=>{Object.defineProperty(iE,"__esModule",{value:!0});iE.Parser=void 0;iE.parse=oZ;iE.parseConstValue=DH;iE.parseType=PH;iE.parseValue=eZ;var W2=JP(),A8=C0(),iZ=j2(),f=c(),tE=qP(),aE=GP(),u=Y8();function oZ(D,P){return new V2(D,P).parseDocument()}function eZ(D,P){let O=new V2(D,P);O.expectToken(u.TokenKind.SOF);let W=O.parseValueLiteral(!1);return O.expectToken(u.TokenKind.EOF),W}function DH(D,P){let O=new V2(D,P);O.expectToken(u.TokenKind.SOF);let W=O.parseConstValueLiteral();return O.expectToken(u.TokenKind.EOF),W}function PH(D,P){let O=new V2(D,P);O.expectToken(u.TokenKind.SOF);let W=O.parseTypeReference();return O.expectToken(u.TokenKind.EOF),W}class V2{constructor(D,P={}){let O=aE.isSource(D)?D:new aE.Source(D);this._lexer=new tE.Lexer(O),this._options=P,this._tokenCounter=0}parseName(){let D=this.expectToken(u.TokenKind.NAME);return this.node(D,{kind:f.Kind.NAME,value:D.value})}parseDocument(){return this.node(this._lexer.token,{kind:f.Kind.DOCUMENT,definitions:this.many(u.TokenKind.SOF,this.parseDefinition,u.TokenKind.EOF)})}parseDefinition(){if(this.peek(u.TokenKind.BRACE_L))return this.parseOperationDefinition();let D=this.peekDescription(),P=D?this._lexer.lookahead():this._lexer.token;if(P.kind===u.TokenKind.NAME){switch(P.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 W2.syntaxError(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(P.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(P)}parseOperationDefinition(){let D=this._lexer.token;if(this.peek(u.TokenKind.BRACE_L))return this.node(D,{kind:f.Kind.OPERATION_DEFINITION,operation:A8.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let P=this.parseOperationType(),O;if(this.peek(u.TokenKind.NAME))O=this.parseName();return this.node(D,{kind:f.Kind.OPERATION_DEFINITION,operation:P,name:O,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let D=this.expectToken(u.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(u.TokenKind.PAREN_L,this.parseVariableDefinition,u.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:f.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let D=this._lexer.token;return this.expectToken(u.TokenKind.DOLLAR),this.node(D,{kind:f.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:f.Kind.SELECTION_SET,selections:this.many(u.TokenKind.BRACE_L,this.parseSelection,u.TokenKind.BRACE_R)})}parseSelection(){return this.peek(u.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let D=this._lexer.token,P=this.parseName(),O,W;if(this.expectOptionalToken(u.TokenKind.COLON))O=P,W=this.parseName();else W=P;return this.node(D,{kind:f.Kind.FIELD,alias:O,name:W,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(u.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(D){let P=D?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.TokenKind.PAREN_L,P,u.TokenKind.PAREN_R)}parseArgument(D=!1){let P=this._lexer.token,O=this.parseName();return this.expectToken(u.TokenKind.COLON),this.node(P,{kind:f.Kind.ARGUMENT,name:O,value:this.parseValueLiteral(D)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let D=this._lexer.token;this.expectToken(u.TokenKind.SPREAD);let P=this.expectOptionalKeyword("on");if(!P&&this.peek(u.TokenKind.NAME))return this.node(D,{kind:f.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)});return this.node(D,{kind:f.Kind.INLINE_FRAGMENT,typeCondition:P?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:f.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:f.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 P=this._lexer.token;switch(P.kind){case u.TokenKind.BRACKET_L:return this.parseList(D);case u.TokenKind.BRACE_L:return this.parseObject(D);case u.TokenKind.INT:return this.advanceLexer(),this.node(P,{kind:f.Kind.INT,value:P.value});case u.TokenKind.FLOAT:return this.advanceLexer(),this.node(P,{kind:f.Kind.FLOAT,value:P.value});case u.TokenKind.STRING:case u.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case u.TokenKind.NAME:switch(this.advanceLexer(),P.value){case"true":return this.node(P,{kind:f.Kind.BOOLEAN,value:!0});case"false":return this.node(P,{kind:f.Kind.BOOLEAN,value:!1});case"null":return this.node(P,{kind:f.Kind.NULL});default:return this.node(P,{kind:f.Kind.ENUM,value:P.value})}case u.TokenKind.DOLLAR:if(D)if(this.expectToken(u.TokenKind.DOLLAR),this._lexer.token.kind===u.TokenKind.NAME){let O=this._lexer.token.value;throw W2.syntaxError(this._lexer.source,P.start,`Unexpected variable "\$${O}" in constant value.`)}else throw this.unexpected(P);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:f.Kind.STRING,value:D.value,block:D.kind===u.TokenKind.BLOCK_STRING})}parseList(D){let P=()=>this.parseValueLiteral(D);return this.node(this._lexer.token,{kind:f.Kind.LIST,values:this.any(u.TokenKind.BRACKET_L,P,u.TokenKind.BRACKET_R)})}parseObject(D){let P=()=>this.parseObjectField(D);return this.node(this._lexer.token,{kind:f.Kind.OBJECT,fields:this.any(u.TokenKind.BRACE_L,P,u.TokenKind.BRACE_R)})}parseObjectField(D){let P=this._lexer.token,O=this.parseName();return this.expectToken(u.TokenKind.COLON),this.node(P,{kind:f.Kind.OBJECT_FIELD,name:O,value:this.parseValueLiteral(D)})}parseDirectives(D){let P=[];while(this.peek(u.TokenKind.AT))P.push(this.parseDirective(D));return P}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(D){let P=this._lexer.token;return this.expectToken(u.TokenKind.AT),this.node(P,{kind:f.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(D)})}parseTypeReference(){let D=this._lexer.token,P;if(this.expectOptionalToken(u.TokenKind.BRACKET_L)){let O=this.parseTypeReference();this.expectToken(u.TokenKind.BRACKET_R),P=this.node(D,{kind:f.Kind.LIST_TYPE,type:O})}else P=this.parseNamedType();if(this.expectOptionalToken(u.TokenKind.BANG))return this.node(D,{kind:f.Kind.NON_NULL_TYPE,type:P});return P}parseNamedType(){return this.node(this._lexer.token,{kind:f.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.TokenKind.STRING)||this.peek(u.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let D=this._lexer.token,P=this.parseDescription();this.expectKeyword("schema");let O=this.parseConstDirectives(),W=this.many(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);return this.node(D,{kind:f.Kind.SCHEMA_DEFINITION,description:P,directives:O,operationTypes:W})}parseOperationTypeDefinition(){let D=this._lexer.token,P=this.parseOperationType();this.expectToken(u.TokenKind.COLON);let O=this.parseNamedType();return this.node(D,{kind:f.Kind.OPERATION_TYPE_DEFINITION,operation:P,type:O})}parseScalarTypeDefinition(){let D=this._lexer.token,P=this.parseDescription();this.expectKeyword("scalar");let O=this.parseName(),W=this.parseConstDirectives();return this.node(D,{kind:f.Kind.SCALAR_TYPE_DEFINITION,description:P,name:O,directives:W})}parseObjectTypeDefinition(){let D=this._lexer.token,P=this.parseDescription();this.expectKeyword("type");let O=this.parseName(),W=this.parseImplementsInterfaces(),E=this.parseConstDirectives(),F=this.parseFieldsDefinition();return this.node(D,{kind:f.Kind.OBJECT_TYPE_DEFINITION,description:P,name:O,interfaces:W,directives:E,fields:F})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseFieldDefinition,u.TokenKind.BRACE_R)}parseFieldDefinition(){let D=this._lexer.token,P=this.parseDescription(),O=this.parseName(),W=this.parseArgumentDefs();this.expectToken(u.TokenKind.COLON);let E=this.parseTypeReference(),F=this.parseConstDirectives();return this.node(D,{kind:f.Kind.FIELD_DEFINITION,description:P,name:O,arguments:W,type:E,directives:F})}parseArgumentDefs(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseInputValueDef,u.TokenKind.PAREN_R)}parseInputValueDef(){let D=this._lexer.token,P=this.parseDescription(),O=this.parseName();this.expectToken(u.TokenKind.COLON);let W=this.parseTypeReference(),E;if(this.expectOptionalToken(u.TokenKind.EQUALS))E=this.parseConstValueLiteral();let F=this.parseConstDirectives();return this.node(D,{kind:f.Kind.INPUT_VALUE_DEFINITION,description:P,name:O,type:W,defaultValue:E,directives:F})}parseInterfaceTypeDefinition(){let D=this._lexer.token,P=this.parseDescription();this.expectKeyword("interface");let O=this.parseName(),W=this.parseImplementsInterfaces(),E=this.parseConstDirectives(),F=this.parseFieldsDefinition();return this.node(D,{kind:f.Kind.INTERFACE_TYPE_DEFINITION,description:P,name:O,interfaces:W,directives:E,fields:F})}parseUnionTypeDefinition(){let D=this._lexer.token,P=this.parseDescription();this.expectKeyword("union");let O=this.parseName(),W=this.parseConstDirectives(),E=this.parseUnionMemberTypes();return this.node(D,{kind:f.Kind.UNION_TYPE_DEFINITION,description:P,name:O,directives:W,types:E})}parseUnionMemberTypes(){return this.expectOptionalToken(u.TokenKind.EQUALS)?this.delimitedMany(u.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let D=this._lexer.token,P=this.parseDescription();this.expectKeyword("enum");let O=this.parseName(),W=this.parseConstDirectives(),E=this.parseEnumValuesDefinition();return this.node(D,{kind:f.Kind.ENUM_TYPE_DEFINITION,description:P,name:O,directives:W,values:E})}parseEnumValuesDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseEnumValueDefinition,u.TokenKind.BRACE_R)}parseEnumValueDefinition(){let D=this._lexer.token,P=this.parseDescription(),O=this.parseEnumValueName(),W=this.parseConstDirectives();return this.node(D,{kind:f.Kind.ENUM_VALUE_DEFINITION,description:P,name:O,directives:W})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw W2.syntaxError(this._lexer.source,this._lexer.token.start,`${uP(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let D=this._lexer.token,P=this.parseDescription();this.expectKeyword("input");let O=this.parseName(),W=this.parseConstDirectives(),E=this.parseInputFieldsDefinition();return this.node(D,{kind:f.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:P,name:O,directives:W,fields:E})}parseInputFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseInputValueDef,u.TokenKind.BRACE_R)}parseTypeSystemExtension(){let D=this._lexer.lookahead();if(D.kind===u.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 P=this.parseConstDirectives(),O=this.optionalMany(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);if(P.length===0&&O.length===0)throw this.unexpected();return this.node(D,{kind:f.Kind.SCHEMA_EXTENSION,directives:P,operationTypes:O})}parseScalarTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let P=this.parseName(),O=this.parseConstDirectives();if(O.length===0)throw this.unexpected();return this.node(D,{kind:f.Kind.SCALAR_TYPE_EXTENSION,name:P,directives:O})}parseObjectTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let P=this.parseName(),O=this.parseImplementsInterfaces(),W=this.parseConstDirectives(),E=this.parseFieldsDefinition();if(O.length===0&&W.length===0&&E.length===0)throw this.unexpected();return this.node(D,{kind:f.Kind.OBJECT_TYPE_EXTENSION,name:P,interfaces:O,directives:W,fields:E})}parseInterfaceTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let P=this.parseName(),O=this.parseImplementsInterfaces(),W=this.parseConstDirectives(),E=this.parseFieldsDefinition();if(O.length===0&&W.length===0&&E.length===0)throw this.unexpected();return this.node(D,{kind:f.Kind.INTERFACE_TYPE_EXTENSION,name:P,interfaces:O,directives:W,fields:E})}parseUnionTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let P=this.parseName(),O=this.parseConstDirectives(),W=this.parseUnionMemberTypes();if(O.length===0&&W.length===0)throw this.unexpected();return this.node(D,{kind:f.Kind.UNION_TYPE_EXTENSION,name:P,directives:O,types:W})}parseEnumTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let P=this.parseName(),O=this.parseConstDirectives(),W=this.parseEnumValuesDefinition();if(O.length===0&&W.length===0)throw this.unexpected();return this.node(D,{kind:f.Kind.ENUM_TYPE_EXTENSION,name:P,directives:O,values:W})}parseInputObjectTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let P=this.parseName(),O=this.parseConstDirectives(),W=this.parseInputFieldsDefinition();if(O.length===0&&W.length===0)throw this.unexpected();return this.node(D,{kind:f.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:P,directives:O,fields:W})}parseDirectiveDefinition(){let D=this._lexer.token,P=this.parseDescription();this.expectKeyword("directive"),this.expectToken(u.TokenKind.AT);let O=this.parseName(),W=this.parseArgumentDefs(),E=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let F=this.parseDirectiveLocations();return this.node(D,{kind:f.Kind.DIRECTIVE_DEFINITION,description:P,name:O,arguments:W,repeatable:E,locations:F})}parseDirectiveLocations(){return this.delimitedMany(u.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let D=this._lexer.token,P=this.parseName();if(Object.prototype.hasOwnProperty.call(iZ.DirectiveLocation,P.value))return P;throw this.unexpected(D)}node(D,P){if(this._options.noLocation!==!0)P.loc=new A8.Location(D,this._lexer.lastToken,this._lexer.source);return P}peek(D){return this._lexer.token.kind===D}expectToken(D){let P=this._lexer.token;if(P.kind===D)return this.advanceLexer(),P;throw W2.syntaxError(this._lexer.source,P.start,`Expected ${sE(D)}, found ${uP(P)}.`)}expectOptionalToken(D){if(this._lexer.token.kind===D)return this.advanceLexer(),!0;return!1}expectKeyword(D){let P=this._lexer.token;if(P.kind===u.TokenKind.NAME&&P.value===D)this.advanceLexer();else throw W2.syntaxError(this._lexer.source,P.start,`Expected "${D}", found ${uP(P)}.`)}expectOptionalKeyword(D){let P=this._lexer.token;if(P.kind===u.TokenKind.NAME&&P.value===D)return this.advanceLexer(),!0;return!1}unexpected(D){let P=D!==null&&D!==void 0?D:this._lexer.token;return W2.syntaxError(this._lexer.source,P.start,`Unexpected ${uP(P)}.`)}any(D,P,O){this.expectToken(D);let W=[];while(!this.expectOptionalToken(O))W.push(P.call(this));return W}optionalMany(D,P,O){if(this.expectOptionalToken(D)){let W=[];do W.push(P.call(this));while(!this.expectOptionalToken(O));return W}return[]}many(D,P,O){this.expectToken(D);let W=[];do W.push(P.call(this));while(!this.expectOptionalToken(O));return W}delimitedMany(D,P){this.expectOptionalToken(D);let O=[];do O.push(P.call(this));while(this.expectOptionalToken(D));return O}advanceLexer(){let{maxTokens:D}=this._options,P=this._lexer.advance();if(D!==void 0&&P.kind!==u.TokenKind.EOF){if(++this._tokenCounter,this._tokenCounter>D)throw W2.syntaxError(this._lexer.source,P.start,`Document contains more that ${D} tokens. Parsing aborted.`)}}}iE.Parser=V2;function uP(D){let P=D.value;return sE(D.kind)+(P!=null?` "${P}"`:"")}function sE(D){return tE.isPunctuatorTokenKind(D)?`"${D}"`:D}});var g0=J((eE)=>{Object.defineProperty(eE,"__esModule",{value:!0});eE.didYouMean=SH;var RH=5;function SH(D,P){let[O,W]=P?[D,P]:[void 0,D],E=" Did you mean ";if(O)E+=O+" ";let F=W.map((L)=>`"${L}"`);switch(F.length){case 0:return"";case 1:return E+F[0]+"?";case 2:return E+F[0]+" or "+F[1]+"?"}let R=F.slice(0,RH),S=R.pop();return E+R.join(", ")+", or "+S+"?"}});var PF=J((DF)=>{Object.defineProperty(DF,"__esModule",{value:!0});DF.identityFunc=BH;function BH(D){return D}});var y0=J((OF)=>{Object.defineProperty(OF,"__esModule",{value:!0});OF.keyMap=ZH;function ZH(D,P){let O=Object.create(null);for(let W of D)O[P(W)]=W;return O}});var C8=J((WF)=>{Object.defineProperty(WF,"__esModule",{value:!0});WF.keyValMap=AH;function AH(D,P,O){let W=Object.create(null);for(let E of D)W[P(E)]=O(E);return W}});var I1=J((EF)=>{Object.defineProperty(EF,"__esModule",{value:!0});EF.mapValue=JH;function JH(D,P){let O=Object.create(null);for(let W of Object.keys(D))O[W]=P(D[W],W);return O}});var J8=J((FF)=>{Object.defineProperty(FF,"__esModule",{value:!0});FF.naturalCompare=XH;function XH(D,P){let O=0,W=0;while(O<D.length&&W<P.length){let E=D.charCodeAt(O),F=P.charCodeAt(W);if(IP(E)&&IP(F)){let R=0;do++O,R=R*10+E-Q1,E=D.charCodeAt(O);while(IP(E)&&R>0);let S=0;do++W,S=S*10+F-Q1,F=P.charCodeAt(W);while(IP(F)&&S>0);if(R<S)return-1;if(R>S)return 1}else{if(E<F)return-1;if(E>F)return 1;++O,++W}}return D.length-P.length}var Q1=48,qH=57;function IP(D){return!isNaN(D)&&Q1<=D&&D<=qH}});var m0=J((LF)=>{Object.defineProperty(LF,"__esModule",{value:!0});LF.suggestionList=uH;var GH=J8();function uH(D,P){let O=Object.create(null),W=new SF(D),E=Math.floor(D.length*0.4)+1;for(let F of P){let R=W.measure(F,E);if(R!==void 0)O[F]=R}return Object.keys(O).sort((F,R)=>{let S=O[F]-O[R];return S!==0?S:GH.naturalCompare(F,R)})}class SF{constructor(D){this._input=D,this._inputLowerCase=D.toLowerCase(),this._inputArray=RF(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,P){if(this._input===D)return 0;let O=D.toLowerCase();if(this._inputLowerCase===O)return 1;let W=RF(O),E=this._inputArray;if(W.length<E.length){let B=W;W=E,E=B}let F=W.length,R=E.length;if(F-R>P)return;let S=this._rows;for(let B=0;B<=R;B++)S[0][B]=B;for(let B=1;B<=F;B++){let Y=S[(B-1)%3],Z=S[B%3],H=Z[0]=B;for(let C=1;C<=R;C++){let X=W[B-1]===E[C-1]?0:1,I=Math.min(Y[C]+1,Z[C-1]+1,Y[C-1]+X);if(B>1&&C>1&&W[B-1]===E[C-2]&&W[B-2]===E[C-1]){let $=S[(B-2)%3][C-2];I=Math.min(I,$+1)}if(I<H)H=I;Z[C]=I}if(H>P)return}let L=S[F%3][R];return L<=P?L:void 0}}function RF(D){let P=D.length,O=new Array(P);for(let W=0;W<P;++W)O[W]=D.charCodeAt(W);return O}});var QP=J((BF)=>{Object.defineProperty(BF,"__esModule",{value:!0});BF.toObjMap=QH;function QH(D){if(D==null)return Object.create(null);if(Object.getPrototypeOf(D)===null)return D;let P=Object.create(null);for(let[O,W]of Object.entries(D))P[O]=W;return P}});var ZF=J((YF)=>{Object.defineProperty(YF,"__esModule",{value:!0});YF.printString=bH;function bH(D){return`"${D.replace(wH,KH)}"`}var wH=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function KH(D){return jH[D.charCodeAt(0)]}var jH=["\\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 E2=J((AF)=>{Object.defineProperty(AF,"__esModule",{value:!0});AF.BREAK=void 0;AF.getEnterLeaveForKind=MP;AF.getVisitFn=kH;AF.visit=TH;AF.visitInParallel=NH;var VH=ND(),_H=i(),M1=C0(),HF=c(),T2=Object.freeze({});AF.BREAK=T2;function TH(D,P,O=M1.QueryDocumentKeys){let W=new Map;for(let x of Object.values(HF.Kind))W.set(x,MP(P,x));let E=void 0,F=Array.isArray(D),R=[D],S=-1,L=[],B=D,Y=void 0,Z=void 0,H=[],C=[];do{S++;let x=S===R.length,y=x&&L.length!==0;if(x){if(Y=C.length===0?void 0:H[H.length-1],B=Z,Z=C.pop(),y)if(F){B=B.slice();let DD=0;for(let[N,ED]of L){let JD=N-DD;if(ED===null)B.splice(JD,1),DD++;else B[JD]=ED}}else{B=Object.defineProperties({},Object.getOwnPropertyDescriptors(B));for(let[DD,N]of L)B[DD]=N}S=E.index,R=E.keys,L=E.edits,F=E.inArray,E=E.prev}else if(Z){if(Y=F?S:R[S],B=Z[Y],B===null||B===void 0)continue;H.push(Y)}let V;if(!Array.isArray(B)){var X,I;M1.isNode(B)||VH.devAssert(!1,`Invalid AST Node: ${_H.inspect(B)}.`);let DD=x?(X=W.get(B.kind))===null||X===void 0?void 0:X.leave:(I=W.get(B.kind))===null||I===void 0?void 0:I.enter;if(V=DD===null||DD===void 0?void 0:DD.call(P,B,Y,Z,H,C),V===T2)break;if(V===!1){if(!x){H.pop();continue}}else if(V!==void 0){if(L.push([Y,V]),!x)if(M1.isNode(V))B=V;else{H.pop();continue}}}if(V===void 0&&y)L.push([Y,B]);if(x)H.pop();else{var $;if(E={inArray:F,index:S,keys:R,edits:L,prev:E},F=Array.isArray(B),R=F?B:($=O[B.kind])!==null&&$!==void 0?$:[],S=-1,L=[],Z)C.push(Z);Z=B}}while(E!==void 0);if(L.length!==0)return L[L.length-1][1];return D}function NH(D){let P=new Array(D.length).fill(null),O=Object.create(null);for(let W of Object.values(HF.Kind)){let E=!1,F=new Array(D.length).fill(void 0),R=new Array(D.length).fill(void 0);for(let L=0;L<D.length;++L){let{enter:B,leave:Y}=MP(D[L],W);E||(E=B!=null||Y!=null),F[L]=B,R[L]=Y}if(!E)continue;let S={enter(...L){let B=L[0];for(let Z=0;Z<D.length;Z++)if(P[Z]===null){var Y;let H=(Y=F[Z])===null||Y===void 0?void 0:Y.apply(D[Z],L);if(H===!1)P[Z]=B;else if(H===T2)P[Z]=T2;else if(H!==void 0)return H}},leave(...L){let B=L[0];for(let Z=0;Z<D.length;Z++)if(P[Z]===null){var Y;let H=(Y=R[Z])===null||Y===void 0?void 0:Y.apply(D[Z],L);if(H===T2)P[Z]=T2;else if(H!==void 0&&H!==!1)return H}else if(P[Z]===B)P[Z]=null}};O[W]=S}return O}function MP(D,P){let O=D[P];if(typeof O==="object")return O;else if(typeof O==="function")return{enter:O,leave:void 0};return{enter:D.enter,leave:D.leave}}function kH(D,P,O){let{enter:W,leave:E}=MP(D,P);return O?E:W}});var mD=J((UF)=>{Object.defineProperty(UF,"__esModule",{value:!0});UF.print=cH;var gH=B8(),yH=ZF(),mH=E2();function cH(D){return mH.visit(D,rH)}var lH=80,rH={Name:{leave:(D)=>D.value},Variable:{leave:(D)=>"$"+D.name},Document:{leave:(D)=>b(D.definitions,"\n\n")},OperationDefinition:{leave(D){let P=m("(",b(D.variableDefinitions,", "),")"),O=b([D.operation,b([D.name,P]),b(D.directives," ")]," ");return(O==="query"?"":O+" ")+D.selectionSet}},VariableDefinition:{leave:({variable:D,type:P,defaultValue:O,directives:W})=>D+": "+P+m(" = ",O)+m(" ",b(W," "))},SelectionSet:{leave:({selections:D})=>F0(D)},Field:{leave({alias:D,name:P,arguments:O,directives:W,selectionSet:E}){let F=m("",D,": ")+P,R=F+m("(",b(O,", "),")");if(R.length>lH)R=F+m("(\n",bP(b(O,"\n")),"\n)");return b([R,b(W," "),E]," ")}},Argument:{leave:({name:D,value:P})=>D+": "+P},FragmentSpread:{leave:({name:D,directives:P})=>"..."+D+m(" ",b(P," "))},InlineFragment:{leave:({typeCondition:D,directives:P,selectionSet:O})=>b(["...",m("on ",D),b(P," "),O]," ")},FragmentDefinition:{leave:({name:D,typeCondition:P,variableDefinitions:O,directives:W,selectionSet:E})=>`fragment ${D}${m("(",b(O,", "),")")} on ${P} ${m("",b(W," ")," ")}`+E},IntValue:{leave:({value:D})=>D},FloatValue:{leave:({value:D})=>D},StringValue:{leave:({value:D,block:P})=>P?gH.printBlockString(D):yH.printString(D)},BooleanValue:{leave:({value:D})=>D?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:D})=>D},ListValue:{leave:({values:D})=>"["+b(D,", ")+"]"},ObjectValue:{leave:({fields:D})=>"{"+b(D,", ")+"}"},ObjectField:{leave:({name:D,value:P})=>D+": "+P},Directive:{leave:({name:D,arguments:P})=>"@"+D+m("(",b(P,", "),")")},NamedType:{leave:({name:D})=>D},ListType:{leave:({type:D})=>"["+D+"]"},NonNullType:{leave:({type:D})=>D+"!"},SchemaDefinition:{leave:({description:D,directives:P,operationTypes:O})=>m("",D,"\n")+b(["schema",b(P," "),F0(O)]," ")},OperationTypeDefinition:{leave:({operation:D,type:P})=>D+": "+P},ScalarTypeDefinition:{leave:({description:D,name:P,directives:O})=>m("",D,"\n")+b(["scalar",P,b(O," ")]," ")},ObjectTypeDefinition:{leave:({description:D,name:P,interfaces:O,directives:W,fields:E})=>m("",D,"\n")+b(["type",P,m("implements ",b(O," & ")),b(W," "),F0(E)]," ")},FieldDefinition:{leave:({description:D,name:P,arguments:O,type:W,directives:E})=>m("",D,"\n")+P+(JF(O)?m("(\n",bP(b(O,"\n")),"\n)"):m("(",b(O,", "),")"))+": "+W+m(" ",b(E," "))},InputValueDefinition:{leave:({description:D,name:P,type:O,defaultValue:W,directives:E})=>m("",D,"\n")+b([P+": "+O,m("= ",W),b(E," ")]," ")},InterfaceTypeDefinition:{leave:({description:D,name:P,interfaces:O,directives:W,fields:E})=>m("",D,"\n")+b(["interface",P,m("implements ",b(O," & ")),b(W," "),F0(E)]," ")},UnionTypeDefinition:{leave:({description:D,name:P,directives:O,types:W})=>m("",D,"\n")+b(["union",P,b(O," "),m("= ",b(W," | "))]," ")},EnumTypeDefinition:{leave:({description:D,name:P,directives:O,values:W})=>m("",D,"\n")+b(["enum",P,b(O," "),F0(W)]," ")},EnumValueDefinition:{leave:({description:D,name:P,directives:O})=>m("",D,"\n")+b([P,b(O," ")]," ")},InputObjectTypeDefinition:{leave:({description:D,name:P,directives:O,fields:W})=>m("",D,"\n")+b(["input",P,b(O," "),F0(W)]," ")},DirectiveDefinition:{leave:({description:D,name:P,arguments:O,repeatable:W,locations:E})=>m("",D,"\n")+"directive @"+P+(JF(O)?m("(\n",bP(b(O,"\n")),"\n)"):m("(",b(O,", "),")"))+(W?" repeatable":"")+" on "+b(E," | ")},SchemaExtension:{leave:({directives:D,operationTypes:P})=>b(["extend schema",b(D," "),F0(P)]," ")},ScalarTypeExtension:{leave:({name:D,directives:P})=>b(["extend scalar",D,b(P," ")]," ")},ObjectTypeExtension:{leave:({name:D,interfaces:P,directives:O,fields:W})=>b(["extend type",D,m("implements ",b(P," & ")),b(O," "),F0(W)]," ")},InterfaceTypeExtension:{leave:({name:D,interfaces:P,directives:O,fields:W})=>b(["extend interface",D,m("implements ",b(P," & ")),b(O," "),F0(W)]," ")},UnionTypeExtension:{leave:({name:D,directives:P,types:O})=>b(["extend union",D,b(P," "),m("= ",b(O," | "))]," ")},EnumTypeExtension:{leave:({name:D,directives:P,values:O})=>b(["extend enum",D,b(P," "),F0(O)]," ")},InputObjectTypeExtension:{leave:({name:D,directives:P,fields:O})=>b(["extend input",D,b(P," "),F0(O)]," ")}};function b(D,P=""){var O;return(O=D===null||D===void 0?void 0:D.filter((W)=>W).join(P))!==null&&O!==void 0?O:""}function F0(D){return m("{\n",bP(b(D,"\n")),"\n}")}function m(D,P,O=""){return P!=null&&P!==""?D+P+O:""}function bP(D){return m(" ",D.replace(/\n/g,"\n "))}function JF(D){var P;return(P=D===null||D===void 0?void 0:D.some((O)=>O.includes("\n")))!==null&&P!==void 0?P:!1}});var w1=J((XF)=>{Object.defineProperty(XF,"__esModule",{value:!0});XF.valueFromASTUntyped=b1;var pH=C8(),$0=c();function b1(D,P){switch(D.kind){case $0.Kind.NULL:return null;case $0.Kind.INT:return parseInt(D.value,10);case $0.Kind.FLOAT:return parseFloat(D.value);case $0.Kind.STRING:case $0.Kind.ENUM:case $0.Kind.BOOLEAN:return D.value;case $0.Kind.LIST:return D.values.map((O)=>b1(O,P));case $0.Kind.OBJECT:return pH.keyValMap(D.fields,(O)=>O.name.value,(O)=>b1(O.value,P));case $0.Kind.VARIABLE:return P===null||P===void 0?void 0:P[D.name.value]}}});var U8=J((uF)=>{Object.defineProperty(uF,"__esModule",{value:!0});uF.assertEnumValueName=aH;uF.assertName=GF;var qF=ND(),wP=T(),zF=UP();function GF(D){if(D!=null||qF.devAssert(!1,"Must provide name."),typeof D==="string"||qF.devAssert(!1,"Expected name to be a string."),D.length===0)throw new wP.GraphQLError("Expected name to be a non-empty string.");for(let P=1;P<D.length;++P)if(!zF.isNameContinue(D.charCodeAt(P)))throw new wP.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${D}" does not.`);if(!zF.isNameStart(D.charCodeAt(0)))throw new wP.GraphQLError(`Names must start with [_a-zA-Z] but "${D}" does not.`);return D}function aH(D){if(D==="true"||D==="false"||D==="null")throw new wP.GraphQLError(`Enum values cannot be named: ${D}`);return GF(D)}});var l=J((xF)=>{Object.defineProperty(xF,"__esModule",{value:!0});xF.GraphQLUnionType=xF.GraphQLScalarType=xF.GraphQLObjectType=xF.GraphQLNonNull=xF.GraphQLList=xF.GraphQLInterfaceType=xF.GraphQLInputObjectType=xF.GraphQLEnumType=void 0;xF.argsToArgsConfig=kF;xF.assertAbstractType=UA;xF.assertCompositeType=JA;xF.assertEnumType=LA;xF.assertInputObjectType=BA;xF.assertInputType=HA;xF.assertInterfaceType=RA;xF.assertLeafType=CA;xF.assertListType=YA;xF.assertNamedType=GA;xF.assertNonNullType=ZA;xF.assertNullableType=qA;xF.assertObjectType=FA;xF.assertOutputType=AA;xF.assertScalarType=EA;xF.assertType=WA;xF.assertUnionType=SA;xF.assertWrappingType=XA;xF.defineArguments=TF;xF.getNamedType=uA;xF.getNullableType=zA;xF.isAbstractType=jF;xF.isCompositeType=KF;xF.isEnumType=L2;xF.isInputObjectType=q8;xF.isInputType=K1;xF.isInterfaceType=R2;xF.isLeafType=wF;xF.isListType=VP;xF.isNamedType=$F;xF.isNonNullType=l0;xF.isNullableType=_1;xF.isObjectType=k2;xF.isOutputType=j1;xF.isRequiredArgument=IA;xF.isRequiredInputField=bA;xF.isScalarType=F2;xF.isType=$P;xF.isUnionType=S2;xF.isWrappingType=z8;xF.resolveObjMapThunk=N1;xF.resolveReadonlyArrayThunk=T1;var ID=ND(),iH=g0(),IF=PF(),PD=i(),c0=H8(),oH=A0(),eH=y0(),bF=C8(),jP=I1(),DA=m0(),J0=QP(),X8=T(),PA=c(),QF=mD(),OA=w1(),U0=U8();function $P(D){return F2(D)||k2(D)||R2(D)||S2(D)||L2(D)||q8(D)||VP(D)||l0(D)}function WA(D){if(!$P(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL type.`);return D}function F2(D){return c0.instanceOf(D,k1)}function EA(D){if(!F2(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL Scalar type.`);return D}function k2(D){return c0.instanceOf(D,x1)}function FA(D){if(!k2(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL Object type.`);return D}function R2(D){return c0.instanceOf(D,f1)}function RA(D){if(!R2(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL Interface type.`);return D}function S2(D){return c0.instanceOf(D,v1)}function SA(D){if(!S2(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL Union type.`);return D}function L2(D){return c0.instanceOf(D,h1)}function LA(D){if(!L2(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL Enum type.`);return D}function q8(D){return c0.instanceOf(D,g1)}function BA(D){if(!q8(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL Input Object type.`);return D}function VP(D){return c0.instanceOf(D,$1)}function YA(D){if(!VP(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL List type.`);return D}function l0(D){return c0.instanceOf(D,V1)}function ZA(D){if(!l0(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL Non-Null type.`);return D}function K1(D){return F2(D)||L2(D)||q8(D)||z8(D)&&K1(D.ofType)}function HA(D){if(!K1(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL input type.`);return D}function j1(D){return F2(D)||k2(D)||R2(D)||S2(D)||L2(D)||z8(D)&&j1(D.ofType)}function AA(D){if(!j1(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL output type.`);return D}function wF(D){return F2(D)||L2(D)}function CA(D){if(!wF(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL leaf type.`);return D}function KF(D){return k2(D)||R2(D)||S2(D)}function JA(D){if(!KF(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL composite type.`);return D}function jF(D){return R2(D)||S2(D)}function UA(D){if(!jF(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL abstract type.`);return D}class $1{constructor(D){$P(D)||ID.devAssert(!1,`Expected ${PD.inspect(D)} to be a GraphQL type.`),this.ofType=D}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}xF.GraphQLList=$1;class V1{constructor(D){_1(D)||ID.devAssert(!1,`Expected ${PD.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()}}xF.GraphQLNonNull=V1;function z8(D){return VP(D)||l0(D)}function XA(D){if(!z8(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL wrapping type.`);return D}function _1(D){return $P(D)&&!l0(D)}function qA(D){if(!_1(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL nullable type.`);return D}function zA(D){if(D)return l0(D)?D.ofType:D}function $F(D){return F2(D)||k2(D)||R2(D)||S2(D)||L2(D)||q8(D)}function GA(D){if(!$F(D))throw new Error(`Expected ${PD.inspect(D)} to be a GraphQL named type.`);return D}function uA(D){if(D){let P=D;while(z8(P))P=P.ofType;return P}}function T1(D){return typeof D==="function"?D():D}function N1(D){return typeof D==="function"?D():D}class k1{constructor(D){var P,O,W,E;let F=(P=D.parseValue)!==null&&P!==void 0?P:IF.identityFunc;if(this.name=U0.assertName(D.name),this.description=D.description,this.specifiedByURL=D.specifiedByURL,this.serialize=(O=D.serialize)!==null&&O!==void 0?O:IF.identityFunc,this.parseValue=F,this.parseLiteral=(W=D.parseLiteral)!==null&&W!==void 0?W:(R,S)=>F(OA.valueFromASTUntyped(R,S)),this.extensions=J0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(E=D.extensionASTNodes)!==null&&E!==void 0?E:[],D.specifiedByURL==null||typeof D.specifiedByURL==="string"||ID.devAssert(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${PD.inspect(D.specifiedByURL)}.`),D.serialize==null||typeof D.serialize==="function"||ID.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"||ID.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()}}xF.GraphQLScalarType=k1;class x1{constructor(D){var P;this.name=U0.assertName(D.name),this.description=D.description,this.isTypeOf=D.isTypeOf,this.extensions=J0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(P=D.extensionASTNodes)!==null&&P!==void 0?P:[],this._fields=()=>_F(D),this._interfaces=()=>VF(D),D.isTypeOf==null||typeof D.isTypeOf==="function"||ID.devAssert(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${PD.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:NF(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}xF.GraphQLObjectType=x1;function VF(D){var P;let O=T1((P=D.interfaces)!==null&&P!==void 0?P:[]);return Array.isArray(O)||ID.devAssert(!1,`${D.name} interfaces must be an Array or a function which returns an Array.`),O}function _F(D){let P=N1(D.fields);return N2(P)||ID.devAssert(!1,`${D.name} fields must be an object with field names as keys or a function which returns such an object.`),jP.mapValue(P,(O,W)=>{var E;N2(O)||ID.devAssert(!1,`${D.name}.${W} field config must be an object.`),O.resolve==null||typeof O.resolve==="function"||ID.devAssert(!1,`${D.name}.${W} field resolver must be a function if provided, but got: ${PD.inspect(O.resolve)}.`);let F=(E=O.args)!==null&&E!==void 0?E:{};return N2(F)||ID.devAssert(!1,`${D.name}.${W} args must be an object with argument names as keys.`),{name:U0.assertName(W),description:O.description,type:O.type,args:TF(F),resolve:O.resolve,subscribe:O.subscribe,deprecationReason:O.deprecationReason,extensions:J0.toObjMap(O.extensions),astNode:O.astNode}})}function TF(D){return Object.entries(D).map(([P,O])=>({name:U0.assertName(P),description:O.description,type:O.type,defaultValue:O.defaultValue,deprecationReason:O.deprecationReason,extensions:J0.toObjMap(O.extensions),astNode:O.astNode}))}function N2(D){return oH.isObjectLike(D)&&!Array.isArray(D)}function NF(D){return jP.mapValue(D,(P)=>({description:P.description,type:P.type,args:kF(P.args),resolve:P.resolve,subscribe:P.subscribe,deprecationReason:P.deprecationReason,extensions:P.extensions,astNode:P.astNode}))}function kF(D){return bF.keyValMap(D,(P)=>P.name,(P)=>({description:P.description,type:P.type,defaultValue:P.defaultValue,deprecationReason:P.deprecationReason,extensions:P.extensions,astNode:P.astNode}))}function IA(D){return l0(D.type)&&D.defaultValue===void 0}class f1{constructor(D){var P;this.name=U0.assertName(D.name),this.description=D.description,this.resolveType=D.resolveType,this.extensions=J0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(P=D.extensionASTNodes)!==null&&P!==void 0?P:[],this._fields=_F.bind(void 0,D),this._interfaces=VF.bind(void 0,D),D.resolveType==null||typeof D.resolveType==="function"||ID.devAssert(!1,`${this.name} must provide "resolveType" as a function, but got: ${PD.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:NF(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}xF.GraphQLInterfaceType=f1;class v1{constructor(D){var P;this.name=U0.assertName(D.name),this.description=D.description,this.resolveType=D.resolveType,this.extensions=J0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(P=D.extensionASTNodes)!==null&&P!==void 0?P:[],this._types=QA.bind(void 0,D),D.resolveType==null||typeof D.resolveType==="function"||ID.devAssert(!1,`${this.name} must provide "resolveType" as a function, but got: ${PD.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()}}xF.GraphQLUnionType=v1;function QA(D){let P=T1(D.types);return Array.isArray(P)||ID.devAssert(!1,`Must provide Array of types or a function which returns such an array for Union ${D.name}.`),P}class h1{constructor(D){var P;this.name=U0.assertName(D.name),this.description=D.description,this.extensions=J0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(P=D.extensionASTNodes)!==null&&P!==void 0?P:[],this._values=typeof D.values==="function"?D.values:MF(this.name,D.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){if(typeof this._values==="function")this._values=MF(this.name,this._values());return this._values}getValue(D){if(this._nameLookup===null)this._nameLookup=eH.keyMap(this.getValues(),(P)=>P.name);return this._nameLookup[D]}serialize(D){if(this._valueLookup===null)this._valueLookup=new Map(this.getValues().map((O)=>[O.value,O]));let P=this._valueLookup.get(D);if(P===void 0)throw new X8.GraphQLError(`Enum "${this.name}" cannot represent value: ${PD.inspect(D)}`);return P.name}parseValue(D){if(typeof D!=="string"){let O=PD.inspect(D);throw new X8.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${O}.`+KP(this,O))}let P=this.getValue(D);if(P==null)throw new X8.GraphQLError(`Value "${D}" does not exist in "${this.name}" enum.`+KP(this,D));return P.value}parseLiteral(D,P){if(D.kind!==PA.Kind.ENUM){let W=QF.print(D);throw new X8.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${W}.`+KP(this,W),{nodes:D})}let O=this.getValue(D.value);if(O==null){let W=QF.print(D);throw new X8.GraphQLError(`Value "${W}" does not exist in "${this.name}" enum.`+KP(this,W),{nodes:D})}return O.value}toConfig(){let D=bF.keyValMap(this.getValues(),(P)=>P.name,(P)=>({description:P.description,value:P.value,deprecationReason:P.deprecationReason,extensions:P.extensions,astNode:P.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()}}xF.GraphQLEnumType=h1;function KP(D,P){let O=D.getValues().map((E)=>E.name),W=DA.suggestionList(P,O);return iH.didYouMean("the enum value",W)}function MF(D,P){return N2(P)||ID.devAssert(!1,`${D} values must be an object with value names as keys.`),Object.entries(P).map(([O,W])=>{return N2(W)||ID.devAssert(!1,`${D}.${O} must refer to an object with a "value" key representing an internal value but got: ${PD.inspect(W)}.`),{name:U0.assertEnumValueName(O),description:W.description,value:W.value!==void 0?W.value:O,deprecationReason:W.deprecationReason,extensions:J0.toObjMap(W.extensions),astNode:W.astNode}})}class g1{constructor(D){var P,O;this.name=U0.assertName(D.name),this.description=D.description,this.extensions=J0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(P=D.extensionASTNodes)!==null&&P!==void 0?P:[],this.isOneOf=(O=D.isOneOf)!==null&&O!==void 0?O:!1,this._fields=MA.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=jP.mapValue(this.getFields(),(P)=>({description:P.description,type:P.type,defaultValue:P.defaultValue,deprecationReason:P.deprecationReason,extensions:P.extensions,astNode:P.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()}}xF.GraphQLInputObjectType=g1;function MA(D){let P=N1(D.fields);return N2(P)||ID.devAssert(!1,`${D.name} fields must be an object with field names as keys or a function which returns such an object.`),jP.mapValue(P,(O,W)=>{return!("resolve"in O)||ID.devAssert(!1,`${D.name}.${W} field has a resolve property, but Input Types cannot define resolvers.`),{name:U0.assertName(W),description:O.description,type:O.type,defaultValue:O.defaultValue,deprecationReason:O.deprecationReason,extensions:J0.toObjMap(O.extensions),astNode:O.astNode}})}function bA(D){return l0(D.type)&&D.defaultValue===void 0}});var G8=J((vF)=>{Object.defineProperty(vF,"__esModule",{value:!0});vF.doTypesOverlap=uC;vF.isEqualType=y1;vF.isTypeSubTypeOf=_P;var $D=l();function y1(D,P){if(D===P)return!0;if($D.isNonNullType(D)&&$D.isNonNullType(P))return y1(D.ofType,P.ofType);if($D.isListType(D)&&$D.isListType(P))return y1(D.ofType,P.ofType);return!1}function _P(D,P,O){if(P===O)return!0;if($D.isNonNullType(O)){if($D.isNonNullType(P))return _P(D,P.ofType,O.ofType);return!1}if($D.isNonNullType(P))return _P(D,P.ofType,O);if($D.isListType(O)){if($D.isListType(P))return _P(D,P.ofType,O.ofType);return!1}if($D.isListType(P))return!1;return $D.isAbstractType(O)&&($D.isInterfaceType(P)||$D.isObjectType(P))&&D.isSubType(O,P)}function uC(D,P,O){if(P===O)return!0;if($D.isAbstractType(P)){if($D.isAbstractType(O))return D.getPossibleTypes(P).some((W)=>D.isSubType(O,W));return D.isSubType(P,O)}if($D.isAbstractType(O))return D.isSubType(O,P);return!1}});var X0=J((dF)=>{Object.defineProperty(dF,"__esModule",{value:!0});dF.GraphQLString=dF.GraphQLInt=dF.GraphQLID=dF.GraphQLFloat=dF.GraphQLBoolean=dF.GRAPHQL_MIN_INT=dF.GRAPHQL_MAX_INT=void 0;dF.isSpecifiedScalarType=bC;dF.specifiedScalarTypes=void 0;var R0=i(),hF=A0(),QD=T(),B2=c(),u8=mD(),I8=l(),TP=2147483647;dF.GRAPHQL_MAX_INT=TP;var NP=-2147483648;dF.GRAPHQL_MIN_INT=NP;var gF=new I8.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 P=Q8(D);if(typeof P==="boolean")return P?1:0;let O=P;if(typeof P==="string"&&P!=="")O=Number(P);if(typeof O!=="number"||!Number.isInteger(O))throw new QD.GraphQLError(`Int cannot represent non-integer value: ${R0.inspect(P)}`);if(O>TP||O<NP)throw new QD.GraphQLError("Int cannot represent non 32-bit signed integer value: "+R0.inspect(P));return O},parseValue(D){if(typeof D!=="number"||!Number.isInteger(D))throw new QD.GraphQLError(`Int cannot represent non-integer value: ${R0.inspect(D)}`);if(D>TP||D<NP)throw new QD.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${D}`);return D},parseLiteral(D){if(D.kind!==B2.Kind.INT)throw new QD.GraphQLError(`Int cannot represent non-integer value: ${u8.print(D)}`,{nodes:D});let P=parseInt(D.value,10);if(P>TP||P<NP)throw new QD.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${D.value}`,{nodes:D});return P}});dF.GraphQLInt=gF;var yF=new I8.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 P=Q8(D);if(typeof P==="boolean")return P?1:0;let O=P;if(typeof P==="string"&&P!=="")O=Number(P);if(typeof O!=="number"||!Number.isFinite(O))throw new QD.GraphQLError(`Float cannot represent non numeric value: ${R0.inspect(P)}`);return O},parseValue(D){if(typeof D!=="number"||!Number.isFinite(D))throw new QD.GraphQLError(`Float cannot represent non numeric value: ${R0.inspect(D)}`);return D},parseLiteral(D){if(D.kind!==B2.Kind.FLOAT&&D.kind!==B2.Kind.INT)throw new QD.GraphQLError(`Float cannot represent non numeric value: ${u8.print(D)}`,D);return parseFloat(D.value)}});dF.GraphQLFloat=yF;var mF=new I8.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 P=Q8(D);if(typeof P==="string")return P;if(typeof P==="boolean")return P?"true":"false";if(typeof P==="number"&&Number.isFinite(P))return P.toString();throw new QD.GraphQLError(`String cannot represent value: ${R0.inspect(D)}`)},parseValue(D){if(typeof D!=="string")throw new QD.GraphQLError(`String cannot represent a non string value: ${R0.inspect(D)}`);return D},parseLiteral(D){if(D.kind!==B2.Kind.STRING)throw new QD.GraphQLError(`String cannot represent a non string value: ${u8.print(D)}`,{nodes:D});return D.value}});dF.GraphQLString=mF;var cF=new I8.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(D){let P=Q8(D);if(typeof P==="boolean")return P;if(Number.isFinite(P))return P!==0;throw new QD.GraphQLError(`Boolean cannot represent a non boolean value: ${R0.inspect(P)}`)},parseValue(D){if(typeof D!=="boolean")throw new QD.GraphQLError(`Boolean cannot represent a non boolean value: ${R0.inspect(D)}`);return D},parseLiteral(D){if(D.kind!==B2.Kind.BOOLEAN)throw new QD.GraphQLError(`Boolean cannot represent a non boolean value: ${u8.print(D)}`,{nodes:D});return D.value}});dF.GraphQLBoolean=cF;var lF=new I8.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 P=Q8(D);if(typeof P==="string")return P;if(Number.isInteger(P))return String(P);throw new QD.GraphQLError(`ID cannot represent value: ${R0.inspect(D)}`)},parseValue(D){if(typeof D==="string")return D;if(typeof D==="number"&&Number.isInteger(D))return D.toString();throw new QD.GraphQLError(`ID cannot represent value: ${R0.inspect(D)}`)},parseLiteral(D){if(D.kind!==B2.Kind.STRING&&D.kind!==B2.Kind.INT)throw new QD.GraphQLError("ID cannot represent a non-string and non-integer value: "+u8.print(D),{nodes:D});return D.value}});dF.GraphQLID=lF;var rF=Object.freeze([mF,gF,yF,cF,lF]);dF.specifiedScalarTypes=rF;function bC(D){return rF.some(({name:P})=>D.name===P)}function Q8(D){if(hF.isObjectLike(D)){if(typeof D.valueOf==="function"){let P=D.valueOf();if(!hF.isObjectLike(P))return P}if(typeof D.toJSON==="function")return D.toJSON()}return D}});var xD=J((W5)=>{Object.defineProperty(W5,"__esModule",{value:!0});W5.GraphQLSpecifiedByDirective=W5.GraphQLSkipDirective=W5.GraphQLOneOfDirective=W5.GraphQLIncludeDirective=W5.GraphQLDirective=W5.GraphQLDeprecatedDirective=W5.DEFAULT_DEPRECATION_REASON=void 0;W5.assertDirective=hC;W5.isDirective=tF;W5.isSpecifiedDirective=gC;W5.specifiedDirectives=void 0;var aF=ND(),NC=i(),kC=H8(),xC=A0(),fC=QP(),rD=j2(),vC=U8(),M8=l(),kP=X0();function tF(D){return kC.instanceOf(D,r0)}function hC(D){if(!tF(D))throw new Error(`Expected ${NC.inspect(D)} to be a GraphQL directive.`);return D}class r0{constructor(D){var P,O;this.name=vC.assertName(D.name),this.description=D.description,this.locations=D.locations,this.isRepeatable=(P=D.isRepeatable)!==null&&P!==void 0?P:!1,this.extensions=fC.toObjMap(D.extensions),this.astNode=D.astNode,Array.isArray(D.locations)||aF.devAssert(!1,`@${D.name} locations must be an Array.`);let W=(O=D.args)!==null&&O!==void 0?O:{};xC.isObjectLike(W)&&!Array.isArray(W)||aF.devAssert(!1,`@${D.name} args must be an object with argument names as keys.`),this.args=M8.defineArguments(W)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:M8.argsToArgsConfig(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}W5.GraphQLDirective=r0;var sF=new r0({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[rD.DirectiveLocation.FIELD,rD.DirectiveLocation.FRAGMENT_SPREAD,rD.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new M8.GraphQLNonNull(kP.GraphQLBoolean),description:"Included when true."}}});W5.GraphQLIncludeDirective=sF;var iF=new r0({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[rD.DirectiveLocation.FIELD,rD.DirectiveLocation.FRAGMENT_SPREAD,rD.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new M8.GraphQLNonNull(kP.GraphQLBoolean),description:"Skipped when true."}}});W5.GraphQLSkipDirective=iF;var oF="No longer supported";W5.DEFAULT_DEPRECATION_REASON=oF;var eF=new r0({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[rD.DirectiveLocation.FIELD_DEFINITION,rD.DirectiveLocation.ARGUMENT_DEFINITION,rD.DirectiveLocation.INPUT_FIELD_DEFINITION,rD.DirectiveLocation.ENUM_VALUE],args:{reason:{type:kP.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:oF}}});W5.GraphQLDeprecatedDirective=eF;var D5=new r0({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[rD.DirectiveLocation.SCALAR],args:{url:{type:new M8.GraphQLNonNull(kP.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});W5.GraphQLSpecifiedByDirective=D5;var P5=new r0({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[rD.DirectiveLocation.INPUT_OBJECT],args:{}});W5.GraphQLOneOfDirective=P5;var O5=Object.freeze([sF,iF,eF,D5,P5]);W5.specifiedDirectives=O5;function gC(D){return O5.some(({name:P})=>P===D.name)}});var xP=J((R5)=>{Object.defineProperty(R5,"__esModule",{value:!0});R5.isIterableObject=tC;function tC(D){return typeof D==="object"&&typeof(D===null||D===void 0?void 0:D[Symbol.iterator])==="function"}});var K8=J((B5)=>{Object.defineProperty(B5,"__esModule",{value:!0});B5.astFromValue=w8;var S5=i(),iC=jD(),oC=xP(),eC=A0(),dD=c(),b8=l(),DJ=X0();function w8(D,P){if(b8.isNonNullType(P)){let O=w8(D,P.ofType);if((O===null||O===void 0?void 0:O.kind)===dD.Kind.NULL)return null;return O}if(D===null)return{kind:dD.Kind.NULL};if(D===void 0)return null;if(b8.isListType(P)){let O=P.ofType;if(oC.isIterableObject(D)){let W=[];for(let E of D){let F=w8(E,O);if(F!=null)W.push(F)}return{kind:dD.Kind.LIST,values:W}}return w8(D,O)}if(b8.isInputObjectType(P)){if(!eC.isObjectLike(D))return null;let O=[];for(let W of Object.values(P.getFields())){let E=w8(D[W.name],W.type);if(E)O.push({kind:dD.Kind.OBJECT_FIELD,name:{kind:dD.Kind.NAME,value:W.name},value:E})}return{kind:dD.Kind.OBJECT,fields:O}}if(b8.isLeafType(P)){let O=P.serialize(D);if(O==null)return null;if(typeof O==="boolean")return{kind:dD.Kind.BOOLEAN,value:O};if(typeof O==="number"&&Number.isFinite(O)){let W=String(O);return L5.test(W)?{kind:dD.Kind.INT,value:W}:{kind:dD.Kind.FLOAT,value:W}}if(typeof O==="string"){if(b8.isEnumType(P))return{kind:dD.Kind.ENUM,value:O};if(P===DJ.GraphQLID&&L5.test(O))return{kind:dD.Kind.INT,value:O};return{kind:dD.Kind.STRING,value:O}}throw new TypeError(`Cannot convert value to AST: ${S5.inspect(O)}.`)}iC.invariant(!1,"Unexpected input type: "+S5.inspect(P))}var L5=/^-?(?:0|[1-9][0-9]*)$/});var nD=J((Z5)=>{Object.defineProperty(Z5,"__esModule",{value:!0});Z5.introspectionTypes=Z5.__TypeKind=Z5.__Type=Z5.__Schema=Z5.__InputValue=Z5.__Field=Z5.__EnumValue=Z5.__DirectiveLocation=Z5.__Directive=Z5.TypeNameMetaFieldDef=Z5.TypeMetaFieldDef=Z5.TypeKind=Z5.SchemaMetaFieldDef=void 0;Z5.isIntrospectionType=BJ;var OJ=i(),WJ=jD(),qD=j2(),EJ=mD(),FJ=K8(),M=l(),e=X0(),m1=new M.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:e.GraphQLString,resolve:(D)=>D.description},types:{description:"A list of all types supported by this server.",type:new M.GraphQLNonNull(new M.GraphQLList(new M.GraphQLNonNull(pD))),resolve(D){return Object.values(D.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new M.GraphQLNonNull(pD),resolve:(D)=>D.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:pD,resolve:(D)=>D.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:pD,resolve:(D)=>D.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new M.GraphQLNonNull(new M.GraphQLList(new M.GraphQLNonNull(c1))),resolve:(D)=>D.getDirectives()}})});Z5.__Schema=m1;var c1=new M.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new M.GraphQLNonNull(e.GraphQLString),resolve:(D)=>D.name},description:{type:e.GraphQLString,resolve:(D)=>D.description},isRepeatable:{type:new M.GraphQLNonNull(e.GraphQLBoolean),resolve:(D)=>D.isRepeatable},locations:{type:new M.GraphQLNonNull(new M.GraphQLList(new M.GraphQLNonNull(l1))),resolve:(D)=>D.locations},args:{type:new M.GraphQLNonNull(new M.GraphQLList(new M.GraphQLNonNull(j8))),args:{includeDeprecated:{type:e.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:P}){return P?D.args:D.args.filter((O)=>O.deprecationReason==null)}}})});Z5.__Directive=c1;var l1=new M.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:qD.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:qD.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:qD.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:qD.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:qD.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:qD.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:qD.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:qD.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:qD.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:qD.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:qD.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:qD.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:qD.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:qD.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:qD.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:qD.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:qD.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:qD.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:qD.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Z5.__DirectiveLocation=l1;var pD=new M.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 M.GraphQLNonNull(p1),resolve(D){if(M.isScalarType(D))return zD.SCALAR;if(M.isObjectType(D))return zD.OBJECT;if(M.isInterfaceType(D))return zD.INTERFACE;if(M.isUnionType(D))return zD.UNION;if(M.isEnumType(D))return zD.ENUM;if(M.isInputObjectType(D))return zD.INPUT_OBJECT;if(M.isListType(D))return zD.LIST;if(M.isNonNullType(D))return zD.NON_NULL;WJ.invariant(!1,`Unexpected type: "${OJ.inspect(D)}".`)}},name:{type:e.GraphQLString,resolve:(D)=>("name"in D)?D.name:void 0},description:{type:e.GraphQLString,resolve:(D)=>("description"in D)?D.description:void 0},specifiedByURL:{type:e.GraphQLString,resolve:(D)=>("specifiedByURL"in D)?D.specifiedByURL:void 0},fields:{type:new M.GraphQLList(new M.GraphQLNonNull(r1)),args:{includeDeprecated:{type:e.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:P}){if(M.isObjectType(D)||M.isInterfaceType(D)){let O=Object.values(D.getFields());return P?O:O.filter((W)=>W.deprecationReason==null)}}},interfaces:{type:new M.GraphQLList(new M.GraphQLNonNull(pD)),resolve(D){if(M.isObjectType(D)||M.isInterfaceType(D))return D.getInterfaces()}},possibleTypes:{type:new M.GraphQLList(new M.GraphQLNonNull(pD)),resolve(D,P,O,{schema:W}){if(M.isAbstractType(D))return W.getPossibleTypes(D)}},enumValues:{type:new M.GraphQLList(new M.GraphQLNonNull(d1)),args:{includeDeprecated:{type:e.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:P}){if(M.isEnumType(D)){let O=D.getValues();return P?O:O.filter((W)=>W.deprecationReason==null)}}},inputFields:{type:new M.GraphQLList(new M.GraphQLNonNull(j8)),args:{includeDeprecated:{type:e.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:P}){if(M.isInputObjectType(D)){let O=Object.values(D.getFields());return P?O:O.filter((W)=>W.deprecationReason==null)}}},ofType:{type:pD,resolve:(D)=>("ofType"in D)?D.ofType:void 0},isOneOf:{type:e.GraphQLBoolean,resolve:(D)=>{if(M.isInputObjectType(D))return D.isOneOf}}})});Z5.__Type=pD;var r1=new M.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 M.GraphQLNonNull(e.GraphQLString),resolve:(D)=>D.name},description:{type:e.GraphQLString,resolve:(D)=>D.description},args:{type:new M.GraphQLNonNull(new M.GraphQLList(new M.GraphQLNonNull(j8))),args:{includeDeprecated:{type:e.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:P}){return P?D.args:D.args.filter((O)=>O.deprecationReason==null)}},type:{type:new M.GraphQLNonNull(pD),resolve:(D)=>D.type},isDeprecated:{type:new M.GraphQLNonNull(e.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:e.GraphQLString,resolve:(D)=>D.deprecationReason}})});Z5.__Field=r1;var j8=new M.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 M.GraphQLNonNull(e.GraphQLString),resolve:(D)=>D.name},description:{type:e.GraphQLString,resolve:(D)=>D.description},type:{type:new M.GraphQLNonNull(pD),resolve:(D)=>D.type},defaultValue:{type:e.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(D){let{type:P,defaultValue:O}=D,W=FJ.astFromValue(O,P);return W?EJ.print(W):null}},isDeprecated:{type:new M.GraphQLNonNull(e.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:e.GraphQLString,resolve:(D)=>D.deprecationReason}})});Z5.__InputValue=j8;var d1=new M.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 M.GraphQLNonNull(e.GraphQLString),resolve:(D)=>D.name},description:{type:e.GraphQLString,resolve:(D)=>D.description},isDeprecated:{type:new M.GraphQLNonNull(e.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:e.GraphQLString,resolve:(D)=>D.deprecationReason}})});Z5.__EnumValue=d1;var zD;Z5.TypeKind=zD;(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"})(zD||(Z5.TypeKind=zD={}));var p1=new M.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:zD.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:zD.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:zD.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:zD.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:zD.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:zD.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:zD.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:zD.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});Z5.__TypeKind=p1;var RJ={name:"__schema",type:new M.GraphQLNonNull(m1),description:"Access the current type schema of this server.",args:[],resolve:(D,P,O,{schema:W})=>W,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Z5.SchemaMetaFieldDef=RJ;var SJ={name:"__type",type:pD,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new M.GraphQLNonNull(e.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(D,{name:P},O,{schema:W})=>W.getType(P),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Z5.TypeMetaFieldDef=SJ;var LJ={name:"__typename",type:new M.GraphQLNonNull(e.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(D,P,O,{parentType:W})=>W.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Z5.TypeNameMetaFieldDef=LJ;var Y5=Object.freeze([m1,c1,l1,pD,r1,j8,d1,p1]);Z5.introspectionTypes=Y5;function BJ(D){return Y5.some(({name:P})=>D.name===P)}});var Y2=J((U5)=>{Object.defineProperty(U5,"__esModule",{value:!0});U5.GraphQLSchema=void 0;U5.assertSchema=wJ;U5.isSchema=J5;var fP=ND(),a1=i(),IJ=H8(),QJ=A0(),MJ=QP(),n1=C0(),S0=l(),C5=xD(),bJ=nD();function J5(D){return IJ.instanceOf(D,t1)}function wJ(D){if(!J5(D))throw new Error(`Expected ${a1.inspect(D)} to be a GraphQL schema.`);return D}class t1{constructor(D){var P,O;this.__validationErrors=D.assumeValid===!0?[]:void 0,QJ.isObjectLike(D)||fP.devAssert(!1,"Must provide configuration object."),!D.types||Array.isArray(D.types)||fP.devAssert(!1,`"types" must be Array if provided but got: ${a1.inspect(D.types)}.`),!D.directives||Array.isArray(D.directives)||fP.devAssert(!1,`"directives" must be Array if provided but got: ${a1.inspect(D.directives)}.`),this.description=D.description,this.extensions=MJ.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(P=D.extensionASTNodes)!==null&&P!==void 0?P:[],this._queryType=D.query,this._mutationType=D.mutation,this._subscriptionType=D.subscription,this._directives=(O=D.directives)!==null&&O!==void 0?O:C5.specifiedDirectives;let W=new Set(D.types);if(D.types!=null)for(let E of D.types)W.delete(E),L0(E,W);if(this._queryType!=null)L0(this._queryType,W);if(this._mutationType!=null)L0(this._mutationType,W);if(this._subscriptionType!=null)L0(this._subscriptionType,W);for(let E of this._directives)if(C5.isDirective(E))for(let F of E.args)L0(F.type,W);L0(bJ.__Schema,W),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let E of W){if(E==null)continue;let F=E.name;if(F||fP.devAssert(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[F]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${F}".`);if(this._typeMap[F]=E,S0.isInterfaceType(E)){for(let R of E.getInterfaces())if(S0.isInterfaceType(R)){let S=this._implementationsMap[R.name];if(S===void 0)S=this._implementationsMap[R.name]={objects:[],interfaces:[]};S.interfaces.push(E)}}else if(S0.isObjectType(E)){for(let R of E.getInterfaces())if(S0.isInterfaceType(R)){let S=this._implementationsMap[R.name];if(S===void 0)S=this._implementationsMap[R.name]={objects:[],interfaces:[]};S.objects.push(E)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(D){switch(D){case n1.OperationTypeNode.QUERY:return this.getQueryType();case n1.OperationTypeNode.MUTATION:return this.getMutationType();case n1.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(D){return this.getTypeMap()[D]}getPossibleTypes(D){return S0.isUnionType(D)?D.getTypes():this.getImplementations(D).objects}getImplementations(D){let P=this._implementationsMap[D.name];return P!==null&&P!==void 0?P:{objects:[],interfaces:[]}}isSubType(D,P){let O=this._subTypeMap[D.name];if(O===void 0){if(O=Object.create(null),S0.isUnionType(D))for(let W of D.getTypes())O[W.name]=!0;else{let W=this.getImplementations(D);for(let E of W.objects)O[E.name]=!0;for(let E of W.interfaces)O[E.name]=!0}this._subTypeMap[D.name]=O}return O[P.name]!==void 0}getDirectives(){return this._directives}getDirective(D){return this.getDirectives().find((P)=>P.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}}}U5.GraphQLSchema=t1;function L0(D,P){let O=S0.getNamedType(D);if(!P.has(O)){if(P.add(O),S0.isUnionType(O))for(let W of O.getTypes())L0(W,P);else if(S0.isObjectType(O)||S0.isInterfaceType(O)){for(let W of O.getInterfaces())L0(W,P);for(let W of Object.values(O.getFields())){L0(W.type,P);for(let E of W.args)L0(E.type,P)}}else if(S0.isInputObjectType(O))for(let W of Object.values(O.getFields()))L0(W.type,P)}return P}});var V8=J((b5)=>{Object.defineProperty(b5,"__esModule",{value:!0});b5.assertValidSchema=TJ;b5.validateSchema=Q5;var VD=i(),$J=T(),s1=C0(),q5=G8(),ZD=l(),I5=xD(),VJ=nD(),_J=Y2();function Q5(D){if(_J.assertSchema(D),D.__validationErrors)return D.__validationErrors;let P=new M5(D);NJ(P),kJ(P),xJ(P);let O=P.getErrors();return D.__validationErrors=O,O}function TJ(D){let P=Q5(D);if(P.length!==0)throw new Error(P.map((O)=>O.message).join("\n\n"))}class M5{constructor(D){this._errors=[],this.schema=D}reportError(D,P){let O=Array.isArray(P)?P.filter(Boolean):P;this._errors.push(new $J.GraphQLError(D,{nodes:O}))}getErrors(){return this._errors}}function NJ(D){let P=D.schema,O=P.getQueryType();if(!O)D.reportError("Query root type must be provided.",P.astNode);else if(!ZD.isObjectType(O)){var W;D.reportError(`Query root type must be Object type, it cannot be ${VD.inspect(O)}.`,(W=i1(P,s1.OperationTypeNode.QUERY))!==null&&W!==void 0?W:O.astNode)}let E=P.getMutationType();if(E&&!ZD.isObjectType(E)){var F;D.reportError(`Mutation root type must be Object type if provided, it cannot be ${VD.inspect(E)}.`,(F=i1(P,s1.OperationTypeNode.MUTATION))!==null&&F!==void 0?F:E.astNode)}let R=P.getSubscriptionType();if(R&&!ZD.isObjectType(R)){var S;D.reportError(`Subscription root type must be Object type if provided, it cannot be ${VD.inspect(R)}.`,(S=i1(P,s1.OperationTypeNode.SUBSCRIPTION))!==null&&S!==void 0?S:R.astNode)}}function i1(D,P){var O;return(O=[D.astNode,...D.extensionASTNodes].flatMap((W)=>{var E;return(E=W===null||W===void 0?void 0:W.operationTypes)!==null&&E!==void 0?E:[]}).find((W)=>W.operation===P))===null||O===void 0?void 0:O.type}function kJ(D){for(let O of D.schema.getDirectives()){if(!I5.isDirective(O)){D.reportError(`Expected directive but got: ${VD.inspect(O)}.`,O===null||O===void 0?void 0:O.astNode);continue}Z2(D,O);for(let W of O.args){if(Z2(D,W),!ZD.isInputType(W.type))D.reportError(`The type of @${O.name}(${W.name}:) must be Input Type but got: ${VD.inspect(W.type)}.`,W.astNode);if(ZD.isRequiredArgument(W)&&W.deprecationReason!=null){var P;D.reportError(`Required argument @${O.name}(${W.name}:) cannot be deprecated.`,[o1(W.astNode),(P=W.astNode)===null||P===void 0?void 0:P.type])}}}}function Z2(D,P){if(P.name.startsWith("__"))D.reportError(`Name "${P.name}" must not begin with "__", which is reserved by GraphQL introspection.`,P.astNode)}function xJ(D){let P=cJ(D),O=D.schema.getTypeMap();for(let W of Object.values(O)){if(!ZD.isNamedType(W)){D.reportError(`Expected GraphQL named type but got: ${VD.inspect(W)}.`,W.astNode);continue}if(!VJ.isIntrospectionType(W))Z2(D,W);if(ZD.isObjectType(W))z5(D,W),G5(D,W);else if(ZD.isInterfaceType(W))z5(D,W),G5(D,W);else if(ZD.isUnionType(W))hJ(D,W);else if(ZD.isEnumType(W))gJ(D,W);else if(ZD.isInputObjectType(W))yJ(D,W),P(W)}}function z5(D,P){let O=Object.values(P.getFields());if(O.length===0)D.reportError(`Type ${P.name} must define one or more fields.`,[P.astNode,...P.extensionASTNodes]);for(let R of O){if(Z2(D,R),!ZD.isOutputType(R.type)){var W;D.reportError(`The type of ${P.name}.${R.name} must be Output Type but got: ${VD.inspect(R.type)}.`,(W=R.astNode)===null||W===void 0?void 0:W.type)}for(let S of R.args){let L=S.name;if(Z2(D,S),!ZD.isInputType(S.type)){var E;D.reportError(`The type of ${P.name}.${R.name}(${L}:) must be Input Type but got: ${VD.inspect(S.type)}.`,(E=S.astNode)===null||E===void 0?void 0:E.type)}if(ZD.isRequiredArgument(S)&&S.deprecationReason!=null){var F;D.reportError(`Required argument ${P.name}.${R.name}(${L}:) cannot be deprecated.`,[o1(S.astNode),(F=S.astNode)===null||F===void 0?void 0:F.type])}}}}function G5(D,P){let O=Object.create(null);for(let W of P.getInterfaces()){if(!ZD.isInterfaceType(W)){D.reportError(`Type ${VD.inspect(P)} must only implement Interface types, it cannot implement ${VD.inspect(W)}.`,$8(P,W));continue}if(P===W){D.reportError(`Type ${P.name} cannot implement itself because it would create a circular reference.`,$8(P,W));continue}if(O[W.name]){D.reportError(`Type ${P.name} can only implement ${W.name} once.`,$8(P,W));continue}O[W.name]=!0,vJ(D,P,W),fJ(D,P,W)}}function fJ(D,P,O){let W=P.getFields();for(let L of Object.values(O.getFields())){let B=L.name,Y=W[B];if(!Y){D.reportError(`Interface field ${O.name}.${B} expected but ${P.name} does not provide it.`,[L.astNode,P.astNode,...P.extensionASTNodes]);continue}if(!q5.isTypeSubTypeOf(D.schema,Y.type,L.type)){var E,F;D.reportError(`Interface field ${O.name}.${B} expects type ${VD.inspect(L.type)} but ${P.name}.${B} is type ${VD.inspect(Y.type)}.`,[(E=L.astNode)===null||E===void 0?void 0:E.type,(F=Y.astNode)===null||F===void 0?void 0:F.type])}for(let Z of L.args){let H=Z.name,C=Y.args.find((X)=>X.name===H);if(!C){D.reportError(`Interface field argument ${O.name}.${B}(${H}:) expected but ${P.name}.${B} does not provide it.`,[Z.astNode,Y.astNode]);continue}if(!q5.isEqualType(Z.type,C.type)){var R,S;D.reportError(`Interface field argument ${O.name}.${B}(${H}:) expects type ${VD.inspect(Z.type)} but ${P.name}.${B}(${H}:) is type ${VD.inspect(C.type)}.`,[(R=Z.astNode)===null||R===void 0?void 0:R.type,(S=C.astNode)===null||S===void 0?void 0:S.type])}}for(let Z of Y.args){let H=Z.name;if(!L.args.find((X)=>X.name===H)&&ZD.isRequiredArgument(Z))D.reportError(`Object field ${P.name}.${B} includes required argument ${H} that is missing from the Interface field ${O.name}.${B}.`,[Z.astNode,L.astNode])}}}function vJ(D,P,O){let W=P.getInterfaces();for(let E of O.getInterfaces())if(!W.includes(E))D.reportError(E===P?`Type ${P.name} cannot implement ${O.name} because it would create a circular reference.`:`Type ${P.name} must implement ${E.name} because it is implemented by ${O.name}.`,[...$8(O,E),...$8(P,O)])}function hJ(D,P){let O=P.getTypes();if(O.length===0)D.reportError(`Union type ${P.name} must define one or more member types.`,[P.astNode,...P.extensionASTNodes]);let W=Object.create(null);for(let E of O){if(W[E.name]){D.reportError(`Union type ${P.name} can only include type ${E.name} once.`,u5(P,E.name));continue}if(W[E.name]=!0,!ZD.isObjectType(E))D.reportError(`Union type ${P.name} can only include Object types, it cannot include ${VD.inspect(E)}.`,u5(P,String(E)))}}function gJ(D,P){let O=P.getValues();if(O.length===0)D.reportError(`Enum type ${P.name} must define one or more values.`,[P.astNode,...P.extensionASTNodes]);for(let W of O)Z2(D,W)}function yJ(D,P){let O=Object.values(P.getFields());if(O.length===0)D.reportError(`Input Object type ${P.name} must define one or more fields.`,[P.astNode,...P.extensionASTNodes]);for(let F of O){if(Z2(D,F),!ZD.isInputType(F.type)){var W;D.reportError(`The type of ${P.name}.${F.name} must be Input Type but got: ${VD.inspect(F.type)}.`,(W=F.astNode)===null||W===void 0?void 0:W.type)}if(ZD.isRequiredInputField(F)&&F.deprecationReason!=null){var E;D.reportError(`Required input field ${P.name}.${F.name} cannot be deprecated.`,[o1(F.astNode),(E=F.astNode)===null||E===void 0?void 0:E.type])}if(P.isOneOf)mJ(P,F,D)}}function mJ(D,P,O){if(ZD.isNonNullType(P.type)){var W;O.reportError(`OneOf input field ${D.name}.${P.name} must be nullable.`,(W=P.astNode)===null||W===void 0?void 0:W.type)}if(P.defaultValue!==void 0)O.reportError(`OneOf input field ${D.name}.${P.name} cannot have a default value.`,P.astNode)}function cJ(D){let P=Object.create(null),O=[],W=Object.create(null);return E;function E(F){if(P[F.name])return;P[F.name]=!0,W[F.name]=O.length;let R=Object.values(F.getFields());for(let S of R)if(ZD.isNonNullType(S.type)&&ZD.isInputObjectType(S.type.ofType)){let L=S.type.ofType,B=W[L.name];if(O.push(S),B===void 0)E(L);else{let Y=O.slice(B),Z=Y.map((H)=>H.name).join(".");D.reportError(`Cannot reference Input Object "${L.name}" within itself through a series of non-null fields: "${Z}".`,Y.map((H)=>H.astNode))}O.pop()}W[F.name]=void 0}}function $8(D,P){let{astNode:O,extensionASTNodes:W}=D;return(O!=null?[O,...W]:W).flatMap((F)=>{var R;return(R=F.interfaces)!==null&&R!==void 0?R:[]}).filter((F)=>F.name.value===P.name)}function u5(D,P){let{astNode:O,extensionASTNodes:W}=D;return(O!=null?[O,...W]:W).flatMap((F)=>{var R;return(R=F.types)!==null&&R!==void 0?R:[]}).filter((F)=>F.name.value===P)}function o1(D){var P;return D===null||D===void 0?void 0:(P=D.directives)===null||P===void 0?void 0:P.find((O)=>O.name.value===I5.GraphQLDeprecatedDirective.name)}});var q0=J((K5)=>{Object.defineProperty(K5,"__esModule",{value:!0});K5.typeFromAST=DW;var e1=c(),w5=l();function DW(D,P){switch(P.kind){case e1.Kind.LIST_TYPE:{let O=DW(D,P.type);return O&&new w5.GraphQLList(O)}case e1.Kind.NON_NULL_TYPE:{let O=DW(D,P.type);return O&&new w5.GraphQLNonNull(O)}case e1.Kind.NAMED_TYPE:return D.getType(P.name.value)}}});var vP=J((_5)=>{Object.defineProperty(_5,"__esModule",{value:!0});_5.TypeInfo=void 0;_5.visitWithTypeInfo=aJ;var pJ=C0(),HD=c(),j5=E2(),AD=l(),x2=nD(),$5=q0();class V5{constructor(D,P,O){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=O!==null&&O!==void 0?O:nJ,P){if(AD.isInputType(P))this._inputTypeStack.push(P);if(AD.isCompositeType(P))this._parentTypeStack.push(P);if(AD.isOutputType(P))this._typeStack.push(P)}}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 P=this._schema;switch(D.kind){case HD.Kind.SELECTION_SET:{let W=AD.getNamedType(this.getType());this._parentTypeStack.push(AD.isCompositeType(W)?W:void 0);break}case HD.Kind.FIELD:{let W=this.getParentType(),E,F;if(W){if(E=this._getFieldDef(P,W,D),E)F=E.type}this._fieldDefStack.push(E),this._typeStack.push(AD.isOutputType(F)?F:void 0);break}case HD.Kind.DIRECTIVE:this._directive=P.getDirective(D.name.value);break;case HD.Kind.OPERATION_DEFINITION:{let W=P.getRootType(D.operation);this._typeStack.push(AD.isObjectType(W)?W:void 0);break}case HD.Kind.INLINE_FRAGMENT:case HD.Kind.FRAGMENT_DEFINITION:{let W=D.typeCondition,E=W?$5.typeFromAST(P,W):AD.getNamedType(this.getType());this._typeStack.push(AD.isOutputType(E)?E:void 0);break}case HD.Kind.VARIABLE_DEFINITION:{let W=$5.typeFromAST(P,D.type);this._inputTypeStack.push(AD.isInputType(W)?W:void 0);break}case HD.Kind.ARGUMENT:{var O;let W,E,F=(O=this.getDirective())!==null&&O!==void 0?O:this.getFieldDef();if(F){if(W=F.args.find((R)=>R.name===D.name.value),W)E=W.type}this._argument=W,this._defaultValueStack.push(W?W.defaultValue:void 0),this._inputTypeStack.push(AD.isInputType(E)?E:void 0);break}case HD.Kind.LIST:{let W=AD.getNullableType(this.getInputType()),E=AD.isListType(W)?W.ofType:W;this._defaultValueStack.push(void 0),this._inputTypeStack.push(AD.isInputType(E)?E:void 0);break}case HD.Kind.OBJECT_FIELD:{let W=AD.getNamedType(this.getInputType()),E,F;if(AD.isInputObjectType(W)){if(F=W.getFields()[D.name.value],F)E=F.type}this._defaultValueStack.push(F?F.defaultValue:void 0),this._inputTypeStack.push(AD.isInputType(E)?E:void 0);break}case HD.Kind.ENUM:{let W=AD.getNamedType(this.getInputType()),E;if(AD.isEnumType(W))E=W.getValue(D.value);this._enumValue=E;break}default:}}leave(D){switch(D.kind){case HD.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case HD.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case HD.Kind.DIRECTIVE:this._directive=null;break;case HD.Kind.OPERATION_DEFINITION:case HD.Kind.INLINE_FRAGMENT:case HD.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case HD.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case HD.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case HD.Kind.LIST:case HD.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case HD.Kind.ENUM:this._enumValue=null;break;default:}}}_5.TypeInfo=V5;function nJ(D,P,O){let W=O.name.value;if(W===x2.SchemaMetaFieldDef.name&&D.getQueryType()===P)return x2.SchemaMetaFieldDef;if(W===x2.TypeMetaFieldDef.name&&D.getQueryType()===P)return x2.TypeMetaFieldDef;if(W===x2.TypeNameMetaFieldDef.name&&AD.isCompositeType(P))return x2.TypeNameMetaFieldDef;if(AD.isObjectType(P)||AD.isInterfaceType(P))return P.getFields()[W]}function aJ(D,P){return{enter(...O){let W=O[0];D.enter(W);let E=j5.getEnterLeaveForKind(P,W.kind).enter;if(E){let F=E.apply(P,O);if(F!==void 0){if(D.leave(W),pJ.isNode(F))D.enter(F)}return F}},leave(...O){let W=O[0],E=j5.getEnterLeaveForKind(P,W.kind).leave,F;if(E)F=E.apply(P,O);return D.leave(W),F}}}});var H2=J((g5)=>{Object.defineProperty(g5,"__esModule",{value:!0});g5.isConstValueNode=PW;g5.isDefinitionNode=sJ;g5.isExecutableDefinitionNode=N5;g5.isSelectionNode=iJ;g5.isTypeDefinitionNode=f5;g5.isTypeExtensionNode=h5;g5.isTypeNode=oJ;g5.isTypeSystemDefinitionNode=x5;g5.isTypeSystemExtensionNode=v5;g5.isValueNode=k5;var r=c();function sJ(D){return N5(D)||x5(D)||v5(D)}function N5(D){return D.kind===r.Kind.OPERATION_DEFINITION||D.kind===r.Kind.FRAGMENT_DEFINITION}function iJ(D){return D.kind===r.Kind.FIELD||D.kind===r.Kind.FRAGMENT_SPREAD||D.kind===r.Kind.INLINE_FRAGMENT}function k5(D){return D.kind===r.Kind.VARIABLE||D.kind===r.Kind.INT||D.kind===r.Kind.FLOAT||D.kind===r.Kind.STRING||D.kind===r.Kind.BOOLEAN||D.kind===r.Kind.NULL||D.kind===r.Kind.ENUM||D.kind===r.Kind.LIST||D.kind===r.Kind.OBJECT}function PW(D){return k5(D)&&(D.kind===r.Kind.LIST?D.values.some(PW):D.kind===r.Kind.OBJECT?D.fields.some((P)=>PW(P.value)):D.kind!==r.Kind.VARIABLE)}function oJ(D){return D.kind===r.Kind.NAMED_TYPE||D.kind===r.Kind.LIST_TYPE||D.kind===r.Kind.NON_NULL_TYPE}function x5(D){return D.kind===r.Kind.SCHEMA_DEFINITION||f5(D)||D.kind===r.Kind.DIRECTIVE_DEFINITION}function f5(D){return D.kind===r.Kind.SCALAR_TYPE_DEFINITION||D.kind===r.Kind.OBJECT_TYPE_DEFINITION||D.kind===r.Kind.INTERFACE_TYPE_DEFINITION||D.kind===r.Kind.UNION_TYPE_DEFINITION||D.kind===r.Kind.ENUM_TYPE_DEFINITION||D.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function v5(D){return D.kind===r.Kind.SCHEMA_EXTENSION||h5(D)}function h5(D){return D.kind===r.Kind.SCALAR_TYPE_EXTENSION||D.kind===r.Kind.OBJECT_TYPE_EXTENSION||D.kind===r.Kind.INTERFACE_TYPE_EXTENSION||D.kind===r.Kind.UNION_TYPE_EXTENSION||D.kind===r.Kind.ENUM_TYPE_EXTENSION||D.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var OW=J((m5)=>{Object.defineProperty(m5,"__esModule",{value:!0});m5.ExecutableDefinitionsRule=ZU;var BU=T(),y5=c(),YU=H2();function ZU(D){return{Document(P){for(let O of P.definitions)if(!YU.isExecutableDefinitionNode(O)){let W=O.kind===y5.Kind.SCHEMA_DEFINITION||O.kind===y5.Kind.SCHEMA_EXTENSION?"schema":'"'+O.name.value+'"';D.reportError(new BU.GraphQLError(`The ${W} definition is not executable.`,{nodes:O}))}return!1}}}});var WW=J((l5)=>{Object.defineProperty(l5,"__esModule",{value:!0});l5.FieldsOnCorrectTypeRule=UU;var c5=g0(),AU=J8(),CU=m0(),JU=T(),_8=l();function UU(D){return{Field(P){let O=D.getParentType();if(O){if(!D.getFieldDef()){let E=D.getSchema(),F=P.name.value,R=c5.didYouMean("to use an inline fragment on",XU(E,O,F));if(R==="")R=c5.didYouMean(qU(O,F));D.reportError(new JU.GraphQLError(`Cannot query field "${F}" on type "${O.name}".`+R,{nodes:P}))}}}}}function XU(D,P,O){if(!_8.isAbstractType(P))return[];let W=new Set,E=Object.create(null);for(let R of D.getPossibleTypes(P)){if(!R.getFields()[O])continue;W.add(R),E[R.name]=1;for(let S of R.getInterfaces()){var F;if(!S.getFields()[O])continue;W.add(S),E[S.name]=((F=E[S.name])!==null&&F!==void 0?F:0)+1}}return[...W].sort((R,S)=>{let L=E[S.name]-E[R.name];if(L!==0)return L;if(_8.isInterfaceType(R)&&D.isSubType(R,S))return-1;if(_8.isInterfaceType(S)&&D.isSubType(S,R))return 1;return AU.naturalCompare(R.name,S.name)}).map((R)=>R.name)}function qU(D,P){if(_8.isObjectType(D)||_8.isInterfaceType(D)){let O=Object.keys(D.getFields());return CU.suggestionList(P,O)}return[]}});var EW=J((a5)=>{Object.defineProperty(a5,"__esModule",{value:!0});a5.FragmentsOnCompositeTypesRule=GU;var r5=T(),d5=mD(),p5=l(),n5=q0();function GU(D){return{InlineFragment(P){let O=P.typeCondition;if(O){let W=n5.typeFromAST(D.getSchema(),O);if(W&&!p5.isCompositeType(W)){let E=d5.print(O);D.reportError(new r5.GraphQLError(`Fragment cannot condition on non composite type "${E}".`,{nodes:O}))}}},FragmentDefinition(P){let O=n5.typeFromAST(D.getSchema(),P.typeCondition);if(O&&!p5.isCompositeType(O)){let W=d5.print(P.typeCondition);D.reportError(new r5.GraphQLError(`Fragment "${P.name.value}" cannot condition on non composite type "${W}".`,{nodes:P.typeCondition}))}}}}});var FW=J((e5)=>{Object.defineProperty(e5,"__esModule",{value:!0});e5.KnownArgumentNamesOnDirectivesRule=o5;e5.KnownArgumentNamesRule=MU;var t5=g0(),s5=m0(),i5=T(),IU=c(),QU=xD();function MU(D){return{...o5(D),Argument(P){let O=D.getArgument(),W=D.getFieldDef(),E=D.getParentType();if(!O&&W&&E){let F=P.name.value,R=W.args.map((L)=>L.name),S=s5.suggestionList(F,R);D.reportError(new i5.GraphQLError(`Unknown argument "${F}" on field "${E.name}.${W.name}".`+t5.didYouMean(S),{nodes:P}))}}}}function o5(D){let P=Object.create(null),O=D.getSchema(),W=O?O.getDirectives():QU.specifiedDirectives;for(let R of W)P[R.name]=R.args.map((S)=>S.name);let E=D.getDocument().definitions;for(let R of E)if(R.kind===IU.Kind.DIRECTIVE_DEFINITION){var F;let S=(F=R.arguments)!==null&&F!==void 0?F:[];P[R.name.value]=S.map((L)=>L.name.value)}return{Directive(R){let S=R.name.value,L=P[S];if(R.arguments&&L)for(let B of R.arguments){let Y=B.name.value;if(!L.includes(Y)){let Z=s5.suggestionList(Y,L);D.reportError(new i5.GraphQLError(`Unknown argument "${Y}" on directive "@${S}".`+t5.didYouMean(Z),{nodes:B}))}}return!1}}}});var LW=J((PR)=>{Object.defineProperty(PR,"__esModule",{value:!0});PR.KnownDirectivesRule=$U;var KU=i(),RW=jD(),DR=T(),SW=C0(),GD=j2(),WD=c(),jU=xD();function $U(D){let P=Object.create(null),O=D.getSchema(),W=O?O.getDirectives():jU.specifiedDirectives;for(let F of W)P[F.name]=F.locations;let E=D.getDocument().definitions;for(let F of E)if(F.kind===WD.Kind.DIRECTIVE_DEFINITION)P[F.name.value]=F.locations.map((R)=>R.value);return{Directive(F,R,S,L,B){let Y=F.name.value,Z=P[Y];if(!Z){D.reportError(new DR.GraphQLError(`Unknown directive "@${Y}".`,{nodes:F}));return}let H=VU(B);if(H&&!Z.includes(H))D.reportError(new DR.GraphQLError(`Directive "@${Y}" may not be used on ${H}.`,{nodes:F}))}}}function VU(D){let P=D[D.length-1];switch("kind"in P||RW.invariant(!1),P.kind){case WD.Kind.OPERATION_DEFINITION:return _U(P.operation);case WD.Kind.FIELD:return GD.DirectiveLocation.FIELD;case WD.Kind.FRAGMENT_SPREAD:return GD.DirectiveLocation.FRAGMENT_SPREAD;case WD.Kind.INLINE_FRAGMENT:return GD.DirectiveLocation.INLINE_FRAGMENT;case WD.Kind.FRAGMENT_DEFINITION:return GD.DirectiveLocation.FRAGMENT_DEFINITION;case WD.Kind.VARIABLE_DEFINITION:return GD.DirectiveLocation.VARIABLE_DEFINITION;case WD.Kind.SCHEMA_DEFINITION:case WD.Kind.SCHEMA_EXTENSION:return GD.DirectiveLocation.SCHEMA;case WD.Kind.SCALAR_TYPE_DEFINITION:case WD.Kind.SCALAR_TYPE_EXTENSION:return GD.DirectiveLocation.SCALAR;case WD.Kind.OBJECT_TYPE_DEFINITION:case WD.Kind.OBJECT_TYPE_EXTENSION:return GD.DirectiveLocation.OBJECT;case WD.Kind.FIELD_DEFINITION:return GD.DirectiveLocation.FIELD_DEFINITION;case WD.Kind.INTERFACE_TYPE_DEFINITION:case WD.Kind.INTERFACE_TYPE_EXTENSION:return GD.DirectiveLocation.INTERFACE;case WD.Kind.UNION_TYPE_DEFINITION:case WD.Kind.UNION_TYPE_EXTENSION:return GD.DirectiveLocation.UNION;case WD.Kind.ENUM_TYPE_DEFINITION:case WD.Kind.ENUM_TYPE_EXTENSION:return GD.DirectiveLocation.ENUM;case WD.Kind.ENUM_VALUE_DEFINITION:return GD.DirectiveLocation.ENUM_VALUE;case WD.Kind.INPUT_OBJECT_TYPE_DEFINITION:case WD.Kind.INPUT_OBJECT_TYPE_EXTENSION:return GD.DirectiveLocation.INPUT_OBJECT;case WD.Kind.INPUT_VALUE_DEFINITION:{let O=D[D.length-3];return"kind"in O||RW.invariant(!1),O.kind===WD.Kind.INPUT_OBJECT_TYPE_DEFINITION?GD.DirectiveLocation.INPUT_FIELD_DEFINITION:GD.DirectiveLocation.ARGUMENT_DEFINITION}default:RW.invariant(!1,"Unexpected kind: "+KU.inspect(P.kind))}}function _U(D){switch(D){case SW.OperationTypeNode.QUERY:return GD.DirectiveLocation.QUERY;case SW.OperationTypeNode.MUTATION:return GD.DirectiveLocation.MUTATION;case SW.OperationTypeNode.SUBSCRIPTION:return GD.DirectiveLocation.SUBSCRIPTION}}});var BW=J((OR)=>{Object.defineProperty(OR,"__esModule",{value:!0});OR.KnownFragmentNamesRule=kU;var NU=T();function kU(D){return{FragmentSpread(P){let O=P.name.value;if(!D.getFragment(O))D.reportError(new NU.GraphQLError(`Unknown fragment "${O}".`,{nodes:P.name}))}}}});var ZW=J((ER)=>{Object.defineProperty(ER,"__esModule",{value:!0});ER.KnownTypeNamesRule=mU;var fU=g0(),vU=m0(),hU=T(),YW=H2(),gU=nD(),yU=X0();function mU(D){let P=D.getSchema(),O=P?P.getTypeMap():Object.create(null),W=Object.create(null);for(let F of D.getDocument().definitions)if(YW.isTypeDefinitionNode(F))W[F.name.value]=!0;let E=[...Object.keys(O),...Object.keys(W)];return{NamedType(F,R,S,L,B){let Y=F.name.value;if(!O[Y]&&!W[Y]){var Z;let H=(Z=B[2])!==null&&Z!==void 0?Z:S,C=H!=null&&cU(H);if(C&&WR.includes(Y))return;let X=vU.suggestionList(Y,C?WR.concat(E):E);D.reportError(new hU.GraphQLError(`Unknown type "${Y}".`+fU.didYouMean(X),{nodes:F}))}}}}var WR=[...yU.specifiedScalarTypes,...gU.introspectionTypes].map((D)=>D.name);function cU(D){return"kind"in D&&(YW.isTypeSystemDefinitionNode(D)||YW.isTypeSystemExtensionNode(D))}});var HW=J((FR)=>{Object.defineProperty(FR,"__esModule",{value:!0});FR.LoneAnonymousOperationRule=pU;var rU=T(),dU=c();function pU(D){let P=0;return{Document(O){P=O.definitions.filter((W)=>W.kind===dU.Kind.OPERATION_DEFINITION).length},OperationDefinition(O){if(!O.name&&P>1)D.reportError(new rU.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:O}))}}}});var AW=J((SR)=>{Object.defineProperty(SR,"__esModule",{value:!0});SR.LoneSchemaDefinitionRule=aU;var RR=T();function aU(D){var P,O,W;let E=D.getSchema(),F=(P=(O=(W=E===null||E===void 0?void 0:E.astNode)!==null&&W!==void 0?W:E===null||E===void 0?void 0:E.getQueryType())!==null&&O!==void 0?O:E===null||E===void 0?void 0:E.getMutationType())!==null&&P!==void 0?P:E===null||E===void 0?void 0:E.getSubscriptionType(),R=0;return{SchemaDefinition(S){if(F){D.reportError(new RR.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:S}));return}if(R>0)D.reportError(new RR.GraphQLError("Must provide only one schema definition.",{nodes:S}));++R}}}});var CW=J((BR)=>{Object.defineProperty(BR,"__esModule",{value:!0});BR.MaxIntrospectionDepthRule=oU;var sU=T(),LR=c(),iU=3;function oU(D){function P(O,W=Object.create(null),E=0){if(O.kind===LR.Kind.FRAGMENT_SPREAD){let F=O.name.value;if(W[F]===!0)return!1;let R=D.getFragment(F);if(!R)return!1;try{return W[F]=!0,P(R,W,E)}finally{W[F]=void 0}}if(O.kind===LR.Kind.FIELD&&(O.name.value==="fields"||O.name.value==="interfaces"||O.name.value==="possibleTypes"||O.name.value==="inputFields")){if(E++,E>=iU)return!0}if("selectionSet"in O&&O.selectionSet){for(let F of O.selectionSet.selections)if(P(F,W,E))return!0}return!1}return{Field(O){if(O.name.value==="__schema"||O.name.value==="__type"){if(P(O))return D.reportError(new sU.GraphQLError("Maximum introspection depth exceeded",{nodes:[O]})),!1}}}}});var JW=J((YR)=>{Object.defineProperty(YR,"__esModule",{value:!0});YR.NoFragmentCyclesRule=PX;var DX=T();function PX(D){let P=Object.create(null),O=[],W=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(F){return E(F),!1}};function E(F){if(P[F.name.value])return;let R=F.name.value;P[R]=!0;let S=D.getFragmentSpreads(F.selectionSet);if(S.length===0)return;W[R]=O.length;for(let L of S){let B=L.name.value,Y=W[B];if(O.push(L),Y===void 0){let Z=D.getFragment(B);if(Z)E(Z)}else{let Z=O.slice(Y),H=Z.slice(0,-1).map((C)=>'"'+C.name.value+'"').join(", ");D.reportError(new DX.GraphQLError(`Cannot spread fragment "${B}" within itself`+(H!==""?` via ${H}.`:"."),{nodes:Z}))}O.pop()}W[R]=void 0}}});var UW=J((ZR)=>{Object.defineProperty(ZR,"__esModule",{value:!0});ZR.NoUndefinedVariablesRule=EX;var WX=T();function EX(D){let P=Object.create(null);return{OperationDefinition:{enter(){P=Object.create(null)},leave(O){let W=D.getRecursiveVariableUsages(O);for(let{node:E}of W){let F=E.name.value;if(P[F]!==!0)D.reportError(new WX.GraphQLError(O.name?`Variable "\$${F}" is not defined by operation "${O.name.value}".`:`Variable "\$${F}" is not defined.`,{nodes:[E,O]}))}}},VariableDefinition(O){P[O.variable.name.value]=!0}}}});var XW=J((HR)=>{Object.defineProperty(HR,"__esModule",{value:!0});HR.NoUnusedFragmentsRule=SX;var RX=T();function SX(D){let P=[],O=[];return{OperationDefinition(W){return P.push(W),!1},FragmentDefinition(W){return O.push(W),!1},Document:{leave(){let W=Object.create(null);for(let E of P)for(let F of D.getRecursivelyReferencedFragments(E))W[F.name.value]=!0;for(let E of O){let F=E.name.value;if(W[F]!==!0)D.reportError(new RX.GraphQLError(`Fragment "${F}" is never used.`,{nodes:E}))}}}}}});var qW=J((AR)=>{Object.defineProperty(AR,"__esModule",{value:!0});AR.NoUnusedVariablesRule=YX;var BX=T();function YX(D){let P=[];return{OperationDefinition:{enter(){P=[]},leave(O){let W=Object.create(null),E=D.getRecursiveVariableUsages(O);for(let{node:F}of E)W[F.name.value]=!0;for(let F of P){let R=F.variable.name.value;if(W[R]!==!0)D.reportError(new BX.GraphQLError(O.name?`Variable "\$${R}" is never used in operation "${O.name.value}".`:`Variable "\$${R}" is never used.`,{nodes:F}))}}},VariableDefinition(O){P.push(O)}}}});var GW=J((CR)=>{Object.defineProperty(CR,"__esModule",{value:!0});CR.sortValueNode=zW;var HX=J8(),V0=c();function zW(D){switch(D.kind){case V0.Kind.OBJECT:return{...D,fields:AX(D.fields)};case V0.Kind.LIST:return{...D,values:D.values.map(zW)};case V0.Kind.INT:case V0.Kind.FLOAT:case V0.Kind.STRING:case V0.Kind.BOOLEAN:case V0.Kind.NULL:case V0.Kind.ENUM:case V0.Kind.VARIABLE:return D}}function AX(D){return D.map((P)=>({...P,value:zW(P.value)})).sort((P,O)=>HX.naturalCompare(P.name.value,O.name.value))}});var bW=J((IR)=>{Object.defineProperty(IR,"__esModule",{value:!0});IR.OverlappingFieldsCanBeMergedRule=qX;var JR=i(),JX=T(),uW=c(),UX=mD(),fD=l(),XX=GW(),XR=q0();function qR(D){if(Array.isArray(D))return D.map(([P,O])=>`subfields "${P}" conflict because `+qR(O)).join(" and ");return D}function qX(D){let P=new uR,O=new Map;return{SelectionSet(W){let E=zX(D,O,P,D.getParentType(),W);for(let[[F,R],S,L]of E){let B=qR(R);D.reportError(new JX.GraphQLError(`Fields "${F}" conflict because ${B}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:S.concat(L)}))}}}}function zX(D,P,O,W,E){let F=[],[R,S]=yP(D,P,W,E);if(uX(D,F,P,O,R),S.length!==0)for(let L=0;L<S.length;L++){hP(D,F,P,O,!1,R,S[L]);for(let B=L+1;B<S.length;B++)gP(D,F,P,O,!1,S[L],S[B])}return F}function hP(D,P,O,W,E,F,R){let S=D.getFragment(R);if(!S)return;let[L,B]=QW(D,O,S);if(F===L)return;MW(D,P,O,W,E,F,L);for(let Y of B){if(W.has(Y,R,E))continue;W.add(Y,R,E),hP(D,P,O,W,E,F,Y)}}function gP(D,P,O,W,E,F,R){if(F===R)return;if(W.has(F,R,E))return;W.add(F,R,E);let S=D.getFragment(F),L=D.getFragment(R);if(!S||!L)return;let[B,Y]=QW(D,O,S),[Z,H]=QW(D,O,L);MW(D,P,O,W,E,B,Z);for(let C of H)gP(D,P,O,W,E,F,C);for(let C of Y)gP(D,P,O,W,E,C,R)}function GX(D,P,O,W,E,F,R,S){let L=[],[B,Y]=yP(D,P,E,F),[Z,H]=yP(D,P,R,S);MW(D,L,P,O,W,B,Z);for(let C of H)hP(D,L,P,O,W,B,C);for(let C of Y)hP(D,L,P,O,W,Z,C);for(let C of Y)for(let X of H)gP(D,L,P,O,W,C,X);return L}function uX(D,P,O,W,E){for(let[F,R]of Object.entries(E))if(R.length>1)for(let S=0;S<R.length;S++)for(let L=S+1;L<R.length;L++){let B=zR(D,O,W,!1,F,R[S],R[L]);if(B)P.push(B)}}function MW(D,P,O,W,E,F,R){for(let[S,L]of Object.entries(F)){let B=R[S];if(B)for(let Y of L)for(let Z of B){let H=zR(D,O,W,E,S,Y,Z);if(H)P.push(H)}}}function zR(D,P,O,W,E,F,R){let[S,L,B]=F,[Y,Z,H]=R,C=W||S!==Y&&fD.isObjectType(S)&&fD.isObjectType(Y);if(!C){let y=L.name.value,V=Z.name.value;if(y!==V)return[[E,`"${y}" and "${V}" are different fields`],[L],[Z]];if(!IX(L,Z))return[[E,"they have differing arguments"],[L],[Z]]}let X=B===null||B===void 0?void 0:B.type,I=H===null||H===void 0?void 0:H.type;if(X&&I&&IW(X,I))return[[E,`they return conflicting types "${JR.inspect(X)}" and "${JR.inspect(I)}"`],[L],[Z]];let $=L.selectionSet,x=Z.selectionSet;if($&&x){let y=GX(D,P,O,C,fD.getNamedType(X),$,fD.getNamedType(I),x);return QX(y,E,L,Z)}}function IX(D,P){let O=D.arguments,W=P.arguments;if(O===void 0||O.length===0)return W===void 0||W.length===0;if(W===void 0||W.length===0)return!1;if(O.length!==W.length)return!1;let E=new Map(W.map(({name:F,value:R})=>[F.value,R]));return O.every((F)=>{let R=F.value,S=E.get(F.name.value);if(S===void 0)return!1;return UR(R)===UR(S)})}function UR(D){return UX.print(XX.sortValueNode(D))}function IW(D,P){if(fD.isListType(D))return fD.isListType(P)?IW(D.ofType,P.ofType):!0;if(fD.isListType(P))return!0;if(fD.isNonNullType(D))return fD.isNonNullType(P)?IW(D.ofType,P.ofType):!0;if(fD.isNonNullType(P))return!0;if(fD.isLeafType(D)||fD.isLeafType(P))return D!==P;return!1}function yP(D,P,O,W){let E=P.get(W);if(E)return E;let F=Object.create(null),R=Object.create(null);GR(D,O,W,F,R);let S=[F,Object.keys(R)];return P.set(W,S),S}function QW(D,P,O){let W=P.get(O.selectionSet);if(W)return W;let E=XR.typeFromAST(D.getSchema(),O.typeCondition);return yP(D,P,E,O.selectionSet)}function GR(D,P,O,W,E){for(let F of O.selections)switch(F.kind){case uW.Kind.FIELD:{let R=F.name.value,S;if(fD.isObjectType(P)||fD.isInterfaceType(P))S=P.getFields()[R];let L=F.alias?F.alias.value:R;if(!W[L])W[L]=[];W[L].push([P,F,S]);break}case uW.Kind.FRAGMENT_SPREAD:E[F.name.value]=!0;break;case uW.Kind.INLINE_FRAGMENT:{let R=F.typeCondition,S=R?XR.typeFromAST(D.getSchema(),R):P;GR(D,S,F.selectionSet,W,E);break}}}function QX(D,P,O,W){if(D.length>0)return[[P,D.map(([E])=>E)],[O,...D.map(([,E])=>E).flat()],[W,...D.map(([,,E])=>E).flat()]]}class uR{constructor(){this._data=new Map}has(D,P,O){var W;let[E,F]=D<P?[D,P]:[P,D],R=(W=this._data.get(E))===null||W===void 0?void 0:W.get(F);if(R===void 0)return!1;return O?!0:O===R}add(D,P,O){let[W,E]=D<P?[D,P]:[P,D],F=this._data.get(W);if(F===void 0)this._data.set(W,new Map([[E,O]]));else F.set(E,O)}}});var KW=J((bR)=>{Object.defineProperty(bR,"__esModule",{value:!0});bR.PossibleFragmentSpreadsRule=wX;var mP=i(),QR=T(),wW=l(),MR=G8(),bX=q0();function wX(D){return{InlineFragment(P){let O=D.getType(),W=D.getParentType();if(wW.isCompositeType(O)&&wW.isCompositeType(W)&&!MR.doTypesOverlap(D.getSchema(),O,W)){let E=mP.inspect(W),F=mP.inspect(O);D.reportError(new QR.GraphQLError(`Fragment cannot be spread here as objects of type "${E}" can never be of type "${F}".`,{nodes:P}))}},FragmentSpread(P){let O=P.name.value,W=KX(D,O),E=D.getParentType();if(W&&E&&!MR.doTypesOverlap(D.getSchema(),W,E)){let F=mP.inspect(E),R=mP.inspect(W);D.reportError(new QR.GraphQLError(`Fragment "${O}" cannot be spread here as objects of type "${F}" can never be of type "${R}".`,{nodes:P}))}}}}function KX(D,P){let O=D.getFragment(P);if(O){let W=bX.typeFromAST(D.getSchema(),O.typeCondition);if(wW.isCompositeType(W))return W}}});var jW=J(($R)=>{Object.defineProperty($R,"__esModule",{value:!0});$R.PossibleTypeExtensionsRule=TX;var $X=g0(),KR=i(),jR=jD(),VX=m0(),wR=T(),SD=c(),_X=H2(),f2=l();function TX(D){let P=D.getSchema(),O=Object.create(null);for(let E of D.getDocument().definitions)if(_X.isTypeDefinitionNode(E))O[E.name.value]=E;return{ScalarTypeExtension:W,ObjectTypeExtension:W,InterfaceTypeExtension:W,UnionTypeExtension:W,EnumTypeExtension:W,InputObjectTypeExtension:W};function W(E){let F=E.name.value,R=O[F],S=P===null||P===void 0?void 0:P.getType(F),L;if(R)L=NX[R.kind];else if(S)L=kX(S);if(L){if(L!==E.kind){let B=xX(E.kind);D.reportError(new wR.GraphQLError(`Cannot extend non-${B} type "${F}".`,{nodes:R?[R,E]:E}))}}else{let B=Object.keys({...O,...P===null||P===void 0?void 0:P.getTypeMap()}),Y=VX.suggestionList(F,B);D.reportError(new wR.GraphQLError(`Cannot extend type "${F}" because it is not defined.`+$X.didYouMean(Y),{nodes:E.name}))}}}var NX={[SD.Kind.SCALAR_TYPE_DEFINITION]:SD.Kind.SCALAR_TYPE_EXTENSION,[SD.Kind.OBJECT_TYPE_DEFINITION]:SD.Kind.OBJECT_TYPE_EXTENSION,[SD.Kind.INTERFACE_TYPE_DEFINITION]:SD.Kind.INTERFACE_TYPE_EXTENSION,[SD.Kind.UNION_TYPE_DEFINITION]:SD.Kind.UNION_TYPE_EXTENSION,[SD.Kind.ENUM_TYPE_DEFINITION]:SD.Kind.ENUM_TYPE_EXTENSION,[SD.Kind.INPUT_OBJECT_TYPE_DEFINITION]:SD.Kind.INPUT_OBJECT_TYPE_EXTENSION};function kX(D){if(f2.isScalarType(D))return SD.Kind.SCALAR_TYPE_EXTENSION;if(f2.isObjectType(D))return SD.Kind.OBJECT_TYPE_EXTENSION;if(f2.isInterfaceType(D))return SD.Kind.INTERFACE_TYPE_EXTENSION;if(f2.isUnionType(D))return SD.Kind.UNION_TYPE_EXTENSION;if(f2.isEnumType(D))return SD.Kind.ENUM_TYPE_EXTENSION;if(f2.isInputObjectType(D))return SD.Kind.INPUT_OBJECT_TYPE_EXTENSION;jR.invariant(!1,"Unexpected type: "+KR.inspect(D))}function xX(D){switch(D){case SD.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case SD.Kind.OBJECT_TYPE_EXTENSION:return"object";case SD.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case SD.Kind.UNION_TYPE_EXTENSION:return"union";case SD.Kind.ENUM_TYPE_EXTENSION:return"enum";case SD.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:jR.invariant(!1,"Unexpected kind: "+KR.inspect(D))}}});var VW=J((xR)=>{Object.defineProperty(xR,"__esModule",{value:!0});xR.ProvidedRequiredArgumentsOnDirectivesRule=kR;xR.ProvidedRequiredArgumentsRule=gX;var _R=i(),VR=y0(),TR=T(),NR=c(),vX=mD(),$W=l(),hX=xD();function gX(D){return{...kR(D),Field:{leave(P){var O;let W=D.getFieldDef();if(!W)return!1;let E=new Set((O=P.arguments)===null||O===void 0?void 0:O.map((F)=>F.name.value));for(let F of W.args)if(!E.has(F.name)&&$W.isRequiredArgument(F)){let R=_R.inspect(F.type);D.reportError(new TR.GraphQLError(`Field "${W.name}" argument "${F.name}" of type "${R}" is required, but it was not provided.`,{nodes:P}))}}}}}function kR(D){var P;let O=Object.create(null),W=D.getSchema(),E=(P=W===null||W===void 0?void 0:W.getDirectives())!==null&&P!==void 0?P:hX.specifiedDirectives;for(let S of E)O[S.name]=VR.keyMap(S.args.filter($W.isRequiredArgument),(L)=>L.name);let F=D.getDocument().definitions;for(let S of F)if(S.kind===NR.Kind.DIRECTIVE_DEFINITION){var R;let L=(R=S.arguments)!==null&&R!==void 0?R:[];O[S.name.value]=VR.keyMap(L.filter(yX),(B)=>B.name.value)}return{Directive:{leave(S){let L=S.name.value,B=O[L];if(B){var Y;let Z=(Y=S.arguments)!==null&&Y!==void 0?Y:[],H=new Set(Z.map((C)=>C.name.value));for(let[C,X]of Object.entries(B))if(!H.has(C)){let I=$W.isType(X.type)?_R.inspect(X.type):vX.print(X.type);D.reportError(new TR.GraphQLError(`Directive "@${L}" argument "${C}" of type "${I}" is required, but it was not provided.`,{nodes:S}))}}}}}}function yX(D){return D.type.kind===NR.Kind.NON_NULL_TYPE&&D.defaultValue==null}});var _W=J((gR)=>{Object.defineProperty(gR,"__esModule",{value:!0});gR.ScalarLeafsRule=lX;var fR=i(),vR=T(),hR=l();function lX(D){return{Field(P){let O=D.getType(),W=P.selectionSet;if(O){if(hR.isLeafType(hR.getNamedType(O))){if(W){let E=P.name.value,F=fR.inspect(O);D.reportError(new vR.GraphQLError(`Field "${E}" must not have a selection since type "${F}" has no subfields.`,{nodes:W}))}}else if(!W){let E=P.name.value,F=fR.inspect(O);D.reportError(new vR.GraphQLError(`Field "${E}" of type "${F}" must have a selection of subfields. Did you mean "${E} { ... }"?`,{nodes:P}))}}}}}});var TW=J((yR)=>{Object.defineProperty(yR,"__esModule",{value:!0});yR.printPathArray=dX;function dX(D){return D.map((P)=>typeof P==="number"?"["+P.toString()+"]":"."+P).join("")}});var T8=J((mR)=>{Object.defineProperty(mR,"__esModule",{value:!0});mR.addPath=nX;mR.pathToArray=aX;function nX(D,P,O){return{prev:D,key:P,typename:O}}function aX(D){let P=[],O=D;while(O)P.push(O.key),O=O.prev;return P.reverse()}});var NW=J((cR)=>{Object.defineProperty(cR,"__esModule",{value:!0});cR.coerceInputValue=Wq;var iX=g0(),cP=i(),oX=jD(),eX=xP(),Dq=A0(),B0=T8(),Pq=TW(),Oq=m0(),_0=T(),N8=l();function Wq(D,P,O=Eq){return k8(D,P,O,void 0)}function Eq(D,P,O){let W="Invalid value "+cP.inspect(P);if(D.length>0)W+=` at "value${Pq.printPathArray(D)}"`;throw O.message=W+": "+O.message,O}function k8(D,P,O,W){if(N8.isNonNullType(P)){if(D!=null)return k8(D,P.ofType,O,W);O(B0.pathToArray(W),D,new _0.GraphQLError(`Expected non-nullable type "${cP.inspect(P)}" not to be null.`));return}if(D==null)return null;if(N8.isListType(P)){let E=P.ofType;if(eX.isIterableObject(D))return Array.from(D,(F,R)=>{let S=B0.addPath(W,R,void 0);return k8(F,E,O,S)});return[k8(D,E,O,W)]}if(N8.isInputObjectType(P)){if(!Dq.isObjectLike(D)){O(B0.pathToArray(W),D,new _0.GraphQLError(`Expected type "${P.name}" to be an object.`));return}let E={},F=P.getFields();for(let R of Object.values(F)){let S=D[R.name];if(S===void 0){if(R.defaultValue!==void 0)E[R.name]=R.defaultValue;else if(N8.isNonNullType(R.type)){let L=cP.inspect(R.type);O(B0.pathToArray(W),D,new _0.GraphQLError(`Field "${R.name}" of required type "${L}" was not provided.`))}continue}E[R.name]=k8(S,R.type,O,B0.addPath(W,R.name,P.name))}for(let R of Object.keys(D))if(!F[R]){let S=Oq.suggestionList(R,Object.keys(P.getFields()));O(B0.pathToArray(W),D,new _0.GraphQLError(`Field "${R}" is not defined by type "${P.name}".`+iX.didYouMean(S)))}if(P.isOneOf){let R=Object.keys(E);if(R.length!==1)O(B0.pathToArray(W),D,new _0.GraphQLError(`Exactly one key must be specified for OneOf type "${P.name}".`));let S=R[0],L=E[S];if(L===null)O(B0.pathToArray(W).concat(S),L,new _0.GraphQLError(`Field "${S}" must be non-null.`))}return E}if(N8.isLeafType(P)){let E;try{E=P.parseValue(D)}catch(F){if(F instanceof _0.GraphQLError)O(B0.pathToArray(W),D,F);else O(B0.pathToArray(W),D,new _0.GraphQLError(`Expected type "${P.name}". `+F.message,{originalError:F}));return}if(E===void 0)O(B0.pathToArray(W),D,new _0.GraphQLError(`Expected type "${P.name}".`));return E}oX.invariant(!1,"Unexpected input type: "+cP.inspect(P))}});var f8=J((rR)=>{Object.defineProperty(rR,"__esModule",{value:!0});rR.valueFromAST=x8;var Rq=i(),Sq=jD(),Lq=y0(),v2=c(),A2=l();function x8(D,P,O){if(!D)return;if(D.kind===v2.Kind.VARIABLE){let W=D.name.value;if(O==null||O[W]===void 0)return;let E=O[W];if(E===null&&A2.isNonNullType(P))return;return E}if(A2.isNonNullType(P)){if(D.kind===v2.Kind.NULL)return;return x8(D,P.ofType,O)}if(D.kind===v2.Kind.NULL)return null;if(A2.isListType(P)){let W=P.ofType;if(D.kind===v2.Kind.LIST){let F=[];for(let R of D.values)if(lR(R,O)){if(A2.isNonNullType(W))return;F.push(null)}else{let S=x8(R,W,O);if(S===void 0)return;F.push(S)}return F}let E=x8(D,W,O);if(E===void 0)return;return[E]}if(A2.isInputObjectType(P)){if(D.kind!==v2.Kind.OBJECT)return;let W=Object.create(null),E=Lq.keyMap(D.fields,(F)=>F.name.value);for(let F of Object.values(P.getFields())){let R=E[F.name];if(!R||lR(R.value,O)){if(F.defaultValue!==void 0)W[F.name]=F.defaultValue;else if(A2.isNonNullType(F.type))return;continue}let S=x8(R.value,F.type,O);if(S===void 0)return;W[F.name]=S}if(P.isOneOf){let F=Object.keys(W);if(F.length!==1)return;if(W[F[0]]===null)return}return W}if(A2.isLeafType(P)){let W;try{W=P.parseLiteral(D,O)}catch(E){return}if(W===void 0)return;return W}Sq.invariant(!1,"Unexpected input type: "+Rq.inspect(P))}function lR(D,P){return D.kind===v2.Kind.VARIABLE&&(P==null||P[D.name.value]===void 0)}});var y2=J((sR)=>{Object.defineProperty(sR,"__esModule",{value:!0});sR.getArgumentValues=aR;sR.getDirectiveValues=Uq;sR.getVariableValues=Cq;var h2=i(),Yq=y0(),Zq=TW(),T0=T(),dR=c(),pR=mD(),g2=l(),Hq=NW(),Aq=q0(),nR=f8();function Cq(D,P,O,W){let E=[],F=W===null||W===void 0?void 0:W.maxErrors;try{let R=Jq(D,P,O,(S)=>{if(F!=null&&E.length>=F)throw new T0.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");E.push(S)});if(E.length===0)return{coerced:R}}catch(R){E.push(R)}return{errors:E}}function Jq(D,P,O,W){let E={};for(let F of P){let R=F.variable.name.value,S=Aq.typeFromAST(D,F.type);if(!g2.isInputType(S)){let B=pR.print(F.type);W(new T0.GraphQLError(`Variable "\$${R}" expected value of type "${B}" which cannot be used as an input type.`,{nodes:F.type}));continue}if(!tR(O,R)){if(F.defaultValue)E[R]=nR.valueFromAST(F.defaultValue,S);else if(g2.isNonNullType(S)){let B=h2.inspect(S);W(new T0.GraphQLError(`Variable "\$${R}" of required type "${B}" was not provided.`,{nodes:F}))}continue}let L=O[R];if(L===null&&g2.isNonNullType(S)){let B=h2.inspect(S);W(new T0.GraphQLError(`Variable "\$${R}" of non-null type "${B}" must not be null.`,{nodes:F}));continue}E[R]=Hq.coerceInputValue(L,S,(B,Y,Z)=>{let H=`Variable "\$${R}" got invalid value `+h2.inspect(Y);if(B.length>0)H+=` at "${R}${Zq.printPathArray(B)}"`;W(new T0.GraphQLError(H+"; "+Z.message,{nodes:F,originalError:Z}))})}return E}function aR(D,P,O){var W;let E={},F=(W=P.arguments)!==null&&W!==void 0?W:[],R=Yq.keyMap(F,(S)=>S.name.value);for(let S of D.args){let{name:L,type:B}=S,Y=R[L];if(!Y){if(S.defaultValue!==void 0)E[L]=S.defaultValue;else if(g2.isNonNullType(B))throw new T0.GraphQLError(`Argument "${L}" of required type "${h2.inspect(B)}" was not provided.`,{nodes:P});continue}let Z=Y.value,H=Z.kind===dR.Kind.NULL;if(Z.kind===dR.Kind.VARIABLE){let X=Z.name.value;if(O==null||!tR(O,X)){if(S.defaultValue!==void 0)E[L]=S.defaultValue;else if(g2.isNonNullType(B))throw new T0.GraphQLError(`Argument "${L}" of required type "${h2.inspect(B)}" was provided the variable "\$${X}" which was not provided a runtime value.`,{nodes:Z});continue}H=O[X]==null}if(H&&g2.isNonNullType(B))throw new T0.GraphQLError(`Argument "${L}" of non-null type "${h2.inspect(B)}" must not be null.`,{nodes:Z});let C=nR.valueFromAST(Z,B,O);if(C===void 0)throw new T0.GraphQLError(`Argument "${L}" has invalid value ${pR.print(Z)}.`,{nodes:Z});E[L]=C}return E}function Uq(D,P,O){var W;let E=(W=P.directives)===null||W===void 0?void 0:W.find((F)=>F.name.value===D.name);if(E)return aR(D,E,O)}function tR(D,P){return Object.prototype.hasOwnProperty.call(D,P)}});var rP=J((D4)=>{Object.defineProperty(D4,"__esModule",{value:!0});D4.collectFields=Iq;D4.collectSubfields=Qq;var kW=c(),Gq=l(),iR=xD(),uq=q0(),oR=y2();function Iq(D,P,O,W,E){let F=new Map;return lP(D,P,O,W,E,F,new Set),F}function Qq(D,P,O,W,E){let F=new Map,R=new Set;for(let S of E)if(S.selectionSet)lP(D,P,O,W,S.selectionSet,F,R);return F}function lP(D,P,O,W,E,F,R){for(let S of E.selections)switch(S.kind){case kW.Kind.FIELD:{if(!xW(O,S))continue;let L=Mq(S),B=F.get(L);if(B!==void 0)B.push(S);else F.set(L,[S]);break}case kW.Kind.INLINE_FRAGMENT:{if(!xW(O,S)||!eR(D,S,W))continue;lP(D,P,O,W,S.selectionSet,F,R);break}case kW.Kind.FRAGMENT_SPREAD:{let L=S.name.value;if(R.has(L)||!xW(O,S))continue;R.add(L);let B=P[L];if(!B||!eR(D,B,W))continue;lP(D,P,O,W,B.selectionSet,F,R);break}}}function xW(D,P){let O=oR.getDirectiveValues(iR.GraphQLSkipDirective,P,D);if((O===null||O===void 0?void 0:O.if)===!0)return!1;let W=oR.getDirectiveValues(iR.GraphQLIncludeDirective,P,D);if((W===null||W===void 0?void 0:W.if)===!1)return!1;return!0}function eR(D,P,O){let W=P.typeCondition;if(!W)return!0;let E=uq.typeFromAST(D,W);if(E===O)return!0;if(Gq.isAbstractType(E))return D.isSubType(E,O);return!1}function Mq(D){return D.alias?D.alias.value:D.name.value}});var fW=J((O4)=>{Object.defineProperty(O4,"__esModule",{value:!0});O4.SingleFieldSubscriptionsRule=$q;var P4=T(),Kq=c(),jq=rP();function $q(D){return{OperationDefinition(P){if(P.operation==="subscription"){let O=D.getSchema(),W=O.getSubscriptionType();if(W){let E=P.name?P.name.value:null,F=Object.create(null),R=D.getDocument(),S=Object.create(null);for(let B of R.definitions)if(B.kind===Kq.Kind.FRAGMENT_DEFINITION)S[B.name.value]=B;let L=jq.collectFields(O,S,F,W,P.selectionSet);if(L.size>1){let Z=[...L.values()].slice(1).flat();D.reportError(new P4.GraphQLError(E!=null?`Subscription "${E}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:Z}))}for(let B of L.values())if(B[0].name.value.startsWith("__"))D.reportError(new P4.GraphQLError(E!=null?`Subscription "${E}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:B}))}}}}}});var dP=J((W4)=>{Object.defineProperty(W4,"__esModule",{value:!0});W4.groupBy=_q;function _q(D,P){let O=new Map;for(let W of D){let E=P(W),F=O.get(E);if(F===void 0)O.set(E,[W]);else F.push(W)}return O}});var vW=J((E4)=>{Object.defineProperty(E4,"__esModule",{value:!0});E4.UniqueArgumentDefinitionNamesRule=xq;var Nq=dP(),kq=T();function xq(D){return{DirectiveDefinition(W){var E;let F=(E=W.arguments)!==null&&E!==void 0?E:[];return O(`@${W.name.value}`,F)},InterfaceTypeDefinition:P,InterfaceTypeExtension:P,ObjectTypeDefinition:P,ObjectTypeExtension:P};function P(W){var E;let F=W.name.value,R=(E=W.fields)!==null&&E!==void 0?E:[];for(let L of R){var S;let B=L.name.value,Y=(S=L.arguments)!==null&&S!==void 0?S:[];O(`${F}.${B}`,Y)}return!1}function O(W,E){let F=Nq.groupBy(E,(R)=>R.name.value);for(let[R,S]of F)if(S.length>1)D.reportError(new kq.GraphQLError(`Argument "${W}(${R}:)" can only be defined once.`,{nodes:S.map((L)=>L.name)}));return!1}}});var hW=J((F4)=>{Object.defineProperty(F4,"__esModule",{value:!0});F4.UniqueArgumentNamesRule=gq;var vq=dP(),hq=T();function gq(D){return{Field:P,Directive:P};function P(O){var W;let E=(W=O.arguments)!==null&&W!==void 0?W:[],F=vq.groupBy(E,(R)=>R.name.value);for(let[R,S]of F)if(S.length>1)D.reportError(new hq.GraphQLError(`There can be only one argument named "${R}".`,{nodes:S.map((L)=>L.name)}))}}});var gW=J((S4)=>{Object.defineProperty(S4,"__esModule",{value:!0});S4.UniqueDirectiveNamesRule=mq;var R4=T();function mq(D){let P=Object.create(null),O=D.getSchema();return{DirectiveDefinition(W){let E=W.name.value;if(O!==null&&O!==void 0&&O.getDirective(E)){D.reportError(new R4.GraphQLError(`Directive "@${E}" already exists in the schema. It cannot be redefined.`,{nodes:W.name}));return}if(P[E])D.reportError(new R4.GraphQLError(`There can be only one directive named "@${E}".`,{nodes:[P[E],W.name]}));else P[E]=W.name;return!1}}}});var mW=J((B4)=>{Object.defineProperty(B4,"__esModule",{value:!0});B4.UniqueDirectivesPerLocationRule=dq;var lq=T(),yW=c(),L4=H2(),rq=xD();function dq(D){let P=Object.create(null),O=D.getSchema(),W=O?O.getDirectives():rq.specifiedDirectives;for(let S of W)P[S.name]=!S.isRepeatable;let E=D.getDocument().definitions;for(let S of E)if(S.kind===yW.Kind.DIRECTIVE_DEFINITION)P[S.name.value]=!S.repeatable;let F=Object.create(null),R=Object.create(null);return{enter(S){if(!("directives"in S)||!S.directives)return;let L;if(S.kind===yW.Kind.SCHEMA_DEFINITION||S.kind===yW.Kind.SCHEMA_EXTENSION)L=F;else if(L4.isTypeDefinitionNode(S)||L4.isTypeExtensionNode(S)){let B=S.name.value;if(L=R[B],L===void 0)R[B]=L=Object.create(null)}else L=Object.create(null);for(let B of S.directives){let Y=B.name.value;if(P[Y])if(L[Y])D.reportError(new lq.GraphQLError(`The directive "@${Y}" can only be used once at this location.`,{nodes:[L[Y],B]}));else L[Y]=B}}}}});var cW=J((Z4)=>{Object.defineProperty(Z4,"__esModule",{value:!0});Z4.UniqueEnumValueNamesRule=aq;var Y4=T(),nq=l();function aq(D){let P=D.getSchema(),O=P?P.getTypeMap():Object.create(null),W=Object.create(null);return{EnumTypeDefinition:E,EnumTypeExtension:E};function E(F){var R;let S=F.name.value;if(!W[S])W[S]=Object.create(null);let L=(R=F.values)!==null&&R!==void 0?R:[],B=W[S];for(let Y of L){let Z=Y.name.value,H=O[S];if(nq.isEnumType(H)&&H.getValue(Z))D.reportError(new Y4.GraphQLError(`Enum value "${S}.${Z}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:Y.name}));else if(B[Z])D.reportError(new Y4.GraphQLError(`Enum value "${S}.${Z}" can only be defined once.`,{nodes:[B[Z],Y.name]}));else B[Z]=Y.name}return!1}}});var rW=J((A4)=>{Object.defineProperty(A4,"__esModule",{value:!0});A4.UniqueFieldDefinitionNamesRule=sq;var H4=T(),lW=l();function sq(D){let P=D.getSchema(),O=P?P.getTypeMap():Object.create(null),W=Object.create(null);return{InputObjectTypeDefinition:E,InputObjectTypeExtension:E,InterfaceTypeDefinition:E,InterfaceTypeExtension:E,ObjectTypeDefinition:E,ObjectTypeExtension:E};function E(F){var R;let S=F.name.value;if(!W[S])W[S]=Object.create(null);let L=(R=F.fields)!==null&&R!==void 0?R:[],B=W[S];for(let Y of L){let Z=Y.name.value;if(iq(O[S],Z))D.reportError(new H4.GraphQLError(`Field "${S}.${Z}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:Y.name}));else if(B[Z])D.reportError(new H4.GraphQLError(`Field "${S}.${Z}" can only be defined once.`,{nodes:[B[Z],Y.name]}));else B[Z]=Y.name}return!1}}function iq(D,P){if(lW.isObjectType(D)||lW.isInterfaceType(D)||lW.isInputObjectType(D))return D.getFields()[P]!=null;return!1}});var dW=J((C4)=>{Object.defineProperty(C4,"__esModule",{value:!0});C4.UniqueFragmentNamesRule=Dz;var eq=T();function Dz(D){let P=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(O){let W=O.name.value;if(P[W])D.reportError(new eq.GraphQLError(`There can be only one fragment named "${W}".`,{nodes:[P[W],O.name]}));else P[W]=O.name;return!1}}}});var pW=J((J4)=>{Object.defineProperty(J4,"__esModule",{value:!0});J4.UniqueInputFieldNamesRule=Ez;var Oz=jD(),Wz=T();function Ez(D){let P=[],O=Object.create(null);return{ObjectValue:{enter(){P.push(O),O=Object.create(null)},leave(){let W=P.pop();W||Oz.invariant(!1),O=W}},ObjectField(W){let E=W.name.value;if(O[E])D.reportError(new Wz.GraphQLError(`There can be only one input field named "${E}".`,{nodes:[O[E],W.name]}));else O[E]=W.name}}}});var nW=J((U4)=>{Object.defineProperty(U4,"__esModule",{value:!0});U4.UniqueOperationNamesRule=Sz;var Rz=T();function Sz(D){let P=Object.create(null);return{OperationDefinition(O){let W=O.name;if(W)if(P[W.value])D.reportError(new Rz.GraphQLError(`There can be only one operation named "${W.value}".`,{nodes:[P[W.value],W]}));else P[W.value]=W;return!1},FragmentDefinition:()=>!1}}});var aW=J((q4)=>{Object.defineProperty(q4,"__esModule",{value:!0});q4.UniqueOperationTypesRule=Bz;var X4=T();function Bz(D){let P=D.getSchema(),O=Object.create(null),W=P?{query:P.getQueryType(),mutation:P.getMutationType(),subscription:P.getSubscriptionType()}:{};return{SchemaDefinition:E,SchemaExtension:E};function E(F){var R;let S=(R=F.operationTypes)!==null&&R!==void 0?R:[];for(let L of S){let B=L.operation,Y=O[B];if(W[B])D.reportError(new X4.GraphQLError(`Type for ${B} already defined in the schema. It cannot be redefined.`,{nodes:L}));else if(Y)D.reportError(new X4.GraphQLError(`There can be only one ${B} type in schema.`,{nodes:[Y,L]}));else O[B]=L}return!1}}});var tW=J((G4)=>{Object.defineProperty(G4,"__esModule",{value:!0});G4.UniqueTypeNamesRule=Zz;var z4=T();function Zz(D){let P=Object.create(null),O=D.getSchema();return{ScalarTypeDefinition:W,ObjectTypeDefinition:W,InterfaceTypeDefinition:W,UnionTypeDefinition:W,EnumTypeDefinition:W,InputObjectTypeDefinition:W};function W(E){let F=E.name.value;if(O!==null&&O!==void 0&&O.getType(F)){D.reportError(new z4.GraphQLError(`Type "${F}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:E.name}));return}if(P[F])D.reportError(new z4.GraphQLError(`There can be only one type named "${F}".`,{nodes:[P[F],E.name]}));else P[F]=E.name;return!1}}});var sW=J((u4)=>{Object.defineProperty(u4,"__esModule",{value:!0});u4.UniqueVariableNamesRule=Jz;var Az=dP(),Cz=T();function Jz(D){return{OperationDefinition(P){var O;let W=(O=P.variableDefinitions)!==null&&O!==void 0?O:[],E=Az.groupBy(W,(F)=>F.variable.name.value);for(let[F,R]of E)if(R.length>1)D.reportError(new Cz.GraphQLError(`There can be only one variable named "\$${F}".`,{nodes:R.map((S)=>S.variable.name)}))}}}});var oW=J((I4)=>{Object.defineProperty(I4,"__esModule",{value:!0});I4.ValuesOfCorrectTypeRule=Gz;var Xz=g0(),v8=i(),qz=y0(),zz=m0(),G0=T(),iW=c(),pP=mD(),z0=l();function Gz(D){let P={};return{OperationDefinition:{enter(){P={}}},VariableDefinition(O){P[O.variable.name.value]=O},ListValue(O){let W=z0.getNullableType(D.getParentInputType());if(!z0.isListType(W))return C2(D,O),!1},ObjectValue(O){let W=z0.getNamedType(D.getInputType());if(!z0.isInputObjectType(W))return C2(D,O),!1;let E=qz.keyMap(O.fields,(F)=>F.name.value);for(let F of Object.values(W.getFields()))if(!E[F.name]&&z0.isRequiredInputField(F)){let S=v8.inspect(F.type);D.reportError(new G0.GraphQLError(`Field "${W.name}.${F.name}" of required type "${S}" was not provided.`,{nodes:O}))}if(W.isOneOf)uz(D,O,W,E,P)},ObjectField(O){let W=z0.getNamedType(D.getParentInputType());if(!D.getInputType()&&z0.isInputObjectType(W)){let F=zz.suggestionList(O.name.value,Object.keys(W.getFields()));D.reportError(new G0.GraphQLError(`Field "${O.name.value}" is not defined by type "${W.name}".`+Xz.didYouMean(F),{nodes:O}))}},NullValue(O){let W=D.getInputType();if(z0.isNonNullType(W))D.reportError(new G0.GraphQLError(`Expected value of type "${v8.inspect(W)}", found ${pP.print(O)}.`,{nodes:O}))},EnumValue:(O)=>C2(D,O),IntValue:(O)=>C2(D,O),FloatValue:(O)=>C2(D,O),StringValue:(O)=>C2(D,O),BooleanValue:(O)=>C2(D,O)}}function C2(D,P){let O=D.getInputType();if(!O)return;let W=z0.getNamedType(O);if(!z0.isLeafType(W)){let E=v8.inspect(O);D.reportError(new G0.GraphQLError(`Expected value of type "${E}", found ${pP.print(P)}.`,{nodes:P}));return}try{if(W.parseLiteral(P,void 0)===void 0){let F=v8.inspect(O);D.reportError(new G0.GraphQLError(`Expected value of type "${F}", found ${pP.print(P)}.`,{nodes:P}))}}catch(E){let F=v8.inspect(O);if(E instanceof G0.GraphQLError)D.reportError(E);else D.reportError(new G0.GraphQLError(`Expected value of type "${F}", found ${pP.print(P)}; `+E.message,{nodes:P,originalError:E}))}}function uz(D,P,O,W,E){var F;let R=Object.keys(W);if(R.length!==1){D.reportError(new G0.GraphQLError(`OneOf Input Object "${O.name}" must specify exactly one key.`,{nodes:[P]}));return}let L=(F=W[R[0]])===null||F===void 0?void 0:F.value,B=!L||L.kind===iW.Kind.NULL,Y=(L===null||L===void 0?void 0:L.kind)===iW.Kind.VARIABLE;if(B){D.reportError(new G0.GraphQLError(`Field "${O.name}.${R[0]}" must be non-null.`,{nodes:[P]}));return}if(Y){let Z=L.name.value;if(E[Z].type.kind!==iW.Kind.NON_NULL_TYPE)D.reportError(new G0.GraphQLError(`Variable "${Z}" must be non-nullable to be used for OneOf Input Object "${O.name}".`,{nodes:[P]}))}}});var eW=J((Q4)=>{Object.defineProperty(Q4,"__esModule",{value:!0});Q4.VariablesAreInputTypesRule=Kz;var Qz=T(),Mz=mD(),bz=l(),wz=q0();function Kz(D){return{VariableDefinition(P){let O=wz.typeFromAST(D.getSchema(),P.type);if(O!==void 0&&!bz.isInputType(O)){let W=P.variable.name.value,E=Mz.print(P.type);D.reportError(new Qz.GraphQLError(`Variable "\$${W}" cannot be non-input type "${E}".`,{nodes:P.type}))}}}}});var D3=J((K4)=>{Object.defineProperty(K4,"__esModule",{value:!0});K4.VariablesInAllowedPositionRule=Tz;var M4=i(),$z=T(),Vz=c(),b4=l(),w4=G8(),_z=q0();function Tz(D){let P=Object.create(null);return{OperationDefinition:{enter(){P=Object.create(null)},leave(O){let W=D.getRecursiveVariableUsages(O);for(let{node:E,type:F,defaultValue:R}of W){let S=E.name.value,L=P[S];if(L&&F){let B=D.getSchema(),Y=_z.typeFromAST(B,L.type);if(Y&&!Nz(B,Y,L.defaultValue,F,R)){let Z=M4.inspect(Y),H=M4.inspect(F);D.reportError(new $z.GraphQLError(`Variable "\$${S}" of type "${Z}" used in position expecting type "${H}".`,{nodes:[L,E]}))}}}}},VariableDefinition(O){P[O.variable.name.value]=O}}}function Nz(D,P,O,W,E){if(b4.isNonNullType(W)&&!b4.isNonNullType(P)){if(!(O!=null&&O.kind!==Vz.Kind.NULL)&&E===void 0)return!1;let S=W.ofType;return w4.isTypeSubTypeOf(D,P,S)}return w4.isTypeSubTypeOf(D,P,W)}});var P3=J((f4)=>{Object.defineProperty(f4,"__esModule",{value:!0});f4.specifiedSDLRules=f4.specifiedRules=f4.recommendedRules=void 0;var xz=OW(),fz=WW(),vz=EW(),j4=FW(),$4=LW(),hz=BW(),V4=ZW(),gz=HW(),yz=AW(),mz=CW(),cz=JW(),lz=UW(),rz=XW(),dz=qW(),pz=bW(),nz=KW(),az=jW(),_4=VW(),tz=_W(),sz=fW(),iz=vW(),T4=hW(),oz=gW(),N4=mW(),ez=cW(),DG=rW(),PG=dW(),k4=pW(),OG=nW(),WG=aW(),EG=tW(),FG=sW(),RG=oW(),SG=eW(),LG=D3(),x4=Object.freeze([mz.MaxIntrospectionDepthRule]);f4.recommendedRules=x4;var BG=Object.freeze([xz.ExecutableDefinitionsRule,OG.UniqueOperationNamesRule,gz.LoneAnonymousOperationRule,sz.SingleFieldSubscriptionsRule,V4.KnownTypeNamesRule,vz.FragmentsOnCompositeTypesRule,SG.VariablesAreInputTypesRule,tz.ScalarLeafsRule,fz.FieldsOnCorrectTypeRule,PG.UniqueFragmentNamesRule,hz.KnownFragmentNamesRule,rz.NoUnusedFragmentsRule,nz.PossibleFragmentSpreadsRule,cz.NoFragmentCyclesRule,FG.UniqueVariableNamesRule,lz.NoUndefinedVariablesRule,dz.NoUnusedVariablesRule,$4.KnownDirectivesRule,N4.UniqueDirectivesPerLocationRule,j4.KnownArgumentNamesRule,T4.UniqueArgumentNamesRule,RG.ValuesOfCorrectTypeRule,_4.ProvidedRequiredArgumentsRule,LG.VariablesInAllowedPositionRule,pz.OverlappingFieldsCanBeMergedRule,k4.UniqueInputFieldNamesRule,...x4]);f4.specifiedRules=BG;var YG=Object.freeze([yz.LoneSchemaDefinitionRule,WG.UniqueOperationTypesRule,EG.UniqueTypeNamesRule,ez.UniqueEnumValueNamesRule,DG.UniqueFieldDefinitionNamesRule,iz.UniqueArgumentDefinitionNamesRule,oz.UniqueDirectiveNamesRule,V4.KnownTypeNamesRule,$4.KnownDirectivesRule,N4.UniqueDirectivesPerLocationRule,az.PossibleTypeExtensionsRule,j4.KnownArgumentNamesOnDirectivesRule,T4.UniqueArgumentNamesRule,k4.UniqueInputFieldNamesRule,_4.ProvidedRequiredArgumentsOnDirectivesRule]);f4.specifiedSDLRules=YG});var O3=J((c4)=>{Object.defineProperty(c4,"__esModule",{value:!0});c4.ValidationContext=c4.SDLValidationContext=c4.ASTValidationContext=void 0;var h4=c(),AG=E2(),g4=vP();class nP{constructor(D,P){this._ast=D,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=P}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(D){this._onError(D)}getDocument(){return this._ast}getFragment(D){let P;if(this._fragments)P=this._fragments;else{P=Object.create(null);for(let O of this.getDocument().definitions)if(O.kind===h4.Kind.FRAGMENT_DEFINITION)P[O.name.value]=O;this._fragments=P}return P[D]}getFragmentSpreads(D){let P=this._fragmentSpreads.get(D);if(!P){P=[];let O=[D],W;while(W=O.pop())for(let E of W.selections)if(E.kind===h4.Kind.FRAGMENT_SPREAD)P.push(E);else if(E.selectionSet)O.push(E.selectionSet);this._fragmentSpreads.set(D,P)}return P}getRecursivelyReferencedFragments(D){let P=this._recursivelyReferencedFragments.get(D);if(!P){P=[];let O=Object.create(null),W=[D.selectionSet],E;while(E=W.pop())for(let F of this.getFragmentSpreads(E)){let R=F.name.value;if(O[R]!==!0){O[R]=!0;let S=this.getFragment(R);if(S)P.push(S),W.push(S.selectionSet)}}this._recursivelyReferencedFragments.set(D,P)}return P}}c4.ASTValidationContext=nP;class y4 extends nP{constructor(D,P,O){super(D,O);this._schema=P}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}c4.SDLValidationContext=y4;class m4 extends nP{constructor(D,P,O,W){super(P,W);this._schema=D,this._typeInfo=O,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(D){let P=this._variableUsages.get(D);if(!P){let O=[],W=new g4.TypeInfo(this._schema);AG.visit(D,g4.visitWithTypeInfo(W,{VariableDefinition:()=>!1,Variable(E){O.push({node:E,type:W.getInputType(),defaultValue:W.getDefaultValue()})}})),P=O,this._variableUsages.set(D,P)}return P}getRecursiveVariableUsages(D){let P=this._recursiveVariableUsages.get(D);if(!P){P=this.getVariableUsages(D);for(let O of this.getRecursivelyReferencedFragments(D))P=P.concat(this.getVariableUsages(O));this._recursiveVariableUsages.set(D,P)}return P}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()}}c4.ValidationContext=m4});var h8=J((n4)=>{Object.defineProperty(n4,"__esModule",{value:!0});n4.assertValidSDL=GG;n4.assertValidSDLExtension=uG;n4.validate=zG;n4.validateSDL=W3;var UG=ND(),XG=T(),aP=E2(),qG=V8(),r4=vP(),d4=P3(),p4=O3();function zG(D,P,O=d4.specifiedRules,W,E=new r4.TypeInfo(D)){var F;let R=(F=W===null||W===void 0?void 0:W.maxErrors)!==null&&F!==void 0?F:100;P||UG.devAssert(!1,"Must provide document."),qG.assertValidSchema(D);let S=Object.freeze({}),L=[],B=new p4.ValidationContext(D,P,E,(Z)=>{if(L.length>=R)throw L.push(new XG.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),S;L.push(Z)}),Y=aP.visitInParallel(O.map((Z)=>Z(B)));try{aP.visit(P,r4.visitWithTypeInfo(E,Y))}catch(Z){if(Z!==S)throw Z}return L}function W3(D,P,O=d4.specifiedSDLRules){let W=[],E=new p4.SDLValidationContext(D,P,(R)=>{W.push(R)}),F=O.map((R)=>R(E));return aP.visit(D,aP.visitInParallel(F)),W}function GG(D){let P=W3(D);if(P.length!==0)throw new Error(P.map((O)=>O.message).join("\n\n"))}function uG(D,P){let O=W3(D,P);if(O.length!==0)throw new Error(O.map((W)=>W.message).join("\n\n"))}});var t4=J((a4)=>{Object.defineProperty(a4,"__esModule",{value:!0});a4.memoize3=wG;function wG(D){let P;return function O(W,E,F){if(P===void 0)P=new WeakMap;let R=P.get(W);if(R===void 0)R=new WeakMap,P.set(W,R);let S=R.get(E);if(S===void 0)S=new WeakMap,R.set(E,S);let L=S.get(F);if(L===void 0)L=D(W,E,F),S.set(F,L);return L}}});var i4=J((s4)=>{Object.defineProperty(s4,"__esModule",{value:!0});s4.promiseForObject=jG;function jG(D){return Promise.all(Object.values(D)).then((P)=>{let O=Object.create(null);for(let[W,E]of Object.keys(D).entries())O[E]=P[W];return O})}});var e4=J((o4)=>{Object.defineProperty(o4,"__esModule",{value:!0});o4.promiseReduce=_G;var VG=AP();function _G(D,P,O){let W=O;for(let E of D)W=VG.isPromise(W)?W.then((F)=>P(F,E)):P(W,E);return W}});var O9=J((P9)=>{Object.defineProperty(P9,"__esModule",{value:!0});P9.toError=kG;var NG=i();function kG(D){return D instanceof Error?D:new D9(D)}class D9 extends Error{constructor(D){super("Unexpected error value: "+NG.inspect(D));this.name="NonErrorThrown",this.thrownValue=D}}});var tP=J((W9)=>{Object.defineProperty(W9,"__esModule",{value:!0});W9.locatedError=hG;var fG=O9(),vG=T();function hG(D,P,O){var W;let E=fG.toError(D);if(gG(E))return E;return new vG.GraphQLError(E.message,{nodes:(W=E.nodes)!==null&&W!==void 0?W:P,source:E.source,positions:E.positions,path:O,originalError:E})}function gG(D){return Array.isArray(D.path)}});var y8=J((X9)=>{Object.defineProperty(X9,"__esModule",{value:!0});X9.assertValidExecutionArguments=Z9;X9.buildExecutionContext=H9;X9.buildResolveInfo=C9;X9.defaultTypeResolver=X9.defaultFieldResolver=void 0;X9.execute=Y9;X9.executeSync=nG;X9.getFieldDef=U9;var F3=ND(),J2=i(),mG=jD(),cG=xP(),L3=A0(),Y0=AP(),lG=t4(),U2=T8(),E9=i4(),rG=e4(),aD=T(),iP=tP(),E3=C0(),F9=c(),d0=l(),m2=nD(),dG=V8(),L9=rP(),B9=y2(),pG=lG.memoize3((D,P,O)=>L9.collectSubfields(D.schema,D.fragments,D.variableValues,P,O));function Y9(D){arguments.length<2||F3.devAssert(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:P,document:O,variableValues:W,rootValue:E}=D;Z9(P,O,W);let F=H9(D);if(!("schema"in F))return{errors:F};try{let{operation:R}=F,S=aG(F,R,E);if(Y0.isPromise(S))return S.then((L)=>sP(L,F.errors),(L)=>{return F.errors.push(L),sP(null,F.errors)});return sP(S,F.errors)}catch(R){return F.errors.push(R),sP(null,F.errors)}}function nG(D){let P=Y9(D);if(Y0.isPromise(P))throw new Error("GraphQL execution failed to complete synchronously.");return P}function sP(D,P){return P.length===0?{data:D}:{errors:P,data:D}}function Z9(D,P,O){P||F3.devAssert(!1,"Must provide document."),dG.assertValidSchema(D),O==null||L3.isObjectLike(O)||F3.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 H9(D){var P,O;let{schema:W,document:E,rootValue:F,contextValue:R,variableValues:S,operationName:L,fieldResolver:B,typeResolver:Y,subscribeFieldResolver:Z}=D,H,C=Object.create(null);for(let $ of E.definitions)switch($.kind){case F9.Kind.OPERATION_DEFINITION:if(L==null){if(H!==void 0)return[new aD.GraphQLError("Must provide operation name if query contains multiple operations.")];H=$}else if(((P=$.name)===null||P===void 0?void 0:P.value)===L)H=$;break;case F9.Kind.FRAGMENT_DEFINITION:C[$.name.value]=$;break;default:}if(!H){if(L!=null)return[new aD.GraphQLError(`Unknown operation named "${L}".`)];return[new aD.GraphQLError("Must provide an operation.")]}let X=(O=H.variableDefinitions)!==null&&O!==void 0?O:[],I=B9.getVariableValues(W,X,S!==null&&S!==void 0?S:{},{maxErrors:50});if(I.errors)return I.errors;return{schema:W,fragments:C,rootValue:F,contextValue:R,operation:H,variableValues:I.coerced,fieldResolver:B!==null&&B!==void 0?B:S3,typeResolver:Y!==null&&Y!==void 0?Y:J9,subscribeFieldResolver:Z!==null&&Z!==void 0?Z:S3,errors:[]}}function aG(D,P,O){let W=D.schema.getRootType(P.operation);if(W==null)throw new aD.GraphQLError(`Schema is not configured to execute ${P.operation} operation.`,{nodes:P});let E=L9.collectFields(D.schema,D.fragments,D.variableValues,W,P.selectionSet),F=void 0;switch(P.operation){case E3.OperationTypeNode.QUERY:return oP(D,W,O,F,E);case E3.OperationTypeNode.MUTATION:return tG(D,W,O,F,E);case E3.OperationTypeNode.SUBSCRIPTION:return oP(D,W,O,F,E)}}function tG(D,P,O,W,E){return rG.promiseReduce(E.entries(),(F,[R,S])=>{let L=U2.addPath(W,R,P.name),B=A9(D,P,O,S,L);if(B===void 0)return F;if(Y0.isPromise(B))return B.then((Y)=>{return F[R]=Y,F});return F[R]=B,F},Object.create(null))}function oP(D,P,O,W,E){let F=Object.create(null),R=!1;try{for(let[S,L]of E.entries()){let B=U2.addPath(W,S,P.name),Y=A9(D,P,O,L,B);if(Y!==void 0){if(F[S]=Y,Y0.isPromise(Y))R=!0}}}catch(S){if(R)return E9.promiseForObject(F).finally(()=>{throw S});throw S}if(!R)return F;return E9.promiseForObject(F)}function A9(D,P,O,W,E){var F;let R=U9(D.schema,P,W[0]);if(!R)return;let S=R.type,L=(F=R.resolve)!==null&&F!==void 0?F:D.fieldResolver,B=C9(D,R,W,P,E);try{let Y=B9.getArgumentValues(R,W[0],D.variableValues),Z=D.contextValue,H=L(O,Y,Z,B),C;if(Y0.isPromise(H))C=H.then((X)=>g8(D,S,W,B,E,X));else C=g8(D,S,W,B,E,H);if(Y0.isPromise(C))return C.then(void 0,(X)=>{let I=iP.locatedError(X,W,U2.pathToArray(E));return eP(I,S,D)});return C}catch(Y){let Z=iP.locatedError(Y,W,U2.pathToArray(E));return eP(Z,S,D)}}function C9(D,P,O,W,E){return{fieldName:P.name,fieldNodes:O,returnType:P.type,parentType:W,path:E,schema:D.schema,fragments:D.fragments,rootValue:D.rootValue,operation:D.operation,variableValues:D.variableValues}}function eP(D,P,O){if(d0.isNonNullType(P))throw D;return O.errors.push(D),null}function g8(D,P,O,W,E,F){if(F instanceof Error)throw F;if(d0.isNonNullType(P)){let R=g8(D,P.ofType,O,W,E,F);if(R===null)throw new Error(`Cannot return null for non-nullable field ${W.parentType.name}.${W.fieldName}.`);return R}if(F==null)return null;if(d0.isListType(P))return sG(D,P,O,W,E,F);if(d0.isLeafType(P))return iG(P,F);if(d0.isAbstractType(P))return oG(D,P,O,W,E,F);if(d0.isObjectType(P))return R3(D,P,O,W,E,F);mG.invariant(!1,"Cannot complete value of unexpected output type: "+J2.inspect(P))}function sG(D,P,O,W,E,F){if(!cG.isIterableObject(F))throw new aD.GraphQLError(`Expected Iterable, but did not find one for field "${W.parentType.name}.${W.fieldName}".`);let R=P.ofType,S=!1,L=Array.from(F,(B,Y)=>{let Z=U2.addPath(E,Y,void 0);try{let H;if(Y0.isPromise(B))H=B.then((C)=>g8(D,R,O,W,Z,C));else H=g8(D,R,O,W,Z,B);if(Y0.isPromise(H))return S=!0,H.then(void 0,(C)=>{let X=iP.locatedError(C,O,U2.pathToArray(Z));return eP(X,R,D)});return H}catch(H){let C=iP.locatedError(H,O,U2.pathToArray(Z));return eP(C,R,D)}});return S?Promise.all(L):L}function iG(D,P){let O=D.serialize(P);if(O==null)throw new Error(`Expected \`${J2.inspect(D)}.serialize(${J2.inspect(P)})\` to return non-nullable value, returned: ${J2.inspect(O)}`);return O}function oG(D,P,O,W,E,F){var R;let S=(R=P.resolveType)!==null&&R!==void 0?R:D.typeResolver,L=D.contextValue,B=S(F,L,W,P);if(Y0.isPromise(B))return B.then((Y)=>R3(D,R9(Y,D,P,O,W,F),O,W,E,F));return R3(D,R9(B,D,P,O,W,F),O,W,E,F)}function R9(D,P,O,W,E,F){if(D==null)throw new aD.GraphQLError(`Abstract type "${O.name}" must resolve to an Object type at runtime for field "${E.parentType.name}.${E.fieldName}". Either the "${O.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,W);if(d0.isObjectType(D))throw new aD.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 aD.GraphQLError(`Abstract type "${O.name}" must resolve to an Object type at runtime for field "${E.parentType.name}.${E.fieldName}" with value ${J2.inspect(F)}, received "${J2.inspect(D)}".`);let R=P.schema.getType(D);if(R==null)throw new aD.GraphQLError(`Abstract type "${O.name}" was resolved to a type "${D}" that does not exist inside the schema.`,{nodes:W});if(!d0.isObjectType(R))throw new aD.GraphQLError(`Abstract type "${O.name}" was resolved to a non-object type "${D}".`,{nodes:W});if(!P.schema.isSubType(O,R))throw new aD.GraphQLError(`Runtime Object type "${R.name}" is not a possible type for "${O.name}".`,{nodes:W});return R}function R3(D,P,O,W,E,F){let R=pG(D,P,O);if(P.isTypeOf){let S=P.isTypeOf(F,D.contextValue,W);if(Y0.isPromise(S))return S.then((L)=>{if(!L)throw S9(P,F,O);return oP(D,P,F,E,R)});if(!S)throw S9(P,F,O)}return oP(D,P,F,E,R)}function S9(D,P,O){return new aD.GraphQLError(`Expected value of type "${D.name}" but got: ${J2.inspect(P)}.`,{nodes:O})}var J9=function(D,P,O,W){if(L3.isObjectLike(D)&&typeof D.__typename==="string")return D.__typename;let E=O.schema.getPossibleTypes(W),F=[];for(let R=0;R<E.length;R++){let S=E[R];if(S.isTypeOf){let L=S.isTypeOf(D,P,O);if(Y0.isPromise(L))F[R]=L;else if(L)return S.name}}if(F.length)return Promise.all(F).then((R)=>{for(let S=0;S<R.length;S++)if(R[S])return E[S].name})};X9.defaultTypeResolver=J9;var S3=function(D,P,O,W){if(L3.isObjectLike(D)||typeof D==="function"){let E=D[W.fieldName];if(typeof E==="function")return D[W.fieldName](P,O,W);return E}};X9.defaultFieldResolver=S3;function U9(D,P,O){let W=O.name.value;if(W===m2.SchemaMetaFieldDef.name&&D.getQueryType()===P)return m2.SchemaMetaFieldDef;else if(W===m2.TypeMetaFieldDef.name&&D.getQueryType()===P)return m2.TypeMetaFieldDef;else if(W===m2.TypeNameMetaFieldDef.name)return m2.TypeNameMetaFieldDef;return P.getFields()[W]}});var u9=J((G9)=>{Object.defineProperty(G9,"__esModule",{value:!0});G9.graphql=Hu;G9.graphqlSync=Au;var Ru=ND(),Su=AP(),Lu=_2(),Bu=V8(),Yu=h8(),Zu=y8();function Hu(D){return new Promise((P)=>P(z9(D)))}function Au(D){let P=z9(D);if(Su.isPromise(P))throw new Error("GraphQL execution failed to complete synchronously.");return P}function z9(D){arguments.length<2||Ru.devAssert(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:P,source:O,rootValue:W,contextValue:E,variableValues:F,operationName:R,fieldResolver:S,typeResolver:L}=D,B=Bu.validateSchema(P);if(B.length>0)return{errors:B};let Y;try{Y=Lu.parse(O)}catch(H){return{errors:[H]}}let Z=Yu.validate(P,Y);if(Z.length>0)return{errors:Z};return Zu.execute({schema:P,document:Y,rootValue:W,contextValue:E,variableValues:F,operationName:R,fieldResolver:S,typeResolver:L})}});var M9=J((z)=>{Object.defineProperty(z,"__esModule",{value:!0});Object.defineProperty(z,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Z0.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(z,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return N0.GRAPHQL_MAX_INT}});Object.defineProperty(z,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return N0.GRAPHQL_MIN_INT}});Object.defineProperty(z,"GraphQLBoolean",{enumerable:!0,get:function(){return N0.GraphQLBoolean}});Object.defineProperty(z,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Z0.GraphQLDeprecatedDirective}});Object.defineProperty(z,"GraphQLDirective",{enumerable:!0,get:function(){return Z0.GraphQLDirective}});Object.defineProperty(z,"GraphQLEnumType",{enumerable:!0,get:function(){return k.GraphQLEnumType}});Object.defineProperty(z,"GraphQLFloat",{enumerable:!0,get:function(){return N0.GraphQLFloat}});Object.defineProperty(z,"GraphQLID",{enumerable:!0,get:function(){return N0.GraphQLID}});Object.defineProperty(z,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Z0.GraphQLIncludeDirective}});Object.defineProperty(z,"GraphQLInputObjectType",{enumerable:!0,get:function(){return k.GraphQLInputObjectType}});Object.defineProperty(z,"GraphQLInt",{enumerable:!0,get:function(){return N0.GraphQLInt}});Object.defineProperty(z,"GraphQLInterfaceType",{enumerable:!0,get:function(){return k.GraphQLInterfaceType}});Object.defineProperty(z,"GraphQLList",{enumerable:!0,get:function(){return k.GraphQLList}});Object.defineProperty(z,"GraphQLNonNull",{enumerable:!0,get:function(){return k.GraphQLNonNull}});Object.defineProperty(z,"GraphQLObjectType",{enumerable:!0,get:function(){return k.GraphQLObjectType}});Object.defineProperty(z,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Z0.GraphQLOneOfDirective}});Object.defineProperty(z,"GraphQLScalarType",{enumerable:!0,get:function(){return k.GraphQLScalarType}});Object.defineProperty(z,"GraphQLSchema",{enumerable:!0,get:function(){return B3.GraphQLSchema}});Object.defineProperty(z,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Z0.GraphQLSkipDirective}});Object.defineProperty(z,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Z0.GraphQLSpecifiedByDirective}});Object.defineProperty(z,"GraphQLString",{enumerable:!0,get:function(){return N0.GraphQLString}});Object.defineProperty(z,"GraphQLUnionType",{enumerable:!0,get:function(){return k.GraphQLUnionType}});Object.defineProperty(z,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return vD.SchemaMetaFieldDef}});Object.defineProperty(z,"TypeKind",{enumerable:!0,get:function(){return vD.TypeKind}});Object.defineProperty(z,"TypeMetaFieldDef",{enumerable:!0,get:function(){return vD.TypeMetaFieldDef}});Object.defineProperty(z,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return vD.TypeNameMetaFieldDef}});Object.defineProperty(z,"__Directive",{enumerable:!0,get:function(){return vD.__Directive}});Object.defineProperty(z,"__DirectiveLocation",{enumerable:!0,get:function(){return vD.__DirectiveLocation}});Object.defineProperty(z,"__EnumValue",{enumerable:!0,get:function(){return vD.__EnumValue}});Object.defineProperty(z,"__Field",{enumerable:!0,get:function(){return vD.__Field}});Object.defineProperty(z,"__InputValue",{enumerable:!0,get:function(){return vD.__InputValue}});Object.defineProperty(z,"__Schema",{enumerable:!0,get:function(){return vD.__Schema}});Object.defineProperty(z,"__Type",{enumerable:!0,get:function(){return vD.__Type}});Object.defineProperty(z,"__TypeKind",{enumerable:!0,get:function(){return vD.__TypeKind}});Object.defineProperty(z,"assertAbstractType",{enumerable:!0,get:function(){return k.assertAbstractType}});Object.defineProperty(z,"assertCompositeType",{enumerable:!0,get:function(){return k.assertCompositeType}});Object.defineProperty(z,"assertDirective",{enumerable:!0,get:function(){return Z0.assertDirective}});Object.defineProperty(z,"assertEnumType",{enumerable:!0,get:function(){return k.assertEnumType}});Object.defineProperty(z,"assertEnumValueName",{enumerable:!0,get:function(){return Q9.assertEnumValueName}});Object.defineProperty(z,"assertInputObjectType",{enumerable:!0,get:function(){return k.assertInputObjectType}});Object.defineProperty(z,"assertInputType",{enumerable:!0,get:function(){return k.assertInputType}});Object.defineProperty(z,"assertInterfaceType",{enumerable:!0,get:function(){return k.assertInterfaceType}});Object.defineProperty(z,"assertLeafType",{enumerable:!0,get:function(){return k.assertLeafType}});Object.defineProperty(z,"assertListType",{enumerable:!0,get:function(){return k.assertListType}});Object.defineProperty(z,"assertName",{enumerable:!0,get:function(){return Q9.assertName}});Object.defineProperty(z,"assertNamedType",{enumerable:!0,get:function(){return k.assertNamedType}});Object.defineProperty(z,"assertNonNullType",{enumerable:!0,get:function(){return k.assertNonNullType}});Object.defineProperty(z,"assertNullableType",{enumerable:!0,get:function(){return k.assertNullableType}});Object.defineProperty(z,"assertObjectType",{enumerable:!0,get:function(){return k.assertObjectType}});Object.defineProperty(z,"assertOutputType",{enumerable:!0,get:function(){return k.assertOutputType}});Object.defineProperty(z,"assertScalarType",{enumerable:!0,get:function(){return k.assertScalarType}});Object.defineProperty(z,"assertSchema",{enumerable:!0,get:function(){return B3.assertSchema}});Object.defineProperty(z,"assertType",{enumerable:!0,get:function(){return k.assertType}});Object.defineProperty(z,"assertUnionType",{enumerable:!0,get:function(){return k.assertUnionType}});Object.defineProperty(z,"assertValidSchema",{enumerable:!0,get:function(){return I9.assertValidSchema}});Object.defineProperty(z,"assertWrappingType",{enumerable:!0,get:function(){return k.assertWrappingType}});Object.defineProperty(z,"getNamedType",{enumerable:!0,get:function(){return k.getNamedType}});Object.defineProperty(z,"getNullableType",{enumerable:!0,get:function(){return k.getNullableType}});Object.defineProperty(z,"introspectionTypes",{enumerable:!0,get:function(){return vD.introspectionTypes}});Object.defineProperty(z,"isAbstractType",{enumerable:!0,get:function(){return k.isAbstractType}});Object.defineProperty(z,"isCompositeType",{enumerable:!0,get:function(){return k.isCompositeType}});Object.defineProperty(z,"isDirective",{enumerable:!0,get:function(){return Z0.isDirective}});Object.defineProperty(z,"isEnumType",{enumerable:!0,get:function(){return k.isEnumType}});Object.defineProperty(z,"isInputObjectType",{enumerable:!0,get:function(){return k.isInputObjectType}});Object.defineProperty(z,"isInputType",{enumerable:!0,get:function(){return k.isInputType}});Object.defineProperty(z,"isInterfaceType",{enumerable:!0,get:function(){return k.isInterfaceType}});Object.defineProperty(z,"isIntrospectionType",{enumerable:!0,get:function(){return vD.isIntrospectionType}});Object.defineProperty(z,"isLeafType",{enumerable:!0,get:function(){return k.isLeafType}});Object.defineProperty(z,"isListType",{enumerable:!0,get:function(){return k.isListType}});Object.defineProperty(z,"isNamedType",{enumerable:!0,get:function(){return k.isNamedType}});Object.defineProperty(z,"isNonNullType",{enumerable:!0,get:function(){return k.isNonNullType}});Object.defineProperty(z,"isNullableType",{enumerable:!0,get:function(){return k.isNullableType}});Object.defineProperty(z,"isObjectType",{enumerable:!0,get:function(){return k.isObjectType}});Object.defineProperty(z,"isOutputType",{enumerable:!0,get:function(){return k.isOutputType}});Object.defineProperty(z,"isRequiredArgument",{enumerable:!0,get:function(){return k.isRequiredArgument}});Object.defineProperty(z,"isRequiredInputField",{enumerable:!0,get:function(){return k.isRequiredInputField}});Object.defineProperty(z,"isScalarType",{enumerable:!0,get:function(){return k.isScalarType}});Object.defineProperty(z,"isSchema",{enumerable:!0,get:function(){return B3.isSchema}});Object.defineProperty(z,"isSpecifiedDirective",{enumerable:!0,get:function(){return Z0.isSpecifiedDirective}});Object.defineProperty(z,"isSpecifiedScalarType",{enumerable:!0,get:function(){return N0.isSpecifiedScalarType}});Object.defineProperty(z,"isType",{enumerable:!0,get:function(){return k.isType}});Object.defineProperty(z,"isUnionType",{enumerable:!0,get:function(){return k.isUnionType}});Object.defineProperty(z,"isWrappingType",{enumerable:!0,get:function(){return k.isWrappingType}});Object.defineProperty(z,"resolveObjMapThunk",{enumerable:!0,get:function(){return k.resolveObjMapThunk}});Object.defineProperty(z,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return k.resolveReadonlyArrayThunk}});Object.defineProperty(z,"specifiedDirectives",{enumerable:!0,get:function(){return Z0.specifiedDirectives}});Object.defineProperty(z,"specifiedScalarTypes",{enumerable:!0,get:function(){return N0.specifiedScalarTypes}});Object.defineProperty(z,"validateSchema",{enumerable:!0,get:function(){return I9.validateSchema}});var B3=Y2(),k=l(),Z0=xD(),N0=X0(),vD=nD(),I9=V8(),Q9=U8()});var w9=J((p)=>{Object.defineProperty(p,"__esModule",{value:!0});Object.defineProperty(p,"BREAK",{enumerable:!0,get:function(){return m8.BREAK}});Object.defineProperty(p,"DirectiveLocation",{enumerable:!0,get:function(){return Iu.DirectiveLocation}});Object.defineProperty(p,"Kind",{enumerable:!0,get:function(){return qu.Kind}});Object.defineProperty(p,"Lexer",{enumerable:!0,get:function(){return Gu.Lexer}});Object.defineProperty(p,"Location",{enumerable:!0,get:function(){return Y3.Location}});Object.defineProperty(p,"OperationTypeNode",{enumerable:!0,get:function(){return Y3.OperationTypeNode}});Object.defineProperty(p,"Source",{enumerable:!0,get:function(){return Uu.Source}});Object.defineProperty(p,"Token",{enumerable:!0,get:function(){return Y3.Token}});Object.defineProperty(p,"TokenKind",{enumerable:!0,get:function(){return zu.TokenKind}});Object.defineProperty(p,"getEnterLeaveForKind",{enumerable:!0,get:function(){return m8.getEnterLeaveForKind}});Object.defineProperty(p,"getLocation",{enumerable:!0,get:function(){return Xu.getLocation}});Object.defineProperty(p,"getVisitFn",{enumerable:!0,get:function(){return m8.getVisitFn}});Object.defineProperty(p,"isConstValueNode",{enumerable:!0,get:function(){return u0.isConstValueNode}});Object.defineProperty(p,"isDefinitionNode",{enumerable:!0,get:function(){return u0.isDefinitionNode}});Object.defineProperty(p,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return u0.isExecutableDefinitionNode}});Object.defineProperty(p,"isSelectionNode",{enumerable:!0,get:function(){return u0.isSelectionNode}});Object.defineProperty(p,"isTypeDefinitionNode",{enumerable:!0,get:function(){return u0.isTypeDefinitionNode}});Object.defineProperty(p,"isTypeExtensionNode",{enumerable:!0,get:function(){return u0.isTypeExtensionNode}});Object.defineProperty(p,"isTypeNode",{enumerable:!0,get:function(){return u0.isTypeNode}});Object.defineProperty(p,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return u0.isTypeSystemDefinitionNode}});Object.defineProperty(p,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return u0.isTypeSystemExtensionNode}});Object.defineProperty(p,"isValueNode",{enumerable:!0,get:function(){return u0.isValueNode}});Object.defineProperty(p,"parse",{enumerable:!0,get:function(){return DO.parse}});Object.defineProperty(p,"parseConstValue",{enumerable:!0,get:function(){return DO.parseConstValue}});Object.defineProperty(p,"parseType",{enumerable:!0,get:function(){return DO.parseType}});Object.defineProperty(p,"parseValue",{enumerable:!0,get:function(){return DO.parseValue}});Object.defineProperty(p,"print",{enumerable:!0,get:function(){return uu.print}});Object.defineProperty(p,"printLocation",{enumerable:!0,get:function(){return b9.printLocation}});Object.defineProperty(p,"printSourceLocation",{enumerable:!0,get:function(){return b9.printSourceLocation}});Object.defineProperty(p,"visit",{enumerable:!0,get:function(){return m8.visit}});Object.defineProperty(p,"visitInParallel",{enumerable:!0,get:function(){return m8.visitInParallel}});var Uu=GP(),Xu=CP(),b9=L1(),qu=c(),zu=Y8(),Gu=qP(),DO=_2(),uu=mD(),m8=E2(),Y3=C0(),u0=H2(),Iu=j2()});var j9=J((K9)=>{Object.defineProperty(K9,"__esModule",{value:!0});K9.isAsyncIterable=Qu;function Qu(D){return typeof(D===null||D===void 0?void 0:D[Symbol.asyncIterator])==="function"}});var V9=J(($9)=>{Object.defineProperty($9,"__esModule",{value:!0});$9.mapAsyncIterator=bu;function bu(D,P){let O=D[Symbol.asyncIterator]();async function W(E){if(E.done)return E;try{return{value:await P(E.value),done:!1}}catch(F){if(typeof O.return==="function")try{await O.return()}catch(R){}throw F}}return{async next(){return W(await O.next())},async return(){return typeof O.return==="function"?W(await O.return()):{value:void 0,done:!0}},async throw(E){if(typeof O.throw==="function")return W(await O.throw(E));throw E},[Symbol.asyncIterator](){return this}}}});var x9=J((k9)=>{Object.defineProperty(k9,"__esModule",{value:!0});k9.createSourceEventStream=N9;k9.subscribe=Nu;var Ku=ND(),ju=i(),T9=j9(),_9=T8(),Z3=T(),$u=tP(),Vu=rP(),c8=y8(),_u=V9(),Tu=y2();async function Nu(D){arguments.length<2||Ku.devAssert(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let P=await N9(D);if(!T9.isAsyncIterable(P))return P;let O=(W)=>c8.execute({...D,rootValue:W});return _u.mapAsyncIterator(P,O)}function ku(D){let P=D[0];if(P&&"document"in P)return P;return{schema:P,document:D[1],rootValue:D[2],contextValue:D[3],variableValues:D[4],operationName:D[5],subscribeFieldResolver:D[6]}}async function N9(...D){let P=ku(D),{schema:O,document:W,variableValues:E}=P;c8.assertValidExecutionArguments(O,W,E);let F=c8.buildExecutionContext(P);if(!("schema"in F))return{errors:F};try{let R=await xu(F);if(!T9.isAsyncIterable(R))throw new Error(`Subscription field must return Async Iterable. Received: ${ju.inspect(R)}.`);return R}catch(R){if(R instanceof Z3.GraphQLError)return{errors:[R]};throw R}}async function xu(D){let{schema:P,fragments:O,operation:W,variableValues:E,rootValue:F}=D,R=P.getSubscriptionType();if(R==null)throw new Z3.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:W});let S=Vu.collectFields(P,O,E,R,W.selectionSet),[L,B]=[...S.entries()][0],Y=c8.getFieldDef(P,R,B[0]);if(!Y){let X=B[0].name.value;throw new Z3.GraphQLError(`The subscription field "${X}" is not defined.`,{nodes:B})}let Z=_9.addPath(void 0,L,R.name),H=c8.buildResolveInfo(D,Y,B,R,Z);try{var C;let X=Tu.getArgumentValues(Y,B[0],E),I=D.contextValue,x=await((C=Y.subscribe)!==null&&C!==void 0?C:D.subscribeFieldResolver)(F,X,I,H);if(x instanceof Error)throw x;return x}catch(X){throw $u.locatedError(X,B,_9.pathToArray(Z))}}});var v9=J((tD)=>{Object.defineProperty(tD,"__esModule",{value:!0});Object.defineProperty(tD,"createSourceEventStream",{enumerable:!0,get:function(){return f9.createSourceEventStream}});Object.defineProperty(tD,"defaultFieldResolver",{enumerable:!0,get:function(){return PO.defaultFieldResolver}});Object.defineProperty(tD,"defaultTypeResolver",{enumerable:!0,get:function(){return PO.defaultTypeResolver}});Object.defineProperty(tD,"execute",{enumerable:!0,get:function(){return PO.execute}});Object.defineProperty(tD,"executeSync",{enumerable:!0,get:function(){return PO.executeSync}});Object.defineProperty(tD,"getArgumentValues",{enumerable:!0,get:function(){return H3.getArgumentValues}});Object.defineProperty(tD,"getDirectiveValues",{enumerable:!0,get:function(){return H3.getDirectiveValues}});Object.defineProperty(tD,"getVariableValues",{enumerable:!0,get:function(){return H3.getVariableValues}});Object.defineProperty(tD,"responsePathAsArray",{enumerable:!0,get:function(){return hu.pathToArray}});Object.defineProperty(tD,"subscribe",{enumerable:!0,get:function(){return f9.subscribe}});var hu=T8(),PO=y8(),f9=x9(),H3=y2()});var g9=J((h9)=>{Object.defineProperty(h9,"__esModule",{value:!0});h9.NoDeprecatedCustomRule=gu;var A3=jD(),l8=T(),C3=l();function gu(D){return{Field(P){let O=D.getFieldDef(),W=O===null||O===void 0?void 0:O.deprecationReason;if(O&&W!=null){let E=D.getParentType();E!=null||A3.invariant(!1),D.reportError(new l8.GraphQLError(`The field ${E.name}.${O.name} is deprecated. ${W}`,{nodes:P}))}},Argument(P){let O=D.getArgument(),W=O===null||O===void 0?void 0:O.deprecationReason;if(O&&W!=null){let E=D.getDirective();if(E!=null)D.reportError(new l8.GraphQLError(`Directive "@${E.name}" argument "${O.name}" is deprecated. ${W}`,{nodes:P}));else{let F=D.getParentType(),R=D.getFieldDef();F!=null&&R!=null||A3.invariant(!1),D.reportError(new l8.GraphQLError(`Field "${F.name}.${R.name}" argument "${O.name}" is deprecated. ${W}`,{nodes:P}))}}},ObjectField(P){let O=C3.getNamedType(D.getParentInputType());if(C3.isInputObjectType(O)){let W=O.getFields()[P.name.value],E=W===null||W===void 0?void 0:W.deprecationReason;if(E!=null)D.reportError(new l8.GraphQLError(`The input field ${O.name}.${W.name} is deprecated. ${E}`,{nodes:P}))}},EnumValue(P){let O=D.getEnumValue(),W=O===null||O===void 0?void 0:O.deprecationReason;if(O&&W!=null){let E=C3.getNamedType(D.getInputType());E!=null||A3.invariant(!1),D.reportError(new l8.GraphQLError(`The enum value "${E.name}.${O.name}" is deprecated. ${W}`,{nodes:P}))}}}}});var m9=J((y9)=>{Object.defineProperty(y9,"__esModule",{value:!0});y9.NoSchemaIntrospectionCustomRule=ru;var mu=T(),cu=l(),lu=nD();function ru(D){return{Field(P){let O=cu.getNamedType(D.getType());if(O&&lu.isIntrospectionType(O))D.reportError(new mu.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${P.name.value}".`,{nodes:P}))}}}});var l9=J((v)=>{Object.defineProperty(v,"__esModule",{value:!0});Object.defineProperty(v,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return au.ExecutableDefinitionsRule}});Object.defineProperty(v,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return tu.FieldsOnCorrectTypeRule}});Object.defineProperty(v,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return su.FragmentsOnCompositeTypesRule}});Object.defineProperty(v,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return iu.KnownArgumentNamesRule}});Object.defineProperty(v,"KnownDirectivesRule",{enumerable:!0,get:function(){return ou.KnownDirectivesRule}});Object.defineProperty(v,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return eu.KnownFragmentNamesRule}});Object.defineProperty(v,"KnownTypeNamesRule",{enumerable:!0,get:function(){return DI.KnownTypeNamesRule}});Object.defineProperty(v,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return PI.LoneAnonymousOperationRule}});Object.defineProperty(v,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return uI.LoneSchemaDefinitionRule}});Object.defineProperty(v,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return GI.MaxIntrospectionDepthRule}});Object.defineProperty(v,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return $I.NoDeprecatedCustomRule}});Object.defineProperty(v,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return OI.NoFragmentCyclesRule}});Object.defineProperty(v,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return VI.NoSchemaIntrospectionCustomRule}});Object.defineProperty(v,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return WI.NoUndefinedVariablesRule}});Object.defineProperty(v,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return EI.NoUnusedFragmentsRule}});Object.defineProperty(v,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return FI.NoUnusedVariablesRule}});Object.defineProperty(v,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return RI.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(v,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return SI.PossibleFragmentSpreadsRule}});Object.defineProperty(v,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return jI.PossibleTypeExtensionsRule}});Object.defineProperty(v,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return LI.ProvidedRequiredArgumentsRule}});Object.defineProperty(v,"ScalarLeafsRule",{enumerable:!0,get:function(){return BI.ScalarLeafsRule}});Object.defineProperty(v,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return YI.SingleFieldSubscriptionsRule}});Object.defineProperty(v,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return wI.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(v,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return ZI.UniqueArgumentNamesRule}});Object.defineProperty(v,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return KI.UniqueDirectiveNamesRule}});Object.defineProperty(v,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return HI.UniqueDirectivesPerLocationRule}});Object.defineProperty(v,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return MI.UniqueEnumValueNamesRule}});Object.defineProperty(v,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return bI.UniqueFieldDefinitionNamesRule}});Object.defineProperty(v,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return AI.UniqueFragmentNamesRule}});Object.defineProperty(v,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return CI.UniqueInputFieldNamesRule}});Object.defineProperty(v,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return JI.UniqueOperationNamesRule}});Object.defineProperty(v,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return II.UniqueOperationTypesRule}});Object.defineProperty(v,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return QI.UniqueTypeNamesRule}});Object.defineProperty(v,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return UI.UniqueVariableNamesRule}});Object.defineProperty(v,"ValidationContext",{enumerable:!0,get:function(){return nu.ValidationContext}});Object.defineProperty(v,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return XI.ValuesOfCorrectTypeRule}});Object.defineProperty(v,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return qI.VariablesAreInputTypesRule}});Object.defineProperty(v,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return zI.VariablesInAllowedPositionRule}});Object.defineProperty(v,"recommendedRules",{enumerable:!0,get:function(){return c9.recommendedRules}});Object.defineProperty(v,"specifiedRules",{enumerable:!0,get:function(){return c9.specifiedRules}});Object.defineProperty(v,"validate",{enumerable:!0,get:function(){return pu.validate}});var pu=h8(),nu=O3(),c9=P3(),au=OW(),tu=WW(),su=EW(),iu=FW(),ou=LW(),eu=BW(),DI=ZW(),PI=HW(),OI=JW(),WI=UW(),EI=XW(),FI=qW(),RI=bW(),SI=KW(),LI=VW(),BI=_W(),YI=fW(),ZI=hW(),HI=mW(),AI=dW(),CI=pW(),JI=nW(),UI=sW(),XI=oW(),qI=eW(),zI=D3(),GI=CW(),uI=AW(),II=aW(),QI=tW(),MI=cW(),bI=rW(),wI=vW(),KI=gW(),jI=jW(),$I=g9(),VI=m9()});var r9=J((X2)=>{Object.defineProperty(X2,"__esModule",{value:!0});Object.defineProperty(X2,"GraphQLError",{enumerable:!0,get:function(){return J3.GraphQLError}});Object.defineProperty(X2,"formatError",{enumerable:!0,get:function(){return J3.formatError}});Object.defineProperty(X2,"locatedError",{enumerable:!0,get:function(){return TI.locatedError}});Object.defineProperty(X2,"printError",{enumerable:!0,get:function(){return J3.printError}});Object.defineProperty(X2,"syntaxError",{enumerable:!0,get:function(){return _I.syntaxError}});var J3=T(),_I=JP(),TI=tP()});var U3=J((d9)=>{Object.defineProperty(d9,"__esModule",{value:!0});d9.getIntrospectionQuery=NI;function NI(D){let P={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...D},O=P.descriptions?"description":"",W=P.specifiedByUrl?"specifiedByURL":"",E=P.directiveIsRepeatable?"isRepeatable":"",F=P.schemaDescription?O:"";function R(L){return P.inputValueDeprecation?L:""}let S=P.oneOf?"isOneOf":"";return`
|
|
21
21
|
query IntrospectionQuery {
|
|
22
22
|
__schema {
|
|
23
23
|
${F}
|
|
@@ -123,12 +123,12 @@ spurious results.`)}}return!1};mE.instanceOf=jZ});var IP=J((lE)=>{Object.defineP
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
`}});var r9=J((l9)=>{Object.defineProperty(l9,"__esModule",{value:!0});l9.getOperationAST=qI;var XI=c();function qI(D,P){let O=null;for(let E of D.definitions)if(E.kind===XI.Kind.OPERATION_DEFINITION){var W;if(P==null){if(O)return null;O=E}else if(((W=E.name)===null||W===void 0?void 0:W.value)===P)return E}return O}});var p9=J((d9)=>{Object.defineProperty(d9,"__esModule",{value:!0});d9.getOperationRootType=zI;var EO=T();function zI(D,P){if(P.operation==="query"){let O=D.getQueryType();if(!O)throw new EO.GraphQLError("Schema does not define the required query root type.",{nodes:P});return O}if(P.operation==="mutation"){let O=D.getMutationType();if(!O)throw new EO.GraphQLError("Schema is not configured for mutations.",{nodes:P});return O}if(P.operation==="subscription"){let O=D.getSubscriptionType();if(!O)throw new EO.GraphQLError("Schema is not configured for subscriptions.",{nodes:P});return O}throw new EO.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:P})}});var n9=J((a9)=>{Object.defineProperty(a9,"__esModule",{value:!0});a9.introspectionFromSchema=wI;var II=$D(),QI=T2(),MI=c8(),bI=U3();function wI(D,P){let O={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...P},W=QI.parse(bI.getIntrospectionQuery(O)),E=MI.executeSync({schema:D,document:W});return!E.errors&&E.data||II.invariant(!1),E.data}});var i9=J((s9)=>{Object.defineProperty(s9,"__esModule",{value:!0});s9.buildClientSchema=kI;var jI=kD(),cD=i(),t9=U0(),FO=U8(),$I=T2(),lD=l(),VI=fD(),b0=nD(),_I=z0(),TI=H2(),NI=v8();function kI(D,P){t9.isObjectLike(D)&&t9.isObjectLike(D.__schema)||jI.devAssert(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${cD.inspect(D)}.`);let O=D.__schema,W=FO.keyValMap(O.types,(q)=>q.name,(q)=>H(q));for(let q of[..._I.specifiedScalarTypes,...b0.introspectionTypes])if(W[q.name])W[q.name]=q;let E=O.queryType?Y(O.queryType):null,F=O.mutationType?Y(O.mutationType):null,R=O.subscriptionType?Y(O.subscriptionType):null,S=O.directives?O.directives.map(YD):[];return new TI.GraphQLSchema({description:O.description,query:E,mutation:F,subscription:R,types:Object.values(W),directives:S,assumeValid:P===null||P===void 0?void 0:P.assumeValid});function L(q){if(q.kind===b0.TypeKind.LIST){let _=q.ofType;if(!_)throw new Error("Decorated type deeper than introspection query.");return new lD.GraphQLList(L(_))}if(q.kind===b0.TypeKind.NON_NULL){let _=q.ofType;if(!_)throw new Error("Decorated type deeper than introspection query.");let ND=L(_);return new lD.GraphQLNonNull(lD.assertNullableType(ND))}return B(q)}function B(q){let _=q.name;if(!_)throw new Error(`Unknown type reference: ${cD.inspect(q)}.`);let ND=W[_];if(!ND)throw new Error(`Invalid or incomplete schema, unknown type: ${_}. Ensure that a full introspection query is used in order to build a client schema.`);return ND}function Y(q){return lD.assertObjectType(B(q))}function Z(q){return lD.assertInterfaceType(B(q))}function H(q){if(q!=null&&q.name!=null&&q.kind!=null)switch(q.kind){case b0.TypeKind.SCALAR:return A(q);case b0.TypeKind.OBJECT:return I(q);case b0.TypeKind.INTERFACE:return $(q);case b0.TypeKind.UNION:return x(q);case b0.TypeKind.ENUM:return y(q);case b0.TypeKind.INPUT_OBJECT:return V(q)}let _=cD.inspect(q);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${_}.`)}function A(q){return new lD.GraphQLScalarType({name:q.name,description:q.description,specifiedByURL:q.specifiedByURL})}function X(q){if(q.interfaces===null&&q.kind===b0.TypeKind.INTERFACE)return[];if(!q.interfaces){let _=cD.inspect(q);throw new Error(`Introspection result missing interfaces: ${_}.`)}return q.interfaces.map(Z)}function I(q){return new lD.GraphQLObjectType({name:q.name,description:q.description,interfaces:()=>X(q),fields:()=>DD(q)})}function $(q){return new lD.GraphQLInterfaceType({name:q.name,description:q.description,interfaces:()=>X(q),fields:()=>DD(q)})}function x(q){if(!q.possibleTypes){let _=cD.inspect(q);throw new Error(`Introspection result missing possibleTypes: ${_}.`)}return new lD.GraphQLUnionType({name:q.name,description:q.description,types:()=>q.possibleTypes.map(Y)})}function y(q){if(!q.enumValues){let _=cD.inspect(q);throw new Error(`Introspection result missing enumValues: ${_}.`)}return new lD.GraphQLEnumType({name:q.name,description:q.description,values:FO.keyValMap(q.enumValues,(_)=>_.name,(_)=>({description:_.description,deprecationReason:_.deprecationReason}))})}function V(q){if(!q.inputFields){let _=cD.inspect(q);throw new Error(`Introspection result missing inputFields: ${_}.`)}return new lD.GraphQLInputObjectType({name:q.name,description:q.description,fields:()=>ED(q.inputFields),isOneOf:q.isOneOf})}function DD(q){if(!q.fields)throw new Error(`Introspection result missing fields: ${cD.inspect(q)}.`);return FO.keyValMap(q.fields,(_)=>_.name,N)}function N(q){let _=L(q.type);if(!lD.isOutputType(_)){let ND=cD.inspect(_);throw new Error(`Introspection must provide output type for fields, but received: ${ND}.`)}if(!q.args){let ND=cD.inspect(q);throw new Error(`Introspection result missing field args: ${ND}.`)}return{description:q.description,deprecationReason:q.deprecationReason,type:_,args:ED(q.args)}}function ED(q){return FO.keyValMap(q,(_)=>_.name,UD)}function UD(q){let _=L(q.type);if(!lD.isInputType(_)){let V0=cD.inspect(_);throw new Error(`Introspection must provide input type for arguments, but received: ${V0}.`)}let ND=q.defaultValue!=null?NI.valueFromAST($I.parseValue(q.defaultValue),_):void 0;return{description:q.description,type:_,defaultValue:ND,deprecationReason:q.deprecationReason}}function YD(q){if(!q.args){let _=cD.inspect(q);throw new Error(`Introspection result missing directive args: ${_}.`)}if(!q.locations){let _=cD.inspect(q);throw new Error(`Introspection result missing directive locations: ${_}.`)}return new VI.GraphQLDirective({name:q.name,description:q.description,isRepeatable:q.isRepeatable,locations:q.locations.slice(),args:ED(q.args)})}}});var q3=J((R7)=>{Object.defineProperty(R7,"__esModule",{value:!0});R7.extendSchema=mI;R7.extendSchemaImpl=F7;var fI=kD(),hI=i(),vI=$D(),gI=l0(),p8=I1(),iD=c(),o9=A2(),LD=l(),a8=fD(),W7=nD(),E7=z0(),e9=H2(),yI=y8(),X3=m2(),D7=v8();function mI(D,P,O){if(e9.assertSchema(D),P!=null&&P.kind===iD.Kind.DOCUMENT||fI.devAssert(!1,"Must provide valid Document AST."),(O===null||O===void 0?void 0:O.assumeValid)!==!0&&(O===null||O===void 0?void 0:O.assumeValidSDL)!==!0)yI.assertValidSDLExtension(P,D);let W=D.toConfig(),E=F7(W,P,O);return W===E?D:new e9.GraphQLSchema(E)}function F7(D,P,O){var W,E,F,R;let S=[],L=Object.create(null),B=[],Y,Z=[];for(let U of P.definitions)if(U.kind===iD.Kind.SCHEMA_DEFINITION)Y=U;else if(U.kind===iD.Kind.SCHEMA_EXTENSION)Z.push(U);else if(o9.isTypeDefinitionNode(U))S.push(U);else if(o9.isTypeExtensionNode(U)){let w=U.name.value,Q=L[w];L[w]=Q?Q.concat([U]):[U]}else if(U.kind===iD.Kind.DIRECTIVE_DEFINITION)B.push(U);if(Object.keys(L).length===0&&S.length===0&&B.length===0&&Z.length===0&&Y==null)return D;let H=Object.create(null);for(let U of D.types)H[U.name]=y(U);for(let U of S){var A;let w=U.name.value;H[w]=(A=P7[w])!==null&&A!==void 0?A:wB(U)}let X={query:D.query&&$(D.query),mutation:D.mutation&&$(D.mutation),subscription:D.subscription&&$(D.subscription),...Y&&ND([Y]),...ND(Z)};return{description:(W=Y)===null||W===void 0?void 0:(E=W.description)===null||E===void 0?void 0:E.value,...X,types:Object.values(H),directives:[...D.directives.map(x),...B.map(bB)],extensions:Object.create(null),astNode:(F=Y)!==null&&F!==void 0?F:D.astNode,extensionASTNodes:D.extensionASTNodes.concat(Z),assumeValid:(R=O===null||O===void 0?void 0:O.assumeValid)!==null&&R!==void 0?R:!1};function I(U){if(LD.isListType(U))return new LD.GraphQLList(I(U.ofType));if(LD.isNonNullType(U))return new LD.GraphQLNonNull(I(U.ofType));return $(U)}function $(U){return H[U.name]}function x(U){let w=U.toConfig();return new a8.GraphQLDirective({...w,args:p8.mapValue(w.args,_)})}function y(U){if(W7.isIntrospectionType(U)||E7.isSpecifiedScalarType(U))return U;if(LD.isScalarType(U))return N(U);if(LD.isObjectType(U))return ED(U);if(LD.isInterfaceType(U))return UD(U);if(LD.isUnionType(U))return YD(U);if(LD.isEnumType(U))return DD(U);if(LD.isInputObjectType(U))return V(U);vI.invariant(!1,"Unexpected type: "+hI.inspect(U))}function V(U){var w;let Q=U.toConfig(),j=(w=L[Q.name])!==null&&w!==void 0?w:[];return new LD.GraphQLInputObjectType({...Q,fields:()=>({...p8.mapValue(Q.fields,(OD)=>({...OD,type:I(OD.type)})),...x6(j)}),extensionASTNodes:Q.extensionASTNodes.concat(j)})}function DD(U){var w;let Q=U.toConfig(),j=(w=L[U.name])!==null&&w!==void 0?w:[];return new LD.GraphQLEnumType({...Q,values:{...Q.values,...f6(j)},extensionASTNodes:Q.extensionASTNodes.concat(j)})}function N(U){var w;let Q=U.toConfig(),j=(w=L[Q.name])!==null&&w!==void 0?w:[],OD=Q.specifiedByURL;for(let FD of j){var GD;OD=(GD=O7(FD))!==null&&GD!==void 0?GD:OD}return new LD.GraphQLScalarType({...Q,specifiedByURL:OD,extensionASTNodes:Q.extensionASTNodes.concat(j)})}function ED(U){var w;let Q=U.toConfig(),j=(w=L[Q.name])!==null&&w!==void 0?w:[];return new LD.GraphQLObjectType({...Q,interfaces:()=>[...U.getInterfaces().map($),...HP(j)],fields:()=>({...p8.mapValue(Q.fields,q),...ZP(j)}),extensionASTNodes:Q.extensionASTNodes.concat(j)})}function UD(U){var w;let Q=U.toConfig(),j=(w=L[Q.name])!==null&&w!==void 0?w:[];return new LD.GraphQLInterfaceType({...Q,interfaces:()=>[...U.getInterfaces().map($),...HP(j)],fields:()=>({...p8.mapValue(Q.fields,q),...ZP(j)}),extensionASTNodes:Q.extensionASTNodes.concat(j)})}function YD(U){var w;let Q=U.toConfig(),j=(w=L[Q.name])!==null&&w!==void 0?w:[];return new LD.GraphQLUnionType({...Q,types:()=>[...U.getTypes().map($),...h6(j)],extensionASTNodes:Q.extensionASTNodes.concat(j)})}function q(U){return{...U,type:I(U.type),args:U.args&&p8.mapValue(U.args,_)}}function _(U){return{...U,type:I(U.type)}}function ND(U){let w={};for(let j of U){var Q;let OD=(Q=j.operationTypes)!==null&&Q!==void 0?Q:[];for(let GD of OD)w[GD.operation]=V0(GD.type)}return w}function V0(U){var w;let Q=U.name.value,j=(w=P7[Q])!==null&&w!==void 0?w:H[Q];if(j===void 0)throw new Error(`Unknown type: "${Q}".`);return j}function B8(U){if(U.kind===iD.Kind.LIST_TYPE)return new LD.GraphQLList(B8(U.type));if(U.kind===iD.Kind.NON_NULL_TYPE)return new LD.GraphQLNonNull(B8(U.type));return V0(U)}function bB(U){var w;return new a8.GraphQLDirective({name:U.name.value,description:(w=U.description)===null||w===void 0?void 0:w.value,locations:U.locations.map(({value:Q})=>Q),isRepeatable:U.repeatable,args:k6(U.arguments),astNode:U})}function ZP(U){let w=Object.create(null);for(let OD of U){var Q;let GD=(Q=OD.fields)!==null&&Q!==void 0?Q:[];for(let FD of GD){var j;w[FD.name.value]={type:B8(FD.type),description:(j=FD.description)===null||j===void 0?void 0:j.value,args:k6(FD.arguments),deprecationReason:RO(FD),astNode:FD}}}return w}function k6(U){let w=U!==null&&U!==void 0?U:[],Q=Object.create(null);for(let OD of w){var j;let GD=B8(OD.type);Q[OD.name.value]={type:GD,description:(j=OD.description)===null||j===void 0?void 0:j.value,defaultValue:D7.valueFromAST(OD.defaultValue,GD),deprecationReason:RO(OD),astNode:OD}}return Q}function x6(U){let w=Object.create(null);for(let OD of U){var Q;let GD=(Q=OD.fields)!==null&&Q!==void 0?Q:[];for(let FD of GD){var j;let j2=B8(FD.type);w[FD.name.value]={type:j2,description:(j=FD.description)===null||j===void 0?void 0:j.value,defaultValue:D7.valueFromAST(FD.defaultValue,j2),deprecationReason:RO(FD),astNode:FD}}}return w}function f6(U){let w=Object.create(null);for(let OD of U){var Q;let GD=(Q=OD.values)!==null&&Q!==void 0?Q:[];for(let FD of GD){var j;w[FD.name.value]={description:(j=FD.description)===null||j===void 0?void 0:j.value,deprecationReason:RO(FD),astNode:FD}}}return w}function HP(U){return U.flatMap((w)=>{var Q,j;return(Q=(j=w.interfaces)===null||j===void 0?void 0:j.map(V0))!==null&&Q!==void 0?Q:[]})}function h6(U){return U.flatMap((w)=>{var Q,j;return(Q=(j=w.types)===null||j===void 0?void 0:j.map(V0))!==null&&Q!==void 0?Q:[]})}function wB(U){var w;let Q=U.name.value,j=(w=L[Q])!==null&&w!==void 0?w:[];switch(U.kind){case iD.Kind.OBJECT_TYPE_DEFINITION:{var OD;let W0=[U,...j];return new LD.GraphQLObjectType({name:Q,description:(OD=U.description)===null||OD===void 0?void 0:OD.value,interfaces:()=>HP(W0),fields:()=>ZP(W0),astNode:U,extensionASTNodes:j})}case iD.Kind.INTERFACE_TYPE_DEFINITION:{var GD;let W0=[U,...j];return new LD.GraphQLInterfaceType({name:Q,description:(GD=U.description)===null||GD===void 0?void 0:GD.value,interfaces:()=>HP(W0),fields:()=>ZP(W0),astNode:U,extensionASTNodes:j})}case iD.Kind.ENUM_TYPE_DEFINITION:{var FD;let W0=[U,...j];return new LD.GraphQLEnumType({name:Q,description:(FD=U.description)===null||FD===void 0?void 0:FD.value,values:f6(W0),astNode:U,extensionASTNodes:j})}case iD.Kind.UNION_TYPE_DEFINITION:{var j2;let W0=[U,...j];return new LD.GraphQLUnionType({name:Q,description:(j2=U.description)===null||j2===void 0?void 0:j2.value,types:()=>h6(W0),astNode:U,extensionASTNodes:j})}case iD.Kind.SCALAR_TYPE_DEFINITION:{var oO;return new LD.GraphQLScalarType({name:Q,description:(oO=U.description)===null||oO===void 0?void 0:oO.value,specifiedByURL:O7(U),astNode:U,extensionASTNodes:j})}case iD.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var eO;let W0=[U,...j];return new LD.GraphQLInputObjectType({name:Q,description:(eO=U.description)===null||eO===void 0?void 0:eO.value,fields:()=>x6(W0),astNode:U,extensionASTNodes:j,isOneOf:cI(U)})}}}}var P7=gI.keyMap([...E7.specifiedScalarTypes,...W7.introspectionTypes],(D)=>D.name);function RO(D){let P=X3.getDirectiveValues(a8.GraphQLDeprecatedDirective,D);return P===null||P===void 0?void 0:P.reason}function O7(D){let P=X3.getDirectiveValues(a8.GraphQLSpecifiedByDirective,D);return P===null||P===void 0?void 0:P.url}function cI(D){return Boolean(X3.getDirectiveValues(a8.GraphQLOneOfDirective,D))}});var B7=J((L7)=>{Object.defineProperty(L7,"__esModule",{value:!0});L7.buildASTSchema=S7;L7.buildSchema=oI;var dI=kD(),pI=c(),aI=T2(),nI=fD(),tI=H2(),sI=y8(),iI=q3();function S7(D,P){if(D!=null&&D.kind===pI.Kind.DOCUMENT||dI.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)sI.assertValidSDL(D);let O={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},W=iI.extendSchemaImpl(O,D,P);if(W.astNode==null)for(let F of W.types)switch(F.name){case"Query":W.query=F;break;case"Mutation":W.mutation=F;break;case"Subscription":W.subscription=F;break}let E=[...W.directives,...nI.specifiedDirectives.filter((F)=>W.directives.every((R)=>R.name!==F.name))];return new tI.GraphQLSchema({...W,directives:E})}function oI(D,P){let O=aI.parse(D,{noLocation:P===null||P===void 0?void 0:P.noLocation,allowLegacyFragmentVariables:P===null||P===void 0?void 0:P.allowLegacyFragmentVariables});return S7(O,{assumeValidSDL:P===null||P===void 0?void 0:P.assumeValidSDL,assumeValid:P===null||P===void 0?void 0:P.assumeValid})}});var C7=J((H7)=>{Object.defineProperty(H7,"__esModule",{value:!0});H7.lexicographicSortSchema=SQ;var PQ=i(),OQ=$D(),WQ=U8(),Y7=X8(),xD=l(),EQ=fD(),FQ=nD(),RQ=H2();function SQ(D){let P=D.toConfig(),O=WQ.keyValMap(G3(P.types),(H)=>H.name,Z);return new RQ.GraphQLSchema({...P,types:Object.values(O),directives:G3(P.directives).map(R),query:F(P.query),mutation:F(P.mutation),subscription:F(P.subscription)});function W(H){if(xD.isListType(H))return new xD.GraphQLList(W(H.ofType));else if(xD.isNonNullType(H))return new xD.GraphQLNonNull(W(H.ofType));return E(H)}function E(H){return O[H.name]}function F(H){return H&&E(H)}function R(H){let A=H.toConfig();return new EQ.GraphQLDirective({...A,locations:Z7(A.locations,(X)=>X),args:S(A.args)})}function S(H){return SO(H,(A)=>({...A,type:W(A.type)}))}function L(H){return SO(H,(A)=>({...A,type:W(A.type),args:A.args&&S(A.args)}))}function B(H){return SO(H,(A)=>({...A,type:W(A.type)}))}function Y(H){return G3(H).map(E)}function Z(H){if(xD.isScalarType(H)||FQ.isIntrospectionType(H))return H;if(xD.isObjectType(H)){let A=H.toConfig();return new xD.GraphQLObjectType({...A,interfaces:()=>Y(A.interfaces),fields:()=>L(A.fields)})}if(xD.isInterfaceType(H)){let A=H.toConfig();return new xD.GraphQLInterfaceType({...A,interfaces:()=>Y(A.interfaces),fields:()=>L(A.fields)})}if(xD.isUnionType(H)){let A=H.toConfig();return new xD.GraphQLUnionType({...A,types:()=>Y(A.types)})}if(xD.isEnumType(H)){let A=H.toConfig();return new xD.GraphQLEnumType({...A,values:SO(A.values,(X)=>X)})}if(xD.isInputObjectType(H)){let A=H.toConfig();return new xD.GraphQLInputObjectType({...A,fields:()=>B(A.fields)})}OQ.invariant(!1,"Unexpected type: "+PQ.inspect(H))}}function SO(D,P){let O=Object.create(null);for(let W of Object.keys(D).sort(Y7.naturalCompare))O[W]=P(D[W]);return O}function G3(D){return Z7(D,(P)=>P.name)}function Z7(D,P){return D.slice().sort((O,W)=>{let E=P(O),F=P(W);return Y7.naturalCompare(E,F)})}});var u7=J((z7)=>{Object.defineProperty(z7,"__esModule",{value:!0});z7.printIntrospectionSchema=JQ;z7.printSchema=AQ;z7.printType=U7;var BQ=i(),YQ=$D(),ZQ=Z8(),u3=c(),LO=mD(),l2=l(),I3=fD(),A7=nD(),HQ=z0(),CQ=$8();function AQ(D){return J7(D,(P)=>!I3.isSpecifiedDirective(P),UQ)}function JQ(D){return J7(D,I3.isSpecifiedDirective,A7.isIntrospectionType)}function UQ(D){return!HQ.isSpecifiedScalarType(D)&&!A7.isIntrospectionType(D)}function J7(D,P,O){let W=D.getDirectives().filter(P),E=Object.values(D.getTypeMap()).filter(O);return[XQ(D),...W.map((F)=>bQ(F)),...E.map((F)=>U7(F))].filter(Boolean).join("\n\n")}function XQ(D){if(D.description==null&&qQ(D))return;let P=[],O=D.getQueryType();if(O)P.push(` query: ${O.name}`);let W=D.getMutationType();if(W)P.push(` mutation: ${W.name}`);let E=D.getSubscriptionType();if(E)P.push(` subscription: ${E.name}`);return oD(D)+`schema {\n${P.join("\n")}\n}`}function qQ(D){let P=D.getQueryType();if(P&&P.name!=="Query")return!1;let O=D.getMutationType();if(O&&O.name!=="Mutation")return!1;let W=D.getSubscriptionType();if(W&&W.name!=="Subscription")return!1;return!0}function U7(D){if(l2.isScalarType(D))return GQ(D);if(l2.isObjectType(D))return zQ(D);if(l2.isInterfaceType(D))return uQ(D);if(l2.isUnionType(D))return IQ(D);if(l2.isEnumType(D))return QQ(D);if(l2.isInputObjectType(D))return MQ(D);YQ.invariant(!1,"Unexpected type: "+BQ.inspect(D))}function GQ(D){return oD(D)+`scalar ${D.name}`+wQ(D)}function X7(D){let P=D.getInterfaces();return P.length?" implements "+P.map((O)=>O.name).join(" & "):""}function zQ(D){return oD(D)+`type ${D.name}`+X7(D)+q7(D)}function uQ(D){return oD(D)+`interface ${D.name}`+X7(D)+q7(D)}function IQ(D){let P=D.getTypes(),O=P.length?" = "+P.join(" | "):"";return oD(D)+"union "+D.name+O}function QQ(D){let P=D.getValues().map((O,W)=>oD(O," ",!W)+" "+O.name+M3(O.deprecationReason));return oD(D)+`enum ${D.name}`+Q3(P)}function MQ(D){let P=Object.values(D.getFields()).map((O,W)=>oD(O," ",!W)+" "+z3(O));return oD(D)+`input ${D.name}`+(D.isOneOf?" @oneOf":"")+Q3(P)}function q7(D){let P=Object.values(D.getFields()).map((O,W)=>oD(O," ",!W)+" "+O.name+G7(O.args," ")+": "+String(O.type)+M3(O.deprecationReason));return Q3(P)}function Q3(D){return D.length!==0?" {\n"+D.join("\n")+"\n}":""}function G7(D,P=""){if(D.length===0)return"";if(D.every((O)=>!O.description))return"("+D.map(z3).join(", ")+")";return"(\n"+D.map((O,W)=>oD(O," "+P,!W)+" "+P+z3(O)).join("\n")+"\n"+P+")"}function z3(D){let P=CQ.astFromValue(D.defaultValue,D.type),O=D.name+": "+String(D.type);if(P)O+=` = ${LO.print(P)}`;return O+M3(D.deprecationReason)}function bQ(D){return oD(D)+"directive @"+D.name+G7(D.args)+(D.isRepeatable?" repeatable":"")+" on "+D.locations.join(" | ")}function M3(D){if(D==null)return"";if(D!==I3.DEFAULT_DEPRECATION_REASON)return` @deprecated(reason: ${LO.print({kind:u3.Kind.STRING,value:D})})`;return" @deprecated"}function wQ(D){if(D.specifiedByURL==null)return"";return` @specifiedBy(url: ${LO.print({kind:u3.Kind.STRING,value:D.specifiedByURL})})`}function oD(D,P="",O=!0){let{description:W}=D;if(W==null)return"";let E=LO.print({kind:u3.Kind.STRING,value:W,block:ZQ.isPrintableAsBlockString(W)});return(P&&!O?"\n"+P:P)+E.replace(/\n/g,"\n"+P)+"\n"}});var Q7=J((I7)=>{Object.defineProperty(I7,"__esModule",{value:!0});I7.concatAST=_Q;var VQ=c();function _Q(D){let P=[];for(let O of D)P.push(...O.definitions);return{kind:VQ.Kind.DOCUMENT,definitions:P}}});var K7=J((w7)=>{Object.defineProperty(w7,"__esModule",{value:!0});w7.separateOperations=kQ;var BO=c(),NQ=R2();function kQ(D){let P=[],O=Object.create(null);for(let E of D.definitions)switch(E.kind){case BO.Kind.OPERATION_DEFINITION:P.push(E);break;case BO.Kind.FRAGMENT_DEFINITION:O[E.name.value]=M7(E.selectionSet);break;default:}let W=Object.create(null);for(let E of P){let F=new Set;for(let S of M7(E.selectionSet))b7(F,O,S);let R=E.name?E.name.value:"";W[R]={kind:BO.Kind.DOCUMENT,definitions:D.definitions.filter((S)=>S===E||S.kind===BO.Kind.FRAGMENT_DEFINITION&&F.has(S.name.value))}}return W}function b7(D,P,O){if(!D.has(O)){D.add(O);let W=P[O];if(W!==void 0)for(let E of W)b7(D,P,E)}}function M7(D){let P=[];return NQ.visit(D,{FragmentSpread(O){P.push(O.name.value)}}),P}});var _7=J((V7)=>{Object.defineProperty(V7,"__esModule",{value:!0});V7.stripIgnoredCharacters=hQ;var fQ=Z8(),j7=zP(),$7=IP(),b3=H8();function hQ(D){let P=$7.isSource(D)?D:new $7.Source(D),O=P.body,W=new j7.Lexer(P),E="",F=!1;while(W.advance().kind!==b3.TokenKind.EOF){let R=W.token,S=R.kind,L=!j7.isPunctuatorTokenKind(R.kind);if(F){if(L||R.kind===b3.TokenKind.SPREAD)E+=" "}let B=O.slice(R.start,R.end);if(S===b3.TokenKind.BLOCK_STRING)E+=fQ.printBlockString(R.value,{minimize:!0});else E+=B;F=L}return E}});var k7=J((N7)=>{Object.defineProperty(N7,"__esModule",{value:!0});N7.assertValidName=cQ;N7.isValidNameError=T7;var gQ=kD(),yQ=T(),mQ=q8();function cQ(D){let P=T7(D);if(P)throw P;return D}function T7(D){if(typeof D==="string"||gQ.devAssert(!1,"Expected name to be a string."),D.startsWith("__"))return new yQ.GraphQLError(`Name "${D}" must not begin with "__", which is reserved by GraphQL introspection.`);try{mQ.assertName(D)}catch(P){return P}}});var r7=J((c7)=>{Object.defineProperty(c7,"__esModule",{value:!0});c7.DangerousChangeType=c7.BreakingChangeType=void 0;c7.findBreakingChanges=sQ;c7.findDangerousChanges=iQ;var dQ=i(),y7=$D(),x7=l0(),pQ=mD(),n=l(),aQ=z0(),nQ=$8(),tQ=zW(),JD;c7.BreakingChangeType=JD;(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"})(JD||(c7.BreakingChangeType=JD={}));var A0;c7.DangerousChangeType=A0;(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"})(A0||(c7.DangerousChangeType=A0={}));function sQ(D,P){return m7(D,P).filter((O)=>(O.type in JD))}function iQ(D,P){return m7(D,P).filter((O)=>(O.type in A0))}function m7(D,P){return[...eQ(D,P),...oQ(D,P)]}function oQ(D,P){let O=[],W=h0(D.getDirectives(),P.getDirectives());for(let E of W.removed)O.push({type:JD.DIRECTIVE_REMOVED,description:`${E.name} was removed.`});for(let[E,F]of W.persisted){let R=h0(E.args,F.args);for(let S of R.added)if(n.isRequiredArgument(S))O.push({type:JD.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${S.name} on directive ${E.name} was added.`});for(let S of R.removed)O.push({type:JD.DIRECTIVE_ARG_REMOVED,description:`${S.name} was removed from ${E.name}.`});if(E.isRepeatable&&!F.isRepeatable)O.push({type:JD.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${E.name}.`});for(let S of E.locations)if(!F.locations.includes(S))O.push({type:JD.DIRECTIVE_LOCATION_REMOVED,description:`${S} was removed from ${E.name}.`})}return O}function eQ(D,P){let O=[],W=h0(Object.values(D.getTypeMap()),Object.values(P.getTypeMap()));for(let E of W.removed)O.push({type:JD.TYPE_REMOVED,description:aQ.isSpecifiedScalarType(E)?`Standard scalar ${E.name} was removed because it is not referenced anymore.`:`${E.name} was removed.`});for(let[E,F]of W.persisted)if(n.isEnumType(E)&&n.isEnumType(F))O.push(...OM(E,F));else if(n.isUnionType(E)&&n.isUnionType(F))O.push(...PM(E,F));else if(n.isInputObjectType(E)&&n.isInputObjectType(F))O.push(...DM(E,F));else if(n.isObjectType(E)&&n.isObjectType(F))O.push(...h7(E,F),...f7(E,F));else if(n.isInterfaceType(E)&&n.isInterfaceType(F))O.push(...h7(E,F),...f7(E,F));else if(E.constructor!==F.constructor)O.push({type:JD.TYPE_CHANGED_KIND,description:`${E.name} changed from ${v7(E)} to ${v7(F)}.`});return O}function DM(D,P){let O=[],W=h0(Object.values(D.getFields()),Object.values(P.getFields()));for(let E of W.added)if(n.isRequiredInputField(E))O.push({type:JD.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${E.name} on input type ${D.name} was added.`});else O.push({type:A0.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${E.name} on input type ${D.name} was added.`});for(let E of W.removed)O.push({type:JD.FIELD_REMOVED,description:`${D.name}.${E.name} was removed.`});for(let[E,F]of W.persisted)if(!t8(E.type,F.type))O.push({type:JD.FIELD_CHANGED_KIND,description:`${D.name}.${E.name} changed type from ${String(E.type)} to ${String(F.type)}.`});return O}function PM(D,P){let O=[],W=h0(D.getTypes(),P.getTypes());for(let E of W.added)O.push({type:A0.TYPE_ADDED_TO_UNION,description:`${E.name} was added to union type ${D.name}.`});for(let E of W.removed)O.push({type:JD.TYPE_REMOVED_FROM_UNION,description:`${E.name} was removed from union type ${D.name}.`});return O}function OM(D,P){let O=[],W=h0(D.getValues(),P.getValues());for(let E of W.added)O.push({type:A0.VALUE_ADDED_TO_ENUM,description:`${E.name} was added to enum type ${D.name}.`});for(let E of W.removed)O.push({type:JD.VALUE_REMOVED_FROM_ENUM,description:`${E.name} was removed from enum type ${D.name}.`});return O}function f7(D,P){let O=[],W=h0(D.getInterfaces(),P.getInterfaces());for(let E of W.added)O.push({type:A0.IMPLEMENTED_INTERFACE_ADDED,description:`${E.name} added to interfaces implemented by ${D.name}.`});for(let E of W.removed)O.push({type:JD.IMPLEMENTED_INTERFACE_REMOVED,description:`${D.name} no longer implements interface ${E.name}.`});return O}function h7(D,P){let O=[],W=h0(Object.values(D.getFields()),Object.values(P.getFields()));for(let E of W.removed)O.push({type:JD.FIELD_REMOVED,description:`${D.name}.${E.name} was removed.`});for(let[E,F]of W.persisted)if(O.push(...WM(D,E,F)),!n8(E.type,F.type))O.push({type:JD.FIELD_CHANGED_KIND,description:`${D.name}.${E.name} changed type from ${String(E.type)} to ${String(F.type)}.`});return O}function WM(D,P,O){let W=[],E=h0(P.args,O.args);for(let F of E.removed)W.push({type:JD.ARG_REMOVED,description:`${D.name}.${P.name} arg ${F.name} was removed.`});for(let[F,R]of E.persisted)if(!t8(F.type,R.type))W.push({type:JD.ARG_CHANGED_KIND,description:`${D.name}.${P.name} arg ${F.name} has changed type from ${String(F.type)} to ${String(R.type)}.`});else if(F.defaultValue!==void 0)if(R.defaultValue===void 0)W.push({type:A0.ARG_DEFAULT_VALUE_CHANGE,description:`${D.name}.${P.name} arg ${F.name} defaultValue was removed.`});else{let L=g7(F.defaultValue,F.type),B=g7(R.defaultValue,R.type);if(L!==B)W.push({type:A0.ARG_DEFAULT_VALUE_CHANGE,description:`${D.name}.${P.name} arg ${F.name} has changed defaultValue from ${L} to ${B}.`})}for(let F of E.added)if(n.isRequiredArgument(F))W.push({type:JD.REQUIRED_ARG_ADDED,description:`A required arg ${F.name} on ${D.name}.${P.name} was added.`});else W.push({type:A0.OPTIONAL_ARG_ADDED,description:`An optional arg ${F.name} on ${D.name}.${P.name} was added.`});return W}function n8(D,P){if(n.isListType(D))return n.isListType(P)&&n8(D.ofType,P.ofType)||n.isNonNullType(P)&&n8(D,P.ofType);if(n.isNonNullType(D))return n.isNonNullType(P)&&n8(D.ofType,P.ofType);return n.isNamedType(P)&&D.name===P.name||n.isNonNullType(P)&&n8(D,P.ofType)}function t8(D,P){if(n.isListType(D))return n.isListType(P)&&t8(D.ofType,P.ofType);if(n.isNonNullType(D))return n.isNonNullType(P)&&t8(D.ofType,P.ofType)||!n.isNonNullType(P)&&t8(D.ofType,P);return n.isNamedType(P)&&D.name===P.name}function v7(D){if(n.isScalarType(D))return"a Scalar type";if(n.isObjectType(D))return"an Object type";if(n.isInterfaceType(D))return"an Interface type";if(n.isUnionType(D))return"a Union type";if(n.isEnumType(D))return"an Enum type";if(n.isInputObjectType(D))return"an Input type";y7.invariant(!1,"Unexpected type: "+dQ.inspect(D))}function g7(D,P){let O=nQ.astFromValue(D,P);return O!=null||y7.invariant(!1),pQ.print(tQ.sortValueNode(O))}function h0(D,P){let O=[],W=[],E=[],F=x7.keyMap(D,({name:S})=>S),R=x7.keyMap(P,({name:S})=>S);for(let S of D){let L=R[S.name];if(L===void 0)W.push(S);else E.push([S,L])}for(let S of P)if(F[S.name]===void 0)O.push(S);return{added:O,persisted:E,removed:W}}});var n7=J((a)=>{Object.defineProperty(a,"__esModule",{value:!0});Object.defineProperty(a,"BreakingChangeType",{enumerable:!0,get:function(){return YO.BreakingChangeType}});Object.defineProperty(a,"DangerousChangeType",{enumerable:!0,get:function(){return YO.DangerousChangeType}});Object.defineProperty(a,"TypeInfo",{enumerable:!0,get:function(){return p7.TypeInfo}});Object.defineProperty(a,"assertValidName",{enumerable:!0,get:function(){return a7.assertValidName}});Object.defineProperty(a,"astFromValue",{enumerable:!0,get:function(){return UM.astFromValue}});Object.defineProperty(a,"buildASTSchema",{enumerable:!0,get:function(){return d7.buildASTSchema}});Object.defineProperty(a,"buildClientSchema",{enumerable:!0,get:function(){return YM.buildClientSchema}});Object.defineProperty(a,"buildSchema",{enumerable:!0,get:function(){return d7.buildSchema}});Object.defineProperty(a,"coerceInputValue",{enumerable:!0,get:function(){return XM.coerceInputValue}});Object.defineProperty(a,"concatAST",{enumerable:!0,get:function(){return qM.concatAST}});Object.defineProperty(a,"doTypesOverlap",{enumerable:!0,get:function(){return j3.doTypesOverlap}});Object.defineProperty(a,"extendSchema",{enumerable:!0,get:function(){return ZM.extendSchema}});Object.defineProperty(a,"findBreakingChanges",{enumerable:!0,get:function(){return YO.findBreakingChanges}});Object.defineProperty(a,"findDangerousChanges",{enumerable:!0,get:function(){return YO.findDangerousChanges}});Object.defineProperty(a,"getIntrospectionQuery",{enumerable:!0,get:function(){return RM.getIntrospectionQuery}});Object.defineProperty(a,"getOperationAST",{enumerable:!0,get:function(){return SM.getOperationAST}});Object.defineProperty(a,"getOperationRootType",{enumerable:!0,get:function(){return LM.getOperationRootType}});Object.defineProperty(a,"introspectionFromSchema",{enumerable:!0,get:function(){return BM.introspectionFromSchema}});Object.defineProperty(a,"isEqualType",{enumerable:!0,get:function(){return j3.isEqualType}});Object.defineProperty(a,"isTypeSubTypeOf",{enumerable:!0,get:function(){return j3.isTypeSubTypeOf}});Object.defineProperty(a,"isValidNameError",{enumerable:!0,get:function(){return a7.isValidNameError}});Object.defineProperty(a,"lexicographicSortSchema",{enumerable:!0,get:function(){return HM.lexicographicSortSchema}});Object.defineProperty(a,"printIntrospectionSchema",{enumerable:!0,get:function(){return K3.printIntrospectionSchema}});Object.defineProperty(a,"printSchema",{enumerable:!0,get:function(){return K3.printSchema}});Object.defineProperty(a,"printType",{enumerable:!0,get:function(){return K3.printType}});Object.defineProperty(a,"separateOperations",{enumerable:!0,get:function(){return GM.separateOperations}});Object.defineProperty(a,"stripIgnoredCharacters",{enumerable:!0,get:function(){return zM.stripIgnoredCharacters}});Object.defineProperty(a,"typeFromAST",{enumerable:!0,get:function(){return CM.typeFromAST}});Object.defineProperty(a,"valueFromAST",{enumerable:!0,get:function(){return AM.valueFromAST}});Object.defineProperty(a,"valueFromASTUntyped",{enumerable:!0,get:function(){return JM.valueFromASTUntyped}});Object.defineProperty(a,"visitWithTypeInfo",{enumerable:!0,get:function(){return p7.visitWithTypeInfo}});var RM=U3(),SM=r9(),LM=p9(),BM=n9(),YM=i9(),d7=B7(),ZM=q3(),HM=C7(),K3=u7(),CM=u0(),AM=v8(),JM=w1(),UM=$8(),p7=gP(),XM=NW(),qM=Q7(),GM=K7(),zM=_7(),j3=I8(),a7=k7(),YO=r7()});var K0=J((C)=>{Object.defineProperty(C,"__esModule",{value:!0});Object.defineProperty(C,"BREAK",{enumerable:!0,get:function(){return t.BREAK}});Object.defineProperty(C,"BreakingChangeType",{enumerable:!0,get:function(){return s.BreakingChangeType}});Object.defineProperty(C,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return z.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(C,"DangerousChangeType",{enumerable:!0,get:function(){return s.DangerousChangeType}});Object.defineProperty(C,"DirectiveLocation",{enumerable:!0,get:function(){return t.DirectiveLocation}});Object.defineProperty(C,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return v.ExecutableDefinitionsRule}});Object.defineProperty(C,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return v.FieldsOnCorrectTypeRule}});Object.defineProperty(C,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return v.FragmentsOnCompositeTypesRule}});Object.defineProperty(C,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return z.GRAPHQL_MAX_INT}});Object.defineProperty(C,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return z.GRAPHQL_MIN_INT}});Object.defineProperty(C,"GraphQLBoolean",{enumerable:!0,get:function(){return z.GraphQLBoolean}});Object.defineProperty(C,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return z.GraphQLDeprecatedDirective}});Object.defineProperty(C,"GraphQLDirective",{enumerable:!0,get:function(){return z.GraphQLDirective}});Object.defineProperty(C,"GraphQLEnumType",{enumerable:!0,get:function(){return z.GraphQLEnumType}});Object.defineProperty(C,"GraphQLError",{enumerable:!0,get:function(){return s8.GraphQLError}});Object.defineProperty(C,"GraphQLFloat",{enumerable:!0,get:function(){return z.GraphQLFloat}});Object.defineProperty(C,"GraphQLID",{enumerable:!0,get:function(){return z.GraphQLID}});Object.defineProperty(C,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return z.GraphQLIncludeDirective}});Object.defineProperty(C,"GraphQLInputObjectType",{enumerable:!0,get:function(){return z.GraphQLInputObjectType}});Object.defineProperty(C,"GraphQLInt",{enumerable:!0,get:function(){return z.GraphQLInt}});Object.defineProperty(C,"GraphQLInterfaceType",{enumerable:!0,get:function(){return z.GraphQLInterfaceType}});Object.defineProperty(C,"GraphQLList",{enumerable:!0,get:function(){return z.GraphQLList}});Object.defineProperty(C,"GraphQLNonNull",{enumerable:!0,get:function(){return z.GraphQLNonNull}});Object.defineProperty(C,"GraphQLObjectType",{enumerable:!0,get:function(){return z.GraphQLObjectType}});Object.defineProperty(C,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return z.GraphQLOneOfDirective}});Object.defineProperty(C,"GraphQLScalarType",{enumerable:!0,get:function(){return z.GraphQLScalarType}});Object.defineProperty(C,"GraphQLSchema",{enumerable:!0,get:function(){return z.GraphQLSchema}});Object.defineProperty(C,"GraphQLSkipDirective",{enumerable:!0,get:function(){return z.GraphQLSkipDirective}});Object.defineProperty(C,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return z.GraphQLSpecifiedByDirective}});Object.defineProperty(C,"GraphQLString",{enumerable:!0,get:function(){return z.GraphQLString}});Object.defineProperty(C,"GraphQLUnionType",{enumerable:!0,get:function(){return z.GraphQLUnionType}});Object.defineProperty(C,"Kind",{enumerable:!0,get:function(){return t.Kind}});Object.defineProperty(C,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return v.KnownArgumentNamesRule}});Object.defineProperty(C,"KnownDirectivesRule",{enumerable:!0,get:function(){return v.KnownDirectivesRule}});Object.defineProperty(C,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return v.KnownFragmentNamesRule}});Object.defineProperty(C,"KnownTypeNamesRule",{enumerable:!0,get:function(){return v.KnownTypeNamesRule}});Object.defineProperty(C,"Lexer",{enumerable:!0,get:function(){return t.Lexer}});Object.defineProperty(C,"Location",{enumerable:!0,get:function(){return t.Location}});Object.defineProperty(C,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return v.LoneAnonymousOperationRule}});Object.defineProperty(C,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return v.LoneSchemaDefinitionRule}});Object.defineProperty(C,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return v.MaxIntrospectionDepthRule}});Object.defineProperty(C,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return v.NoDeprecatedCustomRule}});Object.defineProperty(C,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return v.NoFragmentCyclesRule}});Object.defineProperty(C,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return v.NoSchemaIntrospectionCustomRule}});Object.defineProperty(C,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return v.NoUndefinedVariablesRule}});Object.defineProperty(C,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return v.NoUnusedFragmentsRule}});Object.defineProperty(C,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return v.NoUnusedVariablesRule}});Object.defineProperty(C,"OperationTypeNode",{enumerable:!0,get:function(){return t.OperationTypeNode}});Object.defineProperty(C,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return v.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(C,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return v.PossibleFragmentSpreadsRule}});Object.defineProperty(C,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return v.PossibleTypeExtensionsRule}});Object.defineProperty(C,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return v.ProvidedRequiredArgumentsRule}});Object.defineProperty(C,"ScalarLeafsRule",{enumerable:!0,get:function(){return v.ScalarLeafsRule}});Object.defineProperty(C,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return z.SchemaMetaFieldDef}});Object.defineProperty(C,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return v.SingleFieldSubscriptionsRule}});Object.defineProperty(C,"Source",{enumerable:!0,get:function(){return t.Source}});Object.defineProperty(C,"Token",{enumerable:!0,get:function(){return t.Token}});Object.defineProperty(C,"TokenKind",{enumerable:!0,get:function(){return t.TokenKind}});Object.defineProperty(C,"TypeInfo",{enumerable:!0,get:function(){return s.TypeInfo}});Object.defineProperty(C,"TypeKind",{enumerable:!0,get:function(){return z.TypeKind}});Object.defineProperty(C,"TypeMetaFieldDef",{enumerable:!0,get:function(){return z.TypeMetaFieldDef}});Object.defineProperty(C,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return z.TypeNameMetaFieldDef}});Object.defineProperty(C,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return v.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(C,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return v.UniqueArgumentNamesRule}});Object.defineProperty(C,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return v.UniqueDirectiveNamesRule}});Object.defineProperty(C,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return v.UniqueDirectivesPerLocationRule}});Object.defineProperty(C,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return v.UniqueEnumValueNamesRule}});Object.defineProperty(C,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return v.UniqueFieldDefinitionNamesRule}});Object.defineProperty(C,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return v.UniqueFragmentNamesRule}});Object.defineProperty(C,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return v.UniqueInputFieldNamesRule}});Object.defineProperty(C,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return v.UniqueOperationNamesRule}});Object.defineProperty(C,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return v.UniqueOperationTypesRule}});Object.defineProperty(C,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return v.UniqueTypeNamesRule}});Object.defineProperty(C,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return v.UniqueVariableNamesRule}});Object.defineProperty(C,"ValidationContext",{enumerable:!0,get:function(){return v.ValidationContext}});Object.defineProperty(C,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return v.ValuesOfCorrectTypeRule}});Object.defineProperty(C,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return v.VariablesAreInputTypesRule}});Object.defineProperty(C,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return v.VariablesInAllowedPositionRule}});Object.defineProperty(C,"__Directive",{enumerable:!0,get:function(){return z.__Directive}});Object.defineProperty(C,"__DirectiveLocation",{enumerable:!0,get:function(){return z.__DirectiveLocation}});Object.defineProperty(C,"__EnumValue",{enumerable:!0,get:function(){return z.__EnumValue}});Object.defineProperty(C,"__Field",{enumerable:!0,get:function(){return z.__Field}});Object.defineProperty(C,"__InputValue",{enumerable:!0,get:function(){return z.__InputValue}});Object.defineProperty(C,"__Schema",{enumerable:!0,get:function(){return z.__Schema}});Object.defineProperty(C,"__Type",{enumerable:!0,get:function(){return z.__Type}});Object.defineProperty(C,"__TypeKind",{enumerable:!0,get:function(){return z.__TypeKind}});Object.defineProperty(C,"assertAbstractType",{enumerable:!0,get:function(){return z.assertAbstractType}});Object.defineProperty(C,"assertCompositeType",{enumerable:!0,get:function(){return z.assertCompositeType}});Object.defineProperty(C,"assertDirective",{enumerable:!0,get:function(){return z.assertDirective}});Object.defineProperty(C,"assertEnumType",{enumerable:!0,get:function(){return z.assertEnumType}});Object.defineProperty(C,"assertEnumValueName",{enumerable:!0,get:function(){return z.assertEnumValueName}});Object.defineProperty(C,"assertInputObjectType",{enumerable:!0,get:function(){return z.assertInputObjectType}});Object.defineProperty(C,"assertInputType",{enumerable:!0,get:function(){return z.assertInputType}});Object.defineProperty(C,"assertInterfaceType",{enumerable:!0,get:function(){return z.assertInterfaceType}});Object.defineProperty(C,"assertLeafType",{enumerable:!0,get:function(){return z.assertLeafType}});Object.defineProperty(C,"assertListType",{enumerable:!0,get:function(){return z.assertListType}});Object.defineProperty(C,"assertName",{enumerable:!0,get:function(){return z.assertName}});Object.defineProperty(C,"assertNamedType",{enumerable:!0,get:function(){return z.assertNamedType}});Object.defineProperty(C,"assertNonNullType",{enumerable:!0,get:function(){return z.assertNonNullType}});Object.defineProperty(C,"assertNullableType",{enumerable:!0,get:function(){return z.assertNullableType}});Object.defineProperty(C,"assertObjectType",{enumerable:!0,get:function(){return z.assertObjectType}});Object.defineProperty(C,"assertOutputType",{enumerable:!0,get:function(){return z.assertOutputType}});Object.defineProperty(C,"assertScalarType",{enumerable:!0,get:function(){return z.assertScalarType}});Object.defineProperty(C,"assertSchema",{enumerable:!0,get:function(){return z.assertSchema}});Object.defineProperty(C,"assertType",{enumerable:!0,get:function(){return z.assertType}});Object.defineProperty(C,"assertUnionType",{enumerable:!0,get:function(){return z.assertUnionType}});Object.defineProperty(C,"assertValidName",{enumerable:!0,get:function(){return s.assertValidName}});Object.defineProperty(C,"assertValidSchema",{enumerable:!0,get:function(){return z.assertValidSchema}});Object.defineProperty(C,"assertWrappingType",{enumerable:!0,get:function(){return z.assertWrappingType}});Object.defineProperty(C,"astFromValue",{enumerable:!0,get:function(){return s.astFromValue}});Object.defineProperty(C,"buildASTSchema",{enumerable:!0,get:function(){return s.buildASTSchema}});Object.defineProperty(C,"buildClientSchema",{enumerable:!0,get:function(){return s.buildClientSchema}});Object.defineProperty(C,"buildSchema",{enumerable:!0,get:function(){return s.buildSchema}});Object.defineProperty(C,"coerceInputValue",{enumerable:!0,get:function(){return s.coerceInputValue}});Object.defineProperty(C,"concatAST",{enumerable:!0,get:function(){return s.concatAST}});Object.defineProperty(C,"createSourceEventStream",{enumerable:!0,get:function(){return w0.createSourceEventStream}});Object.defineProperty(C,"defaultFieldResolver",{enumerable:!0,get:function(){return w0.defaultFieldResolver}});Object.defineProperty(C,"defaultTypeResolver",{enumerable:!0,get:function(){return w0.defaultTypeResolver}});Object.defineProperty(C,"doTypesOverlap",{enumerable:!0,get:function(){return s.doTypesOverlap}});Object.defineProperty(C,"execute",{enumerable:!0,get:function(){return w0.execute}});Object.defineProperty(C,"executeSync",{enumerable:!0,get:function(){return w0.executeSync}});Object.defineProperty(C,"extendSchema",{enumerable:!0,get:function(){return s.extendSchema}});Object.defineProperty(C,"findBreakingChanges",{enumerable:!0,get:function(){return s.findBreakingChanges}});Object.defineProperty(C,"findDangerousChanges",{enumerable:!0,get:function(){return s.findDangerousChanges}});Object.defineProperty(C,"formatError",{enumerable:!0,get:function(){return s8.formatError}});Object.defineProperty(C,"getArgumentValues",{enumerable:!0,get:function(){return w0.getArgumentValues}});Object.defineProperty(C,"getDirectiveValues",{enumerable:!0,get:function(){return w0.getDirectiveValues}});Object.defineProperty(C,"getEnterLeaveForKind",{enumerable:!0,get:function(){return t.getEnterLeaveForKind}});Object.defineProperty(C,"getIntrospectionQuery",{enumerable:!0,get:function(){return s.getIntrospectionQuery}});Object.defineProperty(C,"getLocation",{enumerable:!0,get:function(){return t.getLocation}});Object.defineProperty(C,"getNamedType",{enumerable:!0,get:function(){return z.getNamedType}});Object.defineProperty(C,"getNullableType",{enumerable:!0,get:function(){return z.getNullableType}});Object.defineProperty(C,"getOperationAST",{enumerable:!0,get:function(){return s.getOperationAST}});Object.defineProperty(C,"getOperationRootType",{enumerable:!0,get:function(){return s.getOperationRootType}});Object.defineProperty(C,"getVariableValues",{enumerable:!0,get:function(){return w0.getVariableValues}});Object.defineProperty(C,"getVisitFn",{enumerable:!0,get:function(){return t.getVisitFn}});Object.defineProperty(C,"graphql",{enumerable:!0,get:function(){return s7.graphql}});Object.defineProperty(C,"graphqlSync",{enumerable:!0,get:function(){return s7.graphqlSync}});Object.defineProperty(C,"introspectionFromSchema",{enumerable:!0,get:function(){return s.introspectionFromSchema}});Object.defineProperty(C,"introspectionTypes",{enumerable:!0,get:function(){return z.introspectionTypes}});Object.defineProperty(C,"isAbstractType",{enumerable:!0,get:function(){return z.isAbstractType}});Object.defineProperty(C,"isCompositeType",{enumerable:!0,get:function(){return z.isCompositeType}});Object.defineProperty(C,"isConstValueNode",{enumerable:!0,get:function(){return t.isConstValueNode}});Object.defineProperty(C,"isDefinitionNode",{enumerable:!0,get:function(){return t.isDefinitionNode}});Object.defineProperty(C,"isDirective",{enumerable:!0,get:function(){return z.isDirective}});Object.defineProperty(C,"isEnumType",{enumerable:!0,get:function(){return z.isEnumType}});Object.defineProperty(C,"isEqualType",{enumerable:!0,get:function(){return s.isEqualType}});Object.defineProperty(C,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return t.isExecutableDefinitionNode}});Object.defineProperty(C,"isInputObjectType",{enumerable:!0,get:function(){return z.isInputObjectType}});Object.defineProperty(C,"isInputType",{enumerable:!0,get:function(){return z.isInputType}});Object.defineProperty(C,"isInterfaceType",{enumerable:!0,get:function(){return z.isInterfaceType}});Object.defineProperty(C,"isIntrospectionType",{enumerable:!0,get:function(){return z.isIntrospectionType}});Object.defineProperty(C,"isLeafType",{enumerable:!0,get:function(){return z.isLeafType}});Object.defineProperty(C,"isListType",{enumerable:!0,get:function(){return z.isListType}});Object.defineProperty(C,"isNamedType",{enumerable:!0,get:function(){return z.isNamedType}});Object.defineProperty(C,"isNonNullType",{enumerable:!0,get:function(){return z.isNonNullType}});Object.defineProperty(C,"isNullableType",{enumerable:!0,get:function(){return z.isNullableType}});Object.defineProperty(C,"isObjectType",{enumerable:!0,get:function(){return z.isObjectType}});Object.defineProperty(C,"isOutputType",{enumerable:!0,get:function(){return z.isOutputType}});Object.defineProperty(C,"isRequiredArgument",{enumerable:!0,get:function(){return z.isRequiredArgument}});Object.defineProperty(C,"isRequiredInputField",{enumerable:!0,get:function(){return z.isRequiredInputField}});Object.defineProperty(C,"isScalarType",{enumerable:!0,get:function(){return z.isScalarType}});Object.defineProperty(C,"isSchema",{enumerable:!0,get:function(){return z.isSchema}});Object.defineProperty(C,"isSelectionNode",{enumerable:!0,get:function(){return t.isSelectionNode}});Object.defineProperty(C,"isSpecifiedDirective",{enumerable:!0,get:function(){return z.isSpecifiedDirective}});Object.defineProperty(C,"isSpecifiedScalarType",{enumerable:!0,get:function(){return z.isSpecifiedScalarType}});Object.defineProperty(C,"isType",{enumerable:!0,get:function(){return z.isType}});Object.defineProperty(C,"isTypeDefinitionNode",{enumerable:!0,get:function(){return t.isTypeDefinitionNode}});Object.defineProperty(C,"isTypeExtensionNode",{enumerable:!0,get:function(){return t.isTypeExtensionNode}});Object.defineProperty(C,"isTypeNode",{enumerable:!0,get:function(){return t.isTypeNode}});Object.defineProperty(C,"isTypeSubTypeOf",{enumerable:!0,get:function(){return s.isTypeSubTypeOf}});Object.defineProperty(C,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return t.isTypeSystemDefinitionNode}});Object.defineProperty(C,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return t.isTypeSystemExtensionNode}});Object.defineProperty(C,"isUnionType",{enumerable:!0,get:function(){return z.isUnionType}});Object.defineProperty(C,"isValidNameError",{enumerable:!0,get:function(){return s.isValidNameError}});Object.defineProperty(C,"isValueNode",{enumerable:!0,get:function(){return t.isValueNode}});Object.defineProperty(C,"isWrappingType",{enumerable:!0,get:function(){return z.isWrappingType}});Object.defineProperty(C,"lexicographicSortSchema",{enumerable:!0,get:function(){return s.lexicographicSortSchema}});Object.defineProperty(C,"locatedError",{enumerable:!0,get:function(){return s8.locatedError}});Object.defineProperty(C,"parse",{enumerable:!0,get:function(){return t.parse}});Object.defineProperty(C,"parseConstValue",{enumerable:!0,get:function(){return t.parseConstValue}});Object.defineProperty(C,"parseType",{enumerable:!0,get:function(){return t.parseType}});Object.defineProperty(C,"parseValue",{enumerable:!0,get:function(){return t.parseValue}});Object.defineProperty(C,"print",{enumerable:!0,get:function(){return t.print}});Object.defineProperty(C,"printError",{enumerable:!0,get:function(){return s8.printError}});Object.defineProperty(C,"printIntrospectionSchema",{enumerable:!0,get:function(){return s.printIntrospectionSchema}});Object.defineProperty(C,"printLocation",{enumerable:!0,get:function(){return t.printLocation}});Object.defineProperty(C,"printSchema",{enumerable:!0,get:function(){return s.printSchema}});Object.defineProperty(C,"printSourceLocation",{enumerable:!0,get:function(){return t.printSourceLocation}});Object.defineProperty(C,"printType",{enumerable:!0,get:function(){return s.printType}});Object.defineProperty(C,"recommendedRules",{enumerable:!0,get:function(){return v.recommendedRules}});Object.defineProperty(C,"resolveObjMapThunk",{enumerable:!0,get:function(){return z.resolveObjMapThunk}});Object.defineProperty(C,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return z.resolveReadonlyArrayThunk}});Object.defineProperty(C,"responsePathAsArray",{enumerable:!0,get:function(){return w0.responsePathAsArray}});Object.defineProperty(C,"separateOperations",{enumerable:!0,get:function(){return s.separateOperations}});Object.defineProperty(C,"specifiedDirectives",{enumerable:!0,get:function(){return z.specifiedDirectives}});Object.defineProperty(C,"specifiedRules",{enumerable:!0,get:function(){return v.specifiedRules}});Object.defineProperty(C,"specifiedScalarTypes",{enumerable:!0,get:function(){return z.specifiedScalarTypes}});Object.defineProperty(C,"stripIgnoredCharacters",{enumerable:!0,get:function(){return s.stripIgnoredCharacters}});Object.defineProperty(C,"subscribe",{enumerable:!0,get:function(){return w0.subscribe}});Object.defineProperty(C,"syntaxError",{enumerable:!0,get:function(){return s8.syntaxError}});Object.defineProperty(C,"typeFromAST",{enumerable:!0,get:function(){return s.typeFromAST}});Object.defineProperty(C,"validate",{enumerable:!0,get:function(){return v.validate}});Object.defineProperty(C,"validateSchema",{enumerable:!0,get:function(){return z.validateSchema}});Object.defineProperty(C,"valueFromAST",{enumerable:!0,get:function(){return s.valueFromAST}});Object.defineProperty(C,"valueFromASTUntyped",{enumerable:!0,get:function(){return s.valueFromASTUntyped}});Object.defineProperty(C,"version",{enumerable:!0,get:function(){return t7.version}});Object.defineProperty(C,"versionInfo",{enumerable:!0,get:function(){return t7.versionInfo}});Object.defineProperty(C,"visit",{enumerable:!0,get:function(){return t.visit}});Object.defineProperty(C,"visitInParallel",{enumerable:!0,get:function(){return t.visitInParallel}});Object.defineProperty(C,"visitWithTypeInfo",{enumerable:!0,get:function(){return s.visitWithTypeInfo}});var t7=FE(),s7=q9(),z=u9(),t=Q9(),w0=k9(),v=y9(),s8=m9(),s=n7()});var MS=J((VV,QS)=>{QS.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 t3=J((_V,wS)=>{var OP=MS(),bS={};for(let D of Object.keys(OP))bS[OP[D]]=D;var K={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"]}};wS.exports=K;for(let D of Object.keys(K)){if(!("channels"in K[D]))throw new Error("missing channels property: "+D);if(!("labels"in K[D]))throw new Error("missing channel labels property: "+D);if(K[D].labels.length!==K[D].channels)throw new Error("channel and label counts mismatch: "+D);let{channels:P,labels:O}=K[D];delete K[D].channels,delete K[D].labels,Object.defineProperty(K[D],"channels",{value:P}),Object.defineProperty(K[D],"labels",{value:O})}K.rgb.hsl=function(D){let P=D[0]/255,O=D[1]/255,W=D[2]/255,E=Math.min(P,O,W),F=Math.max(P,O,W),R=F-E,S,L;if(F===E)S=0;else if(P===F)S=(O-W)/R;else if(O===F)S=2+(W-P)/R;else if(W===F)S=4+(P-O)/R;if(S=Math.min(S*60,360),S<0)S+=360;let B=(E+F)/2;if(F===E)L=0;else if(B<=0.5)L=R/(F+E);else L=R/(2-F-E);return[S,L*100,B*100]};K.rgb.hsv=function(D){let P,O,W,E,F,R=D[0]/255,S=D[1]/255,L=D[2]/255,B=Math.max(R,S,L),Y=B-Math.min(R,S,L),Z=function(H){return(B-H)/6/Y+0.5};if(Y===0)E=0,F=0;else{if(F=Y/B,P=Z(R),O=Z(S),W=Z(L),R===B)E=W-O;else if(S===B)E=0.3333333333333333+P-W;else if(L===B)E=0.6666666666666666+O-P;if(E<0)E+=1;else if(E>1)E-=1}return[E*360,F*100,B*100]};K.rgb.hwb=function(D){let P=D[0],O=D[1],W=D[2],E=K.rgb.hsl(D)[0],F=0.00392156862745098*Math.min(P,Math.min(O,W));return W=1-0.00392156862745098*Math.max(P,Math.max(O,W)),[E,F*100,W*100]};K.rgb.cmyk=function(D){let P=D[0]/255,O=D[1]/255,W=D[2]/255,E=Math.min(1-P,1-O,1-W),F=(1-P-E)/(1-E)||0,R=(1-O-E)/(1-E)||0,S=(1-W-E)/(1-E)||0;return[F*100,R*100,S*100,E*100]};function mM(D,P){return(D[0]-P[0])**2+(D[1]-P[1])**2+(D[2]-P[2])**2}K.rgb.keyword=function(D){let P=bS[D];if(P)return P;let O=1/0,W;for(let E of Object.keys(OP)){let F=OP[E],R=mM(D,F);if(R<O)O=R,W=E}return W};K.keyword.rgb=function(D){return OP[D]};K.rgb.xyz=function(D){let P=D[0]/255,O=D[1]/255,W=D[2]/255;P=P>0.04045?((P+0.055)/1.055)**2.4:P/12.92,O=O>0.04045?((O+0.055)/1.055)**2.4:O/12.92,W=W>0.04045?((W+0.055)/1.055)**2.4:W/12.92;let E=P*0.4124+O*0.3576+W*0.1805,F=P*0.2126+O*0.7152+W*0.0722,R=P*0.0193+O*0.1192+W*0.9505;return[E*100,F*100,R*100]};K.rgb.lab=function(D){let P=K.rgb.xyz(D),O=P[0],W=P[1],E=P[2];O/=95.047,W/=100,E/=108.883,O=O>0.008856?O**0.3333333333333333:7.787*O+0.13793103448275862,W=W>0.008856?W**0.3333333333333333:7.787*W+0.13793103448275862,E=E>0.008856?E**0.3333333333333333:7.787*E+0.13793103448275862;let F=116*W-16,R=500*(O-W),S=200*(W-E);return[F,R,S]};K.hsl.rgb=function(D){let P=D[0]/360,O=D[1]/100,W=D[2]/100,E,F,R;if(O===0)return R=W*255,[R,R,R];if(W<0.5)E=W*(1+O);else E=W+O-W*O;let S=2*W-E,L=[0,0,0];for(let B=0;B<3;B++){if(F=P+0.3333333333333333*-(B-1),F<0)F++;if(F>1)F--;if(6*F<1)R=S+(E-S)*6*F;else if(2*F<1)R=E;else if(3*F<2)R=S+(E-S)*(0.6666666666666666-F)*6;else R=S;L[B]=R*255}return L};K.hsl.hsv=function(D){let P=D[0],O=D[1]/100,W=D[2]/100,E=O,F=Math.max(W,0.01);W*=2,O*=W<=1?W:2-W,E*=F<=1?F:2-F;let R=(W+O)/2,S=W===0?2*E/(F+E):2*O/(W+O);return[P,S*100,R*100]};K.hsv.rgb=function(D){let P=D[0]/60,O=D[1]/100,W=D[2]/100,E=Math.floor(P)%6,F=P-Math.floor(P),R=255*W*(1-O),S=255*W*(1-O*F),L=255*W*(1-O*(1-F));switch(W*=255,E){case 0:return[W,L,R];case 1:return[S,W,R];case 2:return[R,W,L];case 3:return[R,S,W];case 4:return[L,R,W];case 5:return[W,R,S]}};K.hsv.hsl=function(D){let P=D[0],O=D[1]/100,W=D[2]/100,E=Math.max(W,0.01),F,R;R=(2-O)*W;let S=(2-O)*E;return F=O*E,F/=S<=1?S:2-S,F=F||0,R/=2,[P,F*100,R*100]};K.hwb.rgb=function(D){let P=D[0]/360,O=D[1]/100,W=D[2]/100,E=O+W,F;if(E>1)O/=E,W/=E;let R=Math.floor(6*P),S=1-W;if(F=6*P-R,(R&1)!==0)F=1-F;let L=O+F*(S-O),B,Y,Z;switch(R){default:case 6:case 0:B=S,Y=L,Z=O;break;case 1:B=L,Y=S,Z=O;break;case 2:B=O,Y=S,Z=L;break;case 3:B=O,Y=L,Z=S;break;case 4:B=L,Y=O,Z=S;break;case 5:B=S,Y=O,Z=L;break}return[B*255,Y*255,Z*255]};K.cmyk.rgb=function(D){let P=D[0]/100,O=D[1]/100,W=D[2]/100,E=D[3]/100,F=1-Math.min(1,P*(1-E)+E),R=1-Math.min(1,O*(1-E)+E),S=1-Math.min(1,W*(1-E)+E);return[F*255,R*255,S*255]};K.xyz.rgb=function(D){let P=D[0]/100,O=D[1]/100,W=D[2]/100,E,F,R;return E=P*3.2406+O*-1.5372+W*-0.4986,F=P*-0.9689+O*1.8758+W*0.0415,R=P*0.0557+O*-0.204+W*1.057,E=E>0.0031308?1.055*E**0.4166666666666667-0.055:E*12.92,F=F>0.0031308?1.055*F**0.4166666666666667-0.055:F*12.92,R=R>0.0031308?1.055*R**0.4166666666666667-0.055:R*12.92,E=Math.min(Math.max(0,E),1),F=Math.min(Math.max(0,F),1),R=Math.min(Math.max(0,R),1),[E*255,F*255,R*255]};K.xyz.lab=function(D){let P=D[0],O=D[1],W=D[2];P/=95.047,O/=100,W/=108.883,P=P>0.008856?P**0.3333333333333333:7.787*P+0.13793103448275862,O=O>0.008856?O**0.3333333333333333:7.787*O+0.13793103448275862,W=W>0.008856?W**0.3333333333333333:7.787*W+0.13793103448275862;let E=116*O-16,F=500*(P-O),R=200*(O-W);return[E,F,R]};K.lab.xyz=function(D){let P=D[0],O=D[1],W=D[2],E,F,R;F=(P+16)/116,E=O/500+F,R=F-W/200;let S=F**3,L=E**3,B=R**3;return F=S>0.008856?S:(F-0.13793103448275862)/7.787,E=L>0.008856?L:(E-0.13793103448275862)/7.787,R=B>0.008856?B:(R-0.13793103448275862)/7.787,E*=95.047,F*=100,R*=108.883,[E,F,R]};K.lab.lch=function(D){let P=D[0],O=D[1],W=D[2],E;if(E=Math.atan2(W,O)*360/2/Math.PI,E<0)E+=360;let R=Math.sqrt(O*O+W*W);return[P,R,E]};K.lch.lab=function(D){let P=D[0],O=D[1],E=D[2]/360*2*Math.PI,F=O*Math.cos(E),R=O*Math.sin(E);return[P,F,R]};K.rgb.ansi16=function(D,P=null){let[O,W,E]=D,F=P===null?K.rgb.hsv(D)[2]:P;if(F=Math.round(F/50),F===0)return 30;let R=30+(Math.round(E/255)<<2|Math.round(W/255)<<1|Math.round(O/255));if(F===2)R+=60;return R};K.hsv.ansi16=function(D){return K.rgb.ansi16(K.hsv.rgb(D),D[2])};K.rgb.ansi256=function(D){let P=D[0],O=D[1],W=D[2];if(P===O&&O===W){if(P<8)return 16;if(P>248)return 231;return Math.round((P-8)/247*24)+232}return 16+36*Math.round(P/255*5)+6*Math.round(O/255*5)+Math.round(W/255*5)};K.ansi16.rgb=function(D){let P=D%10;if(P===0||P===7){if(D>50)P+=3.5;return P=P/10.5*255,[P,P,P]}let O=(~~(D>50)+1)*0.5,W=(P&1)*O*255,E=(P>>1&1)*O*255,F=(P>>2&1)*O*255;return[W,E,F]};K.ansi256.rgb=function(D){if(D>=232){let F=(D-232)*10+8;return[F,F,F]}D-=16;let P,O=Math.floor(D/36)/5*255,W=Math.floor((P=D%36)/6)/5*255,E=P%6/5*255;return[O,W,E]};K.rgb.hex=function(D){let O=(((Math.round(D[0])&255)<<16)+((Math.round(D[1])&255)<<8)+(Math.round(D[2])&255)).toString(16).toUpperCase();return"000000".substring(O.length)+O};K.hex.rgb=function(D){let P=D.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!P)return[0,0,0];let O=P[0];if(P[0].length===3)O=O.split("").map((S)=>{return S+S}).join("");let W=parseInt(O,16),E=W>>16&255,F=W>>8&255,R=W&255;return[E,F,R]};K.rgb.hcg=function(D){let P=D[0]/255,O=D[1]/255,W=D[2]/255,E=Math.max(Math.max(P,O),W),F=Math.min(Math.min(P,O),W),R=E-F,S,L;if(R<1)S=F/(1-R);else S=0;if(R<=0)L=0;else if(E===P)L=(O-W)/R%6;else if(E===O)L=2+(W-P)/R;else L=4+(P-O)/R;return L/=6,L%=1,[L*360,R*100,S*100]};K.hsl.hcg=function(D){let P=D[1]/100,O=D[2]/100,W=O<0.5?2*P*O:2*P*(1-O),E=0;if(W<1)E=(O-0.5*W)/(1-W);return[D[0],W*100,E*100]};K.hsv.hcg=function(D){let P=D[1]/100,O=D[2]/100,W=P*O,E=0;if(W<1)E=(O-W)/(1-W);return[D[0],W*100,E*100]};K.hcg.rgb=function(D){let P=D[0]/360,O=D[1]/100,W=D[2]/100;if(O===0)return[W*255,W*255,W*255];let E=[0,0,0],F=P%1*6,R=F%1,S=1-R,L=0;switch(Math.floor(F)){case 0:E[0]=1,E[1]=R,E[2]=0;break;case 1:E[0]=S,E[1]=1,E[2]=0;break;case 2:E[0]=0,E[1]=1,E[2]=R;break;case 3:E[0]=0,E[1]=S,E[2]=1;break;case 4:E[0]=R,E[1]=0,E[2]=1;break;default:E[0]=1,E[1]=0,E[2]=S}return L=(1-O)*W,[(O*E[0]+L)*255,(O*E[1]+L)*255,(O*E[2]+L)*255]};K.hcg.hsv=function(D){let P=D[1]/100,O=D[2]/100,W=P+O*(1-P),E=0;if(W>0)E=P/W;return[D[0],E*100,W*100]};K.hcg.hsl=function(D){let P=D[1]/100,W=D[2]/100*(1-P)+0.5*P,E=0;if(W>0&&W<0.5)E=P/(2*W);else if(W>=0.5&&W<1)E=P/(2*(1-W));return[D[0],E*100,W*100]};K.hcg.hwb=function(D){let P=D[1]/100,O=D[2]/100,W=P+O*(1-P);return[D[0],(W-P)*100,(1-W)*100]};K.hwb.hcg=function(D){let P=D[1]/100,W=1-D[2]/100,E=W-P,F=0;if(E<1)F=(W-E)/(1-E);return[D[0],E*100,F*100]};K.apple.rgb=function(D){return[D[0]/65535*255,D[1]/65535*255,D[2]/65535*255]};K.rgb.apple=function(D){return[D[0]/255*65535,D[1]/255*65535,D[2]/255*65535]};K.gray.rgb=function(D){return[D[0]/100*255,D[0]/100*255,D[0]/100*255]};K.gray.hsl=function(D){return[0,0,D[0]]};K.gray.hsv=K.gray.hsl;K.gray.hwb=function(D){return[0,100,D[0]]};K.gray.cmyk=function(D){return[0,0,0,D[0]]};K.gray.lab=function(D){return[D[0],0,0]};K.gray.hex=function(D){let P=Math.round(D[0]/100*255)&255,W=((P<<16)+(P<<8)+P).toString(16).toUpperCase();return"000000".substring(W.length)+W};K.rgb.gray=function(D){return[(D[0]+D[1]+D[2])/3/255*100]}});var jS=J((TV,KS)=>{var bO=t3();function cM(){let D={},P=Object.keys(bO);for(let O=P.length,W=0;W<O;W++)D[P[W]]={distance:-1,parent:null};return D}function lM(D){let P=cM(),O=[D];P[D].distance=0;while(O.length){let W=O.pop(),E=Object.keys(bO[W]);for(let F=E.length,R=0;R<F;R++){let S=E[R],L=P[S];if(L.distance===-1)L.distance=P[W].distance+1,L.parent=W,O.unshift(S)}}return P}function rM(D,P){return function(O){return P(D(O))}}function dM(D,P){let O=[P[D].parent,D],W=bO[P[D].parent][D],E=P[D].parent;while(P[E].parent)O.unshift(P[E].parent),W=rM(bO[P[E].parent][E],W),E=P[E].parent;return W.conversion=O,W}KS.exports=function(D){let P=lM(D),O={},W=Object.keys(P);for(let E=W.length,F=0;F<E;F++){let R=W[F];if(P[R].parent===null)continue;O[R]=dM(R,P)}return O}});var VS=J((NV,$S)=>{var s3=t3(),pM=jS(),o2={},aM=Object.keys(s3);function nM(D){let P=function(...O){let W=O[0];if(W===void 0||W===null)return W;if(W.length>1)O=W;return D(O)};if("conversion"in D)P.conversion=D.conversion;return P}function tM(D){let P=function(...O){let W=O[0];if(W===void 0||W===null)return W;if(W.length>1)O=W;let E=D(O);if(typeof E==="object")for(let F=E.length,R=0;R<F;R++)E[R]=Math.round(E[R]);return E};if("conversion"in D)P.conversion=D.conversion;return P}aM.forEach((D)=>{o2[D]={},Object.defineProperty(o2[D],"channels",{value:s3[D].channels}),Object.defineProperty(o2[D],"labels",{value:s3[D].labels});let P=pM(D);Object.keys(P).forEach((W)=>{let E=P[W];o2[D][W]=tM(E),o2[D][W].raw=nM(E)})});$S.exports=o2});var KO=J((kV,xS)=>{var _S=(D,P)=>(...O)=>{return`\x1B[${D(...O)+P}m`},TS=(D,P)=>(...O)=>{let W=D(...O);return`\x1B[${38+P};5;${W}m`},NS=(D,P)=>(...O)=>{let W=D(...O);return`\x1B[${38+P};2;${W[0]};${W[1]};${W[2]}m`},wO=(D)=>D,kS=(D,P,O)=>[D,P,O],e2=(D,P,O)=>{Object.defineProperty(D,P,{get:()=>{let W=O();return Object.defineProperty(D,P,{value:W,enumerable:!0,configurable:!0}),W},enumerable:!0,configurable:!0})},i3,D8=(D,P,O,W)=>{if(i3===void 0)i3=VS();let E=W?10:0,F={};for(let[R,S]of Object.entries(i3)){let L=R==="ansi16"?"ansi":R;if(R===P)F[L]=D(O,E);else if(typeof S==="object")F[L]=D(S[P],E)}return F};function sM(){let D=new Map,P={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]}};P.color.gray=P.color.blackBright,P.bgColor.bgGray=P.bgColor.bgBlackBright,P.color.grey=P.color.blackBright,P.bgColor.bgGrey=P.bgColor.bgBlackBright;for(let[O,W]of Object.entries(P)){for(let[E,F]of Object.entries(W))P[E]={open:`\x1B[${F[0]}m`,close:`\x1B[${F[1]}m`},W[E]=P[E],D.set(F[0],F[1]);Object.defineProperty(P,O,{value:W,enumerable:!1})}return Object.defineProperty(P,"codes",{value:D,enumerable:!1}),P.color.close="\x1B[39m",P.bgColor.close="\x1B[49m",e2(P.color,"ansi",()=>D8(_S,"ansi16",wO,!1)),e2(P.color,"ansi256",()=>D8(TS,"ansi256",wO,!1)),e2(P.color,"ansi16m",()=>D8(NS,"rgb",kS,!1)),e2(P.bgColor,"ansi",()=>D8(_S,"ansi16",wO,!0)),e2(P.bgColor,"ansi256",()=>D8(TS,"ansi256",wO,!0)),e2(P.bgColor,"ansi16m",()=>D8(NS,"rgb",kS,!0)),P}Object.defineProperty(xS,"exports",{enumerable:!0,get:sM})});var o3=J((xV,fS)=>{fS.exports=(D,P=process.argv)=>{let O=D.startsWith("-")?"":D.length===1?"-":"--",W=P.indexOf(O+D),E=P.indexOf("--");return W!==-1&&(E===-1||W<E)}});var gS=J((fV,vS)=>{var iM=E0("os"),hS=E0("tty"),eD=o3(),{env:KD}=process,o0;if(eD("no-color")||eD("no-colors")||eD("color=false")||eD("color=never"))o0=0;else if(eD("color")||eD("colors")||eD("color=true")||eD("color=always"))o0=1;if("FORCE_COLOR"in KD)if(KD.FORCE_COLOR==="true")o0=1;else if(KD.FORCE_COLOR==="false")o0=0;else o0=KD.FORCE_COLOR.length===0?1:Math.min(parseInt(KD.FORCE_COLOR,10),3);function e3(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function D6(D,P){if(o0===0)return 0;if(eD("color=16m")||eD("color=full")||eD("color=truecolor"))return 3;if(eD("color=256"))return 2;if(D&&!P&&o0===void 0)return 0;let O=o0||0;if(KD.TERM==="dumb")return O;if(process.platform==="win32"){let W=iM.release().split(".");if(Number(W[0])>=10&&Number(W[2])>=10586)return Number(W[2])>=14931?3:2;return 1}if("CI"in KD){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((W)=>(W in KD))||KD.CI_NAME==="codeship")return 1;return O}if("TEAMCITY_VERSION"in KD)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(KD.TEAMCITY_VERSION)?1:0;if(KD.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in KD){let W=parseInt((KD.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(KD.TERM_PROGRAM){case"iTerm.app":return W>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(KD.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(KD.TERM))return 1;if("COLORTERM"in KD)return 1;return O}function oM(D){let P=D6(D,D&&D.isTTY);return e3(P)}vS.exports={supportsColor:oM,stdout:e3(D6(!0,hS.isatty(1))),stderr:e3(D6(!0,hS.isatty(2)))}});var mS=J((hV,yS)=>{var eM=(D,P,O)=>{let W=D.indexOf(P);if(W===-1)return D;let E=P.length,F=0,R="";do R+=D.substr(F,W-F)+P+O,F=W+E,W=D.indexOf(P,F);while(W!==-1);return R+=D.substr(F),R},Db=(D,P,O,W)=>{let E=0,F="";do{let R=D[W-1]==="\r";F+=D.substr(E,(R?W-1:W)-E)+P+(R?"\r\n":"\n")+O,E=W+1,W=D.indexOf("\n",E)}while(W!==-1);return F+=D.substr(E),F};yS.exports={stringReplaceAll:eM,stringEncaseCRLFWithFirstIndex:Db}});var pS=J((vV,dS)=>{var Pb=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,cS=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Ob=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Wb=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Eb=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function rS(D){let P=D[0]==="u",O=D[1]==="{";if(P&&!O&&D.length===5||D[0]==="x"&&D.length===3)return String.fromCharCode(parseInt(D.slice(1),16));if(P&&O)return String.fromCodePoint(parseInt(D.slice(2,-1),16));return Eb.get(D)||D}function Fb(D,P){let O=[],W=P.trim().split(/\s*,\s*/g),E;for(let F of W){let R=Number(F);if(!Number.isNaN(R))O.push(R);else if(E=F.match(Ob))O.push(E[2].replace(Wb,(S,L,B)=>L?rS(L):B));else throw new Error(`Invalid Chalk template style argument: ${F} (in style '${D}')`)}return O}function Rb(D){cS.lastIndex=0;let P=[],O;while((O=cS.exec(D))!==null){let W=O[1];if(O[2]){let E=Fb(W,O[2]);P.push([W].concat(E))}else P.push([W])}return P}function lS(D,P){let O={};for(let E of P)for(let F of E.styles)O[F[0]]=E.inverse?null:F.slice(1);let W=D;for(let[E,F]of Object.entries(O)){if(!Array.isArray(F))continue;if(!(E in W))throw new Error(`Unknown Chalk style: ${E}`);W=F.length>0?W[E](...F):W[E]}return W}dS.exports=(D,P)=>{let O=[],W=[],E=[];if(P.replace(Pb,(F,R,S,L,B,Y)=>{if(R)E.push(rS(R));else if(L){let Z=E.join("");E=[],W.push(O.length===0?Z:lS(D,O)(Z)),O.push({inverse:S,styles:Rb(L)})}else if(B){if(O.length===0)throw new Error("Found extraneous } in Chalk template literal");W.push(lS(D,O)(E.join(""))),E=[],O.pop()}else E.push(Y)}),W.push(E.join("")),O.length>0){let F=`Chalk template literal is missing ${O.length} closing bracket${O.length===1?"":"s"} (\`}\`)`;throw new Error(F)}return W.join("")}});var F6=J((gV,eS)=>{var WP=KO(),{stdout:O6,stderr:W6}=gS(),{stringReplaceAll:Sb,stringEncaseCRLFWithFirstIndex:Lb}=mS(),{isArray:jO}=Array,nS=["ansi","ansi","ansi256","ansi16m"],P8=Object.create(null),Bb=(D,P={})=>{if(P.level&&!(Number.isInteger(P.level)&&P.level>=0&&P.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let O=O6?O6.level:0;D.level=P.level===void 0?O:P.level};class tS{constructor(D){return sS(D)}}var sS=(D)=>{let P={};return Bb(P,D),P.template=(...O)=>oS(P.template,...O),Object.setPrototypeOf(P,$O.prototype),Object.setPrototypeOf(P.template,P),P.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},P.template.Instance=tS,P.template};function $O(D){return sS(D)}for(let[D,P]of Object.entries(WP))P8[D]={get(){let O=VO(this,E6(P.open,P.close,this._styler),this._isEmpty);return Object.defineProperty(this,D,{value:O}),O}};P8.visible={get(){let D=VO(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:D}),D}};var iS=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let D of iS)P8[D]={get(){let{level:P}=this;return function(...O){let W=E6(WP.color[nS[P]][D](...O),WP.color.close,this._styler);return VO(this,W,this._isEmpty)}}};for(let D of iS){let P="bg"+D[0].toUpperCase()+D.slice(1);P8[P]={get(){let{level:O}=this;return function(...W){let E=E6(WP.bgColor[nS[O]][D](...W),WP.bgColor.close,this._styler);return VO(this,E,this._isEmpty)}}}}var Yb=Object.defineProperties(()=>{},{...P8,level:{enumerable:!0,get(){return this._generator.level},set(D){this._generator.level=D}}}),E6=(D,P,O)=>{let W,E;if(O===void 0)W=D,E=P;else W=O.openAll+D,E=P+O.closeAll;return{open:D,close:P,openAll:W,closeAll:E,parent:O}},VO=(D,P,O)=>{let W=(...E)=>{if(jO(E[0])&&jO(E[0].raw))return aS(W,oS(W,...E));return aS(W,E.length===1?""+E[0]:E.join(" "))};return Object.setPrototypeOf(W,Yb),W._generator=D,W._styler=P,W._isEmpty=O,W},aS=(D,P)=>{if(D.level<=0||!P)return D._isEmpty?"":P;let O=D._styler;if(O===void 0)return P;let{openAll:W,closeAll:E}=O;if(P.indexOf("\x1B")!==-1)while(O!==void 0)P=Sb(P,O.close,O.open),O=O.parent;let F=P.indexOf("\n");if(F!==-1)P=Lb(P,E,W,F);return W+P+E},P6,oS=(D,...P)=>{let[O]=P;if(!jO(O)||!jO(O.raw))return P.join(" ");let W=P.slice(1),E=[O.raw[0]];for(let F=1;F<O.length;F++)E.push(String(W[F-1]).replace(/[{}\\]/g,"\\$&"),String(O.raw[F]));if(P6===void 0)P6=pS();return P6(D,E.join(""))};Object.defineProperties($O.prototype,P8);var _O=$O();_O.supportsColor=O6;_O.stderr=$O({level:W6?W6.level:0});_O.stderr.supportsColor=W6;eS.exports=_O});var DL=J((yV,Zb)=>{Zb.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\uD83D\uDE04 ","\uD83D\uDE1D "]},monkey:{interval:300,frames:["\uD83D\uDE48 ","\uD83D\uDE48 ","\uD83D\uDE49 ","\uD83D\uDE4A "]},hearts:{interval:100,frames:["\uD83D\uDC9B ","\uD83D\uDC99 ","\uD83D\uDC9C ","\uD83D\uDC9A ","\u2764\uFE0F "]},clock:{interval:100,frames:["\uD83D\uDD5B ","\uD83D\uDD50 ","\uD83D\uDD51 ","\uD83D\uDD52 ","\uD83D\uDD53 ","\uD83D\uDD54 ","\uD83D\uDD55 ","\uD83D\uDD56 ","\uD83D\uDD57 ","\uD83D\uDD58 ","\uD83D\uDD59 ","\uD83D\uDD5A "]},earth:{interval:180,frames:["\uD83C\uDF0D ","\uD83C\uDF0E ","\uD83C\uDF0F "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\uD83C\uDF11 ","\uD83C\uDF12 ","\uD83C\uDF13 ","\uD83C\uDF14 ","\uD83C\uDF15 ","\uD83C\uDF16 ","\uD83C\uDF17 ","\uD83C\uDF18 "]},runner:{interval:140,frames:["\uD83D\uDEB6 ","\uD83C\uDFC3 "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\uD83C\uDF24 ","\u26C5\uFE0F ","\uD83C\uDF25 ","\u2601\uFE0F ","\uD83C\uDF27 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","\u26C8 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","\u2601\uFE0F ","\uD83C\uDF25 ","\u26C5\uFE0F ","\uD83C\uDF24 ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\uD83C\uDF32","\uD83C\uDF84"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\uD83E\uDD18 ","\uD83E\uDD1F ","\uD83D\uDD96 ","\u270B ","\uD83E\uDD1A ","\uD83D\uDC46 "]},fistBump:{interval:80,frames:["\uD83E\uDD1C\u3000\u3000\u3000\u3000\uD83E\uDD1B ","\uD83E\uDD1C\u3000\u3000\u3000\u3000\uD83E\uDD1B ","\uD83E\uDD1C\u3000\u3000\u3000\u3000\uD83E\uDD1B ","\u3000\uD83E\uDD1C\u3000\u3000\uD83E\uDD1B\u3000 ","\u3000\u3000\uD83E\uDD1C\uD83E\uDD1B\u3000\u3000 ","\u3000\uD83E\uDD1C\u2728\uD83E\uDD1B\u3000\u3000 ","\uD83E\uDD1C\u3000\u2728\u3000\uD83E\uDD1B\u3000 "]},soccerHeader:{interval:80,frames:[" \uD83E\uDDD1\u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F\uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 "]},mindblown:{interval:160,frames:["\uD83D\uDE10 ","\uD83D\uDE10 ","\uD83D\uDE2E ","\uD83D\uDE2E ","\uD83D\uDE26 ","\uD83D\uDE26 ","\uD83D\uDE27 ","\uD83D\uDE27 ","\uD83E\uDD2F ","\uD83D\uDCA5 ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\uD83D\uDD08 ","\uD83D\uDD09 ","\uD83D\uDD0A ","\uD83D\uDD09 "]},orangePulse:{interval:100,frames:["\uD83D\uDD38 ","\uD83D\uDD36 ","\uD83D\uDFE0 ","\uD83D\uDFE0 ","\uD83D\uDD36 "]},bluePulse:{interval:100,frames:["\uD83D\uDD39 ","\uD83D\uDD37 ","\uD83D\uDD35 ","\uD83D\uDD35 ","\uD83D\uDD37 "]},orangeBluePulse:{interval:100,frames:["\uD83D\uDD38 ","\uD83D\uDD36 ","\uD83D\uDFE0 ","\uD83D\uDFE0 ","\uD83D\uDD36 ","\uD83D\uDD39 ","\uD83D\uDD37 ","\uD83D\uDD35 ","\uD83D\uDD35 ","\uD83D\uDD37 "]},timeTravel:{interval:100,frames:["\uD83D\uDD5B ","\uD83D\uDD5A ","\uD83D\uDD59 ","\uD83D\uDD58 ","\uD83D\uDD57 ","\uD83D\uDD56 ","\uD83D\uDD55 ","\uD83D\uDD54 ","\uD83D\uDD53 ","\uD83D\uDD52 ","\uD83D\uDD51 ","\uD83D\uDD50 "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var WL=J((mV,OL)=>{var TO=Object.assign({},DL()),PL=Object.keys(TO);Object.defineProperty(TO,"random",{get(){let D=Math.floor(Math.random()*PL.length),P=PL[D];return TO[P]}});OL.exports=TO});var LL=J((E_,SL)=>{SL.exports=Ab;function Cb(D){let P={defaultWidth:0,output:process.stdout,tty:E0("tty")};if(!D)return P;return Object.keys(P).forEach(function(O){if(!D[O])D[O]=P[O]}),D}function Ab(D){let P=Cb(D);if(P.output.getWindowSize)return P.output.getWindowSize()[0]||P.defaultWidth;if(P.tty.getWindowSize)return P.tty.getWindowSize()[1]||P.defaultWidth;if(P.output.columns)return P.output.columns;if(process.env.CLI_WIDTH){let O=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(O)&&O!==0)return O}return P.defaultWidth}});var YL=J((F_,BL)=>{BL.exports=({onlyFirst:D=!1}={})=>{let P=["[\\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(P,D?void 0:"g")}});var kO=J((R_,ZL)=>{var Jb=YL();ZL.exports=(D)=>typeof D==="string"?D.replace(Jb(),""):D});var CL=J((S_,S6)=>{var HL=(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};S6.exports=HL;S6.exports.default=HL});var JL=J((L_,AL)=>{AL.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 XL=J((B_,L6)=>{var Ub=kO(),Xb=CL(),qb=JL(),UL=(D)=>{if(typeof D!=="string"||D.length===0)return 0;if(D=Ub(D),D.length===0)return 0;D=D.replace(qb()," ");let P=0;for(let O=0;O<D.length;O++){let W=D.codePointAt(O);if(W<=31||W>=127&&W<=159)continue;if(W>=768&&W<=879)continue;if(W>65535)O++;P+=Xb(W)?2:1}return P};L6.exports=UL;L6.exports.default=UL});var zL=J((Y_,GL)=>{var EP=XL(),Gb=kO(),zb=KO(),Y6=new Set(["\x1B","\x9B"]),qL=(D)=>`${Y6.values().next().value}[${D}m`,ub=(D)=>D.split(" ").map((P)=>EP(P)),B6=(D,P,O)=>{let W=[...P],E=!1,F=EP(Gb(D[D.length-1]));for(let[R,S]of W.entries()){let L=EP(S);if(F+L<=O)D[D.length-1]+=S;else D.push(S),F=0;if(Y6.has(S))E=!0;else if(E&&S==="m"){E=!1;continue}if(E)continue;if(F+=L,F===O&&R<W.length-1)D.push(""),F=0}if(!F&&D[D.length-1].length>0&&D.length>1)D[D.length-2]+=D.pop()},Ib=(D)=>{let P=D.split(" "),O=P.length;while(O>0){if(EP(P[O-1])>0)break;O--}if(O===P.length)return D;return P.slice(0,O).join(" ")+P.slice(O).join("")},Qb=(D,P,O={})=>{if(O.trim!==!1&&D.trim()==="")return"";let W="",E="",F,R=ub(D),S=[""];for(let[L,B]of D.split(" ").entries()){if(O.trim!==!1)S[S.length-1]=S[S.length-1].trimLeft();let Y=EP(S[S.length-1]);if(L!==0){if(Y>=P&&(O.wordWrap===!1||O.trim===!1))S.push(""),Y=0;if(Y>0||O.trim===!1)S[S.length-1]+=" ",Y++}if(O.hard&&R[L]>P){let Z=P-Y,H=1+Math.floor((R[L]-Z-1)/P);if(Math.floor((R[L]-1)/P)<H)S.push("");B6(S,B,P);continue}if(Y+R[L]>P&&Y>0&&R[L]>0){if(O.wordWrap===!1&&Y<P){B6(S,B,P);continue}S.push("")}if(Y+R[L]>P&&O.wordWrap===!1){B6(S,B,P);continue}S[S.length-1]+=B}if(O.trim!==!1)S=S.map(Ib);W=S.join("\n");for(let[L,B]of[...W].entries()){if(E+=B,Y6.has(B)){let Z=parseFloat(/\d[^m]*/.exec(W.slice(L,L+4)));F=Z===39?null:Z}let Y=zb.codes.get(Number(F));if(F&&Y){if(W[L+1]==="\n")E+=qL(Y);else if(B==="\n")E+=qL(F)}}return E};GL.exports=(D,P,O)=>{return String(D).normalize().replace(/\r\n/g,"\n").split("\n").map((W)=>Qb(W,P,O)).join("\n")}});var jL=J((I_,KL)=>{var wb=E0("stream");class wL extends wb{#O=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}#P(D,P){if(this._dest)return this._dest[D];if(this._src)return this._src[D];return P}#D(D,...P){if(typeof this._dest?.[D]==="function")this._dest[D](...P);if(typeof this._src?.[D]==="function")this._src[D](...P)}get isTTY(){if(this.#O!==null)return this.#O;return this.#P("isTTY",!1)}set isTTY(D){this.#O=D}get rows(){return this.#P("rows")}get columns(){return this.#P("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(D){this._src=D}pipe(D,P){return this._dest=D,super.pipe(D,P)}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)}}KL.exports=wL});var q6=J(($b,X6)=>{var d=$b;$b.default=d;var o="\x1B[",RP="\x1B]",O8="\x07",hO=";",NL=process.env.TERM_PROGRAM==="Apple_Terminal";d.cursorTo=(D,P)=>{if(typeof D!=="number")throw new TypeError("The `x` argument is required");if(typeof P!=="number")return o+(D+1)+"G";return o+(P+1)+";"+(D+1)+"H"};d.cursorMove=(D,P)=>{if(typeof D!=="number")throw new TypeError("The `x` argument is required");let O="";if(D<0)O+=o+-D+"D";else if(D>0)O+=o+D+"C";if(P<0)O+=o+-P+"A";else if(P>0)O+=o+P+"B";return O};d.cursorUp=(D=1)=>o+D+"A";d.cursorDown=(D=1)=>o+D+"B";d.cursorForward=(D=1)=>o+D+"C";d.cursorBackward=(D=1)=>o+D+"D";d.cursorLeft=o+"G";d.cursorSavePosition=NL?"\x1B7":o+"s";d.cursorRestorePosition=NL?"\x1B8":o+"u";d.cursorGetPosition=o+"6n";d.cursorNextLine=o+"E";d.cursorPrevLine=o+"F";d.cursorHide=o+"?25l";d.cursorShow=o+"?25h";d.eraseLines=(D)=>{let P="";for(let O=0;O<D;O++)P+=d.eraseLine+(O<D-1?d.cursorUp():"");if(D)P+=d.cursorLeft;return P};d.eraseEndLine=o+"K";d.eraseStartLine=o+"1K";d.eraseLine=o+"2K";d.eraseDown=o+"J";d.eraseUp=o+"1J";d.eraseScreen=o+"2J";d.scrollUp=o+"S";d.scrollDown=o+"T";d.clearScreen="\x1Bc";d.clearTerminal=process.platform==="win32"?`${d.eraseScreen}${o}0f`:`${d.eraseScreen}${o}3J${o}H`;d.beep=O8;d.link=(D,P)=>{return[RP,"8",hO,hO,P,O8,D,RP,"8",hO,hO,O8].join("")};d.image=(D,P={})=>{let O=`${RP}1337;File=inline=1`;if(P.width)O+=`;width=${P.width}`;if(P.height)O+=`;height=${P.height}`;if(P.preserveAspectRatio===!1)O+=";preserveAspectRatio=0";return O+":"+D.toString("base64")+O8};d.iTerm={setCwd:(D=process.cwd())=>`${RP}50;CurrentDir=${D}${O8}`,annotation:(D,P={})=>{let O=`${RP}1337;`,W=typeof P.x!=="undefined",E=typeof P.y!=="undefined";if((W||E)&&!(W&&E&&typeof P.length!=="undefined"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");if(D=D.replace(/\|/g,""),O+=P.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",P.length>0)O+=(W?[D,P.length,P.x,P.y]:[P.length,D]).join("|");else O+=D;return O+O8}}});var lL=J((WT,cL)=>{var vb=E0("os"),mL=E0("tty"),D0=o3(),{env:jD}=process,P2;if(D0("no-color")||D0("no-colors")||D0("color=false")||D0("color=never"))P2=0;else if(D0("color")||D0("colors")||D0("color=true")||D0("color=always"))P2=1;if("FORCE_COLOR"in jD)if(jD.FORCE_COLOR==="true")P2=1;else if(jD.FORCE_COLOR==="false")P2=0;else P2=jD.FORCE_COLOR.length===0?1:Math.min(parseInt(jD.FORCE_COLOR,10),3);function G6(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function z6(D,P){if(P2===0)return 0;if(D0("color=16m")||D0("color=full")||D0("color=truecolor"))return 3;if(D0("color=256"))return 2;if(D&&!P&&P2===void 0)return 0;let O=P2||0;if(jD.TERM==="dumb")return O;if(process.platform==="win32"){let W=vb.release().split(".");if(Number(W[0])>=10&&Number(W[2])>=10586)return Number(W[2])>=14931?3:2;return 1}if("CI"in jD){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((W)=>(W in jD))||jD.CI_NAME==="codeship")return 1;return O}if("TEAMCITY_VERSION"in jD)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(jD.TEAMCITY_VERSION)?1:0;if(jD.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in jD){let W=parseInt((jD.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(jD.TERM_PROGRAM){case"iTerm.app":return W>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(jD.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(jD.TERM))return 1;if("COLORTERM"in jD)return 1;return O}function gb(D){let P=z6(D,D&&D.isTTY);return G6(P)}cL.exports={supportsColor:gb,stdout:G6(z6(!0,mL.isatty(1))),stderr:G6(z6(!0,mL.isatty(2)))}});var dL=J((ET,rL)=>{var yb=(D,P,O)=>{let W=D.indexOf(P);if(W===-1)return D;let E=P.length,F=0,R="";do R+=D.substr(F,W-F)+P+O,F=W+E,W=D.indexOf(P,F);while(W!==-1);return R+=D.substr(F),R},mb=(D,P,O,W)=>{let E=0,F="";do{let R=D[W-1]==="\r";F+=D.substr(E,(R?W-1:W)-E)+P+(R?"\r\n":"\n")+O,E=W+1,W=D.indexOf("\n",E)}while(W!==-1);return F+=D.substr(E),F};rL.exports={stringReplaceAll:yb,stringEncaseCRLFWithFirstIndex:mb}});var sL=J((FT,tL)=>{var cb=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,pL=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,lb=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,rb=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,db=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function nL(D){let P=D[0]==="u",O=D[1]==="{";if(P&&!O&&D.length===5||D[0]==="x"&&D.length===3)return String.fromCharCode(parseInt(D.slice(1),16));if(P&&O)return String.fromCodePoint(parseInt(D.slice(2,-1),16));return db.get(D)||D}function pb(D,P){let O=[],W=P.trim().split(/\s*,\s*/g),E;for(let F of W){let R=Number(F);if(!Number.isNaN(R))O.push(R);else if(E=F.match(lb))O.push(E[2].replace(rb,(S,L,B)=>L?nL(L):B));else throw new Error(`Invalid Chalk template style argument: ${F} (in style '${D}')`)}return O}function ab(D){pL.lastIndex=0;let P=[],O;while((O=pL.exec(D))!==null){let W=O[1];if(O[2]){let E=pb(W,O[2]);P.push([W].concat(E))}else P.push([W])}return P}function aL(D,P){let O={};for(let E of P)for(let F of E.styles)O[F[0]]=E.inverse?null:F.slice(1);let W=D;for(let[E,F]of Object.entries(O)){if(!Array.isArray(F))continue;if(!(E in W))throw new Error(`Unknown Chalk style: ${E}`);W=F.length>0?W[E](...F):W[E]}return W}tL.exports=(D,P)=>{let O=[],W=[],E=[];if(P.replace(cb,(F,R,S,L,B,Y)=>{if(R)E.push(nL(R));else if(L){let Z=E.join("");E=[],W.push(O.length===0?Z:aL(D,O)(Z)),O.push({inverse:S,styles:ab(L)})}else if(B){if(O.length===0)throw new Error("Found extraneous } in Chalk template literal");W.push(aL(D,O)(E.join(""))),E=[],O.pop()}else E.push(Y)}),W.push(E.join("")),O.length>0){let F=`Chalk template literal is missing ${O.length} closing bracket${O.length===1?"":"s"} (\`}\`)`;throw new Error(F)}return W.join("")}});var EB=J((RT,WB)=>{var SP=KO(),{stdout:I6,stderr:Q6}=lL(),{stringReplaceAll:nb,stringEncaseCRLFWithFirstIndex:tb}=dL(),{isArray:mO}=Array,oL=["ansi","ansi","ansi256","ansi16m"],E8=Object.create(null),sb=(D,P={})=>{if(P.level&&!(Number.isInteger(P.level)&&P.level>=0&&P.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let O=I6?I6.level:0;D.level=P.level===void 0?O:P.level};class eL{constructor(D){return DB(D)}}var DB=(D)=>{let P={};return sb(P,D),P.template=(...O)=>OB(P.template,...O),Object.setPrototypeOf(P,cO.prototype),Object.setPrototypeOf(P.template,P),P.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},P.template.Instance=eL,P.template};function cO(D){return DB(D)}for(let[D,P]of Object.entries(SP))E8[D]={get(){let O=lO(this,M6(P.open,P.close,this._styler),this._isEmpty);return Object.defineProperty(this,D,{value:O}),O}};E8.visible={get(){let D=lO(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:D}),D}};var PB=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let D of PB)E8[D]={get(){let{level:P}=this;return function(...O){let W=M6(SP.color[oL[P]][D](...O),SP.color.close,this._styler);return lO(this,W,this._isEmpty)}}};for(let D of PB){let P="bg"+D[0].toUpperCase()+D.slice(1);E8[P]={get(){let{level:O}=this;return function(...W){let E=M6(SP.bgColor[oL[O]][D](...W),SP.bgColor.close,this._styler);return lO(this,E,this._isEmpty)}}}}var ib=Object.defineProperties(()=>{},{...E8,level:{enumerable:!0,get(){return this._generator.level},set(D){this._generator.level=D}}}),M6=(D,P,O)=>{let W,E;if(O===void 0)W=D,E=P;else W=O.openAll+D,E=P+O.closeAll;return{open:D,close:P,openAll:W,closeAll:E,parent:O}},lO=(D,P,O)=>{let W=(...E)=>{if(mO(E[0])&&mO(E[0].raw))return iL(W,OB(W,...E));return iL(W,E.length===1?""+E[0]:E.join(" "))};return Object.setPrototypeOf(W,ib),W._generator=D,W._styler=P,W._isEmpty=O,W},iL=(D,P)=>{if(D.level<=0||!P)return D._isEmpty?"":P;let O=D._styler;if(O===void 0)return P;let{openAll:W,closeAll:E}=O;if(P.indexOf("\x1B")!==-1)while(O!==void 0)P=nb(P,O.close,O.open),O=O.parent;let F=P.indexOf("\n");if(F!==-1)P=tb(P,E,W,F);return W+P+E},u6,OB=(D,...P)=>{let[O]=P;if(!mO(O)||!mO(O.raw))return P.join(" ");let W=P.slice(1),E=[O.raw[0]];for(let F=1;F<O.length;F++)E.push(String(W[F-1]).replace(/[{}\\]/g,"\\$&"),String(O.raw[F]));if(u6===void 0)u6=sL();return u6(D,E.join(""))};Object.defineProperties(cO.prototype,E8);var rO=cO();rO.supportsColor=I6;rO.stderr=cO({level:Q6?Q6.level:0});rO.stderr.supportsColor=Q6;WB.exports=rO});var CP={name:"@samarium.sdk/new",version:"0.14.0-beta.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://github.com/liontariai/samarium",bin:{samarium:"bin/samarium"},publishConfig:{access:"public"},files:["bin/**/*","README.md","package.json"],scripts:{prettier:"prettier --write .",bundle:"bun bundle.js",prepublishOnly:"bun run bundle",test:"bun test",release:"cross-env RELEASE_MODE=true np"},prettier:{tabWidth:4},devDependencies:{"bun-types":"^1.1.29","cross-env":"^7.0.3",np:"^10.0.5"},peerDependencies:{typescript:"^5.0.0"},dependencies:{"@samarium.sdk/make":"workspace:*","@inquirer/prompts":"^5.0.5",commander:"^11.1.0","detect-indent":"^7.0.1",prettier:"^3.2.5"}};var PE=XD(DE(),1),{program:Nw,createCommand:kw,createArgument:xw,createOption:fw,CommanderError:hw,InvalidArgumentError:vw,InvalidOptionArgumentError:gw,Command:OE,Argument:yw,Option:mw,Help:cw}=PE.default;var ZS=XD(K0(),1);var XO=XD(K0(),1);class t0 extends Error{response;request;constructor(D,P){let O=`${t0.extractMessage(D)}: ${JSON.stringify({response:D,request:P})}`;super(O);if(Object.setPrototypeOf(this,t0.prototype),this.response=D,this.request=P,typeof Error.captureStackTrace==="function")Error.captureStackTrace(this,t0)}static extractMessage(D){return D.errors?.[0]?.message??`GraphQL Error (Code: ${String(D.status)})`}}var $3=(D)=>D.toUpperCase(),ZO=(D)=>{return typeof D==="function"?D():D},V3=(D,P)=>D.map((O,W)=>[O,P[W]]),z2=(D)=>{let P={};if(D instanceof Headers)P=uM(D);else if(Array.isArray(D))D.forEach(([O,W])=>{if(O&&W!==void 0)P[O]=W});else if(D)P=D;return P},uM=(D)=>{let P={};return D.forEach((O,W)=>{P[W]=O}),P},o7=(D)=>{try{let P=D();if(IM(P))return P.catch((O)=>{return i7(O)});return P}catch(P){return i7(P)}},i7=(D)=>{if(D instanceof Error)return D;return new Error(String(D))},IM=(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"},HO=(D)=>{throw new Error(`Unhandled case: ${String(D)}`)},i8=(D)=>{return typeof D==="object"&&D!==null&&!Array.isArray(D)};var e7=(D,P)=>{return D.documents?D:{documents:D,requestHeaders:P,signal:void 0}};var DS=(D,P,O)=>{return D.query?D:{query:D,variables:P,requestHeaders:O,signal:void 0}};var WS=XD(K0(),1);var _3="Accept",CO="Content-Type",o8="application/json",AO="application/graphql-response+json";var T3=(D)=>D.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),ES=(D)=>{let P=D.toLowerCase();return P.includes(AO)||P.includes(o8)},N3=(D)=>{try{if(Array.isArray(D))return{_tag:"Batch",executionResults:D.map(PS)};else if(i8(D))return{_tag:"Single",executionResult:PS(D)};else throw new Error(`Invalid execution result: result is not object or array. \nGot:\n${String(D)}`)}catch(P){return P}},PS=(D)=>{if(typeof D!=="object"||D===null)throw new Error("Invalid execution result: result is not object");let P=void 0,O=void 0,W=void 0;if("errors"in D){if(!i8(D.errors)&&!Array.isArray(D.errors))throw new Error("Invalid execution result: errors is not plain object OR array");P=D.errors}if("data"in D){if(!i8(D.data)&&D.data!==null)throw new Error("Invalid execution result: data is not plain object");O=D.data}if("extensions"in D){if(!i8(D.extensions))throw new Error("Invalid execution result: extensions is not plain object");W=D.extensions}return{data:O,errors:P,extensions:W}},FS=(D)=>D._tag==="Batch"?D.executionResults.some(OS):OS(D.executionResult),OS=(D)=>Array.isArray(D.errors)?D.errors.length>0:Boolean(D.errors),k3=(D)=>{return typeof D==="object"&&D!==null&&"kind"in D&&D.kind===WS.Kind.OPERATION_DEFINITION};var RS=XD(K0(),1),SS=XD(K0(),1),LS=XD(K0(),1),QM=(D)=>{let P=void 0,O=D.definitions.filter(k3);if(O.length===1)P=O[0].name?.value;return P},MM=(D)=>{let P=!1,O=D.definitions.filter(k3);if(O.length===1)P=O[0].operation===RS.OperationTypeNode.MUTATION;return P},e8=(D,P)=>{let O=typeof D==="string"?D:LS.print(D),W=!1,E=void 0;if(P)return{expression:O,isMutation:W,operationName:E};let F=o7(()=>typeof D==="string"?SS.parse(D):D);if(F instanceof Error)return{expression:O,isMutation:W,operationName:E};return E=QM(F),W=MM(F),{expression:O,operationName:E,isMutation:W}};var JO=JSON;var UO=async(D)=>{let P={...D,method:D.request._tag==="Single"?D.request.document.isMutation?"POST":$3(D.method??"post"):D.request.hasMutations?"POST":$3(D.method??"post"),fetchOptions:{...D.fetchOptions,errorPolicy:D.fetchOptions.errorPolicy??"none"}},W=await wM(P.method)(P);if(!W.ok)return new t0({status:W.status,headers:W.headers},{query:D.request._tag==="Single"?D.request.document.expression:D.request.query,variables:D.request.variables});let E=await bM(W,D.fetchOptions.jsonSerializer??JO);if(E instanceof Error)throw E;let F={status:W.status,headers:W.headers};if(FS(E)&&P.fetchOptions.errorPolicy==="none"){let R=E._tag==="Batch"?{...E.executionResults,...F}:{...E.executionResult,...F};return new t0(R,{query:D.request._tag==="Single"?D.request.document.expression:D.request.query,variables:D.request.variables})}switch(E._tag){case"Single":return{...F,...BS(P)(E.executionResult)};case"Batch":return{...F,data:E.executionResults.map(BS(P))};default:HO(E)}},BS=(D)=>(P)=>{return{extensions:P.extensions,data:P.data,errors:D.fetchOptions.errorPolicy==="all"?P.errors:void 0}},bM=async(D,P)=>{let O=D.headers.get(CO),W=await D.text();if(O&&ES(O))return N3(P.parse(W));else return N3(W)},wM=(D)=>async(P)=>{let O=new Headers(P.headers),W=null,E=void 0;if(!O.has(_3))O.set(_3,[AO,o8].join(", "));if(D==="POST"){if(E=(P.fetchOptions.jsonSerializer??JO).stringify(KM(P)),typeof E==="string"&&!O.has(CO))O.set(CO,o8)}else W=jM(P);let F={method:D,headers:O,body:E,...P.fetchOptions},R=new URL(P.url),S=F;if(P.middleware){let B=await Promise.resolve(P.middleware({...F,url:P.url,operationName:P.request._tag==="Single"?P.request.document.operationName:void 0,variables:P.request.variables})),{url:Y,...Z}=B;R=new URL(Y),S=Z}if(W)W.forEach((B,Y)=>{R.searchParams.append(Y,B)});return await(P.fetch??fetch)(R,S)},KM=(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 V3(D.request.query,D.request.variables??[]).map(([P,O])=>({query:P,variables:O}));default:throw HO(D.request)}},jM=(D)=>{let P=D.fetchOptions.jsonSerializer??JO,O=new URLSearchParams;switch(D.request._tag){case"Single":{if(O.append("query",T3(D.request.document.expression)),D.request.variables)O.append("variables",P.stringify(D.request.variables));if(D.request.document.operationName)O.append("operationName",D.request.document.operationName);return O}case"Batch":{let W=D.request.variables?.map((R)=>P.stringify(R))??[],E=D.request.query.map(T3),F=V3(E,W).map(([R,S])=>({query:R,variables:S}));return O.append("query",P.stringify(F)),O}default:throw HO(D.request)}};class u2{url;requestConfig;constructor(D,P={}){this.url=D,this.requestConfig=P}rawRequest=async(...D)=>{let[P,O,W]=D,E=DS(P,O,W),{headers:F,fetch:R=globalThis.fetch,method:S="POST",requestMiddleware:L,responseMiddleware:B,excludeOperationName:Y,...Z}=this.requestConfig,{url:H}=this;if(E.signal!==void 0)Z.signal=E.signal;let A=e8(E.query,Y),X=await UO({url:H,request:{_tag:"Single",document:A,variables:E.variables},headers:{...z2(ZO(F)),...z2(E.requestHeaders)},fetch:R,method:S,fetchOptions:Z,middleware:L});if(B)await B(X,{operationName:A.operationName,variables:O,url:this.url});if(X instanceof Error)throw X;return X};async request(D,...P){let[O,W]=P,E=YS(D,O,W),{headers:F,fetch:R=globalThis.fetch,method:S="POST",requestMiddleware:L,responseMiddleware:B,excludeOperationName:Y,...Z}=this.requestConfig,{url:H}=this;if(E.signal!==void 0)Z.signal=E.signal;let A=e8(E.document,Y),X=await UO({url:H,request:{_tag:"Single",document:A,variables:E.variables},headers:{...z2(ZO(F)),...z2(E.requestHeaders)},fetch:R,method:S,fetchOptions:Z,middleware:L});if(B)await B(X,{operationName:A.operationName,variables:E.variables,url:this.url});if(X instanceof Error)throw X;return X.data}async batchRequests(D,P){let O=e7(D,P),{headers:W,excludeOperationName:E,...F}=this.requestConfig;if(O.signal!==void 0)F.signal=O.signal;let R=O.documents.map(({document:Z})=>e8(Z,E)),S=R.map(({expression:Z})=>Z),L=R.some(({isMutation:Z})=>Z),B=O.documents.map(({variables:Z})=>Z),Y=await UO({url:this.url,request:{_tag:"Batch",operationName:void 0,query:S,hasMutations:L,variables:B},headers:{...z2(ZO(W)),...z2(O.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:F,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware)await this.requestConfig.responseMiddleware(Y,{operationName:void 0,variables:B,url:this.url});if(Y instanceof Error)throw Y;return Y.data}setHeaders(D){return this.requestConfig.headers=D,this}setHeader(D,P){let{headers:O}=this.requestConfig;if(O)O[D]=P;else this.requestConfig.headers={[D]:P};return this}setEndpoint(D){return this.url=D,this}}var YS=(D,P,O)=>{return D.document?D:{document:D,variables:P,requestHeaders:O,signal:void 0}};async function I2(D,P){try{let W=await new u2(D).request(XO.getIntrospectionQuery(),void 0,new Headers(P?.map((F)=>F.split("="))));return XO.buildClientSchema(W)}catch(O){throw O}}import $M from"fs";var x3=async(D,P)=>{let O=await I2(D.url,D.headers),W=ZS.printSchema(O);$M.writeFileSync(P,W)};class f3{P;O;static FieldValueWrapperType;static EnumTypesMapped;static HelperTypes;static HelperFunctions;typeMeta;typeName;originalFullTypeName;constructor(D,P,O){this.collector=P;this.options=O;this.typeMeta=P.getType(D),this.originalFullTypeName=D,this.typeName=this.originalTypeNameToTypescriptFriendlyName(D)}originalTypeNameToTypescriptFriendlyName(D){return D.replaceAll("[","").replaceAll("]","Array").replaceAll("!","NotNull")}originalTypeNameToTypescriptTypeNameWithoutModifiers(D,P=""){return`${D.replaceAll("[","").replaceAll("]","").replaceAll("!","")}${P}`}originalTypeNameToTypescriptTypeName(D,P=""){return`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,P)}${Array.from({length:D.split("[").length-1}).fill("[]").join("")}`}static makeRootOperationFunction(D){throw new Error("Method not implemented.")}}var qO=XD(K0(),1);var HS="const Proxy = global.Proxy;\nProxy.prototype = {};\n\nexport const _ = Symbol(\"_\") as any;\nexport const OPTIONS = Symbol(\"OPTIONS\");\nexport class RootOperation {\n public static [OPTIONS] = {\n headers: {},\n _auth_fn: undefined as\n | (() => string | { [key: string]: string })\n | (() => Promise<string | { [key: string]: string }>)\n | undefined,\n scalars: {\n DateTime: (value: string) => new Date(value),\n DateTimeISO: (value: string) => new Date(value),\n Date: (value: string) => new Date(value),\n Time: (value: string) => new Date(value),\n JSON: (value: string) => JSON.parse(value),\n },\n };\n\n private utilSet = (obj: Record<string, any>, path: string[], value: any) =>\n path.reduce(\n (o, p, i, a) => (o[p] = a.length - 1 === i ? value : o[p] || {}),\n obj,\n );\n\n private rootCollector: OperationSelectionCollector | undefined = undefined;\n public registerRootCollector(collector: OperationSelectionCollector) {\n this.rootCollector = collector;\n }\n public async execute(headers: Record<string, string> = {}) {\n if (!this.rootCollector) {\n throw new Error(\"RootOperation has no registered collector\");\n }\n\n type selection = ReturnType<\n typeof OperationSelectionCollector.prototype.renderSelections\n >;\n const operations: {\n [key: string]: {\n selection: selection;\n rootSlw: SelectionWrapperImpl<string, string, number, any>;\n };\n } = {};\n for (const [\n opName,\n opSelection,\n ] of this.rootCollector?.selections.entries()) {\n if (opSelection[SLW_LAZY_FLAG]) continue;\n\n let rootSlw = opSelection;\n while (!rootSlw[SLW_IS_ROOT_TYPE]) {\n if (!rootSlw[SLW_PARENT_SLW]) break;\n rootSlw = rootSlw[SLW_PARENT_SLW]!;\n }\n\n const selection = rootSlw[SLW_COLLECTOR]!.renderSelections(\n [opName],\n {},\n new Map(),\n opSelection === rootSlw ? [] : [opSelection],\n );\n\n operations[opName] = {\n selection,\n rootSlw,\n };\n }\n\n const ops = Object.entries(operations).reduce(\n (acc, [opName, { selection, rootSlw }]) => ({\n ...acc,\n [opName]: {\n query: `${rootSlw[SLW_IS_ROOT_TYPE]?.toLowerCase()} ${opName} ${\n selection.variableDefinitions.length\n ? `(${selection.variableDefinitions.join(\", \")}) `\n : \"\"\n }${selection.selection}`,\n variables: selection.variables,\n fragments: selection.usedFragments,\n },\n }),\n {} as Record<\n string,\n {\n query: string;\n variables: any;\n fragments: Map<string, string>;\n }\n >,\n );\n // const subscription = `{${subscriptions.join(\"\")}}`;\n\n const results = Object.fromEntries(\n await Promise.all([\n ...Object.entries(ops).map(\n async ([opName, op]) =>\n [\n opName,\n await this.executeOperation(op, headers),\n ] as const,\n ),\n ]),\n );\n\n return results;\n }\n\n private async executeOperation(\n query: {\n query: string;\n variables: any;\n fragments: Map<string, string>;\n },\n headers: Record<string, string> = {},\n ) {\n const res = await fetch(\"[ENDPOINT]\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n ...headers,\n },\n body: JSON.stringify({\n query: `${[...query.fragments.values()].join(\"\\n\")}\\n ${query.query}`.trim(),\n variables: query.variables,\n }),\n });\n const result = (await res.json()) as { data: any; errors: any[] };\n\n const { data, errors } = result ?? {};\n if (errors?.length > 0) {\n for (const error of errors) {\n if (error.path) {\n this.utilSet(data, error.path, error);\n }\n }\n if (!data) {\n const err = new Error(JSON.stringify(errors), {\n cause: \"Only errors were returned from the server.\",\n });\n throw err;\n }\n }\n return data;\n }\n}\n\nexport type OperationSelectionCollectorRef = {\n ref: OperationSelectionCollector;\n};\nexport class OperationSelectionCollector {\n constructor(\n public readonly name?: string,\n public readonly parent?:\n | OperationSelectionCollector\n | OperationSelectionCollectorRef,\n public readonly op?: RootOperation,\n ) {\n if (op) op.registerRootCollector(this);\n }\n\n private executed = false;\n private operationResult: any | undefined = undefined;\n public async execute(\n headers: Record<string, string> = RootOperation[OPTIONS].headers,\n ) {\n if (!this.op) {\n throw new Error(\n \"OperationSelectionCollector is not registered to a root operation\",\n );\n }\n this.operationResult = await this.op.execute(headers);\n this.executed = true;\n }\n public get isExecuted() {\n return this.executed;\n }\n\n public readonly selections = new Map<\n string,\n SelectionWrapperImpl<string, string, number, any>\n >();\n public registerSelection(\n id: string,\n selection: SelectionWrapperImpl<string, string, number, any, any>,\n ) {\n this.selections.set(id, selection);\n }\n\n public renderSelections(\n path: string[] = [],\n opVars: Record<string, any> = {},\n usedFragments: Map<string, string> = new Map(),\n renderOnlyTheseSelections: SelectionWrapperImpl<\n string,\n string,\n number,\n any\n >[] = [],\n ) {\n const result: Record<string, string | undefined> = {};\n const varDefs: string[] = [];\n const variables: Record<string, any> = {};\n\n for (const [key, value] of [...this.selections.entries()].filter(\n ([k, v]) =>\n renderOnlyTheseSelections.length === 0 ||\n renderOnlyTheseSelections.find(\n (r) => r[SLW_UID] === v[SLW_UID],\n ),\n )) {\n const subPath = [...path, key];\n const {\n selection: fieldSelection,\n variableDefinitions: fieldVarDefs,\n variables: fieldVars,\n\n directive: directiveRendered,\n } = value[SLW_RENDER_WITH_ARGS](opVars);\n\n Object.assign(variables, fieldVars);\n Object.assign(opVars, fieldVars);\n varDefs.push(...fieldVarDefs);\n\n if (directiveRendered) {\n const {\n variableDefinitions: directiveVarDefs,\n variables: directiveVars,\n } = directiveRendered;\n\n varDefs.push(...directiveVarDefs);\n Object.assign(variables, directiveVars);\n Object.assign(opVars, directiveVars);\n }\n\n value[SLW_REGISTER_PATH](subPath);\n\n if (value[SLW_PARENT_COLLECTOR] === undefined) {\n if (directiveRendered) {\n result[key] =\n `${fieldSelection} ${directiveRendered.rendered}`;\n } else {\n result[key] = fieldSelection;\n }\n } else if (\n value[SLW_COLLECTOR] instanceof OperationSelectionCollector\n ) {\n const {\n selection: subSelection,\n variableDefinitions: subVarDefs,\n variables: subVars,\n } = value[SLW_COLLECTOR].renderSelections(\n subPath,\n opVars,\n usedFragments,\n );\n\n if (value[SLW_IS_ON_TYPE_FRAGMENT]) {\n if (directiveRendered) {\n result[key] =\n `... on ${value[SLW_IS_ON_TYPE_FRAGMENT]} ${directiveRendered.rendered} ${subSelection}`;\n } else {\n result[key] =\n `... on ${value[SLW_IS_ON_TYPE_FRAGMENT]} ${subSelection}`;\n }\n } else if (value[SLW_IS_FRAGMENT]) {\n const fragmentName = `${key}_${subVarDefs.map((v) => v.split(\":\")[0].slice(1)).join(\"_\")}`;\n\n if (directiveRendered) {\n result[key] =\n `...${fragmentName} ${directiveRendered.rendered}`;\n } else {\n result[key] = `...${fragmentName}`;\n }\n\n const fragment = `fragment ${fragmentName} on ${value[SLW_FIELD_TYPENAME]} ${subSelection}`;\n if (!usedFragments.has(fragmentName)) {\n usedFragments.set(fragmentName, fragment);\n } else if (usedFragments.get(fragmentName) !== fragment) {\n console.warn(\n `Fragment ${fragmentName} is already defined with a different selection`,\n );\n }\n } else {\n if (directiveRendered) {\n result[key] =\n `${fieldSelection} ${directiveRendered.rendered} ${subSelection}`;\n } else {\n result[key] = `${fieldSelection} ${subSelection}`;\n }\n }\n\n Object.assign(variables, subVars);\n Object.assign(opVars, subVars);\n varDefs.push(...subVarDefs);\n }\n }\n let rendered = \"{ \";\n for (const [key, value] of Object.entries(result).filter(\n ([k, v]) => v !== undefined,\n ) as [string, string][]) {\n const keyIsFieldName =\n value.startsWith(`${key} {`) || value.startsWith(`${key} (`);\n const isSubSelection = value.startsWith(\"{\");\n const isOnType = value.startsWith(\"... on\");\n const isFragment = value.startsWith(\"...\");\n if (key === value) {\n rendered += `${key} `;\n } else if (isOnType || isFragment || keyIsFieldName) {\n rendered += `${value} `;\n } else {\n rendered += `${key}${!isSubSelection ? \":\" : \"\"} ${value} `;\n }\n }\n rendered += \"}\";\n return {\n selection: rendered,\n variableDefinitions: varDefs,\n variables,\n usedFragments,\n };\n }\n\n private utilGet = (obj: Record<string, any>, path: (string | number)[]) =>\n path.reduce((o, p) => o?.[p], obj);\n public getOperationResultPath<T>(\n path: (string | number)[] = [],\n type?: string,\n ): T {\n if (!this.op) {\n throw new Error(\n \"OperationSelectionCollector is not registered to a root operation\",\n );\n }\n\n let result = this.operationResult;\n\n if (path.length === 0) return result as T;\n\n result = this.utilGet(result, path) as T;\n\n if (type && result && type in RootOperation[OPTIONS].scalars) {\n let depth = 0;\n let finalResult = result instanceof Array ? [...result] : result;\n\n while (result instanceof Array) {\n result = result[0];\n depth++;\n }\n\n const deepParse = (\n res: any | any[],\n depth: number,\n parse: (v: string) => any,\n ) => {\n if (depth === 0) {\n return parse(res);\n }\n return res.map((rarr: any) =>\n deepParse(rarr, depth - 1, parse),\n );\n };\n\n return deepParse(\n finalResult,\n depth,\n RootOperation[OPTIONS].scalars[\n type as keyof (typeof RootOperation)[typeof OPTIONS][\"scalars\"]\n ],\n ) as T;\n }\n\n return result as T;\n }\n}\n\nexport const SLW_UID = Symbol(\"SLW_UID\");\nexport const SLW_FIELD_NAME = Symbol(\"SLW_FIELD_NAME\");\nexport const SLW_FIELD_TYPENAME = Symbol(\"SLW_FIELD_TYPENAME\");\nexport const SLW_FIELD_ARR_DEPTH = Symbol(\"SLW_FIELD_ARR_DEPTH\");\nexport const SLW_IS_ROOT_TYPE = Symbol(\"SLW_IS_ROOT_TYPE\");\nexport const SLW_IS_ON_TYPE_FRAGMENT = Symbol(\"SLW_IS_ON_TYPE_FRAGMENT\");\nexport const SLW_IS_FRAGMENT = Symbol(\"SLW_IS_FRAGMENT\");\nexport const SLW_VALUE = Symbol(\"SLW_VALUE\");\nexport const SLW_ARGS = Symbol(\"SLW_ARGS\");\nexport const SLW_ARGS_META = Symbol(\"SLW_ARGS_META\");\nexport const SLW_DIRECTIVE = Symbol(\"SLW_DIRECTIVE\");\nexport const SLW_DIRECTIVE_ARGS = Symbol(\"SLW_DIRECTIVE_ARGS\");\nexport const SLW_DIRECTIVE_ARGS_META = Symbol(\"SLW_DIRECTIVE_ARGS_META\");\nexport const SLW_PARENT_SLW = Symbol(\"SLW_PARENT_SLW\");\nexport const SLW_LAZY_FLAG = Symbol(\"SLW_LAZY_FLAG\");\n\nexport const OP = Symbol(\"OP\");\nexport const ROOT_OP_COLLECTOR = Symbol(\"ROOT_OP_COLLECTOR\");\nexport const SLW_PARENT_COLLECTOR = Symbol(\"SLW_PARENT_COLLECTOR\");\nexport const SLW_COLLECTOR = Symbol(\"SLW_COLLECTOR\");\nexport const SLW_OP_PATH = Symbol(\"SLW_OP_PATH\");\nexport const SLW_REGISTER_PATH = Symbol(\"SLW_REGISTER_PATH\");\nexport const SLW_RENDER_WITH_ARGS = Symbol(\"SLW_RENDER_WITH_ARGS\");\n\nexport const SLW_RECREATE_VALUE_CALLBACK = Symbol(\n \"SLW_RECREATE_VALUE_CALLBACK\",\n);\n\nexport const SLW_CLONE = Symbol(\"SLW_CLONE\");\n\nexport class SelectionWrapperImpl<\n fieldName extends string,\n typeNamePure extends string,\n typeArrDepth extends number,\n valueT extends any = any,\n argsT extends Record<string, any> | undefined = undefined,\n> {\n private generateUniqueId(): string {\n return (\n performance.now().toString(36) +\n Math.random().toString(36).substring(2)\n );\n }\n [SLW_CLONE](\n overrides: {\n SLW_OP_PATH?: string;\n } = {},\n ) {\n const slw = new SelectionWrapper(\n this[SLW_FIELD_NAME],\n this[SLW_FIELD_TYPENAME],\n this[SLW_FIELD_ARR_DEPTH],\n this[SLW_VALUE],\n this[SLW_COLLECTOR],\n this[SLW_PARENT_COLLECTOR],\n this[SLW_ARGS],\n this[SLW_ARGS_META],\n this[SLW_RECREATE_VALUE_CALLBACK],\n );\n slw[SLW_IS_ROOT_TYPE] = this[SLW_IS_ROOT_TYPE];\n slw[SLW_IS_ON_TYPE_FRAGMENT] = this[SLW_IS_ON_TYPE_FRAGMENT];\n slw[SLW_IS_FRAGMENT] = this[SLW_IS_FRAGMENT];\n slw[SLW_PARENT_SLW] = this[SLW_PARENT_SLW];\n slw[SLW_OP_PATH] = overrides.SLW_OP_PATH ?? this[SLW_OP_PATH];\n return slw;\n }\n\n readonly [SLW_UID] = this.generateUniqueId();\n [ROOT_OP_COLLECTOR]?: OperationSelectionCollectorRef;\n readonly [SLW_PARENT_COLLECTOR]?: OperationSelectionCollector;\n readonly [SLW_COLLECTOR]?: OperationSelectionCollector;\n\n [SLW_FIELD_NAME]?: fieldName;\n [SLW_FIELD_TYPENAME]?: typeNamePure;\n [SLW_FIELD_ARR_DEPTH]?: typeArrDepth;\n [SLW_VALUE]?: valueT;\n\n [SLW_IS_ROOT_TYPE]?: \"Query\" | \"Mutation\" | \"Subscription\";\n [SLW_IS_ON_TYPE_FRAGMENT]?: string;\n [SLW_IS_FRAGMENT]?: string;\n\n [SLW_ARGS]?: argsT;\n [SLW_ARGS_META]?: Record<string, string>;\n [SLW_DIRECTIVE]?: string;\n [SLW_DIRECTIVE_ARGS]?: Record<string, any>;\n [SLW_DIRECTIVE_ARGS_META]?: Record<string, string>;\n\n [SLW_PARENT_SLW]?: SelectionWrapperImpl<string, string, number, any, any>;\n [SLW_LAZY_FLAG]?: boolean;\n\n [SLW_RECREATE_VALUE_CALLBACK]?: () => valueT;\n constructor(\n fieldName?: fieldName,\n typeNamePure?: typeNamePure,\n typeArrDepth?: typeArrDepth,\n value?: valueT,\n collector?: OperationSelectionCollector,\n parent?: OperationSelectionCollector | OperationSelectionCollectorRef,\n args?: argsT,\n argsMeta?: Record<string, string>,\n reCreateValueCallback?: () => valueT,\n ) {\n this[SLW_FIELD_NAME] = fieldName;\n this[SLW_FIELD_TYPENAME] = typeNamePure;\n this[SLW_FIELD_ARR_DEPTH] = typeArrDepth;\n this[SLW_VALUE] = value;\n\n this[SLW_ARGS] = args;\n this[SLW_ARGS_META] = argsMeta;\n\n if (parent instanceof OperationSelectionCollector) {\n this[SLW_PARENT_COLLECTOR] = parent;\n } else if (parent && \"ref\" in parent) {\n this[SLW_PARENT_COLLECTOR] = parent.ref;\n }\n\n if (collector instanceof OperationSelectionCollector) {\n this[SLW_COLLECTOR] = collector;\n\n let rootCollector = collector;\n while (\n rootCollector?.parent instanceof OperationSelectionCollector\n ) {\n rootCollector = rootCollector.parent;\n }\n if (rootCollector.parent && \"ref\" in rootCollector.parent) {\n this[ROOT_OP_COLLECTOR] = rootCollector.parent;\n }\n }\n\n if (reCreateValueCallback) {\n this[SLW_RECREATE_VALUE_CALLBACK] = reCreateValueCallback;\n }\n }\n\n [SLW_OP_PATH]?: string;\n [SLW_REGISTER_PATH](path: string[]) {\n if (!this[SLW_OP_PATH]) this[SLW_OP_PATH] = path.join(\".\");\n }\n [SLW_RENDER_WITH_ARGS](opVars: Record<string, any> = {}) {\n const renderArgsString = (\n args: Record<string, any>,\n argsMeta: Record<string, string>,\n ) => {\n const argToVarMap: Record<string, string> = {};\n let argsString = \"(\";\n const argsStringParts = [];\n for (const key of Object.keys(args)) {\n let varName = key;\n if (opVars[key] !== undefined) {\n varName = `${key}_${\n Object.keys(opVars).filter((k) => k.startsWith(key))\n .length\n }`;\n argToVarMap[varName] = varName;\n args[varName] = args[key];\n argsMeta[varName] = argsMeta[key];\n delete args[key];\n }\n argsStringParts.push(`${key}: $${varName}`);\n }\n argsString += argsStringParts.join(\", \").trim() + \")\";\n return { argsString, argToVarMap };\n };\n\n const directiveRender = {\n rendered: undefined as string | undefined,\n variables: {} as Record<string, any>,\n variableDefinitions: [] as string[],\n };\n if (this[SLW_DIRECTIVE]) {\n const directive = this[SLW_DIRECTIVE];\n\n if (this[SLW_DIRECTIVE_ARGS]) {\n const args = this[SLW_DIRECTIVE_ARGS];\n const argsMeta = this[SLW_DIRECTIVE_ARGS_META]!;\n\n const { argsString, argToVarMap } = renderArgsString(\n args,\n argsMeta,\n );\n\n directiveRender.rendered = `@${directive}${Object.keys(args).length ? argsString : \"\"}`;\n directiveRender.variables = args;\n directiveRender.variableDefinitions = Object.keys(args).map(\n (key) => {\n const varName = argToVarMap[key] ?? key;\n return `$${varName}: ${argsMeta[key]}`;\n },\n );\n } else {\n directiveRender.rendered = `@${directive}`;\n }\n }\n\n if (this[SLW_ARGS]) {\n const args = this[SLW_ARGS];\n const argsMeta = this[SLW_ARGS_META]!;\n\n const { argsString, argToVarMap } = renderArgsString(\n args,\n argsMeta,\n );\n return {\n selection: `${this[SLW_FIELD_NAME]}${Object.keys(args).length ? argsString : \"\"}`,\n variables: args,\n variableDefinitions: Object.keys(args).map((key) => {\n const varName = argToVarMap[key] ?? key;\n return `$${varName}: ${argsMeta[key]}`;\n }),\n\n directive: directiveRender.rendered\n ? directiveRender\n : undefined,\n };\n }\n return {\n selection: this[SLW_FIELD_NAME],\n variables: {},\n variableDefinitions: [] as string[],\n\n directive: directiveRender.rendered ? directiveRender : undefined,\n };\n }\n}\nexport class SelectionWrapper<\n fieldName extends string,\n typeNamePure extends string,\n typeArrDepth extends number,\n valueT extends any = any,\n argsT extends Record<string, any> | undefined = undefined,\n> extends Proxy<\n SelectionWrapperImpl<fieldName, typeNamePure, typeArrDepth, valueT, argsT>\n> {\n constructor(\n fieldName?: fieldName,\n typeNamePure?: typeNamePure,\n typeArrDepth?: typeArrDepth,\n value?: valueT,\n collector?: OperationSelectionCollector,\n parent?: OperationSelectionCollector | OperationSelectionCollectorRef,\n args?: argsT,\n argsMeta?: Record<string, string>,\n reCreateValueCallback?: () => valueT,\n ) {\n super(\n new SelectionWrapperImpl<\n fieldName,\n typeNamePure,\n typeArrDepth,\n valueT,\n argsT\n >(\n fieldName,\n typeNamePure,\n typeArrDepth,\n value,\n collector,\n parent,\n args,\n argsMeta,\n reCreateValueCallback,\n ),\n {\n // implement ProxyHandler methods\n ownKeys() {\n return Reflect.ownKeys(value ?? {});\n },\n getOwnPropertyDescriptor(target, prop) {\n return Reflect.getOwnPropertyDescriptor(value ?? {}, prop);\n },\n has(target, prop) {\n if (prop === Symbol.for(\"nodejs.util.inspect.custom\"))\n return true;\n return Reflect.has(value ?? {}, prop);\n },\n get: (target, prop) => {\n if (prop === \"$lazy\") {\n const that = this;\n function lazy(\n this: {\n parentSlw: SelectionWrapperImpl<\n fieldName,\n typeNamePure,\n typeArrDepth,\n valueT,\n argsT\n >;\n key: string;\n },\n args?: argsT,\n ) {\n const { parentSlw, key } = this;\n const newRootOpCollectorRef = {\n ref: new OperationSelectionCollector(\n undefined,\n undefined,\n new RootOperation(),\n ),\n };\n\n const newThisCollector =\n new OperationSelectionCollector(\n undefined,\n newRootOpCollectorRef,\n );\n const r =\n that[SLW_RECREATE_VALUE_CALLBACK]?.bind(\n newThisCollector,\n )();\n\n const newThat = new SelectionWrapper(\n that[SLW_FIELD_NAME],\n that[SLW_FIELD_TYPENAME],\n that[SLW_FIELD_ARR_DEPTH],\n r,\n newThisCollector,\n newRootOpCollectorRef,\n that[SLW_ARGS],\n that[SLW_ARGS_META],\n );\n Object.keys(r!).forEach(\n (key) =>\n (newThat as valueT)[key as keyof valueT],\n );\n\n newThat[SLW_IS_ROOT_TYPE] = that[SLW_IS_ROOT_TYPE];\n newThat[SLW_IS_ON_TYPE_FRAGMENT] =\n that[SLW_IS_ON_TYPE_FRAGMENT];\n newThat[SLW_IS_FRAGMENT] = that[SLW_IS_FRAGMENT];\n\n newThat[SLW_PARENT_SLW] = parentSlw;\n parentSlw[SLW_COLLECTOR]?.registerSelection(\n key,\n newThat,\n );\n newThat[SLW_ARGS] = {\n ...(that[SLW_ARGS] ?? {}),\n ...args,\n } as argsT;\n\n newThat[SLW_OP_PATH] = that[SLW_OP_PATH];\n\n newRootOpCollectorRef.ref.registerSelection(\n newThat[SLW_FIELD_NAME]!,\n newThat,\n );\n\n return new Promise((resolve, reject) => {\n newRootOpCollectorRef.ref\n .execute()\n .catch(reject)\n .then(() => {\n resolve(newThat);\n });\n });\n }\n target[SLW_LAZY_FLAG] = true;\n lazy[SLW_LAZY_FLAG] = true;\n return lazy;\n }\n if (\n prop === SLW_UID ||\n prop === SLW_FIELD_NAME ||\n prop === SLW_FIELD_TYPENAME ||\n prop === SLW_FIELD_ARR_DEPTH ||\n prop === SLW_IS_ROOT_TYPE ||\n prop === SLW_IS_ON_TYPE_FRAGMENT ||\n prop === SLW_IS_FRAGMENT ||\n prop === SLW_VALUE ||\n prop === SLW_ARGS ||\n prop === SLW_ARGS_META ||\n prop === SLW_DIRECTIVE ||\n prop === SLW_DIRECTIVE_ARGS ||\n prop === SLW_DIRECTIVE_ARGS_META ||\n prop === SLW_PARENT_SLW ||\n prop === SLW_LAZY_FLAG ||\n prop === ROOT_OP_COLLECTOR ||\n prop === SLW_PARENT_COLLECTOR ||\n prop === SLW_COLLECTOR ||\n prop === SLW_OP_PATH ||\n prop === SLW_REGISTER_PATH ||\n prop === SLW_RENDER_WITH_ARGS ||\n prop === SLW_RECREATE_VALUE_CALLBACK ||\n prop === SLW_CLONE\n ) {\n return target[\n prop as keyof SelectionWrapperImpl<\n fieldName,\n typeNamePure,\n typeArrDepth,\n valueT\n >\n ];\n }\n if (prop === SLW_VALUE) {\n return value;\n }\n if (prop === \"then\") {\n return this;\n }\n\n let slw_value = target[SLW_VALUE] as\n | Record<string, any>\n | undefined;\n\n if (target[ROOT_OP_COLLECTOR]?.ref.isExecuted) {\n const getResultDataForTarget = (\n t: SelectionWrapperImpl<\n fieldName,\n typeNamePure,\n typeArrDepth,\n valueT,\n argsT\n >,\n ): valueT | undefined => {\n const data = t[\n ROOT_OP_COLLECTOR\n ]!.ref.getOperationResultPath<valueT>(\n (t[SLW_OP_PATH]?.split(\".\") ?? []).map((p) =>\n !isNaN(+p) ? +p : p,\n ),\n t[SLW_FIELD_TYPENAME],\n );\n return data;\n };\n\n if (!Object.hasOwn(slw_value ?? {}, String(prop))) {\n // check if the selected field is an array\n if (typeArrDepth) {\n if (!isNaN(+String(prop))) {\n const elm = target[SLW_CLONE]({\n SLW_OP_PATH:\n target[SLW_OP_PATH] +\n \".\" +\n String(prop),\n });\n return elm;\n }\n\n const data = getResultDataForTarget(target) as\n | valueT[]\n | undefined;\n\n if (data === undefined) return undefined;\n\n const proxiedData = Array.from(\n { length: data.length },\n (_, i) =>\n target[SLW_CLONE]({\n SLW_OP_PATH:\n target[SLW_OP_PATH] +\n \".\" +\n String(i),\n }),\n );\n\n const proto =\n Object.getPrototypeOf(proxiedData);\n if (Object.hasOwn(proto, prop)) {\n const v = (proxiedData as any)[prop];\n if (typeof v === \"function\")\n return v.bind(proxiedData);\n return v;\n }\n\n return () => proxiedData;\n }\n\n const data = getResultDataForTarget(target);\n if (data === undefined) return undefined;\n const proto = Object.getPrototypeOf(data);\n if (Object.hasOwn(proto, prop)) {\n const v = (data as any)[prop];\n if (typeof v === \"function\")\n return v.bind(data);\n return v;\n }\n\n return () => data;\n }\n\n let slw = slw_value?.[String(prop)];\n const slwOpPathIsIndexAccess = !isNaN(\n +target[SLW_OP_PATH]?.split(\".\").pop()!,\n );\n if (slwOpPathIsIndexAccess) {\n // index access detected, cloning\n slw = slw[SLW_CLONE]({\n SLW_OP_PATH:\n target[SLW_OP_PATH] + \".\" + String(prop),\n });\n }\n\n if (\n slw instanceof SelectionWrapperImpl &&\n slw[SLW_PARENT_COLLECTOR]\n ) {\n return slw;\n } else if (slw instanceof SelectionWrapperImpl) {\n return getResultDataForTarget(slw);\n } else if (slw[SLW_LAZY_FLAG]) {\n return slw;\n }\n\n return getResultDataForTarget(target);\n }\n\n if (\n Object.hasOwn(slw_value ?? {}, String(prop)) &&\n slw_value?.[String(prop)] instanceof\n SelectionWrapperImpl\n ) {\n if (target[SLW_COLLECTOR]) {\n target[SLW_COLLECTOR].registerSelection(\n String(prop),\n slw_value[String(prop)],\n );\n }\n if (!slw_value[String(prop)][SLW_PARENT_SLW]) {\n slw_value[String(prop)][SLW_PARENT_SLW] = target;\n }\n }\n if (slw_value?.[String(prop)]?.[SLW_LAZY_FLAG]) {\n if (!slw_value[String(prop)][SLW_PARENT_SLW]) {\n const lazyFn = slw_value[String(prop)];\n slw_value[String(prop)] = lazyFn.bind({\n parentSlw: target,\n key: String(prop),\n });\n slw_value[String(prop)][SLW_PARENT_SLW] = target;\n slw_value[String(prop)][SLW_LAZY_FLAG] = true;\n }\n }\n\n return slw_value?.[String(prop)] ?? undefined;\n },\n },\n );\n }\n}\n";class s0 extends f3{P;O;static ScalarTypeMap=new Map([["String","string"],["Int","number"],["Float","number"],["Boolean","boolean"],["ID","string"],["Date","Date"],["DateTime","Date"],["DateTimeISO","Date"],["Time","Date"],["JSON","Record<string, any>"]]);ScalarTypeMap=s0.ScalarTypeMap;static FieldValueWrapperType=HS;static EnumTypesMapped=(D)=>{return`export interface EnumTypesMapped {
|
|
126
|
+
`}});var n9=J((p9)=>{Object.defineProperty(p9,"__esModule",{value:!0});p9.getOperationAST=fI;var xI=c();function fI(D,P){let O=null;for(let E of D.definitions)if(E.kind===xI.Kind.OPERATION_DEFINITION){var W;if(P==null){if(O)return null;O=E}else if(((W=E.name)===null||W===void 0?void 0:W.value)===P)return E}return O}});var t9=J((a9)=>{Object.defineProperty(a9,"__esModule",{value:!0});a9.getOperationRootType=hI;var OO=T();function hI(D,P){if(P.operation==="query"){let O=D.getQueryType();if(!O)throw new OO.GraphQLError("Schema does not define the required query root type.",{nodes:P});return O}if(P.operation==="mutation"){let O=D.getMutationType();if(!O)throw new OO.GraphQLError("Schema is not configured for mutations.",{nodes:P});return O}if(P.operation==="subscription"){let O=D.getSubscriptionType();if(!O)throw new OO.GraphQLError("Schema is not configured for subscriptions.",{nodes:P});return O}throw new OO.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:P})}});var i9=J((s9)=>{Object.defineProperty(s9,"__esModule",{value:!0});s9.introspectionFromSchema=rI;var yI=jD(),mI=_2(),cI=y8(),lI=U3();function rI(D,P){let O={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...P},W=mI.parse(lI.getIntrospectionQuery(O)),E=cI.executeSync({schema:D,document:W});return!E.errors&&E.data||yI.invariant(!1),E.data}});var D7=J((e9)=>{Object.defineProperty(e9,"__esModule",{value:!0});e9.buildClientSchema=oI;var pI=ND(),cD=i(),o9=A0(),WO=C8(),nI=_2(),lD=l(),aI=xD(),I0=nD(),tI=X0(),sI=Y2(),iI=f8();function oI(D,P){o9.isObjectLike(D)&&o9.isObjectLike(D.__schema)||pI.devAssert(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${cD.inspect(D)}.`);let O=D.__schema,W=WO.keyValMap(O.types,(q)=>q.name,(q)=>H(q));for(let q of[...tI.specifiedScalarTypes,...I0.introspectionTypes])if(W[q.name])W[q.name]=q;let E=O.queryType?Y(O.queryType):null,F=O.mutationType?Y(O.mutationType):null,R=O.subscriptionType?Y(O.subscriptionType):null,S=O.directives?O.directives.map(BD):[];return new sI.GraphQLSchema({description:O.description,query:E,mutation:F,subscription:R,types:Object.values(W),directives:S,assumeValid:P===null||P===void 0?void 0:P.assumeValid});function L(q){if(q.kind===I0.TypeKind.LIST){let _=q.ofType;if(!_)throw new Error("Decorated type deeper than introspection query.");return new lD.GraphQLList(L(_))}if(q.kind===I0.TypeKind.NON_NULL){let _=q.ofType;if(!_)throw new Error("Decorated type deeper than introspection query.");let TD=L(_);return new lD.GraphQLNonNull(lD.assertNullableType(TD))}return B(q)}function B(q){let _=q.name;if(!_)throw new Error(`Unknown type reference: ${cD.inspect(q)}.`);let TD=W[_];if(!TD)throw new Error(`Invalid or incomplete schema, unknown type: ${_}. Ensure that a full introspection query is used in order to build a client schema.`);return TD}function Y(q){return lD.assertObjectType(B(q))}function Z(q){return lD.assertInterfaceType(B(q))}function H(q){if(q!=null&&q.name!=null&&q.kind!=null)switch(q.kind){case I0.TypeKind.SCALAR:return C(q);case I0.TypeKind.OBJECT:return I(q);case I0.TypeKind.INTERFACE:return $(q);case I0.TypeKind.UNION:return x(q);case I0.TypeKind.ENUM:return y(q);case I0.TypeKind.INPUT_OBJECT:return V(q)}let _=cD.inspect(q);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${_}.`)}function C(q){return new lD.GraphQLScalarType({name:q.name,description:q.description,specifiedByURL:q.specifiedByURL})}function X(q){if(q.interfaces===null&&q.kind===I0.TypeKind.INTERFACE)return[];if(!q.interfaces){let _=cD.inspect(q);throw new Error(`Introspection result missing interfaces: ${_}.`)}return q.interfaces.map(Z)}function I(q){return new lD.GraphQLObjectType({name:q.name,description:q.description,interfaces:()=>X(q),fields:()=>DD(q)})}function $(q){return new lD.GraphQLInterfaceType({name:q.name,description:q.description,interfaces:()=>X(q),fields:()=>DD(q)})}function x(q){if(!q.possibleTypes){let _=cD.inspect(q);throw new Error(`Introspection result missing possibleTypes: ${_}.`)}return new lD.GraphQLUnionType({name:q.name,description:q.description,types:()=>q.possibleTypes.map(Y)})}function y(q){if(!q.enumValues){let _=cD.inspect(q);throw new Error(`Introspection result missing enumValues: ${_}.`)}return new lD.GraphQLEnumType({name:q.name,description:q.description,values:WO.keyValMap(q.enumValues,(_)=>_.name,(_)=>({description:_.description,deprecationReason:_.deprecationReason}))})}function V(q){if(!q.inputFields){let _=cD.inspect(q);throw new Error(`Introspection result missing inputFields: ${_}.`)}return new lD.GraphQLInputObjectType({name:q.name,description:q.description,fields:()=>ED(q.inputFields),isOneOf:q.isOneOf})}function DD(q){if(!q.fields)throw new Error(`Introspection result missing fields: ${cD.inspect(q)}.`);return WO.keyValMap(q.fields,(_)=>_.name,N)}function N(q){let _=L(q.type);if(!lD.isOutputType(_)){let TD=cD.inspect(_);throw new Error(`Introspection must provide output type for fields, but received: ${TD}.`)}if(!q.args){let TD=cD.inspect(q);throw new Error(`Introspection result missing field args: ${TD}.`)}return{description:q.description,deprecationReason:q.deprecationReason,type:_,args:ED(q.args)}}function ED(q){return WO.keyValMap(q,(_)=>_.name,JD)}function JD(q){let _=L(q.type);if(!lD.isInputType(_)){let K0=cD.inspect(_);throw new Error(`Introspection must provide input type for arguments, but received: ${K0}.`)}let TD=q.defaultValue!=null?iI.valueFromAST(nI.parseValue(q.defaultValue),_):void 0;return{description:q.description,type:_,defaultValue:TD,deprecationReason:q.deprecationReason}}function BD(q){if(!q.args){let _=cD.inspect(q);throw new Error(`Introspection result missing directive args: ${_}.`)}if(!q.locations){let _=cD.inspect(q);throw new Error(`Introspection result missing directive locations: ${_}.`)}return new aI.GraphQLDirective({name:q.name,description:q.description,isRepeatable:q.isRepeatable,locations:q.locations.slice(),args:ED(q.args)})}}});var q3=J((B7)=>{Object.defineProperty(B7,"__esModule",{value:!0});B7.extendSchema=FQ;B7.extendSchemaImpl=L7;var DQ=ND(),PQ=i(),OQ=jD(),WQ=y0(),r8=I1(),sD=c(),P7=H2(),LD=l(),d8=xD(),R7=nD(),S7=X0(),O7=Y2(),EQ=h8(),X3=y2(),W7=f8();function FQ(D,P,O){if(O7.assertSchema(D),P!=null&&P.kind===sD.Kind.DOCUMENT||DQ.devAssert(!1,"Must provide valid Document AST."),(O===null||O===void 0?void 0:O.assumeValid)!==!0&&(O===null||O===void 0?void 0:O.assumeValidSDL)!==!0)EQ.assertValidSDLExtension(P,D);let W=D.toConfig(),E=L7(W,P,O);return W===E?D:new O7.GraphQLSchema(E)}function L7(D,P,O){var W,E,F,R;let S=[],L=Object.create(null),B=[],Y,Z=[];for(let U of P.definitions)if(U.kind===sD.Kind.SCHEMA_DEFINITION)Y=U;else if(U.kind===sD.Kind.SCHEMA_EXTENSION)Z.push(U);else if(P7.isTypeDefinitionNode(U))S.push(U);else if(P7.isTypeExtensionNode(U)){let w=U.name.value,Q=L[w];L[w]=Q?Q.concat([U]):[U]}else if(U.kind===sD.Kind.DIRECTIVE_DEFINITION)B.push(U);if(Object.keys(L).length===0&&S.length===0&&B.length===0&&Z.length===0&&Y==null)return D;let H=Object.create(null);for(let U of D.types)H[U.name]=y(U);for(let U of S){var C;let w=U.name.value;H[w]=(C=E7[w])!==null&&C!==void 0?C:rB(U)}let X={query:D.query&&$(D.query),mutation:D.mutation&&$(D.mutation),subscription:D.subscription&&$(D.subscription),...Y&&TD([Y]),...TD(Z)};return{description:(W=Y)===null||W===void 0?void 0:(E=W.description)===null||E===void 0?void 0:E.value,...X,types:Object.values(H),directives:[...D.directives.map(x),...B.map(lB)],extensions:Object.create(null),astNode:(F=Y)!==null&&F!==void 0?F:D.astNode,extensionASTNodes:D.extensionASTNodes.concat(Z),assumeValid:(R=O===null||O===void 0?void 0:O.assumeValid)!==null&&R!==void 0?R:!1};function I(U){if(LD.isListType(U))return new LD.GraphQLList(I(U.ofType));if(LD.isNonNullType(U))return new LD.GraphQLNonNull(I(U.ofType));return $(U)}function $(U){return H[U.name]}function x(U){let w=U.toConfig();return new d8.GraphQLDirective({...w,args:r8.mapValue(w.args,_)})}function y(U){if(R7.isIntrospectionType(U)||S7.isSpecifiedScalarType(U))return U;if(LD.isScalarType(U))return N(U);if(LD.isObjectType(U))return ED(U);if(LD.isInterfaceType(U))return JD(U);if(LD.isUnionType(U))return BD(U);if(LD.isEnumType(U))return DD(U);if(LD.isInputObjectType(U))return V(U);OQ.invariant(!1,"Unexpected type: "+PQ.inspect(U))}function V(U){var w;let Q=U.toConfig(),j=(w=L[Q.name])!==null&&w!==void 0?w:[];return new LD.GraphQLInputObjectType({...Q,fields:()=>({...r8.mapValue(Q.fields,(OD)=>({...OD,type:I(OD.type)})),...h6(j)}),extensionASTNodes:Q.extensionASTNodes.concat(j)})}function DD(U){var w;let Q=U.toConfig(),j=(w=L[U.name])!==null&&w!==void 0?w:[];return new LD.GraphQLEnumType({...Q,values:{...Q.values,...g6(j)},extensionASTNodes:Q.extensionASTNodes.concat(j)})}function N(U){var w;let Q=U.toConfig(),j=(w=L[Q.name])!==null&&w!==void 0?w:[],OD=Q.specifiedByURL;for(let FD of j){var XD;OD=(XD=F7(FD))!==null&&XD!==void 0?XD:OD}return new LD.GraphQLScalarType({...Q,specifiedByURL:OD,extensionASTNodes:Q.extensionASTNodes.concat(j)})}function ED(U){var w;let Q=U.toConfig(),j=(w=L[Q.name])!==null&&w!==void 0?w:[];return new LD.GraphQLObjectType({...Q,interfaces:()=>[...U.getInterfaces().map($),...YP(j)],fields:()=>({...r8.mapValue(Q.fields,q),...BP(j)}),extensionASTNodes:Q.extensionASTNodes.concat(j)})}function JD(U){var w;let Q=U.toConfig(),j=(w=L[Q.name])!==null&&w!==void 0?w:[];return new LD.GraphQLInterfaceType({...Q,interfaces:()=>[...U.getInterfaces().map($),...YP(j)],fields:()=>({...r8.mapValue(Q.fields,q),...BP(j)}),extensionASTNodes:Q.extensionASTNodes.concat(j)})}function BD(U){var w;let Q=U.toConfig(),j=(w=L[Q.name])!==null&&w!==void 0?w:[];return new LD.GraphQLUnionType({...Q,types:()=>[...U.getTypes().map($),...y6(j)],extensionASTNodes:Q.extensionASTNodes.concat(j)})}function q(U){return{...U,type:I(U.type),args:U.args&&r8.mapValue(U.args,_)}}function _(U){return{...U,type:I(U.type)}}function TD(U){let w={};for(let j of U){var Q;let OD=(Q=j.operationTypes)!==null&&Q!==void 0?Q:[];for(let XD of OD)w[XD.operation]=K0(XD.type)}return w}function K0(U){var w;let Q=U.name.value,j=(w=E7[Q])!==null&&w!==void 0?w:H[Q];if(j===void 0)throw new Error(`Unknown type: "${Q}".`);return j}function S8(U){if(U.kind===sD.Kind.LIST_TYPE)return new LD.GraphQLList(S8(U.type));if(U.kind===sD.Kind.NON_NULL_TYPE)return new LD.GraphQLNonNull(S8(U.type));return K0(U)}function lB(U){var w;return new d8.GraphQLDirective({name:U.name.value,description:(w=U.description)===null||w===void 0?void 0:w.value,locations:U.locations.map(({value:Q})=>Q),isRepeatable:U.repeatable,args:v6(U.arguments),astNode:U})}function BP(U){let w=Object.create(null);for(let OD of U){var Q;let XD=(Q=OD.fields)!==null&&Q!==void 0?Q:[];for(let FD of XD){var j;w[FD.name.value]={type:S8(FD.type),description:(j=FD.description)===null||j===void 0?void 0:j.value,args:v6(FD.arguments),deprecationReason:EO(FD),astNode:FD}}}return w}function v6(U){let w=U!==null&&U!==void 0?U:[],Q=Object.create(null);for(let OD of w){var j;let XD=S8(OD.type);Q[OD.name.value]={type:XD,description:(j=OD.description)===null||j===void 0?void 0:j.value,defaultValue:W7.valueFromAST(OD.defaultValue,XD),deprecationReason:EO(OD),astNode:OD}}return Q}function h6(U){let w=Object.create(null);for(let OD of U){var Q;let XD=(Q=OD.fields)!==null&&Q!==void 0?Q:[];for(let FD of XD){var j;let K2=S8(FD.type);w[FD.name.value]={type:K2,description:(j=FD.description)===null||j===void 0?void 0:j.value,defaultValue:W7.valueFromAST(FD.defaultValue,K2),deprecationReason:EO(FD),astNode:FD}}}return w}function g6(U){let w=Object.create(null);for(let OD of U){var Q;let XD=(Q=OD.values)!==null&&Q!==void 0?Q:[];for(let FD of XD){var j;w[FD.name.value]={description:(j=FD.description)===null||j===void 0?void 0:j.value,deprecationReason:EO(FD),astNode:FD}}}return w}function YP(U){return U.flatMap((w)=>{var Q,j;return(Q=(j=w.interfaces)===null||j===void 0?void 0:j.map(K0))!==null&&Q!==void 0?Q:[]})}function y6(U){return U.flatMap((w)=>{var Q,j;return(Q=(j=w.types)===null||j===void 0?void 0:j.map(K0))!==null&&Q!==void 0?Q:[]})}function rB(U){var w;let Q=U.name.value,j=(w=L[Q])!==null&&w!==void 0?w:[];switch(U.kind){case sD.Kind.OBJECT_TYPE_DEFINITION:{var OD;let O0=[U,...j];return new LD.GraphQLObjectType({name:Q,description:(OD=U.description)===null||OD===void 0?void 0:OD.value,interfaces:()=>YP(O0),fields:()=>BP(O0),astNode:U,extensionASTNodes:j})}case sD.Kind.INTERFACE_TYPE_DEFINITION:{var XD;let O0=[U,...j];return new LD.GraphQLInterfaceType({name:Q,description:(XD=U.description)===null||XD===void 0?void 0:XD.value,interfaces:()=>YP(O0),fields:()=>BP(O0),astNode:U,extensionASTNodes:j})}case sD.Kind.ENUM_TYPE_DEFINITION:{var FD;let O0=[U,...j];return new LD.GraphQLEnumType({name:Q,description:(FD=U.description)===null||FD===void 0?void 0:FD.value,values:g6(O0),astNode:U,extensionASTNodes:j})}case sD.Kind.UNION_TYPE_DEFINITION:{var K2;let O0=[U,...j];return new LD.GraphQLUnionType({name:Q,description:(K2=U.description)===null||K2===void 0?void 0:K2.value,types:()=>y6(O0),astNode:U,extensionASTNodes:j})}case sD.Kind.SCALAR_TYPE_DEFINITION:{var oO;return new LD.GraphQLScalarType({name:Q,description:(oO=U.description)===null||oO===void 0?void 0:oO.value,specifiedByURL:F7(U),astNode:U,extensionASTNodes:j})}case sD.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var eO;let O0=[U,...j];return new LD.GraphQLInputObjectType({name:Q,description:(eO=U.description)===null||eO===void 0?void 0:eO.value,fields:()=>h6(O0),astNode:U,extensionASTNodes:j,isOneOf:RQ(U)})}}}}var E7=WQ.keyMap([...S7.specifiedScalarTypes,...R7.introspectionTypes],(D)=>D.name);function EO(D){let P=X3.getDirectiveValues(d8.GraphQLDeprecatedDirective,D);return P===null||P===void 0?void 0:P.reason}function F7(D){let P=X3.getDirectiveValues(d8.GraphQLSpecifiedByDirective,D);return P===null||P===void 0?void 0:P.url}function RQ(D){return Boolean(X3.getDirectiveValues(d8.GraphQLOneOfDirective,D))}});var H7=J((Z7)=>{Object.defineProperty(Z7,"__esModule",{value:!0});Z7.buildASTSchema=Y7;Z7.buildSchema=UQ;var BQ=ND(),YQ=c(),ZQ=_2(),HQ=xD(),AQ=Y2(),CQ=h8(),JQ=q3();function Y7(D,P){if(D!=null&&D.kind===YQ.Kind.DOCUMENT||BQ.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)CQ.assertValidSDL(D);let O={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},W=JQ.extendSchemaImpl(O,D,P);if(W.astNode==null)for(let F of W.types)switch(F.name){case"Query":W.query=F;break;case"Mutation":W.mutation=F;break;case"Subscription":W.subscription=F;break}let E=[...W.directives,...HQ.specifiedDirectives.filter((F)=>W.directives.every((R)=>R.name!==F.name))];return new AQ.GraphQLSchema({...W,directives:E})}function UQ(D,P){let O=ZQ.parse(D,{noLocation:P===null||P===void 0?void 0:P.noLocation,allowLegacyFragmentVariables:P===null||P===void 0?void 0:P.allowLegacyFragmentVariables});return Y7(O,{assumeValidSDL:P===null||P===void 0?void 0:P.assumeValidSDL,assumeValid:P===null||P===void 0?void 0:P.assumeValid})}});var U7=J((J7)=>{Object.defineProperty(J7,"__esModule",{value:!0});J7.lexicographicSortSchema=bQ;var zQ=i(),GQ=jD(),uQ=C8(),A7=J8(),kD=l(),IQ=xD(),QQ=nD(),MQ=Y2();function bQ(D){let P=D.toConfig(),O=uQ.keyValMap(z3(P.types),(H)=>H.name,Z);return new MQ.GraphQLSchema({...P,types:Object.values(O),directives:z3(P.directives).map(R),query:F(P.query),mutation:F(P.mutation),subscription:F(P.subscription)});function W(H){if(kD.isListType(H))return new kD.GraphQLList(W(H.ofType));else if(kD.isNonNullType(H))return new kD.GraphQLNonNull(W(H.ofType));return E(H)}function E(H){return O[H.name]}function F(H){return H&&E(H)}function R(H){let C=H.toConfig();return new IQ.GraphQLDirective({...C,locations:C7(C.locations,(X)=>X),args:S(C.args)})}function S(H){return FO(H,(C)=>({...C,type:W(C.type)}))}function L(H){return FO(H,(C)=>({...C,type:W(C.type),args:C.args&&S(C.args)}))}function B(H){return FO(H,(C)=>({...C,type:W(C.type)}))}function Y(H){return z3(H).map(E)}function Z(H){if(kD.isScalarType(H)||QQ.isIntrospectionType(H))return H;if(kD.isObjectType(H)){let C=H.toConfig();return new kD.GraphQLObjectType({...C,interfaces:()=>Y(C.interfaces),fields:()=>L(C.fields)})}if(kD.isInterfaceType(H)){let C=H.toConfig();return new kD.GraphQLInterfaceType({...C,interfaces:()=>Y(C.interfaces),fields:()=>L(C.fields)})}if(kD.isUnionType(H)){let C=H.toConfig();return new kD.GraphQLUnionType({...C,types:()=>Y(C.types)})}if(kD.isEnumType(H)){let C=H.toConfig();return new kD.GraphQLEnumType({...C,values:FO(C.values,(X)=>X)})}if(kD.isInputObjectType(H)){let C=H.toConfig();return new kD.GraphQLInputObjectType({...C,fields:()=>B(C.fields)})}GQ.invariant(!1,"Unexpected type: "+zQ.inspect(H))}}function FO(D,P){let O=Object.create(null);for(let W of Object.keys(D).sort(A7.naturalCompare))O[W]=P(D[W]);return O}function z3(D){return C7(D,(P)=>P.name)}function C7(D,P){return D.slice().sort((O,W)=>{let E=P(O),F=P(W);return A7.naturalCompare(E,F)})}});var M7=J((Q7)=>{Object.defineProperty(Q7,"__esModule",{value:!0});Q7.printIntrospectionSchema=NQ;Q7.printSchema=TQ;Q7.printType=z7;var KQ=i(),jQ=jD(),$Q=B8(),u3=c(),RO=mD(),c2=l(),I3=xD(),X7=nD(),VQ=X0(),_Q=K8();function TQ(D){return q7(D,(P)=>!I3.isSpecifiedDirective(P),kQ)}function NQ(D){return q7(D,I3.isSpecifiedDirective,X7.isIntrospectionType)}function kQ(D){return!VQ.isSpecifiedScalarType(D)&&!X7.isIntrospectionType(D)}function q7(D,P,O){let W=D.getDirectives().filter(P),E=Object.values(D.getTypeMap()).filter(O);return[xQ(D),...W.map((F)=>lQ(F)),...E.map((F)=>z7(F))].filter(Boolean).join("\n\n")}function xQ(D){if(D.description==null&&fQ(D))return;let P=[],O=D.getQueryType();if(O)P.push(` query: ${O.name}`);let W=D.getMutationType();if(W)P.push(` mutation: ${W.name}`);let E=D.getSubscriptionType();if(E)P.push(` subscription: ${E.name}`);return iD(D)+`schema {\n${P.join("\n")}\n}`}function fQ(D){let P=D.getQueryType();if(P&&P.name!=="Query")return!1;let O=D.getMutationType();if(O&&O.name!=="Mutation")return!1;let W=D.getSubscriptionType();if(W&&W.name!=="Subscription")return!1;return!0}function z7(D){if(c2.isScalarType(D))return vQ(D);if(c2.isObjectType(D))return hQ(D);if(c2.isInterfaceType(D))return gQ(D);if(c2.isUnionType(D))return yQ(D);if(c2.isEnumType(D))return mQ(D);if(c2.isInputObjectType(D))return cQ(D);jQ.invariant(!1,"Unexpected type: "+KQ.inspect(D))}function vQ(D){return iD(D)+`scalar ${D.name}`+rQ(D)}function G7(D){let P=D.getInterfaces();return P.length?" implements "+P.map((O)=>O.name).join(" & "):""}function hQ(D){return iD(D)+`type ${D.name}`+G7(D)+u7(D)}function gQ(D){return iD(D)+`interface ${D.name}`+G7(D)+u7(D)}function yQ(D){let P=D.getTypes(),O=P.length?" = "+P.join(" | "):"";return iD(D)+"union "+D.name+O}function mQ(D){let P=D.getValues().map((O,W)=>iD(O," ",!W)+" "+O.name+M3(O.deprecationReason));return iD(D)+`enum ${D.name}`+Q3(P)}function cQ(D){let P=Object.values(D.getFields()).map((O,W)=>iD(O," ",!W)+" "+G3(O));return iD(D)+`input ${D.name}`+(D.isOneOf?" @oneOf":"")+Q3(P)}function u7(D){let P=Object.values(D.getFields()).map((O,W)=>iD(O," ",!W)+" "+O.name+I7(O.args," ")+": "+String(O.type)+M3(O.deprecationReason));return Q3(P)}function Q3(D){return D.length!==0?" {\n"+D.join("\n")+"\n}":""}function I7(D,P=""){if(D.length===0)return"";if(D.every((O)=>!O.description))return"("+D.map(G3).join(", ")+")";return"(\n"+D.map((O,W)=>iD(O," "+P,!W)+" "+P+G3(O)).join("\n")+"\n"+P+")"}function G3(D){let P=_Q.astFromValue(D.defaultValue,D.type),O=D.name+": "+String(D.type);if(P)O+=` = ${RO.print(P)}`;return O+M3(D.deprecationReason)}function lQ(D){return iD(D)+"directive @"+D.name+I7(D.args)+(D.isRepeatable?" repeatable":"")+" on "+D.locations.join(" | ")}function M3(D){if(D==null)return"";if(D!==I3.DEFAULT_DEPRECATION_REASON)return` @deprecated(reason: ${RO.print({kind:u3.Kind.STRING,value:D})})`;return" @deprecated"}function rQ(D){if(D.specifiedByURL==null)return"";return` @specifiedBy(url: ${RO.print({kind:u3.Kind.STRING,value:D.specifiedByURL})})`}function iD(D,P="",O=!0){let{description:W}=D;if(W==null)return"";let E=RO.print({kind:u3.Kind.STRING,value:W,block:$Q.isPrintableAsBlockString(W)});return(P&&!O?"\n"+P:P)+E.replace(/\n/g,"\n"+P)+"\n"}});var w7=J((b7)=>{Object.defineProperty(b7,"__esModule",{value:!0});b7.concatAST=tQ;var aQ=c();function tQ(D){let P=[];for(let O of D)P.push(...O.definitions);return{kind:aQ.Kind.DOCUMENT,definitions:P}}});var V7=J(($7)=>{Object.defineProperty($7,"__esModule",{value:!0});$7.separateOperations=oQ;var SO=c(),iQ=E2();function oQ(D){let P=[],O=Object.create(null);for(let E of D.definitions)switch(E.kind){case SO.Kind.OPERATION_DEFINITION:P.push(E);break;case SO.Kind.FRAGMENT_DEFINITION:O[E.name.value]=K7(E.selectionSet);break;default:}let W=Object.create(null);for(let E of P){let F=new Set;for(let S of K7(E.selectionSet))j7(F,O,S);let R=E.name?E.name.value:"";W[R]={kind:SO.Kind.DOCUMENT,definitions:D.definitions.filter((S)=>S===E||S.kind===SO.Kind.FRAGMENT_DEFINITION&&F.has(S.name.value))}}return W}function j7(D,P,O){if(!D.has(O)){D.add(O);let W=P[O];if(W!==void 0)for(let E of W)j7(D,P,E)}}function K7(D){let P=[];return iQ.visit(D,{FragmentSpread(O){P.push(O.name.value)}}),P}});var k7=J((N7)=>{Object.defineProperty(N7,"__esModule",{value:!0});N7.stripIgnoredCharacters=PM;var DM=B8(),_7=qP(),T7=GP(),b3=Y8();function PM(D){let P=T7.isSource(D)?D:new T7.Source(D),O=P.body,W=new _7.Lexer(P),E="",F=!1;while(W.advance().kind!==b3.TokenKind.EOF){let R=W.token,S=R.kind,L=!_7.isPunctuatorTokenKind(R.kind);if(F){if(L||R.kind===b3.TokenKind.SPREAD)E+=" "}let B=O.slice(R.start,R.end);if(S===b3.TokenKind.BLOCK_STRING)E+=DM.printBlockString(R.value,{minimize:!0});else E+=B;F=L}return E}});var v7=J((f7)=>{Object.defineProperty(f7,"__esModule",{value:!0});f7.assertValidName=RM;f7.isValidNameError=x7;var WM=ND(),EM=T(),FM=U8();function RM(D){let P=x7(D);if(P)throw P;return D}function x7(D){if(typeof D==="string"||WM.devAssert(!1,"Expected name to be a string."),D.startsWith("__"))return new EM.GraphQLError(`Name "${D}" must not begin with "__", which is reserved by GraphQL introspection.`);try{FM.assertName(D)}catch(P){return P}}});var n7=J((d7)=>{Object.defineProperty(d7,"__esModule",{value:!0});d7.DangerousChangeType=d7.BreakingChangeType=void 0;d7.findBreakingChanges=CM;d7.findDangerousChanges=JM;var BM=i(),l7=jD(),h7=y0(),YM=mD(),a=l(),ZM=X0(),HM=K8(),AM=GW(),CD;d7.BreakingChangeType=CD;(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"})(CD||(d7.BreakingChangeType=CD={}));var H0;d7.DangerousChangeType=H0;(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"})(H0||(d7.DangerousChangeType=H0={}));function CM(D,P){return r7(D,P).filter((O)=>(O.type in CD))}function JM(D,P){return r7(D,P).filter((O)=>(O.type in H0))}function r7(D,P){return[...XM(D,P),...UM(D,P)]}function UM(D,P){let O=[],W=k0(D.getDirectives(),P.getDirectives());for(let E of W.removed)O.push({type:CD.DIRECTIVE_REMOVED,description:`${E.name} was removed.`});for(let[E,F]of W.persisted){let R=k0(E.args,F.args);for(let S of R.added)if(a.isRequiredArgument(S))O.push({type:CD.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${S.name} on directive ${E.name} was added.`});for(let S of R.removed)O.push({type:CD.DIRECTIVE_ARG_REMOVED,description:`${S.name} was removed from ${E.name}.`});if(E.isRepeatable&&!F.isRepeatable)O.push({type:CD.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${E.name}.`});for(let S of E.locations)if(!F.locations.includes(S))O.push({type:CD.DIRECTIVE_LOCATION_REMOVED,description:`${S} was removed from ${E.name}.`})}return O}function XM(D,P){let O=[],W=k0(Object.values(D.getTypeMap()),Object.values(P.getTypeMap()));for(let E of W.removed)O.push({type:CD.TYPE_REMOVED,description:ZM.isSpecifiedScalarType(E)?`Standard scalar ${E.name} was removed because it is not referenced anymore.`:`${E.name} was removed.`});for(let[E,F]of W.persisted)if(a.isEnumType(E)&&a.isEnumType(F))O.push(...GM(E,F));else if(a.isUnionType(E)&&a.isUnionType(F))O.push(...zM(E,F));else if(a.isInputObjectType(E)&&a.isInputObjectType(F))O.push(...qM(E,F));else if(a.isObjectType(E)&&a.isObjectType(F))O.push(...y7(E,F),...g7(E,F));else if(a.isInterfaceType(E)&&a.isInterfaceType(F))O.push(...y7(E,F),...g7(E,F));else if(E.constructor!==F.constructor)O.push({type:CD.TYPE_CHANGED_KIND,description:`${E.name} changed from ${m7(E)} to ${m7(F)}.`});return O}function qM(D,P){let O=[],W=k0(Object.values(D.getFields()),Object.values(P.getFields()));for(let E of W.added)if(a.isRequiredInputField(E))O.push({type:CD.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${E.name} on input type ${D.name} was added.`});else O.push({type:H0.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${E.name} on input type ${D.name} was added.`});for(let E of W.removed)O.push({type:CD.FIELD_REMOVED,description:`${D.name}.${E.name} was removed.`});for(let[E,F]of W.persisted)if(!n8(E.type,F.type))O.push({type:CD.FIELD_CHANGED_KIND,description:`${D.name}.${E.name} changed type from ${String(E.type)} to ${String(F.type)}.`});return O}function zM(D,P){let O=[],W=k0(D.getTypes(),P.getTypes());for(let E of W.added)O.push({type:H0.TYPE_ADDED_TO_UNION,description:`${E.name} was added to union type ${D.name}.`});for(let E of W.removed)O.push({type:CD.TYPE_REMOVED_FROM_UNION,description:`${E.name} was removed from union type ${D.name}.`});return O}function GM(D,P){let O=[],W=k0(D.getValues(),P.getValues());for(let E of W.added)O.push({type:H0.VALUE_ADDED_TO_ENUM,description:`${E.name} was added to enum type ${D.name}.`});for(let E of W.removed)O.push({type:CD.VALUE_REMOVED_FROM_ENUM,description:`${E.name} was removed from enum type ${D.name}.`});return O}function g7(D,P){let O=[],W=k0(D.getInterfaces(),P.getInterfaces());for(let E of W.added)O.push({type:H0.IMPLEMENTED_INTERFACE_ADDED,description:`${E.name} added to interfaces implemented by ${D.name}.`});for(let E of W.removed)O.push({type:CD.IMPLEMENTED_INTERFACE_REMOVED,description:`${D.name} no longer implements interface ${E.name}.`});return O}function y7(D,P){let O=[],W=k0(Object.values(D.getFields()),Object.values(P.getFields()));for(let E of W.removed)O.push({type:CD.FIELD_REMOVED,description:`${D.name}.${E.name} was removed.`});for(let[E,F]of W.persisted)if(O.push(...uM(D,E,F)),!p8(E.type,F.type))O.push({type:CD.FIELD_CHANGED_KIND,description:`${D.name}.${E.name} changed type from ${String(E.type)} to ${String(F.type)}.`});return O}function uM(D,P,O){let W=[],E=k0(P.args,O.args);for(let F of E.removed)W.push({type:CD.ARG_REMOVED,description:`${D.name}.${P.name} arg ${F.name} was removed.`});for(let[F,R]of E.persisted)if(!n8(F.type,R.type))W.push({type:CD.ARG_CHANGED_KIND,description:`${D.name}.${P.name} arg ${F.name} has changed type from ${String(F.type)} to ${String(R.type)}.`});else if(F.defaultValue!==void 0)if(R.defaultValue===void 0)W.push({type:H0.ARG_DEFAULT_VALUE_CHANGE,description:`${D.name}.${P.name} arg ${F.name} defaultValue was removed.`});else{let L=c7(F.defaultValue,F.type),B=c7(R.defaultValue,R.type);if(L!==B)W.push({type:H0.ARG_DEFAULT_VALUE_CHANGE,description:`${D.name}.${P.name} arg ${F.name} has changed defaultValue from ${L} to ${B}.`})}for(let F of E.added)if(a.isRequiredArgument(F))W.push({type:CD.REQUIRED_ARG_ADDED,description:`A required arg ${F.name} on ${D.name}.${P.name} was added.`});else W.push({type:H0.OPTIONAL_ARG_ADDED,description:`An optional arg ${F.name} on ${D.name}.${P.name} was added.`});return W}function p8(D,P){if(a.isListType(D))return a.isListType(P)&&p8(D.ofType,P.ofType)||a.isNonNullType(P)&&p8(D,P.ofType);if(a.isNonNullType(D))return a.isNonNullType(P)&&p8(D.ofType,P.ofType);return a.isNamedType(P)&&D.name===P.name||a.isNonNullType(P)&&p8(D,P.ofType)}function n8(D,P){if(a.isListType(D))return a.isListType(P)&&n8(D.ofType,P.ofType);if(a.isNonNullType(D))return a.isNonNullType(P)&&n8(D.ofType,P.ofType)||!a.isNonNullType(P)&&n8(D.ofType,P);return a.isNamedType(P)&&D.name===P.name}function m7(D){if(a.isScalarType(D))return"a Scalar type";if(a.isObjectType(D))return"an Object type";if(a.isInterfaceType(D))return"an Interface type";if(a.isUnionType(D))return"a Union type";if(a.isEnumType(D))return"an Enum type";if(a.isInputObjectType(D))return"an Input type";l7.invariant(!1,"Unexpected type: "+BM.inspect(D))}function c7(D,P){let O=HM.astFromValue(D,P);return O!=null||l7.invariant(!1),YM.print(AM.sortValueNode(O))}function k0(D,P){let O=[],W=[],E=[],F=h7.keyMap(D,({name:S})=>S),R=h7.keyMap(P,({name:S})=>S);for(let S of D){let L=R[S.name];if(L===void 0)W.push(S);else E.push([S,L])}for(let S of P)if(F[S.name]===void 0)O.push(S);return{added:O,persisted:E,removed:W}}});var i7=J((n)=>{Object.defineProperty(n,"__esModule",{value:!0});Object.defineProperty(n,"BreakingChangeType",{enumerable:!0,get:function(){return LO.BreakingChangeType}});Object.defineProperty(n,"DangerousChangeType",{enumerable:!0,get:function(){return LO.DangerousChangeType}});Object.defineProperty(n,"TypeInfo",{enumerable:!0,get:function(){return t7.TypeInfo}});Object.defineProperty(n,"assertValidName",{enumerable:!0,get:function(){return s7.assertValidName}});Object.defineProperty(n,"astFromValue",{enumerable:!0,get:function(){return kM.astFromValue}});Object.defineProperty(n,"buildASTSchema",{enumerable:!0,get:function(){return a7.buildASTSchema}});Object.defineProperty(n,"buildClientSchema",{enumerable:!0,get:function(){return jM.buildClientSchema}});Object.defineProperty(n,"buildSchema",{enumerable:!0,get:function(){return a7.buildSchema}});Object.defineProperty(n,"coerceInputValue",{enumerable:!0,get:function(){return xM.coerceInputValue}});Object.defineProperty(n,"concatAST",{enumerable:!0,get:function(){return fM.concatAST}});Object.defineProperty(n,"doTypesOverlap",{enumerable:!0,get:function(){return j3.doTypesOverlap}});Object.defineProperty(n,"extendSchema",{enumerable:!0,get:function(){return $M.extendSchema}});Object.defineProperty(n,"findBreakingChanges",{enumerable:!0,get:function(){return LO.findBreakingChanges}});Object.defineProperty(n,"findDangerousChanges",{enumerable:!0,get:function(){return LO.findDangerousChanges}});Object.defineProperty(n,"getIntrospectionQuery",{enumerable:!0,get:function(){return MM.getIntrospectionQuery}});Object.defineProperty(n,"getOperationAST",{enumerable:!0,get:function(){return bM.getOperationAST}});Object.defineProperty(n,"getOperationRootType",{enumerable:!0,get:function(){return wM.getOperationRootType}});Object.defineProperty(n,"introspectionFromSchema",{enumerable:!0,get:function(){return KM.introspectionFromSchema}});Object.defineProperty(n,"isEqualType",{enumerable:!0,get:function(){return j3.isEqualType}});Object.defineProperty(n,"isTypeSubTypeOf",{enumerable:!0,get:function(){return j3.isTypeSubTypeOf}});Object.defineProperty(n,"isValidNameError",{enumerable:!0,get:function(){return s7.isValidNameError}});Object.defineProperty(n,"lexicographicSortSchema",{enumerable:!0,get:function(){return VM.lexicographicSortSchema}});Object.defineProperty(n,"printIntrospectionSchema",{enumerable:!0,get:function(){return K3.printIntrospectionSchema}});Object.defineProperty(n,"printSchema",{enumerable:!0,get:function(){return K3.printSchema}});Object.defineProperty(n,"printType",{enumerable:!0,get:function(){return K3.printType}});Object.defineProperty(n,"separateOperations",{enumerable:!0,get:function(){return vM.separateOperations}});Object.defineProperty(n,"stripIgnoredCharacters",{enumerable:!0,get:function(){return hM.stripIgnoredCharacters}});Object.defineProperty(n,"typeFromAST",{enumerable:!0,get:function(){return _M.typeFromAST}});Object.defineProperty(n,"valueFromAST",{enumerable:!0,get:function(){return TM.valueFromAST}});Object.defineProperty(n,"valueFromASTUntyped",{enumerable:!0,get:function(){return NM.valueFromASTUntyped}});Object.defineProperty(n,"visitWithTypeInfo",{enumerable:!0,get:function(){return t7.visitWithTypeInfo}});var MM=U3(),bM=n9(),wM=t9(),KM=i9(),jM=D7(),a7=H7(),$M=q3(),VM=U7(),K3=M7(),_M=q0(),TM=f8(),NM=w1(),kM=K8(),t7=vP(),xM=NW(),fM=w7(),vM=V7(),hM=k7(),j3=G8(),s7=v7(),LO=n7()});var M0=J((A)=>{Object.defineProperty(A,"__esModule",{value:!0});Object.defineProperty(A,"BREAK",{enumerable:!0,get:function(){return t.BREAK}});Object.defineProperty(A,"BreakingChangeType",{enumerable:!0,get:function(){return s.BreakingChangeType}});Object.defineProperty(A,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return G.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(A,"DangerousChangeType",{enumerable:!0,get:function(){return s.DangerousChangeType}});Object.defineProperty(A,"DirectiveLocation",{enumerable:!0,get:function(){return t.DirectiveLocation}});Object.defineProperty(A,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return h.ExecutableDefinitionsRule}});Object.defineProperty(A,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return h.FieldsOnCorrectTypeRule}});Object.defineProperty(A,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return h.FragmentsOnCompositeTypesRule}});Object.defineProperty(A,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return G.GRAPHQL_MAX_INT}});Object.defineProperty(A,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return G.GRAPHQL_MIN_INT}});Object.defineProperty(A,"GraphQLBoolean",{enumerable:!0,get:function(){return G.GraphQLBoolean}});Object.defineProperty(A,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return G.GraphQLDeprecatedDirective}});Object.defineProperty(A,"GraphQLDirective",{enumerable:!0,get:function(){return G.GraphQLDirective}});Object.defineProperty(A,"GraphQLEnumType",{enumerable:!0,get:function(){return G.GraphQLEnumType}});Object.defineProperty(A,"GraphQLError",{enumerable:!0,get:function(){return a8.GraphQLError}});Object.defineProperty(A,"GraphQLFloat",{enumerable:!0,get:function(){return G.GraphQLFloat}});Object.defineProperty(A,"GraphQLID",{enumerable:!0,get:function(){return G.GraphQLID}});Object.defineProperty(A,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return G.GraphQLIncludeDirective}});Object.defineProperty(A,"GraphQLInputObjectType",{enumerable:!0,get:function(){return G.GraphQLInputObjectType}});Object.defineProperty(A,"GraphQLInt",{enumerable:!0,get:function(){return G.GraphQLInt}});Object.defineProperty(A,"GraphQLInterfaceType",{enumerable:!0,get:function(){return G.GraphQLInterfaceType}});Object.defineProperty(A,"GraphQLList",{enumerable:!0,get:function(){return G.GraphQLList}});Object.defineProperty(A,"GraphQLNonNull",{enumerable:!0,get:function(){return G.GraphQLNonNull}});Object.defineProperty(A,"GraphQLObjectType",{enumerable:!0,get:function(){return G.GraphQLObjectType}});Object.defineProperty(A,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return G.GraphQLOneOfDirective}});Object.defineProperty(A,"GraphQLScalarType",{enumerable:!0,get:function(){return G.GraphQLScalarType}});Object.defineProperty(A,"GraphQLSchema",{enumerable:!0,get:function(){return G.GraphQLSchema}});Object.defineProperty(A,"GraphQLSkipDirective",{enumerable:!0,get:function(){return G.GraphQLSkipDirective}});Object.defineProperty(A,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return G.GraphQLSpecifiedByDirective}});Object.defineProperty(A,"GraphQLString",{enumerable:!0,get:function(){return G.GraphQLString}});Object.defineProperty(A,"GraphQLUnionType",{enumerable:!0,get:function(){return G.GraphQLUnionType}});Object.defineProperty(A,"Kind",{enumerable:!0,get:function(){return t.Kind}});Object.defineProperty(A,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return h.KnownArgumentNamesRule}});Object.defineProperty(A,"KnownDirectivesRule",{enumerable:!0,get:function(){return h.KnownDirectivesRule}});Object.defineProperty(A,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return h.KnownFragmentNamesRule}});Object.defineProperty(A,"KnownTypeNamesRule",{enumerable:!0,get:function(){return h.KnownTypeNamesRule}});Object.defineProperty(A,"Lexer",{enumerable:!0,get:function(){return t.Lexer}});Object.defineProperty(A,"Location",{enumerable:!0,get:function(){return t.Location}});Object.defineProperty(A,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return h.LoneAnonymousOperationRule}});Object.defineProperty(A,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return h.LoneSchemaDefinitionRule}});Object.defineProperty(A,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return h.MaxIntrospectionDepthRule}});Object.defineProperty(A,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return h.NoDeprecatedCustomRule}});Object.defineProperty(A,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return h.NoFragmentCyclesRule}});Object.defineProperty(A,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return h.NoSchemaIntrospectionCustomRule}});Object.defineProperty(A,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return h.NoUndefinedVariablesRule}});Object.defineProperty(A,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return h.NoUnusedFragmentsRule}});Object.defineProperty(A,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return h.NoUnusedVariablesRule}});Object.defineProperty(A,"OperationTypeNode",{enumerable:!0,get:function(){return t.OperationTypeNode}});Object.defineProperty(A,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return h.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(A,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return h.PossibleFragmentSpreadsRule}});Object.defineProperty(A,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return h.PossibleTypeExtensionsRule}});Object.defineProperty(A,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return h.ProvidedRequiredArgumentsRule}});Object.defineProperty(A,"ScalarLeafsRule",{enumerable:!0,get:function(){return h.ScalarLeafsRule}});Object.defineProperty(A,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return G.SchemaMetaFieldDef}});Object.defineProperty(A,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return h.SingleFieldSubscriptionsRule}});Object.defineProperty(A,"Source",{enumerable:!0,get:function(){return t.Source}});Object.defineProperty(A,"Token",{enumerable:!0,get:function(){return t.Token}});Object.defineProperty(A,"TokenKind",{enumerable:!0,get:function(){return t.TokenKind}});Object.defineProperty(A,"TypeInfo",{enumerable:!0,get:function(){return s.TypeInfo}});Object.defineProperty(A,"TypeKind",{enumerable:!0,get:function(){return G.TypeKind}});Object.defineProperty(A,"TypeMetaFieldDef",{enumerable:!0,get:function(){return G.TypeMetaFieldDef}});Object.defineProperty(A,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return G.TypeNameMetaFieldDef}});Object.defineProperty(A,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return h.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(A,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return h.UniqueArgumentNamesRule}});Object.defineProperty(A,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return h.UniqueDirectiveNamesRule}});Object.defineProperty(A,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return h.UniqueDirectivesPerLocationRule}});Object.defineProperty(A,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return h.UniqueEnumValueNamesRule}});Object.defineProperty(A,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return h.UniqueFieldDefinitionNamesRule}});Object.defineProperty(A,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return h.UniqueFragmentNamesRule}});Object.defineProperty(A,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return h.UniqueInputFieldNamesRule}});Object.defineProperty(A,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return h.UniqueOperationNamesRule}});Object.defineProperty(A,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return h.UniqueOperationTypesRule}});Object.defineProperty(A,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return h.UniqueTypeNamesRule}});Object.defineProperty(A,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return h.UniqueVariableNamesRule}});Object.defineProperty(A,"ValidationContext",{enumerable:!0,get:function(){return h.ValidationContext}});Object.defineProperty(A,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return h.ValuesOfCorrectTypeRule}});Object.defineProperty(A,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return h.VariablesAreInputTypesRule}});Object.defineProperty(A,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return h.VariablesInAllowedPositionRule}});Object.defineProperty(A,"__Directive",{enumerable:!0,get:function(){return G.__Directive}});Object.defineProperty(A,"__DirectiveLocation",{enumerable:!0,get:function(){return G.__DirectiveLocation}});Object.defineProperty(A,"__EnumValue",{enumerable:!0,get:function(){return G.__EnumValue}});Object.defineProperty(A,"__Field",{enumerable:!0,get:function(){return G.__Field}});Object.defineProperty(A,"__InputValue",{enumerable:!0,get:function(){return G.__InputValue}});Object.defineProperty(A,"__Schema",{enumerable:!0,get:function(){return G.__Schema}});Object.defineProperty(A,"__Type",{enumerable:!0,get:function(){return G.__Type}});Object.defineProperty(A,"__TypeKind",{enumerable:!0,get:function(){return G.__TypeKind}});Object.defineProperty(A,"assertAbstractType",{enumerable:!0,get:function(){return G.assertAbstractType}});Object.defineProperty(A,"assertCompositeType",{enumerable:!0,get:function(){return G.assertCompositeType}});Object.defineProperty(A,"assertDirective",{enumerable:!0,get:function(){return G.assertDirective}});Object.defineProperty(A,"assertEnumType",{enumerable:!0,get:function(){return G.assertEnumType}});Object.defineProperty(A,"assertEnumValueName",{enumerable:!0,get:function(){return G.assertEnumValueName}});Object.defineProperty(A,"assertInputObjectType",{enumerable:!0,get:function(){return G.assertInputObjectType}});Object.defineProperty(A,"assertInputType",{enumerable:!0,get:function(){return G.assertInputType}});Object.defineProperty(A,"assertInterfaceType",{enumerable:!0,get:function(){return G.assertInterfaceType}});Object.defineProperty(A,"assertLeafType",{enumerable:!0,get:function(){return G.assertLeafType}});Object.defineProperty(A,"assertListType",{enumerable:!0,get:function(){return G.assertListType}});Object.defineProperty(A,"assertName",{enumerable:!0,get:function(){return G.assertName}});Object.defineProperty(A,"assertNamedType",{enumerable:!0,get:function(){return G.assertNamedType}});Object.defineProperty(A,"assertNonNullType",{enumerable:!0,get:function(){return G.assertNonNullType}});Object.defineProperty(A,"assertNullableType",{enumerable:!0,get:function(){return G.assertNullableType}});Object.defineProperty(A,"assertObjectType",{enumerable:!0,get:function(){return G.assertObjectType}});Object.defineProperty(A,"assertOutputType",{enumerable:!0,get:function(){return G.assertOutputType}});Object.defineProperty(A,"assertScalarType",{enumerable:!0,get:function(){return G.assertScalarType}});Object.defineProperty(A,"assertSchema",{enumerable:!0,get:function(){return G.assertSchema}});Object.defineProperty(A,"assertType",{enumerable:!0,get:function(){return G.assertType}});Object.defineProperty(A,"assertUnionType",{enumerable:!0,get:function(){return G.assertUnionType}});Object.defineProperty(A,"assertValidName",{enumerable:!0,get:function(){return s.assertValidName}});Object.defineProperty(A,"assertValidSchema",{enumerable:!0,get:function(){return G.assertValidSchema}});Object.defineProperty(A,"assertWrappingType",{enumerable:!0,get:function(){return G.assertWrappingType}});Object.defineProperty(A,"astFromValue",{enumerable:!0,get:function(){return s.astFromValue}});Object.defineProperty(A,"buildASTSchema",{enumerable:!0,get:function(){return s.buildASTSchema}});Object.defineProperty(A,"buildClientSchema",{enumerable:!0,get:function(){return s.buildClientSchema}});Object.defineProperty(A,"buildSchema",{enumerable:!0,get:function(){return s.buildSchema}});Object.defineProperty(A,"coerceInputValue",{enumerable:!0,get:function(){return s.coerceInputValue}});Object.defineProperty(A,"concatAST",{enumerable:!0,get:function(){return s.concatAST}});Object.defineProperty(A,"createSourceEventStream",{enumerable:!0,get:function(){return Q0.createSourceEventStream}});Object.defineProperty(A,"defaultFieldResolver",{enumerable:!0,get:function(){return Q0.defaultFieldResolver}});Object.defineProperty(A,"defaultTypeResolver",{enumerable:!0,get:function(){return Q0.defaultTypeResolver}});Object.defineProperty(A,"doTypesOverlap",{enumerable:!0,get:function(){return s.doTypesOverlap}});Object.defineProperty(A,"execute",{enumerable:!0,get:function(){return Q0.execute}});Object.defineProperty(A,"executeSync",{enumerable:!0,get:function(){return Q0.executeSync}});Object.defineProperty(A,"extendSchema",{enumerable:!0,get:function(){return s.extendSchema}});Object.defineProperty(A,"findBreakingChanges",{enumerable:!0,get:function(){return s.findBreakingChanges}});Object.defineProperty(A,"findDangerousChanges",{enumerable:!0,get:function(){return s.findDangerousChanges}});Object.defineProperty(A,"formatError",{enumerable:!0,get:function(){return a8.formatError}});Object.defineProperty(A,"getArgumentValues",{enumerable:!0,get:function(){return Q0.getArgumentValues}});Object.defineProperty(A,"getDirectiveValues",{enumerable:!0,get:function(){return Q0.getDirectiveValues}});Object.defineProperty(A,"getEnterLeaveForKind",{enumerable:!0,get:function(){return t.getEnterLeaveForKind}});Object.defineProperty(A,"getIntrospectionQuery",{enumerable:!0,get:function(){return s.getIntrospectionQuery}});Object.defineProperty(A,"getLocation",{enumerable:!0,get:function(){return t.getLocation}});Object.defineProperty(A,"getNamedType",{enumerable:!0,get:function(){return G.getNamedType}});Object.defineProperty(A,"getNullableType",{enumerable:!0,get:function(){return G.getNullableType}});Object.defineProperty(A,"getOperationAST",{enumerable:!0,get:function(){return s.getOperationAST}});Object.defineProperty(A,"getOperationRootType",{enumerable:!0,get:function(){return s.getOperationRootType}});Object.defineProperty(A,"getVariableValues",{enumerable:!0,get:function(){return Q0.getVariableValues}});Object.defineProperty(A,"getVisitFn",{enumerable:!0,get:function(){return t.getVisitFn}});Object.defineProperty(A,"graphql",{enumerable:!0,get:function(){return e7.graphql}});Object.defineProperty(A,"graphqlSync",{enumerable:!0,get:function(){return e7.graphqlSync}});Object.defineProperty(A,"introspectionFromSchema",{enumerable:!0,get:function(){return s.introspectionFromSchema}});Object.defineProperty(A,"introspectionTypes",{enumerable:!0,get:function(){return G.introspectionTypes}});Object.defineProperty(A,"isAbstractType",{enumerable:!0,get:function(){return G.isAbstractType}});Object.defineProperty(A,"isCompositeType",{enumerable:!0,get:function(){return G.isCompositeType}});Object.defineProperty(A,"isConstValueNode",{enumerable:!0,get:function(){return t.isConstValueNode}});Object.defineProperty(A,"isDefinitionNode",{enumerable:!0,get:function(){return t.isDefinitionNode}});Object.defineProperty(A,"isDirective",{enumerable:!0,get:function(){return G.isDirective}});Object.defineProperty(A,"isEnumType",{enumerable:!0,get:function(){return G.isEnumType}});Object.defineProperty(A,"isEqualType",{enumerable:!0,get:function(){return s.isEqualType}});Object.defineProperty(A,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return t.isExecutableDefinitionNode}});Object.defineProperty(A,"isInputObjectType",{enumerable:!0,get:function(){return G.isInputObjectType}});Object.defineProperty(A,"isInputType",{enumerable:!0,get:function(){return G.isInputType}});Object.defineProperty(A,"isInterfaceType",{enumerable:!0,get:function(){return G.isInterfaceType}});Object.defineProperty(A,"isIntrospectionType",{enumerable:!0,get:function(){return G.isIntrospectionType}});Object.defineProperty(A,"isLeafType",{enumerable:!0,get:function(){return G.isLeafType}});Object.defineProperty(A,"isListType",{enumerable:!0,get:function(){return G.isListType}});Object.defineProperty(A,"isNamedType",{enumerable:!0,get:function(){return G.isNamedType}});Object.defineProperty(A,"isNonNullType",{enumerable:!0,get:function(){return G.isNonNullType}});Object.defineProperty(A,"isNullableType",{enumerable:!0,get:function(){return G.isNullableType}});Object.defineProperty(A,"isObjectType",{enumerable:!0,get:function(){return G.isObjectType}});Object.defineProperty(A,"isOutputType",{enumerable:!0,get:function(){return G.isOutputType}});Object.defineProperty(A,"isRequiredArgument",{enumerable:!0,get:function(){return G.isRequiredArgument}});Object.defineProperty(A,"isRequiredInputField",{enumerable:!0,get:function(){return G.isRequiredInputField}});Object.defineProperty(A,"isScalarType",{enumerable:!0,get:function(){return G.isScalarType}});Object.defineProperty(A,"isSchema",{enumerable:!0,get:function(){return G.isSchema}});Object.defineProperty(A,"isSelectionNode",{enumerable:!0,get:function(){return t.isSelectionNode}});Object.defineProperty(A,"isSpecifiedDirective",{enumerable:!0,get:function(){return G.isSpecifiedDirective}});Object.defineProperty(A,"isSpecifiedScalarType",{enumerable:!0,get:function(){return G.isSpecifiedScalarType}});Object.defineProperty(A,"isType",{enumerable:!0,get:function(){return G.isType}});Object.defineProperty(A,"isTypeDefinitionNode",{enumerable:!0,get:function(){return t.isTypeDefinitionNode}});Object.defineProperty(A,"isTypeExtensionNode",{enumerable:!0,get:function(){return t.isTypeExtensionNode}});Object.defineProperty(A,"isTypeNode",{enumerable:!0,get:function(){return t.isTypeNode}});Object.defineProperty(A,"isTypeSubTypeOf",{enumerable:!0,get:function(){return s.isTypeSubTypeOf}});Object.defineProperty(A,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return t.isTypeSystemDefinitionNode}});Object.defineProperty(A,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return t.isTypeSystemExtensionNode}});Object.defineProperty(A,"isUnionType",{enumerable:!0,get:function(){return G.isUnionType}});Object.defineProperty(A,"isValidNameError",{enumerable:!0,get:function(){return s.isValidNameError}});Object.defineProperty(A,"isValueNode",{enumerable:!0,get:function(){return t.isValueNode}});Object.defineProperty(A,"isWrappingType",{enumerable:!0,get:function(){return G.isWrappingType}});Object.defineProperty(A,"lexicographicSortSchema",{enumerable:!0,get:function(){return s.lexicographicSortSchema}});Object.defineProperty(A,"locatedError",{enumerable:!0,get:function(){return a8.locatedError}});Object.defineProperty(A,"parse",{enumerable:!0,get:function(){return t.parse}});Object.defineProperty(A,"parseConstValue",{enumerable:!0,get:function(){return t.parseConstValue}});Object.defineProperty(A,"parseType",{enumerable:!0,get:function(){return t.parseType}});Object.defineProperty(A,"parseValue",{enumerable:!0,get:function(){return t.parseValue}});Object.defineProperty(A,"print",{enumerable:!0,get:function(){return t.print}});Object.defineProperty(A,"printError",{enumerable:!0,get:function(){return a8.printError}});Object.defineProperty(A,"printIntrospectionSchema",{enumerable:!0,get:function(){return s.printIntrospectionSchema}});Object.defineProperty(A,"printLocation",{enumerable:!0,get:function(){return t.printLocation}});Object.defineProperty(A,"printSchema",{enumerable:!0,get:function(){return s.printSchema}});Object.defineProperty(A,"printSourceLocation",{enumerable:!0,get:function(){return t.printSourceLocation}});Object.defineProperty(A,"printType",{enumerable:!0,get:function(){return s.printType}});Object.defineProperty(A,"recommendedRules",{enumerable:!0,get:function(){return h.recommendedRules}});Object.defineProperty(A,"resolveObjMapThunk",{enumerable:!0,get:function(){return G.resolveObjMapThunk}});Object.defineProperty(A,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return G.resolveReadonlyArrayThunk}});Object.defineProperty(A,"responsePathAsArray",{enumerable:!0,get:function(){return Q0.responsePathAsArray}});Object.defineProperty(A,"separateOperations",{enumerable:!0,get:function(){return s.separateOperations}});Object.defineProperty(A,"specifiedDirectives",{enumerable:!0,get:function(){return G.specifiedDirectives}});Object.defineProperty(A,"specifiedRules",{enumerable:!0,get:function(){return h.specifiedRules}});Object.defineProperty(A,"specifiedScalarTypes",{enumerable:!0,get:function(){return G.specifiedScalarTypes}});Object.defineProperty(A,"stripIgnoredCharacters",{enumerable:!0,get:function(){return s.stripIgnoredCharacters}});Object.defineProperty(A,"subscribe",{enumerable:!0,get:function(){return Q0.subscribe}});Object.defineProperty(A,"syntaxError",{enumerable:!0,get:function(){return a8.syntaxError}});Object.defineProperty(A,"typeFromAST",{enumerable:!0,get:function(){return s.typeFromAST}});Object.defineProperty(A,"validate",{enumerable:!0,get:function(){return h.validate}});Object.defineProperty(A,"validateSchema",{enumerable:!0,get:function(){return G.validateSchema}});Object.defineProperty(A,"valueFromAST",{enumerable:!0,get:function(){return s.valueFromAST}});Object.defineProperty(A,"valueFromASTUntyped",{enumerable:!0,get:function(){return s.valueFromASTUntyped}});Object.defineProperty(A,"version",{enumerable:!0,get:function(){return o7.version}});Object.defineProperty(A,"versionInfo",{enumerable:!0,get:function(){return o7.versionInfo}});Object.defineProperty(A,"visit",{enumerable:!0,get:function(){return t.visit}});Object.defineProperty(A,"visitInParallel",{enumerable:!0,get:function(){return t.visitInParallel}});Object.defineProperty(A,"visitWithTypeInfo",{enumerable:!0,get:function(){return s.visitWithTypeInfo}});var o7=LE(),e7=u9(),G=M9(),t=w9(),Q0=v9(),h=l9(),a8=r9(),s=i7()});var KS=J((tV,wS)=>{wS.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 t3=J((sV,$S)=>{var DP=KS(),jS={};for(let D of Object.keys(DP))jS[DP[D]]=D;var K={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"]}};$S.exports=K;for(let D of Object.keys(K)){if(!("channels"in K[D]))throw new Error("missing channels property: "+D);if(!("labels"in K[D]))throw new Error("missing channel labels property: "+D);if(K[D].labels.length!==K[D].channels)throw new Error("channel and label counts mismatch: "+D);let{channels:P,labels:O}=K[D];delete K[D].channels,delete K[D].labels,Object.defineProperty(K[D],"channels",{value:P}),Object.defineProperty(K[D],"labels",{value:O})}K.rgb.hsl=function(D){let P=D[0]/255,O=D[1]/255,W=D[2]/255,E=Math.min(P,O,W),F=Math.max(P,O,W),R=F-E,S,L;if(F===E)S=0;else if(P===F)S=(O-W)/R;else if(O===F)S=2+(W-P)/R;else if(W===F)S=4+(P-O)/R;if(S=Math.min(S*60,360),S<0)S+=360;let B=(E+F)/2;if(F===E)L=0;else if(B<=0.5)L=R/(F+E);else L=R/(2-F-E);return[S,L*100,B*100]};K.rgb.hsv=function(D){let P,O,W,E,F,R=D[0]/255,S=D[1]/255,L=D[2]/255,B=Math.max(R,S,L),Y=B-Math.min(R,S,L),Z=function(H){return(B-H)/6/Y+0.5};if(Y===0)E=0,F=0;else{if(F=Y/B,P=Z(R),O=Z(S),W=Z(L),R===B)E=W-O;else if(S===B)E=0.3333333333333333+P-W;else if(L===B)E=0.6666666666666666+O-P;if(E<0)E+=1;else if(E>1)E-=1}return[E*360,F*100,B*100]};K.rgb.hwb=function(D){let P=D[0],O=D[1],W=D[2],E=K.rgb.hsl(D)[0],F=0.00392156862745098*Math.min(P,Math.min(O,W));return W=1-0.00392156862745098*Math.max(P,Math.max(O,W)),[E,F*100,W*100]};K.rgb.cmyk=function(D){let P=D[0]/255,O=D[1]/255,W=D[2]/255,E=Math.min(1-P,1-O,1-W),F=(1-P-E)/(1-E)||0,R=(1-O-E)/(1-E)||0,S=(1-W-E)/(1-E)||0;return[F*100,R*100,S*100,E*100]};function Fb(D,P){return(D[0]-P[0])**2+(D[1]-P[1])**2+(D[2]-P[2])**2}K.rgb.keyword=function(D){let P=jS[D];if(P)return P;let O=1/0,W;for(let E of Object.keys(DP)){let F=DP[E],R=Fb(D,F);if(R<O)O=R,W=E}return W};K.keyword.rgb=function(D){return DP[D]};K.rgb.xyz=function(D){let P=D[0]/255,O=D[1]/255,W=D[2]/255;P=P>0.04045?((P+0.055)/1.055)**2.4:P/12.92,O=O>0.04045?((O+0.055)/1.055)**2.4:O/12.92,W=W>0.04045?((W+0.055)/1.055)**2.4:W/12.92;let E=P*0.4124+O*0.3576+W*0.1805,F=P*0.2126+O*0.7152+W*0.0722,R=P*0.0193+O*0.1192+W*0.9505;return[E*100,F*100,R*100]};K.rgb.lab=function(D){let P=K.rgb.xyz(D),O=P[0],W=P[1],E=P[2];O/=95.047,W/=100,E/=108.883,O=O>0.008856?O**0.3333333333333333:7.787*O+0.13793103448275862,W=W>0.008856?W**0.3333333333333333:7.787*W+0.13793103448275862,E=E>0.008856?E**0.3333333333333333:7.787*E+0.13793103448275862;let F=116*W-16,R=500*(O-W),S=200*(W-E);return[F,R,S]};K.hsl.rgb=function(D){let P=D[0]/360,O=D[1]/100,W=D[2]/100,E,F,R;if(O===0)return R=W*255,[R,R,R];if(W<0.5)E=W*(1+O);else E=W+O-W*O;let S=2*W-E,L=[0,0,0];for(let B=0;B<3;B++){if(F=P+0.3333333333333333*-(B-1),F<0)F++;if(F>1)F--;if(6*F<1)R=S+(E-S)*6*F;else if(2*F<1)R=E;else if(3*F<2)R=S+(E-S)*(0.6666666666666666-F)*6;else R=S;L[B]=R*255}return L};K.hsl.hsv=function(D){let P=D[0],O=D[1]/100,W=D[2]/100,E=O,F=Math.max(W,0.01);W*=2,O*=W<=1?W:2-W,E*=F<=1?F:2-F;let R=(W+O)/2,S=W===0?2*E/(F+E):2*O/(W+O);return[P,S*100,R*100]};K.hsv.rgb=function(D){let P=D[0]/60,O=D[1]/100,W=D[2]/100,E=Math.floor(P)%6,F=P-Math.floor(P),R=255*W*(1-O),S=255*W*(1-O*F),L=255*W*(1-O*(1-F));switch(W*=255,E){case 0:return[W,L,R];case 1:return[S,W,R];case 2:return[R,W,L];case 3:return[R,S,W];case 4:return[L,R,W];case 5:return[W,R,S]}};K.hsv.hsl=function(D){let P=D[0],O=D[1]/100,W=D[2]/100,E=Math.max(W,0.01),F,R;R=(2-O)*W;let S=(2-O)*E;return F=O*E,F/=S<=1?S:2-S,F=F||0,R/=2,[P,F*100,R*100]};K.hwb.rgb=function(D){let P=D[0]/360,O=D[1]/100,W=D[2]/100,E=O+W,F;if(E>1)O/=E,W/=E;let R=Math.floor(6*P),S=1-W;if(F=6*P-R,(R&1)!==0)F=1-F;let L=O+F*(S-O),B,Y,Z;switch(R){default:case 6:case 0:B=S,Y=L,Z=O;break;case 1:B=L,Y=S,Z=O;break;case 2:B=O,Y=S,Z=L;break;case 3:B=O,Y=L,Z=S;break;case 4:B=L,Y=O,Z=S;break;case 5:B=S,Y=O,Z=L;break}return[B*255,Y*255,Z*255]};K.cmyk.rgb=function(D){let P=D[0]/100,O=D[1]/100,W=D[2]/100,E=D[3]/100,F=1-Math.min(1,P*(1-E)+E),R=1-Math.min(1,O*(1-E)+E),S=1-Math.min(1,W*(1-E)+E);return[F*255,R*255,S*255]};K.xyz.rgb=function(D){let P=D[0]/100,O=D[1]/100,W=D[2]/100,E,F,R;return E=P*3.2406+O*-1.5372+W*-0.4986,F=P*-0.9689+O*1.8758+W*0.0415,R=P*0.0557+O*-0.204+W*1.057,E=E>0.0031308?1.055*E**0.4166666666666667-0.055:E*12.92,F=F>0.0031308?1.055*F**0.4166666666666667-0.055:F*12.92,R=R>0.0031308?1.055*R**0.4166666666666667-0.055:R*12.92,E=Math.min(Math.max(0,E),1),F=Math.min(Math.max(0,F),1),R=Math.min(Math.max(0,R),1),[E*255,F*255,R*255]};K.xyz.lab=function(D){let P=D[0],O=D[1],W=D[2];P/=95.047,O/=100,W/=108.883,P=P>0.008856?P**0.3333333333333333:7.787*P+0.13793103448275862,O=O>0.008856?O**0.3333333333333333:7.787*O+0.13793103448275862,W=W>0.008856?W**0.3333333333333333:7.787*W+0.13793103448275862;let E=116*O-16,F=500*(P-O),R=200*(O-W);return[E,F,R]};K.lab.xyz=function(D){let P=D[0],O=D[1],W=D[2],E,F,R;F=(P+16)/116,E=O/500+F,R=F-W/200;let S=F**3,L=E**3,B=R**3;return F=S>0.008856?S:(F-0.13793103448275862)/7.787,E=L>0.008856?L:(E-0.13793103448275862)/7.787,R=B>0.008856?B:(R-0.13793103448275862)/7.787,E*=95.047,F*=100,R*=108.883,[E,F,R]};K.lab.lch=function(D){let P=D[0],O=D[1],W=D[2],E;if(E=Math.atan2(W,O)*360/2/Math.PI,E<0)E+=360;let R=Math.sqrt(O*O+W*W);return[P,R,E]};K.lch.lab=function(D){let P=D[0],O=D[1],E=D[2]/360*2*Math.PI,F=O*Math.cos(E),R=O*Math.sin(E);return[P,F,R]};K.rgb.ansi16=function(D,P=null){let[O,W,E]=D,F=P===null?K.rgb.hsv(D)[2]:P;if(F=Math.round(F/50),F===0)return 30;let R=30+(Math.round(E/255)<<2|Math.round(W/255)<<1|Math.round(O/255));if(F===2)R+=60;return R};K.hsv.ansi16=function(D){return K.rgb.ansi16(K.hsv.rgb(D),D[2])};K.rgb.ansi256=function(D){let P=D[0],O=D[1],W=D[2];if(P===O&&O===W){if(P<8)return 16;if(P>248)return 231;return Math.round((P-8)/247*24)+232}return 16+36*Math.round(P/255*5)+6*Math.round(O/255*5)+Math.round(W/255*5)};K.ansi16.rgb=function(D){let P=D%10;if(P===0||P===7){if(D>50)P+=3.5;return P=P/10.5*255,[P,P,P]}let O=(~~(D>50)+1)*0.5,W=(P&1)*O*255,E=(P>>1&1)*O*255,F=(P>>2&1)*O*255;return[W,E,F]};K.ansi256.rgb=function(D){if(D>=232){let F=(D-232)*10+8;return[F,F,F]}D-=16;let P,O=Math.floor(D/36)/5*255,W=Math.floor((P=D%36)/6)/5*255,E=P%6/5*255;return[O,W,E]};K.rgb.hex=function(D){let O=(((Math.round(D[0])&255)<<16)+((Math.round(D[1])&255)<<8)+(Math.round(D[2])&255)).toString(16).toUpperCase();return"000000".substring(O.length)+O};K.hex.rgb=function(D){let P=D.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!P)return[0,0,0];let O=P[0];if(P[0].length===3)O=O.split("").map((S)=>{return S+S}).join("");let W=parseInt(O,16),E=W>>16&255,F=W>>8&255,R=W&255;return[E,F,R]};K.rgb.hcg=function(D){let P=D[0]/255,O=D[1]/255,W=D[2]/255,E=Math.max(Math.max(P,O),W),F=Math.min(Math.min(P,O),W),R=E-F,S,L;if(R<1)S=F/(1-R);else S=0;if(R<=0)L=0;else if(E===P)L=(O-W)/R%6;else if(E===O)L=2+(W-P)/R;else L=4+(P-O)/R;return L/=6,L%=1,[L*360,R*100,S*100]};K.hsl.hcg=function(D){let P=D[1]/100,O=D[2]/100,W=O<0.5?2*P*O:2*P*(1-O),E=0;if(W<1)E=(O-0.5*W)/(1-W);return[D[0],W*100,E*100]};K.hsv.hcg=function(D){let P=D[1]/100,O=D[2]/100,W=P*O,E=0;if(W<1)E=(O-W)/(1-W);return[D[0],W*100,E*100]};K.hcg.rgb=function(D){let P=D[0]/360,O=D[1]/100,W=D[2]/100;if(O===0)return[W*255,W*255,W*255];let E=[0,0,0],F=P%1*6,R=F%1,S=1-R,L=0;switch(Math.floor(F)){case 0:E[0]=1,E[1]=R,E[2]=0;break;case 1:E[0]=S,E[1]=1,E[2]=0;break;case 2:E[0]=0,E[1]=1,E[2]=R;break;case 3:E[0]=0,E[1]=S,E[2]=1;break;case 4:E[0]=R,E[1]=0,E[2]=1;break;default:E[0]=1,E[1]=0,E[2]=S}return L=(1-O)*W,[(O*E[0]+L)*255,(O*E[1]+L)*255,(O*E[2]+L)*255]};K.hcg.hsv=function(D){let P=D[1]/100,O=D[2]/100,W=P+O*(1-P),E=0;if(W>0)E=P/W;return[D[0],E*100,W*100]};K.hcg.hsl=function(D){let P=D[1]/100,W=D[2]/100*(1-P)+0.5*P,E=0;if(W>0&&W<0.5)E=P/(2*W);else if(W>=0.5&&W<1)E=P/(2*(1-W));return[D[0],E*100,W*100]};K.hcg.hwb=function(D){let P=D[1]/100,O=D[2]/100,W=P+O*(1-P);return[D[0],(W-P)*100,(1-W)*100]};K.hwb.hcg=function(D){let P=D[1]/100,W=1-D[2]/100,E=W-P,F=0;if(E<1)F=(W-E)/(1-E);return[D[0],E*100,F*100]};K.apple.rgb=function(D){return[D[0]/65535*255,D[1]/65535*255,D[2]/65535*255]};K.rgb.apple=function(D){return[D[0]/255*65535,D[1]/255*65535,D[2]/255*65535]};K.gray.rgb=function(D){return[D[0]/100*255,D[0]/100*255,D[0]/100*255]};K.gray.hsl=function(D){return[0,0,D[0]]};K.gray.hsv=K.gray.hsl;K.gray.hwb=function(D){return[0,100,D[0]]};K.gray.cmyk=function(D){return[0,0,0,D[0]]};K.gray.lab=function(D){return[D[0],0,0]};K.gray.hex=function(D){let P=Math.round(D[0]/100*255)&255,W=((P<<16)+(P<<8)+P).toString(16).toUpperCase();return"000000".substring(W.length)+W};K.rgb.gray=function(D){return[(D[0]+D[1]+D[2])/3/255*100]}});var _S=J((iV,VS)=>{var QO=t3();function Rb(){let D={},P=Object.keys(QO);for(let O=P.length,W=0;W<O;W++)D[P[W]]={distance:-1,parent:null};return D}function Sb(D){let P=Rb(),O=[D];P[D].distance=0;while(O.length){let W=O.pop(),E=Object.keys(QO[W]);for(let F=E.length,R=0;R<F;R++){let S=E[R],L=P[S];if(L.distance===-1)L.distance=P[W].distance+1,L.parent=W,O.unshift(S)}}return P}function Lb(D,P){return function(O){return P(D(O))}}function Bb(D,P){let O=[P[D].parent,D],W=QO[P[D].parent][D],E=P[D].parent;while(P[E].parent)O.unshift(P[E].parent),W=Lb(QO[P[E].parent][E],W),E=P[E].parent;return W.conversion=O,W}VS.exports=function(D){let P=Sb(D),O={},W=Object.keys(P);for(let E=W.length,F=0;F<E;F++){let R=W[F];if(P[R].parent===null)continue;O[R]=Bb(R,P)}return O}});var NS=J((oV,TS)=>{var s3=t3(),Yb=_S(),i2={},Zb=Object.keys(s3);function Hb(D){let P=function(...O){let W=O[0];if(W===void 0||W===null)return W;if(W.length>1)O=W;return D(O)};if("conversion"in D)P.conversion=D.conversion;return P}function Ab(D){let P=function(...O){let W=O[0];if(W===void 0||W===null)return W;if(W.length>1)O=W;let E=D(O);if(typeof E==="object")for(let F=E.length,R=0;R<F;R++)E[R]=Math.round(E[R]);return E};if("conversion"in D)P.conversion=D.conversion;return P}Zb.forEach((D)=>{i2[D]={},Object.defineProperty(i2[D],"channels",{value:s3[D].channels}),Object.defineProperty(i2[D],"labels",{value:s3[D].labels});let P=Yb(D);Object.keys(P).forEach((W)=>{let E=P[W];i2[D][W]=Ab(E),i2[D][W].raw=Hb(E)})});TS.exports=i2});var PP=J((eV,hS)=>{var kS=(D,P)=>(...O)=>{return`\x1B[${D(...O)+P}m`},xS=(D,P)=>(...O)=>{let W=D(...O);return`\x1B[${38+P};5;${W}m`},fS=(D,P)=>(...O)=>{let W=D(...O);return`\x1B[${38+P};2;${W[0]};${W[1]};${W[2]}m`},MO=(D)=>D,vS=(D,P,O)=>[D,P,O],o2=(D,P,O)=>{Object.defineProperty(D,P,{get:()=>{let W=O();return Object.defineProperty(D,P,{value:W,enumerable:!0,configurable:!0}),W},enumerable:!0,configurable:!0})},i3,e2=(D,P,O,W)=>{if(i3===void 0)i3=NS();let E=W?10:0,F={};for(let[R,S]of Object.entries(i3)){let L=R==="ansi16"?"ansi":R;if(R===P)F[L]=D(O,E);else if(typeof S==="object")F[L]=D(S[P],E)}return F};function Cb(){let D=new Map,P={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]}};P.color.gray=P.color.blackBright,P.bgColor.bgGray=P.bgColor.bgBlackBright,P.color.grey=P.color.blackBright,P.bgColor.bgGrey=P.bgColor.bgBlackBright;for(let[O,W]of Object.entries(P)){for(let[E,F]of Object.entries(W))P[E]={open:`\x1B[${F[0]}m`,close:`\x1B[${F[1]}m`},W[E]=P[E],D.set(F[0],F[1]);Object.defineProperty(P,O,{value:W,enumerable:!1})}return Object.defineProperty(P,"codes",{value:D,enumerable:!1}),P.color.close="\x1B[39m",P.bgColor.close="\x1B[49m",o2(P.color,"ansi",()=>e2(kS,"ansi16",MO,!1)),o2(P.color,"ansi256",()=>e2(xS,"ansi256",MO,!1)),o2(P.color,"ansi16m",()=>e2(fS,"rgb",vS,!1)),o2(P.bgColor,"ansi",()=>e2(kS,"ansi16",MO,!0)),o2(P.bgColor,"ansi256",()=>e2(xS,"ansi256",MO,!0)),o2(P.bgColor,"ansi16m",()=>e2(fS,"rgb",vS,!0)),P}Object.defineProperty(hS,"exports",{enumerable:!0,get:Cb})});var bO=J((D_,gS)=>{gS.exports=(D,P=process.argv)=>{let O=D.startsWith("-")?"":D.length===1?"-":"--",W=P.indexOf(O+D),E=P.indexOf("--");return W!==-1&&(E===-1||W<E)}});var cS=J((P_,mS)=>{var Jb=yD("os"),yS=yD("tty"),oD=bO(),{env:bD}=process,t0;if(oD("no-color")||oD("no-colors")||oD("color=false")||oD("color=never"))t0=0;else if(oD("color")||oD("colors")||oD("color=true")||oD("color=always"))t0=1;if("FORCE_COLOR"in bD)if(bD.FORCE_COLOR==="true")t0=1;else if(bD.FORCE_COLOR==="false")t0=0;else t0=bD.FORCE_COLOR.length===0?1:Math.min(parseInt(bD.FORCE_COLOR,10),3);function o3(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function e3(D,P){if(t0===0)return 0;if(oD("color=16m")||oD("color=full")||oD("color=truecolor"))return 3;if(oD("color=256"))return 2;if(D&&!P&&t0===void 0)return 0;let O=t0||0;if(bD.TERM==="dumb")return O;if(process.platform==="win32"){let W=Jb.release().split(".");if(Number(W[0])>=10&&Number(W[2])>=10586)return Number(W[2])>=14931?3:2;return 1}if("CI"in bD){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((W)=>(W in bD))||bD.CI_NAME==="codeship")return 1;return O}if("TEAMCITY_VERSION"in bD)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(bD.TEAMCITY_VERSION)?1:0;if(bD.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in bD){let W=parseInt((bD.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(bD.TERM_PROGRAM){case"iTerm.app":return W>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(bD.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(bD.TERM))return 1;if("COLORTERM"in bD)return 1;return O}function Ub(D){let P=e3(D,D&&D.isTTY);return o3(P)}mS.exports={supportsColor:Ub,stdout:o3(e3(!0,yS.isatty(1))),stderr:o3(e3(!0,yS.isatty(2)))}});var rS=J((O_,lS)=>{var Xb=(D,P,O)=>{let W=D.indexOf(P);if(W===-1)return D;let E=P.length,F=0,R="";do R+=D.substr(F,W-F)+P+O,F=W+E,W=D.indexOf(P,F);while(W!==-1);return R+=D.substr(F),R},qb=(D,P,O,W)=>{let E=0,F="";do{let R=D[W-1]==="\r";F+=D.substr(E,(R?W-1:W)-E)+P+(R?"\r\n":"\n")+O,E=W+1,W=D.indexOf("\n",E)}while(W!==-1);return F+=D.substr(E),F};lS.exports={stringReplaceAll:Xb,stringEncaseCRLFWithFirstIndex:qb}});var tS=J((W_,aS)=>{var zb=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,dS=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Gb=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ub=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Ib=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function nS(D){let P=D[0]==="u",O=D[1]==="{";if(P&&!O&&D.length===5||D[0]==="x"&&D.length===3)return String.fromCharCode(parseInt(D.slice(1),16));if(P&&O)return String.fromCodePoint(parseInt(D.slice(2,-1),16));return Ib.get(D)||D}function Qb(D,P){let O=[],W=P.trim().split(/\s*,\s*/g),E;for(let F of W){let R=Number(F);if(!Number.isNaN(R))O.push(R);else if(E=F.match(Gb))O.push(E[2].replace(ub,(S,L,B)=>L?nS(L):B));else throw new Error(`Invalid Chalk template style argument: ${F} (in style '${D}')`)}return O}function Mb(D){dS.lastIndex=0;let P=[],O;while((O=dS.exec(D))!==null){let W=O[1];if(O[2]){let E=Qb(W,O[2]);P.push([W].concat(E))}else P.push([W])}return P}function pS(D,P){let O={};for(let E of P)for(let F of E.styles)O[F[0]]=E.inverse?null:F.slice(1);let W=D;for(let[E,F]of Object.entries(O)){if(!Array.isArray(F))continue;if(!(E in W))throw new Error(`Unknown Chalk style: ${E}`);W=F.length>0?W[E](...F):W[E]}return W}aS.exports=(D,P)=>{let O=[],W=[],E=[];if(P.replace(zb,(F,R,S,L,B,Y)=>{if(R)E.push(nS(R));else if(L){let Z=E.join("");E=[],W.push(O.length===0?Z:pS(D,O)(Z)),O.push({inverse:S,styles:Mb(L)})}else if(B){if(O.length===0)throw new Error("Found extraneous } in Chalk template literal");W.push(pS(D,O)(E.join(""))),E=[],O.pop()}else E.push(Y)}),W.push(E.join("")),O.length>0){let F=`Chalk template literal is missing ${O.length} closing bracket${O.length===1?"":"s"} (\`}\`)`;throw new Error(F)}return W.join("")}});var E6=J((E_,OL)=>{var OP=PP(),{stdout:P6,stderr:O6}=cS(),{stringReplaceAll:bb,stringEncaseCRLFWithFirstIndex:wb}=rS(),{isArray:wO}=Array,iS=["ansi","ansi","ansi256","ansi16m"],D8=Object.create(null),Kb=(D,P={})=>{if(P.level&&!(Number.isInteger(P.level)&&P.level>=0&&P.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let O=P6?P6.level:0;D.level=P.level===void 0?O:P.level};class oS{constructor(D){return eS(D)}}var eS=(D)=>{let P={};return Kb(P,D),P.template=(...O)=>PL(P.template,...O),Object.setPrototypeOf(P,KO.prototype),Object.setPrototypeOf(P.template,P),P.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},P.template.Instance=oS,P.template};function KO(D){return eS(D)}for(let[D,P]of Object.entries(OP))D8[D]={get(){let O=jO(this,W6(P.open,P.close,this._styler),this._isEmpty);return Object.defineProperty(this,D,{value:O}),O}};D8.visible={get(){let D=jO(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:D}),D}};var DL=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let D of DL)D8[D]={get(){let{level:P}=this;return function(...O){let W=W6(OP.color[iS[P]][D](...O),OP.color.close,this._styler);return jO(this,W,this._isEmpty)}}};for(let D of DL){let P="bg"+D[0].toUpperCase()+D.slice(1);D8[P]={get(){let{level:O}=this;return function(...W){let E=W6(OP.bgColor[iS[O]][D](...W),OP.bgColor.close,this._styler);return jO(this,E,this._isEmpty)}}}}var jb=Object.defineProperties(()=>{},{...D8,level:{enumerable:!0,get(){return this._generator.level},set(D){this._generator.level=D}}}),W6=(D,P,O)=>{let W,E;if(O===void 0)W=D,E=P;else W=O.openAll+D,E=P+O.closeAll;return{open:D,close:P,openAll:W,closeAll:E,parent:O}},jO=(D,P,O)=>{let W=(...E)=>{if(wO(E[0])&&wO(E[0].raw))return sS(W,PL(W,...E));return sS(W,E.length===1?""+E[0]:E.join(" "))};return Object.setPrototypeOf(W,jb),W._generator=D,W._styler=P,W._isEmpty=O,W},sS=(D,P)=>{if(D.level<=0||!P)return D._isEmpty?"":P;let O=D._styler;if(O===void 0)return P;let{openAll:W,closeAll:E}=O;if(P.indexOf("\x1B")!==-1)while(O!==void 0)P=bb(P,O.close,O.open),O=O.parent;let F=P.indexOf("\n");if(F!==-1)P=wb(P,E,W,F);return W+P+E},D6,PL=(D,...P)=>{let[O]=P;if(!wO(O)||!wO(O.raw))return P.join(" ");let W=P.slice(1),E=[O.raw[0]];for(let F=1;F<O.length;F++)E.push(String(W[F-1]).replace(/[{}\\]/g,"\\$&"),String(O.raw[F]));if(D6===void 0)D6=tS();return D6(D,E.join(""))};Object.defineProperties(KO.prototype,D8);var $O=KO();$O.supportsColor=P6;$O.stderr=KO({level:O6?O6.level:0});$O.stderr.supportsColor=O6;OL.exports=$O});var WL=J((F_,$b)=>{$b.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\uD83D\uDE04 ","\uD83D\uDE1D "]},monkey:{interval:300,frames:["\uD83D\uDE48 ","\uD83D\uDE48 ","\uD83D\uDE49 ","\uD83D\uDE4A "]},hearts:{interval:100,frames:["\uD83D\uDC9B ","\uD83D\uDC99 ","\uD83D\uDC9C ","\uD83D\uDC9A ","\u2764\uFE0F "]},clock:{interval:100,frames:["\uD83D\uDD5B ","\uD83D\uDD50 ","\uD83D\uDD51 ","\uD83D\uDD52 ","\uD83D\uDD53 ","\uD83D\uDD54 ","\uD83D\uDD55 ","\uD83D\uDD56 ","\uD83D\uDD57 ","\uD83D\uDD58 ","\uD83D\uDD59 ","\uD83D\uDD5A "]},earth:{interval:180,frames:["\uD83C\uDF0D ","\uD83C\uDF0E ","\uD83C\uDF0F "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\uD83C\uDF11 ","\uD83C\uDF12 ","\uD83C\uDF13 ","\uD83C\uDF14 ","\uD83C\uDF15 ","\uD83C\uDF16 ","\uD83C\uDF17 ","\uD83C\uDF18 "]},runner:{interval:140,frames:["\uD83D\uDEB6 ","\uD83C\uDFC3 "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\uD83C\uDF24 ","\u26C5\uFE0F ","\uD83C\uDF25 ","\u2601\uFE0F ","\uD83C\uDF27 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","\u26C8 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","\u2601\uFE0F ","\uD83C\uDF25 ","\u26C5\uFE0F ","\uD83C\uDF24 ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\uD83C\uDF32","\uD83C\uDF84"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\uD83E\uDD18 ","\uD83E\uDD1F ","\uD83D\uDD96 ","\u270B ","\uD83E\uDD1A ","\uD83D\uDC46 "]},fistBump:{interval:80,frames:["\uD83E\uDD1C\u3000\u3000\u3000\u3000\uD83E\uDD1B ","\uD83E\uDD1C\u3000\u3000\u3000\u3000\uD83E\uDD1B ","\uD83E\uDD1C\u3000\u3000\u3000\u3000\uD83E\uDD1B ","\u3000\uD83E\uDD1C\u3000\u3000\uD83E\uDD1B\u3000 ","\u3000\u3000\uD83E\uDD1C\uD83E\uDD1B\u3000\u3000 ","\u3000\uD83E\uDD1C\u2728\uD83E\uDD1B\u3000\u3000 ","\uD83E\uDD1C\u3000\u2728\u3000\uD83E\uDD1B\u3000 "]},soccerHeader:{interval:80,frames:[" \uD83E\uDDD1\u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F\uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 "]},mindblown:{interval:160,frames:["\uD83D\uDE10 ","\uD83D\uDE10 ","\uD83D\uDE2E ","\uD83D\uDE2E ","\uD83D\uDE26 ","\uD83D\uDE26 ","\uD83D\uDE27 ","\uD83D\uDE27 ","\uD83E\uDD2F ","\uD83D\uDCA5 ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\uD83D\uDD08 ","\uD83D\uDD09 ","\uD83D\uDD0A ","\uD83D\uDD09 "]},orangePulse:{interval:100,frames:["\uD83D\uDD38 ","\uD83D\uDD36 ","\uD83D\uDFE0 ","\uD83D\uDFE0 ","\uD83D\uDD36 "]},bluePulse:{interval:100,frames:["\uD83D\uDD39 ","\uD83D\uDD37 ","\uD83D\uDD35 ","\uD83D\uDD35 ","\uD83D\uDD37 "]},orangeBluePulse:{interval:100,frames:["\uD83D\uDD38 ","\uD83D\uDD36 ","\uD83D\uDFE0 ","\uD83D\uDFE0 ","\uD83D\uDD36 ","\uD83D\uDD39 ","\uD83D\uDD37 ","\uD83D\uDD35 ","\uD83D\uDD35 ","\uD83D\uDD37 "]},timeTravel:{interval:100,frames:["\uD83D\uDD5B ","\uD83D\uDD5A ","\uD83D\uDD59 ","\uD83D\uDD58 ","\uD83D\uDD57 ","\uD83D\uDD56 ","\uD83D\uDD55 ","\uD83D\uDD54 ","\uD83D\uDD53 ","\uD83D\uDD52 ","\uD83D\uDD51 ","\uD83D\uDD50 "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var RL=J((R_,FL)=>{var VO=Object.assign({},WL()),EL=Object.keys(VO);Object.defineProperty(VO,"random",{get(){let D=Math.floor(Math.random()*EL.length),P=EL[D];return VO[P]}});FL.exports=VO});var ZL=J((Q_,YL)=>{YL.exports=Tb;function _b(D){let P={defaultWidth:0,output:process.stdout,tty:yD("tty")};if(!D)return P;return Object.keys(P).forEach(function(O){if(!D[O])D[O]=P[O]}),D}function Tb(D){let P=_b(D);if(P.output.getWindowSize)return P.output.getWindowSize()[0]||P.defaultWidth;if(P.tty.getWindowSize)return P.tty.getWindowSize()[1]||P.defaultWidth;if(P.output.columns)return P.output.columns;if(process.env.CLI_WIDTH){let O=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(O)&&O!==0)return O}return P.defaultWidth}});var AL=J((M_,HL)=>{HL.exports=({onlyFirst:D=!1}={})=>{let P=["[\\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(P,D?void 0:"g")}});var JL=J((b_,CL)=>{var Nb=AL();CL.exports=(D)=>typeof D==="string"?D.replace(Nb(),""):D});var XL=J((w_,R6)=>{var UL=(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};R6.exports=UL;R6.exports.default=UL});var zL=J((K_,qL)=>{qL.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 uL=J((j_,S6)=>{var kb=JL(),xb=XL(),fb=zL(),GL=(D)=>{if(typeof D!=="string"||D.length===0)return 0;if(D=kb(D),D.length===0)return 0;D=D.replace(fb()," ");let P=0;for(let O=0;O<D.length;O++){let W=D.codePointAt(O);if(W<=31||W>=127&&W<=159)continue;if(W>=768&&W<=879)continue;if(W>65535)O++;P+=xb(W)?2:1}return P};S6.exports=GL;S6.exports.default=GL});var QL=J(($_,IL)=>{IL.exports=({onlyFirst:D=!1}={})=>{let P=["[\\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(P,D?void 0:"g")}});var bL=J((V_,ML)=>{var vb=QL();ML.exports=(D)=>typeof D==="string"?D.replace(vb(),""):D});var jL=J((__,KL)=>{var WP=uL(),hb=bL(),gb=PP(),B6=new Set(["\x1B","\x9B"]),wL=(D)=>`${B6.values().next().value}[${D}m`,yb=(D)=>D.split(" ").map((P)=>WP(P)),L6=(D,P,O)=>{let W=[...P],E=!1,F=WP(hb(D[D.length-1]));for(let[R,S]of W.entries()){let L=WP(S);if(F+L<=O)D[D.length-1]+=S;else D.push(S),F=0;if(B6.has(S))E=!0;else if(E&&S==="m"){E=!1;continue}if(E)continue;if(F+=L,F===O&&R<W.length-1)D.push(""),F=0}if(!F&&D[D.length-1].length>0&&D.length>1)D[D.length-2]+=D.pop()},mb=(D)=>{let P=D.split(" "),O=P.length;while(O>0){if(WP(P[O-1])>0)break;O--}if(O===P.length)return D;return P.slice(0,O).join(" ")+P.slice(O).join("")},cb=(D,P,O={})=>{if(O.trim!==!1&&D.trim()==="")return"";let W="",E="",F,R=yb(D),S=[""];for(let[L,B]of D.split(" ").entries()){if(O.trim!==!1)S[S.length-1]=S[S.length-1].trimLeft();let Y=WP(S[S.length-1]);if(L!==0){if(Y>=P&&(O.wordWrap===!1||O.trim===!1))S.push(""),Y=0;if(Y>0||O.trim===!1)S[S.length-1]+=" ",Y++}if(O.hard&&R[L]>P){let Z=P-Y,H=1+Math.floor((R[L]-Z-1)/P);if(Math.floor((R[L]-1)/P)<H)S.push("");L6(S,B,P);continue}if(Y+R[L]>P&&Y>0&&R[L]>0){if(O.wordWrap===!1&&Y<P){L6(S,B,P);continue}S.push("")}if(Y+R[L]>P&&O.wordWrap===!1){L6(S,B,P);continue}S[S.length-1]+=B}if(O.trim!==!1)S=S.map(mb);W=S.join("\n");for(let[L,B]of[...W].entries()){if(E+=B,B6.has(B)){let Z=parseFloat(/\d[^m]*/.exec(W.slice(L,L+4)));F=Z===39?null:Z}let Y=gb.codes.get(Number(F));if(F&&Y){if(W[L+1]==="\n")E+=wL(Y);else if(B==="\n")E+=wL(F)}}return E};KL.exports=(D,P,O)=>{return String(D).normalize().replace(/\r\n/g,"\n").split("\n").map((W)=>cb(W,P,O)).join("\n")}});var fL=J((l_,xL)=>{var db=yD("stream");class kL extends db{#O=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}#P(D,P){if(this._dest)return this._dest[D];if(this._src)return this._src[D];return P}#D(D,...P){if(typeof this._dest?.[D]==="function")this._dest[D](...P);if(typeof this._src?.[D]==="function")this._src[D](...P)}get isTTY(){if(this.#O!==null)return this.#O;return this.#P("isTTY",!1)}set isTTY(D){this.#O=D}get rows(){return this.#P("rows")}get columns(){return this.#P("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(D){this._src=D}pipe(D,P){return this._dest=D,super.pipe(D,P)}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)}}xL.exports=kL});var cL=J((t_,mL)=>{mL.exports=({onlyFirst:D=!1}={})=>{let P=["[\\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(P,D?void 0:"g")}});var rL=J((s_,lL)=>{var ab=cL();lL.exports=(D)=>typeof D==="string"?D.replace(ab(),""):D});var X6=J((tb,U6)=>{var d=tb;tb.default=d;var o="\x1B[",FP="\x1B]",P8="\x07",kO=";",dL=process.env.TERM_PROGRAM==="Apple_Terminal";d.cursorTo=(D,P)=>{if(typeof D!=="number")throw new TypeError("The `x` argument is required");if(typeof P!=="number")return o+(D+1)+"G";return o+(P+1)+";"+(D+1)+"H"};d.cursorMove=(D,P)=>{if(typeof D!=="number")throw new TypeError("The `x` argument is required");let O="";if(D<0)O+=o+-D+"D";else if(D>0)O+=o+D+"C";if(P<0)O+=o+-P+"A";else if(P>0)O+=o+P+"B";return O};d.cursorUp=(D=1)=>o+D+"A";d.cursorDown=(D=1)=>o+D+"B";d.cursorForward=(D=1)=>o+D+"C";d.cursorBackward=(D=1)=>o+D+"D";d.cursorLeft=o+"G";d.cursorSavePosition=dL?"\x1B7":o+"s";d.cursorRestorePosition=dL?"\x1B8":o+"u";d.cursorGetPosition=o+"6n";d.cursorNextLine=o+"E";d.cursorPrevLine=o+"F";d.cursorHide=o+"?25l";d.cursorShow=o+"?25h";d.eraseLines=(D)=>{let P="";for(let O=0;O<D;O++)P+=d.eraseLine+(O<D-1?d.cursorUp():"");if(D)P+=d.cursorLeft;return P};d.eraseEndLine=o+"K";d.eraseStartLine=o+"1K";d.eraseLine=o+"2K";d.eraseDown=o+"J";d.eraseUp=o+"1J";d.eraseScreen=o+"2J";d.scrollUp=o+"S";d.scrollDown=o+"T";d.clearScreen="\x1Bc";d.clearTerminal=process.platform==="win32"?`${d.eraseScreen}${o}0f`:`${d.eraseScreen}${o}3J${o}H`;d.beep=P8;d.link=(D,P)=>{return[FP,"8",kO,kO,P,P8,D,FP,"8",kO,kO,P8].join("")};d.image=(D,P={})=>{let O=`${FP}1337;File=inline=1`;if(P.width)O+=`;width=${P.width}`;if(P.height)O+=`;height=${P.height}`;if(P.preserveAspectRatio===!1)O+=";preserveAspectRatio=0";return O+":"+D.toString("base64")+P8};d.iTerm={setCwd:(D=process.cwd())=>`${FP}50;CurrentDir=${D}${P8}`,annotation:(D,P={})=>{let O=`${FP}1337;`,W=typeof P.x!=="undefined",E=typeof P.y!=="undefined";if((W||E)&&!(W&&E&&typeof P.length!=="undefined"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");if(D=D.replace(/\|/g,""),O+=P.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",P.length>0)O+=(W?[D,P.length,P.x,P.y]:[P.length,D]).join("|");else O+=D;return O+P8}}});var PB=J((wT,DB)=>{var Ew=yD("os"),eL=yD("tty"),eD=bO(),{env:wD}=process,o0;if(eD("no-color")||eD("no-colors")||eD("color=false")||eD("color=never"))o0=0;else if(eD("color")||eD("colors")||eD("color=true")||eD("color=always"))o0=1;if("FORCE_COLOR"in wD)if(wD.FORCE_COLOR==="true")o0=1;else if(wD.FORCE_COLOR==="false")o0=0;else o0=wD.FORCE_COLOR.length===0?1:Math.min(parseInt(wD.FORCE_COLOR,10),3);function q6(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function z6(D,P){if(o0===0)return 0;if(eD("color=16m")||eD("color=full")||eD("color=truecolor"))return 3;if(eD("color=256"))return 2;if(D&&!P&&o0===void 0)return 0;let O=o0||0;if(wD.TERM==="dumb")return O;if(process.platform==="win32"){let W=Ew.release().split(".");if(Number(W[0])>=10&&Number(W[2])>=10586)return Number(W[2])>=14931?3:2;return 1}if("CI"in wD){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((W)=>(W in wD))||wD.CI_NAME==="codeship")return 1;return O}if("TEAMCITY_VERSION"in wD)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(wD.TEAMCITY_VERSION)?1:0;if(wD.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in wD){let W=parseInt((wD.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(wD.TERM_PROGRAM){case"iTerm.app":return W>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(wD.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(wD.TERM))return 1;if("COLORTERM"in wD)return 1;return O}function Fw(D){let P=z6(D,D&&D.isTTY);return q6(P)}DB.exports={supportsColor:Fw,stdout:q6(z6(!0,eL.isatty(1))),stderr:q6(z6(!0,eL.isatty(2)))}});var WB=J((KT,OB)=>{var Rw=(D,P,O)=>{let W=D.indexOf(P);if(W===-1)return D;let E=P.length,F=0,R="";do R+=D.substr(F,W-F)+P+O,F=W+E,W=D.indexOf(P,F);while(W!==-1);return R+=D.substr(F),R},Sw=(D,P,O,W)=>{let E=0,F="";do{let R=D[W-1]==="\r";F+=D.substr(E,(R?W-1:W)-E)+P+(R?"\r\n":"\n")+O,E=W+1,W=D.indexOf("\n",E)}while(W!==-1);return F+=D.substr(E),F};OB.exports={stringReplaceAll:Rw,stringEncaseCRLFWithFirstIndex:Sw}});var LB=J((jT,SB)=>{var Lw=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,EB=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Bw=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Yw=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Zw=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function RB(D){let P=D[0]==="u",O=D[1]==="{";if(P&&!O&&D.length===5||D[0]==="x"&&D.length===3)return String.fromCharCode(parseInt(D.slice(1),16));if(P&&O)return String.fromCodePoint(parseInt(D.slice(2,-1),16));return Zw.get(D)||D}function Hw(D,P){let O=[],W=P.trim().split(/\s*,\s*/g),E;for(let F of W){let R=Number(F);if(!Number.isNaN(R))O.push(R);else if(E=F.match(Bw))O.push(E[2].replace(Yw,(S,L,B)=>L?RB(L):B));else throw new Error(`Invalid Chalk template style argument: ${F} (in style '${D}')`)}return O}function Aw(D){EB.lastIndex=0;let P=[],O;while((O=EB.exec(D))!==null){let W=O[1];if(O[2]){let E=Hw(W,O[2]);P.push([W].concat(E))}else P.push([W])}return P}function FB(D,P){let O={};for(let E of P)for(let F of E.styles)O[F[0]]=E.inverse?null:F.slice(1);let W=D;for(let[E,F]of Object.entries(O)){if(!Array.isArray(F))continue;if(!(E in W))throw new Error(`Unknown Chalk style: ${E}`);W=F.length>0?W[E](...F):W[E]}return W}SB.exports=(D,P)=>{let O=[],W=[],E=[];if(P.replace(Lw,(F,R,S,L,B,Y)=>{if(R)E.push(RB(R));else if(L){let Z=E.join("");E=[],W.push(O.length===0?Z:FB(D,O)(Z)),O.push({inverse:S,styles:Aw(L)})}else if(B){if(O.length===0)throw new Error("Found extraneous } in Chalk template literal");W.push(FB(D,O)(E.join(""))),E=[],O.pop()}else E.push(Y)}),W.push(E.join("")),O.length>0){let F=`Chalk template literal is missing ${O.length} closing bracket${O.length===1?"":"s"} (\`}\`)`;throw new Error(F)}return W.join("")}});var UB=J(($T,JB)=>{var RP=PP(),{stdout:u6,stderr:I6}=PB(),{stringReplaceAll:Cw,stringEncaseCRLFWithFirstIndex:Jw}=WB(),{isArray:hO}=Array,YB=["ansi","ansi","ansi256","ansi16m"],W8=Object.create(null),Uw=(D,P={})=>{if(P.level&&!(Number.isInteger(P.level)&&P.level>=0&&P.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let O=u6?u6.level:0;D.level=P.level===void 0?O:P.level};class ZB{constructor(D){return HB(D)}}var HB=(D)=>{let P={};return Uw(P,D),P.template=(...O)=>CB(P.template,...O),Object.setPrototypeOf(P,gO.prototype),Object.setPrototypeOf(P.template,P),P.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},P.template.Instance=ZB,P.template};function gO(D){return HB(D)}for(let[D,P]of Object.entries(RP))W8[D]={get(){let O=yO(this,Q6(P.open,P.close,this._styler),this._isEmpty);return Object.defineProperty(this,D,{value:O}),O}};W8.visible={get(){let D=yO(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:D}),D}};var AB=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let D of AB)W8[D]={get(){let{level:P}=this;return function(...O){let W=Q6(RP.color[YB[P]][D](...O),RP.color.close,this._styler);return yO(this,W,this._isEmpty)}}};for(let D of AB){let P="bg"+D[0].toUpperCase()+D.slice(1);W8[P]={get(){let{level:O}=this;return function(...W){let E=Q6(RP.bgColor[YB[O]][D](...W),RP.bgColor.close,this._styler);return yO(this,E,this._isEmpty)}}}}var Xw=Object.defineProperties(()=>{},{...W8,level:{enumerable:!0,get(){return this._generator.level},set(D){this._generator.level=D}}}),Q6=(D,P,O)=>{let W,E;if(O===void 0)W=D,E=P;else W=O.openAll+D,E=P+O.closeAll;return{open:D,close:P,openAll:W,closeAll:E,parent:O}},yO=(D,P,O)=>{let W=(...E)=>{if(hO(E[0])&&hO(E[0].raw))return BB(W,CB(W,...E));return BB(W,E.length===1?""+E[0]:E.join(" "))};return Object.setPrototypeOf(W,Xw),W._generator=D,W._styler=P,W._isEmpty=O,W},BB=(D,P)=>{if(D.level<=0||!P)return D._isEmpty?"":P;let O=D._styler;if(O===void 0)return P;let{openAll:W,closeAll:E}=O;if(P.indexOf("\x1B")!==-1)while(O!==void 0)P=Cw(P,O.close,O.open),O=O.parent;let F=P.indexOf("\n");if(F!==-1)P=Jw(P,E,W,F);return W+P+E},G6,CB=(D,...P)=>{let[O]=P;if(!hO(O)||!hO(O.raw))return P.join(" ");let W=P.slice(1),E=[O.raw[0]];for(let F=1;F<O.length;F++)E.push(String(W[F-1]).replace(/[{}\\]/g,"\\$&"),String(O.raw[F]));if(G6===void 0)G6=LB();return G6(D,E.join(""))};Object.defineProperties(gO.prototype,W8);var mO=gO();mO.supportsColor=u6;mO.stderr=gO({level:I6?I6.level:0});mO.stderr.supportsColor=I6;JB.exports=mO});var uB=J((vT,GB)=>{var zw=yD("os"),zB=yD("tty"),D0=bO(),{env:KD}=process,D2;if(D0("no-color")||D0("no-colors")||D0("color=false")||D0("color=never"))D2=0;else if(D0("color")||D0("colors")||D0("color=true")||D0("color=always"))D2=1;if("FORCE_COLOR"in KD)if(KD.FORCE_COLOR==="true")D2=1;else if(KD.FORCE_COLOR==="false")D2=0;else D2=KD.FORCE_COLOR.length===0?1:Math.min(parseInt(KD.FORCE_COLOR,10),3);function M6(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function b6(D,P){if(D2===0)return 0;if(D0("color=16m")||D0("color=full")||D0("color=truecolor"))return 3;if(D0("color=256"))return 2;if(D&&!P&&D2===void 0)return 0;let O=D2||0;if(KD.TERM==="dumb")return O;if(process.platform==="win32"){let W=zw.release().split(".");if(Number(W[0])>=10&&Number(W[2])>=10586)return Number(W[2])>=14931?3:2;return 1}if("CI"in KD){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((W)=>(W in KD))||KD.CI_NAME==="codeship")return 1;return O}if("TEAMCITY_VERSION"in KD)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(KD.TEAMCITY_VERSION)?1:0;if(KD.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in KD){let W=parseInt((KD.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(KD.TERM_PROGRAM){case"iTerm.app":return W>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(KD.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(KD.TERM))return 1;if("COLORTERM"in KD)return 1;return O}function Gw(D){let P=b6(D,D&&D.isTTY);return M6(P)}GB.exports={supportsColor:Gw,stdout:M6(b6(!0,zB.isatty(1))),stderr:M6(b6(!0,zB.isatty(2)))}});var QB=J((hT,IB)=>{var uw=(D,P,O)=>{let W=D.indexOf(P);if(W===-1)return D;let E=P.length,F=0,R="";do R+=D.substr(F,W-F)+P+O,F=W+E,W=D.indexOf(P,F);while(W!==-1);return R+=D.substr(F),R},Iw=(D,P,O,W)=>{let E=0,F="";do{let R=D[W-1]==="\r";F+=D.substr(E,(R?W-1:W)-E)+P+(R?"\r\n":"\n")+O,E=W+1,W=D.indexOf("\n",E)}while(W!==-1);return F+=D.substr(E),F};IB.exports={stringReplaceAll:uw,stringEncaseCRLFWithFirstIndex:Iw}});var jB=J((gT,KB)=>{var Qw=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,MB=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Mw=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,bw=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,ww=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function wB(D){let P=D[0]==="u",O=D[1]==="{";if(P&&!O&&D.length===5||D[0]==="x"&&D.length===3)return String.fromCharCode(parseInt(D.slice(1),16));if(P&&O)return String.fromCodePoint(parseInt(D.slice(2,-1),16));return ww.get(D)||D}function Kw(D,P){let O=[],W=P.trim().split(/\s*,\s*/g),E;for(let F of W){let R=Number(F);if(!Number.isNaN(R))O.push(R);else if(E=F.match(Mw))O.push(E[2].replace(bw,(S,L,B)=>L?wB(L):B));else throw new Error(`Invalid Chalk template style argument: ${F} (in style '${D}')`)}return O}function jw(D){MB.lastIndex=0;let P=[],O;while((O=MB.exec(D))!==null){let W=O[1];if(O[2]){let E=Kw(W,O[2]);P.push([W].concat(E))}else P.push([W])}return P}function bB(D,P){let O={};for(let E of P)for(let F of E.styles)O[F[0]]=E.inverse?null:F.slice(1);let W=D;for(let[E,F]of Object.entries(O)){if(!Array.isArray(F))continue;if(!(E in W))throw new Error(`Unknown Chalk style: ${E}`);W=F.length>0?W[E](...F):W[E]}return W}KB.exports=(D,P)=>{let O=[],W=[],E=[];if(P.replace(Qw,(F,R,S,L,B,Y)=>{if(R)E.push(wB(R));else if(L){let Z=E.join("");E=[],W.push(O.length===0?Z:bB(D,O)(Z)),O.push({inverse:S,styles:jw(L)})}else if(B){if(O.length===0)throw new Error("Found extraneous } in Chalk template literal");W.push(bB(D,O)(E.join(""))),E=[],O.pop()}else E.push(Y)}),W.push(E.join("")),O.length>0){let F=`Chalk template literal is missing ${O.length} closing bracket${O.length===1?"":"s"} (\`}\`)`;throw new Error(F)}return W.join("")}});var pO=J((yT,xB)=>{var SP=PP(),{stdout:K6,stderr:j6}=uB(),{stringReplaceAll:$w,stringEncaseCRLFWithFirstIndex:Vw}=QB(),{isArray:cO}=Array,VB=["ansi","ansi","ansi256","ansi16m"],F8=Object.create(null),_w=(D,P={})=>{if(P.level&&!(Number.isInteger(P.level)&&P.level>=0&&P.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let O=K6?K6.level:0;D.level=P.level===void 0?O:P.level};class _B{constructor(D){return TB(D)}}var TB=(D)=>{let P={};return _w(P,D),P.template=(...O)=>kB(P.template,...O),Object.setPrototypeOf(P,lO.prototype),Object.setPrototypeOf(P.template,P),P.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},P.template.Instance=_B,P.template};function lO(D){return TB(D)}for(let[D,P]of Object.entries(SP))F8[D]={get(){let O=rO(this,$6(P.open,P.close,this._styler),this._isEmpty);return Object.defineProperty(this,D,{value:O}),O}};F8.visible={get(){let D=rO(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:D}),D}};var NB=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let D of NB)F8[D]={get(){let{level:P}=this;return function(...O){let W=$6(SP.color[VB[P]][D](...O),SP.color.close,this._styler);return rO(this,W,this._isEmpty)}}};for(let D of NB){let P="bg"+D[0].toUpperCase()+D.slice(1);F8[P]={get(){let{level:O}=this;return function(...W){let E=$6(SP.bgColor[VB[O]][D](...W),SP.bgColor.close,this._styler);return rO(this,E,this._isEmpty)}}}}var Tw=Object.defineProperties(()=>{},{...F8,level:{enumerable:!0,get(){return this._generator.level},set(D){this._generator.level=D}}}),$6=(D,P,O)=>{let W,E;if(O===void 0)W=D,E=P;else W=O.openAll+D,E=P+O.closeAll;return{open:D,close:P,openAll:W,closeAll:E,parent:O}},rO=(D,P,O)=>{let W=(...E)=>{if(cO(E[0])&&cO(E[0].raw))return $B(W,kB(W,...E));return $B(W,E.length===1?""+E[0]:E.join(" "))};return Object.setPrototypeOf(W,Tw),W._generator=D,W._styler=P,W._isEmpty=O,W},$B=(D,P)=>{if(D.level<=0||!P)return D._isEmpty?"":P;let O=D._styler;if(O===void 0)return P;let{openAll:W,closeAll:E}=O;if(P.indexOf("\x1B")!==-1)while(O!==void 0)P=$w(P,O.close,O.open),O=O.parent;let F=P.indexOf("\n");if(F!==-1)P=Vw(P,E,W,F);return W+P+E},w6,kB=(D,...P)=>{let[O]=P;if(!cO(O)||!cO(O.raw))return P.join(" ");let W=P.slice(1),E=[O.raw[0]];for(let F=1;F<O.length;F++)E.push(String(W[F-1]).replace(/[{}\\]/g,"\\$&"),String(O.raw[F]));if(w6===void 0)w6=jB();return w6(D,E.join(""))};Object.defineProperties(lO.prototype,F8);var dO=lO();dO.supportsColor=K6;dO.stderr=lO({level:j6?j6.level:0});dO.stderr.supportsColor=j6;xB.exports=dO});var ZP={name:"@samarium.sdk/new",version:"0.15.0",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://github.com/liontariai/samarium",bin:{samarium:"bin/samarium"},publishConfig:{access:"public"},files:["bin/**/*","README.md","package.json"],scripts:{prettier:"prettier --write .",bundle:"bun bundle.js",prepublishOnly:"bun run bundle",test:"bun test"},prettier:{tabWidth:4},devDependencies:{"bun-types":"^1.1.29","@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"}};var EE=YD(WE(),1),{program:ow,createCommand:ew,createArgument:DK,createOption:PK,CommanderError:OK,InvalidArgumentError:WK,InvalidOptionArgumentError:EK,Command:FE,Argument:FK,Option:RK,Help:SK}=EE.default;var CS=YD(M0(),1);var JO=YD(M0(),1);class p0 extends Error{response;request;constructor(D,P){let O=`${p0.extractMessage(D)}: ${JSON.stringify({response:D,request:P})}`;super(O);if(Object.setPrototypeOf(this,p0.prototype),this.response=D,this.request=P,typeof Error.captureStackTrace==="function")Error.captureStackTrace(this,p0)}static extractMessage(D){return D.errors?.[0]?.message??`GraphQL Error (Code: ${String(D.status)})`}}var $3=(D)=>D.toUpperCase(),BO=(D)=>{return typeof D==="function"?D():D},V3=(D,P)=>D.map((O,W)=>[O,P[W]]),q2=(D)=>{let P={};if(D instanceof Headers)P=gM(D);else if(Array.isArray(D))D.forEach(([O,W])=>{if(O&&W!==void 0)P[O]=W});else if(D)P=D;return P},gM=(D)=>{let P={};return D.forEach((O,W)=>{P[W]=O}),P},PS=(D)=>{try{let P=D();if(yM(P))return P.catch((O)=>{return DS(O)});return P}catch(P){return DS(P)}},DS=(D)=>{if(D instanceof Error)return D;return new Error(String(D))},yM=(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"},YO=(D)=>{throw new Error(`Unhandled case: ${String(D)}`)},t8=(D)=>{return typeof D==="object"&&D!==null&&!Array.isArray(D)};var OS=(D,P)=>{return D.documents?D:{documents:D,requestHeaders:P,signal:void 0}};var WS=(D,P,O)=>{return D.query?D:{query:D,variables:P,requestHeaders:O,signal:void 0}};var RS=YD(M0(),1);var _3="Accept",ZO="Content-Type",s8="application/json",HO="application/graphql-response+json";var T3=(D)=>D.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),SS=(D)=>{let P=D.toLowerCase();return P.includes(HO)||P.includes(s8)},N3=(D)=>{try{if(Array.isArray(D))return{_tag:"Batch",executionResults:D.map(ES)};else if(t8(D))return{_tag:"Single",executionResult:ES(D)};else throw new Error(`Invalid execution result: result is not object or array. \nGot:\n${String(D)}`)}catch(P){return P}},ES=(D)=>{if(typeof D!=="object"||D===null)throw new Error("Invalid execution result: result is not object");let P=void 0,O=void 0,W=void 0;if("errors"in D){if(!t8(D.errors)&&!Array.isArray(D.errors))throw new Error("Invalid execution result: errors is not plain object OR array");P=D.errors}if("data"in D){if(!t8(D.data)&&D.data!==null)throw new Error("Invalid execution result: data is not plain object");O=D.data}if("extensions"in D){if(!t8(D.extensions))throw new Error("Invalid execution result: extensions is not plain object");W=D.extensions}return{data:O,errors:P,extensions:W}},LS=(D)=>D._tag==="Batch"?D.executionResults.some(FS):FS(D.executionResult),FS=(D)=>Array.isArray(D.errors)?D.errors.length>0:Boolean(D.errors),k3=(D)=>{return typeof D==="object"&&D!==null&&"kind"in D&&D.kind===RS.Kind.OPERATION_DEFINITION};var BS=YD(M0(),1),YS=YD(M0(),1),ZS=YD(M0(),1),mM=(D)=>{let P=void 0,O=D.definitions.filter(k3);if(O.length===1)P=O[0].name?.value;return P},cM=(D)=>{let P=!1,O=D.definitions.filter(k3);if(O.length===1)P=O[0].operation===BS.OperationTypeNode.MUTATION;return P},i8=(D,P)=>{let O=typeof D==="string"?D:ZS.print(D),W=!1,E=void 0;if(P)return{expression:O,isMutation:W,operationName:E};let F=PS(()=>typeof D==="string"?YS.parse(D):D);if(F instanceof Error)return{expression:O,isMutation:W,operationName:E};return E=mM(F),W=cM(F),{expression:O,operationName:E,isMutation:W}};var AO=JSON;var CO=async(D)=>{let P={...D,method:D.request._tag==="Single"?D.request.document.isMutation?"POST":$3(D.method??"post"):D.request.hasMutations?"POST":$3(D.method??"post"),fetchOptions:{...D.fetchOptions,errorPolicy:D.fetchOptions.errorPolicy??"none"}},W=await rM(P.method)(P);if(!W.ok)return new p0({status:W.status,headers:W.headers},{query:D.request._tag==="Single"?D.request.document.expression:D.request.query,variables:D.request.variables});let E=await lM(W,D.fetchOptions.jsonSerializer??AO);if(E instanceof Error)throw E;let F={status:W.status,headers:W.headers};if(LS(E)&&P.fetchOptions.errorPolicy==="none"){let R=E._tag==="Batch"?{...E.executionResults,...F}:{...E.executionResult,...F};return new p0(R,{query:D.request._tag==="Single"?D.request.document.expression:D.request.query,variables:D.request.variables})}switch(E._tag){case"Single":return{...F,...HS(P)(E.executionResult)};case"Batch":return{...F,data:E.executionResults.map(HS(P))};default:YO(E)}},HS=(D)=>(P)=>{return{extensions:P.extensions,data:P.data,errors:D.fetchOptions.errorPolicy==="all"?P.errors:void 0}},lM=async(D,P)=>{let O=D.headers.get(ZO),W=await D.text();if(O&&SS(O))return N3(P.parse(W));else return N3(W)},rM=(D)=>async(P)=>{let O=new Headers(P.headers),W=null,E=void 0;if(!O.has(_3))O.set(_3,[HO,s8].join(", "));if(D==="POST"){if(E=(P.fetchOptions.jsonSerializer??AO).stringify(dM(P)),typeof E==="string"&&!O.has(ZO))O.set(ZO,s8)}else W=pM(P);let F={method:D,headers:O,body:E,...P.fetchOptions},R=new URL(P.url),S=F;if(P.middleware){let B=await Promise.resolve(P.middleware({...F,url:P.url,operationName:P.request._tag==="Single"?P.request.document.operationName:void 0,variables:P.request.variables})),{url:Y,...Z}=B;R=new URL(Y),S=Z}if(W)W.forEach((B,Y)=>{R.searchParams.append(Y,B)});return await(P.fetch??fetch)(R,S)},dM=(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 V3(D.request.query,D.request.variables??[]).map(([P,O])=>({query:P,variables:O}));default:throw YO(D.request)}},pM=(D)=>{let P=D.fetchOptions.jsonSerializer??AO,O=new URLSearchParams;switch(D.request._tag){case"Single":{if(O.append("query",T3(D.request.document.expression)),D.request.variables)O.append("variables",P.stringify(D.request.variables));if(D.request.document.operationName)O.append("operationName",D.request.document.operationName);return O}case"Batch":{let W=D.request.variables?.map((R)=>P.stringify(R))??[],E=D.request.query.map(T3),F=V3(E,W).map(([R,S])=>({query:R,variables:S}));return O.append("query",P.stringify(F)),O}default:throw YO(D.request)}};class z2{url;requestConfig;constructor(D,P={}){this.url=D,this.requestConfig=P}rawRequest=async(...D)=>{let[P,O,W]=D,E=WS(P,O,W),{headers:F,fetch:R=globalThis.fetch,method:S="POST",requestMiddleware:L,responseMiddleware:B,excludeOperationName:Y,...Z}=this.requestConfig,{url:H}=this;if(E.signal!==void 0)Z.signal=E.signal;let C=i8(E.query,Y),X=await CO({url:H,request:{_tag:"Single",document:C,variables:E.variables},headers:{...q2(BO(F)),...q2(E.requestHeaders)},fetch:R,method:S,fetchOptions:Z,middleware:L});if(B)await B(X,{operationName:C.operationName,variables:O,url:this.url});if(X instanceof Error)throw X;return X};async request(D,...P){let[O,W]=P,E=AS(D,O,W),{headers:F,fetch:R=globalThis.fetch,method:S="POST",requestMiddleware:L,responseMiddleware:B,excludeOperationName:Y,...Z}=this.requestConfig,{url:H}=this;if(E.signal!==void 0)Z.signal=E.signal;let C=i8(E.document,Y),X=await CO({url:H,request:{_tag:"Single",document:C,variables:E.variables},headers:{...q2(BO(F)),...q2(E.requestHeaders)},fetch:R,method:S,fetchOptions:Z,middleware:L});if(B)await B(X,{operationName:C.operationName,variables:E.variables,url:this.url});if(X instanceof Error)throw X;return X.data}async batchRequests(D,P){let O=OS(D,P),{headers:W,excludeOperationName:E,...F}=this.requestConfig;if(O.signal!==void 0)F.signal=O.signal;let R=O.documents.map(({document:Z})=>i8(Z,E)),S=R.map(({expression:Z})=>Z),L=R.some(({isMutation:Z})=>Z),B=O.documents.map(({variables:Z})=>Z),Y=await CO({url:this.url,request:{_tag:"Batch",operationName:void 0,query:S,hasMutations:L,variables:B},headers:{...q2(BO(W)),...q2(O.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:F,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware)await this.requestConfig.responseMiddleware(Y,{operationName:void 0,variables:B,url:this.url});if(Y instanceof Error)throw Y;return Y.data}setHeaders(D){return this.requestConfig.headers=D,this}setHeader(D,P){let{headers:O}=this.requestConfig;if(O)O[D]=P;else this.requestConfig.headers={[D]:P};return this}setEndpoint(D){return this.url=D,this}}var AS=(D,P,O)=>{return D.document?D:{document:D,variables:P,requestHeaders:O,signal:void 0}};async function G2(D,P){try{let W=await new z2(D).request(JO.getIntrospectionQuery(),void 0,new Headers(P?.map((F)=>F.split("="))));return JO.buildClientSchema(W)}catch(O){throw O}}import nM from"fs";var x3=async(D,P)=>{let O=await G2(D.url,D.headers),W=CS.printSchema(O);nM.writeFileSync(P,W)};class f3{P;O;static FieldValueWrapperType;static EnumTypesMapped;static HelperTypes;static HelperFunctions;typeMeta;typeName;originalFullTypeName;constructor(D,P,O){this.collector=P;this.options=O;this.typeMeta=P.getType(D),this.originalFullTypeName=D,this.typeName=this.originalTypeNameToTypescriptFriendlyName(D)}originalTypeNameToTypescriptFriendlyName(D){return D.replaceAll("[","").replaceAll("]","Array").replaceAll("!","NotNull")}originalTypeNameToTypescriptTypeNameWithoutModifiers(D,P=""){return`${D.replaceAll("[","").replaceAll("]","").replaceAll("!","")}${P}`}originalTypeNameToTypescriptTypeName(D,P=""){return`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,P)}${Array.from({length:D.split("[").length-1}).fill("[]").join("")}`}static makeRootOperationFunction(D){throw new Error("Method not implemented.")}}var UO=YD(M0(),1);var JS="const Proxy = global.Proxy;\nProxy.prototype = {};\n\nexport const _ = Symbol(\"_\") as any;\nexport const OPTIONS = Symbol(\"OPTIONS\");\nexport class RootOperation {\n public static [OPTIONS] = {\n headers: {},\n _auth_fn: undefined as\n | (() => string | { [key: string]: string })\n | (() => Promise<string | { [key: string]: string }>)\n | undefined,\n scalars: {\n DateTime: (value: string) => new Date(value),\n DateTimeISO: (value: string) => new Date(value),\n Date: (value: string) => new Date(value),\n Time: (value: string) => new Date(value),\n JSON: (value: string) => JSON.parse(value),\n },\n };\n\n private utilSet = (obj: Record<string, any>, path: string[], value: any) =>\n path.reduce(\n (o, p, i, a) => (o[p] = a.length - 1 === i ? value : o[p] || {}),\n obj,\n );\n\n private rootCollector: OperationSelectionCollector | undefined = undefined;\n public registerRootCollector(collector: OperationSelectionCollector) {\n this.rootCollector = collector;\n }\n public async execute(headers: Record<string, string> = {}) {\n if (!this.rootCollector) {\n throw new Error(\"RootOperation has no registered collector\");\n }\n\n type selection = ReturnType<\n typeof OperationSelectionCollector.prototype.renderSelections\n >;\n const operations: {\n [key: string]: {\n selection: selection;\n rootSlw: SelectionWrapperImpl<string, string, number, any>;\n };\n } = {};\n for (const [\n opName,\n opSelection,\n ] of this.rootCollector?.selections.entries()) {\n if (opSelection[SLW_LAZY_FLAG]) continue;\n\n let rootSlw = opSelection;\n while (!rootSlw[SLW_IS_ROOT_TYPE]) {\n if (!rootSlw[SLW_PARENT_SLW]) break;\n rootSlw = rootSlw[SLW_PARENT_SLW]!;\n }\n\n const selection = rootSlw[SLW_COLLECTOR]!.renderSelections(\n [opName],\n {},\n new Map(),\n opSelection === rootSlw ? [] : [opSelection],\n );\n\n operations[opName] = {\n selection,\n rootSlw,\n };\n }\n\n const ops = Object.entries(operations).reduce(\n (acc, [opName, { selection, rootSlw }]) => ({\n ...acc,\n [opName]: {\n query: `${rootSlw[SLW_IS_ROOT_TYPE]?.toLowerCase()} ${opName} ${\n selection.variableDefinitions.length\n ? `(${selection.variableDefinitions.join(\", \")}) `\n : \"\"\n }${selection.selection}`,\n variables: selection.variables,\n fragments: selection.usedFragments,\n },\n }),\n {} as Record<\n string,\n {\n query: string;\n variables: any;\n fragments: Map<string, string>;\n }\n >,\n );\n // const subscription = `{${subscriptions.join(\"\")}}`;\n\n const results = Object.fromEntries(\n await Promise.all([\n ...Object.entries(ops).map(\n async ([opName, op]) =>\n [\n opName,\n await this.executeOperation(op, headers),\n ] as const,\n ),\n ]),\n );\n\n return results;\n }\n\n private async executeOperation(\n query: {\n query: string;\n variables: any;\n fragments: Map<string, string>;\n },\n headers: Record<string, string> = {},\n ) {\n const res = await fetch(\"[ENDPOINT]\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n ...headers,\n },\n body: JSON.stringify({\n query: `${[...query.fragments.values()].join(\"\\n\")}\\n ${query.query}`.trim(),\n variables: query.variables,\n }),\n });\n const result = (await res.json()) as { data: any; errors: any[] };\n\n const { data, errors } = result ?? {};\n if (errors?.length > 0) {\n for (const error of errors) {\n if (error.path) {\n this.utilSet(data, error.path, error);\n }\n }\n if (!data) {\n const err = new Error(JSON.stringify(errors), {\n cause: \"Only errors were returned from the server.\",\n });\n throw err;\n }\n }\n return data;\n }\n}\n\nexport type OperationSelectionCollectorRef = {\n ref: OperationSelectionCollector;\n};\nexport class OperationSelectionCollector {\n constructor(\n public readonly name?: string,\n public readonly parent?:\n | OperationSelectionCollector\n | OperationSelectionCollectorRef,\n public readonly op?: RootOperation,\n ) {\n if (op) op.registerRootCollector(this);\n }\n\n private executed = false;\n private operationResult: any | undefined = undefined;\n public async execute(\n headers: Record<string, string> = RootOperation[OPTIONS].headers,\n ) {\n if (!this.op) {\n throw new Error(\n \"OperationSelectionCollector is not registered to a root operation\",\n );\n }\n this.operationResult = await this.op.execute(headers);\n this.executed = true;\n }\n public get isExecuted() {\n return this.executed;\n }\n\n public readonly selections = new Map<\n string,\n SelectionWrapperImpl<string, string, number, any>\n >();\n public registerSelection(\n id: string,\n selection: SelectionWrapperImpl<string, string, number, any, any>,\n ) {\n this.selections.set(id, selection);\n }\n\n public renderSelections(\n path: string[] = [],\n opVars: Record<string, any> = {},\n usedFragments: Map<string, string> = new Map(),\n renderOnlyTheseSelections: SelectionWrapperImpl<\n string,\n string,\n number,\n any\n >[] = [],\n ) {\n const result: Record<string, string | undefined> = {};\n const varDefs: string[] = [];\n const variables: Record<string, any> = {};\n\n for (const [key, value] of [...this.selections.entries()].filter(\n ([k, v]) =>\n renderOnlyTheseSelections.length === 0 ||\n renderOnlyTheseSelections.find(\n (r) => r[SLW_UID] === v[SLW_UID],\n ),\n )) {\n const subPath = [...path, key];\n const {\n selection: fieldSelection,\n variableDefinitions: fieldVarDefs,\n variables: fieldVars,\n\n directive: directiveRendered,\n } = value[SLW_RENDER_WITH_ARGS](opVars);\n\n Object.assign(variables, fieldVars);\n Object.assign(opVars, fieldVars);\n varDefs.push(...fieldVarDefs);\n\n if (directiveRendered) {\n const {\n variableDefinitions: directiveVarDefs,\n variables: directiveVars,\n } = directiveRendered;\n\n varDefs.push(...directiveVarDefs);\n Object.assign(variables, directiveVars);\n Object.assign(opVars, directiveVars);\n }\n\n value[SLW_REGISTER_PATH](subPath);\n\n if (value[SLW_PARENT_COLLECTOR] === undefined) {\n if (directiveRendered) {\n result[key] =\n `${fieldSelection} ${directiveRendered.rendered}`;\n } else {\n result[key] = fieldSelection;\n }\n } else if (\n value[SLW_COLLECTOR] instanceof OperationSelectionCollector\n ) {\n const {\n selection: subSelection,\n variableDefinitions: subVarDefs,\n variables: subVars,\n } = value[SLW_COLLECTOR].renderSelections(\n subPath,\n opVars,\n usedFragments,\n );\n\n if (value[SLW_IS_ON_TYPE_FRAGMENT]) {\n if (directiveRendered) {\n result[key] =\n `... on ${value[SLW_IS_ON_TYPE_FRAGMENT]} ${directiveRendered.rendered} ${subSelection}`;\n } else {\n result[key] =\n `... on ${value[SLW_IS_ON_TYPE_FRAGMENT]} ${subSelection}`;\n }\n } else if (value[SLW_IS_FRAGMENT]) {\n const fragmentName = `${key}_${subVarDefs.map((v) => v.split(\":\")[0].slice(1)).join(\"_\")}`;\n\n if (directiveRendered) {\n result[key] =\n `...${fragmentName} ${directiveRendered.rendered}`;\n } else {\n result[key] = `...${fragmentName}`;\n }\n\n const fragment = `fragment ${fragmentName} on ${value[SLW_FIELD_TYPENAME]} ${subSelection}`;\n if (!usedFragments.has(fragmentName)) {\n usedFragments.set(fragmentName, fragment);\n } else if (usedFragments.get(fragmentName) !== fragment) {\n console.warn(\n `Fragment ${fragmentName} is already defined with a different selection`,\n );\n }\n } else {\n if (directiveRendered) {\n result[key] =\n `${fieldSelection} ${directiveRendered.rendered} ${subSelection}`;\n } else {\n result[key] = `${fieldSelection} ${subSelection}`;\n }\n }\n\n Object.assign(variables, subVars);\n Object.assign(opVars, subVars);\n varDefs.push(...subVarDefs);\n }\n }\n let rendered = \"{ \";\n for (const [key, value] of Object.entries(result).filter(\n ([k, v]) => v !== undefined,\n ) as [string, string][]) {\n const keyIsFieldName =\n value.startsWith(`${key} {`) || value.startsWith(`${key} (`);\n const isSubSelection = value.startsWith(\"{\");\n const isOnType = value.startsWith(\"... on\");\n const isFragment = value.startsWith(\"...\");\n if (key === value) {\n rendered += `${key} `;\n } else if (isOnType || isFragment || keyIsFieldName) {\n rendered += `${value} `;\n } else {\n rendered += `${key}${!isSubSelection ? \":\" : \"\"} ${value} `;\n }\n }\n rendered += \"}\";\n return {\n selection: rendered,\n variableDefinitions: varDefs,\n variables,\n usedFragments,\n };\n }\n\n private utilGet = (obj: Record<string, any>, path: (string | number)[]) =>\n path.reduce((o, p) => o?.[p], obj);\n public getOperationResultPath<T>(\n path: (string | number)[] = [],\n type?: string,\n ): T {\n if (!this.op) {\n throw new Error(\n \"OperationSelectionCollector is not registered to a root operation\",\n );\n }\n\n let result = this.operationResult;\n\n if (path.length === 0) return result as T;\n\n result = this.utilGet(result, path) as T;\n\n if (type && result && type in RootOperation[OPTIONS].scalars) {\n let depth = 0;\n let finalResult = result instanceof Array ? [...result] : result;\n\n while (result instanceof Array) {\n result = result[0];\n depth++;\n }\n\n const deepParse = (\n res: any | any[],\n depth: number,\n parse: (v: string) => any,\n ) => {\n if (depth === 0) {\n return parse(res);\n }\n return res.map((rarr: any) =>\n deepParse(rarr, depth - 1, parse),\n );\n };\n\n return deepParse(\n finalResult,\n depth,\n RootOperation[OPTIONS].scalars[\n type as keyof (typeof RootOperation)[typeof OPTIONS][\"scalars\"]\n ],\n ) as T;\n }\n\n return result as T;\n }\n}\n\nexport const SLW_UID = Symbol(\"SLW_UID\");\nexport const SLW_FIELD_NAME = Symbol(\"SLW_FIELD_NAME\");\nexport const SLW_FIELD_TYPENAME = Symbol(\"SLW_FIELD_TYPENAME\");\nexport const SLW_FIELD_ARR_DEPTH = Symbol(\"SLW_FIELD_ARR_DEPTH\");\nexport const SLW_IS_ROOT_TYPE = Symbol(\"SLW_IS_ROOT_TYPE\");\nexport const SLW_IS_ON_TYPE_FRAGMENT = Symbol(\"SLW_IS_ON_TYPE_FRAGMENT\");\nexport const SLW_IS_FRAGMENT = Symbol(\"SLW_IS_FRAGMENT\");\nexport const SLW_VALUE = Symbol(\"SLW_VALUE\");\nexport const SLW_ARGS = Symbol(\"SLW_ARGS\");\nexport const SLW_ARGS_META = Symbol(\"SLW_ARGS_META\");\nexport const SLW_DIRECTIVE = Symbol(\"SLW_DIRECTIVE\");\nexport const SLW_DIRECTIVE_ARGS = Symbol(\"SLW_DIRECTIVE_ARGS\");\nexport const SLW_DIRECTIVE_ARGS_META = Symbol(\"SLW_DIRECTIVE_ARGS_META\");\nexport const SLW_PARENT_SLW = Symbol(\"SLW_PARENT_SLW\");\nexport const SLW_LAZY_FLAG = Symbol(\"SLW_LAZY_FLAG\");\n\nexport const OP = Symbol(\"OP\");\nexport const ROOT_OP_COLLECTOR = Symbol(\"ROOT_OP_COLLECTOR\");\nexport const SLW_PARENT_COLLECTOR = Symbol(\"SLW_PARENT_COLLECTOR\");\nexport const SLW_COLLECTOR = Symbol(\"SLW_COLLECTOR\");\nexport const SLW_OP_PATH = Symbol(\"SLW_OP_PATH\");\nexport const SLW_REGISTER_PATH = Symbol(\"SLW_REGISTER_PATH\");\nexport const SLW_RENDER_WITH_ARGS = Symbol(\"SLW_RENDER_WITH_ARGS\");\n\nexport const SLW_RECREATE_VALUE_CALLBACK = Symbol(\n \"SLW_RECREATE_VALUE_CALLBACK\",\n);\n\nexport const SLW_CLONE = Symbol(\"SLW_CLONE\");\n\nexport class SelectionWrapperImpl<\n fieldName extends string,\n typeNamePure extends string,\n typeArrDepth extends number,\n valueT extends any = any,\n argsT extends Record<string, any> | undefined = undefined,\n> {\n private generateUniqueId(): string {\n return (\n performance.now().toString(36) +\n Math.random().toString(36).substring(2)\n );\n }\n [SLW_CLONE](\n overrides: {\n SLW_OP_PATH?: string;\n } = {},\n ) {\n const slw = new SelectionWrapper(\n this[SLW_FIELD_NAME],\n this[SLW_FIELD_TYPENAME],\n this[SLW_FIELD_ARR_DEPTH],\n this[SLW_VALUE],\n this[SLW_COLLECTOR],\n this[SLW_PARENT_COLLECTOR],\n this[SLW_ARGS],\n this[SLW_ARGS_META],\n this[SLW_RECREATE_VALUE_CALLBACK],\n );\n slw[SLW_IS_ROOT_TYPE] = this[SLW_IS_ROOT_TYPE];\n slw[SLW_IS_ON_TYPE_FRAGMENT] = this[SLW_IS_ON_TYPE_FRAGMENT];\n slw[SLW_IS_FRAGMENT] = this[SLW_IS_FRAGMENT];\n slw[SLW_PARENT_SLW] = this[SLW_PARENT_SLW];\n slw[SLW_OP_PATH] = overrides.SLW_OP_PATH ?? this[SLW_OP_PATH];\n return slw;\n }\n\n readonly [SLW_UID] = this.generateUniqueId();\n [ROOT_OP_COLLECTOR]?: OperationSelectionCollectorRef;\n readonly [SLW_PARENT_COLLECTOR]?: OperationSelectionCollector;\n readonly [SLW_COLLECTOR]?: OperationSelectionCollector;\n\n [SLW_FIELD_NAME]?: fieldName;\n [SLW_FIELD_TYPENAME]?: typeNamePure;\n [SLW_FIELD_ARR_DEPTH]?: typeArrDepth;\n [SLW_VALUE]?: valueT;\n\n [SLW_IS_ROOT_TYPE]?: \"Query\" | \"Mutation\" | \"Subscription\";\n [SLW_IS_ON_TYPE_FRAGMENT]?: string;\n [SLW_IS_FRAGMENT]?: string;\n\n [SLW_ARGS]?: argsT;\n [SLW_ARGS_META]?: Record<string, string>;\n [SLW_DIRECTIVE]?: string;\n [SLW_DIRECTIVE_ARGS]?: Record<string, any>;\n [SLW_DIRECTIVE_ARGS_META]?: Record<string, string>;\n\n [SLW_PARENT_SLW]?: SelectionWrapperImpl<string, string, number, any, any>;\n [SLW_LAZY_FLAG]?: boolean;\n\n [SLW_RECREATE_VALUE_CALLBACK]?: () => valueT;\n constructor(\n fieldName?: fieldName,\n typeNamePure?: typeNamePure,\n typeArrDepth?: typeArrDepth,\n value?: valueT,\n collector?: OperationSelectionCollector,\n parent?: OperationSelectionCollector | OperationSelectionCollectorRef,\n args?: argsT,\n argsMeta?: Record<string, string>,\n reCreateValueCallback?: () => valueT,\n ) {\n this[SLW_FIELD_NAME] = fieldName;\n this[SLW_FIELD_TYPENAME] = typeNamePure;\n this[SLW_FIELD_ARR_DEPTH] = typeArrDepth;\n this[SLW_VALUE] = value;\n\n this[SLW_ARGS] = args;\n this[SLW_ARGS_META] = argsMeta;\n\n if (parent instanceof OperationSelectionCollector) {\n this[SLW_PARENT_COLLECTOR] = parent;\n } else if (parent && \"ref\" in parent) {\n this[SLW_PARENT_COLLECTOR] = parent.ref;\n }\n\n if (collector instanceof OperationSelectionCollector) {\n this[SLW_COLLECTOR] = collector;\n\n let rootCollector = collector;\n while (\n rootCollector?.parent instanceof OperationSelectionCollector\n ) {\n rootCollector = rootCollector.parent;\n }\n if (rootCollector.parent && \"ref\" in rootCollector.parent) {\n this[ROOT_OP_COLLECTOR] = rootCollector.parent;\n }\n }\n\n if (reCreateValueCallback) {\n this[SLW_RECREATE_VALUE_CALLBACK] = reCreateValueCallback;\n }\n }\n\n [SLW_OP_PATH]?: string;\n [SLW_REGISTER_PATH](path: string[]) {\n if (!this[SLW_OP_PATH]) this[SLW_OP_PATH] = path.join(\".\");\n }\n [SLW_RENDER_WITH_ARGS](opVars: Record<string, any> = {}) {\n const renderArgsString = (\n args: Record<string, any>,\n argsMeta: Record<string, string>,\n ) => {\n const argToVarMap: Record<string, string> = {};\n let argsString = \"(\";\n const argsStringParts = [];\n for (const key of Object.keys(args)) {\n let varName = key;\n if (opVars[key] !== undefined) {\n varName = `${key}_${\n Object.keys(opVars).filter((k) => k.startsWith(key))\n .length\n }`;\n argToVarMap[varName] = varName;\n args[varName] = args[key];\n argsMeta[varName] = argsMeta[key];\n delete args[key];\n }\n argsStringParts.push(`${key}: $${varName}`);\n }\n argsString += argsStringParts.join(\", \").trim() + \")\";\n return { argsString, argToVarMap };\n };\n\n const directiveRender = {\n rendered: undefined as string | undefined,\n variables: {} as Record<string, any>,\n variableDefinitions: [] as string[],\n };\n if (this[SLW_DIRECTIVE]) {\n const directive = this[SLW_DIRECTIVE];\n\n if (this[SLW_DIRECTIVE_ARGS]) {\n const args = this[SLW_DIRECTIVE_ARGS];\n const argsMeta = this[SLW_DIRECTIVE_ARGS_META]!;\n\n const { argsString, argToVarMap } = renderArgsString(\n args,\n argsMeta,\n );\n\n directiveRender.rendered = `@${directive}${Object.keys(args).length ? argsString : \"\"}`;\n directiveRender.variables = args;\n directiveRender.variableDefinitions = Object.keys(args).map(\n (key) => {\n const varName = argToVarMap[key] ?? key;\n return `$${varName}: ${argsMeta[key]}`;\n },\n );\n } else {\n directiveRender.rendered = `@${directive}`;\n }\n }\n\n if (this[SLW_ARGS]) {\n const args = this[SLW_ARGS];\n const argsMeta = this[SLW_ARGS_META]!;\n\n const { argsString, argToVarMap } = renderArgsString(\n args,\n argsMeta,\n );\n return {\n selection: `${this[SLW_FIELD_NAME]}${Object.keys(args).length ? argsString : \"\"}`,\n variables: args,\n variableDefinitions: Object.keys(args).map((key) => {\n const varName = argToVarMap[key] ?? key;\n return `$${varName}: ${argsMeta[key]}`;\n }),\n\n directive: directiveRender.rendered\n ? directiveRender\n : undefined,\n };\n }\n return {\n selection: this[SLW_FIELD_NAME],\n variables: {},\n variableDefinitions: [] as string[],\n\n directive: directiveRender.rendered ? directiveRender : undefined,\n };\n }\n}\nexport class SelectionWrapper<\n fieldName extends string,\n typeNamePure extends string,\n typeArrDepth extends number,\n valueT extends any = any,\n argsT extends Record<string, any> | undefined = undefined,\n> extends Proxy<\n SelectionWrapperImpl<fieldName, typeNamePure, typeArrDepth, valueT, argsT>\n> {\n constructor(\n fieldName?: fieldName,\n typeNamePure?: typeNamePure,\n typeArrDepth?: typeArrDepth,\n value?: valueT,\n collector?: OperationSelectionCollector,\n parent?: OperationSelectionCollector | OperationSelectionCollectorRef,\n args?: argsT,\n argsMeta?: Record<string, string>,\n reCreateValueCallback?: () => valueT,\n ) {\n super(\n new SelectionWrapperImpl<\n fieldName,\n typeNamePure,\n typeArrDepth,\n valueT,\n argsT\n >(\n fieldName,\n typeNamePure,\n typeArrDepth,\n value,\n collector,\n parent,\n args,\n argsMeta,\n reCreateValueCallback,\n ),\n {\n // implement ProxyHandler methods\n ownKeys() {\n return Reflect.ownKeys(value ?? {});\n },\n getOwnPropertyDescriptor(target, prop) {\n return Reflect.getOwnPropertyDescriptor(value ?? {}, prop);\n },\n has(target, prop) {\n if (prop === Symbol.for(\"nodejs.util.inspect.custom\"))\n return true;\n return Reflect.has(value ?? {}, prop);\n },\n get: (target, prop) => {\n if (prop === \"$lazy\") {\n const that = this;\n function lazy(\n this: {\n parentSlw: SelectionWrapperImpl<\n fieldName,\n typeNamePure,\n typeArrDepth,\n valueT,\n argsT\n >;\n key: string;\n },\n args?: argsT,\n ) {\n const { parentSlw, key } = this;\n const newRootOpCollectorRef = {\n ref: new OperationSelectionCollector(\n undefined,\n undefined,\n new RootOperation(),\n ),\n };\n\n const newThisCollector =\n new OperationSelectionCollector(\n undefined,\n newRootOpCollectorRef,\n );\n const r =\n that[SLW_RECREATE_VALUE_CALLBACK]?.bind(\n newThisCollector,\n )();\n\n const newThat = new SelectionWrapper(\n that[SLW_FIELD_NAME],\n that[SLW_FIELD_TYPENAME],\n that[SLW_FIELD_ARR_DEPTH],\n r,\n newThisCollector,\n newRootOpCollectorRef,\n that[SLW_ARGS],\n that[SLW_ARGS_META],\n );\n Object.keys(r!).forEach(\n (key) =>\n (newThat as valueT)[key as keyof valueT],\n );\n\n newThat[SLW_IS_ROOT_TYPE] = that[SLW_IS_ROOT_TYPE];\n newThat[SLW_IS_ON_TYPE_FRAGMENT] =\n that[SLW_IS_ON_TYPE_FRAGMENT];\n newThat[SLW_IS_FRAGMENT] = that[SLW_IS_FRAGMENT];\n\n newThat[SLW_PARENT_SLW] = parentSlw;\n parentSlw[SLW_COLLECTOR]?.registerSelection(\n key,\n newThat,\n );\n newThat[SLW_ARGS] = {\n ...(that[SLW_ARGS] ?? {}),\n ...args,\n } as argsT;\n\n newThat[SLW_OP_PATH] = that[SLW_OP_PATH];\n\n newRootOpCollectorRef.ref.registerSelection(\n newThat[SLW_FIELD_NAME]!,\n newThat,\n );\n\n return new Promise((resolve, reject) => {\n newRootOpCollectorRef.ref\n .execute()\n .catch(reject)\n .then(() => {\n resolve(newThat);\n });\n });\n }\n target[SLW_LAZY_FLAG] = true;\n lazy[SLW_LAZY_FLAG] = true;\n return lazy;\n }\n if (\n prop === SLW_UID ||\n prop === SLW_FIELD_NAME ||\n prop === SLW_FIELD_TYPENAME ||\n prop === SLW_FIELD_ARR_DEPTH ||\n prop === SLW_IS_ROOT_TYPE ||\n prop === SLW_IS_ON_TYPE_FRAGMENT ||\n prop === SLW_IS_FRAGMENT ||\n prop === SLW_VALUE ||\n prop === SLW_ARGS ||\n prop === SLW_ARGS_META ||\n prop === SLW_DIRECTIVE ||\n prop === SLW_DIRECTIVE_ARGS ||\n prop === SLW_DIRECTIVE_ARGS_META ||\n prop === SLW_PARENT_SLW ||\n prop === SLW_LAZY_FLAG ||\n prop === ROOT_OP_COLLECTOR ||\n prop === SLW_PARENT_COLLECTOR ||\n prop === SLW_COLLECTOR ||\n prop === SLW_OP_PATH ||\n prop === SLW_REGISTER_PATH ||\n prop === SLW_RENDER_WITH_ARGS ||\n prop === SLW_RECREATE_VALUE_CALLBACK ||\n prop === SLW_CLONE\n ) {\n return target[\n prop as keyof SelectionWrapperImpl<\n fieldName,\n typeNamePure,\n typeArrDepth,\n valueT\n >\n ];\n }\n if (prop === SLW_VALUE) {\n return value;\n }\n if (prop === \"then\") {\n return this;\n }\n\n let slw_value = target[SLW_VALUE] as\n | Record<string, any>\n | undefined;\n\n if (target[ROOT_OP_COLLECTOR]?.ref.isExecuted) {\n const getResultDataForTarget = (\n t: SelectionWrapperImpl<\n fieldName,\n typeNamePure,\n typeArrDepth,\n valueT,\n argsT\n >,\n ): valueT | undefined => {\n const data = t[\n ROOT_OP_COLLECTOR\n ]!.ref.getOperationResultPath<valueT>(\n (t[SLW_OP_PATH]?.split(\".\") ?? []).map((p) =>\n !isNaN(+p) ? +p : p,\n ),\n t[SLW_FIELD_TYPENAME],\n );\n return data;\n };\n\n if (!Object.hasOwn(slw_value ?? {}, String(prop))) {\n // check if the selected field is an array\n if (typeArrDepth) {\n if (!isNaN(+String(prop))) {\n const elm = target[SLW_CLONE]({\n SLW_OP_PATH:\n target[SLW_OP_PATH] +\n \".\" +\n String(prop),\n });\n return elm;\n }\n\n const data = getResultDataForTarget(target) as\n | valueT[]\n | undefined;\n\n if (data === undefined) return undefined;\n\n const proxiedData = Array.from(\n { length: data.length },\n (_, i) =>\n target[SLW_CLONE]({\n SLW_OP_PATH:\n target[SLW_OP_PATH] +\n \".\" +\n String(i),\n }),\n );\n\n const proto =\n Object.getPrototypeOf(proxiedData);\n if (Object.hasOwn(proto, prop)) {\n const v = (proxiedData as any)[prop];\n if (typeof v === \"function\")\n return v.bind(proxiedData);\n return v;\n }\n\n return () => proxiedData;\n }\n\n const data = getResultDataForTarget(target);\n if (data === undefined) return undefined;\n const proto = Object.getPrototypeOf(data);\n if (Object.hasOwn(proto, prop)) {\n const v = (data as any)[prop];\n if (typeof v === \"function\")\n return v.bind(data);\n return v;\n }\n\n return () => data;\n }\n\n let slw = slw_value?.[String(prop)];\n const slwOpPathIsIndexAccess = !isNaN(\n +target[SLW_OP_PATH]?.split(\".\").pop()!,\n );\n if (slwOpPathIsIndexAccess) {\n // index access detected, cloning\n slw = slw[SLW_CLONE]({\n SLW_OP_PATH:\n target[SLW_OP_PATH] + \".\" + String(prop),\n });\n }\n\n if (\n slw instanceof SelectionWrapperImpl &&\n slw[SLW_PARENT_COLLECTOR]\n ) {\n return slw;\n } else if (slw instanceof SelectionWrapperImpl) {\n return getResultDataForTarget(slw);\n } else if (slw[SLW_LAZY_FLAG]) {\n return slw;\n }\n\n return getResultDataForTarget(target);\n }\n\n if (\n Object.hasOwn(slw_value ?? {}, String(prop)) &&\n slw_value?.[String(prop)] instanceof\n SelectionWrapperImpl\n ) {\n if (target[SLW_COLLECTOR]) {\n target[SLW_COLLECTOR].registerSelection(\n String(prop),\n slw_value[String(prop)],\n );\n }\n if (!slw_value[String(prop)][SLW_PARENT_SLW]) {\n slw_value[String(prop)][SLW_PARENT_SLW] = target;\n }\n }\n if (slw_value?.[String(prop)]?.[SLW_LAZY_FLAG]) {\n if (!slw_value[String(prop)][SLW_PARENT_SLW]) {\n const lazyFn = slw_value[String(prop)];\n slw_value[String(prop)] = lazyFn.bind({\n parentSlw: target,\n key: String(prop),\n });\n slw_value[String(prop)][SLW_PARENT_SLW] = target;\n slw_value[String(prop)][SLW_LAZY_FLAG] = true;\n }\n }\n\n return slw_value?.[String(prop)] ?? undefined;\n },\n },\n );\n }\n}\n";class n0 extends f3{P;O;static ScalarTypeMap=new Map([["String","string"],["Int","number"],["Float","number"],["Boolean","boolean"],["ID","string"],["Date","Date"],["DateTime","Date"],["DateTimeISO","Date"],["Time","Date"],["JSON","Record<string, any>"]]);ScalarTypeMap=n0.ScalarTypeMap;static FieldValueWrapperType=JS;static EnumTypesMapped=(D)=>{return`export interface EnumTypesMapped {
|
|
127
127
|
${Array.from(D.enumsTypes.keys()).map((P)=>P.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")).map((P)=>`"${P}": ${P},`).join("\n")}
|
|
128
128
|
};`};static HelperTypes=`
|
|
129
129
|
export interface ScalarTypeMapWithCustom {};
|
|
130
130
|
export interface ScalarTypeMapDefault {
|
|
131
|
-
${Array.from(
|
|
131
|
+
${Array.from(n0.ScalarTypeMap).map(([D,P])=>`"${D}": ${P};`).join("\n")}
|
|
132
132
|
};
|
|
133
133
|
|
|
134
134
|
type SelectionFnParent = {
|
|
@@ -330,8 +330,8 @@ spurious results.`)}}return!1};mE.instanceOf=jZ});var IP=J((lE)=>{Object.defineP
|
|
|
330
330
|
export enum ${D}Enum {
|
|
331
331
|
${this.typeMeta.enumValues.map((O)=>`${O.description?`/** ${O.description} */\n`:""}${O.name} = "${O.name}",`).join("\n")}
|
|
332
332
|
};
|
|
333
|
-
`;return this.collector.addEnumType(this.typeMeta,P),D}makeSelectionTypeInputValueForFieldWrapperType(D,P){let O=this.ScalarTypeMap.get(P.name.replaceAll("!","").replaceAll("[","").replaceAll("]",""))??"any";if(P.isList)return`${Array.from({length:P.isList}).map((W)=>"Array<").join("")}${O}${Array.from({length:P.isList}).map((W)=>">").join("")}`;return O}makeSelectionTypeInputValueForField(D,P=[],O=!1){let W=()=>{let F=D.args.some((S)=>S.type.isNonNull),R=`${P.join()}${D.name.slice(0,1).toUpperCase()}${D.name.slice(1)}Args`;if(!this.collector.hasArgumentType(R)){let L=`{ ${D.args.map((B)=>{let Y=B.type.isScalar,Z=B.type.isEnum,H=B.type.isInput,
|
|
334
|
-
${
|
|
333
|
+
`;return this.collector.addEnumType(this.typeMeta,P),D}makeSelectionTypeInputValueForFieldWrapperType(D,P){let O=this.ScalarTypeMap.get(P.name.replaceAll("!","").replaceAll("[","").replaceAll("]",""))??"any";if(P.isList)return`${Array.from({length:P.isList}).map((W)=>"Array<").join("")}${O}${Array.from({length:P.isList}).map((W)=>">").join("")}`;return O}makeSelectionTypeInputValueForField(D,P=[],O=!1){let W=()=>{let F=D.args.some((S)=>S.type.isNonNull),R=`${P.join()}${D.name.slice(0,1).toUpperCase()}${D.name.slice(1)}Args`;if(!this.collector.hasArgumentType(R)){let L=`{ ${D.args.map((B)=>{let Y=B.type.isScalar,Z=B.type.isEnum,H=B.type.isInput,C=`${B.name}${B.type.isNonNull?"":"?"}`,X="any";if(Y)X=this.ScalarTypeMap.get(B.type.name.replaceAll("!",""))??"any";else if(H||Z)X=this.originalTypeNameToTypescriptTypeName(B.type.name);return`${B.description?`/** ${B.description??`${C}`} */`:""}
|
|
334
|
+
${C}: ${X};`}).join(" ")} }`;this.collector.addArgumentType(R,`export type ${R} = ${L};`)}return{argsTypeName:R,hasAtLeastOneNonNullArg:F}},E=D.description?`/* ${D.description} */\n`:"";if(D.type.isScalar||D.type.isEnum){let F=this.makeSelectionTypeInputValueForFieldWrapperType(D.name,D.type);if(this.collector.addSelectionType(D.type,F),D.hasArgs){let{argsTypeName:R,hasAtLeastOneNonNullArg:S}=W();return`${E}${D.name}: (args${S?"":"?"}: ${R}) => ${F};`}return`${E}${D.name}${D.type.isNonNull?"":"?"}: ${F};`}else if(D.type.ofType){let F=new n0(D.type.ofType.name,this.collector,this.options).makeSelectionFunction();if(D.hasArgs){let{argsTypeName:R,hasAtLeastOneNonNullArg:S}=W();return`${E}${D.name}: (args${S?"":"?"}: ${R} ) => typeof ${F};`}if(O)return`${E}${D.name}${D.type.isNonNull?"":"?"}: ${this.originalTypeNameToTypescriptTypeName(D.type.ofType.name)};`;return`${E}${D.name}: typeof ${F};`}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.typeMeta.isInput?this.originalTypeNameToTypescriptTypeNameWithoutModifiers(this.originalFullTypeName):`${this.typeName}SelectionFields`;if(this.collector.hasSelectionType(this.typeMeta))return D;let P="";if(this.typeMeta.isUnion){let O=this.typeMeta.possibleTypes.map((W)=>`${this.originalTypeNameToTypescriptFriendlyName(W.name)}SelectionFields`).join(" | ");P=`
|
|
335
335
|
export type ${D} = ${O};
|
|
336
336
|
`}else P=`
|
|
337
337
|
export type ${D} = {
|
|
@@ -344,7 +344,7 @@ spurious results.`)}}return!1};mE.instanceOf=jZ});var IP=J((lE)=>{Object.defineP
|
|
|
344
344
|
{},
|
|
345
345
|
this,
|
|
346
346
|
undefined,
|
|
347
|
-
${D.hasArgs?`args, ${O}Meta`:""})`}makeSelectionFunctionInputObjectValueForField(D,P){let O=()=>{let E=`${P.join()}${D.name.slice(0,1).toUpperCase()}${D.name.slice(1)}Args`;if(!this.collector.hasArgumentMeta(E)){let R=`{ ${D.args.map((S)=>{return`${S.name}: "${S.type.name}",`}).join(" ")} }`;this.collector.addArgumentMeta(E,`export const ${E}Meta = ${R} as const;`)}return{argsTypeName:E}},W=D.type;if(W.isScalar||W.isEnum){let E=this.makeSelectionFunctionInputObjectValueForFieldWrapper(D,P);if(D.hasArgs)O();return this.collector.addSelectionFunction(W,E),`${D.name}: ${E}`}else if(W.ofType){let E=new
|
|
347
|
+
${D.hasArgs?`args, ${O}Meta`:""})`}makeSelectionFunctionInputObjectValueForField(D,P){let O=()=>{let E=`${P.join()}${D.name.slice(0,1).toUpperCase()}${D.name.slice(1)}Args`;if(!this.collector.hasArgumentMeta(E)){let R=`{ ${D.args.map((S)=>{return`${S.name}: "${S.type.name}",`}).join(" ")} }`;this.collector.addArgumentMeta(E,`export const ${E}Meta = ${R} as const;`)}return{argsTypeName:E}},W=D.type;if(W.isScalar||W.isEnum){let E=this.makeSelectionFunctionInputObjectValueForFieldWrapper(D,P);if(D.hasArgs)O();return this.collector.addSelectionFunction(W,E),`${D.name}: ${E}`}else if(W.ofType){let E=new n0(W.ofType.name,this.collector,this.options).makeSelectionFunction();if(D.hasArgs){let{argsTypeName:F}=O();return`${D.name}: (args: ${F}) => ${E}.bind({ collector: this, fieldName: "${D.name}", args, argsMeta: ${F}Meta })`}return`${D.name}: ${E}.bind({ collector: this, fieldName: "${D.name}" })`}else throw console.error(W),new Error(`Unknown type for field ${D.name}: ${W.name}`)}makeDirective(){if(!this.typeMeta.isDirective)return"";let D=`_directive_${this.typeMeta.isDirective.name}`;if(this.collector.hasDirectiveFunction(this.typeMeta.isDirective))return D;let P=`${this.typeName}Args`;if(!this.collector.hasArgumentType(P)){let W=this.typeMeta.isDirective.args.map((E)=>{let F=E.type.isScalar,R=E.type.isEnum,S=E.type.isInput,L=`${E.name}${E.type.isNonNull?"":"?"}`,B="any";if(F)B=this.ScalarTypeMap.get(E.type.name.replaceAll("!",""))??"any";else if(S||R)B=this.originalTypeNameToTypescriptTypeName(E.type.name);return`
|
|
348
348
|
/** ${E.description??`${L}`} */
|
|
349
349
|
${L}: ${B};`}).join(" ");this.collector.addArgumentType(P,`export type ${P} = { ${W} };`)}if(!this.collector.hasArgumentMeta(P)){let E=`{ ${this.typeMeta.isDirective.args.map((F)=>{return`${F.name}: "${F.type.name}",`}).join(" ")} }`;this.collector.addArgumentMeta(P,`export const ${P}Meta = ${E} as const;`)}let O=`
|
|
350
350
|
export const ${D} = (
|
|
@@ -431,7 +431,7 @@ spurious results.`)}}return!1};mE.instanceOf=jZ});var IP=J((lE)=>{Object.defineP
|
|
|
431
431
|
`:""}
|
|
432
432
|
};`;return this.collector.addSelectionFunction(this.typeMeta,`${R}
|
|
433
433
|
${F}
|
|
434
|
-
`),D}static makeRootOperationFunction(D,P){let{QueryTypeName:O,MutationTypeName:W,SubscriptionTypeName:E}=D,F=[...D.types.values()].filter((S)=>S.isDirective?.locations.some((L)=>[
|
|
434
|
+
`),D}static makeRootOperationFunction(D,P){let{QueryTypeName:O,MutationTypeName:W,SubscriptionTypeName:E}=D,F=[...D.types.values()].filter((S)=>S.isDirective?.locations.some((L)=>[UO.DirectiveLocation.FIELD,UO.DirectiveLocation.FRAGMENT_SPREAD,UO.DirectiveLocation.INLINE_FRAGMENT].includes(L))).map((S)=>{return`"${S.isDirective.name}": ${new n0(S.name,D,{}).makeDirective()}`});return`
|
|
435
435
|
${F?.length?`export const \$directives = {
|
|
436
436
|
${F.join(",\n")}
|
|
437
437
|
} as const;`:""}
|
|
@@ -645,7 +645,7 @@ spurious results.`)}}return!1};mE.instanceOf=jZ});var IP=J((lE)=>{Object.defineP
|
|
|
645
645
|
export default __client__ as typeof __client__ & {
|
|
646
646
|
init: typeof __init__;
|
|
647
647
|
};
|
|
648
|
-
`}}class r2{P;O;static FieldValueWrapperType;static EnumTypesMapped;static HelperTypes;static HelperFunctions;typeMeta;typeName;originalFullTypeName;constructor(D,P,O){this.collector=P;this.options=O;this.typeMeta=P.getType(D),this.originalFullTypeName=D,this.typeName=this.originalTypeNameToTypescriptFriendlyName(D)}static originalTypeNameToTypescriptFriendlyName(D){return D.replaceAll("[","").replaceAll("]","Array").replaceAll("!","")}originalTypeNameToTypescriptFriendlyName(D){return r2.originalTypeNameToTypescriptFriendlyName(D)}static originalTypeNameToTypescriptTypeNameWithoutModifiers(D,P=""){return`${D.replaceAll("[","").replaceAll("]","").replaceAll("!","")}${P}`}originalTypeNameToTypescriptTypeNameWithoutModifiers(D,P=""){return r2.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,P)}static originalTypeNameToTypescriptTypeName(D,P=""){return`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,P)}${Array.from({length:D.split("[").length-1}).fill("[]").join("")}`}originalTypeNameToTypescriptTypeName(D,P=""){return r2.originalTypeNameToTypescriptTypeName(D,P)}static makeRootOperationFunction(D,P,O,W){throw new Error("Method not implemented.")}}var CS="const Proxy = global.Proxy;\nProxy.prototype = {};\n\nexport const _ = Symbol(\"_\") as any;\nexport const OPTIONS = Symbol(\"OPTIONS\");\nexport class RootOperation {\n public static [OPTIONS] = {\n headers: {},\n _auth_fn: undefined as\n | (() => string | { [key: string]: string })\n | (() => Promise<string | { [key: string]: string }>)\n | undefined,\n scalars: {\n DateTime: (value: string) => new Date(value),\n DateTimeISO: (value: string) => new Date(value),\n Date: (value: string) => new Date(value),\n Time: (value: string) => new Date(value),\n JSON: (value: string) => JSON.parse(value),\n },\n };\n\n private utilSet = (obj: Record<string, any>, path: string[], value: any) =>\n path.reduce(\n (o, p, i, a) => (o[p] = a.length - 1 === i ? value : o[p] || {}),\n obj,\n );\n\n private rootCollector: OperationSelectionCollector | undefined = undefined;\n public registerRootCollector(collector: OperationSelectionCollector) {\n this.rootCollector = collector;\n }\n public async execute(headers: Record<string, string> = {}) {\n if (!this.rootCollector) {\n throw new Error(\"RootOperation has no registered collector\");\n }\n\n type selection = ReturnType<\n typeof OperationSelectionCollector.prototype.renderSelections\n >;\n const operations: {\n [key: string]: {\n selection: selection;\n rootSlw: SelectionWrapperImpl<string, string, number, any>;\n };\n } = {};\n for (const [\n opName,\n opSelection,\n ] of this.rootCollector?.selections.entries()) {\n if (opSelection[SLW_LAZY_FLAG]) continue;\n\n const rootSlw = opSelection;\n const selection = rootSlw[SLW_PARENT_COLLECTOR]!.renderSelections(\n [],\n [rootSlw],\n );\n\n operations[opName] = {\n selection,\n rootSlw,\n };\n }\n\n const ops = Object.entries(operations).reduce(\n (acc, [opName, { selection, rootSlw }]) => {\n const bodyVarDefCount = Object.entries(\n selection.variableDefinitions,\n ).filter(([_, v]) => v.location === \"body\").length;\n const body =\n bodyVarDefCount === 0\n ? undefined\n : bodyVarDefCount === 1 &&\n Object.keys(selection.variableDefinitions)\n .length === 1\n ? selection.variables\n : bodyVarDefCount === 1 &&\n \"$body\" in selection.variableDefinitions &&\n \"$body\" in selection.variables\n ? selection.variables[\"$body\"]\n : Object.fromEntries(\n Object.entries(selection.variableDefinitions)\n .filter(([_, v]) => v.location === \"body\")\n .map(([k, _]) => [\n k,\n selection.variables[k],\n ]),\n );\n\n return {\n ...acc,\n [opName]: {\n path: rootSlw[ROOT_OP_META]!.path,\n method: rootSlw[ROOT_OP_META]!.method,\n header: Object.fromEntries(\n Object.entries(selection.variableDefinitions)\n .filter(([_, v]) => v.location === \"header\")\n .map(([k, v]) => [k, selection.variables[k]]),\n ),\n params: {\n path: Object.fromEntries(\n Object.entries(selection.variableDefinitions)\n .filter(([_, v]) => v.location === \"path\")\n .map(([k, v]) => [\n k,\n selection.variables[k],\n ]),\n ),\n query: Object.fromEntries(\n Object.entries(selection.variableDefinitions)\n .filter(([_, v]) => v.location === \"query\")\n .map(([k, v]) => [\n k,\n selection.variables[k],\n ]),\n ),\n },\n body,\n cookie: Object.fromEntries(\n Object.entries(selection.variableDefinitions)\n .filter(([_, v]) => v.location === \"cookie\")\n .map(([k, v]) => [k, selection.variables[k]]),\n ),\n },\n };\n },\n {} as Record<\n string,\n {\n path: string;\n method:\n | \"get\"\n | \"post\"\n | \"put\"\n | \"delete\"\n | \"patch\"\n | \"head\"\n | \"options\"\n | \"trace\";\n header: Record<string, any>;\n params: {\n path: Record<string, any>;\n query: Record<string, any>;\n };\n body: Record<string, any>;\n cookie: Record<string, any>;\n }\n >,\n );\n // const subscription = `{${subscriptions.join(\"\")}}`;\n\n const results = Object.fromEntries(\n await Promise.all([\n ...Object.entries(ops).map(\n async ([opName, op]) =>\n [\n opName,\n await this.executeOperation(op, headers),\n ] as const,\n ),\n ]),\n );\n\n return results;\n }\n\n private async executeOperation(\n request: {\n path: string;\n method:\n | \"get\"\n | \"post\"\n | \"put\"\n | \"delete\"\n | \"patch\"\n | \"head\"\n | \"options\"\n | \"trace\";\n header: Record<string, any>;\n params: {\n path: Record<string, any>;\n query: Record<string, any>;\n };\n body: Record<string, any>;\n cookie: Record<string, any>;\n },\n headers: Record<string, string> = {},\n ) {\n let finalPath = request.path.replace(/\\{([^}]+)\\}/g, (_, key) => {\n return request.params.path[key];\n });\n const finalQuery = new URLSearchParams(request.params.query).toString();\n // remove the '{?arg1, arg2, ...}' part from the finalPath and add the finalQuery to the end\n finalPath = `${finalPath.replace(/\\{.*?\\}$/, \"\")}${\n finalQuery ? `?${finalQuery}` : \"\"\n }`;\n const cookies = new URLSearchParams(request.cookie).toString();\n\n const res = await fetch(`[ENDPOINT]${finalPath}`, {\n method: request.method,\n headers: {\n ...(request.body ? { \"Content-Type\": \"application/json\" } : {}),\n ...(request.header ? request.header : {}),\n ...(cookies ? { Cookie: cookies } : {}),\n ...headers,\n },\n body: request.body ? JSON.stringify(request.body) : undefined,\n });\n\n if (!res.ok) {\n throw new Error(`${res.statusText}: ${await res.text()}`);\n }\n\n const data = (await res.json()) as any;\n\n return data;\n }\n}\n\nexport type OperationSelectionCollectorRef = {\n ref: OperationSelectionCollector;\n};\nexport class OperationSelectionCollector {\n constructor(\n public readonly name?: string,\n public readonly parent?:\n | OperationSelectionCollector\n | OperationSelectionCollectorRef,\n public readonly op?: RootOperation,\n ) {\n if (op) op.registerRootCollector(this);\n }\n\n private executed = false;\n private operationResult: any | undefined = undefined;\n public async execute(\n headers: Record<string, string> = RootOperation[OPTIONS].headers,\n ) {\n if (!this.op) {\n throw new Error(\n \"OperationSelectionCollector is not registered to a root operation\",\n );\n }\n this.operationResult = await this.op.execute(headers);\n this.executed = true;\n }\n public get isExecuted() {\n return this.executed;\n }\n\n public readonly selections = new Map<\n string,\n SelectionWrapperImpl<string, string, number, any>\n >();\n public registerSelection(\n id: string,\n selection: SelectionWrapperImpl<string, string, number, any, any>,\n ) {\n this.selections.set(id, selection);\n }\n\n public renderSelections(\n path: string[] = [],\n renderOnlyTheseSelections: SelectionWrapperImpl<\n string,\n string,\n number,\n any\n >[] = [],\n ) {\n const varDefs: Record<\n string,\n {\n type: string;\n location: \"path\" | \"query\" | \"header\" | \"cookie\" | \"body\";\n }\n > = {};\n const variables: Record<string, any> = {};\n\n for (const [key, value] of [...this.selections.entries()].filter(\n ([k, v]) =>\n renderOnlyTheseSelections.length === 0 ||\n renderOnlyTheseSelections.find(\n (r) => r[SLW_UID] === v[SLW_UID],\n ),\n )) {\n const subPath = [...path, key];\n const { variableDefinitions: fieldVarDefs, variables: fieldVars } =\n value[SLW_RENDER_WITH_ARGS]();\n\n Object.assign(variables, fieldVars);\n Object.assign(varDefs, fieldVarDefs);\n\n value[SLW_REGISTER_PATH](subPath);\n\n if (value[SLW_PARENT_COLLECTOR] === undefined) {\n // do nothing\n } else if (\n value[SLW_COLLECTOR] instanceof OperationSelectionCollector\n ) {\n const { variableDefinitions: subVarDefs, variables: subVars } =\n value[SLW_COLLECTOR].renderSelections(subPath);\n\n Object.assign(variables, subVars);\n Object.assign(varDefs, subVarDefs);\n }\n }\n\n return {\n variableDefinitions: varDefs,\n variables,\n };\n }\n\n private utilGet = (obj: Record<string, any>, path: (string | number)[]) =>\n path.reduce((o, p) => o?.[p], obj);\n public getOperationResultPath<T>(\n path: (string | number)[] = [],\n type?: string,\n ): T {\n if (!this.op) {\n throw new Error(\n \"OperationSelectionCollector is not registered to a root operation\",\n );\n }\n\n let result = this.operationResult;\n\n if (path.length === 0) return result as T;\n\n result = this.utilGet(result, path) as T;\n\n if (type && result && type in RootOperation[OPTIONS].scalars) {\n let depth = 0;\n let finalResult = result instanceof Array ? [...result] : result;\n\n while (result instanceof Array) {\n result = result[0];\n depth++;\n }\n\n const deepParse = (\n res: any | any[],\n depth: number,\n parse: (v: string) => any,\n ) => {\n if (depth === 0) {\n return parse(res);\n }\n return res.map((rarr: any) =>\n deepParse(rarr, depth - 1, parse),\n );\n };\n\n return deepParse(\n finalResult,\n depth,\n RootOperation[OPTIONS].scalars[\n type as keyof (typeof RootOperation)[typeof OPTIONS][\"scalars\"]\n ],\n ) as T;\n }\n\n return result as T;\n }\n}\n\nexport const SLW_UID = Symbol(\"SLW_UID\");\nexport const SLW_FIELD_NAME = Symbol(\"SLW_FIELD_NAME\");\nexport const SLW_FIELD_TYPENAME = Symbol(\"SLW_FIELD_TYPENAME\");\nexport const SLW_FIELD_ARR_DEPTH = Symbol(\"SLW_FIELD_ARR_DEPTH\");\n\nexport const ROOT_OP_META = Symbol(\"ROOT_OP_META\");\n\nexport const SLW_VALUE = Symbol(\"SLW_VALUE\");\nexport const SLW_ARGS = Symbol(\"SLW_ARGS\");\nexport const SLW_ARGS_META = Symbol(\"SLW_ARGS_META\");\nexport const SLW_PARENT_SLW = Symbol(\"SLW_PARENT_SLW\");\nexport const SLW_LAZY_FLAG = Symbol(\"SLW_LAZY_FLAG\");\n\nexport const OP = Symbol(\"OP\");\nexport const ROOT_OP_COLLECTOR = Symbol(\"ROOT_OP_COLLECTOR\");\nexport const SLW_PARENT_COLLECTOR = Symbol(\"SLW_PARENT_COLLECTOR\");\nexport const SLW_COLLECTOR = Symbol(\"SLW_COLLECTOR\");\nexport const SLW_OP_PATH = Symbol(\"SLW_OP_PATH\");\nexport const SLW_REGISTER_PATH = Symbol(\"SLW_REGISTER_PATH\");\nexport const SLW_RENDER_WITH_ARGS = Symbol(\"SLW_RENDER_WITH_ARGS\");\n\nexport const SLW_RECREATE_VALUE_CALLBACK = Symbol(\n \"SLW_RECREATE_VALUE_CALLBACK\",\n);\n\nexport const SLW_CLONE = Symbol(\"SLW_CLONE\");\n\nexport const OP_SCALAR_RESULT = Symbol(\"OP_SCALAR_RESULT\");\nexport const SLW_IS_SCALAR_OP = Symbol(\"SLW_IS_SCALAR_OP\");\n\nexport class SelectionWrapperImpl<\n fieldName extends string,\n typeNamePure extends string,\n typeArrDepth extends number,\n valueT extends any = any,\n argsT extends Record<string, any> | any | undefined = undefined,\n> {\n private generateUniqueId(): string {\n return (\n performance.now().toString(36) +\n Math.random().toString(36).substring(2)\n );\n }\n [SLW_CLONE](\n overrides: {\n SLW_OP_PATH?: string;\n } = {},\n ) {\n const slw = new SelectionWrapper(\n this[SLW_FIELD_NAME],\n this[SLW_FIELD_TYPENAME],\n this[SLW_FIELD_ARR_DEPTH],\n this[SLW_VALUE],\n this[SLW_COLLECTOR],\n this[SLW_PARENT_COLLECTOR],\n this[SLW_ARGS],\n this[SLW_ARGS_META],\n this[SLW_RECREATE_VALUE_CALLBACK],\n this[SLW_IS_SCALAR_OP],\n );\n slw[ROOT_OP_META] = this[ROOT_OP_META];\n slw[SLW_PARENT_SLW] = this[SLW_PARENT_SLW];\n slw[SLW_OP_PATH] = overrides.SLW_OP_PATH ?? this[SLW_OP_PATH];\n return slw;\n }\n\n readonly [SLW_UID] = this.generateUniqueId();\n [ROOT_OP_COLLECTOR]?: OperationSelectionCollectorRef;\n readonly [SLW_PARENT_COLLECTOR]?: OperationSelectionCollector;\n readonly [SLW_COLLECTOR]?: OperationSelectionCollector;\n\n [SLW_FIELD_NAME]?: fieldName;\n [SLW_FIELD_TYPENAME]?: typeNamePure;\n [SLW_FIELD_ARR_DEPTH]?: typeArrDepth;\n [SLW_VALUE]?: valueT;\n\n [ROOT_OP_META]?: {\n path: string;\n method:\n | \"get\"\n | \"post\"\n | \"put\"\n | \"delete\"\n | \"patch\"\n | \"head\"\n | \"options\"\n | \"trace\";\n };\n\n [SLW_ARGS]?: argsT;\n [SLW_ARGS_META]?: Record<\n string,\n {\n type: string;\n location: \"path\" | \"query\" | \"header\" | \"cookie\" | \"body\";\n }\n >;\n\n [SLW_PARENT_SLW]?: SelectionWrapperImpl<string, string, number, any, any>;\n [SLW_LAZY_FLAG]?: boolean;\n\n [SLW_RECREATE_VALUE_CALLBACK]?: () => valueT;\n\n [SLW_IS_SCALAR_OP]?: boolean;\n\n constructor(\n fieldName?: fieldName,\n typeNamePure?: typeNamePure,\n typeArrDepth?: typeArrDepth,\n value?: valueT,\n collector?: OperationSelectionCollector,\n parent?: OperationSelectionCollector | OperationSelectionCollectorRef,\n args?: argsT,\n argsMeta?: Record<\n string,\n {\n type: string;\n location: \"path\" | \"query\" | \"header\" | \"cookie\" | \"body\";\n }\n >,\n reCreateValueCallback?: () => valueT,\n isScalarOp?: boolean,\n ) {\n this[SLW_FIELD_NAME] = fieldName;\n this[SLW_FIELD_TYPENAME] = typeNamePure;\n this[SLW_FIELD_ARR_DEPTH] = typeArrDepth;\n this[SLW_VALUE] = value;\n\n this[SLW_ARGS] = args;\n this[SLW_ARGS_META] = argsMeta;\n\n if (parent instanceof OperationSelectionCollector) {\n this[SLW_PARENT_COLLECTOR] = parent;\n } else if (parent && \"ref\" in parent) {\n this[SLW_PARENT_COLLECTOR] = parent.ref;\n }\n\n if (collector instanceof OperationSelectionCollector) {\n this[SLW_COLLECTOR] = collector;\n\n let rootCollector = collector;\n while (\n rootCollector?.parent instanceof OperationSelectionCollector\n ) {\n rootCollector = rootCollector.parent;\n }\n if (rootCollector.parent && \"ref\" in rootCollector.parent) {\n this[ROOT_OP_COLLECTOR] = rootCollector.parent;\n }\n }\n\n if (reCreateValueCallback) {\n this[SLW_RECREATE_VALUE_CALLBACK] = reCreateValueCallback;\n }\n if (isScalarOp !== undefined) {\n this[SLW_IS_SCALAR_OP] = isScalarOp;\n }\n }\n\n [SLW_OP_PATH]?: string;\n [SLW_REGISTER_PATH](path: string[]) {\n if (!this[SLW_OP_PATH]) this[SLW_OP_PATH] = path.join(\".\");\n }\n [SLW_RENDER_WITH_ARGS]() {\n if (this[SLW_ARGS]) {\n const args = this[SLW_ARGS];\n const argsMeta = this[SLW_ARGS_META]!;\n\n if (typeof args !== \"object\" || Array.isArray(args)) {\n return {\n variables: args,\n variableDefinitions: argsMeta,\n };\n }\n\n return {\n variables: args ?? {},\n variableDefinitions: argsMeta?.[\"$body\"]\n ? argsMeta ?? {}\n : args\n ? Object.keys(args).reduce(\n (acc, key) => {\n acc[key] = argsMeta?.[key];\n return acc;\n },\n {} as Record<\n string,\n {\n type: string;\n location:\n | \"path\"\n | \"query\"\n | \"header\"\n | \"cookie\"\n | \"body\";\n }\n >,\n )\n : {},\n };\n }\n return {\n variables: {},\n variableDefinitions: {} as Record<\n string,\n {\n type: string;\n location: \"path\" | \"query\" | \"header\" | \"cookie\" | \"body\";\n }\n >,\n };\n }\n}\nexport class SelectionWrapper<\n fieldName extends string,\n typeNamePure extends string,\n typeArrDepth extends number,\n valueT extends any = any,\n argsT extends Record<string, any> | any | undefined = undefined,\n> extends Proxy<\n SelectionWrapperImpl<fieldName, typeNamePure, typeArrDepth, valueT, argsT>\n> {\n constructor(\n fieldName?: fieldName,\n typeNamePure?: typeNamePure,\n typeArrDepth?: typeArrDepth,\n value?: valueT,\n collector?: OperationSelectionCollector,\n parent?: OperationSelectionCollector | OperationSelectionCollectorRef,\n args?: argsT,\n argsMeta?: Record<\n string,\n {\n type: string;\n location: \"path\" | \"query\" | \"header\" | \"cookie\" | \"body\";\n }\n >,\n reCreateValueCallback?: () => valueT,\n isScalarOp?: boolean,\n ) {\n super(\n new SelectionWrapperImpl<\n fieldName,\n typeNamePure,\n typeArrDepth,\n valueT,\n argsT\n >(\n fieldName,\n typeNamePure,\n typeArrDepth,\n value,\n collector,\n parent,\n args,\n argsMeta,\n reCreateValueCallback,\n isScalarOp,\n ),\n {\n // implement ProxyHandler methods\n ownKeys() {\n return Reflect.ownKeys(value ?? {});\n },\n getOwnPropertyDescriptor(target, prop) {\n return Reflect.getOwnPropertyDescriptor(value ?? {}, prop);\n },\n has(target, prop) {\n if (prop === Symbol.for(\"nodejs.util.inspect.custom\"))\n return true;\n return Reflect.has(value ?? {}, prop);\n },\n get: (target, prop) => {\n if (prop === \"$lazy\") {\n const that = this;\n function lazy(\n this: {\n parentSlw: SelectionWrapperImpl<\n fieldName,\n typeNamePure,\n typeArrDepth,\n valueT,\n argsT\n >;\n key: string;\n },\n args?: argsT,\n ) {\n const { parentSlw, key } = this;\n const newRootOpCollectorRef = {\n ref: new OperationSelectionCollector(\n undefined,\n undefined,\n new RootOperation(),\n ),\n };\n\n const newThisCollector =\n new OperationSelectionCollector(\n undefined,\n newRootOpCollectorRef,\n );\n const r =\n that[SLW_RECREATE_VALUE_CALLBACK]?.bind(\n newThisCollector,\n )();\n\n const newThat = new SelectionWrapper(\n that[SLW_FIELD_NAME],\n that[SLW_FIELD_TYPENAME],\n that[SLW_FIELD_ARR_DEPTH],\n r,\n newThisCollector,\n newRootOpCollectorRef,\n that[SLW_ARGS],\n that[SLW_ARGS_META],\n that[SLW_RECREATE_VALUE_CALLBACK],\n that[SLW_IS_SCALAR_OP],\n );\n Object.keys(r!).forEach(\n (key) =>\n (newThat as valueT)[key as keyof valueT],\n );\n\n newThat[ROOT_OP_META] = that[ROOT_OP_META];\n\n newThat[SLW_PARENT_SLW] = parentSlw;\n parentSlw[SLW_COLLECTOR]?.registerSelection(\n key,\n newThat,\n );\n newThat[SLW_ARGS] = {\n ...(that[SLW_ARGS] ?? {}),\n ...(args as any), // need to fix this\n } as argsT;\n\n newThat[SLW_OP_PATH] = that[SLW_OP_PATH];\n\n newRootOpCollectorRef.ref.registerSelection(\n newThat[SLW_FIELD_NAME]!,\n newThat,\n );\n\n return new Promise((resolve, reject) => {\n newRootOpCollectorRef.ref\n .execute()\n .catch(reject)\n .then(() => {\n resolve(newThat);\n });\n });\n }\n target[SLW_LAZY_FLAG] = true;\n lazy[SLW_LAZY_FLAG] = true;\n return lazy;\n }\n if (prop === SLW_VALUE && target[SLW_IS_SCALAR_OP]) {\n return (target[SLW_VALUE] as any)[OP_SCALAR_RESULT];\n }\n if (\n prop === SLW_UID ||\n prop === SLW_FIELD_NAME ||\n prop === SLW_FIELD_TYPENAME ||\n prop === SLW_FIELD_ARR_DEPTH ||\n prop === ROOT_OP_META ||\n prop === SLW_ARGS ||\n prop === SLW_ARGS_META ||\n prop === SLW_PARENT_SLW ||\n prop === SLW_LAZY_FLAG ||\n prop === ROOT_OP_COLLECTOR ||\n prop === SLW_PARENT_COLLECTOR ||\n prop === SLW_COLLECTOR ||\n prop === SLW_OP_PATH ||\n prop === SLW_VALUE ||\n prop === SLW_REGISTER_PATH ||\n prop === SLW_RENDER_WITH_ARGS ||\n prop === SLW_RECREATE_VALUE_CALLBACK ||\n prop === SLW_CLONE ||\n prop === SLW_IS_SCALAR_OP\n ) {\n return target[\n prop as keyof SelectionWrapperImpl<\n fieldName,\n typeNamePure,\n typeArrDepth,\n valueT\n >\n ];\n }\n if (prop === SLW_VALUE) {\n return value;\n }\n if (prop === \"then\") {\n return this;\n }\n\n let slw_value = target[SLW_VALUE] as\n | Record<string, any>\n | undefined;\n\n if (target[ROOT_OP_COLLECTOR]?.ref.isExecuted) {\n const getResultDataForTarget = (\n t: SelectionWrapperImpl<\n fieldName,\n typeNamePure,\n typeArrDepth,\n valueT,\n argsT\n >,\n ): valueT | undefined => {\n const data = t[\n ROOT_OP_COLLECTOR\n ]!.ref.getOperationResultPath<valueT>(\n (t[SLW_OP_PATH]?.split(\".\") ?? []).map((p) =>\n !isNaN(+p) ? +p : p,\n ),\n t[SLW_FIELD_TYPENAME],\n );\n return data;\n };\n\n if (!Object.hasOwn(slw_value ?? {}, String(prop))) {\n // check if the selected field is an array\n if (typeArrDepth) {\n if (!isNaN(+String(prop))) {\n const elm = target[SLW_CLONE]({\n SLW_OP_PATH:\n target[SLW_OP_PATH] +\n \".\" +\n String(prop),\n });\n return elm;\n }\n\n const data = getResultDataForTarget(target) as\n | valueT[]\n | undefined;\n\n if (data === undefined) return undefined;\n\n const proxiedData = Array.from(\n { length: data.length },\n (_, i) =>\n target[SLW_CLONE]({\n SLW_OP_PATH:\n target[SLW_OP_PATH] +\n \".\" +\n String(i),\n }),\n );\n\n const proto =\n Object.getPrototypeOf(proxiedData);\n if (Object.hasOwn(proto, prop)) {\n const v = (proxiedData as any)[prop];\n if (typeof v === \"function\")\n return v.bind(proxiedData);\n return v;\n }\n\n return () => proxiedData;\n }\n\n const data = getResultDataForTarget(target);\n if (data === undefined) return undefined;\n const proto = Object.getPrototypeOf(data);\n if (Object.hasOwn(proto, prop)) {\n const v = (data as any)[prop];\n if (typeof v === \"function\")\n return v.bind(data);\n return v;\n }\n\n return () => data;\n }\n\n let slw = slw_value?.[String(prop)];\n const slwOpPathIsIndexAccess = !isNaN(\n +target[SLW_OP_PATH]?.split(\".\").pop()!,\n );\n if (slwOpPathIsIndexAccess) {\n // index access detected, cloning\n slw = slw[SLW_CLONE]({\n SLW_OP_PATH:\n target[SLW_OP_PATH] + \".\" + String(prop),\n });\n }\n\n if (\n slw instanceof SelectionWrapperImpl &&\n slw[SLW_PARENT_COLLECTOR]\n ) {\n return slw;\n } else if (slw instanceof SelectionWrapperImpl) {\n return getResultDataForTarget(slw);\n } else if (slw[SLW_LAZY_FLAG]) {\n return slw;\n }\n\n return getResultDataForTarget(target);\n }\n\n if (\n Object.hasOwn(slw_value ?? {}, String(prop)) &&\n slw_value?.[String(prop)] instanceof\n SelectionWrapperImpl\n ) {\n if (target[SLW_COLLECTOR]) {\n target[SLW_COLLECTOR].registerSelection(\n String(prop),\n slw_value[String(prop)],\n );\n }\n if (!slw_value[String(prop)][SLW_PARENT_SLW]) {\n slw_value[String(prop)][SLW_PARENT_SLW] = target;\n }\n }\n if (slw_value?.[String(prop)]?.[SLW_LAZY_FLAG]) {\n if (!slw_value[String(prop)][SLW_PARENT_SLW]) {\n const lazyFn = slw_value[String(prop)];\n slw_value[String(prop)] = lazyFn.bind({\n parentSlw: target,\n key: String(prop),\n });\n slw_value[String(prop)][SLW_PARENT_SLW] = target;\n slw_value[String(prop)][SLW_LAZY_FLAG] = true;\n }\n }\n\n return slw_value?.[String(prop)] ?? undefined;\n },\n },\n );\n }\n}\n";class v0 extends r2{P;O;static ScalarTypeMap=new Map([["String","string"],["Int","number"],["Float","number"],["Boolean","boolean"],["ID","string"],["Date","Date"],["DateTime","Date"],["DateTimeISO","Date"],["Time","Date"],["JSON","Record<string, any>"]]);ScalarTypeMap=()=>new Map([...v0.ScalarTypeMap.entries()]);static FieldValueWrapperType=CS;static EnumTypesMapped=(D)=>{return`export interface EnumTypesMapped {
|
|
648
|
+
`}}class l2{P;O;static FieldValueWrapperType;static EnumTypesMapped;static HelperTypes;static HelperFunctions;typeMeta;typeName;originalFullTypeName;constructor(D,P,O){this.collector=P;this.options=O;this.typeMeta=P.getType(D),this.originalFullTypeName=D,this.typeName=this.originalTypeNameToTypescriptFriendlyName(D)}static originalTypeNameToTypescriptFriendlyName(D){return D.replaceAll("[","").replaceAll("]","Array").replaceAll("!","")}originalTypeNameToTypescriptFriendlyName(D){return l2.originalTypeNameToTypescriptFriendlyName(D)}static originalTypeNameToTypescriptTypeNameWithoutModifiers(D,P=""){return`${D.replaceAll("[","").replaceAll("]","").replaceAll("!","")}${P}`}originalTypeNameToTypescriptTypeNameWithoutModifiers(D,P=""){return l2.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,P)}static originalTypeNameToTypescriptTypeName(D,P=""){return`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,P)}${Array.from({length:D.split("[").length-1}).fill("[]").join("")}`}originalTypeNameToTypescriptTypeName(D,P=""){return l2.originalTypeNameToTypescriptTypeName(D,P)}static makeRootOperationFunction(D,P,O,W){throw new Error("Method not implemented.")}}var US="const Proxy = global.Proxy;\nProxy.prototype = {};\n\nexport const _ = Symbol(\"_\") as any;\nexport const OPTIONS = Symbol(\"OPTIONS\");\nexport class RootOperation {\n public static [OPTIONS] = {\n headers: {},\n _auth_fn: undefined as\n | (() => string | { [key: string]: string })\n | (() => Promise<string | { [key: string]: string }>)\n | undefined,\n scalars: {\n DateTime: (value: string) => new Date(value),\n DateTimeISO: (value: string) => new Date(value),\n Date: (value: string) => new Date(value),\n Time: (value: string) => new Date(value),\n JSON: (value: string) => JSON.parse(value),\n },\n };\n\n private utilSet = (obj: Record<string, any>, path: string[], value: any) =>\n path.reduce(\n (o, p, i, a) => (o[p] = a.length - 1 === i ? value : o[p] || {}),\n obj,\n );\n\n private rootCollector: OperationSelectionCollector | undefined = undefined;\n public registerRootCollector(collector: OperationSelectionCollector) {\n this.rootCollector = collector;\n }\n public async execute(headers: Record<string, string> = {}) {\n if (!this.rootCollector) {\n throw new Error(\"RootOperation has no registered collector\");\n }\n\n type selection = ReturnType<\n typeof OperationSelectionCollector.prototype.renderSelections\n >;\n const operations: {\n [key: string]: {\n selection: selection;\n rootSlw: SelectionWrapperImpl<string, string, number, any>;\n };\n } = {};\n for (const [\n opName,\n opSelection,\n ] of this.rootCollector?.selections.entries()) {\n if (opSelection[SLW_LAZY_FLAG]) continue;\n\n const rootSlw = opSelection;\n const selection = rootSlw[SLW_PARENT_COLLECTOR]!.renderSelections(\n [],\n [rootSlw],\n );\n\n operations[opName] = {\n selection,\n rootSlw,\n };\n }\n\n const ops = Object.entries(operations).reduce(\n (acc, [opName, { selection, rootSlw }]) => {\n const bodyVarDefCount = Object.entries(\n selection.variableDefinitions,\n ).filter(([_, v]) => v.location === \"body\").length;\n const body =\n bodyVarDefCount === 0\n ? undefined\n : bodyVarDefCount === 1 &&\n Object.keys(selection.variableDefinitions)\n .length === 1\n ? selection.variables\n : bodyVarDefCount === 1 &&\n \"$body\" in selection.variableDefinitions &&\n \"$body\" in selection.variables\n ? selection.variables[\"$body\"]\n : Object.fromEntries(\n Object.entries(selection.variableDefinitions)\n .filter(([_, v]) => v.location === \"body\")\n .map(([k, _]) => [\n k,\n selection.variables[k],\n ]),\n );\n\n return {\n ...acc,\n [opName]: {\n path: rootSlw[ROOT_OP_META]!.path,\n method: rootSlw[ROOT_OP_META]!.method,\n header: Object.fromEntries(\n Object.entries(selection.variableDefinitions)\n .filter(([_, v]) => v.location === \"header\")\n .map(([k, v]) => [k, selection.variables[k]]),\n ),\n params: {\n path: Object.fromEntries(\n Object.entries(selection.variableDefinitions)\n .filter(([_, v]) => v.location === \"path\")\n .map(([k, v]) => [\n k,\n selection.variables[k],\n ]),\n ),\n query: Object.fromEntries(\n Object.entries(selection.variableDefinitions)\n .filter(([_, v]) => v.location === \"query\")\n .map(([k, v]) => [\n k,\n selection.variables[k],\n ]),\n ),\n },\n body,\n cookie: Object.fromEntries(\n Object.entries(selection.variableDefinitions)\n .filter(([_, v]) => v.location === \"cookie\")\n .map(([k, v]) => [k, selection.variables[k]]),\n ),\n },\n };\n },\n {} as Record<\n string,\n {\n path: string;\n method:\n | \"get\"\n | \"post\"\n | \"put\"\n | \"delete\"\n | \"patch\"\n | \"head\"\n | \"options\"\n | \"trace\";\n header: Record<string, any>;\n params: {\n path: Record<string, any>;\n query: Record<string, any>;\n };\n body: Record<string, any>;\n cookie: Record<string, any>;\n }\n >,\n );\n // const subscription = `{${subscriptions.join(\"\")}}`;\n\n const results = Object.fromEntries(\n await Promise.all([\n ...Object.entries(ops).map(\n async ([opName, op]) =>\n [\n opName,\n await this.executeOperation(op, headers),\n ] as const,\n ),\n ]),\n );\n\n return results;\n }\n\n private async executeOperation(\n request: {\n path: string;\n method:\n | \"get\"\n | \"post\"\n | \"put\"\n | \"delete\"\n | \"patch\"\n | \"head\"\n | \"options\"\n | \"trace\";\n header: Record<string, any>;\n params: {\n path: Record<string, any>;\n query: Record<string, any>;\n };\n body: Record<string, any>;\n cookie: Record<string, any>;\n },\n headers: Record<string, string> = {},\n ) {\n let finalPath = request.path.replace(/\\{([^}]+)\\}/g, (_, key) => {\n return request.params.path[key];\n });\n const finalQuery = new URLSearchParams(request.params.query).toString();\n // remove the '{?arg1, arg2, ...}' part from the finalPath and add the finalQuery to the end\n finalPath = `${finalPath.replace(/\\{.*?\\}$/, \"\")}${\n finalQuery ? `?${finalQuery}` : \"\"\n }`;\n const cookies = new URLSearchParams(request.cookie).toString();\n\n const res = await fetch(`[ENDPOINT]${finalPath}`, {\n method: request.method,\n headers: {\n ...(request.body ? { \"Content-Type\": \"application/json\" } : {}),\n ...(request.header ? request.header : {}),\n ...(cookies ? { Cookie: cookies } : {}),\n ...headers,\n },\n body: request.body ? JSON.stringify(request.body) : undefined,\n });\n\n if (!res.ok) {\n throw new Error(`${res.statusText}: ${await res.text()}`);\n }\n\n const data = (await res.json()) as any;\n\n return data;\n }\n}\n\nexport type OperationSelectionCollectorRef = {\n ref: OperationSelectionCollector;\n};\nexport class OperationSelectionCollector {\n constructor(\n public readonly name?: string,\n public readonly parent?:\n | OperationSelectionCollector\n | OperationSelectionCollectorRef,\n public readonly op?: RootOperation,\n ) {\n if (op) op.registerRootCollector(this);\n }\n\n private executed = false;\n private operationResult: any | undefined = undefined;\n public async execute(\n headers: Record<string, string> = RootOperation[OPTIONS].headers,\n ) {\n if (!this.op) {\n throw new Error(\n \"OperationSelectionCollector is not registered to a root operation\",\n );\n }\n this.operationResult = await this.op.execute(headers);\n this.executed = true;\n }\n public get isExecuted() {\n return this.executed;\n }\n\n public readonly selections = new Map<\n string,\n SelectionWrapperImpl<string, string, number, any>\n >();\n public registerSelection(\n id: string,\n selection: SelectionWrapperImpl<string, string, number, any, any>,\n ) {\n this.selections.set(id, selection);\n }\n\n public renderSelections(\n path: string[] = [],\n renderOnlyTheseSelections: SelectionWrapperImpl<\n string,\n string,\n number,\n any\n >[] = [],\n ) {\n const varDefs: Record<\n string,\n {\n type: string;\n location: \"path\" | \"query\" | \"header\" | \"cookie\" | \"body\";\n }\n > = {};\n const variables: Record<string, any> = {};\n\n for (const [key, value] of [...this.selections.entries()].filter(\n ([k, v]) =>\n renderOnlyTheseSelections.length === 0 ||\n renderOnlyTheseSelections.find(\n (r) => r[SLW_UID] === v[SLW_UID],\n ),\n )) {\n const subPath = [...path, key];\n const { variableDefinitions: fieldVarDefs, variables: fieldVars } =\n value[SLW_RENDER_WITH_ARGS]();\n\n Object.assign(variables, fieldVars);\n Object.assign(varDefs, fieldVarDefs);\n\n value[SLW_REGISTER_PATH](subPath);\n\n if (value[SLW_PARENT_COLLECTOR] === undefined) {\n // do nothing\n } else if (\n value[SLW_COLLECTOR] instanceof OperationSelectionCollector\n ) {\n const { variableDefinitions: subVarDefs, variables: subVars } =\n value[SLW_COLLECTOR].renderSelections(subPath);\n\n Object.assign(variables, subVars);\n Object.assign(varDefs, subVarDefs);\n }\n }\n\n return {\n variableDefinitions: varDefs,\n variables,\n };\n }\n\n private utilGet = (obj: Record<string, any>, path: (string | number)[]) =>\n path.reduce((o, p) => o?.[p], obj);\n public getOperationResultPath<T>(\n path: (string | number)[] = [],\n type?: string,\n ): T {\n if (!this.op) {\n throw new Error(\n \"OperationSelectionCollector is not registered to a root operation\",\n );\n }\n\n let result = this.operationResult;\n\n if (path.length === 0) return result as T;\n\n result = this.utilGet(result, path) as T;\n\n if (type && result && type in RootOperation[OPTIONS].scalars) {\n let depth = 0;\n let finalResult = result instanceof Array ? [...result] : result;\n\n while (result instanceof Array) {\n result = result[0];\n depth++;\n }\n\n const deepParse = (\n res: any | any[],\n depth: number,\n parse: (v: string) => any,\n ) => {\n if (depth === 0) {\n return parse(res);\n }\n return res.map((rarr: any) =>\n deepParse(rarr, depth - 1, parse),\n );\n };\n\n return deepParse(\n finalResult,\n depth,\n RootOperation[OPTIONS].scalars[\n type as keyof (typeof RootOperation)[typeof OPTIONS][\"scalars\"]\n ],\n ) as T;\n }\n\n return result as T;\n }\n}\n\nexport const SLW_UID = Symbol(\"SLW_UID\");\nexport const SLW_FIELD_NAME = Symbol(\"SLW_FIELD_NAME\");\nexport const SLW_FIELD_TYPENAME = Symbol(\"SLW_FIELD_TYPENAME\");\nexport const SLW_FIELD_ARR_DEPTH = Symbol(\"SLW_FIELD_ARR_DEPTH\");\n\nexport const ROOT_OP_META = Symbol(\"ROOT_OP_META\");\n\nexport const SLW_VALUE = Symbol(\"SLW_VALUE\");\nexport const SLW_ARGS = Symbol(\"SLW_ARGS\");\nexport const SLW_ARGS_META = Symbol(\"SLW_ARGS_META\");\nexport const SLW_PARENT_SLW = Symbol(\"SLW_PARENT_SLW\");\nexport const SLW_LAZY_FLAG = Symbol(\"SLW_LAZY_FLAG\");\n\nexport const OP = Symbol(\"OP\");\nexport const ROOT_OP_COLLECTOR = Symbol(\"ROOT_OP_COLLECTOR\");\nexport const SLW_PARENT_COLLECTOR = Symbol(\"SLW_PARENT_COLLECTOR\");\nexport const SLW_COLLECTOR = Symbol(\"SLW_COLLECTOR\");\nexport const SLW_OP_PATH = Symbol(\"SLW_OP_PATH\");\nexport const SLW_REGISTER_PATH = Symbol(\"SLW_REGISTER_PATH\");\nexport const SLW_RENDER_WITH_ARGS = Symbol(\"SLW_RENDER_WITH_ARGS\");\n\nexport const SLW_RECREATE_VALUE_CALLBACK = Symbol(\n \"SLW_RECREATE_VALUE_CALLBACK\",\n);\n\nexport const SLW_CLONE = Symbol(\"SLW_CLONE\");\n\nexport const OP_SCALAR_RESULT = Symbol(\"OP_SCALAR_RESULT\");\nexport const SLW_IS_SCALAR_OP = Symbol(\"SLW_IS_SCALAR_OP\");\n\nexport class SelectionWrapperImpl<\n fieldName extends string,\n typeNamePure extends string,\n typeArrDepth extends number,\n valueT extends any = any,\n argsT extends Record<string, any> | any | undefined = undefined,\n> {\n private generateUniqueId(): string {\n return (\n performance.now().toString(36) +\n Math.random().toString(36).substring(2)\n );\n }\n [SLW_CLONE](\n overrides: {\n SLW_OP_PATH?: string;\n } = {},\n ) {\n const slw = new SelectionWrapper(\n this[SLW_FIELD_NAME],\n this[SLW_FIELD_TYPENAME],\n this[SLW_FIELD_ARR_DEPTH],\n this[SLW_VALUE],\n this[SLW_COLLECTOR],\n this[SLW_PARENT_COLLECTOR],\n this[SLW_ARGS],\n this[SLW_ARGS_META],\n this[SLW_RECREATE_VALUE_CALLBACK],\n this[SLW_IS_SCALAR_OP],\n );\n slw[ROOT_OP_META] = this[ROOT_OP_META];\n slw[SLW_PARENT_SLW] = this[SLW_PARENT_SLW];\n slw[SLW_OP_PATH] = overrides.SLW_OP_PATH ?? this[SLW_OP_PATH];\n return slw;\n }\n\n readonly [SLW_UID] = this.generateUniqueId();\n [ROOT_OP_COLLECTOR]?: OperationSelectionCollectorRef;\n readonly [SLW_PARENT_COLLECTOR]?: OperationSelectionCollector;\n readonly [SLW_COLLECTOR]?: OperationSelectionCollector;\n\n [SLW_FIELD_NAME]?: fieldName;\n [SLW_FIELD_TYPENAME]?: typeNamePure;\n [SLW_FIELD_ARR_DEPTH]?: typeArrDepth;\n [SLW_VALUE]?: valueT;\n\n [ROOT_OP_META]?: {\n path: string;\n method:\n | \"get\"\n | \"post\"\n | \"put\"\n | \"delete\"\n | \"patch\"\n | \"head\"\n | \"options\"\n | \"trace\";\n };\n\n [SLW_ARGS]?: argsT;\n [SLW_ARGS_META]?: Record<\n string,\n {\n type: string;\n location: \"path\" | \"query\" | \"header\" | \"cookie\" | \"body\";\n }\n >;\n\n [SLW_PARENT_SLW]?: SelectionWrapperImpl<string, string, number, any, any>;\n [SLW_LAZY_FLAG]?: boolean;\n\n [SLW_RECREATE_VALUE_CALLBACK]?: () => valueT;\n\n [SLW_IS_SCALAR_OP]?: boolean;\n\n constructor(\n fieldName?: fieldName,\n typeNamePure?: typeNamePure,\n typeArrDepth?: typeArrDepth,\n value?: valueT,\n collector?: OperationSelectionCollector,\n parent?: OperationSelectionCollector | OperationSelectionCollectorRef,\n args?: argsT,\n argsMeta?: Record<\n string,\n {\n type: string;\n location: \"path\" | \"query\" | \"header\" | \"cookie\" | \"body\";\n }\n >,\n reCreateValueCallback?: () => valueT,\n isScalarOp?: boolean,\n ) {\n this[SLW_FIELD_NAME] = fieldName;\n this[SLW_FIELD_TYPENAME] = typeNamePure;\n this[SLW_FIELD_ARR_DEPTH] = typeArrDepth;\n this[SLW_VALUE] = value;\n\n this[SLW_ARGS] = args;\n this[SLW_ARGS_META] = argsMeta;\n\n if (parent instanceof OperationSelectionCollector) {\n this[SLW_PARENT_COLLECTOR] = parent;\n } else if (parent && \"ref\" in parent) {\n this[SLW_PARENT_COLLECTOR] = parent.ref;\n }\n\n if (collector instanceof OperationSelectionCollector) {\n this[SLW_COLLECTOR] = collector;\n\n let rootCollector = collector;\n while (\n rootCollector?.parent instanceof OperationSelectionCollector\n ) {\n rootCollector = rootCollector.parent;\n }\n if (rootCollector.parent && \"ref\" in rootCollector.parent) {\n this[ROOT_OP_COLLECTOR] = rootCollector.parent;\n }\n }\n\n if (reCreateValueCallback) {\n this[SLW_RECREATE_VALUE_CALLBACK] = reCreateValueCallback;\n }\n if (isScalarOp !== undefined) {\n this[SLW_IS_SCALAR_OP] = isScalarOp;\n }\n }\n\n [SLW_OP_PATH]?: string;\n [SLW_REGISTER_PATH](path: string[]) {\n if (!this[SLW_OP_PATH]) this[SLW_OP_PATH] = path.join(\".\");\n }\n [SLW_RENDER_WITH_ARGS]() {\n if (this[SLW_ARGS]) {\n const args = this[SLW_ARGS];\n const argsMeta = this[SLW_ARGS_META]!;\n\n if (typeof args !== \"object\" || Array.isArray(args)) {\n return {\n variables: args,\n variableDefinitions: argsMeta,\n };\n }\n\n return {\n variables: args ?? {},\n variableDefinitions: argsMeta?.[\"$body\"]\n ? argsMeta ?? {}\n : args\n ? Object.keys(args).reduce(\n (acc, key) => {\n acc[key] = argsMeta?.[key];\n return acc;\n },\n {} as Record<\n string,\n {\n type: string;\n location:\n | \"path\"\n | \"query\"\n | \"header\"\n | \"cookie\"\n | \"body\";\n }\n >,\n )\n : {},\n };\n }\n return {\n variables: {},\n variableDefinitions: {} as Record<\n string,\n {\n type: string;\n location: \"path\" | \"query\" | \"header\" | \"cookie\" | \"body\";\n }\n >,\n };\n }\n}\nexport class SelectionWrapper<\n fieldName extends string,\n typeNamePure extends string,\n typeArrDepth extends number,\n valueT extends any = any,\n argsT extends Record<string, any> | any | undefined = undefined,\n> extends Proxy<\n SelectionWrapperImpl<fieldName, typeNamePure, typeArrDepth, valueT, argsT>\n> {\n constructor(\n fieldName?: fieldName,\n typeNamePure?: typeNamePure,\n typeArrDepth?: typeArrDepth,\n value?: valueT,\n collector?: OperationSelectionCollector,\n parent?: OperationSelectionCollector | OperationSelectionCollectorRef,\n args?: argsT,\n argsMeta?: Record<\n string,\n {\n type: string;\n location: \"path\" | \"query\" | \"header\" | \"cookie\" | \"body\";\n }\n >,\n reCreateValueCallback?: () => valueT,\n isScalarOp?: boolean,\n ) {\n super(\n new SelectionWrapperImpl<\n fieldName,\n typeNamePure,\n typeArrDepth,\n valueT,\n argsT\n >(\n fieldName,\n typeNamePure,\n typeArrDepth,\n value,\n collector,\n parent,\n args,\n argsMeta,\n reCreateValueCallback,\n isScalarOp,\n ),\n {\n // implement ProxyHandler methods\n ownKeys() {\n return Reflect.ownKeys(value ?? {});\n },\n getOwnPropertyDescriptor(target, prop) {\n return Reflect.getOwnPropertyDescriptor(value ?? {}, prop);\n },\n has(target, prop) {\n if (prop === Symbol.for(\"nodejs.util.inspect.custom\"))\n return true;\n return Reflect.has(value ?? {}, prop);\n },\n get: (target, prop) => {\n if (prop === \"$lazy\") {\n const that = this;\n function lazy(\n this: {\n parentSlw: SelectionWrapperImpl<\n fieldName,\n typeNamePure,\n typeArrDepth,\n valueT,\n argsT\n >;\n key: string;\n },\n args?: argsT,\n ) {\n const { parentSlw, key } = this;\n const newRootOpCollectorRef = {\n ref: new OperationSelectionCollector(\n undefined,\n undefined,\n new RootOperation(),\n ),\n };\n\n const newThisCollector =\n new OperationSelectionCollector(\n undefined,\n newRootOpCollectorRef,\n );\n const r =\n that[SLW_RECREATE_VALUE_CALLBACK]?.bind(\n newThisCollector,\n )();\n\n const newThat = new SelectionWrapper(\n that[SLW_FIELD_NAME],\n that[SLW_FIELD_TYPENAME],\n that[SLW_FIELD_ARR_DEPTH],\n r,\n newThisCollector,\n newRootOpCollectorRef,\n that[SLW_ARGS],\n that[SLW_ARGS_META],\n that[SLW_RECREATE_VALUE_CALLBACK],\n that[SLW_IS_SCALAR_OP],\n );\n Object.keys(r!).forEach(\n (key) =>\n (newThat as valueT)[key as keyof valueT],\n );\n\n newThat[ROOT_OP_META] = that[ROOT_OP_META];\n\n newThat[SLW_PARENT_SLW] = parentSlw;\n parentSlw[SLW_COLLECTOR]?.registerSelection(\n key,\n newThat,\n );\n newThat[SLW_ARGS] = {\n ...(that[SLW_ARGS] ?? {}),\n ...(args as any), // need to fix this\n } as argsT;\n\n newThat[SLW_OP_PATH] = that[SLW_OP_PATH];\n\n newRootOpCollectorRef.ref.registerSelection(\n newThat[SLW_FIELD_NAME]!,\n newThat,\n );\n\n return new Promise((resolve, reject) => {\n newRootOpCollectorRef.ref\n .execute()\n .catch(reject)\n .then(() => {\n resolve(newThat);\n });\n });\n }\n target[SLW_LAZY_FLAG] = true;\n lazy[SLW_LAZY_FLAG] = true;\n return lazy;\n }\n if (prop === SLW_VALUE && target[SLW_IS_SCALAR_OP]) {\n return (target[SLW_VALUE] as any)[OP_SCALAR_RESULT];\n }\n if (\n prop === SLW_UID ||\n prop === SLW_FIELD_NAME ||\n prop === SLW_FIELD_TYPENAME ||\n prop === SLW_FIELD_ARR_DEPTH ||\n prop === ROOT_OP_META ||\n prop === SLW_ARGS ||\n prop === SLW_ARGS_META ||\n prop === SLW_PARENT_SLW ||\n prop === SLW_LAZY_FLAG ||\n prop === ROOT_OP_COLLECTOR ||\n prop === SLW_PARENT_COLLECTOR ||\n prop === SLW_COLLECTOR ||\n prop === SLW_OP_PATH ||\n prop === SLW_VALUE ||\n prop === SLW_REGISTER_PATH ||\n prop === SLW_RENDER_WITH_ARGS ||\n prop === SLW_RECREATE_VALUE_CALLBACK ||\n prop === SLW_CLONE ||\n prop === SLW_IS_SCALAR_OP\n ) {\n return target[\n prop as keyof SelectionWrapperImpl<\n fieldName,\n typeNamePure,\n typeArrDepth,\n valueT\n >\n ];\n }\n if (prop === SLW_VALUE) {\n return value;\n }\n if (prop === \"then\") {\n return this;\n }\n\n let slw_value = target[SLW_VALUE] as\n | Record<string, any>\n | undefined;\n\n if (target[ROOT_OP_COLLECTOR]?.ref.isExecuted) {\n const getResultDataForTarget = (\n t: SelectionWrapperImpl<\n fieldName,\n typeNamePure,\n typeArrDepth,\n valueT,\n argsT\n >,\n ): valueT | undefined => {\n const data = t[\n ROOT_OP_COLLECTOR\n ]!.ref.getOperationResultPath<valueT>(\n (t[SLW_OP_PATH]?.split(\".\") ?? []).map((p) =>\n !isNaN(+p) ? +p : p,\n ),\n t[SLW_FIELD_TYPENAME],\n );\n return data;\n };\n\n if (!Object.hasOwn(slw_value ?? {}, String(prop))) {\n // check if the selected field is an array\n if (typeArrDepth) {\n if (!isNaN(+String(prop))) {\n const elm = target[SLW_CLONE]({\n SLW_OP_PATH:\n target[SLW_OP_PATH] +\n \".\" +\n String(prop),\n });\n return elm;\n }\n\n const data = getResultDataForTarget(target) as\n | valueT[]\n | undefined;\n\n if (data === undefined) return undefined;\n\n const proxiedData = Array.from(\n { length: data.length },\n (_, i) =>\n target[SLW_CLONE]({\n SLW_OP_PATH:\n target[SLW_OP_PATH] +\n \".\" +\n String(i),\n }),\n );\n\n const proto =\n Object.getPrototypeOf(proxiedData);\n if (Object.hasOwn(proto, prop)) {\n const v = (proxiedData as any)[prop];\n if (typeof v === \"function\")\n return v.bind(proxiedData);\n return v;\n }\n\n return () => proxiedData;\n }\n\n const data = getResultDataForTarget(target);\n if (data === undefined) return undefined;\n const proto = Object.getPrototypeOf(data);\n if (Object.hasOwn(proto, prop)) {\n const v = (data as any)[prop];\n if (typeof v === \"function\")\n return v.bind(data);\n return v;\n }\n\n return () => data;\n }\n\n let slw = slw_value?.[String(prop)];\n const slwOpPathIsIndexAccess = !isNaN(\n +target[SLW_OP_PATH]?.split(\".\").pop()!,\n );\n if (slwOpPathIsIndexAccess) {\n // index access detected, cloning\n slw = slw[SLW_CLONE]({\n SLW_OP_PATH:\n target[SLW_OP_PATH] + \".\" + String(prop),\n });\n }\n\n if (\n slw instanceof SelectionWrapperImpl &&\n slw[SLW_PARENT_COLLECTOR]\n ) {\n return slw;\n } else if (slw instanceof SelectionWrapperImpl) {\n return getResultDataForTarget(slw);\n } else if (slw[SLW_LAZY_FLAG]) {\n return slw;\n }\n\n return getResultDataForTarget(target);\n }\n\n if (\n Object.hasOwn(slw_value ?? {}, String(prop)) &&\n slw_value?.[String(prop)] instanceof\n SelectionWrapperImpl\n ) {\n if (target[SLW_COLLECTOR]) {\n target[SLW_COLLECTOR].registerSelection(\n String(prop),\n slw_value[String(prop)],\n );\n }\n if (!slw_value[String(prop)][SLW_PARENT_SLW]) {\n slw_value[String(prop)][SLW_PARENT_SLW] = target;\n }\n }\n if (slw_value?.[String(prop)]?.[SLW_LAZY_FLAG]) {\n if (!slw_value[String(prop)][SLW_PARENT_SLW]) {\n const lazyFn = slw_value[String(prop)];\n slw_value[String(prop)] = lazyFn.bind({\n parentSlw: target,\n key: String(prop),\n });\n slw_value[String(prop)][SLW_PARENT_SLW] = target;\n slw_value[String(prop)][SLW_LAZY_FLAG] = true;\n }\n }\n\n return slw_value?.[String(prop)] ?? undefined;\n },\n },\n );\n }\n}\n";class x0 extends l2{P;O;static ScalarTypeMap=new Map([["String","string"],["Int","number"],["Float","number"],["Boolean","boolean"],["ID","string"],["Date","Date"],["DateTime","Date"],["DateTimeISO","Date"],["Time","Date"],["JSON","Record<string, any>"]]);ScalarTypeMap=()=>new Map([...x0.ScalarTypeMap.entries()]);static FieldValueWrapperType=US;static EnumTypesMapped=(D)=>{return`export interface EnumTypesMapped {
|
|
649
649
|
${Array.from(D.enumsTypes.keys()).map((P)=>P.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")).filter((P,O,W)=>W.indexOf(P)===O).map((P)=>`"${P}": ${P},`).join("\n")}
|
|
650
650
|
};`};static UnionTypesMapped=(D)=>{return`export interface UnionTypesMapped {
|
|
651
651
|
${Array.from(D.types.entries()).filter(([P,O])=>O.isUnion).map(([P,O])=>[P.replaceAll("[","").replaceAll("]","").replaceAll("!",""),O]).map(([P,O])=>`"${P}": ${P}${O.isList&&!O.isInput?"Array":""};`).filter((P,O,W)=>W.indexOf(P)===O).join("\n")}
|
|
@@ -654,7 +654,7 @@ spurious results.`)}}return!1};mE.instanceOf=jZ});var IP=J((lE)=>{Object.defineP
|
|
|
654
654
|
${D.map((P)=>`"${P.name}": ${P.scalarTSType};`).join("\n")}
|
|
655
655
|
}
|
|
656
656
|
export interface ScalarTypeMapDefault {
|
|
657
|
-
${Array.from(
|
|
657
|
+
${Array.from(x0.ScalarTypeMap).map(([P,O])=>`"${P}": ${O};`).join("\n")}
|
|
658
658
|
};
|
|
659
659
|
|
|
660
660
|
type SelectionFnParent = {
|
|
@@ -992,7 +992,7 @@ spurious results.`)}}return!1};mE.instanceOf=jZ});var IP=J((lE)=>{Object.defineP
|
|
|
992
992
|
${W}
|
|
993
993
|
};
|
|
994
994
|
`;if(this.collector.hasEnumTypeName(D)&&this.collector.getEnumTypeByName(D)!==E(D)){let F=0,R=[D];while(this.collector.hasEnumTypeName(R.join("_")))R=[D,(++F).toString()];this.typeMeta.name=R.join("_"),this.collector.addEnumType(this.typeMeta,E(this.typeMeta.name))}else this.typeMeta.name=D,this.collector.addEnumType(this.typeMeta,E(D));return D}makeSelectionTypeInputValueForFieldWrapperType(D,P){let O="";if(P.isEnum)O=P.ofType.name.replaceAll("!","").replaceAll("[","").replaceAll("]","");else O=this.ScalarTypeMap().get(P.name.replaceAll("!","").replaceAll("[","").replaceAll("]",""))??(P.scalarTSType?`ScalarTypeMapWithCustom["${P.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}"]`:"any");if(P.isList)return`${Array.from({length:P.isList}).map((W)=>"Array<").join("")}${O}${Array.from({length:P.isList}).map((W)=>">").join("")}`;return O}makeSelectionTypeInputValueForField(D,P=[],O=!1){let W=D.description?`/* ${D.description} */\n`:"";if(D.type.isScalar||D.type.isEnum){let E=this.makeSelectionTypeInputValueForFieldWrapperType(D.name,D.type);return this.collector.addSelectionType(D.type,E),`${W}${D.name}${D.type.isNonNull?"":"?"}: ${E};`}else if(D.type.isUnion&&D.type.possibleTypes.every((E)=>E.isScalar||E.isEnum))return`${W}${D.name}${D.type.isNonNull?"":"?"}: ${Array.from({length:D.type.isList}).map((E)=>"Array<").join("")}${D.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}
|
|
995
|
-
${Array.from({length:D.type.isList}).map((E)=>">").join("")};`;else if(D.type.ofType){let E=new
|
|
995
|
+
${Array.from({length:D.type.isList}).map((E)=>">").join("")};`;else if(D.type.ofType){let E=new x0(D.type.ofType.name,this.collector,this.options).makeSelectionType();return`${W}${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 P="";if(this.typeMeta.isUnion){let O=this.typeMeta.possibleTypes.map((W)=>W.isScalar||W.isEnum?this.makeSelectionTypeInputValueForFieldWrapperType(W.name,W):this.typeMeta.isInput?`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(W.name)}`:`${this.originalTypeNameToTypescriptFriendlyName(W.name)}`).join(" | ");P=`
|
|
996
996
|
export type ${D} = ${O};
|
|
997
997
|
`}else P=`
|
|
998
998
|
export type ${D} = {
|
|
@@ -1005,7 +1005,7 @@ spurious results.`)}}return!1};mE.instanceOf=jZ});var IP=J((lE)=>{Object.defineP
|
|
|
1005
1005
|
{},
|
|
1006
1006
|
this,
|
|
1007
1007
|
undefined,
|
|
1008
|
-
)`}makeSelectionFunctionInputObjectValueForField(D,P){let O=D.type;if(O.isScalar||O.isEnum||O.isUnion&&O.possibleTypes.every((W)=>W.isScalar||W.isEnum)){let W=this.makeSelectionFunctionInputObjectValueForFieldWrapper(D,P);return this.collector.addSelectionFunction(O,W),`${D.name}: ${W}`}else if(O.ofType){let W=new
|
|
1008
|
+
)`}makeSelectionFunctionInputObjectValueForField(D,P){let O=D.type;if(O.isScalar||O.isEnum||O.isUnion&&O.possibleTypes.every((W)=>W.isScalar||W.isEnum)){let W=this.makeSelectionFunctionInputObjectValueForFieldWrapper(D,P);return this.collector.addSelectionFunction(O,W),`${D.name}: ${W}`}else if(O.ofType){let W=new x0(O.ofType.name,this.collector,this.options).makeSelectionFunction();return`${D.name}: ${W}.bind({ collector: this, fieldName: "${D.name}" })`}else throw console.error(O),new Error(`Unknown type for field ${D.name}: ${O.name}`)}makeSelectionFunction(){if(this.typeMeta.isScalar||this.typeMeta.isEnum)return`new SelectionWrapper(
|
|
1009
1009
|
"${this.typeName}",
|
|
1010
1010
|
"${this.typeMeta.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")}",
|
|
1011
1011
|
${this.typeMeta.isList??0},
|
|
@@ -1066,16 +1066,16 @@ spurious results.`)}}return!1};mE.instanceOf=jZ});var IP=J((lE)=>{Object.defineP
|
|
|
1066
1066
|
},`;return`${R(V.name)}: {
|
|
1067
1067
|
type: "${V.type.name}",
|
|
1068
1068
|
location: "${V.location}",
|
|
1069
|
-
},`}).join(" ")} }`;P.addArgumentMeta($,`export const ${$}Meta = ${y} as const;`)}return{argsTypeName:$}},Z=()=>{let $=(V)=>{let DD=V.type.isScalar,N=V.type.isEnum,ED=V.type.isInput,
|
|
1070
|
-
${_?`/** ${_??`${
|
|
1071
|
-
${
|
|
1069
|
+
},`}).join(" ")} }`;P.addArgumentMeta($,`export const ${$}Meta = ${y} as const;`)}return{argsTypeName:$}},Z=()=>{let $=(V)=>{let DD=V.type.isScalar,N=V.type.isEnum,ED=V.type.isInput,JD=`${R(V.name)}${V.type.isNonNull?"":"?"}`,BD="any";if(DD)BD=this.ScalarTypeMap.get(V.type.name.replaceAll("!",""))??"any";else if(ED||N)BD=`${this.originalTypeNameToTypescriptTypeName(V.type.name)}`;return{description:V.description,argKey:JD,argType:BD}};if(!S.args.length)return;let x=S.args.some((V)=>V.type.isNonNull),y=`${S.name.slice(0,1).toUpperCase()}${S.name.slice(1)}Args`;if(!P.hasArgumentType(y)){let V;if(S.args.length===1&&S.args[0].name==="$")V=S.args[0].type.isScalar&&S.args[0].type.scalarTSType?`ScalarTypeMapWithCustom["${S.args[0].type.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}"]`:new x0(S.args[0].type.name,P,O).makeSelectionType();else V=`{ ${S.args.map((N)=>{if(N.name==="$"&&(L||B))return N.type.inputFields.map((q)=>{let{description:_,argType:TD,argKey:K0}=$(q);return`
|
|
1070
|
+
${_?`/** ${_??`${K0}`} */`:""}
|
|
1071
|
+
${K0}: ${TD};
|
|
1072
1072
|
`}).join("\n");else if(N.name==="$"&&!L&&!B){let{description:q,argType:_}=$(N);return`
|
|
1073
1073
|
${q?`/** ${q??`${N.location==="query"?"$query":"$body"}`} */`:""}
|
|
1074
1074
|
${N.location==="query"?"$query":"$body"}: ${_};
|
|
1075
|
-
`}let{description:ED,argType:
|
|
1076
|
-
${ED?`/** ${ED??`${
|
|
1077
|
-
${
|
|
1078
|
-
`}).join(" ")} }`;P.addArgumentType(y,`export type ${y} = ${V};`)}return{argsTypeName:y,hasAtLeastOneNonNullArg:x}},H=Y(),
|
|
1075
|
+
`}let{description:ED,argType:JD,argKey:BD}=$(N);return`
|
|
1076
|
+
${ED?`/** ${ED??`${BD}`} */`:""}
|
|
1077
|
+
${BD}: ${JD};
|
|
1078
|
+
`}).join(" ")} }`;P.addArgumentType(y,`export type ${y} = ${V};`)}return{argsTypeName:y,hasAtLeastOneNonNullArg:x}},H=Y(),C=Z(),X=S.type.isScalar||S.type.isEnum?`makeSLFNScalarOp(
|
|
1079
1079
|
makeScalarOperationSelection(
|
|
1080
1080
|
"${S.name}",
|
|
1081
1081
|
"${S.type.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")}",
|
|
@@ -1085,9 +1085,9 @@ spurious results.`)}}return!1};mE.instanceOf=jZ});var IP=J((lE)=>{Object.defineP
|
|
|
1085
1085
|
"${S.name}",
|
|
1086
1086
|
"${S.type.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")}",
|
|
1087
1087
|
${S.type.isList??0},
|
|
1088
|
-
${
|
|
1089
|
-
)`:new
|
|
1090
|
-
${S.name}: (${
|
|
1088
|
+
${C?"args":"undefined"}
|
|
1089
|
+
)`:new x0(S.type.name,P,O).makeSelectionFunction(),I=`
|
|
1090
|
+
${S.name}: (${C?`args: ${C.argsTypeName}`:""}) =>
|
|
1091
1091
|
${X}.bind({
|
|
1092
1092
|
collector: this,
|
|
1093
1093
|
fieldName: "${S.name}",
|
|
@@ -1096,7 +1096,7 @@ spurious results.`)}}return!1};mE.instanceOf=jZ});var IP=J((lE)=>{Object.defineP
|
|
|
1096
1096
|
${H?`args, argsMeta: ${H.argsTypeName}Meta`:""}
|
|
1097
1097
|
})${S.type.isScalar||S.type.isEnum?"()":""},
|
|
1098
1098
|
`;if(!S.type.isScalar&&!S.type.isEnum)W.set(S.name,`(
|
|
1099
|
-
${
|
|
1099
|
+
${C?`args: ${C.argsTypeName}`:""}
|
|
1100
1100
|
) =>
|
|
1101
1101
|
ReturnType<
|
|
1102
1102
|
SLFN<
|
|
@@ -1107,7 +1107,7 @@ spurious results.`)}}return!1};mE.instanceOf=jZ});var IP=J((lE)=>{Object.defineP
|
|
|
1107
1107
|
${S.type.isList??0},
|
|
1108
1108
|
{
|
|
1109
1109
|
\$lazy: (
|
|
1110
|
-
${
|
|
1110
|
+
${C?`args: ${C.argsTypeName}`:""}
|
|
1111
1111
|
) => Promise<"T">
|
|
1112
1112
|
},
|
|
1113
1113
|
"\$lazy"
|
|
@@ -1321,27 +1321,27 @@ spurious results.`)}}return!1};mE.instanceOf=jZ});var IP=J((lE)=>{Object.defineP
|
|
|
1321
1321
|
export default __client__ as typeof __client__ & {
|
|
1322
1322
|
init: typeof __init__;
|
|
1323
1323
|
};
|
|
1324
|
-
`}}var d2={};v6(d2,{Generator:()=>US});var zO=XD(K0(),1);var QD=XD(K0(),1);var JS=(D,P,O)=>{let W={types:[],directives:[],query:[],mutation:[],subscription:[]},E=D.getQueryType();if(E)for(let S of Object.values(E.getFields()))W.query.push(h3(D,S,"query",P,O));let F=D.getMutationType();if(F)for(let S of Object.values(F.getFields()))W.mutation.push(h3(D,S,"mutation",P,O));let R=D.getSubscriptionType();if(R)for(let S of Object.values(R.getFields()))W.subscription.push(h3(D,S,"subscription",P,O));for(let S in D.getTypeMap()){if(!P.includeSchemaDefinition){if(["__Schema","__Type","__TypeKind","__Field","__InputValue","__EnumValue","__Directive"].includes(S))continue}let L=D.getTypeMap()[S];if(QD.isObjectType(L)||QD.isInterfaceType(L))W.types.push(DP(D,L,P,O))}for(let S of D.getDirectives())W.directives.push(kM(D,S,P,O));return W},h3=(D,P,O,W,E)=>{let F={name:P.name,description:P.description,operation:O,args:[],type:DP(D,P.type,W,E)};for(let R in P.args){let S=P.args[R];F.args.push(GO(D,S,W,E))}return F},GO=(D,P,O,W)=>{return{name:P.name,hasArgs:!1,args:[],description:P.description,type:DP(D,P.type,O,W)}},DP=(D,P,O,W)=>{let E=QD.getNamedType(P),F={name:P.toString(),description:E.description,isList:P.toString().split("[").length-1,isNonNull:P.toString().endsWith("!"),isScalar:E instanceof QD.GraphQLScalarType,isEnum:E instanceof QD.GraphQLEnumType,isInput:E instanceof QD.GraphQLInputObjectType,isInterface:E instanceof QD.GraphQLInterfaceType,isObject:E instanceof QD.GraphQLObjectType,isUnion:E instanceof QD.GraphQLUnionType,isQuery:!1,isMutation:!1,isSubscription:!1,fields:[],possibleTypes:[],enumValues:[],inputFields:[]};if(W?.hasType(F.name))return W.getType(F.name);else W?.addType(F);if(F.ofType=F,F.isEnum)for(let R of E.getValues())F.enumValues.push({name:R.name,description:R.description});if(F.isInput){let R=E.getFields();for(let S in R)F.inputFields.push(GO(D,R[S],O,W))}if(F.isInterface){let R=E.getFields();for(let S in R)F.fields.push(AS(D,R[S],O,W))}if(F.isObject){let R=E.getFields();for(let S in R)F.fields.push(AS(D,R[S],O,W))}if(F.isUnion)for(let R of E.getTypes())F.possibleTypes.push(DP(D,R,O,W));if(E instanceof QD.GraphQLObjectType){if(E.name==="Query")F.isQuery=!0;else if(E.name==="Mutation")F.isMutation=!0;else if(E.name==="Subscription")F.isSubscription=!0}if(W)W.addType(F);return F},AS=(D,P,O,W)=>{let E={name:P.name,description:P.description,hasArgs:Object.keys(P.args).length>0,args:[],type:DP(D,P.type,O,W)};for(let F in P.args){let R=P.args[F];E.args.push(GO(D,R,O,W))}return E},kM=(D,P,O,W)=>{let E={name:P.name,description:P.description,locations:P.locations,args:[]};for(let F in P.args){let R=P.args[F];E.args.push(GO(D,R,O,W))}if(W)W.addType({name:`Directive_${P.name}`,description:P.description,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:E});return E};class v3{D;P;O;OperationTypeNames;constructor(D,P,O){this.QueryTypeName=D;this.MutationTypeName=P;this.SubscriptionTypeName=O;this.OperationTypeNames=[D,P,O].filter((W)=>W)}_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)}_enumsTypes=new Map;get enumsTypes(){return this._enumsTypes}addEnumType(D,P){this._enumsTypes.set(D,P)}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,P){this._argumentTypes.set(D,P)}hasArgumentType(D){return this._argumentTypes.has(D)}getArgumentType(D){return this._argumentTypes.get(D)}_argumentMeta=new Map;get argumentMeta(){return this._argumentMeta}addArgumentMeta(D,P){this._argumentMeta.set(D,P)}hasArgumentMeta(D){return this._argumentMeta.has(D)}getArgumentMeta(D){return this._argumentMeta.get(D)}_directivesFunctions=new Map;get directivesFunctions(){return this._directivesFunctions}addDirectiveFunction(D,P){this._directivesFunctions.set(D,P)}hasDirectiveFunction(D){return this._directivesFunctions.has(D)}getDirectiveFunction(D){return this._directivesFunctions.get(D)}_selectionTypes=new Map;get selectionTypes(){return this._selectionTypes}addSelectionType(D,P){this._selectionTypes.set(D,P)}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,P){this._selectionFunctions.set(D,P)}hasSelectionFunction(D){if(!D)return!1;return this._selectionFunctions.has(D)}getSelectionFunction(D){return this._selectionFunctions.get(D)}}class US{D;constructor(D){this.Codegen=D}async generate({schema:D,options:P,authConfig:O}){let W=D.getQueryType()?.name,E=D.getMutationType()?.name,F=D.getSubscriptionType()?.name,R=new v3(W,E,F);JS(D,P,R);for(let[L,B]of R.types.entries()){if(!B.isEnum)continue;new this.Codegen(L,R,P).makeEnumType()}for(let[L,B]of R.types.entries()){if(!B.isInput)continue;new this.Codegen(L,R,P).makeSelectionType()}for(let[L,B]of R.types.entries()){if(!B.isDirective?.locations.some((Y)=>[zO.DirectiveLocation.FIELD,zO.DirectiveLocation.FRAGMENT_SPREAD,zO.DirectiveLocation.INLINE_FRAGMENT].includes(Y)))continue;new this.Codegen(L,R,P).makeDirective()}for(let[L,B]of R.types.entries()){if(B.isScalar||B.isInput||B.isEnum||B.isDirective)continue;new this.Codegen(L,R,P).makeSelectionType(),new this.Codegen(L,R,P).makeSelectionFunction()}return[this.Codegen.FieldValueWrapperType,this.Codegen.HelperTypes,this.Codegen.HelperFunctions,...[...R.enumsTypes.entries()].map(([L,B])=>B).filter((L,B,Y)=>Y.indexOf(L)===B),...[...R.argumentTypes.entries()].map(([L,B])=>B).filter((L,B,Y)=>Y.indexOf(L)===B),...[...R.argumentMeta.entries()].map(([L,B])=>B).filter((L,B,Y)=>Y.indexOf(L)===B),...[...R.selectionTypes.entries()].filter(([L])=>L.isInput).map(([L,B])=>B).filter((L,B,Y)=>Y.indexOf(L)===B),this.Codegen.EnumTypesMapped(R),...[...R.selectionFunctions.entries()].filter(([L])=>!L.isScalar&&!L.isEnum&&!L.isInput).map(([L,B])=>B),...[...R.directivesFunctions.entries()].map(([L,B])=>B),this.Codegen.makeRootOperationFunction(R,O)].join("\n")}}var a2={};v6(a2,{Generator:()=>qS});var wD=(D)=>{let P="";for(let O of D.filter(Boolean))P+=O.charAt(0).toUpperCase()+O.slice(1)+"$";return P.slice(0,-1)},XS=(D,P,O)=>{let W={types:[],operations:[],customScalars:[]};for(let[E,F]of Object.entries(D?.components?.schemas??{}))W.types.push(gD(D,E,F,"schemas",{isNonNull:!1},O));for(let[E,F]of Object.entries(D?.paths??{})){if("$ref"in F)continue;for(let[R,S]of Object.entries(F)){if(!S)continue;if("$ref"in S){console.warn(`TODO: Handle \$ref in methodValue for ${E}`);continue}W.operations.push(hM(D,E,R,S,P,O))}}return W},g3=(D,P,O,W)=>{let E={name:D,description:P,isScalar:!0,scalarTSType:O,isEnum:!1,isObject:!1,isUnion:!1,isList:0,isNonNull:!1,fields:[],possibleTypes:[],inputFields:[],isInput:!1,enumValues:[]};return E.ofType=E,W.addType(E),W.addCustomScalar(E),E},y3=(D,P)=>{let O=P?.isInput??D.isInput,W=P?.isNonNull??D.isNonNull;return`${D.name.slice(0,O&&W?-1:void 0)}${O?`${W?"Input!":"Input"}`:""}`},m3=(D,P)=>{if(D.isInput||D.isScalar)return D;let O=y3(D,{isInput:!0}),W={...D,name:O,isInput:!0,isObject:!1,inputFields:D.fields.map((E)=>({...E,location:"$",type:m3(E.type,P)})),fields:[],possibleTypes:D.possibleTypes.map((E)=>m3(E,P))};return W.ofType=W,P.addType(W),W},gD=(D,P,O,W,E,F)=>{if("ofType"in O)return O;if("$ref"in O){let B=O.$ref.split("/");B.shift();let Y=B.shift(),Z=B.shift(),H=B.shift(),A=D[Y]?.[Z]?.[H];if(A)return gD(D,wD([E.operationResponseType?"":P,H]),A,Z,{isNonNull:E.isNonNull},F);throw new Error(`Reference ${O.$ref} not found`)}if("schema"in O)return gD(D,P,O.schema,"schemas",{isNonNull:E.isNonNull,operationResponseType:E.operationResponseType},F);let R=O;if("properties"in R&&!("type"in R))R.type="object";let S={name:E.operationResponseType?P:E.isNonNull?`${P}!`:P,description:R.description,isObject:"type"in R&&(R.type==="object"||JSON.stringify(R.type)===JSON.stringify(["object","null"])),fields:[],isUnion:!!R.oneOf||!!R.anyOf||!!R.allOf,possibleTypes:[],isList:0,isNonNull:E.isNonNull,isScalar:!1,scalarTSType:void 0,isEnum:{schemas:!!R.enum,parameters:!1,responses:!1,requestBodies:!1,headers:!1}[W],enumValues:[],isInput:W==="parameters"||W==="headers"||W==="requestBodies",inputFields:[],ofType:void 0};S.isScalar=!S.isObject&&!S.isUnion&&!S.isEnum&&!S.isInput;let L=y3(S);if(F.hasType(L))return F.getType(L);else S.name=L,F.addType(S);if(S.ofType=S,S.isEnum){let B=R;for(let Y of[...B.enum??[]])S.enumValues.push({name:String(Y),description:R.description,type:gD(D,P,R,W,{isNonNull:E.isNonNull},F)})}if(S.isInput){let B=R;if("content"in B){let Y=B;for(let[Z,H]of Object.entries(Y.content??{})){F.removeType(L);let A=m3(gD(D,P,H,W,{isNonNull:Y.required??!1},F),F);if(A.fields.length===1&&!!A.fields[0].type.scalarTSType)return F.removeType(L),S=A.fields[0].type,F.addType(S),S;else return F.removeType(L),S=A,F.addType(S),S}}if("schema"in B&&"in"in B){let Y=B;if(Y.schema)S.inputFields.push(p2(D,Y.name,Y.schema,W,Y.in,{isNonNull:Y.required??!1},F));else S.inputFields.push(p2(D,Y.name,gD(D,wD([P,"Input",Y.name]),Y.content["application/json"],W,{isNonNull:Y.required??!1},F),W,Y.in,{isNonNull:Y.required??!1},F))}if("schema"in B&&!("in"in B)){let Y=B;if(Y.schema)S.inputFields.push(p2(D,wD([P,"Header"]),Y.schema,W,"header",{isNonNull:Y.required??!1},F));else S.inputFields.push(p2(D,wD([P,"Header"]),gD(D,wD([P,"Input","Header"]),Y.content["application/json"],W,{isNonNull:Y.required??!1},F),W,"header",{isNonNull:Y.required??!1},F))}}if(S.isObject){let B=R,Y=B.properties;for(let[A,X]of Object.entries(Y??{})){let I="$ref"in X;F.removeType(wD([P,A]));let $=gD(D,wD([P,A]),X,W,{isNonNull:B.required?.includes(A)??!1},F),x=xM(D,A,$,{isNonNull:B.required?.includes(A)??!1},F);S.fields.push(x)}let Z,H=B.additionalProperties;if(H===!0||JSON.stringify(H)===JSON.stringify({}))Z=g3(wD([P,"AdditionalProperties"]),"Additional properties","Record<string, any>",F),S.fields.push({name:wD([P,"Any"]),description:"Additional properties",type:Z});else if(typeof H==="object")if("type"in H&&H.type==="string")Z=g3(wD([P,"AdditionalProperties"]),"Additional properties","Record<string, string>",F),S.fields.push({name:wD([P,"AdditionalProperties"]),description:"Additional properties",type:Z});else{let A="$ref"in H,X=gD(D,A?"":wD([P,"AdditionalProperties"]),H,W,{isNonNull:!1},F),I=X.name.replaceAll("!","").replaceAll("[","").replaceAll("]","");I={Int:"number",Float:"number",String:"string",Boolean:"boolean"}[I]??I;let $=I+(X.isList?Array.from({length:X.isList}).map((x)=>"[]").join(""):"");if(X.isScalar&&X.scalarTSType)Z=X,S.fields.push({name:wD([P,I]),description:"Additional properties",type:Z});else Z=g3(wD([P,I]),"Additional properties",`Record<string, ${$}>`,F),S.fields.push({name:wD([P,I]),description:"Additional properties",type:Z})}if(Z&&S.fields.length===1)return F.removeType(L),F.addType(Z),Z}if(S.isUnion){let B=0;for(let Y of[...R.oneOf??[],...R.anyOf??[],...R.allOf??[]]){B++,F.removeType(L);let Z="$ref"in Y;S.possibleTypes.push(gD(D,Z?"":`${P}Subtype${B}`,Y,W,{isNonNull:E.isNonNull},F))}if(S.possibleTypes.length===1){let Y=S.possibleTypes[0];S={...Y,isList:S.isList,ofType:Y,name:S.name}}}if(S.isScalar){let B=R;if(B.type==="array"){F.removeType(L);let Y="$ref"in R.items;S.isList++;let Z=gD(D,Y?"":P,R.items,"schemas",{isNonNull:E.isNonNull},F),H=S.isList+=Z?.isList??0;S={...Z,isList:H,name:`[${Z.name}]`},S.ofType=S}else if(typeof B.type==="string"){F.removeType(L),S.name=wD([B.type]);let Y={double:"Float",float:"Float",integer:"Int",long:"Int",int32:"Int",int64:"Int",number:"Float",byte:"Int"};if(B.format&&B.format.toLowerCase()in Y)S.name=Y[B.format.toLowerCase()]}else if(Array.isArray(B))F.removeType(L),S.name=wD(B);if(E.isNonNull&&!S.name.endsWith("!"))F.removeType(L),S.name=`${S.name}!`;S.name=y3(S)}return F.addType(S),S},p2=(D,P,O,W,E,F,R)=>{return{name:P,description:O.description,location:E,type:gD(D,P,O,W,F,R)}},xM=(D,P,O,W,E)=>{return{name:P,description:O.description,type:gD(D,P,O,"schemas",W,E)}},fM={get:"Get",post:"Create",put:"Update",delete:"Delete",patch:"Patch",options:"Options",head:"Head",trace:"Trace"},hM=(D,P,O,W,E,F)=>{if(!W.responses)throw new Error("Operation responses not found");let R=Object.entries(W.responses).filter(([Z,H])=>Z.toString().startsWith("2")).sort(([Z,H],[A,X])=>+Z-+A),S=R.length>0?R[0][1]:W.responses.default,L=Object.entries(W.responses).filter(([Z,H])=>Z.toString().startsWith("4")||Z.toString().startsWith("5"));if(!S)throw new Error("Operation success response not found");let B=W.operationId??wD([fM[O],...P.split("/").flatMap((Z)=>["By",Z.replace(/{([^}]+)}/g,"$1")].filter((H)=>H.length>0))]),Y={name:B,description:W.description,path:P,method:O,args:[],type:gD(D,B,"content"in S?S.content["application/json"]??Object.entries(S.content).find(([Z,H])=>H)?.[1]:S,"responses",{isNonNull:!1,operationResponseType:!0},F)};for(let Z of W.parameters??[]){let H="$ref"in Z?Z.$ref.split("/").pop():Z.name,A="in"in Z?Z.in:Z.$ref.split("/").at(-2),X={parameters:"query",requestBodies:"body",headers:"header",cookie:"cookie",path:"path",query:"query",header:"header"}[A];Y.args.push(p2(D,H,Z,"parameters",X,{isNonNull:"$ref"in Z?!1:Z.required??!1},F))}if(W.requestBody){let Z=W.requestBody,H=p2(D,`${B}RequestBody`,Z,"requestBodies","body",{isNonNull:Z.required??!1},F);H.name="$",Y.args.push(H)}return Y};class c3{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,P){this._enumsTypes.set(D,P)}hasEnumType(D){if(!D)return!1;return this._enumsTypes.has(D)}hasEnumTypeName(D){for(let[P,O]of this._enumsTypes.entries())if(P.name===D)return!0;return!1}getEnumType(D){return this._enumsTypes.get(D)}getEnumTypeByName(D){for(let[P,O]of this._enumsTypes.entries())if(P.name===D)return O;return""}_argumentTypes=new Map;get argumentTypes(){return this._argumentTypes}addArgumentType(D,P){this._argumentTypes.set(D,P)}hasArgumentType(D){return this._argumentTypes.has(D)}getArgumentType(D){return this._argumentTypes.get(D)}_argumentMeta=new Map;get argumentMeta(){return this._argumentMeta}addArgumentMeta(D,P){this._argumentMeta.set(D,P)}hasArgumentMeta(D){return this._argumentMeta.has(D)}getArgumentMeta(D){return this._argumentMeta.get(D)}_selectionTypes=new Map;get selectionTypes(){return this._selectionTypes}addSelectionType(D,P){this._selectionTypes.set(D,P)}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,P){this._selectionFunctions.set(D,P)}hasSelectionFunction(D){if(!D)return!1;return this._selectionFunctions.has(D)}getSelectionFunction(D){return this._selectionFunctions.get(D)}}class qS{D;constructor(D){this.Codegen=D}async generate({schema:D,options:P,authConfig:O}){let W=new c3,E=XS(D,P,W);for(let[S,L]of W.types.entries()){if(!L.isEnum)continue;new this.Codegen(S,W,P).makeEnumType()}for(let[S,L]of W.types.entries()){if(!L.isInput)continue;new this.Codegen(S,W,P).makeSelectionType()}for(let[S,L]of W.types.entries()){if(L.isScalar||L.isInput||L.isEnum)continue;new this.Codegen(S,W,P).makeSelectionType(),new this.Codegen(S,W,P).makeSelectionFunction()}let F=this.Codegen.makeRootOperationFunction(E.operations,W,P,O);return[this.Codegen.FieldValueWrapperType,this.Codegen.HelperTypes(Array.from(W.customScalars.values())),this.Codegen.HelperFunctions,...[...W.enumsTypes.entries()].map(([S,L])=>L).filter((S,L,B)=>B.indexOf(S)===L),...[...W.argumentTypes.entries()].map(([S,L])=>L).filter((S,L,B)=>B.indexOf(S)===L),...[...W.argumentMeta.entries()].map(([S,L])=>L).filter((S,L,B)=>B.indexOf(S)===L),...[...W.selectionTypes.entries()].filter(([S])=>!S.isScalar&&!S.isEnum&&!(S.isScalar&&S.isUnion)).map(([S,L])=>L).filter((S,L,B)=>B.indexOf(S)===L),this.Codegen.EnumTypesMapped(W),this.Codegen.UnionTypesMapped(W),...[...W.selectionFunctions.entries()].filter(([S])=>!S.isScalar&&!S.isEnum&&!S.isInput&&!(S.isScalar&&S.isUnion)).map(([S,L])=>L).filter((S)=>!S.startsWith("new SelectionWrapper")).filter((S,L,B)=>B.indexOf(S)===L),F].join("\n")}}var i0={GraphQL:{default:s0},OpenAPI:{default:v0}};import GB from"fs";import YP from"fs";import V6 from"path";var n2=(D)=>{process.stdout.write("\x1Bc"),process.stdout.write(`
|
|
1324
|
+
`}}var r2={};m6(r2,{Generator:()=>zS});var qO=YD(M0(),1);var uD=YD(M0(),1);var qS=(D,P,O)=>{let W={types:[],directives:[],query:[],mutation:[],subscription:[]},E=D.getQueryType();if(E)for(let S of Object.values(E.getFields()))W.query.push(v3(D,S,"query",P,O));let F=D.getMutationType();if(F)for(let S of Object.values(F.getFields()))W.mutation.push(v3(D,S,"mutation",P,O));let R=D.getSubscriptionType();if(R)for(let S of Object.values(R.getFields()))W.subscription.push(v3(D,S,"subscription",P,O));for(let S in D.getTypeMap()){if(!P.includeSchemaDefinition){if(["__Schema","__Type","__TypeKind","__Field","__InputValue","__EnumValue","__Directive"].includes(S))continue}let L=D.getTypeMap()[S];if(uD.isObjectType(L)||uD.isInterfaceType(L))W.types.push(o8(D,L,P,O))}for(let S of D.getDirectives())W.directives.push(oM(D,S,P,O));return W},v3=(D,P,O,W,E)=>{let F={name:P.name,description:P.description,operation:O,args:[],type:o8(D,P.type,W,E)};for(let R in P.args){let S=P.args[R];F.args.push(XO(D,S,W,E))}return F},XO=(D,P,O,W)=>{return{name:P.name,hasArgs:!1,args:[],description:P.description,type:o8(D,P.type,O,W)}},o8=(D,P,O,W)=>{let E=uD.getNamedType(P),F={name:P.toString(),description:E.description,isList:P.toString().split("[").length-1,isNonNull:P.toString().endsWith("!"),isScalar:E instanceof uD.GraphQLScalarType,isEnum:E instanceof uD.GraphQLEnumType,isInput:E instanceof uD.GraphQLInputObjectType,isInterface:E instanceof uD.GraphQLInterfaceType,isObject:E instanceof uD.GraphQLObjectType,isUnion:E instanceof uD.GraphQLUnionType,isQuery:!1,isMutation:!1,isSubscription:!1,fields:[],possibleTypes:[],enumValues:[],inputFields:[]};if(W?.hasType(F.name))return W.getType(F.name);else W?.addType(F);if(F.ofType=F,F.isEnum)for(let R of E.getValues())F.enumValues.push({name:R.name,description:R.description});if(F.isInput){let R=E.getFields();for(let S in R)F.inputFields.push(XO(D,R[S],O,W))}if(F.isInterface){let R=E.getFields();for(let S in R)F.fields.push(XS(D,R[S],O,W))}if(F.isObject){let R=E.getFields();for(let S in R)F.fields.push(XS(D,R[S],O,W))}if(F.isUnion)for(let R of E.getTypes())F.possibleTypes.push(o8(D,R,O,W));if(E instanceof uD.GraphQLObjectType){if(E.name==="Query")F.isQuery=!0;else if(E.name==="Mutation")F.isMutation=!0;else if(E.name==="Subscription")F.isSubscription=!0}if(W)W.addType(F);return F},XS=(D,P,O,W)=>{let E={name:P.name,description:P.description,hasArgs:Object.keys(P.args).length>0,args:[],type:o8(D,P.type,O,W)};for(let F in P.args){let R=P.args[F];E.args.push(XO(D,R,O,W))}return E},oM=(D,P,O,W)=>{let E={name:P.name,description:P.description,locations:P.locations,args:[]};for(let F in P.args){let R=P.args[F];E.args.push(XO(D,R,O,W))}if(W)W.addType({name:`Directive_${P.name}`,description:P.description,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:E});return E};class h3{D;P;O;OperationTypeNames;constructor(D,P,O){this.QueryTypeName=D;this.MutationTypeName=P;this.SubscriptionTypeName=O;this.OperationTypeNames=[D,P,O].filter((W)=>W)}_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)}_enumsTypes=new Map;get enumsTypes(){return this._enumsTypes}addEnumType(D,P){this._enumsTypes.set(D,P)}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,P){this._argumentTypes.set(D,P)}hasArgumentType(D){return this._argumentTypes.has(D)}getArgumentType(D){return this._argumentTypes.get(D)}_argumentMeta=new Map;get argumentMeta(){return this._argumentMeta}addArgumentMeta(D,P){this._argumentMeta.set(D,P)}hasArgumentMeta(D){return this._argumentMeta.has(D)}getArgumentMeta(D){return this._argumentMeta.get(D)}_directivesFunctions=new Map;get directivesFunctions(){return this._directivesFunctions}addDirectiveFunction(D,P){this._directivesFunctions.set(D,P)}hasDirectiveFunction(D){return this._directivesFunctions.has(D)}getDirectiveFunction(D){return this._directivesFunctions.get(D)}_selectionTypes=new Map;get selectionTypes(){return this._selectionTypes}addSelectionType(D,P){this._selectionTypes.set(D,P)}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,P){this._selectionFunctions.set(D,P)}hasSelectionFunction(D){if(!D)return!1;return this._selectionFunctions.has(D)}getSelectionFunction(D){return this._selectionFunctions.get(D)}}class zS{D;constructor(D){this.Codegen=D}async generate({schema:D,options:P,authConfig:O}){let W=D.getQueryType()?.name,E=D.getMutationType()?.name,F=D.getSubscriptionType()?.name,R=new h3(W,E,F);qS(D,P,R);for(let[L,B]of R.types.entries()){if(!B.isEnum)continue;new this.Codegen(L,R,P).makeEnumType()}for(let[L,B]of R.types.entries()){if(!B.isInput)continue;new this.Codegen(L,R,P).makeSelectionType()}for(let[L,B]of R.types.entries()){if(!B.isDirective?.locations.some((Y)=>[qO.DirectiveLocation.FIELD,qO.DirectiveLocation.FRAGMENT_SPREAD,qO.DirectiveLocation.INLINE_FRAGMENT].includes(Y)))continue;new this.Codegen(L,R,P).makeDirective()}for(let[L,B]of R.types.entries()){if(B.isScalar||B.isInput||B.isEnum||B.isDirective)continue;new this.Codegen(L,R,P).makeSelectionType(),new this.Codegen(L,R,P).makeSelectionFunction()}return[this.Codegen.FieldValueWrapperType,this.Codegen.HelperTypes,this.Codegen.HelperFunctions,...[...R.enumsTypes.entries()].map(([L,B])=>B).filter((L,B,Y)=>Y.indexOf(L)===B),...[...R.argumentTypes.entries()].map(([L,B])=>B).filter((L,B,Y)=>Y.indexOf(L)===B),...[...R.argumentMeta.entries()].map(([L,B])=>B).filter((L,B,Y)=>Y.indexOf(L)===B),...[...R.selectionTypes.entries()].filter(([L])=>L.isInput).map(([L,B])=>B).filter((L,B,Y)=>Y.indexOf(L)===B),this.Codegen.EnumTypesMapped(R),...[...R.selectionFunctions.entries()].filter(([L])=>!L.isScalar&&!L.isEnum&&!L.isInput).map(([L,B])=>B),...[...R.directivesFunctions.entries()].map(([L,B])=>B),this.Codegen.makeRootOperationFunction(R,O)].join("\n")}}var p2={};m6(p2,{Generator:()=>uS});var MD=(D)=>{let P="";for(let O of D.filter(Boolean))P+=O.charAt(0).toUpperCase()+O.slice(1)+"$";return P.slice(0,-1)},GS=(D,P,O)=>{let W={types:[],operations:[],customScalars:[]};for(let[E,F]of Object.entries(D?.components?.schemas??{}))W.types.push(hD(D,E,F,"schemas",{isNonNull:!1},O));for(let[E,F]of Object.entries(D?.paths??{})){if("$ref"in F)continue;for(let[R,S]of Object.entries(F)){if(!S)continue;if("$ref"in S){console.warn(`TODO: Handle \$ref in methodValue for ${E}`);continue}W.operations.push(Pb(D,E,R,S,P,O))}}return W},g3=(D,P,O,W)=>{let E={name:D,description:P,isScalar:!0,scalarTSType:O,isEnum:!1,isObject:!1,isUnion:!1,isList:0,isNonNull:!1,fields:[],possibleTypes:[],inputFields:[],isInput:!1,enumValues:[]};return E.ofType=E,W.addType(E),W.addCustomScalar(E),E},y3=(D,P)=>{let O=P?.isInput??D.isInput,W=P?.isNonNull??D.isNonNull;return`${D.name.slice(0,O&&W?-1:void 0)}${O?`${W?"Input!":"Input"}`:""}`},m3=(D,P)=>{if(D.isInput||D.isScalar)return D;let O=y3(D,{isInput:!0}),W={...D,name:O,isInput:!0,isObject:!1,inputFields:D.fields.map((E)=>({...E,location:"$",type:m3(E.type,P)})),fields:[],possibleTypes:D.possibleTypes.map((E)=>m3(E,P))};return W.ofType=W,P.addType(W),W},hD=(D,P,O,W,E,F)=>{if("ofType"in O)return O;if("$ref"in O){let B=O.$ref.split("/");B.shift();let Y=B.shift(),Z=B.shift(),H=B.shift(),C=D[Y]?.[Z]?.[H];if(C)return hD(D,MD([E.operationResponseType?"":P,H]),C,Z,{isNonNull:E.isNonNull},F);throw new Error(`Reference ${O.$ref} not found`)}if("schema"in O)return hD(D,P,O.schema,"schemas",{isNonNull:E.isNonNull,operationResponseType:E.operationResponseType},F);let R=O;if("properties"in R&&!("type"in R))R.type="object";let S={name:E.operationResponseType?P:E.isNonNull?`${P}!`:P,description:R.description,isObject:"type"in R&&(R.type==="object"||JSON.stringify(R.type)===JSON.stringify(["object","null"])),fields:[],isUnion:!!R.oneOf||!!R.anyOf||!!R.allOf,possibleTypes:[],isList:0,isNonNull:E.isNonNull,isScalar:!1,scalarTSType:void 0,isEnum:{schemas:!!R.enum,parameters:!1,responses:!1,requestBodies:!1,headers:!1}[W],enumValues:[],isInput:W==="parameters"||W==="headers"||W==="requestBodies",inputFields:[],ofType:void 0};S.isScalar=!S.isObject&&!S.isUnion&&!S.isEnum&&!S.isInput;let L=y3(S);if(F.hasType(L))return F.getType(L);else S.name=L,F.addType(S);if(S.ofType=S,S.isEnum){let B=R;for(let Y of[...B.enum??[]])S.enumValues.push({name:String(Y),description:R.description,type:hD(D,P,R,W,{isNonNull:E.isNonNull},F)})}if(S.isInput){let B=R;if("content"in B){let Y=B;for(let[Z,H]of Object.entries(Y.content??{})){F.removeType(L);let C=m3(hD(D,P,H,W,{isNonNull:Y.required??!1},F),F);if(C.fields.length===1&&!!C.fields[0].type.scalarTSType)return F.removeType(L),S=C.fields[0].type,F.addType(S),S;else return F.removeType(L),S=C,F.addType(S),S}}if("schema"in B&&"in"in B){let Y=B;if(Y.schema)S.inputFields.push(d2(D,Y.name,Y.schema,W,Y.in,{isNonNull:Y.required??!1},F));else S.inputFields.push(d2(D,Y.name,hD(D,MD([P,"Input",Y.name]),Y.content["application/json"],W,{isNonNull:Y.required??!1},F),W,Y.in,{isNonNull:Y.required??!1},F))}if("schema"in B&&!("in"in B)){let Y=B;if(Y.schema)S.inputFields.push(d2(D,MD([P,"Header"]),Y.schema,W,"header",{isNonNull:Y.required??!1},F));else S.inputFields.push(d2(D,MD([P,"Header"]),hD(D,MD([P,"Input","Header"]),Y.content["application/json"],W,{isNonNull:Y.required??!1},F),W,"header",{isNonNull:Y.required??!1},F))}}if(S.isObject){let B=R,Y=B.properties;for(let[C,X]of Object.entries(Y??{})){let I="$ref"in X;F.removeType(MD([P,C]));let $=hD(D,MD([P,C]),X,W,{isNonNull:B.required?.includes(C)??!1},F),x=eM(D,C,$,{isNonNull:B.required?.includes(C)??!1},F);S.fields.push(x)}let Z,H=B.additionalProperties;if(H===!0||JSON.stringify(H)===JSON.stringify({}))Z=g3(MD([P,"AdditionalProperties"]),"Additional properties","Record<string, any>",F),S.fields.push({name:MD([P,"Any"]),description:"Additional properties",type:Z});else if(typeof H==="object")if("type"in H&&H.type==="string")Z=g3(MD([P,"AdditionalProperties"]),"Additional properties","Record<string, string>",F),S.fields.push({name:MD([P,"AdditionalProperties"]),description:"Additional properties",type:Z});else{let C="$ref"in H,X=hD(D,C?"":MD([P,"AdditionalProperties"]),H,W,{isNonNull:!1},F),I=X.name.replaceAll("!","").replaceAll("[","").replaceAll("]","");I={Int:"number",Float:"number",String:"string",Boolean:"boolean"}[I]??I;let $=I+(X.isList?Array.from({length:X.isList}).map((x)=>"[]").join(""):"");if(X.isScalar&&X.scalarTSType)Z=X,S.fields.push({name:MD([P,I]),description:"Additional properties",type:Z});else Z=g3(MD([P,I]),"Additional properties",`Record<string, ${$}>`,F),S.fields.push({name:MD([P,I]),description:"Additional properties",type:Z})}if(Z&&S.fields.length===1)return F.removeType(L),F.addType(Z),Z}if(S.isUnion){let B=0;for(let Y of[...R.oneOf??[],...R.anyOf??[],...R.allOf??[]]){B++,F.removeType(L);let Z="$ref"in Y;S.possibleTypes.push(hD(D,Z?"":`${P}Subtype${B}`,Y,W,{isNonNull:E.isNonNull},F))}if(S.possibleTypes.length===1){let Y=S.possibleTypes[0];S={...Y,isList:S.isList,ofType:Y,name:S.name}}}if(S.isScalar){let B=R;if(B.type==="array"){F.removeType(L);let Y="$ref"in R.items;S.isList++;let Z=hD(D,Y?"":P,R.items,"schemas",{isNonNull:E.isNonNull},F),H=S.isList+=Z?.isList??0;S={...Z,isList:H,name:`[${Z.name}]`},S.ofType=S}else if(typeof B.type==="string"){F.removeType(L),S.name=MD([B.type]);let Y={double:"Float",float:"Float",integer:"Int",long:"Int",int32:"Int",int64:"Int",number:"Float",byte:"Int"};if(B.format&&B.format.toLowerCase()in Y)S.name=Y[B.format.toLowerCase()]}else if(Array.isArray(B))F.removeType(L),S.name=MD(B);if(E.isNonNull&&!S.name.endsWith("!"))F.removeType(L),S.name=`${S.name}!`;S.name=y3(S)}return F.addType(S),S},d2=(D,P,O,W,E,F,R)=>{return{name:P,description:O.description,location:E,type:hD(D,P,O,W,F,R)}},eM=(D,P,O,W,E)=>{return{name:P,description:O.description,type:hD(D,P,O,"schemas",W,E)}},Db={get:"Get",post:"Create",put:"Update",delete:"Delete",patch:"Patch",options:"Options",head:"Head",trace:"Trace"},Pb=(D,P,O,W,E,F)=>{if(!W.responses)throw new Error("Operation responses not found");let R=Object.entries(W.responses).filter(([Z,H])=>Z.toString().startsWith("2")).sort(([Z,H],[C,X])=>+Z-+C),S=R.length>0?R[0][1]:W.responses.default,L=Object.entries(W.responses).filter(([Z,H])=>Z.toString().startsWith("4")||Z.toString().startsWith("5"));if(!S)throw new Error("Operation success response not found");let B=W.operationId??MD([Db[O],...P.split("/").flatMap((Z)=>["By",Z.replace(/{([^}]+)}/g,"$1")].filter((H)=>H.length>0))]),Y={name:B,description:W.description,path:P,method:O,args:[],type:hD(D,B,"content"in S?S.content["application/json"]??Object.entries(S.content).find(([Z,H])=>H)?.[1]:S,"responses",{isNonNull:!1,operationResponseType:!0},F)};for(let Z of W.parameters??[]){let H="$ref"in Z?Z.$ref.split("/").pop():Z.name,C="in"in Z?Z.in:Z.$ref.split("/").at(-2),X={parameters:"query",requestBodies:"body",headers:"header",cookie:"cookie",path:"path",query:"query",header:"header"}[C];Y.args.push(d2(D,H,Z,"parameters",X,{isNonNull:"$ref"in Z?!1:Z.required??!1},F))}if(W.requestBody){let Z=W.requestBody,H=d2(D,`${B}RequestBody`,Z,"requestBodies","body",{isNonNull:Z.required??!1},F);H.name="$",Y.args.push(H)}return Y};class c3{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,P){this._enumsTypes.set(D,P)}hasEnumType(D){if(!D)return!1;return this._enumsTypes.has(D)}hasEnumTypeName(D){for(let[P,O]of this._enumsTypes.entries())if(P.name===D)return!0;return!1}getEnumType(D){return this._enumsTypes.get(D)}getEnumTypeByName(D){for(let[P,O]of this._enumsTypes.entries())if(P.name===D)return O;return""}_argumentTypes=new Map;get argumentTypes(){return this._argumentTypes}addArgumentType(D,P){this._argumentTypes.set(D,P)}hasArgumentType(D){return this._argumentTypes.has(D)}getArgumentType(D){return this._argumentTypes.get(D)}_argumentMeta=new Map;get argumentMeta(){return this._argumentMeta}addArgumentMeta(D,P){this._argumentMeta.set(D,P)}hasArgumentMeta(D){return this._argumentMeta.has(D)}getArgumentMeta(D){return this._argumentMeta.get(D)}_selectionTypes=new Map;get selectionTypes(){return this._selectionTypes}addSelectionType(D,P){this._selectionTypes.set(D,P)}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,P){this._selectionFunctions.set(D,P)}hasSelectionFunction(D){if(!D)return!1;return this._selectionFunctions.has(D)}getSelectionFunction(D){return this._selectionFunctions.get(D)}}class uS{D;constructor(D){this.Codegen=D}async generate({schema:D,options:P,authConfig:O}){let W=new c3,E=GS(D,P,W);for(let[S,L]of W.types.entries()){if(!L.isEnum)continue;new this.Codegen(S,W,P).makeEnumType()}for(let[S,L]of W.types.entries()){if(!L.isInput)continue;new this.Codegen(S,W,P).makeSelectionType()}for(let[S,L]of W.types.entries()){if(L.isScalar||L.isInput||L.isEnum)continue;new this.Codegen(S,W,P).makeSelectionType(),new this.Codegen(S,W,P).makeSelectionFunction()}let F=this.Codegen.makeRootOperationFunction(E.operations,W,P,O);return[this.Codegen.FieldValueWrapperType,this.Codegen.HelperTypes(Array.from(W.customScalars.values())),this.Codegen.HelperFunctions,...[...W.enumsTypes.entries()].map(([S,L])=>L).filter((S,L,B)=>B.indexOf(S)===L),...[...W.argumentTypes.entries()].map(([S,L])=>L).filter((S,L,B)=>B.indexOf(S)===L),...[...W.argumentMeta.entries()].map(([S,L])=>L).filter((S,L,B)=>B.indexOf(S)===L),...[...W.selectionTypes.entries()].filter(([S])=>!S.isScalar&&!S.isEnum&&!(S.isScalar&&S.isUnion)).map(([S,L])=>L).filter((S,L,B)=>B.indexOf(S)===L),this.Codegen.EnumTypesMapped(W),this.Codegen.UnionTypesMapped(W),...[...W.selectionFunctions.entries()].filter(([S])=>!S.isScalar&&!S.isEnum&&!S.isInput&&!(S.isScalar&&S.isUnion)).map(([S,L])=>L).filter((S)=>!S.startsWith("new SelectionWrapper")).filter((S,L,B)=>B.indexOf(S)===L),F].join("\n")}}var a0={GraphQL:{default:n0},OpenAPI:{default:x0}};import vB from"fs";import LP from"fs";import _6 from"path";var n2=(D)=>{process.stdout.write("\x1Bc"),process.stdout.write(`
|
|
1325
1325
|
_____ _
|
|
1326
1326
|
/ ___| (_)
|
|
1327
1327
|
\\ \`--. __ _ _ __ ___ __ _ _ __ _ _ _ _ __ ___
|
|
1328
1328
|
\\\`--. \\ / _\` || '_ \` _ \\ / _\` || '__|| || | | || '_ \` _ \\
|
|
1329
1329
|
/\\__/ /| (_| || | | | | || (_| || | | || |_| || | | | | |
|
|
1330
1330
|
\\____/ \\__,_||_| |_| |_| \\__,_||_| |_| \\__,_||_| |_| |_|
|
|
1331
|
-
`),console.log(" "),console.log(`v${CP.version}`),console.log(" "),console.log("Welcome to the Samarium CLI Assistant"),console.log(" "),console.log(`This assistant will help you compile an ${D} API into a samarium typescript sdk.`),console.log(" ")};var uO=(D)=>D.name==="up"||D.name==="k"||D.ctrl&&D.name==="p",l3=(D)=>D.name==="down"||D.name==="j"||D.ctrl&&D.name==="n";var IO=(D)=>D.name==="backspace",GS=(D)=>"123456789".includes(D.name),t2=(D)=>D.name==="enter"||D.name==="return";class r3 extends Error{message="Prompt was canceled"}class d3 extends Error{}class p3 extends Error{}class PP extends Error{}import{AsyncResource as Hb}from"node:async_hooks";import{AsyncLocalStorage as vM,AsyncResource as gM}from"node:async_hooks";var zS=new vM;function yM(D){return{rl:D,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function uS(D,P){let O=yM(D);return zS.run(O,()=>{P(O)})}function s2(){let D=zS.getStore();if(!D)throw new p3("[Inquirer] Hook functions can only be called from within a prompt");return D}function a3(){return s2().rl}function n3(D){let P=(...O)=>{let W=s2(),E=!1,F=W.handleChange;W.handleChange=()=>{E=!0};let R=D(...O);if(E)F();return W.handleChange=F,R};return gM.bind(P)}function i2(D){let P=s2(),{index:O}=P,W={get(){return P.hooks[O]},set(F){P.hooks[O]=F},initialized:O in P.hooks},E=D(W);return P.index++,E}function IS(){s2().handleChange()}var QO={queue(D){let P=s2(),{index:O}=P;P.hooksEffect.push(()=>{P.hooksCleanup[O]?.();let W=D(a3());if(W!=null&&typeof W!=="function")throw new PP("useEffect return value must be a cleanup function or nothing.");P.hooksCleanup[O]=W})},run(){let D=s2();n3(()=>{D.hooksEffect.forEach((P)=>{P()}),D.hooksEffect.length=0})()}};function TD(D){return i2((P)=>{let O=(E)=>{if(P.get()!==E)P.set(E),IS()};if(P.initialized)return[P.get(),O];let W=typeof D==="function"?D():D;return P.set(W),[W,O]})}function MO(D,P){i2((O)=>{let W=O.get();if(!Array.isArray(W)||P.some((F,R)=>!Object.is(F,W[R])))QO.queue(D);O.set(P)})}var j0=XD(F6(),1),R6=XD(WL(),1),EL={prefix:j0.default.green("?"),spinner:{interval:R6.default.dots.interval,frames:R6.default.dots.frames.map((D)=>j0.default.yellow(D))},style:{answer:j0.default.cyan,message:j0.default.bold,error:(D)=>j0.default.red(`> ${D}`),defaultAnswer:(D)=>j0.default.dim(`(${D})`),help:j0.default.dim,highlight:j0.default.cyan,key:(D)=>j0.default.cyan.bold(`<${D}>`)}};function FL(D){if(typeof D!=="object"||D===null)return!1;let P=D;while(Object.getPrototypeOf(P)!==null)P=Object.getPrototypeOf(P);return Object.getPrototypeOf(D)===P}function RL(...D){let P={};for(let O of D)for(let[W,E]of Object.entries(O)){let F=P[W];P[W]=FL(F)&&FL(E)?RL(F,E):E}return P}function g0(...D){let P=[EL,...D.filter((O)=>O!=null)];return RL(...P)}function Q2({isLoading:D=!1,theme:P}){let[O,W]=TD(0),{prefix:E,spinner:F}=g0(P);if(MO(()=>{if(D){let R=setTimeout(Hb.bind(()=>{W(O+1)}),F.interval);return()=>clearTimeout(R)}},[D,O]),D){let R=O%F.frames.length;return F.frames[R]}return E}function NO(D,P){return i2((O)=>{let W=O.get();if(!W||W.dependencies.length!==P.length||W.dependencies.some((E,F)=>E!==P[F])){let E=D();return O.set({value:E,dependencies:P}),E}return W.value})}function e0(D){return TD({current:D})[0]}function M2(D){let P=e0(D);P.current=D,MO((O)=>{let W=n3((E,F)=>{P.current(F,O)});return O.input.on("keypress",W),()=>{O.input.removeListener("keypress",W)}},[])}var uL=XD(LL(),1),IL=XD(zL(),1);function FP(D,P){return D.split("\n").flatMap((O)=>IL.default(O,P,{trim:!1,hard:!0}).split("\n").map((W)=>W.trimEnd())).join("\n")}function xO(){return uL.default({defaultWidth:80,output:a3().output})}function Mb(D,P){return FP(D,P).split("\n")}function bb(D,P){let O=P.length,W=(D%O+O)%O;return[...P.slice(W),...P.slice(0,W)]}function QL({items:D,width:P,renderItem:O,active:W,position:E,pageSize:F}){let R=D.map((X,I)=>({item:X,index:I,isActive:I===W})),S=bb(W-E,R).slice(0,F),L=(X)=>Mb(O(S[X]),P),B=Array.from({length:F}),Y=L(E).slice(0,F),Z=E+Y.length<=F?E:F-Y.length;B.splice(Z,Y.length,...Y);let H=Z+Y.length,A=E+1;while(H<F&&A<S.length){for(let X of L(A))if(B[H++]=X,H>=F)break;A++}H=Z-1,A=E-1;while(H>=0&&A>=0){for(let X of L(A).reverse())if(B[H--]=X,H<0)break;A--}return B.filter((X)=>typeof X==="string")}function ML({active:D,pageSize:P,total:O}){let W=Math.floor(P/2);if(O<=P||D<W)return D;if(D>=O-W)return D+P-O;return W}function bL({active:D,lastActive:P,total:O,pageSize:W,pointer:E}){if(O<=W)return D;if(P<D&&D-P<W)return Math.min(Math.floor(W/2),E+D-P);return E}function Z6({items:D,active:P,renderItem:O,pageSize:W,loop:E=!0}){let F=e0({position:0,lastActive:0}),R=E?bL({active:P,lastActive:F.current.lastActive,total:D.length,pageSize:W,pointer:F.current.position}):ML({active:P,total:D.length,pageSize:W});return F.current.position=R,F.current.lastActive=P,QL({items:D,width:xO(),renderItem:O,active:P,position:R,pageSize:W}).join("\n")}import*as fL from"node:readline";class H6 extends Promise{cancel=()=>{}}var hL=XD(jL(),1);var b2=[];b2.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32")b2.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")b2.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var fO=(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",C6=Symbol.for("signal-exit emitter"),A6=globalThis,Kb=Object.defineProperty.bind(Object);class $L{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(A6[C6])return A6[C6];Kb(A6,C6,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(D,P){this.listeners[D].push(P)}removeListener(D,P){let O=this.listeners[D],W=O.indexOf(P);if(W===-1)return;if(W===0&&O.length===1)O.length=0;else O.splice(W,1)}emit(D,P,O){if(this.emitted[D])return!1;this.emitted[D]=!0;let W=!1;for(let E of this.listeners[D])W=E(P,O)===!0||W;if(D==="exit")W=this.emit("afterExit",P,O)||W;return W}}class U6{}var jb=(D)=>{return{onExit(P,O){return D.onExit(P,O)},load(){return D.load()},unload(){return D.unload()}}};class VL extends U6{onExit(){return()=>{}}load(){}unload(){}}class _L extends U6{#O=J6.platform==="win32"?"SIGINT":"SIGHUP";#P=new $L;#D;#F;#R;#E={};#W=!1;constructor(D){super();this.#D=D,this.#E={};for(let P of b2)this.#E[P]=()=>{let O=this.#D.listeners(P),{count:W}=this.#P,E=D;if(typeof E.__signal_exit_emitter__==="object"&&typeof E.__signal_exit_emitter__.count==="number")W+=E.__signal_exit_emitter__.count;if(O.length===W){this.unload();let F=this.#P.emit("exit",null,P),R=P==="SIGHUP"?this.#O:P;if(!F)D.kill(D.pid,R)}};this.#R=D.reallyExit,this.#F=D.emit}onExit(D,P){if(!fO(this.#D))return()=>{};if(this.#W===!1)this.load();let O=P?.alwaysLast?"afterExit":"exit";return this.#P.on(O,D),()=>{if(this.#P.removeListener(O,D),this.#P.listeners.exit.length===0&&this.#P.listeners.afterExit.length===0)this.unload()}}load(){if(this.#W)return;this.#W=!0,this.#P.count+=1;for(let D of b2)try{let P=this.#E[D];if(P)this.#D.on(D,P)}catch(P){}this.#D.emit=(D,...P)=>{return this.#L(D,...P)},this.#D.reallyExit=(D)=>{return this.#S(D)}}unload(){if(!this.#W)return;this.#W=!1,b2.forEach((D)=>{let P=this.#E[D];if(!P)throw new Error("Listener not defined for signal: "+D);try{this.#D.removeListener(D,P)}catch(O){}}),this.#D.emit=this.#F,this.#D.reallyExit=this.#R,this.#P.count-=1}#S(D){if(!fO(this.#D))return 0;return this.#D.exitCode=D||0,this.#P.emit("exit",this.#D.exitCode,null),this.#R.call(this.#D,this.#D.exitCode)}#L(D,...P){let O=this.#F;if(D==="exit"&&fO(this.#D)){if(typeof P[0]==="number")this.#D.exitCode=P[0];let W=O.call(this.#D,D,...P);return this.#P.emit("exit",this.#D.exitCode,null),W}else return O.call(this.#D,D,...P)}}var J6=globalThis.process,{onExit:TL,load:b_,unload:w_}=jb(fO(J6)?new _L(J6):new VL);var xL=XD(kO(),1),D2=XD(q6(),1);var kL=(D)=>D.split("\n").length,_b=(D)=>D.split("\n").pop()??"";class vO{rl;height=0;extraLinesUnderPrompt=0;cursorPos;constructor(D){this.rl=D,this.rl=D,this.cursorPos=D.getCursorPos()}render(D,P=""){let O=_b(D),W=xL.default(O),E=W;if(this.rl.line.length>0)E=E.slice(0,-this.rl.line.length);this.rl.setPrompt(E),this.cursorPos=this.rl.getCursorPos();let F=xO();if(D=FP(D,F),P=FP(P,F),W.length%F===0)D+="\n";let R=D+(P?"\n"+P:""),L=Math.floor(W.length/F)-this.cursorPos.rows+(P?kL(P):0);if(L>0)R+=D2.default.cursorUp(L);R+=D2.default.cursorTo(this.cursorPos.cols),this.clean(),this.rl.output.unmute(),this.extraLinesUnderPrompt=L,this.height=kL(R),this.rl.output.write(R),this.rl.output.mute()}checkCursorPos(){let D=this.rl.getCursorPos();if(D.cols!==this.cursorPos.cols)this.rl.output.unmute(),this.rl.output.write(D2.default.cursorTo(D.cols)),this.rl.output.mute(),this.cursorPos=D}clean(){this.rl.output.unmute(),this.rl.output.write([this.extraLinesUnderPrompt>0?D2.default.cursorDown(this.extraLinesUnderPrompt):"",D2.default.eraseLines(this.height)].join("")),this.extraLinesUnderPrompt=0,this.rl.output.mute()}clearContent(){this.rl.output.unmute(),this.rl.output.write([this.extraLinesUnderPrompt>0?D2.default.cursorDown(this.extraLinesUnderPrompt):"","\n"].join("")),this.rl.output.mute()}done(){this.rl.setPrompt(""),this.rl.output.unmute(),this.rl.output.write(D2.default.cursorShow),this.rl.output.end(),this.rl.close()}}function w2(D){return(O,W)=>{let E=W?.input??process.stdin,F=new hL.default;F.pipe(W?.output??process.stdout);let R=fL.createInterface({terminal:!0,input:E,output:F}),S=new vO(R),L=()=>{},B=new H6((Y,Z)=>{uS(R,(H)=>{function A(){S.checkCursorPos()}let X=TL((y,V)=>{I(),Z(new d3(`User force closed the prompt with ${y} ${V}`))});function I(){try{H.hooksCleanup.forEach((y)=>{y?.()})}catch(y){Z(y)}if(W?.clearPromptOnDone)S.clean();else S.clearContent();S.done(),X(),H.rl.input.removeListener("keypress",A)}L=()=>{I(),Z(new r3)};function $(y){setImmediate(()=>{I(),Y(y)})}function x(y){H.index=0,H.handleChange=()=>x(y);try{let V=D(O,$),[DD,N]=typeof V==="string"?[V]:V;S.render(DD,N),QO.run()}catch(V){I(),Z(V)}}x(O),H.rl.input.on("keypress",A)})});return B.cancel=L,B}}var yL=XD(F6(),1);import $0 from"node:process";function Tb(){if($0.platform!=="win32")return $0.env.TERM!=="linux";return Boolean($0.env.WT_SESSION)||Boolean($0.env.TERMINUS_SUBLIME)||$0.env.ConEmuTask==="{cmd::Cmder}"||$0.env.TERM_PROGRAM==="Terminus-Sublime"||$0.env.TERM_PROGRAM==="vscode"||$0.env.TERM==="xterm-256color"||$0.env.TERM==="alacritty"||$0.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var vL={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},gL={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},Nb={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},kb={...vL,...gL},xb={...vL,...Nb},fb=Tb(),hb=fb?kb:xb,gO=hb,h_=Object.entries(gL);class W8{separator=yL.default.dim(Array.from({length:15}).join(gO.line));type="separator";constructor(D){if(D)this.separator=D}static isSeparator(D){return Boolean(D&&D.type==="separator")}}var yO=w2((D,P)=>{let{transformer:O=(H)=>H?"yes":"no"}=D,[W,E]=TD("pending"),[F,R]=TD(""),S=g0(D.theme),L=Q2({theme:S});M2((H,A)=>{if(t2(H)){let X=D.default!==!1;if(/^(y|yes)/i.test(F))X=!0;else if(/^(n|no)/i.test(F))X=!1;R(O(X)),E("done"),P(X)}else R(A.line)});let B=F,Y="";if(W==="done")B=S.style.answer(F);else Y=` ${S.style.defaultAnswer(D.default===!1?"y/N":"Y/n")}`;let Z=S.style.message(D.message);return`${L} ${Z}${Y} ${B}`});var y0=w2((D,P)=>{let{validate:O=()=>!0}=D,W=g0(D.theme),[E,F]=TD("pending"),[R="",S]=TD(D.default),[L,B]=TD(),[Y,Z]=TD(""),A=Q2({isLoading:E==="loading",theme:W});M2(async(y,V)=>{if(E!=="pending")return;if(t2(y)){let DD=Y||R;F("loading");let N=await O(DD);if(N===!0)Z(DD),F("done"),P(DD);else V.write(Y),B(N||"You must provide a valid value"),F("pending")}else if(IO(y)&&!Y)S(void 0);else if(y.name==="tab"&&!Y)S(void 0),V.clearLine(0),V.write(R),Z(R);else Z(V.line),B(void 0)});let X=W.style.message(D.message),I=Y;if(typeof D.transformer==="function")I=D.transformer(Y,{isFinal:E==="done"});else if(E==="done")I=W.style.answer(Y);let $;if(R&&E!=="done"&&!Y)$=W.style.defaultAnswer(R);let x="";if(L)x=W.style.error(L);return[[A,X,$,I].filter((y)=>y!==void 0).join(" "),x]});var FB=XD(EB(),1);var RB=XD(q6(),1);var ob={icon:{cursor:gO.pointer},style:{disabled:(D)=>FB.default.dim(`- ${D}`)},helpMode:"auto"};function F8(D){return!W8.isSeparator(D)&&!D.disabled}var O2=w2((D,P)=>{let{choices:O,loop:W=!0,pageSize:E=7}=D,F=e0(!0),R=g0(ob,D.theme),S=Q2({theme:R}),[L,B]=TD("pending"),Y=e0(),Z=NO(()=>{let N=O.findIndex(F8),ED=O.findLastIndex(F8);if(N<0)throw new PP("[select prompt] No selectable choices. All choices are disabled.");return{first:N,last:ED}},[O]),H=NO(()=>{if(!("default"in D))return-1;return O.findIndex((N)=>F8(N)&&N.value===D.default)},[D.default,O]),[A,X]=TD(H===-1?Z.first:H),I=O[A];M2((N,ED)=>{if(clearTimeout(Y.current),t2(N))B("done"),P(I.value);else if(uO(N)||l3(N)){if(ED.clearLine(0),W||uO(N)&&A!==Z.first||l3(N)&&A!==Z.last){let UD=uO(N)?-1:1,YD=A;do YD=(YD+UD+O.length)%O.length;while(!F8(O[YD]));X(YD)}}else if(GS(N)){ED.clearLine(0);let UD=Number(N.name)-1,YD=O[UD];if(YD!=null&&F8(YD))X(UD)}else if(IO(N))ED.clearLine(0);else{let UD=ED.line.toLowerCase(),YD=O.findIndex((q)=>{if(W8.isSeparator(q)||!F8(q))return!1;return String(q.name||q.value).toLowerCase().startsWith(UD)});if(YD>=0)X(YD);Y.current=setTimeout(()=>{ED.clearLine(0)},700)}});let $=R.style.message(D.message),x="",y="";if(R.helpMode==="always"||R.helpMode==="auto"&&F.current)if(F.current=!1,O.length>E)y=`\n${R.style.help("(Use arrow keys to reveal more choices)")}`;else x=R.style.help("(Use arrow keys)");let V=Z6({items:O,active:A,renderItem({item:N,isActive:ED}){if(W8.isSeparator(N))return` ${N.separator}`;let UD=N.name||N.value;if(N.disabled){let _=typeof N.disabled==="string"?N.disabled:"(disabled)";return R.style.disabled(`${UD} ${_}`)}let YD=ED?R.style.highlight:(_)=>_,q=ED?R.icon.cursor:" ";return YD(`${q} ${UD}`)},pageSize:E,loop:W});if(L==="done"){let N=I.name||String(I.value);return`${S} ${$} ${R.style.answer(N)}`}let DD=I.description?`\n${I.description}`:"";return`${[S,$,x].filter(Boolean).join(" ")}\n${V}${DD}${y}${RB.default.cursorHide}`});var SB=(D=0)=>(P)=>`\x1B[${P+D}m`,LB=(D=0)=>(P)=>`\x1B[${38+D};5;${P}m`,BB=(D=0)=>(P,O,W)=>`\x1B[${38+D};2;${P};${O};${W}m`,BD={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},AT=Object.keys(BD.modifier),eb=Object.keys(BD.color),Dw=Object.keys(BD.bgColor),JT=[...eb,...Dw];function Pw(){let D=new Map;for(let[P,O]of Object.entries(BD)){for(let[W,E]of Object.entries(O))BD[W]={open:`\x1B[${E[0]}m`,close:`\x1B[${E[1]}m`},O[W]=BD[W],D.set(E[0],E[1]);Object.defineProperty(BD,P,{value:O,enumerable:!1})}return Object.defineProperty(BD,"codes",{value:D,enumerable:!1}),BD.color.close="\x1B[39m",BD.bgColor.close="\x1B[49m",BD.color.ansi=SB(),BD.color.ansi256=LB(),BD.color.ansi16m=BB(),BD.bgColor.ansi=SB(10),BD.bgColor.ansi256=LB(10),BD.bgColor.ansi16m=BB(10),Object.defineProperties(BD,{rgbToAnsi256:{value(P,O,W){if(P===O&&O===W){if(P<8)return 16;if(P>248)return 231;return Math.round((P-8)/247*24)+232}return 16+36*Math.round(P/255*5)+6*Math.round(O/255*5)+Math.round(W/255*5)},enumerable:!1},hexToRgb:{value(P){let O=/[a-f\d]{6}|[a-f\d]{3}/i.exec(P.toString(16));if(!O)return[0,0,0];let[W]=O;if(W.length===3)W=[...W].map((F)=>F+F).join("");let E=Number.parseInt(W,16);return[E>>16&255,E>>8&255,E&255]},enumerable:!1},hexToAnsi256:{value:(P)=>BD.rgbToAnsi256(...BD.hexToRgb(P)),enumerable:!1},ansi256ToAnsi:{value(P){if(P<8)return 30+P;if(P<16)return 90+(P-8);let O,W,E;if(P>=232)O=((P-232)*10+8)/255,W=O,E=O;else{P-=16;let S=P%36;O=Math.floor(P/36)/5,W=Math.floor(S/6)/5,E=S%6/5}let F=Math.max(O,W,E)*2;if(F===0)return 30;let R=30+(Math.round(E)<<2|Math.round(W)<<1|Math.round(O));if(F===2)R+=60;return R},enumerable:!1},rgbToAnsi:{value:(P,O,W)=>BD.ansi256ToAnsi(BD.rgbToAnsi256(P,O,W)),enumerable:!1},hexToAnsi:{value:(P)=>BD.ansi256ToAnsi(BD.hexToAnsi256(P)),enumerable:!1}}),BD}var Ow=Pw(),J0=Ow;import b6 from"node:process";import Ww from"node:os";import YB from"node:tty";function P0(D,P=globalThis.Deno?globalThis.Deno.args:b6.argv){let O=D.startsWith("-")?"":D.length===1?"-":"--",W=P.indexOf(O+D),E=P.indexOf("--");return W!==-1&&(E===-1||W<E)}var{env:ZD}=b6,dO;if(P0("no-color")||P0("no-colors")||P0("color=false")||P0("color=never"))dO=0;else if(P0("color")||P0("colors")||P0("color=true")||P0("color=always"))dO=1;function Ew(){if("FORCE_COLOR"in ZD){if(ZD.FORCE_COLOR==="true")return 1;if(ZD.FORCE_COLOR==="false")return 0;return ZD.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ZD.FORCE_COLOR,10),3)}}function Fw(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function Rw(D,{streamIsTTY:P,sniffFlags:O=!0}={}){let W=Ew();if(W!==void 0)dO=W;let E=O?dO:W;if(E===0)return 0;if(O){if(P0("color=16m")||P0("color=full")||P0("color=truecolor"))return 3;if(P0("color=256"))return 2}if("TF_BUILD"in ZD&&"AGENT_NAME"in ZD)return 1;if(D&&!P&&E===void 0)return 0;let F=E||0;if(ZD.TERM==="dumb")return F;if(b6.platform==="win32"){let R=Ww.release().split(".");if(Number(R[0])>=10&&Number(R[2])>=10586)return Number(R[2])>=14931?3:2;return 1}if("CI"in ZD){if("GITHUB_ACTIONS"in ZD||"GITEA_ACTIONS"in ZD)return 3;if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((R)=>(R in ZD))||ZD.CI_NAME==="codeship")return 1;return F}if("TEAMCITY_VERSION"in ZD)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ZD.TEAMCITY_VERSION)?1:0;if(ZD.COLORTERM==="truecolor")return 3;if(ZD.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in ZD){let R=Number.parseInt((ZD.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ZD.TERM_PROGRAM){case"iTerm.app":return R>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(ZD.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ZD.TERM))return 1;if("COLORTERM"in ZD)return 1;return F}function ZB(D,P={}){let O=Rw(D,{streamIsTTY:D&&D.isTTY,...P});return Fw(O)}var Sw={stdout:ZB({isTTY:YB.isatty(1)}),stderr:ZB({isTTY:YB.isatty(2)})},HB=Sw;function CB(D,P,O){let W=D.indexOf(P);if(W===-1)return D;let E=P.length,F=0,R="";do R+=D.slice(F,W)+P+O,F=W+E,W=D.indexOf(P,F);while(W!==-1);return R+=D.slice(F),R}function AB(D,P,O,W){let E=0,F="";do{let R=D[W-1]==="\r";F+=D.slice(E,R?W-1:W)+P+(R?"\r\n":"\n")+O,E=W+1,W=D.indexOf("\n",E)}while(W!==-1);return F+=D.slice(E),F}var{stdout:JB,stderr:UB}=HB,w6=Symbol("GENERATOR"),R8=Symbol("STYLER"),LP=Symbol("IS_EMPTY"),XB=["ansi","ansi","ansi256","ansi16m"],S8=Object.create(null),Lw=(D,P={})=>{if(P.level&&!(Number.isInteger(P.level)&&P.level>=0&&P.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let O=JB?JB.level:0;D.level=P.level===void 0?O:P.level};var Bw=(D)=>{let P=(...O)=>O.join(" ");return Lw(P,D),Object.setPrototypeOf(P,BP.prototype),P};function BP(D){return Bw(D)}Object.setPrototypeOf(BP.prototype,Function.prototype);for(let[D,P]of Object.entries(J0))S8[D]={get(){let O=pO(this,j6(P.open,P.close,this[R8]),this[LP]);return Object.defineProperty(this,D,{value:O}),O}};S8.visible={get(){let D=pO(this,this[R8],!0);return Object.defineProperty(this,"visible",{value:D}),D}};var K6=(D,P,O,...W)=>{if(D==="rgb"){if(P==="ansi16m")return J0[O].ansi16m(...W);if(P==="ansi256")return J0[O].ansi256(J0.rgbToAnsi256(...W));return J0[O].ansi(J0.rgbToAnsi(...W))}if(D==="hex")return K6("rgb",P,O,...J0.hexToRgb(...W));return J0[O][D](...W)},Yw=["rgb","hex","ansi256"];for(let D of Yw){S8[D]={get(){let{level:O}=this;return function(...W){let E=j6(K6(D,XB[O],"color",...W),J0.color.close,this[R8]);return pO(this,E,this[LP])}}};let P="bg"+D[0].toUpperCase()+D.slice(1);S8[P]={get(){let{level:O}=this;return function(...W){let E=j6(K6(D,XB[O],"bgColor",...W),J0.bgColor.close,this[R8]);return pO(this,E,this[LP])}}}}var Zw=Object.defineProperties(()=>{},{...S8,level:{enumerable:!0,get(){return this[w6].level},set(D){this[w6].level=D}}}),j6=(D,P,O)=>{let W,E;if(O===void 0)W=D,E=P;else W=O.openAll+D,E=P+O.closeAll;return{open:D,close:P,openAll:W,closeAll:E,parent:O}},pO=(D,P,O)=>{let W=(...E)=>Hw(W,E.length===1?""+E[0]:E.join(" "));return Object.setPrototypeOf(W,Zw),W[w6]=D,W[R8]=P,W[LP]=O,W},Hw=(D,P)=>{if(D.level<=0||!P)return D[LP]?"":P;let O=D[R8];if(O===void 0)return P;let{openAll:W,closeAll:E}=O;if(P.includes("\x1B"))while(O!==void 0)P=CB(P,O.close,O.open),O=O.parent;let F=P.indexOf("\n");if(F!==-1)P=AB(P,E,W,F);return W+P+E};Object.defineProperties(BP.prototype,S8);var Cw=BP(),bT=BP({level:UB?UB.level:0});var rD=Cw;var Aw=/^(?:( )+|\t+)/;function qB(D,P){let O=new Map,W=0,E,F;for(let R of D.split(/\n/g)){if(!R)continue;let S,L,B,Y,Z,H=R.match(Aw);if(H===null)W=0,E="";else{if(S=H[0].length,L=H[1]?"space":"tab",P&&L==="space"&&S===1)continue;if(L!==E)W=0;E=L,B=1,Y=0;let A=S-W;if(W=S,A===0)B=0,Y=1;else{let X=A>0?A:-A;F=Jw(L,X)}Z=O.get(F),Z=Z===void 0?[1,0]:[Z[0]+B,Z[1]+Y],O.set(F,Z)}}return O}function Jw(D,P){return(D==="space"?"s":"t")+String(P)}function Uw(D){let O=D[0]==="s"?"space":"tab",W=Number(D.slice(1));return{type:O,amount:W}}function Xw(D){let P,O=0,W=0;for(let[E,[F,R]]of D)if(F>O||F===O&&R>W)O=F,W=R,P=E;return P}function qw(D,P){return(D==="space"?" ":"\t").repeat(P)}function $6(D){if(typeof D!=="string")throw new TypeError("Expected a string");let P=qB(D,!0);if(P.size===0)P=qB(D,!1);let O=Xw(P),W,E=0,F="";if(O!==void 0)({type:W,amount:E}=Uw(O)),F=qw(W,E);return{amount:E,type:W,indent:F}}var O0=async(D,P,O,W=!1)=>{let E=/<([^>]+)>|\[([^\]]+)\]/g,F,R=[];while(F=E.exec(P))R.push(F[1]??F[2]);if(R.length>0){if(!W)n2(D),W=!1;let S=P.replace(E,(L)=>`\x1B[32m${L}\x1B[0m`);if(await yO({message:`${O} contains placeholders: ${S} . Do you want to replace them with actual values?`})){let L=[];for(let B of R){let Y=await y0({message:`Enter value for placeholder ${B}:`});L.push(Y)}P=P.replace(E,()=>L.shift()??""),console.log(`${O} has been updated to: ${P}`),console.log(" ")}else console.log(`${O} has not been updated. Using the original value: ${P}`),console.log(" ");return P}return P},aO=async(D)=>{let P="";while(!P){P=await y0({message:D});try{new URL(P)}catch(O){console.log("Invalid URL"),P=""}}return P},nO=async()=>{let D=await O2({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 y0({message:"Enter the header name:"});let P="";while(!P)P=await y0({message:"Enter the header value:"});return[D,P]},tO=async(D=["."])=>{while(!0){let P=YP.readdirSync(D.join("/"),{withFileTypes:!0}),O=await O2({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"},...P.filter((W)=>W.isDirectory()).map((W)=>({name:W.name,value:W.name}))]});if(D.push(O),O==="[new_dir]"){D.pop();let W=await y0({message:"Enter the new directory name:"});YP.mkdirSync(V6.resolve(...D,W)),D.push(W);break}if(O===".")break;if(O===".."){D.pop(),D.pop();continue}}return D},sO=async(D)=>{let P=await y0({message:D,default:"sdk.ts"});if(!P.endsWith(".ts"))P+=".ts";return P},yD={import:rD.rgb(185,126,180),name:rD.rgb(156,220,254),from:rD.rgb(185,126,180),string:rD.rgb(206,145,120)},iO=async(D,P)=>{let O=!1;if(YP.existsSync("tsconfig.json")&&await yO({message:`
|
|
1332
|
-
File 'tsconfig.json' detected. Do you want to add an import alias for the generated file?`,default:!1})){console.log(" ");let W=await
|
|
1333
|
-
${
|
|
1334
|
-
${
|
|
1335
|
-
|
|
1336
|
-
${
|
|
1337
|
-
`),O=!0}return O};var
|
|
1338
|
-
${
|
|
1339
|
-
${
|
|
1340
|
-
|
|
1341
|
-
${
|
|
1342
|
-
`);console.log(" "),console.log("Please star the repo if you liked it! https://github.com/liontariai/samarium"),console.log(" ")};async function
|
|
1343
|
-
${
|
|
1344
|
-
${
|
|
1345
|
-
|
|
1346
|
-
${
|
|
1347
|
-
`);console.log(" "),console.log("Please star the repo if you liked it! https://github.com/liontariai/samarium"),console.log(" ")};function
|
|
1331
|
+
`),console.log(" "),console.log(`v${ZP.version}`),console.log(" "),console.log("Welcome to the Samarium CLI Assistant"),console.log(" "),console.log(`This assistant will help you compile an ${D} API into a samarium typescript sdk.`),console.log(" ")};var zO=(D)=>D.name==="up"||D.name==="k"||D.ctrl&&D.name==="p",l3=(D)=>D.name==="down"||D.name==="j"||D.ctrl&&D.name==="n";var GO=(D)=>D.name==="backspace",IS=(D)=>"123456789".includes(D.name),a2=(D)=>D.name==="enter"||D.name==="return";class r3 extends Error{message="Prompt was canceled"}class d3 extends Error{}class p3 extends Error{}class e8 extends Error{}import{AsyncResource as Vb}from"node:async_hooks";import{AsyncLocalStorage as Ob,AsyncResource as Wb}from"node:async_hooks";var QS=new Ob;function Eb(D){return{rl:D,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function MS(D,P){let O=Eb(D);return QS.run(O,()=>{P(O)})}function t2(){let D=QS.getStore();if(!D)throw new p3("[Inquirer] Hook functions can only be called from within a prompt");return D}function n3(){return t2().rl}function a3(D){let P=(...O)=>{let W=t2(),E=!1,F=W.handleChange;W.handleChange=()=>{E=!0};let R=D(...O);if(E)F();return W.handleChange=F,R};return Wb.bind(P)}function s2(D){let P=t2(),{index:O}=P,W={get(){return P.hooks[O]},set(F){P.hooks[O]=F},initialized:O in P.hooks},E=D(W);return P.index++,E}function bS(){t2().handleChange()}var uO={queue(D){let P=t2(),{index:O}=P;P.hooksEffect.push(()=>{P.hooksCleanup[O]?.();let W=D(n3());if(W!=null&&typeof W!=="function")throw new e8("useEffect return value must be a cleanup function or nothing.");P.hooksCleanup[O]=W})},run(){let D=t2();a3(()=>{D.hooksEffect.forEach((P)=>{P()}),D.hooksEffect.length=0})()}};function _D(D){return s2((P)=>{let O=(E)=>{if(P.get()!==E)P.set(E),bS()};if(P.initialized)return[P.get(),O];let W=typeof D==="function"?D():D;return P.set(W),[W,O]})}function IO(D,P){s2((O)=>{let W=O.get();if(!Array.isArray(W)||P.some((F,R)=>!Object.is(F,W[R])))uO.queue(D);O.set(P)})}var b0=YD(E6(),1),F6=YD(RL(),1),SL={prefix:b0.default.green("?"),spinner:{interval:F6.default.dots.interval,frames:F6.default.dots.frames.map((D)=>b0.default.yellow(D))},style:{answer:b0.default.cyan,message:b0.default.bold,error:(D)=>b0.default.red(`> ${D}`),defaultAnswer:(D)=>b0.default.dim(`(${D})`),help:b0.default.dim,highlight:b0.default.cyan,key:(D)=>b0.default.cyan.bold(`<${D}>`)}};function LL(D){if(typeof D!=="object"||D===null)return!1;let P=D;while(Object.getPrototypeOf(P)!==null)P=Object.getPrototypeOf(P);return Object.getPrototypeOf(D)===P}function BL(...D){let P={};for(let O of D)for(let[W,E]of Object.entries(O)){let F=P[W];P[W]=LL(F)&&LL(E)?BL(F,E):E}return P}function f0(...D){let P=[SL,...D.filter((O)=>O!=null)];return BL(...P)}function u2({isLoading:D=!1,theme:P}){let[O,W]=_D(0),{prefix:E,spinner:F}=f0(P);if(IO(()=>{if(D){let R=setTimeout(Vb.bind(()=>{W(O+1)}),F.interval);return()=>clearTimeout(R)}},[D,O]),D){let R=O%F.frames.length;return F.frames[R]}return E}function _O(D,P){return s2((O)=>{let W=O.get();if(!W||W.dependencies.length!==P.length||W.dependencies.some((E,F)=>E!==P[F])){let E=D();return O.set({value:E,dependencies:P}),E}return W.value})}function s0(D){return _D({current:D})[0]}function I2(D){let P=s0(D);P.current=D,IO((O)=>{let W=a3((E,F)=>{P.current(F,O)});return O.input.on("keypress",W),()=>{O.input.removeListener("keypress",W)}},[])}var $L=YD(ZL(),1),VL=YD(jL(),1);function EP(D,P){return D.split("\n").flatMap((O)=>VL.default(O,P,{trim:!1,hard:!0}).split("\n").map((W)=>W.trimEnd())).join("\n")}function TO(){return $L.default({defaultWidth:80,output:n3().output})}function lb(D,P){return EP(D,P).split("\n")}function rb(D,P){let O=P.length,W=(D%O+O)%O;return[...P.slice(W),...P.slice(0,W)]}function _L({items:D,width:P,renderItem:O,active:W,position:E,pageSize:F}){let R=D.map((X,I)=>({item:X,index:I,isActive:I===W})),S=rb(W-E,R).slice(0,F),L=(X)=>lb(O(S[X]),P),B=Array.from({length:F}),Y=L(E).slice(0,F),Z=E+Y.length<=F?E:F-Y.length;B.splice(Z,Y.length,...Y);let H=Z+Y.length,C=E+1;while(H<F&&C<S.length){for(let X of L(C))if(B[H++]=X,H>=F)break;C++}H=Z-1,C=E-1;while(H>=0&&C>=0){for(let X of L(C).reverse())if(B[H--]=X,H<0)break;C--}return B.filter((X)=>typeof X==="string")}function TL({active:D,pageSize:P,total:O}){let W=Math.floor(P/2);if(O<=P||D<W)return D;if(D>=O-W)return D+P-O;return W}function NL({active:D,lastActive:P,total:O,pageSize:W,pointer:E}){if(O<=W)return D;if(P<D&&D-P<W)return Math.min(Math.floor(W/2),E+D-P);return E}function Y6({items:D,active:P,renderItem:O,pageSize:W,loop:E=!0}){let F=s0({position:0,lastActive:0}),R=E?NL({active:P,lastActive:F.current.lastActive,total:D.length,pageSize:W,pointer:F.current.position}):TL({active:P,total:D.length,pageSize:W});return F.current.position=R,F.current.lastActive=P,_L({items:D,width:TO(),renderItem:O,active:P,position:R,pageSize:W}).join("\n")}import*as aL from"node:readline";class Z6 extends Promise{cancel=()=>{}}var tL=YD(fL(),1);var Q2=[];Q2.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32")Q2.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")Q2.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var NO=(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",H6=Symbol.for("signal-exit emitter"),A6=globalThis,pb=Object.defineProperty.bind(Object);class vL{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(A6[H6])return A6[H6];pb(A6,H6,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(D,P){this.listeners[D].push(P)}removeListener(D,P){let O=this.listeners[D],W=O.indexOf(P);if(W===-1)return;if(W===0&&O.length===1)O.length=0;else O.splice(W,1)}emit(D,P,O){if(this.emitted[D])return!1;this.emitted[D]=!0;let W=!1;for(let E of this.listeners[D])W=E(P,O)===!0||W;if(D==="exit")W=this.emit("afterExit",P,O)||W;return W}}class J6{}var nb=(D)=>{return{onExit(P,O){return D.onExit(P,O)},load(){return D.load()},unload(){return D.unload()}}};class hL extends J6{onExit(){return()=>{}}load(){}unload(){}}class gL extends J6{#O=C6.platform==="win32"?"SIGINT":"SIGHUP";#P=new vL;#D;#F;#R;#E={};#W=!1;constructor(D){super();this.#D=D,this.#E={};for(let P of Q2)this.#E[P]=()=>{let O=this.#D.listeners(P),{count:W}=this.#P,E=D;if(typeof E.__signal_exit_emitter__==="object"&&typeof E.__signal_exit_emitter__.count==="number")W+=E.__signal_exit_emitter__.count;if(O.length===W){this.unload();let F=this.#P.emit("exit",null,P),R=P==="SIGHUP"?this.#O:P;if(!F)D.kill(D.pid,R)}};this.#R=D.reallyExit,this.#F=D.emit}onExit(D,P){if(!NO(this.#D))return()=>{};if(this.#W===!1)this.load();let O=P?.alwaysLast?"afterExit":"exit";return this.#P.on(O,D),()=>{if(this.#P.removeListener(O,D),this.#P.listeners.exit.length===0&&this.#P.listeners.afterExit.length===0)this.unload()}}load(){if(this.#W)return;this.#W=!0,this.#P.count+=1;for(let D of Q2)try{let P=this.#E[D];if(P)this.#D.on(D,P)}catch(P){}this.#D.emit=(D,...P)=>{return this.#L(D,...P)},this.#D.reallyExit=(D)=>{return this.#S(D)}}unload(){if(!this.#W)return;this.#W=!1,Q2.forEach((D)=>{let P=this.#E[D];if(!P)throw new Error("Listener not defined for signal: "+D);try{this.#D.removeListener(D,P)}catch(O){}}),this.#D.emit=this.#F,this.#D.reallyExit=this.#R,this.#P.count-=1}#S(D){if(!NO(this.#D))return 0;return this.#D.exitCode=D||0,this.#P.emit("exit",this.#D.exitCode,null),this.#R.call(this.#D,this.#D.exitCode)}#L(D,...P){let O=this.#F;if(D==="exit"&&NO(this.#D)){if(typeof P[0]==="number")this.#D.exitCode=P[0];let W=O.call(this.#D,D,...P);return this.#P.emit("exit",this.#D.exitCode,null),W}else return O.call(this.#D,D,...P)}}var C6=globalThis.process,{onExit:yL,load:p_,unload:n_}=nb(NO(C6)?new gL(C6):new hL);var nL=YD(rL(),1),i0=YD(X6(),1);var pL=(D)=>D.split("\n").length,ib=(D)=>D.split("\n").pop()??"";class xO{rl;height=0;extraLinesUnderPrompt=0;cursorPos;constructor(D){this.rl=D,this.rl=D,this.cursorPos=D.getCursorPos()}render(D,P=""){let O=ib(D),W=nL.default(O),E=W;if(this.rl.line.length>0)E=E.slice(0,-this.rl.line.length);this.rl.setPrompt(E),this.cursorPos=this.rl.getCursorPos();let F=TO();if(D=EP(D,F),P=EP(P,F),W.length%F===0)D+="\n";let R=D+(P?"\n"+P:""),L=Math.floor(W.length/F)-this.cursorPos.rows+(P?pL(P):0);if(L>0)R+=i0.default.cursorUp(L);R+=i0.default.cursorTo(this.cursorPos.cols),this.clean(),this.rl.output.unmute(),this.extraLinesUnderPrompt=L,this.height=pL(R),this.rl.output.write(R),this.rl.output.mute()}checkCursorPos(){let D=this.rl.getCursorPos();if(D.cols!==this.cursorPos.cols)this.rl.output.unmute(),this.rl.output.write(i0.default.cursorTo(D.cols)),this.rl.output.mute(),this.cursorPos=D}clean(){this.rl.output.unmute(),this.rl.output.write([this.extraLinesUnderPrompt>0?i0.default.cursorDown(this.extraLinesUnderPrompt):"",i0.default.eraseLines(this.height)].join("")),this.extraLinesUnderPrompt=0,this.rl.output.mute()}clearContent(){this.rl.output.unmute(),this.rl.output.write([this.extraLinesUnderPrompt>0?i0.default.cursorDown(this.extraLinesUnderPrompt):"","\n"].join("")),this.rl.output.mute()}done(){this.rl.setPrompt(""),this.rl.output.unmute(),this.rl.output.write(i0.default.cursorShow),this.rl.output.end(),this.rl.close()}}function M2(D){return(O,W)=>{let E=W?.input??process.stdin,F=new tL.default;F.pipe(W?.output??process.stdout);let R=aL.createInterface({terminal:!0,input:E,output:F}),S=new xO(R),L=()=>{},B=new Z6((Y,Z)=>{MS(R,(H)=>{function C(){S.checkCursorPos()}let X=yL((y,V)=>{I(),Z(new d3(`User force closed the prompt with ${y} ${V}`))});function I(){try{H.hooksCleanup.forEach((y)=>{y?.()})}catch(y){Z(y)}if(W?.clearPromptOnDone)S.clean();else S.clearContent();S.done(),X(),H.rl.input.removeListener("keypress",C)}L=()=>{I(),Z(new r3)};function $(y){setImmediate(()=>{I(),Y(y)})}function x(y){H.index=0,H.handleChange=()=>x(y);try{let V=D(O,$),[DD,N]=typeof V==="string"?[V]:V;S.render(DD,N),uO.run()}catch(V){I(),Z(V)}}x(O),H.rl.input.on("keypress",C)})});return B.cancel=L,B}}var oL=YD(E6(),1);import w0 from"node:process";function ob(){if(w0.platform!=="win32")return w0.env.TERM!=="linux";return Boolean(w0.env.WT_SESSION)||Boolean(w0.env.TERMINUS_SUBLIME)||w0.env.ConEmuTask==="{cmd::Cmder}"||w0.env.TERM_PROGRAM==="Terminus-Sublime"||w0.env.TERM_PROGRAM==="vscode"||w0.env.TERM==="xterm-256color"||w0.env.TERM==="alacritty"||w0.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var sL={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},iL={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},eb={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Dw={...sL,...iL},Pw={...sL,...eb},Ow=ob(),Ww=Ow?Dw:Pw,fO=Ww,RT=Object.entries(iL);class O8{separator=oL.default.dim(Array.from({length:15}).join(fO.line));type="separator";constructor(D){if(D)this.separator=D}static isSeparator(D){return Boolean(D&&D.type==="separator")}}var vO=M2((D,P)=>{let{transformer:O=(H)=>H?"yes":"no"}=D,[W,E]=_D("pending"),[F,R]=_D(""),S=f0(D.theme),L=u2({theme:S});I2((H,C)=>{if(a2(H)){let X=D.default!==!1;if(/^(y|yes)/i.test(F))X=!0;else if(/^(n|no)/i.test(F))X=!1;R(O(X)),E("done"),P(X)}else R(C.line)});let B=F,Y="";if(W==="done")B=S.style.answer(F);else Y=` ${S.style.defaultAnswer(D.default===!1?"y/N":"Y/n")}`;let Z=S.style.message(D.message);return`${L} ${Z}${Y} ${B}`});var v0=M2((D,P)=>{let{validate:O=()=>!0}=D,W=f0(D.theme),[E,F]=_D("pending"),[R="",S]=_D(D.default),[L,B]=_D(),[Y,Z]=_D(""),C=u2({isLoading:E==="loading",theme:W});I2(async(y,V)=>{if(E!=="pending")return;if(a2(y)){let DD=Y||R;F("loading");let N=await O(DD);if(N===!0)Z(DD),F("done"),P(DD);else V.write(Y),B(N||"You must provide a valid value"),F("pending")}else if(GO(y)&&!Y)S(void 0);else if(y.name==="tab"&&!Y)S(void 0),V.clearLine(0),V.write(R),Z(R);else Z(V.line),B(void 0)});let X=W.style.message(D.message),I=Y;if(typeof D.transformer==="function")I=D.transformer(Y,{isFinal:E==="done"});else if(E==="done")I=W.style.answer(Y);let $;if(R&&E!=="done"&&!Y)$=W.style.defaultAnswer(R);let x="";if(L)x=W.style.error(L);return[[C,X,$,I].filter((y)=>y!==void 0).join(" "),x]});var XB=YD(UB(),1);var qB=YD(X6(),1);var qw={icon:{cursor:fO.pointer},style:{disabled:(D)=>XB.default.dim(`- ${D}`)},helpMode:"auto"};function E8(D){return!O8.isSeparator(D)&&!D.disabled}var e0=M2((D,P)=>{let{choices:O,loop:W=!0,pageSize:E=7}=D,F=s0(!0),R=f0(qw,D.theme),S=u2({theme:R}),[L,B]=_D("pending"),Y=s0(),Z=_O(()=>{let N=O.findIndex(E8),ED=O.findLastIndex(E8);if(N<0)throw new e8("[select prompt] No selectable choices. All choices are disabled.");return{first:N,last:ED}},[O]),H=_O(()=>{if(!("default"in D))return-1;return O.findIndex((N)=>E8(N)&&N.value===D.default)},[D.default,O]),[C,X]=_D(H===-1?Z.first:H),I=O[C];I2((N,ED)=>{if(clearTimeout(Y.current),a2(N))B("done"),P(I.value);else if(zO(N)||l3(N)){if(ED.clearLine(0),W||zO(N)&&C!==Z.first||l3(N)&&C!==Z.last){let JD=zO(N)?-1:1,BD=C;do BD=(BD+JD+O.length)%O.length;while(!E8(O[BD]));X(BD)}}else if(IS(N)){ED.clearLine(0);let JD=Number(N.name)-1,BD=O[JD];if(BD!=null&&E8(BD))X(JD)}else if(GO(N))ED.clearLine(0);else{let JD=ED.line.toLowerCase(),BD=O.findIndex((q)=>{if(O8.isSeparator(q)||!E8(q))return!1;return String(q.name||q.value).toLowerCase().startsWith(JD)});if(BD>=0)X(BD);Y.current=setTimeout(()=>{ED.clearLine(0)},700)}});let $=R.style.message(D.message),x="",y="";if(R.helpMode==="always"||R.helpMode==="auto"&&F.current)if(F.current=!1,O.length>E)y=`\n${R.style.help("(Use arrow keys to reveal more choices)")}`;else x=R.style.help("(Use arrow keys)");let V=Y6({items:O,active:C,renderItem({item:N,isActive:ED}){if(O8.isSeparator(N))return` ${N.separator}`;let JD=N.name||N.value;if(N.disabled){let _=typeof N.disabled==="string"?N.disabled:"(disabled)";return R.style.disabled(`${JD} ${_}`)}let BD=ED?R.style.highlight:(_)=>_,q=ED?R.icon.cursor:" ";return BD(`${q} ${JD}`)},pageSize:E,loop:W});if(L==="done"){let N=I.name||String(I.value);return`${S} ${$} ${R.style.answer(N)}`}let DD=I.description?`\n${I.description}`:"";return`${[S,$,x].filter(Boolean).join(" ")}\n${V}${DD}${y}${qB.default.cursorHide}`});var b2=YD(pO(),1);var Nw=/^(?:( )+|\t+)/;function fB(D,P){let O=new Map,W=0,E,F;for(let R of D.split(/\n/g)){if(!R)continue;let S,L,B,Y,Z,H=R.match(Nw);if(H===null)W=0,E="";else{if(S=H[0].length,L=H[1]?"space":"tab",P&&L==="space"&&S===1)continue;if(L!==E)W=0;E=L,B=1,Y=0;let C=S-W;if(W=S,C===0)B=0,Y=1;else{let X=C>0?C:-C;F=kw(L,X)}Z=O.get(F),Z=Z===void 0?[1,0]:[Z[0]+B,Z[1]+Y],O.set(F,Z)}}return O}function kw(D,P){return(D==="space"?"s":"t")+String(P)}function xw(D){let O=D[0]==="s"?"space":"tab",W=Number(D.slice(1));return{type:O,amount:W}}function fw(D){let P,O=0,W=0;for(let[E,[F,R]]of D)if(F>O||F===O&&R>W)O=F,W=R,P=E;return P}function vw(D,P){return(D==="space"?" ":"\t").repeat(P)}function V6(D){if(typeof D!=="string")throw new TypeError("Expected a string");let P=fB(D,!0);if(P.size===0)P=fB(D,!1);let O=fw(P),W,E=0,F="";if(O!==void 0)({type:W,amount:E}=xw(O)),F=vw(W,E);return{amount:E,type:W,indent:F}}var P0=async(D,P,O,W=!1)=>{let E=/<([^>]+)>|\[([^\]]+)\]/g,F,R=[];while(F=E.exec(P))R.push(F[1]??F[2]);if(R.length>0){if(!W)n2(D),W=!1;let S=P.replace(E,(L)=>`\x1B[32m${L}\x1B[0m`);if(await vO({message:`${O} contains placeholders: ${S} . Do you want to replace them with actual values?`})){let L=[];for(let B of R){let Y=await v0({message:`Enter value for placeholder ${B}:`});L.push(Y)}P=P.replace(E,()=>L.shift()??""),console.log(`${O} has been updated to: ${P}`),console.log(" ")}else console.log(`${O} has not been updated. Using the original value: ${P}`),console.log(" ");return P}return P},nO=async(D)=>{let P="";while(!P){P=await v0({message:D});try{new URL(P)}catch(O){console.log("Invalid URL"),P=""}}return P},aO=async()=>{let D=await e0({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 v0({message:"Enter the header name:"});let P="";while(!P)P=await v0({message:"Enter the header value:"});return[D,P]},tO=async(D=["."])=>{while(!0){let P=LP.readdirSync(D.join("/"),{withFileTypes:!0}),O=await e0({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"},...P.filter((W)=>W.isDirectory()).map((W)=>({name:W.name,value:W.name}))]});if(D.push(O),O==="[new_dir]"){D.pop();let W=await v0({message:"Enter the new directory name:"});LP.mkdirSync(_6.resolve(...D,W)),D.push(W);break}if(O===".")break;if(O===".."){D.pop(),D.pop();continue}}return D},sO=async(D)=>{let P=await v0({message:D,default:"sdk.ts"});if(!P.endsWith(".ts"))P+=".ts";return P},gD={import:b2.default.rgb(185,126,180),name:b2.default.rgb(156,220,254),from:b2.default.rgb(185,126,180),string:b2.default.rgb(206,145,120)},iO=async(D,P)=>{let O=!1;if(LP.existsSync("tsconfig.json")&&await vO({message:`
|
|
1332
|
+
File 'tsconfig.json' detected. Do you want to add an import alias for the generated file?`,default:!1})){console.log(" ");let W=await v0({message:"Enter the alias name:",default:D.replace(".ts","")}),E=LP.readFileSync("tsconfig.json","utf-8");E=E.replace(/\/\/.*/g,"");let F=V6(E).indent||" ",R=JSON.parse(E),S=R.compilerOptions?.baseUrl||".",L=_6.relative(_6.resolve(process.cwd(),S),P);if(!R.compilerOptions)R.compilerOptions={};if(!R.compilerOptions.paths)R.compilerOptions.paths={};R.compilerOptions.paths[W]=[L],LP.writeFileSync("tsconfig.json",JSON.stringify(R,null,F)),console.log(`
|
|
1333
|
+
${b2.default.green("Done! Alias added to 'tsconfig.json'.")}
|
|
1334
|
+
${b2.default.green("Go ahead and import the generated file in your project:")}
|
|
1335
|
+
|
|
1336
|
+
${gD.import("import")} ${gD.name(W)} ${gD.from("from")} ${gD.string(`"${W}"`)};
|
|
1337
|
+
`),O=!0}return O};var T6=async(D,P,O,W={})=>{let E=!0;if(D.url=await P0("GraphQL",D.url,"The URL",E),D.headers?.length)for(let L of D.headers){let B=await P0("GraphQL",L,"The header",E);D.headers[D.headers.indexOf(L)]=B}if(W.endpoint)W.endpoint=await P0("GraphQL",W.endpoint,"The endpoint",E);if(W.authHeaderName)W.authHeaderName=await P0("GraphQL",W.authHeaderName,"The auth header name",E);O=await P0("GraphQL",O,"The output file",E);let F;try{F=await G2(D.url,D.headers)}catch(L){if(L.response?.status===401||L.response?.status===403){console.error(`Introspection failed: HTTP ${L.response.status} Unauthorized. Please check your headers.`);return}console.error("Failed to introspect schema",L);return}let S=await new r2.Generator(a0.GraphQL[P]).generate({schema:F,options:{},authConfig:D.headers?{headerName:D.headers.length===1?D.headers[0].split("=")[0]:"Authorization"}:void 0});if(!O.endsWith(".ts"))O+=".ts";vB.mkdirSync(O.split("/").slice(0,-1).join("/"),{recursive:!0}),vB.writeFileSync(O,S.replace("[ENDPOINT]",W.endpoint??D.url))};var N6=YD(pO(),1);import hw from"fs";import hB from"path";var gB=async()=>{n2("GraphQL");let D=await nO("Enter the graphql endpoint url:"),P,O;try{P=await G2(D)}catch(R){if(R.response?.status===401||R.response?.status===403){let[S,L]=await aO();try{P=await G2(D,[`${S}=${L}`]),O=S}catch(B){console.error("Error: ",B.message);return}}else{console.error("Error: ",R.message),console.error("Failed to introspect schema");return}}if(!P){console.error("Failed to introspect schema");return}let W=await tO(["."]),E=await sO("Enter the output filename:"),F=hB.resolve(...W,E);try{let S=await new r2.Generator(a0.GraphQL.default).generate({schema:P,options:{},authConfig:O?{headerName:O}:void 0});hw.writeFileSync(F,S.replace("[ENDPOINT]",D))}catch(R){console.error("Error: ",R.message),console.error("Failed to generate code");return}if(!await iO(E,F))console.log(`
|
|
1338
|
+
${N6.default.green(`Done! Generated file saved at ${F}.`)}
|
|
1339
|
+
${N6.default.green("Go ahead and import the generated file in your project:")}
|
|
1340
|
+
|
|
1341
|
+
${gD.import("import")} ${gD.name(E.replace(".ts",""))} ${gD.from("from")} ${gD.string(`"./${hB.relative(process.cwd(),F.replace(".ts",""))}"`)};
|
|
1342
|
+
`);console.log(" "),console.log("Please star the repo if you liked it! https://github.com/liontariai/samarium"),console.log(" ")};async function w2(D,P){return await(await fetch(D,{headers:P?.map((E)=>E.split("="))})).json()}import yw from"fs";var k6=async(D,P)=>{let O=await w2(D.url,D.headers);yw.writeFileSync(P,JSON.stringify(O,null,2))};import yB from"fs";var x6=async(D,P,O,W={})=>{let E=!0;if(D.url=await P0("OpenAPI",D.url,"The URL",E),D.headers?.length)for(let L of D.headers){let B=await P0("OpenAPI",L,"The header",E);D.headers[D.headers.indexOf(L)]=B}if(W.endpoint)W.endpoint=await P0("OpenAPI",W.endpoint,"The endpoint",E);if(W.authHeaderName)W.authHeaderName=await P0("OpenAPI",W.authHeaderName,"The auth header name",E);O=await P0("OpenAPI",O,"The output file",E);let F;try{F=await w2(D.url,D.headers)}catch(L){if(L.response?.status===401||L.response?.status===403){console.error(`Introspection failed: HTTP ${L.response.status} Unauthorized. Please check your headers.`);return}console.error("Failed to introspect schema",L);return}let S=await new p2.Generator(a0.OpenAPI[P]).generate({schema:F,options:{},authConfig:D.headers?{headerName:D.headers.length===1?D.headers[0].split("=")[0]:"Authorization"}:void 0});if(!O.endsWith(".ts"))O+=".ts";yB.mkdirSync(O.split("/").slice(0,-1).join("/"),{recursive:!0}),yB.writeFileSync(O,S.replace("[ENDPOINT]",W.endpoint??F.servers?.[0]?.url??D.url))};var f6=YD(pO(),1);import mw from"fs";import mB from"path";var cB=async()=>{n2("OpenAPI");let D=await nO("Enter the url to the OpenAPI schema json file:"),P,O;try{P=await w2(D)}catch(R){if(R.response?.status===401||R.response?.status===403){let[S,L]=await aO();try{P=await w2(D,[`${S}=${L}`]),O=S}catch(B){console.error("Error: ",B.message);return}}else{console.error("Error: ",R.message),console.error("Failed to introspect schema");return}}if(!P){console.error("Failed to introspect schema");return}let W=await tO(["."]),E=await sO("Enter the output filename:"),F=mB.resolve(...W,E);try{let S=await new p2.Generator(a0.OpenAPI.default).generate({schema:P,options:{},authConfig:O?{headerName:O}:void 0});mw.writeFileSync(F,S.replace("[ENDPOINT]",P.servers?.[0]?.url??D))}catch(R){console.error("Error: ",R.message),console.error("Failed to generate code");return}if(!await iO(E,F))console.log(`
|
|
1343
|
+
${f6.default.green(`Done! Generated file saved at ${F}.`)}
|
|
1344
|
+
${f6.default.green("Go ahead and import the generated file in your project:")}
|
|
1345
|
+
|
|
1346
|
+
${gD.import("import")} ${gD.name(E.replace(".ts",""))} ${gD.from("from")} ${gD.string(`"./${mB.relative(process.cwd(),F.replace(".ts",""))}"`)};
|
|
1347
|
+
`);console.log(" "),console.log("Please star the repo if you liked it! https://github.com/liontariai/samarium"),console.log(" ")};function R8(D,P){return P.concat([D])}var h0=new FE;h0.name("samarium").description("CLI Description").version(ZP.version);h0.command("ui",{isDefault:!0}).description("Start the assistant UI").action(async()=>{if(await e0({message:"Do you want to compile GraphQL or OpenAPI?",choices:[{name:"GraphQL",value:"GraphQL",description:"GraphQL"},{name:"OpenAPI",value:"OpenAPI",description:"OpenAPI"}]})==="GraphQL")await gB().catch((P)=>{});else await cB().catch((P)=>{})});h0.command("introspect <url> <output>").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",R8,[]).description("This command is deprecated. Use the explicit command instead: introspect-gql or introspect-openapi").action(async(D,P,{header:O}={})=>{if(await e0({message:"Do you want to introspect GraphQL or OpenAPI?",choices:[{name:"GraphQL",value:"GraphQL",description:"GraphQL"},{name:"OpenAPI",value:"OpenAPI",description:"OpenAPI"}]})==="GraphQL")await x3({url:D,headers:O},P);else await k6({url:D,headers:O},P)});h0.command("introspect-gql <url> <output>").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",R8,[]).description("Introspect a GraphQL schema").action(async(D,P,{header:O}={})=>{await x3({url:D,headers:O},P)});h0.command("introspect-openapi <url> <output>").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",R8,[]).description("Introspect an OpenAPI schema").action(async(D,P,{header:O}={})=>{await k6({url:D,headers:O},P)});h0.command("generate <url> <output>").alias("g").description("This command is deprecated. Use the explicit command instead: generate-gql or generate-openapi").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",R8,[]).option("--endpoint [endpoint]","Endpoint to use in the generated code, defaults to the schema introspection URL").option("--auth-header-name [authHeaderName]","Name of the header to use for authorization. Defaults to first header name, if headers are provided.").action(async(D,P,{header:O,endpoint:W,authHeaderName:E}={})=>{if(await e0({message:"Do you want to compile GraphQL or OpenAPI?",choices:[{name:"GraphQL",value:"GraphQL",description:"GraphQL"},{name:"OpenAPI",value:"OpenAPI",description:"OpenAPI"}]})==="GraphQL")await T6({url:D,headers:O},"default",P,{endpoint:W,authHeaderName:E});else await x6({url:D,headers:O},"default",P,{endpoint:W,authHeaderName:E})});h0.command("generate-gql <url> <output>").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",R8,[]).option("--endpoint [endpoint]","Endpoint to use in the generated code, defaults to the schema introspection URL").option("--auth-header-name [authHeaderName]","Name of the header to use for authorization. Defaults to first header name, if headers are provided.").description("Generate code from a GraphQL schema").action(async(D,P,{header:O,endpoint:W,authHeaderName:E}={})=>{await T6({url:D,headers:O},"default",P,{endpoint:W,authHeaderName:E})});h0.command("generate-openapi <url> <output>").alias("generate-oas").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",R8,[]).option("--endpoint [endpoint]","Endpoint to use in the generated code, defaults to the schema introspection URL").option("--auth-header-name [authHeaderName]","Name of the header to use for authorization. Defaults to first header name, if headers are provided.").description("Generate code from a GraphQL schema").action(async(D,P,{header:O,endpoint:W,authHeaderName:E}={})=>{await x6({url:D,headers:O},"default",P,{endpoint:W,authHeaderName:E})});h0.parse(process.argv);
|