workspace-utils 1.0.6 → 1.1.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/dist/index.js +111 -109
- package/package.json +1 -1
- package/dist/package.json +0 -57
package/dist/index.js
CHANGED
|
@@ -1,168 +1,168 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{createRequire as
|
|
2
|
+
import{createRequire as zZ}from"node:module";var qZ=Object.create;var{getPrototypeOf:$Z,defineProperty:y$,getOwnPropertyNames:ZZ}=Object;var XZ=Object.prototype.hasOwnProperty;var P1=(_,q,$)=>{$=_!=null?qZ($Z(_)):{};let Z=q||!_||!_.__esModule?y$($,"default",{value:_,enumerable:!0}):$;for(let X of ZZ(_))if(!XZ.call(Z,X))y$(Z,X,{get:()=>_[X],enumerable:!0});return Z};var H=(_,q)=>()=>(q||_((q={exports:{}}).exports,q),q.exports);var x=zZ(import.meta.url);var M0=H((UZ)=>{class Hq extends Error{constructor(_,q,$){super($);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=q,this.exitCode=_,this.nestedError=void 0}}class h$ extends Hq{constructor(_){super(1,"commander.invalidArgument",_);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}UZ.CommanderError=Hq;UZ.InvalidArgumentError=h$});var t0=H((WZ)=>{var{InvalidArgumentError:BZ}=M0();class x${constructor(_,q){switch(this.description=q||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,_[0]){case"<":this.required=!0,this._name=_.slice(1,-1);break;case"[":this.required=!1,this._name=_.slice(1,-1);break;default:this.required=!0,this._name=_;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(_,q){if(q===this.defaultValue||!Array.isArray(q))return[_];return q.concat(_)}default(_,q){return this.defaultValue=_,this.defaultValueDescription=q,this}argParser(_){return this.parseArg=_,this}choices(_){return this.argChoices=_.slice(),this.parseArg=(q,$)=>{if(!this.argChoices.includes(q))throw new BZ(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(q,$);return q},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function JZ(_){let q=_.name()+(_.variadic===!0?"...":"");return _.required?"<"+q+">":"["+q+"]"}WZ.Argument=x$;WZ.humanReadableArgName=JZ});var Iq=H((LZ)=>{var{humanReadableArgName:GZ}=t0();class g${constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(_){let q=_.commands.filter(($)=>!$._hidden);if(_._hasImplicitHelpCommand()){let[,$,Z]=_._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),X=_.createCommand($).helpOption(!1);if(X.description(_._helpCommandDescription),Z)X.arguments(Z);q.push(X)}if(this.sortSubcommands)q.sort(($,Z)=>{return $.name().localeCompare(Z.name())});return q}compareOptions(_,q){let $=(Z)=>{return Z.short?Z.short.replace(/^-/,""):Z.long.replace(/^--/,"")};return $(_).localeCompare($(q))}visibleOptions(_){let q=_.options.filter((X)=>!X.hidden),$=_._hasHelpOption&&_._helpShortFlag&&!_._findOption(_._helpShortFlag),Z=_._hasHelpOption&&!_._findOption(_._helpLongFlag);if($||Z){let X;if(!$)X=_.createOption(_._helpLongFlag,_._helpDescription);else if(!Z)X=_.createOption(_._helpShortFlag,_._helpDescription);else X=_.createOption(_._helpFlags,_._helpDescription);q.push(X)}if(this.sortOptions)q.sort(this.compareOptions);return q}visibleGlobalOptions(_){if(!this.showGlobalOptions)return[];let q=[];for(let $=_.parent;$;$=$.parent){let Z=$.options.filter((X)=>!X.hidden);q.push(...Z)}if(this.sortOptions)q.sort(this.compareOptions);return q}visibleArguments(_){if(_._argsDescription)_.registeredArguments.forEach((q)=>{q.description=q.description||_._argsDescription[q.name()]||""});if(_.registeredArguments.find((q)=>q.description))return _.registeredArguments;return[]}subcommandTerm(_){let q=_.registeredArguments.map(($)=>GZ($)).join(" ");return _._name+(_._aliases[0]?"|"+_._aliases[0]:"")+(_.options.length?" [options]":"")+(q?" "+q:"")}optionTerm(_){return _.flags}argumentTerm(_){return _.name()}longestSubcommandTermLength(_,q){return q.visibleCommands(_).reduce(($,Z)=>{return Math.max($,q.subcommandTerm(Z).length)},0)}longestOptionTermLength(_,q){return q.visibleOptions(_).reduce(($,Z)=>{return Math.max($,q.optionTerm(Z).length)},0)}longestGlobalOptionTermLength(_,q){return q.visibleGlobalOptions(_).reduce(($,Z)=>{return Math.max($,q.optionTerm(Z).length)},0)}longestArgumentTermLength(_,q){return q.visibleArguments(_).reduce(($,Z)=>{return Math.max($,q.argumentTerm(Z).length)},0)}commandUsage(_){let q=_._name;if(_._aliases[0])q=q+"|"+_._aliases[0];let $="";for(let Z=_.parent;Z;Z=Z.parent)$=Z.name()+" "+$;return $+q+" "+_.usage()}commandDescription(_){return _.description()}subcommandDescription(_){return _.summary()||_.description()}optionDescription(_){let q=[];if(_.argChoices)q.push(`choices: ${_.argChoices.map(($)=>JSON.stringify($)).join(", ")}`);if(_.defaultValue!==void 0){if(_.required||_.optional||_.isBoolean()&&typeof _.defaultValue==="boolean")q.push(`default: ${_.defaultValueDescription||JSON.stringify(_.defaultValue)}`)}if(_.presetArg!==void 0&&_.optional)q.push(`preset: ${JSON.stringify(_.presetArg)}`);if(_.envVar!==void 0)q.push(`env: ${_.envVar}`);if(q.length>0)return`${_.description} (${q.join(", ")})`;return _.description}argumentDescription(_){let q=[];if(_.argChoices)q.push(`choices: ${_.argChoices.map(($)=>JSON.stringify($)).join(", ")}`);if(_.defaultValue!==void 0)q.push(`default: ${_.defaultValueDescription||JSON.stringify(_.defaultValue)}`);if(q.length>0){let $=`(${q.join(", ")})`;if(_.description)return`${_.description} ${$}`;return $}return _.description}formatHelp(_,q){let $=q.padWidth(_,q),Z=q.helpWidth||80,X=2,z=2;function U(G,L){if(L){let F=`${G.padEnd($+2)}${L}`;return q.wrap(F,Z-2,$+2)}return G}function Q(G){return G.join(`
|
|
3
3
|
`).replace(/^/gm," ".repeat(2))}let Y=[`Usage: ${q.commandUsage(_)}`,""],B=q.commandDescription(_);if(B.length>0)Y=Y.concat([q.wrap(B,Z,0),""]);let W=q.visibleArguments(_).map((G)=>{return U(q.argumentTerm(G),q.argumentDescription(G))});if(W.length>0)Y=Y.concat(["Arguments:",Q(W),""]);let V=q.visibleOptions(_).map((G)=>{return U(q.optionTerm(G),q.optionDescription(G))});if(V.length>0)Y=Y.concat(["Options:",Q(V),""]);if(this.showGlobalOptions){let G=q.visibleGlobalOptions(_).map((L)=>{return U(q.optionTerm(L),q.optionDescription(L))});if(G.length>0)Y=Y.concat(["Global Options:",Q(G),""])}let J=q.visibleCommands(_).map((G)=>{return U(q.subcommandTerm(G),q.subcommandDescription(G))});if(J.length>0)Y=Y.concat(["Commands:",Q(J),""]);return Y.join(`
|
|
4
4
|
`)}padWidth(_,q){return Math.max(q.longestOptionTermLength(_,q),q.longestGlobalOptionTermLength(_,q),q.longestSubcommandTermLength(_,q),q.longestArgumentTermLength(_,q))}wrap(_,q,$,Z=40){let z=new RegExp(`[\\n][${" \\f\\t\\v - \uFEFF"}]+`);if(_.match(z))return _;let U=q-$;if(U<Z)return _;let Q=_.slice(0,$),Y=_.slice($).replace(`\r
|
|
5
5
|
`,`
|
|
6
6
|
`),B=" ".repeat($),V=`\\s${""}`,J=new RegExp(`
|
|
7
7
|
|.{1,${U-1}}([${V}]|$)|[^${V}]+?([${V}]|$)`,"g"),G=Y.match(J)||[];return Q+G.map((L,F)=>{if(L===`
|
|
8
8
|
`)return"";return(F>0?B:"")+L.trimEnd()}).join(`
|
|
9
|
-
`)}}
|
|
9
|
+
`)}}LZ.Help=g$});var Tq=H((TZ)=>{var{InvalidArgumentError:HZ}=M0();class k${constructor(_,q){this.flags=_,this.description=q||"",this.required=_.includes("<"),this.optional=_.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(_),this.mandatory=!1;let $=u$(_);if(this.short=$.shortFlag,this.long=$.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(_,q){return this.defaultValue=_,this.defaultValueDescription=q,this}preset(_){return this.presetArg=_,this}conflicts(_){return this.conflictsWith=this.conflictsWith.concat(_),this}implies(_){let q=_;if(typeof _==="string")q={[_]:!0};return this.implied=Object.assign(this.implied||{},q),this}env(_){return this.envVar=_,this}argParser(_){return this.parseArg=_,this}makeOptionMandatory(_=!0){return this.mandatory=!!_,this}hideHelp(_=!0){return this.hidden=!!_,this}_concatValue(_,q){if(q===this.defaultValue||!Array.isArray(q))return[_];return q.concat(_)}choices(_){return this.argChoices=_.slice(),this.parseArg=(q,$)=>{if(!this.argChoices.includes(q))throw new HZ(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(q,$);return q},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){return IZ(this.name().replace(/^no-/,""))}is(_){return this.short===_||this.long===_}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class v${constructor(_){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,_.forEach((q)=>{if(q.negate)this.negativeOptions.set(q.attributeName(),q);else this.positiveOptions.set(q.attributeName(),q)}),this.negativeOptions.forEach((q,$)=>{if(this.positiveOptions.has($))this.dualOptions.add($)})}valueFromOption(_,q){let $=q.attributeName();if(!this.dualOptions.has($))return!0;let Z=this.negativeOptions.get($).presetArg,X=Z!==void 0?Z:!1;return q.negate===(X===_)}}function IZ(_){return _.split("-").reduce((q,$)=>{return q+$[0].toUpperCase()+$.slice(1)})}function u$(_){let q,$,Z=_.split(/[ |,]+/);if(Z.length>1&&!/^[[<]/.test(Z[1]))q=Z.shift();if($=Z.shift(),!q&&/^-[^-]$/.test($))q=$,$=void 0;return{shortFlag:q,longFlag:$}}TZ.Option=k$;TZ.splitOptionFlags=u$;TZ.DualOptions=v$});var m$=H((PZ)=>{function wZ(_,q){if(Math.abs(_.length-q.length)>3)return Math.max(_.length,q.length);let $=[];for(let Z=0;Z<=_.length;Z++)$[Z]=[Z];for(let Z=0;Z<=q.length;Z++)$[0][Z]=Z;for(let Z=1;Z<=q.length;Z++)for(let X=1;X<=_.length;X++){let z=1;if(_[X-1]===q[Z-1])z=0;else z=1;if($[X][Z]=Math.min($[X-1][Z]+1,$[X][Z-1]+1,$[X-1][Z-1]+z),X>1&&Z>1&&_[X-1]===q[Z-2]&&_[X-2]===q[Z-1])$[X][Z]=Math.min($[X][Z],$[X-2][Z-2]+1)}return $[_.length][q.length]}function RZ(_,q){if(!q||q.length===0)return"";q=Array.from(new Set(q));let $=_.startsWith("--");if($)_=_.slice(2),q=q.map((U)=>U.slice(2));let Z=[],X=3,z=0.4;if(q.forEach((U)=>{if(U.length<=1)return;let Q=wZ(_,U),Y=Math.max(_.length,U.length);if((Y-Q)/Y>z){if(Q<X)X=Q,Z=[U];else if(Q===X)Z.push(U)}}),Z.sort((U,Q)=>U.localeCompare(Q)),$)Z=Z.map((U)=>`--${U}`);if(Z.length>1)return`
|
|
10
10
|
(Did you mean one of ${Z.join(", ")}?)`;if(Z.length===1)return`
|
|
11
|
-
(Did you mean ${Z[0]}?)`;return""}
|
|
12
|
-
- specify the name in Command constructor or using .name()`);if(q=q||{},q.isDefault)this._defaultCommandName=_._name;if(q.noHelp||q.hidden)_._hidden=!0;return this.commands.push(_),_.parent=this,this}createArgument(_,q){return new
|
|
13
|
-
Expecting one of '${$.join("', '")}'`);if(this._lifeCycleHooks[_])this._lifeCycleHooks[_].push(q);else this._lifeCycleHooks[_]=[q];return this}exitOverride(_){if(_)this._exitCallback=_;else this._exitCallback=(q)=>{if(q.code!=="commander.executeSubCommandAsync")throw q};return this}_exit(_,q,$){if(this._exitCallback)this._exitCallback(new
|
|
11
|
+
(Did you mean ${Z[0]}?)`;return""}PZ.suggestSimilar=RZ});var p$=H((bZ)=>{var jZ=x("events").EventEmitter,Kq=x("child_process"),T1=x("path"),Dq=x("fs"),i=x("process"),{Argument:NZ,humanReadableArgName:OZ}=t0(),{CommanderError:Sq}=M0(),{Help:fZ}=Iq(),{Option:d$,splitOptionFlags:EZ,DualOptions:CZ}=Tq(),{suggestSimilar:l$}=m$();class wq extends jZ{constructor(_){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=_||"",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:(q)=>i.stdout.write(q),writeErr:(q)=>i.stderr.write(q),getOutHelpWidth:()=>i.stdout.isTTY?i.stdout.columns:void 0,getErrHelpWidth:()=>i.stderr.isTTY?i.stderr.columns:void 0,outputError:(q,$)=>$(q)},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(_){return this._outputConfiguration=_._outputConfiguration,this._hasHelpOption=_._hasHelpOption,this._helpFlags=_._helpFlags,this._helpDescription=_._helpDescription,this._helpShortFlag=_._helpShortFlag,this._helpLongFlag=_._helpLongFlag,this._helpCommandName=_._helpCommandName,this._helpCommandnameAndArgs=_._helpCommandnameAndArgs,this._helpCommandDescription=_._helpCommandDescription,this._helpConfiguration=_._helpConfiguration,this._exitCallback=_._exitCallback,this._storeOptionsAsProperties=_._storeOptionsAsProperties,this._combineFlagAndOptionalValue=_._combineFlagAndOptionalValue,this._allowExcessArguments=_._allowExcessArguments,this._enablePositionalOptions=_._enablePositionalOptions,this._showHelpAfterError=_._showHelpAfterError,this._showSuggestionAfterError=_._showSuggestionAfterError,this}_getCommandAndAncestors(){let _=[];for(let q=this;q;q=q.parent)_.push(q);return _}command(_,q,$){let Z=q,X=$;if(typeof Z==="object"&&Z!==null)X=Z,Z=null;X=X||{};let[,z,U]=_.match(/([^ ]+) *(.*)/),Q=this.createCommand(z);if(Z)Q.description(Z),Q._executableHandler=!0;if(X.isDefault)this._defaultCommandName=Q._name;if(Q._hidden=!!(X.noHelp||X.hidden),Q._executableFile=X.executableFile||null,U)Q.arguments(U);if(this.commands.push(Q),Q.parent=this,Q.copyInheritedSettings(this),Z)return this;return Q}createCommand(_){return new wq(_)}createHelp(){return Object.assign(new fZ,this.configureHelp())}configureHelp(_){if(_===void 0)return this._helpConfiguration;return this._helpConfiguration=_,this}configureOutput(_){if(_===void 0)return this._outputConfiguration;return Object.assign(this._outputConfiguration,_),this}showHelpAfterError(_=!0){if(typeof _!=="string")_=!!_;return this._showHelpAfterError=_,this}showSuggestionAfterError(_=!0){return this._showSuggestionAfterError=!!_,this}addCommand(_,q){if(!_._name)throw Error(`Command passed to .addCommand() must have a name
|
|
12
|
+
- specify the name in Command constructor or using .name()`);if(q=q||{},q.isDefault)this._defaultCommandName=_._name;if(q.noHelp||q.hidden)_._hidden=!0;return this.commands.push(_),_.parent=this,this}createArgument(_,q){return new NZ(_,q)}argument(_,q,$,Z){let X=this.createArgument(_,q);if(typeof $==="function")X.default(Z).argParser($);else X.default($);return this.addArgument(X),this}arguments(_){return _.trim().split(/ +/).forEach((q)=>{this.argument(q)}),this}addArgument(_){let q=this.registeredArguments.slice(-1)[0];if(q&&q.variadic)throw Error(`only the last argument can be variadic '${q.name()}'`);if(_.required&&_.defaultValue!==void 0&&_.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${_.name()}'`);return this.registeredArguments.push(_),this}addHelpCommand(_,q){if(_===!1)this._addImplicitHelpCommand=!1;else{if(this._addImplicitHelpCommand=!0,typeof _==="string")this._helpCommandName=_.split(" ")[0],this._helpCommandnameAndArgs=_;this._helpCommandDescription=q||this._helpCommandDescription}return this}_hasImplicitHelpCommand(){if(this._addImplicitHelpCommand===void 0)return this.commands.length&&!this._actionHandler&&!this._findCommand("help");return this._addImplicitHelpCommand}hook(_,q){let $=["preSubcommand","preAction","postAction"];if(!$.includes(_))throw Error(`Unexpected value for event passed to hook : '${_}'.
|
|
13
|
+
Expecting one of '${$.join("', '")}'`);if(this._lifeCycleHooks[_])this._lifeCycleHooks[_].push(q);else this._lifeCycleHooks[_]=[q];return this}exitOverride(_){if(_)this._exitCallback=_;else this._exitCallback=(q)=>{if(q.code!=="commander.executeSubCommandAsync")throw q};return this}_exit(_,q,$){if(this._exitCallback)this._exitCallback(new Sq(_,q,$));i.exit(_)}action(_){let q=($)=>{let Z=this.registeredArguments.length,X=$.slice(0,Z);if(this._storeOptionsAsProperties)X[Z]=this;else X[Z]=this.opts();return X.push(this),_.apply(this,X)};return this._actionHandler=q,this}createOption(_,q){return new d$(_,q)}_callParseArg(_,q,$,Z){try{return _.parseArg(q,$)}catch(X){if(X.code==="commander.invalidArgument"){let z=`${Z} ${X.message}`;this.error(z,{exitCode:X.exitCode,code:X.code})}throw X}}addOption(_){let q=_.name(),$=_.attributeName();if(_.negate){let X=_.long.replace(/^--no-/,"--");if(!this._findOption(X))this.setOptionValueWithSource($,_.defaultValue===void 0?!0:_.defaultValue,"default")}else if(_.defaultValue!==void 0)this.setOptionValueWithSource($,_.defaultValue,"default");this.options.push(_);let Z=(X,z,U)=>{if(X==null&&_.presetArg!==void 0)X=_.presetArg;let Q=this.getOptionValue($);if(X!==null&&_.parseArg)X=this._callParseArg(_,X,Q,z);else if(X!==null&&_.variadic)X=_._concatValue(X,Q);if(X==null)if(_.negate)X=!1;else if(_.isBoolean()||_.optional)X=!0;else X="";this.setOptionValueWithSource($,X,U)};if(this.on("option:"+q,(X)=>{let z=`error: option '${_.flags}' argument '${X}' is invalid.`;Z(X,z,"cli")}),_.envVar)this.on("optionEnv:"+q,(X)=>{let z=`error: option '${_.flags}' value '${X}' from env '${_.envVar}' is invalid.`;Z(X,z,"env")});return this}_optionEx(_,q,$,Z,X){if(typeof q==="object"&&q instanceof d$)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let z=this.createOption(q,$);if(z.makeOptionMandatory(!!_.mandatory),typeof Z==="function")z.default(X).argParser(Z);else if(Z instanceof RegExp){let U=Z;Z=(Q,Y)=>{let B=U.exec(Q);return B?B[0]:Y},z.default(X).argParser(Z)}else z.default(Z);return this.addOption(z)}option(_,q,$,Z){return this._optionEx({},_,q,$,Z)}requiredOption(_,q,$,Z){return this._optionEx({mandatory:!0},_,q,$,Z)}combineFlagAndOptionalValue(_=!0){return this._combineFlagAndOptionalValue=!!_,this}allowUnknownOption(_=!0){return this._allowUnknownOption=!!_,this}allowExcessArguments(_=!0){return this._allowExcessArguments=!!_,this}enablePositionalOptions(_=!0){return this._enablePositionalOptions=!!_,this}passThroughOptions(_=!0){if(this._passThroughOptions=!!_,!!this.parent&&_&&!this.parent._enablePositionalOptions)throw Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(_=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");return this._storeOptionsAsProperties=!!_,this}getOptionValue(_){if(this._storeOptionsAsProperties)return this[_];return this._optionValues[_]}setOptionValue(_,q){return this.setOptionValueWithSource(_,q,void 0)}setOptionValueWithSource(_,q,$){if(this._storeOptionsAsProperties)this[_]=q;else this._optionValues[_]=q;return this._optionValueSources[_]=$,this}getOptionValueSource(_){return this._optionValueSources[_]}getOptionValueSourceWithGlobals(_){let q;return this._getCommandAndAncestors().forEach(($)=>{if($.getOptionValueSource(_)!==void 0)q=$.getOptionValueSource(_)}),q}_prepareUserArgs(_,q){if(_!==void 0&&!Array.isArray(_))throw Error("first parameter to parse must be array or undefined");if(q=q||{},_===void 0){if(_=i.argv,i.versions&&i.versions.electron)q.from="electron"}this.rawArgs=_.slice();let $;switch(q.from){case void 0:case"node":this._scriptPath=_[1],$=_.slice(2);break;case"electron":if(i.defaultApp)this._scriptPath=_[1],$=_.slice(2);else $=_.slice(1);break;case"user":$=_.slice(0);break;default:throw Error(`unexpected parse option { from: '${q.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",$}parse(_,q){let $=this._prepareUserArgs(_,q);return this._parseCommand([],$),this}async parseAsync(_,q){let $=this._prepareUserArgs(_,q);return await this._parseCommand([],$),this}_executeSubCommand(_,q){q=q.slice();let $=!1,Z=[".js",".ts",".tsx",".mjs",".cjs"];function X(B,W){let V=T1.resolve(B,W);if(Dq.existsSync(V))return V;if(Z.includes(T1.extname(W)))return;let J=Z.find((G)=>Dq.existsSync(`${V}${G}`));if(J)return`${V}${J}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let z=_._executableFile||`${this._name}-${_._name}`,U=this._executableDir||"";if(this._scriptPath){let B;try{B=Dq.realpathSync(this._scriptPath)}catch(W){B=this._scriptPath}U=T1.resolve(T1.dirname(B),U)}if(U){let B=X(U,z);if(!B&&!_._executableFile&&this._scriptPath){let W=T1.basename(this._scriptPath,T1.extname(this._scriptPath));if(W!==this._name)B=X(U,`${W}-${_._name}`)}z=B||z}$=Z.includes(T1.extname(z));let Q;if(i.platform!=="win32")if($)q.unshift(z),q=c$(i.execArgv).concat(q),Q=Kq.spawn(i.argv[0],q,{stdio:"inherit"});else Q=Kq.spawn(z,q,{stdio:"inherit"});else q.unshift(z),q=c$(i.execArgv).concat(q),Q=Kq.spawn(i.execPath,q,{stdio:"inherit"});if(!Q.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((W)=>{i.on(W,()=>{if(Q.killed===!1&&Q.exitCode===null)Q.kill(W)})});let Y=this._exitCallback;if(!Y)Q.on("close",i.exit.bind(i));else Q.on("close",()=>{Y(new Sq(i.exitCode||0,"commander.executeSubCommandAsync","(close)"))});Q.on("error",(B)=>{if(B.code==="ENOENT"){let W=U?`searched for local subcommand relative to directory '${U}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",V=`'${z}' does not exist
|
|
14
14
|
- if '${_._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
15
15
|
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
16
|
-
- ${W}`;throw Error(V)}else if(B.code==="EACCES")throw Error(`'${z}' not executable`);if(!Y)i.exit(1);else{let W=new
|
|
16
|
+
- ${W}`;throw Error(V)}else if(B.code==="EACCES")throw Error(`'${z}' not executable`);if(!Y)i.exit(1);else{let W=new Sq(1,"commander.executeSubCommandAsync","(error)");W.nestedError=B,Y(W)}}),this.runningCommand=Q}_dispatchSubcommand(_,q,$){let Z=this._findCommand(_);if(!Z)this.help({error:!0});let X;return X=this._chainOrCallSubCommandHook(X,Z,"preSubcommand"),X=this._chainOrCall(X,()=>{if(Z._executableHandler)this._executeSubCommand(Z,q.concat($));else return Z._parseCommand(q,$)}),X}_dispatchHelpCommand(_){if(!_)this.help();let q=this._findCommand(_);if(q&&!q._executableHandler)q.help();return this._dispatchSubcommand(_,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((_,q)=>{if(_.required&&this.args[q]==null)this.missingArgument(_.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 _=($,Z,X)=>{let z=Z;if(Z!==null&&$.parseArg){let U=`error: command-argument value '${Z}' is invalid for argument '${$.name()}'.`;z=this._callParseArg($,Z,X,U)}return z};this._checkNumberOfArguments();let q=[];this.registeredArguments.forEach(($,Z)=>{let X=$.defaultValue;if($.variadic){if(Z<this.args.length){if(X=this.args.slice(Z),$.parseArg)X=X.reduce((z,U)=>{return _($,U,z)},$.defaultValue)}else if(X===void 0)X=[]}else if(Z<this.args.length){if(X=this.args[Z],$.parseArg)X=_($,X,$.defaultValue)}q[Z]=X}),this.processedArgs=q}_chainOrCall(_,q){if(_&&_.then&&typeof _.then==="function")return _.then(()=>q());return q()}_chainOrCallHooks(_,q){let $=_,Z=[];if(this._getCommandAndAncestors().reverse().filter((X)=>X._lifeCycleHooks[q]!==void 0).forEach((X)=>{X._lifeCycleHooks[q].forEach((z)=>{Z.push({hookedCommand:X,callback:z})})}),q==="postAction")Z.reverse();return Z.forEach((X)=>{$=this._chainOrCall($,()=>{return X.callback(X.hookedCommand,this)})}),$}_chainOrCallSubCommandHook(_,q,$){let Z=_;if(this._lifeCycleHooks[$]!==void 0)this._lifeCycleHooks[$].forEach((X)=>{Z=this._chainOrCall(Z,()=>{return X(this,q)})});return Z}_parseCommand(_,q){let $=this.parseOptions(q);if(this._parseOptionsEnv(),this._parseOptionsImplied(),_=_.concat($.operands),q=$.unknown,this.args=_.concat(q),_&&this._findCommand(_[0]))return this._dispatchSubcommand(_[0],_.slice(1),q);if(this._hasImplicitHelpCommand()&&_[0]===this._helpCommandName)return this._dispatchHelpCommand(_[1]);if(this._defaultCommandName)return i$(this,q),this._dispatchSubcommand(this._defaultCommandName,_,q);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});i$(this,$.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let Z=()=>{if($.unknown.length>0)this.unknownOption($.unknown[0])},X=`command:${this.name()}`;if(this._actionHandler){Z(),this._processArguments();let z;if(z=this._chainOrCallHooks(z,"preAction"),z=this._chainOrCall(z,()=>this._actionHandler(this.processedArgs)),this.parent)z=this._chainOrCall(z,()=>{this.parent.emit(X,_,q)});return z=this._chainOrCallHooks(z,"postAction"),z}if(this.parent&&this.parent.listenerCount(X))Z(),this._processArguments(),this.parent.emit(X,_,q);else if(_.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",_,q);if(this.listenerCount("command:*"))this.emit("command:*",_,q);else if(this.commands.length)this.unknownCommand();else Z(),this._processArguments()}else if(this.commands.length)Z(),this.help({error:!0});else Z(),this._processArguments()}_findCommand(_){if(!_)return;return this.commands.find((q)=>q._name===_||q._aliases.includes(_))}_findOption(_){return this.options.find((q)=>q.is(_))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((_)=>{_.options.forEach((q)=>{if(q.mandatory&&_.getOptionValue(q.attributeName())===void 0)_.missingMandatoryOptionValue(q)})})}_checkForConflictingLocalOptions(){let _=this.options.filter(($)=>{let Z=$.attributeName();if(this.getOptionValue(Z)===void 0)return!1;return this.getOptionValueSource(Z)!=="default"});_.filter(($)=>$.conflictsWith.length>0).forEach(($)=>{let Z=_.find((X)=>$.conflictsWith.includes(X.attributeName()));if(Z)this._conflictingOption($,Z)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((_)=>{_._checkForConflictingLocalOptions()})}parseOptions(_){let q=[],$=[],Z=q,X=_.slice();function z(Q){return Q.length>1&&Q[0]==="-"}let U=null;while(X.length){let Q=X.shift();if(Q==="--"){if(Z===$)Z.push(Q);Z.push(...X);break}if(U&&!z(Q)){this.emit(`option:${U.name()}`,Q);continue}if(U=null,z(Q)){let Y=this._findOption(Q);if(Y){if(Y.required){let B=X.shift();if(B===void 0)this.optionMissingArgument(Y);this.emit(`option:${Y.name()}`,B)}else if(Y.optional){let B=null;if(X.length>0&&!z(X[0]))B=X.shift();this.emit(`option:${Y.name()}`,B)}else this.emit(`option:${Y.name()}`);U=Y.variadic?Y:null;continue}}if(Q.length>2&&Q[0]==="-"&&Q[1]!=="-"){let Y=this._findOption(`-${Q[1]}`);if(Y){if(Y.required||Y.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${Y.name()}`,Q.slice(2));else this.emit(`option:${Y.name()}`),X.unshift(`-${Q.slice(2)}`);continue}}if(/^--[^=]+=/.test(Q)){let Y=Q.indexOf("="),B=this._findOption(Q.slice(0,Y));if(B&&(B.required||B.optional)){this.emit(`option:${B.name()}`,Q.slice(Y+1));continue}}if(z(Q))Z=$;if((this._enablePositionalOptions||this._passThroughOptions)&&q.length===0&&$.length===0){if(this._findCommand(Q)){if(q.push(Q),X.length>0)$.push(...X);break}else if(Q===this._helpCommandName&&this._hasImplicitHelpCommand()){if(q.push(Q),X.length>0)q.push(...X);break}else if(this._defaultCommandName){if($.push(Q),X.length>0)$.push(...X);break}}if(this._passThroughOptions){if(Z.push(Q),X.length>0)Z.push(...X);break}Z.push(Q)}return{operands:q,unknown:$}}opts(){if(this._storeOptionsAsProperties){let _={},q=this.options.length;for(let $=0;$<q;$++){let Z=this.options[$].attributeName();_[Z]=Z===this._versionOptionName?this._version:this[Z]}return _}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((_,q)=>Object.assign(_,q.opts()),{})}error(_,q){if(this._outputConfiguration.outputError(`${_}
|
|
17
17
|
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
18
18
|
`);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
|
|
19
|
-
`),this.outputHelp({error:!0});let $=q||{},Z=$.exitCode||1,X=$.code||"commander.error";this._exit(Z,X,_)}_parseOptionsEnv(){this.options.forEach((_)=>{if(_.envVar&&_.envVar in i.env){let q=_.attributeName();if(this.getOptionValue(q)===void 0||["default","config","env"].includes(this.getOptionValueSource(q)))if(_.required||_.optional)this.emit(`optionEnv:${_.name()}`,i.env[_.envVar]);else this.emit(`optionEnv:${_.name()}`)}})}_parseOptionsImplied(){let _=new
|
|
20
|
-
`),this._exit(0,"commander.version",_)}),this}description(_,q){if(_===void 0&&q===void 0)return this._description;if(this._description=_,q)this._argsDescription=q;return this}summary(_){if(_===void 0)return this._summary;return this._summary=_,this}alias(_){if(_===void 0)return this._aliases[0];let q=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)q=this.commands[this.commands.length-1];if(_===q._name)throw Error("Command alias can't be the same as its name");return q._aliases.push(_),this}aliases(_){if(_===void 0)return this._aliases;return _.forEach((q)=>this.alias(q)),this}usage(_){if(_===void 0){if(this._usage)return this._usage;let q=this.registeredArguments.map(($)=>{return
|
|
19
|
+
`),this.outputHelp({error:!0});let $=q||{},Z=$.exitCode||1,X=$.code||"commander.error";this._exit(Z,X,_)}_parseOptionsEnv(){this.options.forEach((_)=>{if(_.envVar&&_.envVar in i.env){let q=_.attributeName();if(this.getOptionValue(q)===void 0||["default","config","env"].includes(this.getOptionValueSource(q)))if(_.required||_.optional)this.emit(`optionEnv:${_.name()}`,i.env[_.envVar]);else this.emit(`optionEnv:${_.name()}`)}})}_parseOptionsImplied(){let _=new CZ(this.options),q=($)=>{return this.getOptionValue($)!==void 0&&!["default","implied"].includes(this.getOptionValueSource($))};this.options.filter(($)=>$.implied!==void 0&&q($.attributeName())&&_.valueFromOption(this.getOptionValue($.attributeName()),$)).forEach(($)=>{Object.keys($.implied).filter((Z)=>!q(Z)).forEach((Z)=>{this.setOptionValueWithSource(Z,$.implied[Z],"implied")})})}missingArgument(_){let q=`error: missing required argument '${_}'`;this.error(q,{code:"commander.missingArgument"})}optionMissingArgument(_){let q=`error: option '${_.flags}' argument missing`;this.error(q,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(_){let q=`error: required option '${_.flags}' not specified`;this.error(q,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(_,q){let $=(z)=>{let U=z.attributeName(),Q=this.getOptionValue(U),Y=this.options.find((W)=>W.negate&&U===W.attributeName()),B=this.options.find((W)=>!W.negate&&U===W.attributeName());if(Y&&(Y.presetArg===void 0&&Q===!1||Y.presetArg!==void 0&&Q===Y.presetArg))return Y;return B||z},Z=(z)=>{let U=$(z),Q=U.attributeName();if(this.getOptionValueSource(Q)==="env")return`environment variable '${U.envVar}'`;return`option '${U.flags}'`},X=`error: ${Z(_)} cannot be used with ${Z(q)}`;this.error(X,{code:"commander.conflictingOption"})}unknownOption(_){if(this._allowUnknownOption)return;let q="";if(_.startsWith("--")&&this._showSuggestionAfterError){let Z=[],X=this;do{let z=X.createHelp().visibleOptions(X).filter((U)=>U.long).map((U)=>U.long);Z=Z.concat(z),X=X.parent}while(X&&!X._enablePositionalOptions);q=l$(_,Z)}let $=`error: unknown option '${_}'${q}`;this.error($,{code:"commander.unknownOption"})}_excessArguments(_){if(this._allowExcessArguments)return;let q=this.registeredArguments.length,$=q===1?"":"s",X=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${q} argument${$} but got ${_.length}.`;this.error(X,{code:"commander.excessArguments"})}unknownCommand(){let _=this.args[0],q="";if(this._showSuggestionAfterError){let Z=[];this.createHelp().visibleCommands(this).forEach((X)=>{if(Z.push(X.name()),X.alias())Z.push(X.alias())}),q=l$(_,Z)}let $=`error: unknown command '${_}'${q}`;this.error($,{code:"commander.unknownCommand"})}version(_,q,$){if(_===void 0)return this._version;this._version=_,q=q||"-V, --version",$=$||"output the version number";let Z=this.createOption(q,$);return this._versionOptionName=Z.attributeName(),this.options.push(Z),this.on("option:"+Z.name(),()=>{this._outputConfiguration.writeOut(`${_}
|
|
20
|
+
`),this._exit(0,"commander.version",_)}),this}description(_,q){if(_===void 0&&q===void 0)return this._description;if(this._description=_,q)this._argsDescription=q;return this}summary(_){if(_===void 0)return this._summary;return this._summary=_,this}alias(_){if(_===void 0)return this._aliases[0];let q=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)q=this.commands[this.commands.length-1];if(_===q._name)throw Error("Command alias can't be the same as its name");return q._aliases.push(_),this}aliases(_){if(_===void 0)return this._aliases;return _.forEach((q)=>this.alias(q)),this}usage(_){if(_===void 0){if(this._usage)return this._usage;let q=this.registeredArguments.map(($)=>{return OZ($)});return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?q:[]).join(" ")}return this._usage=_,this}name(_){if(_===void 0)return this._name;return this._name=_,this}nameFromFilename(_){return this._name=T1.basename(_,T1.extname(_)),this}executableDir(_){if(_===void 0)return this._executableDir;return this._executableDir=_,this}helpInformation(_){let q=this.createHelp();if(q.helpWidth===void 0)q.helpWidth=_&&_.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth();return q.formatHelp(this,q)}_getHelpContext(_){_=_||{};let q={error:!!_.error},$;if(q.error)$=(Z)=>this._outputConfiguration.writeErr(Z);else $=(Z)=>this._outputConfiguration.writeOut(Z);return q.write=_.write||$,q.command=this,q}outputHelp(_){let q;if(typeof _==="function")q=_,_=void 0;let $=this._getHelpContext(_);this._getCommandAndAncestors().reverse().forEach((X)=>X.emit("beforeAllHelp",$)),this.emit("beforeHelp",$);let Z=this.helpInformation($);if(q){if(Z=q(Z),typeof Z!=="string"&&!Buffer.isBuffer(Z))throw Error("outputHelp callback must return a string or a Buffer")}if($.write(Z),this._helpLongFlag)this.emit(this._helpLongFlag);this.emit("afterHelp",$),this._getCommandAndAncestors().forEach((X)=>X.emit("afterAllHelp",$))}helpOption(_,q){if(typeof _==="boolean")return this._hasHelpOption=_,this;this._helpFlags=_||this._helpFlags,this._helpDescription=q||this._helpDescription;let $=EZ(this._helpFlags);return this._helpShortFlag=$.shortFlag,this._helpLongFlag=$.longFlag,this}help(_){this.outputHelp(_);let q=i.exitCode||0;if(q===0&&_&&typeof _!=="function"&&_.error)q=1;this._exit(q,"commander.help","(outputHelp)")}addHelpText(_,q){let $=["beforeAll","before","after","afterAll"];if(!$.includes(_))throw Error(`Unexpected value for position to addHelpText.
|
|
21
21
|
Expecting one of '${$.join("', '")}'`);let Z=`${_}Help`;return this.on(Z,(X)=>{let z;if(typeof q==="function")z=q({error:X.error,command:X.command});else z=q;if(z)X.write(`${z}
|
|
22
|
-
`)}),this}}function i$(_,q){if(_._hasHelpOption&&q.find((Z)=>Z===_._helpLongFlag||Z===_._helpShortFlag))_.outputHelp(),_._exit(0,"commander.helpDisplayed","(outputHelp)")}function c$(_){return _.map((q)=>{if(!q.startsWith("--inspect"))return q;let $,Z="127.0.0.1",X="9229",z;if((z=q.match(/^(--inspect(-brk)?)$/))!==null)$=z[1];else if((z=q.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if($=z[1],/^\d+$/.test(z[3]))X=z[3];else Z=z[3];else if((z=q.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)$=z[1],Z=z[3],X=z[4];if($&&X!=="0")return`${$}=${Z}:${parseInt(X)+1}`;return q})}
|
|
22
|
+
`)}),this}}function i$(_,q){if(_._hasHelpOption&&q.find((Z)=>Z===_._helpLongFlag||Z===_._helpShortFlag))_.outputHelp(),_._exit(0,"commander.helpDisplayed","(outputHelp)")}function c$(_){return _.map((q)=>{if(!q.startsWith("--inspect"))return q;let $,Z="127.0.0.1",X="9229",z;if((z=q.match(/^(--inspect(-brk)?)$/))!==null)$=z[1];else if((z=q.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if($=z[1],/^\d+$/.test(z[3]))X=z[3];else Z=z[3];else if((z=q.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)$=z[1],Z=z[3],X=z[4];if($&&X!=="0")return`${$}=${Z}:${parseInt(X)+1}`;return q})}bZ.Command=wq});var a$=H((Y1,n$)=>{var{Argument:hZ}=t0(),{Command:r$}=p$(),{CommanderError:xZ,InvalidArgumentError:s$}=M0(),{Help:gZ}=Iq(),{Option:kZ}=Tq();Y1=n$.exports=new r$;Y1.program=Y1;Y1.Command=r$;Y1.Option=kZ;Y1.Argument=hZ;Y1.Help=gZ;Y1.CommanderError=xZ;Y1.InvalidArgumentError=s$;Y1.InvalidOptionArgumentError=s$});var a1=H((QT,Rq)=>{var __=process||{},e$=__.argv||[],e0=__.env||{},vZ=!(!!e0.NO_COLOR||e$.includes("--no-color"))&&(!!e0.FORCE_COLOR||e$.includes("--color")||__.platform==="win32"||(__.stdout||{}).isTTY&&e0.TERM!=="dumb"||!!e0.CI),uZ=(_,q,$=_)=>(Z)=>{let X=""+Z,z=X.indexOf(q,_.length);return~z?_+mZ(X,q,$,z)+q:_+X+q},mZ=(_,q,$,Z)=>{let X="",z=0;do X+=_.substring(z,Z)+$,z=Z+q.length,Z=_.indexOf(q,z);while(~Z);return X+_.substring(z)},_4=(_=vZ)=>{let q=_?uZ:()=>String;return{isColorSupported:_,reset:q("\x1B[0m","\x1B[0m"),bold:q("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:q("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:q("\x1B[3m","\x1B[23m"),underline:q("\x1B[4m","\x1B[24m"),inverse:q("\x1B[7m","\x1B[27m"),hidden:q("\x1B[8m","\x1B[28m"),strikethrough:q("\x1B[9m","\x1B[29m"),black:q("\x1B[30m","\x1B[39m"),red:q("\x1B[31m","\x1B[39m"),green:q("\x1B[32m","\x1B[39m"),yellow:q("\x1B[33m","\x1B[39m"),blue:q("\x1B[34m","\x1B[39m"),magenta:q("\x1B[35m","\x1B[39m"),cyan:q("\x1B[36m","\x1B[39m"),white:q("\x1B[37m","\x1B[39m"),gray:q("\x1B[90m","\x1B[39m"),bgBlack:q("\x1B[40m","\x1B[49m"),bgRed:q("\x1B[41m","\x1B[49m"),bgGreen:q("\x1B[42m","\x1B[49m"),bgYellow:q("\x1B[43m","\x1B[49m"),bgBlue:q("\x1B[44m","\x1B[49m"),bgMagenta:q("\x1B[45m","\x1B[49m"),bgCyan:q("\x1B[46m","\x1B[49m"),bgWhite:q("\x1B[47m","\x1B[49m"),blackBright:q("\x1B[90m","\x1B[39m"),redBright:q("\x1B[91m","\x1B[39m"),greenBright:q("\x1B[92m","\x1B[39m"),yellowBright:q("\x1B[93m","\x1B[39m"),blueBright:q("\x1B[94m","\x1B[39m"),magentaBright:q("\x1B[95m","\x1B[39m"),cyanBright:q("\x1B[96m","\x1B[39m"),whiteBright:q("\x1B[97m","\x1B[39m"),bgBlackBright:q("\x1B[100m","\x1B[49m"),bgRedBright:q("\x1B[101m","\x1B[49m"),bgGreenBright:q("\x1B[102m","\x1B[49m"),bgYellowBright:q("\x1B[103m","\x1B[49m"),bgBlueBright:q("\x1B[104m","\x1B[49m"),bgMagentaBright:q("\x1B[105m","\x1B[49m"),bgCyanBright:q("\x1B[106m","\x1B[49m"),bgWhiteBright:q("\x1B[107m","\x1B[49m")}};Rq.exports=_4();Rq.exports.createColors=_4});var Z4=H((q4)=>{Object.defineProperty(q4,"__esModule",{value:!0});q4.splitWhen=q4.flatten=void 0;function dZ(_){return _.reduce((q,$)=>[].concat(q,$),[])}q4.flatten=dZ;function lZ(_,q){let $=[[]],Z=0;for(let X of _)if(q(X))Z++,$[Z]=[];else $[Z].push(X);return $}q4.splitWhen=lZ});var U4=H((X4)=>{Object.defineProperty(X4,"__esModule",{value:!0});X4.isEnoentCodeError=void 0;function cZ(_){return _.code==="ENOENT"}X4.isEnoentCodeError=cZ});var J4=H((Y4)=>{Object.defineProperty(Y4,"__esModule",{value:!0});Y4.createDirentFromStats=void 0;class Q4{constructor(_,q){this.name=_,this.isBlockDevice=q.isBlockDevice.bind(q),this.isCharacterDevice=q.isCharacterDevice.bind(q),this.isDirectory=q.isDirectory.bind(q),this.isFIFO=q.isFIFO.bind(q),this.isFile=q.isFile.bind(q),this.isSocket=q.isSocket.bind(q),this.isSymbolicLink=q.isSymbolicLink.bind(q)}}function pZ(_,q){return new Q4(_,q)}Y4.createDirentFromStats=pZ});var M4=H((G4)=>{Object.defineProperty(G4,"__esModule",{value:!0});G4.convertPosixPathToPattern=G4.convertWindowsPathToPattern=G4.convertPathToPattern=G4.escapePosixPath=G4.escapeWindowsPath=G4.escape=G4.removeLeadingDotSegment=G4.makeAbsolute=G4.unixify=void 0;var rZ=x("os"),sZ=x("path"),W4=rZ.platform()==="win32",nZ=2,aZ=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,oZ=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,tZ=/^\\\\([.?])/,eZ=/\\(?![!()+@[\]{}])/g;function _X(_){return _.replace(/\\/g,"/")}G4.unixify=_X;function qX(_,q){return sZ.resolve(_,q)}G4.makeAbsolute=qX;function $X(_){if(_.charAt(0)==="."){let q=_.charAt(1);if(q==="/"||q==="\\")return _.slice(nZ)}return _}G4.removeLeadingDotSegment=$X;G4.escape=W4?Pq:Aq;function Pq(_){return _.replace(oZ,"\\$2")}G4.escapeWindowsPath=Pq;function Aq(_){return _.replace(aZ,"\\$2")}G4.escapePosixPath=Aq;G4.convertPathToPattern=W4?V4:F4;function V4(_){return Pq(_).replace(tZ,"//$1").replace(eZ,"/")}G4.convertWindowsPathToPattern=V4;function F4(_){return Aq(_)}G4.convertPosixPathToPattern=F4});var I4=H((VT,H4)=>{/*!
|
|
23
23
|
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
24
24
|
*
|
|
25
25
|
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
26
26
|
* Licensed under the MIT License.
|
|
27
|
-
*/
|
|
27
|
+
*/H4.exports=function(q){if(typeof q!=="string"||q==="")return!1;var $;while($=/(\\).|([@?!+*]\(.*\))/g.exec(q)){if($[2])return!0;q=q.slice($.index+$[0].length)}return!1}});var D4=H((FT,K4)=>{/*!
|
|
28
28
|
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
29
29
|
*
|
|
30
30
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
31
31
|
* Released under the MIT License.
|
|
32
|
-
*/var
|
|
32
|
+
*/var WX=I4(),T4={"{":"}","(":")","[":"]"},VX=function(_){if(_[0]==="!")return!0;var q=0,$=-2,Z=-2,X=-2,z=-2,U=-2;while(q<_.length){if(_[q]==="*")return!0;if(_[q+1]==="?"&&/[\].+)]/.test(_[q]))return!0;if(Z!==-1&&_[q]==="["&&_[q+1]!=="]"){if(Z<q)Z=_.indexOf("]",q);if(Z>q){if(U===-1||U>Z)return!0;if(U=_.indexOf("\\",q),U===-1||U>Z)return!0}}if(X!==-1&&_[q]==="{"&&_[q+1]!=="}"){if(X=_.indexOf("}",q),X>q){if(U=_.indexOf("\\",q),U===-1||U>X)return!0}}if(z!==-1&&_[q]==="("&&_[q+1]==="?"&&/[:!=]/.test(_[q+2])&&_[q+3]!==")"){if(z=_.indexOf(")",q),z>q){if(U=_.indexOf("\\",q),U===-1||U>z)return!0}}if($!==-1&&_[q]==="("&&_[q+1]!=="|"){if($<q)$=_.indexOf("|",q);if($!==-1&&_[$+1]!==")"){if(z=_.indexOf(")",$),z>$){if(U=_.indexOf("\\",$),U===-1||U>z)return!0}}}if(_[q]==="\\"){var Q=_[q+1];q+=2;var Y=T4[Q];if(Y){var B=_.indexOf(Y,q);if(B!==-1)q=B+1}if(_[q]==="!")return!0}else q++}return!1},FX=function(_){if(_[0]==="!")return!0;var q=0;while(q<_.length){if(/[*?{}()[\]]/.test(_[q]))return!0;if(_[q]==="\\"){var $=_[q+1];q+=2;var Z=T4[$];if(Z){var X=_.indexOf(Z,q);if(X!==-1)q=X+1}if(_[q]==="!")return!0}else q++}return!1};K4.exports=function(q,$){if(typeof q!=="string"||q==="")return!1;if(WX(q))return!0;var Z=VX;if($&&$.strict===!1)Z=FX;return Z(q)}});var w4=H((GT,S4)=>{var GX=D4(),LX=x("path").posix.dirname,MX=x("os").platform()==="win32",jq="/",HX=/\\/g,IX=/[\{\[].*[\}\]]$/,TX=/(^|[^\\])([\{\[]|\([^\)]+$)/,KX=/\\([\!\*\?\|\[\]\(\)\{\}])/g;S4.exports=function(q,$){var Z=Object.assign({flipBackslashes:!0},$);if(Z.flipBackslashes&&MX&&q.indexOf(jq)<0)q=q.replace(HX,jq);if(IX.test(q))q+=jq;q+="a";do q=LX(q);while(GX(q)||TX.test(q));return q.replace(KX,"$1")}});var q_=H((DX)=>{DX.isInteger=(_)=>{if(typeof _==="number")return Number.isInteger(_);if(typeof _==="string"&&_.trim()!=="")return Number.isInteger(Number(_));return!1};DX.find=(_,q)=>_.nodes.find(($)=>$.type===q);DX.exceedsLimit=(_,q,$=1,Z)=>{if(Z===!1)return!1;if(!DX.isInteger(_)||!DX.isInteger(q))return!1;return(Number(q)-Number(_))/Number($)>=Z};DX.escapeNode=(_,q=0,$)=>{let Z=_.nodes[q];if(!Z)return;if($&&Z.type===$||Z.type==="open"||Z.type==="close"){if(Z.escaped!==!0)Z.value="\\"+Z.value,Z.escaped=!0}};DX.encloseBrace=(_)=>{if(_.type!=="brace")return!1;if(_.commas>>0+_.ranges>>0===0)return _.invalid=!0,!0;return!1};DX.isInvalidBrace=(_)=>{if(_.type!=="brace")return!1;if(_.invalid===!0||_.dollar)return!0;if(_.commas>>0+_.ranges>>0===0)return _.invalid=!0,!0;if(_.open!==!0||_.close!==!0)return _.invalid=!0,!0;return!1};DX.isOpenOrClose=(_)=>{if(_.type==="open"||_.type==="close")return!0;return _.open===!0||_.close===!0};DX.reduce=(_)=>_.reduce((q,$)=>{if($.type==="text")q.push($.value);if($.type==="range")$.type="text";return q},[]);DX.flatten=(..._)=>{let q=[],$=(Z)=>{for(let X=0;X<Z.length;X++){let z=Z[X];if(Array.isArray(z)){$(z);continue}if(z!==void 0)q.push(z)}return q};return $(_),q}});var $_=H((MT,P4)=>{var R4=q_();P4.exports=(_,q={})=>{let $=(Z,X={})=>{let z=q.escapeInvalid&&R4.isInvalidBrace(X),U=Z.invalid===!0&&q.escapeInvalid===!0,Q="";if(Z.value){if((z||U)&&R4.isOpenOrClose(Z))return"\\"+Z.value;return Z.value}if(Z.value)return Z.value;if(Z.nodes)for(let Y of Z.nodes)Q+=$(Y);return Q};return $(_)}});var j4=H((HT,A4)=>{/*!
|
|
33
33
|
* is-number <https://github.com/jonschlinkert/is-number>
|
|
34
34
|
*
|
|
35
35
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
36
36
|
* Released under the MIT License.
|
|
37
|
-
*/
|
|
37
|
+
*/A4.exports=function(_){if(typeof _==="number")return _-_===0;if(typeof _==="string"&&_.trim()!=="")return Number.isFinite?Number.isFinite(+_):isFinite(+_);return!1}});var x4=H((IT,h4)=>{/*!
|
|
38
38
|
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
39
39
|
*
|
|
40
40
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
41
41
|
* Released under the MIT License.
|
|
42
|
-
*/var
|
|
42
|
+
*/var N4=j4(),g1=(_,q,$)=>{if(N4(_)===!1)throw TypeError("toRegexRange: expected the first argument to be a number");if(q===void 0||_===q)return String(_);if(N4(q)===!1)throw TypeError("toRegexRange: expected the second argument to be a number.");let Z={relaxZeros:!0,...$};if(typeof Z.strictZeros==="boolean")Z.relaxZeros=Z.strictZeros===!1;let X=String(Z.relaxZeros),z=String(Z.shorthand),U=String(Z.capture),Q=String(Z.wrap),Y=_+":"+q+"="+X+z+U+Q;if(g1.cache.hasOwnProperty(Y))return g1.cache[Y].result;let B=Math.min(_,q),W=Math.max(_,q);if(Math.abs(B-W)===1){let F=_+"|"+q;if(Z.capture)return`(${F})`;if(Z.wrap===!1)return F;return`(?:${F})`}let V=y4(_)||y4(q),J={min:_,max:q,a:B,b:W},G=[],L=[];if(V)J.isPadded=V,J.maxLen=String(J.max).length;if(B<0){let F=W<0?Math.abs(W):1;L=O4(F,Math.abs(B),J,Z),B=J.a=0}if(W>=0)G=O4(B,W,J,Z);if(J.negatives=L,J.positives=G,J.result=fX(L,G,Z),Z.capture===!0)J.result=`(${J.result})`;else if(Z.wrap!==!1&&G.length+L.length>1)J.result=`(?:${J.result})`;return g1.cache[Y]=J,J.result};function fX(_,q,$){let Z=Oq(_,q,"-",!1,$)||[],X=Oq(q,_,"",!1,$)||[],z=Oq(_,q,"-?",!0,$)||[];return Z.concat(z).concat(X).join("|")}function EX(_,q){let $=1,Z=1,X=E4(_,$),z=new Set([q]);while(_<=X&&X<=q)z.add(X),$+=1,X=E4(_,$);X=C4(q+1,Z)-1;while(_<X&&X<=q)z.add(X),Z+=1,X=C4(q+1,Z)-1;return z=[...z],z.sort(yX),z}function CX(_,q,$){if(_===q)return{pattern:_,count:[],digits:0};let Z=bX(_,q),X=Z.length,z="",U=0;for(let Q=0;Q<X;Q++){let[Y,B]=Z[Q];if(Y===B)z+=Y;else if(Y!=="0"||B!=="9")z+=hX(Y,B,$);else U++}if(U)z+=$.shorthand===!0?"\\d":"[0-9]";return{pattern:z,count:[U],digits:X}}function O4(_,q,$,Z){let X=EX(_,q),z=[],U=_,Q;for(let Y=0;Y<X.length;Y++){let B=X[Y],W=CX(String(U),String(B),Z),V="";if(!$.isPadded&&Q&&Q.pattern===W.pattern){if(Q.count.length>1)Q.count.pop();Q.count.push(W.count[0]),Q.string=Q.pattern+b4(Q.count),U=B+1;continue}if($.isPadded)V=xX(B,$,Z);W.string=V+W.pattern+b4(W.count),z.push(W),U=B+1,Q=W}return z}function Oq(_,q,$,Z,X){let z=[];for(let U of _){let{string:Q}=U;if(!Z&&!f4(q,"string",Q))z.push($+Q);if(Z&&f4(q,"string",Q))z.push($+Q)}return z}function bX(_,q){let $=[];for(let Z=0;Z<_.length;Z++)$.push([_[Z],q[Z]]);return $}function yX(_,q){return _>q?1:q>_?-1:0}function f4(_,q,$){return _.some((Z)=>Z[q]===$)}function E4(_,q){return Number(String(_).slice(0,-q)+"9".repeat(q))}function C4(_,q){return _-_%Math.pow(10,q)}function b4(_){let[q=0,$=""]=_;if($||q>1)return`{${q+($?","+$:"")}}`;return""}function hX(_,q,$){return`[${_}${q-_===1?"":"-"}${q}]`}function y4(_){return/^-?(0+)\d/.test(_)}function xX(_,q,$){if(!q.isPadded)return _;let Z=Math.abs(q.maxLen-String(_).length),X=$.relaxZeros!==!1;switch(Z){case 0:return"";case 1:return X?"0?":"0";case 2:return X?"0{0,2}":"00";default:return X?`0{0,${Z}}`:`0{${Z}}`}}g1.cache={};g1.clearCache=()=>g1.cache={};h4.exports=g1});var Cq=H((TT,l4)=>{/*!
|
|
43
43
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
44
44
|
*
|
|
45
45
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
46
46
|
* Licensed under the MIT License.
|
|
47
|
-
*/var
|
|
48
|
-
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var $3=H((TT,q3)=>{var cX=$_(),{MAX_LENGTH:t4,CHAR_BACKSLASH:bq,CHAR_BACKTICK:pX,CHAR_COMMA:rX,CHAR_DOT:sX,CHAR_LEFT_PARENTHESES:nX,CHAR_RIGHT_PARENTHESES:aX,CHAR_LEFT_CURLY_BRACE:oX,CHAR_RIGHT_CURLY_BRACE:tX,CHAR_LEFT_SQUARE_BRACKET:e4,CHAR_RIGHT_SQUARE_BRACKET:_3,CHAR_DOUBLE_QUOTE:eX,CHAR_SINGLE_QUOTE:_z,CHAR_NO_BREAK_SPACE:qz,CHAR_ZERO_WIDTH_NOBREAK_SPACE:$z}=o4(),Zz=(_,q={})=>{if(typeof _!=="string")throw TypeError("Expected a string");let $=q||{},Z=typeof $.maxLength==="number"?Math.min(t4,$.maxLength):t4;if(_.length>Z)throw SyntaxError(`Input length (${_.length}), exceeds max characters (${Z})`);let X={type:"root",input:_,nodes:[]},z=[X],U=X,Q=X,Y=0,B=_.length,W=0,V=0,J,G=()=>_[W++],L=(F)=>{if(F.type==="text"&&Q.type==="dot")Q.type="text";if(Q&&Q.type==="text"&&F.type==="text"){Q.value+=F.value;return}return U.nodes.push(F),F.parent=U,F.prev=Q,Q=F,F};L({type:"bos"});while(W<B){if(U=z[z.length-1],J=G(),J===$z||J===qz)continue;if(J===bq){L({type:"text",value:(q.keepEscaping?J:"")+G()});continue}if(J===_3){L({type:"text",value:"\\"+J});continue}if(J===e4){Y++;let F;while(W<B&&(F=G())){if(J+=F,F===e4){Y++;continue}if(F===bq){J+=G();continue}if(F===_3){if(Y--,Y===0)break}}L({type:"text",value:J});continue}if(J===nX){U=L({type:"paren",nodes:[]}),z.push(U),L({type:"text",value:J});continue}if(J===aX){if(U.type!=="paren"){L({type:"text",value:J});continue}U=z.pop(),L({type:"text",value:J}),U=z[z.length-1];continue}if(J===eX||J===_z||J===pX){let F=J,M;if(q.keepQuotes!==!0)J="";while(W<B&&(M=G())){if(M===bq){J+=M+G();continue}if(M===F){if(q.keepQuotes===!0)J+=M;break}J+=M}L({type:"text",value:J});continue}if(J===oX){V++;let M={type:"brace",open:!0,close:!1,dollar:Q.value&&Q.value.slice(-1)==="$"||U.dollar===!0,depth:V,commas:0,ranges:0,nodes:[]};U=L(M),z.push(U),L({type:"open",value:J});continue}if(J===tX){if(U.type!=="brace"){L({type:"text",value:J});continue}let F="close";U=z.pop(),U.close=!0,L({type:F,value:J}),V--,U=z[z.length-1];continue}if(J===rX&&V>0){if(U.ranges>0){U.ranges=0;let F=U.nodes.shift();U.nodes=[F,{type:"text",value:cX(U)}]}L({type:"comma",value:J}),U.commas++;continue}if(J===sX&&V>0&&U.commas===0){let F=U.nodes;if(V===0||F.length===0){L({type:"text",value:J});continue}if(Q.type==="dot"){if(U.range=[],Q.value+=J,Q.type="range",U.nodes.length!==3&&U.nodes.length!==5){U.invalid=!0,U.ranges=0,Q.type="text";continue}U.ranges++,U.args=[];continue}if(Q.type==="range"){F.pop();let M=F[F.length-1];M.value+=Q.value+J,Q=M,U.ranges--;continue}L({type:"dot",value:J});continue}L({type:"text",value:J})}do if(U=z.pop(),U.type!=="root"){U.nodes.forEach((w)=>{if(!w.nodes){if(w.type==="open")w.isOpen=!0;if(w.type==="close")w.isClose=!0;if(!w.nodes)w.type="text";w.invalid=!0}});let F=z[z.length-1],M=F.nodes.indexOf(U);F.nodes.splice(M,1,...U.nodes)}while(z.length>0);return L({type:"eos"}),X};q3.exports=Zz});var z3=H((KT,X3)=>{var Z3=$_(),Xz=p4(),zz=n4(),Uz=$3(),q1=(_,q={})=>{let $=[];if(Array.isArray(_))for(let Z of _){let X=q1.create(Z,q);if(Array.isArray(X))$.push(...X);else $.push(X)}else $=[].concat(q1.create(_,q));if(q&&q.expand===!0&&q.nodupes===!0)$=[...new Set($)];return $};q1.parse=(_,q={})=>Uz(_,q);q1.stringify=(_,q={})=>{if(typeof _==="string")return Z3(q1.parse(_,q),q);return Z3(_,q)};q1.compile=(_,q={})=>{if(typeof _==="string")_=q1.parse(_,q);return Xz(_,q)};q1.expand=(_,q={})=>{if(typeof _==="string")_=q1.parse(_,q);let $=zz(_,q);if(q.noempty===!0)$=$.filter(Boolean);if(q.nodupes===!0)$=[...new Set($)];return $};q1.create=(_,q={})=>{if(_===""||_.length<3)return[_];return q.expand!==!0?q1.compile(_,q):q1.expand(_,q)};X3.exports=q1});var I0=H((DT,Q3)=>{var Qz=x("path"),U3={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},Yz={...U3,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},Bz={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Q3.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:Bz,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Qz.sep,extglobChars(_){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${_.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(_){return _===!0?Yz:U3}}});var T0=H((Hz)=>{var Jz=x("path"),Wz=process.platform==="win32",{REGEX_BACKSLASH:Vz,REGEX_REMOVE_BACKSLASH:Fz,REGEX_SPECIAL_CHARS:Gz,REGEX_SPECIAL_CHARS_GLOBAL:Lz}=I0();Hz.isObject=(_)=>_!==null&&typeof _==="object"&&!Array.isArray(_);Hz.hasRegexChars=(_)=>Gz.test(_);Hz.isRegexChar=(_)=>_.length===1&&Hz.hasRegexChars(_);Hz.escapeRegex=(_)=>_.replace(Lz,"\\$1");Hz.toPosixSlashes=(_)=>_.replace(Vz,"/");Hz.removeBackslashes=(_)=>{return _.replace(Fz,(q)=>{return q==="\\"?"":q})};Hz.supportsLookbehinds=()=>{let _=process.version.slice(1).split(".").map(Number);if(_.length===3&&_[0]>=9||_[0]===8&&_[1]>=10)return!0;return!1};Hz.isWindows=(_)=>{if(_&&typeof _.windows==="boolean")return _.windows;return Wz===!0||Jz.sep==="\\"};Hz.escapeLast=(_,q,$)=>{let Z=_.lastIndexOf(q,$);if(Z===-1)return _;if(_[Z-1]==="\\")return Hz.escapeLast(_,q,Z-1);return`${_.slice(0,Z)}\\${_.slice(Z)}`};Hz.removePrefix=(_,q={})=>{let $=_;if($.startsWith("./"))$=$.slice(2),q.prefix="./";return $};Hz.wrapOutput=(_,q={},$={})=>{let Z=$.contains?"":"^",X=$.contains?"":"$",z=`${Z}(?:${_})${X}`;if(q.negated===!0)z=`(?:^(?!${z}).*$)`;return z}});var M3=H((ST,H3)=>{var J3=T0(),{CHAR_ASTERISK:yq,CHAR_AT:jz,CHAR_BACKWARD_SLASH:K0,CHAR_COMMA:Az,CHAR_DOT:hq,CHAR_EXCLAMATION_MARK:xq,CHAR_FORWARD_SLASH:L3,CHAR_LEFT_CURLY_BRACE:gq,CHAR_LEFT_PARENTHESES:kq,CHAR_LEFT_SQUARE_BRACKET:Oz,CHAR_PLUS:Nz,CHAR_QUESTION_MARK:W3,CHAR_RIGHT_CURLY_BRACE:fz,CHAR_RIGHT_PARENTHESES:V3,CHAR_RIGHT_SQUARE_BRACKET:Ez}=I0(),F3=(_)=>{return _===L3||_===K0},G3=(_)=>{if(_.isPrefix!==!0)_.depth=_.isGlobstar?1/0:1},Cz=(_,q)=>{let $=q||{},Z=_.length-1,X=$.parts===!0||$.scanToEnd===!0,z=[],U=[],Q=[],Y=_,B=-1,W=0,V=0,J=!1,G=!1,L=!1,F=!1,M=!1,w=!1,j=!1,P=!1,E=!1,S=!1,A=0,O,I,C={value:"",depth:0,isGlob:!1},u=()=>B>=Z,D=()=>Y.charCodeAt(B+1),b=()=>{return O=I,Y.charCodeAt(++B)};while(B<Z){I=b();let a;if(I===K0){if(j=C.backslashes=!0,I=b(),I===gq)w=!0;continue}if(w===!0||I===gq){A++;while(u()!==!0&&(I=b())){if(I===K0){j=C.backslashes=!0,b();continue}if(I===gq){A++;continue}if(w!==!0&&I===hq&&(I=b())===hq){if(J=C.isBrace=!0,L=C.isGlob=!0,S=!0,X===!0)continue;break}if(w!==!0&&I===Az){if(J=C.isBrace=!0,L=C.isGlob=!0,S=!0,X===!0)continue;break}if(I===fz){if(A--,A===0){w=!1,J=C.isBrace=!0,S=!0;break}}}if(X===!0)continue;break}if(I===L3){if(z.push(B),U.push(C),C={value:"",depth:0,isGlob:!1},S===!0)continue;if(O===hq&&B===W+1){W+=2;continue}V=B+1;continue}if($.noext!==!0){if((I===Nz||I===jz||I===yq||I===W3||I===xq)===!0&&D()===kq){if(L=C.isGlob=!0,F=C.isExtglob=!0,S=!0,I===xq&&B===W)E=!0;if(X===!0){while(u()!==!0&&(I=b())){if(I===K0){j=C.backslashes=!0,I=b();continue}if(I===V3){L=C.isGlob=!0,S=!0;break}}continue}break}}if(I===yq){if(O===yq)M=C.isGlobstar=!0;if(L=C.isGlob=!0,S=!0,X===!0)continue;break}if(I===W3){if(L=C.isGlob=!0,S=!0,X===!0)continue;break}if(I===Oz){while(u()!==!0&&(a=b())){if(a===K0){j=C.backslashes=!0,b();continue}if(a===Ez){G=C.isBracket=!0,L=C.isGlob=!0,S=!0;break}}if(X===!0)continue;break}if($.nonegate!==!0&&I===xq&&B===W){P=C.negated=!0,W++;continue}if($.noparen!==!0&&I===kq){if(L=C.isGlob=!0,X===!0){while(u()!==!0&&(I=b())){if(I===kq){j=C.backslashes=!0,I=b();continue}if(I===V3){S=!0;break}}continue}break}if(L===!0){if(S=!0,X===!0)continue;break}}if($.noext===!0)F=!1,L=!1;let m=Y,S1="",T="";if(W>0)S1=Y.slice(0,W),Y=Y.slice(W),V-=W;if(m&&L===!0&&V>0)m=Y.slice(0,V),T=Y.slice(V);else if(L===!0)m="",T=Y;else m=Y;if(m&&m!==""&&m!=="/"&&m!==Y){if(F3(m.charCodeAt(m.length-1)))m=m.slice(0,-1)}if($.unescape===!0){if(T)T=J3.removeBackslashes(T);if(m&&j===!0)m=J3.removeBackslashes(m)}let K={prefix:S1,input:_,start:W,base:m,glob:T,isBrace:J,isBracket:G,isGlob:L,isExtglob:F,isGlobstar:M,negated:P,negatedExtglob:E};if($.tokens===!0){if(K.maxDepth=0,!F3(I))U.push(C);K.tokens=U}if($.parts===!0||$.tokens===!0){let a;for(let v=0;v<z.length;v++){let F1=a?a+1:W,G1=z[v],_1=_.slice(F1,G1);if($.tokens){if(v===0&&W!==0)U[v].isPrefix=!0,U[v].value=S1;else U[v].value=_1;G3(U[v]),K.maxDepth+=U[v].depth}if(v!==0||_1!=="")Q.push(_1);a=G1}if(a&&a+1<_.length){let v=_.slice(a+1);if(Q.push(v),$.tokens)U[U.length-1].value=v,G3(U[U.length-1]),K.maxDepth+=U[U.length-1].depth}K.slashes=z,K.parts=Q}return K};H3.exports=Cz});var K3=H((RT,T3)=>{var z_=I0(),$1=T0(),{MAX_LENGTH:U_,POSIX_REGEX_SOURCE:bz,REGEX_NON_SPECIAL_CHARS:yz,REGEX_SPECIAL_CHARS_BACKREF:hz,REPLACEMENTS:I3}=z_,xz=(_,q)=>{if(typeof q.expandRange==="function")return q.expandRange(..._,q);_.sort();let $=`[${_.join("-")}]`;try{new RegExp($)}catch(Z){return _.map((X)=>$1.escapeRegex(X)).join("..")}return $},t1=(_,q)=>{return`Missing ${_}: "${q}" - use "\\\\${q}" to match literal characters`},vq=(_,q)=>{if(typeof _!=="string")throw TypeError("Expected a string");_=I3[_]||_;let $={...q},Z=typeof $.maxLength==="number"?Math.min(U_,$.maxLength):U_,X=_.length;if(X>Z)throw SyntaxError(`Input length: ${X}, exceeds maximum allowed length: ${Z}`);let z={type:"bos",value:"",output:$.prepend||""},U=[z],Q=$.capture?"":"?:",Y=$1.isWindows(q),B=z_.globChars(Y),W=z_.extglobChars(B),{DOT_LITERAL:V,PLUS_LITERAL:J,SLASH_LITERAL:G,ONE_CHAR:L,DOTS_SLASH:F,NO_DOT:M,NO_DOT_SLASH:w,NO_DOTS_SLASH:j,QMARK:P,QMARK_NO_DOT:E,STAR:S,START_ANCHOR:A}=B,O=(N)=>{return`(${Q}(?:(?!${A}${N.dot?F:V}).)*?)`},I=$.dot?"":M,C=$.dot?P:E,u=$.bash===!0?O($):S;if($.capture)u=`(${u})`;if(typeof $.noext==="boolean")$.noextglob=$.noext;let D={input:_,index:-1,start:0,dot:$.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:U};_=$1.removePrefix(_,D),X=_.length;let b=[],m=[],S1=[],T=z,K,a=()=>D.index===X-1,v=D.peek=(N=1)=>_[D.index+N],F1=D.advance=()=>_[++D.index]||"",G1=()=>_.slice(D.index+1),_1=(N="",d=0)=>{D.consumed+=N,D.index+=d},s0=(N)=>{D.output+=N.output!=null?N.output:N.value,_1(N.value)},n5=()=>{let N=1;while(v()==="!"&&(v(2)!=="("||v(3)==="?"))F1(),D.start++,N++;if(N%2===0)return!1;return D.negated=!0,D.start++,!0},n0=(N)=>{D[N]++,S1.push(N)},h1=(N)=>{D[N]--,S1.pop()},h=(N)=>{if(T.type==="globstar"){let d=D.braces>0&&(N.type==="comma"||N.type==="brace"),R=N.extglob===!0||b.length&&(N.type==="pipe"||N.type==="paren");if(N.type!=="slash"&&N.type!=="paren"&&!d&&!R)D.output=D.output.slice(0,-T.output.length),T.type="star",T.value="*",T.output=u,D.output+=T.output}if(b.length&&N.type!=="paren")b[b.length-1].inner+=N.value;if(N.value||N.output)s0(N);if(T&&T.type==="text"&&N.type==="text"){T.value+=N.value,T.output=(T.output||"")+N.value;return}N.prev=T,U.push(N),T=N},a0=(N,d)=>{let R={...W[d],conditions:1,inner:""};R.prev=T,R.parens=D.parens,R.output=D.output;let y=($.capture?"(":"")+R.open;n0("parens"),h({type:N,value:d,output:D.output?"":L}),h({type:"paren",extglob:!0,value:F1(),output:y}),b.push(R)},a5=(N)=>{let d=N.close+($.capture?")":""),R;if(N.type==="negate"){let y=u;if(N.inner&&N.inner.length>1&&N.inner.includes("/"))y=O($);if(y!==u||a()||/^\)+$/.test(G1()))d=N.close=`)$))${y}`;if(N.inner.includes("*")&&(R=G1())&&/^\.[^\\/.]+$/.test(R)){let c=vq(R,{...q,fastpaths:!1}).output;d=N.close=`)${c})${y})`}if(N.prev.type==="bos")D.negatedExtglob=!0}h({type:"paren",extglob:!0,value:K,output:d}),h1("parens")};if($.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(_)){let N=!1,d=_.replace(hz,(R,y,c,o,s,Hq)=>{if(o==="\\")return N=!0,R;if(o==="?"){if(y)return y+o+(s?P.repeat(s.length):"");if(Hq===0)return C+(s?P.repeat(s.length):"");return P.repeat(c.length)}if(o===".")return V.repeat(c.length);if(o==="*"){if(y)return y+o+(s?u:"");return u}return y?R:`\\${R}`});if(N===!0)if($.unescape===!0)d=d.replace(/\\/g,"");else d=d.replace(/\\+/g,(R)=>{return R.length%2===0?"\\\\":R?"\\":""});if(d===_&&$.contains===!0)return D.output=_,D;return D.output=$1.wrapOutput(d,D,q),D}while(!a()){if(K=F1(),K==="\x00")continue;if(K==="\\"){let R=v();if(R==="/"&&$.bash!==!0)continue;if(R==="."||R===";")continue;if(!R){K+="\\",h({type:"text",value:K});continue}let y=/^\\+/.exec(G1()),c=0;if(y&&y[0].length>2){if(c=y[0].length,D.index+=c,c%2!==0)K+="\\"}if($.unescape===!0)K=F1();else K+=F1();if(D.brackets===0){h({type:"text",value:K});continue}}if(D.brackets>0&&(K!=="]"||T.value==="["||T.value==="[^")){if($.posix!==!1&&K===":"){let R=T.value.slice(1);if(R.includes("[")){if(T.posix=!0,R.includes(":")){let y=T.value.lastIndexOf("["),c=T.value.slice(0,y),o=T.value.slice(y+2),s=bz[o];if(s){if(T.value=c+s,D.backtrack=!0,F1(),!z.output&&U.indexOf(T)===1)z.output=L;continue}}}}if(K==="["&&v()!==":"||K==="-"&&v()==="]")K=`\\${K}`;if(K==="]"&&(T.value==="["||T.value==="[^"))K=`\\${K}`;if($.posix===!0&&K==="!"&&T.value==="[")K="^";T.value+=K,s0({value:K});continue}if(D.quotes===1&&K!=='"'){K=$1.escapeRegex(K),T.value+=K,s0({value:K});continue}if(K==='"'){if(D.quotes=D.quotes===1?0:1,$.keepQuotes===!0)h({type:"text",value:K});continue}if(K==="("){n0("parens"),h({type:"paren",value:K});continue}if(K===")"){if(D.parens===0&&$.strictBrackets===!0)throw SyntaxError(t1("opening","("));let R=b[b.length-1];if(R&&D.parens===R.parens+1){a5(b.pop());continue}h({type:"paren",value:K,output:D.parens?")":"\\)"}),h1("parens");continue}if(K==="["){if($.nobracket===!0||!G1().includes("]")){if($.nobracket!==!0&&$.strictBrackets===!0)throw SyntaxError(t1("closing","]"));K=`\\${K}`}else n0("brackets");h({type:"bracket",value:K});continue}if(K==="]"){if($.nobracket===!0||T&&T.type==="bracket"&&T.value.length===1){h({type:"text",value:K,output:`\\${K}`});continue}if(D.brackets===0){if($.strictBrackets===!0)throw SyntaxError(t1("opening","["));h({type:"text",value:K,output:`\\${K}`});continue}h1("brackets");let R=T.value.slice(1);if(T.posix!==!0&&R[0]==="^"&&!R.includes("/"))K=`/${K}`;if(T.value+=K,s0({value:K}),$.literalBrackets===!1||$1.hasRegexChars(R))continue;let y=$1.escapeRegex(T.value);if(D.output=D.output.slice(0,-T.value.length),$.literalBrackets===!0){D.output+=y,T.value=y;continue}T.value=`(${Q}${y}|${T.value})`,D.output+=T.value;continue}if(K==="{"&&$.nobrace!==!0){n0("braces");let R={type:"brace",value:K,output:"(",outputIndex:D.output.length,tokensIndex:D.tokens.length};m.push(R),h(R);continue}if(K==="}"){let R=m[m.length-1];if($.nobrace===!0||!R){h({type:"text",value:K,output:K});continue}let y=")";if(R.dots===!0){let c=U.slice(),o=[];for(let s=c.length-1;s>=0;s--){if(U.pop(),c[s].type==="brace")break;if(c[s].type!=="dots")o.unshift(c[s].value)}y=xz(o,$),D.backtrack=!0}if(R.comma!==!0&&R.dots!==!0){let c=D.output.slice(0,R.outputIndex),o=D.tokens.slice(R.tokensIndex);R.value=R.output="\\{",K=y="\\}",D.output=c;for(let s of o)D.output+=s.output||s.value}h({type:"brace",value:K,output:y}),h1("braces"),m.pop();continue}if(K==="|"){if(b.length>0)b[b.length-1].conditions++;h({type:"text",value:K});continue}if(K===","){let R=K,y=m[m.length-1];if(y&&S1[S1.length-1]==="braces")y.comma=!0,R="|";h({type:"comma",value:K,output:R});continue}if(K==="/"){if(T.type==="dot"&&D.index===D.start+1){D.start=D.index+1,D.consumed="",D.output="",U.pop(),T=z;continue}h({type:"slash",value:K,output:G});continue}if(K==="."){if(D.braces>0&&T.type==="dot"){if(T.value===".")T.output=V;let R=m[m.length-1];T.type="dots",T.output+=K,T.value+=K,R.dots=!0;continue}if(D.braces+D.parens===0&&T.type!=="bos"&&T.type!=="slash"){h({type:"text",value:K,output:V});continue}h({type:"dot",value:K,output:V});continue}if(K==="?"){if(!(T&&T.value==="(")&&$.noextglob!==!0&&v()==="("&&v(2)!=="?"){a0("qmark",K);continue}if(T&&T.type==="paren"){let y=v(),c=K;if(y==="<"&&!$1.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(T.value==="("&&!/[!=<:]/.test(y)||y==="<"&&!/<([!=]|\w+>)/.test(G1()))c=`\\${K}`;h({type:"text",value:K,output:c});continue}if($.dot!==!0&&(T.type==="slash"||T.type==="bos")){h({type:"qmark",value:K,output:E});continue}h({type:"qmark",value:K,output:P});continue}if(K==="!"){if($.noextglob!==!0&&v()==="("){if(v(2)!=="?"||!/[!=<:]/.test(v(3))){a0("negate",K);continue}}if($.nonegate!==!0&&D.index===0){n5();continue}}if(K==="+"){if($.noextglob!==!0&&v()==="("&&v(2)!=="?"){a0("plus",K);continue}if(T&&T.value==="("||$.regex===!1){h({type:"plus",value:K,output:J});continue}if(T&&(T.type==="bracket"||T.type==="paren"||T.type==="brace")||D.parens>0){h({type:"plus",value:K});continue}h({type:"plus",value:J});continue}if(K==="@"){if($.noextglob!==!0&&v()==="("&&v(2)!=="?"){h({type:"at",extglob:!0,value:K,output:""});continue}h({type:"text",value:K});continue}if(K!=="*"){if(K==="$"||K==="^")K=`\\${K}`;let R=yz.exec(G1());if(R)K+=R[0],D.index+=R[0].length;h({type:"text",value:K});continue}if(T&&(T.type==="globstar"||T.star===!0)){T.type="star",T.star=!0,T.value+=K,T.output=u,D.backtrack=!0,D.globstar=!0,_1(K);continue}let N=G1();if($.noextglob!==!0&&/^\([^?]/.test(N)){a0("star",K);continue}if(T.type==="star"){if($.noglobstar===!0){_1(K);continue}let R=T.prev,y=R.prev,c=R.type==="slash"||R.type==="bos",o=y&&(y.type==="star"||y.type==="globstar");if($.bash===!0&&(!c||N[0]&&N[0]!=="/")){h({type:"star",value:K,output:""});continue}let s=D.braces>0&&(R.type==="comma"||R.type==="brace"),Hq=b.length&&(R.type==="pipe"||R.type==="paren");if(!c&&R.type!=="paren"&&!s&&!Hq){h({type:"star",value:K,output:""});continue}while(N.slice(0,3)==="/**"){let o0=_[D.index+4];if(o0&&o0!=="/")break;N=N.slice(3),_1("/**",3)}if(R.type==="bos"&&a()){T.type="globstar",T.value+=K,T.output=O($),D.output=T.output,D.globstar=!0,_1(K);continue}if(R.type==="slash"&&R.prev.type!=="bos"&&!o&&a()){D.output=D.output.slice(0,-(R.output+T.output).length),R.output=`(?:${R.output}`,T.type="globstar",T.output=O($)+($.strictSlashes?")":"|$)"),T.value+=K,D.globstar=!0,D.output+=R.output+T.output,_1(K);continue}if(R.type==="slash"&&R.prev.type!=="bos"&&N[0]==="/"){let o0=N[1]!==void 0?"|$":"";D.output=D.output.slice(0,-(R.output+T.output).length),R.output=`(?:${R.output}`,T.type="globstar",T.output=`${O($)}${G}|${G}${o0})`,T.value+=K,D.output+=R.output+T.output,D.globstar=!0,_1(K+F1()),h({type:"slash",value:"/",output:""});continue}if(R.type==="bos"&&N[0]==="/"){T.type="globstar",T.value+=K,T.output=`(?:^|${G}|${O($)}${G})`,D.output=T.output,D.globstar=!0,_1(K+F1()),h({type:"slash",value:"/",output:""});continue}D.output=D.output.slice(0,-T.output.length),T.type="globstar",T.output=O($),T.value+=K,D.output+=T.output,D.globstar=!0,_1(K);continue}let d={type:"star",value:K,output:u};if($.bash===!0){if(d.output=".*?",T.type==="bos"||T.type==="slash")d.output=I+d.output;h(d);continue}if(T&&(T.type==="bracket"||T.type==="paren")&&$.regex===!0){d.output=K,h(d);continue}if(D.index===D.start||T.type==="slash"||T.type==="dot"){if(T.type==="dot")D.output+=w,T.output+=w;else if($.dot===!0)D.output+=j,T.output+=j;else D.output+=I,T.output+=I;if(v()!=="*")D.output+=L,T.output+=L}h(d)}while(D.brackets>0){if($.strictBrackets===!0)throw SyntaxError(t1("closing","]"));D.output=$1.escapeLast(D.output,"["),h1("brackets")}while(D.parens>0){if($.strictBrackets===!0)throw SyntaxError(t1("closing",")"));D.output=$1.escapeLast(D.output,"("),h1("parens")}while(D.braces>0){if($.strictBrackets===!0)throw SyntaxError(t1("closing","}"));D.output=$1.escapeLast(D.output,"{"),h1("braces")}if($.strictSlashes!==!0&&(T.type==="star"||T.type==="bracket"))h({type:"maybe_slash",value:"",output:`${G}?`});if(D.backtrack===!0){D.output="";for(let N of D.tokens)if(D.output+=N.output!=null?N.output:N.value,N.suffix)D.output+=N.suffix}return D};vq.fastpaths=(_,q)=>{let $={...q},Z=typeof $.maxLength==="number"?Math.min(U_,$.maxLength):U_,X=_.length;if(X>Z)throw SyntaxError(`Input length: ${X}, exceeds maximum allowed length: ${Z}`);_=I3[_]||_;let z=$1.isWindows(q),{DOT_LITERAL:U,SLASH_LITERAL:Q,ONE_CHAR:Y,DOTS_SLASH:B,NO_DOT:W,NO_DOTS:V,NO_DOTS_SLASH:J,STAR:G,START_ANCHOR:L}=z_.globChars(z),F=$.dot?V:W,M=$.dot?J:W,w=$.capture?"":"?:",j={negated:!1,prefix:""},P=$.bash===!0?".*?":G;if($.capture)P=`(${P})`;let E=(I)=>{if(I.noglobstar===!0)return P;return`(${w}(?:(?!${L}${I.dot?B:U}).)*?)`},S=(I)=>{switch(I){case"*":return`${F}${Y}${P}`;case".*":return`${U}${Y}${P}`;case"*.*":return`${F}${P}${U}${Y}${P}`;case"*/*":return`${F}${P}${Q}${Y}${M}${P}`;case"**":return F+E($);case"**/*":return`(?:${F}${E($)}${Q})?${M}${Y}${P}`;case"**/*.*":return`(?:${F}${E($)}${Q})?${M}${P}${U}${Y}${P}`;case"**/.*":return`(?:${F}${E($)}${Q})?${U}${Y}${P}`;default:{let C=/^(.*?)\.(\w+)$/.exec(I);if(!C)return;let u=S(C[1]);if(!u)return;return u+U+C[2]}}},A=$1.removePrefix(_,j),O=S(A);if(O&&$.strictSlashes!==!0)O+=`${Q}?`;return O};T3.exports=vq});var w3=H((PT,D3)=>{var gz=x("path"),kz=M3(),uq=K3(),mq=T0(),vz=I0(),uz=(_)=>_&&typeof _==="object"&&!Array.isArray(_),p=(_,q,$=!1)=>{if(Array.isArray(_)){let W=_.map((J)=>p(J,q,$));return(J)=>{for(let G of W){let L=G(J);if(L)return L}return!1}}let Z=uz(_)&&_.tokens&&_.input;if(_===""||typeof _!=="string"&&!Z)throw TypeError("Expected pattern to be a non-empty string");let X=q||{},z=mq.isWindows(q),U=Z?p.compileRe(_,q):p.makeRe(_,q,!1,!0),Q=U.state;delete U.state;let Y=()=>!1;if(X.ignore){let W={...q,ignore:null,onMatch:null,onResult:null};Y=p(X.ignore,W,$)}let B=(W,V=!1)=>{let{isMatch:J,match:G,output:L}=p.test(W,U,q,{glob:_,posix:z}),F={glob:_,state:Q,regex:U,posix:z,input:W,output:L,match:G,isMatch:J};if(typeof X.onResult==="function")X.onResult(F);if(J===!1)return F.isMatch=!1,V?F:!1;if(Y(W)){if(typeof X.onIgnore==="function")X.onIgnore(F);return F.isMatch=!1,V?F:!1}if(typeof X.onMatch==="function")X.onMatch(F);return V?F:!0};if($)B.state=Q;return B};p.test=(_,q,$,{glob:Z,posix:X}={})=>{if(typeof _!=="string")throw TypeError("Expected input to be a string");if(_==="")return{isMatch:!1,output:""};let z=$||{},U=z.format||(X?mq.toPosixSlashes:null),Q=_===Z,Y=Q&&U?U(_):_;if(Q===!1)Y=U?U(_):_,Q=Y===Z;if(Q===!1||z.capture===!0)if(z.matchBase===!0||z.basename===!0)Q=p.matchBase(_,q,$,X);else Q=q.exec(Y);return{isMatch:Boolean(Q),match:Q,output:Y}};p.matchBase=(_,q,$,Z=mq.isWindows($))=>{return(q instanceof RegExp?q:p.makeRe(q,$)).test(gz.basename(_))};p.isMatch=(_,q,$)=>p(q,$)(_);p.parse=(_,q)=>{if(Array.isArray(_))return _.map(($)=>p.parse($,q));return uq(_,{...q,fastpaths:!1})};p.scan=(_,q)=>kz(_,q);p.compileRe=(_,q,$=!1,Z=!1)=>{if($===!0)return _.output;let X=q||{},z=X.contains?"":"^",U=X.contains?"":"$",Q=`${z}(?:${_.output})${U}`;if(_&&_.negated===!0)Q=`^(?!${Q}).*$`;let Y=p.toRegex(Q,q);if(Z===!0)Y.state=_;return Y};p.makeRe=(_,q={},$=!1,Z=!1)=>{if(!_||typeof _!=="string")throw TypeError("Expected a non-empty string");let X={negated:!1,fastpaths:!0};if(q.fastpaths!==!1&&(_[0]==="."||_[0]==="*"))X.output=uq.fastpaths(_,q);if(!X.output)X=uq(_,q);return p.compileRe(X,q,$,Z)};p.toRegex=(_,q)=>{try{let $=q||{};return new RegExp(_,$.flags||($.nocase?"i":""))}catch($){if(q&&q.debug===!0)throw $;return/$^/}};p.constants=vz;D3.exports=p});var O3=H((jT,A3)=>{var R3=x("util"),P3=z3(),L1=w3(),dq=T0(),S3=(_)=>_===""||_==="./",j3=(_)=>{let q=_.indexOf("{");return q>-1&&_.indexOf("}",q)>-1},l=(_,q,$)=>{q=[].concat(q),_=[].concat(_);let Z=new Set,X=new Set,z=new Set,U=0,Q=(W)=>{if(z.add(W.output),$&&$.onResult)$.onResult(W)};for(let W=0;W<q.length;W++){let V=L1(String(q[W]),{...$,onResult:Q},!0),J=V.state.negated||V.state.negatedExtglob;if(J)U++;for(let G of _){let L=V(G,!0);if(!(J?!L.isMatch:L.isMatch))continue;if(J)Z.add(L.output);else Z.delete(L.output),X.add(L.output)}}let B=(U===q.length?[...z]:[...X]).filter((W)=>!Z.has(W));if($&&B.length===0){if($.failglob===!0)throw Error(`No matches found for "${q.join(", ")}"`);if($.nonull===!0||$.nullglob===!0)return $.unescape?q.map((W)=>W.replace(/\\/g,"")):q}return B};l.match=l;l.matcher=(_,q)=>L1(_,q);l.isMatch=(_,q,$)=>L1(q,$)(_);l.any=l.isMatch;l.not=(_,q,$={})=>{q=[].concat(q).map(String);let Z=new Set,X=[],U=new Set(l(_,q,{...$,onResult:(Q)=>{if($.onResult)$.onResult(Q);X.push(Q.output)}}));for(let Q of X)if(!U.has(Q))Z.add(Q);return[...Z]};l.contains=(_,q,$)=>{if(typeof _!=="string")throw TypeError(`Expected a string: "${R3.inspect(_)}"`);if(Array.isArray(q))return q.some((Z)=>l.contains(_,Z,$));if(typeof q==="string"){if(S3(_)||S3(q))return!1;if(_.includes(q)||_.startsWith("./")&&_.slice(2).includes(q))return!0}return l.isMatch(_,q,{...$,contains:!0})};l.matchKeys=(_,q,$)=>{if(!dq.isObject(_))throw TypeError("Expected the first argument to be an object");let Z=l(Object.keys(_),q,$),X={};for(let z of Z)X[z]=_[z];return X};l.some=(_,q,$)=>{let Z=[].concat(_);for(let X of[].concat(q)){let z=L1(String(X),$);if(Z.some((U)=>z(U)))return!0}return!1};l.every=(_,q,$)=>{let Z=[].concat(_);for(let X of[].concat(q)){let z=L1(String(X),$);if(!Z.every((U)=>z(U)))return!1}return!0};l.all=(_,q,$)=>{if(typeof _!=="string")throw TypeError(`Expected a string: "${R3.inspect(_)}"`);return[].concat(q).every((Z)=>L1(Z,$)(_))};l.capture=(_,q,$)=>{let Z=dq.isWindows($),z=L1.makeRe(String(_),{...$,capture:!0}).exec(Z?dq.toPosixSlashes(q):q);if(z)return z.slice(1).map((U)=>U===void 0?"":U)};l.makeRe=(..._)=>L1.makeRe(..._);l.scan=(..._)=>L1.scan(..._);l.parse=(_,q)=>{let $=[];for(let Z of[].concat(_||[]))for(let X of P3(String(Z),q))$.push(L1.parse(X,q));return $};l.braces=(_,q)=>{if(typeof _!=="string")throw TypeError("Expected a string");if(q&&q.nobrace===!0||!j3(_))return[_];return P3(_,q)};l.braceExpand=(_,q)=>{if(typeof _!=="string")throw TypeError("Expected a string");return l.braces(_,{...q,expand:!0})};l.hasBraces=j3;A3.exports=l});var u3=H((k3)=>{Object.defineProperty(k3,"__esModule",{value:!0});k3.isAbsolute=k3.partitionAbsoluteAndRelative=k3.removeDuplicateSlashes=k3.matchAny=k3.convertPatternsToRe=k3.makeRe=k3.getPatternParts=k3.expandBraceExpansion=k3.expandPatternsWithBraceExpansion=k3.isAffectDepthOfReadingPattern=k3.endsWithSlashGlobStar=k3.hasGlobStar=k3.getBaseDirectory=k3.isPatternRelatedToParentDirectory=k3.getPatternsOutsideCurrentDirectory=k3.getPatternsInsideCurrentDirectory=k3.getPositivePatterns=k3.getNegativePatterns=k3.isPositivePattern=k3.isNegativePattern=k3.convertToNegativePattern=k3.convertToPositivePattern=k3.isDynamicPattern=k3.isStaticPattern=void 0;var N3=x("path"),mz=S4(),lq=O3(),f3="**",dz="\\",lz=/[*?]|^!/,iz=/\[[^[]*]/,cz=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,pz=/[!*+?@]\([^(]*\)/,rz=/,|\.\./,sz=/(?!^)\/{2,}/g;function E3(_,q={}){return!C3(_,q)}k3.isStaticPattern=E3;function C3(_,q={}){if(_==="")return!1;if(q.caseSensitiveMatch===!1||_.includes(dz))return!0;if(lz.test(_)||iz.test(_)||cz.test(_))return!0;if(q.extglob!==!1&&pz.test(_))return!0;if(q.braceExpansion!==!1&&nz(_))return!0;return!1}k3.isDynamicPattern=C3;function nz(_){let q=_.indexOf("{");if(q===-1)return!1;let $=_.indexOf("}",q+1);if($===-1)return!1;let Z=_.slice(q,$);return rz.test(Z)}function az(_){return Q_(_)?_.slice(1):_}k3.convertToPositivePattern=az;function oz(_){return"!"+_}k3.convertToNegativePattern=oz;function Q_(_){return _.startsWith("!")&&_[1]!=="("}k3.isNegativePattern=Q_;function b3(_){return!Q_(_)}k3.isPositivePattern=b3;function tz(_){return _.filter(Q_)}k3.getNegativePatterns=tz;function ez(_){return _.filter(b3)}k3.getPositivePatterns=ez;function _U(_){return _.filter((q)=>!iq(q))}k3.getPatternsInsideCurrentDirectory=_U;function qU(_){return _.filter(iq)}k3.getPatternsOutsideCurrentDirectory=qU;function iq(_){return _.startsWith("..")||_.startsWith("./..")}k3.isPatternRelatedToParentDirectory=iq;function $U(_){return mz(_,{flipBackslashes:!1})}k3.getBaseDirectory=$U;function ZU(_){return _.includes(f3)}k3.hasGlobStar=ZU;function y3(_){return _.endsWith("/"+f3)}k3.endsWithSlashGlobStar=y3;function XU(_){let q=N3.basename(_);return y3(_)||E3(q)}k3.isAffectDepthOfReadingPattern=XU;function zU(_){return _.reduce((q,$)=>{return q.concat(h3($))},[])}k3.expandPatternsWithBraceExpansion=zU;function h3(_){let q=lq.braces(_,{expand:!0,nodupes:!0,keepEscaping:!0});return q.sort(($,Z)=>$.length-Z.length),q.filter(($)=>$!=="")}k3.expandBraceExpansion=h3;function UU(_,q){let{parts:$}=lq.scan(_,Object.assign(Object.assign({},q),{parts:!0}));if($.length===0)$=[_];if($[0].startsWith("/"))$[0]=$[0].slice(1),$.unshift("");return $}k3.getPatternParts=UU;function x3(_,q){return lq.makeRe(_,q)}k3.makeRe=x3;function QU(_,q){return _.map(($)=>x3($,q))}k3.convertPatternsToRe=QU;function YU(_,q){return q.some(($)=>$.test(_))}k3.matchAny=YU;function BU(_){return _.replace(sz,"/")}k3.removeDuplicateSlashes=BU;function JU(_){let q=[],$=[];for(let Z of _)if(g3(Z))q.push(Z);else $.push(Z);return[q,$]}k3.partitionAbsoluteAndRelative=JU;function g3(_){return N3.isAbsolute(_)}k3.isAbsolute=g3});var i3=H((OT,l3)=>{var yU=x("stream"),m3=yU.PassThrough,hU=Array.prototype.slice;l3.exports=xU;function xU(){let _=[],q=hU.call(arguments),$=!1,Z=q[q.length-1];if(Z&&!Array.isArray(Z)&&Z.pipe==null)q.pop();else Z={};let X=Z.end!==!1,z=Z.pipeError===!0;if(Z.objectMode==null)Z.objectMode=!0;if(Z.highWaterMark==null)Z.highWaterMark=65536;let U=m3(Z);function Q(){for(let W=0,V=arguments.length;W<V;W++)_.push(d3(arguments[W],Z));return Y(),this}function Y(){if($)return;$=!0;let W=_.shift();if(!W){process.nextTick(B);return}if(!Array.isArray(W))W=[W];let V=W.length+1;function J(){if(--V>0)return;$=!1,Y()}function G(L){function F(){if(L.removeListener("merge2UnpipeEnd",F),L.removeListener("end",F),z)L.removeListener("error",M);J()}function M(w){U.emit("error",w)}if(L._readableState.endEmitted)return J();if(L.on("merge2UnpipeEnd",F),L.on("end",F),z)L.on("error",M);L.pipe(U,{end:!1}),L.resume()}for(let L=0;L<W.length;L++)G(W[L]);J()}function B(){if($=!1,U.emit("queueDrain"),X)U.end()}if(U.setMaxListeners(0),U.add=Q,U.on("unpipe",function(W){W.emit("merge2UnpipeEnd")}),q.length)Q.apply(null,q);return U}function d3(_,q){if(!Array.isArray(_)){if(!_._readableState&&_.pipe)_=_.pipe(m3(q));if(!_._readableState||!_.pause||!_.pipe)throw Error("Only readable stream can be merged.");_.pause()}else for(let $=0,Z=_.length;$<Z;$++)_[$]=d3(_[$],q);return _}});var s3=H((p3)=>{Object.defineProperty(p3,"__esModule",{value:!0});p3.merge=void 0;var gU=i3();function kU(_){let q=gU(_);return _.forEach(($)=>{$.once("error",(Z)=>q.emit("error",Z))}),q.once("close",()=>c3(_)),q.once("end",()=>c3(_)),q}p3.merge=kU;function c3(_){_.forEach((q)=>q.emit("close"))}});var o3=H((n3)=>{Object.defineProperty(n3,"__esModule",{value:!0});n3.isEmpty=n3.isString=void 0;function vU(_){return typeof _==="string"}n3.isString=vU;function uU(_){return _===""}n3.isEmpty=uU});var T1=H((t3)=>{Object.defineProperty(t3,"__esModule",{value:!0});t3.string=t3.stream=t3.pattern=t3.path=t3.fs=t3.errno=t3.array=void 0;var dU=Z4();t3.array=dU;var lU=U4();t3.errno=lU;var iU=J4();t3.fs=iU;var cU=H4();t3.path=cU;var pU=u3();t3.pattern=pU;var rU=s3();t3.stream=rU;var sU=o3();t3.string=sU});var z6=H((Z6)=>{Object.defineProperty(Z6,"__esModule",{value:!0});Z6.convertPatternGroupToTask=Z6.convertPatternGroupsToTasks=Z6.groupPatternsByBaseDirectory=Z6.getNegativePatternsAsPositive=Z6.getPositivePatterns=Z6.convertPatternsToTasks=Z6.generate=void 0;var B1=T1();function qQ(_,q){let $=_6(_,q),Z=_6(q.ignore,q),X=q6($),z=$6($,Z),U=X.filter((W)=>B1.pattern.isStaticPattern(W,q)),Q=X.filter((W)=>B1.pattern.isDynamicPattern(W,q)),Y=cq(U,z,!1),B=cq(Q,z,!0);return Y.concat(B)}Z6.generate=qQ;function _6(_,q){let $=_;if(q.braceExpansion)$=B1.pattern.expandPatternsWithBraceExpansion($);if(q.baseNameMatch)$=$.map((Z)=>Z.includes("/")?Z:`**/${Z}`);return $.map((Z)=>B1.pattern.removeDuplicateSlashes(Z))}function cq(_,q,$){let Z=[],X=B1.pattern.getPatternsOutsideCurrentDirectory(_),z=B1.pattern.getPatternsInsideCurrentDirectory(_),U=pq(X),Q=pq(z);if(Z.push(...rq(U,q,$)),"."in Q)Z.push(sq(".",z,q,$));else Z.push(...rq(Q,q,$));return Z}Z6.convertPatternsToTasks=cq;function q6(_){return B1.pattern.getPositivePatterns(_)}Z6.getPositivePatterns=q6;function $6(_,q){return B1.pattern.getNegativePatterns(_).concat(q).map(B1.pattern.convertToPositivePattern)}Z6.getNegativePatternsAsPositive=$6;function pq(_){let q={};return _.reduce(($,Z)=>{let X=B1.pattern.getBaseDirectory(Z);if(X in $)$[X].push(Z);else $[X]=[Z];return $},q)}Z6.groupPatternsByBaseDirectory=pq;function rq(_,q,$){return Object.keys(_).map((Z)=>{return sq(Z,_[Z],q,$)})}Z6.convertPatternGroupsToTasks=rq;function sq(_,q,$,Z){return{dynamic:Z,positive:q,negative:$,base:_,patterns:[].concat(q,$.map(B1.pattern.convertToNegativePattern))}}Z6.convertPatternGroupToTask=sq});var B6=H((Q6)=>{Object.defineProperty(Q6,"__esModule",{value:!0});Q6.read=void 0;function YQ(_,q,$){q.fs.lstat(_,(Z,X)=>{if(Z!==null){U6($,Z);return}if(!X.isSymbolicLink()||!q.followSymbolicLink){nq($,X);return}q.fs.stat(_,(z,U)=>{if(z!==null){if(q.throwErrorOnBrokenSymbolicLink){U6($,z);return}nq($,X);return}if(q.markSymbolicLink)U.isSymbolicLink=()=>!0;nq($,U)})})}Q6.read=YQ;function U6(_,q){_(q)}function nq(_,q){_(null,q)}});var V6=H((J6)=>{Object.defineProperty(J6,"__esModule",{value:!0});J6.read=void 0;function BQ(_,q){let $=q.fs.lstatSync(_);if(!$.isSymbolicLink()||!q.followSymbolicLink)return $;try{let Z=q.fs.statSync(_);if(q.markSymbolicLink)Z.isSymbolicLink=()=>!0;return Z}catch(Z){if(!q.throwErrorOnBrokenSymbolicLink)return $;throw Z}}J6.read=BQ});var L6=H((F6)=>{Object.defineProperty(F6,"__esModule",{value:!0});F6.createFileSystemAdapter=F6.FILE_SYSTEM_ADAPTER=void 0;var Y_=x("fs");F6.FILE_SYSTEM_ADAPTER={lstat:Y_.lstat,stat:Y_.stat,lstatSync:Y_.lstatSync,statSync:Y_.statSync};function JQ(_){if(_===void 0)return F6.FILE_SYSTEM_ADAPTER;return Object.assign(Object.assign({},F6.FILE_SYSTEM_ADAPTER),_)}F6.createFileSystemAdapter=JQ});var I6=H((M6)=>{Object.defineProperty(M6,"__esModule",{value:!0});var WQ=L6();class H6{constructor(_={}){this._options=_,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=WQ.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(_,q){return _!==null&&_!==void 0?_:q}}M6.default=H6});var k1=H((K6)=>{Object.defineProperty(K6,"__esModule",{value:!0});K6.statSync=K6.stat=K6.Settings=void 0;var T6=B6(),FQ=V6(),oq=I6();K6.Settings=oq.default;function GQ(_,q,$){if(typeof q==="function"){T6.read(_,tq(),q);return}T6.read(_,tq(q),$)}K6.stat=GQ;function LQ(_,q){let $=tq(q);return FQ.read(_,$)}K6.statSync=LQ;function tq(_={}){if(_ instanceof oq.default)return _;return new oq.default(_)}});var R6=H((kT,S6)=>{/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var w6;S6.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window<"u"?window:global):(_)=>(w6||(w6=Promise.resolve())).then(_).catch((q)=>setTimeout(()=>{throw q},0))});var j6=H((vT,P6)=>{/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */P6.exports=TQ;var IQ=R6();function TQ(_,q){let $,Z,X,z=!0;if(Array.isArray(_))$=[],Z=_.length;else X=Object.keys(_),$={},Z=X.length;function U(Y){function B(){if(q)q(Y,$);q=null}if(z)IQ(B);else B()}function Q(Y,B,W){if($[Y]=W,--Z===0||B)U(B)}if(!Z)U(null);else if(X)X.forEach(function(Y){_[Y](function(B,W){Q(Y,B,W)})});else _.forEach(function(Y,B){Y(function(W,V){Q(B,W,V)})});z=!1}});var eq=H((N6)=>{Object.defineProperty(N6,"__esModule",{value:!0});N6.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var B_=process.versions.node.split(".");if(B_[0]===void 0||B_[1]===void 0)throw Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var A6=Number.parseInt(B_[0],10),KQ=Number.parseInt(B_[1],10),O6=10,DQ=10,wQ=A6>O6,SQ=A6===O6&&KQ>=DQ;N6.IS_SUPPORT_READDIR_WITH_FILE_TYPES=wQ||SQ});var y6=H((C6)=>{Object.defineProperty(C6,"__esModule",{value:!0});C6.createDirentFromStats=void 0;class E6{constructor(_,q){this.name=_,this.isBlockDevice=q.isBlockDevice.bind(q),this.isCharacterDevice=q.isCharacterDevice.bind(q),this.isDirectory=q.isDirectory.bind(q),this.isFIFO=q.isFIFO.bind(q),this.isFile=q.isFile.bind(q),this.isSocket=q.isSocket.bind(q),this.isSymbolicLink=q.isSymbolicLink.bind(q)}}function RQ(_,q){return new E6(_,q)}C6.createDirentFromStats=RQ});var _9=H((h6)=>{Object.defineProperty(h6,"__esModule",{value:!0});h6.fs=void 0;var PQ=y6();h6.fs=PQ});var q9=H((g6)=>{Object.defineProperty(g6,"__esModule",{value:!0});g6.joinPathSegments=void 0;function jQ(_,q,$){if(_.endsWith($))return _+q;return _+$+q}g6.joinPathSegments=jQ});var p6=H((i6)=>{Object.defineProperty(i6,"__esModule",{value:!0});i6.readdir=i6.readdirWithFileTypes=i6.read=void 0;var AQ=k1(),v6=j6(),OQ=eq(),u6=_9(),m6=q9();function NQ(_,q,$){if(!q.stats&&OQ.IS_SUPPORT_READDIR_WITH_FILE_TYPES){d6(_,q,$);return}l6(_,q,$)}i6.read=NQ;function d6(_,q,$){q.fs.readdir(_,{withFileTypes:!0},(Z,X)=>{if(Z!==null){J_($,Z);return}let z=X.map((Q)=>({dirent:Q,name:Q.name,path:m6.joinPathSegments(_,Q.name,q.pathSegmentSeparator)}));if(!q.followSymbolicLinks){$9($,z);return}let U=z.map((Q)=>fQ(Q,q));v6(U,(Q,Y)=>{if(Q!==null){J_($,Q);return}$9($,Y)})})}i6.readdirWithFileTypes=d6;function fQ(_,q){return($)=>{if(!_.dirent.isSymbolicLink()){$(null,_);return}q.fs.stat(_.path,(Z,X)=>{if(Z!==null){if(q.throwErrorOnBrokenSymbolicLink){$(Z);return}$(null,_);return}_.dirent=u6.fs.createDirentFromStats(_.name,X),$(null,_)})}}function l6(_,q,$){q.fs.readdir(_,(Z,X)=>{if(Z!==null){J_($,Z);return}let z=X.map((U)=>{let Q=m6.joinPathSegments(_,U,q.pathSegmentSeparator);return(Y)=>{AQ.stat(Q,q.fsStatSettings,(B,W)=>{if(B!==null){Y(B);return}let V={name:U,path:Q,dirent:u6.fs.createDirentFromStats(U,W)};if(q.stats)V.stats=W;Y(null,V)})}});v6(z,(U,Q)=>{if(U!==null){J_($,U);return}$9($,Q)})})}i6.readdir=l6;function J_(_,q){_(q)}function $9(_,q){_(null,q)}});var e6=H((o6)=>{Object.defineProperty(o6,"__esModule",{value:!0});o6.readdir=o6.readdirWithFileTypes=o6.read=void 0;var bQ=k1(),yQ=eq(),r6=_9(),s6=q9();function hQ(_,q){if(!q.stats&&yQ.IS_SUPPORT_READDIR_WITH_FILE_TYPES)return n6(_,q);return a6(_,q)}o6.read=hQ;function n6(_,q){return q.fs.readdirSync(_,{withFileTypes:!0}).map((Z)=>{let X={dirent:Z,name:Z.name,path:s6.joinPathSegments(_,Z.name,q.pathSegmentSeparator)};if(X.dirent.isSymbolicLink()&&q.followSymbolicLinks)try{let z=q.fs.statSync(X.path);X.dirent=r6.fs.createDirentFromStats(X.name,z)}catch(z){if(q.throwErrorOnBrokenSymbolicLink)throw z}return X})}o6.readdirWithFileTypes=n6;function a6(_,q){return q.fs.readdirSync(_).map((Z)=>{let X=s6.joinPathSegments(_,Z,q.pathSegmentSeparator),z=bQ.statSync(X,q.fsStatSettings),U={name:Z,path:X,dirent:r6.fs.createDirentFromStats(Z,z)};if(q.stats)U.stats=z;return U})}o6.readdir=a6});var $2=H((_2)=>{Object.defineProperty(_2,"__esModule",{value:!0});_2.createFileSystemAdapter=_2.FILE_SYSTEM_ADAPTER=void 0;var e1=x("fs");_2.FILE_SYSTEM_ADAPTER={lstat:e1.lstat,stat:e1.stat,lstatSync:e1.lstatSync,statSync:e1.statSync,readdir:e1.readdir,readdirSync:e1.readdirSync};function kQ(_){if(_===void 0)return _2.FILE_SYSTEM_ADAPTER;return Object.assign(Object.assign({},_2.FILE_SYSTEM_ADAPTER),_)}_2.createFileSystemAdapter=kQ});var z2=H((X2)=>{Object.defineProperty(X2,"__esModule",{value:!0});var vQ=x("path"),uQ=k1(),mQ=$2();class Z2{constructor(_={}){this._options=_,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=mQ.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,vQ.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new uQ.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(_,q){return _!==null&&_!==void 0?_:q}}X2.default=Z2});var W_=H((Q2)=>{Object.defineProperty(Q2,"__esModule",{value:!0});Q2.Settings=Q2.scandirSync=Q2.scandir=void 0;var U2=p6(),lQ=e6(),X9=z2();Q2.Settings=X9.default;function iQ(_,q,$){if(typeof q==="function"){U2.read(_,z9(),q);return}U2.read(_,z9(q),$)}Q2.scandir=iQ;function cQ(_,q){let $=z9(q);return lQ.read(_,$)}Q2.scandirSync=cQ;function z9(_={}){if(_ instanceof X9.default)return _;return new X9.default(_)}});var J2=H((nT,B2)=>{function sQ(_){var q=new _,$=q;function Z(){var z=q;if(z.next)q=z.next;else q=new _,$=q;return z.next=null,z}function X(z){$.next=z,$=z}return{get:Z,release:X}}B2.exports=sQ});var V2=H((aT,U9)=>{var nQ=J2();function W2(_,q,$){if(typeof _==="function")$=q,q=_,_=null;if(!($>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");var Z=nQ(aQ),X=null,z=null,U=0,Q=null,Y={push:F,drain:X1,saturated:X1,pause:W,paused:!1,get concurrency(){return $},set concurrency(S){if(!(S>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");if($=S,Y.paused)return;for(;X&&U<$;)U++,w()},running:B,resume:G,idle:L,length:V,getQueue:J,unshift:M,empty:X1,kill:j,killAndDrain:P,error:E};return Y;function B(){return U}function W(){Y.paused=!0}function V(){var S=X,A=0;while(S)S=S.next,A++;return A}function J(){var S=X,A=[];while(S)A.push(S.value),S=S.next;return A}function G(){if(!Y.paused)return;if(Y.paused=!1,X===null){U++,w();return}for(;X&&U<$;)U++,w()}function L(){return U===0&&Y.length()===0}function F(S,A){var O=Z.get();if(O.context=_,O.release=w,O.value=S,O.callback=A||X1,O.errorHandler=Q,U>=$||Y.paused)if(z)z.next=O,z=O;else X=O,z=O,Y.saturated();else U++,q.call(_,O.value,O.worked)}function M(S,A){var O=Z.get();if(O.context=_,O.release=w,O.value=S,O.callback=A||X1,O.errorHandler=Q,U>=$||Y.paused)if(X)O.next=X,X=O;else X=O,z=O,Y.saturated();else U++,q.call(_,O.value,O.worked)}function w(S){if(S)Z.release(S);var A=X;if(A&&U<=$)if(!Y.paused){if(z===X)z=null;if(X=A.next,A.next=null,q.call(_,A.value,A.worked),z===null)Y.empty()}else U--;else if(--U===0)Y.drain()}function j(){X=null,z=null,Y.drain=X1}function P(){X=null,z=null,Y.drain(),Y.drain=X1}function E(S){Q=S}}function X1(){}function aQ(){this.value=null,this.callback=X1,this.next=null,this.release=X1,this.context=null,this.errorHandler=null;var _=this;this.worked=function($,Z){var{callback:X,errorHandler:z,value:U}=_;if(_.value=null,_.callback=X1,_.errorHandler)z($,U);X.call(_.context,$,Z),_.release(_)}}function oQ(_,q,$){if(typeof _==="function")$=q,q=_,_=null;function Z(W,V){q.call(this,W).then(function(J){V(null,J)},V)}var X=W2(_,Z,$),z=X.push,U=X.unshift;return X.push=Q,X.unshift=Y,X.drained=B,X;function Q(W){var V=new Promise(function(J,G){z(W,function(L,F){if(L){G(L);return}J(F)})});return V.catch(X1),V}function Y(W){var V=new Promise(function(J,G){U(W,function(L,F){if(L){G(L);return}J(F)})});return V.catch(X1),V}function B(){var W=new Promise(function(V){process.nextTick(function(){if(X.idle())V();else{var J=X.drain;X.drain=function(){if(typeof J==="function")J();V(),X.drain=J}}})});return W}}U9.exports=W2;U9.exports.promise=oQ});var V_=H((F2)=>{Object.defineProperty(F2,"__esModule",{value:!0});F2.joinPathSegments=F2.replacePathSegmentSeparator=F2.isAppliedFilter=F2.isFatalError=void 0;function tQ(_,q){if(_.errorFilter===null)return!0;return!_.errorFilter(q)}F2.isFatalError=tQ;function eQ(_,q){return _===null||_(q)}F2.isAppliedFilter=eQ;function _Y(_,q){return _.split(/[/\\]/).join(q)}F2.replacePathSegmentSeparator=_Y;function qY(_,q,$){if(_==="")return q;if(_.endsWith($))return _+q;return _+$+q}F2.joinPathSegments=qY});var Q9=H((H2)=>{Object.defineProperty(H2,"__esModule",{value:!0});var zY=V_();class L2{constructor(_,q){this._root=_,this._settings=q,this._root=zY.replacePathSegmentSeparator(_,q.pathSegmentSeparator)}}H2.default=L2});var Y9=H((I2)=>{Object.defineProperty(I2,"__esModule",{value:!0});var QY=x("events"),YY=W_(),BY=V2(),F_=V_(),JY=Q9();class M2 extends JY.default{constructor(_,q){super(_,q);this._settings=q,this._scandir=YY.scandir,this._emitter=new QY.EventEmitter,this._queue=BY(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{if(!this._isFatalError)this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(_){this._emitter.on("entry",_)}onError(_){this._emitter.once("error",_)}onEnd(_){this._emitter.once("end",_)}_pushToQueue(_,q){let $={directory:_,base:q};this._queue.push($,(Z)=>{if(Z!==null)this._handleError(Z)})}_worker(_,q){this._scandir(_.directory,this._settings.fsScandirSettings,($,Z)=>{if($!==null){q($,void 0);return}for(let X of Z)this._handleEntry(X,_.base);q(null,void 0)})}_handleError(_){if(this._isDestroyed||!F_.isFatalError(this._settings,_))return;this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",_)}_handleEntry(_,q){if(this._isDestroyed||this._isFatalError)return;let $=_.path;if(q!==void 0)_.path=F_.joinPathSegments(q,_.name,this._settings.pathSegmentSeparator);if(F_.isAppliedFilter(this._settings.entryFilter,_))this._emitEntry(_);if(_.dirent.isDirectory()&&F_.isAppliedFilter(this._settings.deepFilter,_))this._pushToQueue($,q===void 0?void 0:_.path)}_emitEntry(_){this._emitter.emit("entry",_)}}I2.default=M2});var D2=H((K2)=>{Object.defineProperty(K2,"__esModule",{value:!0});var VY=Y9();class T2{constructor(_,q){this._root=_,this._settings=q,this._reader=new VY.default(this._root,this._settings),this._storage=[]}read(_){this._reader.onError((q)=>{FY(_,q)}),this._reader.onEntry((q)=>{this._storage.push(q)}),this._reader.onEnd(()=>{GY(_,this._storage)}),this._reader.read()}}K2.default=T2;function FY(_,q){_(q)}function GY(_,q){_(null,q)}});var R2=H((S2)=>{Object.defineProperty(S2,"__esModule",{value:!0});var HY=x("stream"),MY=Y9();class w2{constructor(_,q){this._root=_,this._settings=q,this._reader=new MY.default(this._root,this._settings),this._stream=new HY.Readable({objectMode:!0,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed)this._reader.destroy()}})}read(){return this._reader.onError((_)=>{this._stream.emit("error",_)}),this._reader.onEntry((_)=>{this._stream.push(_)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}}S2.default=w2});var A2=H((j2)=>{Object.defineProperty(j2,"__esModule",{value:!0});var TY=W_(),G_=V_(),KY=Q9();class P2 extends KY.default{constructor(){super(...arguments);this._scandir=TY.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(_,q){this._queue.add({directory:_,base:q})}_handleQueue(){for(let _ of this._queue.values())this._handleDirectory(_.directory,_.base)}_handleDirectory(_,q){try{let $=this._scandir(_,this._settings.fsScandirSettings);for(let Z of $)this._handleEntry(Z,q)}catch($){this._handleError($)}}_handleError(_){if(!G_.isFatalError(this._settings,_))return;throw _}_handleEntry(_,q){let $=_.path;if(q!==void 0)_.path=G_.joinPathSegments(q,_.name,this._settings.pathSegmentSeparator);if(G_.isAppliedFilter(this._settings.entryFilter,_))this._pushToStorage(_);if(_.dirent.isDirectory()&&G_.isAppliedFilter(this._settings.deepFilter,_))this._pushToQueue($,q===void 0?void 0:_.path)}_pushToStorage(_){this._storage.push(_)}}j2.default=P2});var f2=H((N2)=>{Object.defineProperty(N2,"__esModule",{value:!0});var wY=A2();class O2{constructor(_,q){this._root=_,this._settings=q,this._reader=new wY.default(this._root,this._settings)}read(){return this._reader.read()}}N2.default=O2});var b2=H((C2)=>{Object.defineProperty(C2,"__esModule",{value:!0});var RY=x("path"),PY=W_();class E2{constructor(_={}){this._options=_,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,RY.sep),this.fsScandirSettings=new PY.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(_,q){return _!==null&&_!==void 0?_:q}}C2.default=E2});var H_=H((h2)=>{Object.defineProperty(h2,"__esModule",{value:!0});h2.Settings=h2.walkStream=h2.walkSync=h2.walk=void 0;var y2=D2(),AY=R2(),OY=f2(),B9=b2();h2.Settings=B9.default;function NY(_,q,$){if(typeof q==="function"){new y2.default(_,L_()).read(q);return}new y2.default(_,L_(q)).read($)}h2.walk=NY;function fY(_,q){let $=L_(q);return new OY.default(_,$).read()}h2.walkSync=fY;function EY(_,q){let $=L_(q);return new AY.default(_,$).read()}h2.walkStream=EY;function L_(_={}){if(_ instanceof B9.default)return _;return new B9.default(_)}});var M_=H((v2)=>{Object.defineProperty(v2,"__esModule",{value:!0});var hY=x("path"),xY=k1(),g2=T1();class k2{constructor(_){this._settings=_,this._fsStatSettings=new xY.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(_){return hY.resolve(this._settings.cwd,_)}_makeEntry(_,q){let $={name:q,path:q,dirent:g2.fs.createDirentFromStats(q,_)};if(this._settings.stats)$.stats=_;return $}_isFatalError(_){return!g2.errno.isEnoentCodeError(_)&&!this._settings.suppressErrors}}v2.default=k2});var J9=H((m2)=>{Object.defineProperty(m2,"__esModule",{value:!0});var kY=x("stream"),vY=k1(),uY=H_(),mY=M_();class u2 extends mY.default{constructor(){super(...arguments);this._walkStream=uY.walkStream,this._stat=vY.stat}dynamic(_,q){return this._walkStream(_,q)}static(_,q){let $=_.map(this._getFullEntryPath,this),Z=new kY.PassThrough({objectMode:!0});Z._write=(X,z,U)=>{return this._getEntry($[X],_[X],q).then((Q)=>{if(Q!==null&&q.entryFilter(Q))Z.push(Q);if(X===$.length-1)Z.end();U()}).catch(U)};for(let X=0;X<$.length;X++)Z.write(X);return Z}_getEntry(_,q,$){return this._getStat(_).then((Z)=>this._makeEntry(Z,q)).catch((Z)=>{if($.errorFilter(Z))return null;throw Z})}_getStat(_){return new Promise((q,$)=>{this._stat(_,this._fsStatSettings,(Z,X)=>{return Z===null?q(X):$(Z)})})}}m2.default=u2});var i2=H((l2)=>{Object.defineProperty(l2,"__esModule",{value:!0});var lY=H_(),iY=M_(),cY=J9();class d2 extends iY.default{constructor(){super(...arguments);this._walkAsync=lY.walk,this._readerStream=new cY.default(this._settings)}dynamic(_,q){return new Promise(($,Z)=>{this._walkAsync(_,q,(X,z)=>{if(X===null)$(z);else Z(X)})})}async static(_,q){let $=[],Z=this._readerStream.static(_,q);return new Promise((X,z)=>{Z.once("error",z),Z.on("data",(U)=>$.push(U)),Z.once("end",()=>X($))})}}l2.default=d2});var r2=H((p2)=>{Object.defineProperty(p2,"__esModule",{value:!0});var D0=T1();class c2{constructor(_,q,$){this._patterns=_,this._settings=q,this._micromatchOptions=$,this._storage=[],this._fillStorage()}_fillStorage(){for(let _ of this._patterns){let q=this._getPatternSegments(_),$=this._splitSegmentsIntoSections(q);this._storage.push({complete:$.length<=1,pattern:_,segments:q,sections:$})}}_getPatternSegments(_){return D0.pattern.getPatternParts(_,this._micromatchOptions).map(($)=>{if(!D0.pattern.isDynamicPattern($,this._settings))return{dynamic:!1,pattern:$};return{dynamic:!0,pattern:$,patternRe:D0.pattern.makeRe($,this._micromatchOptions)}})}_splitSegmentsIntoSections(_){return D0.array.splitWhen(_,(q)=>q.dynamic&&D0.pattern.hasGlobStar(q.pattern))}}p2.default=c2});var a2=H((n2)=>{Object.defineProperty(n2,"__esModule",{value:!0});var sY=r2();class s2 extends sY.default{match(_){let q=_.split("/"),$=q.length,Z=this._storage.filter((X)=>!X.complete||X.segments.length>$);for(let X of Z){let z=X.sections[0];if(!X.complete&&$>z.length)return!0;if(q.every((Q,Y)=>{let B=X.segments[Y];if(B.dynamic&&B.patternRe.test(Q))return!0;if(!B.dynamic&&B.pattern===Q)return!0;return!1}))return!0}return!1}}n2.default=s2});var e2=H((t2)=>{Object.defineProperty(t2,"__esModule",{value:!0});var I_=T1(),aY=a2();class o2{constructor(_,q){this._settings=_,this._micromatchOptions=q}getFilter(_,q,$){let Z=this._getMatcher(q),X=this._getNegativePatternsRe($);return(z)=>this._filter(_,z,Z,X)}_getMatcher(_){return new aY.default(_,this._settings,this._micromatchOptions)}_getNegativePatternsRe(_){let q=_.filter(I_.pattern.isAffectDepthOfReadingPattern);return I_.pattern.convertPatternsToRe(q,this._micromatchOptions)}_filter(_,q,$,Z){if(this._isSkippedByDeep(_,q.path))return!1;if(this._isSkippedSymbolicLink(q))return!1;let X=I_.path.removeLeadingDotSegment(q.path);if(this._isSkippedByPositivePatterns(X,$))return!1;return this._isSkippedByNegativePatterns(X,Z)}_isSkippedByDeep(_,q){if(this._settings.deep===1/0)return!1;return this._getEntryLevel(_,q)>=this._settings.deep}_getEntryLevel(_,q){let $=q.split("/").length;if(_==="")return $;let Z=_.split("/").length;return $-Z}_isSkippedSymbolicLink(_){return!this._settings.followSymbolicLinks&&_.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(_,q){return!this._settings.baseNameMatch&&!q.match(_)}_isSkippedByNegativePatterns(_,q){return!I_.pattern.matchAny(_,q)}}t2.default=o2});var $7=H((q7)=>{Object.defineProperty(q7,"__esModule",{value:!0});var P1=T1();class _7{constructor(_,q){this._settings=_,this._micromatchOptions=q,this.index=new Map}getFilter(_,q){let[$,Z]=P1.pattern.partitionAbsoluteAndRelative(q),X={positive:{all:P1.pattern.convertPatternsToRe(_,this._micromatchOptions)},negative:{absolute:P1.pattern.convertPatternsToRe($,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:P1.pattern.convertPatternsToRe(Z,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return(z)=>this._filter(z,X)}_filter(_,q){let $=P1.path.removeLeadingDotSegment(_.path);if(this._settings.unique&&this._isDuplicateEntry($))return!1;if(this._onlyFileFilter(_)||this._onlyDirectoryFilter(_))return!1;let Z=this._isMatchToPatternsSet($,q,_.dirent.isDirectory());if(this._settings.unique&&Z)this._createIndexRecord($);return Z}_isDuplicateEntry(_){return this.index.has(_)}_createIndexRecord(_){this.index.set(_,void 0)}_onlyFileFilter(_){return this._settings.onlyFiles&&!_.dirent.isFile()}_onlyDirectoryFilter(_){return this._settings.onlyDirectories&&!_.dirent.isDirectory()}_isMatchToPatternsSet(_,q,$){if(!this._isMatchToPatterns(_,q.positive.all,$))return!1;if(this._isMatchToPatterns(_,q.negative.relative,$))return!1;if(this._isMatchToAbsoluteNegative(_,q.negative.absolute,$))return!1;return!0}_isMatchToAbsoluteNegative(_,q,$){if(q.length===0)return!1;let Z=P1.path.makeAbsolute(this._settings.cwd,_);return this._isMatchToPatterns(Z,q,$)}_isMatchToPatterns(_,q,$){if(q.length===0)return!1;let Z=P1.pattern.matchAny(_,q);if(!Z&&$)return P1.pattern.matchAny(_+"/",q);return Z}}q7.default=_7});var z7=H((X7)=>{Object.defineProperty(X7,"__esModule",{value:!0});var eY=T1();class Z7{constructor(_){this._settings=_}getFilter(){return(_)=>this._isNonFatalError(_)}_isNonFatalError(_){return eY.errno.isEnoentCodeError(_)||this._settings.suppressErrors}}X7.default=Z7});var B7=H((Y7)=>{Object.defineProperty(Y7,"__esModule",{value:!0});var U7=T1();class Q7{constructor(_){this._settings=_}getTransformer(){return(_)=>this._transform(_)}_transform(_){let q=_.path;if(this._settings.absolute)q=U7.path.makeAbsolute(this._settings.cwd,q),q=U7.path.unixify(q);if(this._settings.markDirectories&&_.dirent.isDirectory())q+="/";if(!this._settings.objectMode)return q;return Object.assign(Object.assign({},_),{path:q})}}Y7.default=Q7});var T_=H((W7)=>{Object.defineProperty(W7,"__esModule",{value:!0});var $B=x("path"),ZB=e2(),XB=$7(),zB=z7(),UB=B7();class J7{constructor(_){this._settings=_,this.errorFilter=new zB.default(this._settings),this.entryFilter=new XB.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new ZB.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new UB.default(this._settings)}_getRootDirectory(_){return $B.resolve(this._settings.cwd,_.base)}_getReaderOptions(_){let q=_.base==="."?"":_.base;return{basePath:q,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(q,_.positive,_.negative),entryFilter:this.entryFilter.getFilter(_.positive,_.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}}W7.default=J7});var G7=H((F7)=>{Object.defineProperty(F7,"__esModule",{value:!0});var YB=i2(),BB=T_();class V7 extends BB.default{constructor(){super(...arguments);this._reader=new YB.default(this._settings)}async read(_){let q=this._getRootDirectory(_),$=this._getReaderOptions(_);return(await this.api(q,_,$)).map((X)=>$.transform(X))}api(_,q,$){if(q.dynamic)return this._reader.dynamic(_,$);return this._reader.static(q.patterns,$)}}F7.default=V7});var M7=H((H7)=>{Object.defineProperty(H7,"__esModule",{value:!0});var WB=x("stream"),VB=J9(),FB=T_();class L7 extends FB.default{constructor(){super(...arguments);this._reader=new VB.default(this._settings)}read(_){let q=this._getRootDirectory(_),$=this._getReaderOptions(_),Z=this.api(q,_,$),X=new WB.Readable({objectMode:!0,read:()=>{}});return Z.once("error",(z)=>X.emit("error",z)).on("data",(z)=>X.emit("data",$.transform(z))).once("end",()=>X.emit("end")),X.once("close",()=>Z.destroy()),X}api(_,q,$){if(q.dynamic)return this._reader.dynamic(_,$);return this._reader.static(q.patterns,$)}}H7.default=L7});var K7=H((T7)=>{Object.defineProperty(T7,"__esModule",{value:!0});var LB=k1(),HB=H_(),MB=M_();class I7 extends MB.default{constructor(){super(...arguments);this._walkSync=HB.walkSync,this._statSync=LB.statSync}dynamic(_,q){return this._walkSync(_,q)}static(_,q){let $=[];for(let Z of _){let X=this._getFullEntryPath(Z),z=this._getEntry(X,Z,q);if(z===null||!q.entryFilter(z))continue;$.push(z)}return $}_getEntry(_,q,$){try{let Z=this._getStat(_);return this._makeEntry(Z,q)}catch(Z){if($.errorFilter(Z))return null;throw Z}}_getStat(_){return this._statSync(_,this._fsStatSettings)}}T7.default=I7});var S7=H((w7)=>{Object.defineProperty(w7,"__esModule",{value:!0});var TB=K7(),KB=T_();class D7 extends KB.default{constructor(){super(...arguments);this._reader=new TB.default(this._settings)}read(_){let q=this._getRootDirectory(_),$=this._getReaderOptions(_);return this.api(q,_,$).map($.transform)}api(_,q,$){if(q.dynamic)return this._reader.dynamic(_,$);return this._reader.static(q.patterns,$)}}w7.default=D7});var j7=H((P7)=>{Object.defineProperty(P7,"__esModule",{value:!0});P7.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var _0=x("fs"),wB=x("os"),SB=Math.max(wB.cpus().length,1);P7.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:_0.lstat,lstatSync:_0.lstatSync,stat:_0.stat,statSync:_0.statSync,readdir:_0.readdir,readdirSync:_0.readdirSync};class R7{constructor(_={}){if(this._options=_,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,SB),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories)this.onlyFiles=!1;if(this.stats)this.objectMode=!0;this.ignore=[].concat(this.ignore)}_getValue(_,q){return _===void 0?q:_}_getFileSystemMethods(_={}){return Object.assign(Object.assign({},P7.DEFAULT_FILE_SYSTEM_ADAPTER),_)}}P7.default=R7});var N7=H((DK,O7)=>{var A7=z6(),PB=G7(),jB=M7(),AB=S7(),V9=j7(),z1=T1();async function F9(_,q){J1(_);let $=G9(_,PB.default,q),Z=await Promise.all($);return z1.array.flatten(Z)}(function(_){_.glob=_,_.globSync=q,_.globStream=$,_.async=_;function q(B,W){J1(B);let V=G9(B,AB.default,W);return z1.array.flatten(V)}_.sync=q;function $(B,W){J1(B);let V=G9(B,jB.default,W);return z1.stream.merge(V)}_.stream=$;function Z(B,W){J1(B);let V=[].concat(B),J=new V9.default(W);return A7.generate(V,J)}_.generateTasks=Z;function X(B,W){J1(B);let V=new V9.default(W);return z1.pattern.isDynamicPattern(B,V)}_.isDynamicPattern=X;function z(B){return J1(B),z1.path.escape(B)}_.escapePath=z;function U(B){return J1(B),z1.path.convertPathToPattern(B)}_.convertPathToPattern=U;let Q;(function(B){function W(J){return J1(J),z1.path.escapePosixPath(J)}B.escapePath=W;function V(J){return J1(J),z1.path.convertPosixPathToPattern(J)}B.convertPathToPattern=V})(Q=_.posix||(_.posix={}));let Y;(function(B){function W(J){return J1(J),z1.path.escapeWindowsPath(J)}B.escapePath=W;function V(J){return J1(J),z1.path.convertWindowsPathToPattern(J)}B.convertPathToPattern=V})(Y=_.win32||(_.win32={}))})(F9||(F9={}));function G9(_,q,$){let Z=[].concat(_),X=new V9.default($),z=A7.generate(Z,X),U=new q(X);return z.map(U.read,U)}function J1(_){if(![].concat(_).every((Z)=>z1.string.isString(Z)&&!z1.string.isEmpty(Z)))throw TypeError("Patterns must be a string (non empty) or an array of strings")}O7.exports=F9});var g=H((hB)=>{var L9=Symbol.for("yaml.alias"),E7=Symbol.for("yaml.document"),D_=Symbol.for("yaml.map"),C7=Symbol.for("yaml.pair"),H9=Symbol.for("yaml.scalar"),w_=Symbol.for("yaml.seq"),K1=Symbol.for("yaml.node.type"),OB=(_)=>!!_&&typeof _==="object"&&_[K1]===L9,NB=(_)=>!!_&&typeof _==="object"&&_[K1]===E7,fB=(_)=>!!_&&typeof _==="object"&&_[K1]===D_,EB=(_)=>!!_&&typeof _==="object"&&_[K1]===C7,b7=(_)=>!!_&&typeof _==="object"&&_[K1]===H9,CB=(_)=>!!_&&typeof _==="object"&&_[K1]===w_;function y7(_){if(_&&typeof _==="object")switch(_[K1]){case D_:case w_:return!0}return!1}function bB(_){if(_&&typeof _==="object")switch(_[K1]){case L9:case D_:case H9:case w_:return!0}return!1}var yB=(_)=>(b7(_)||y7(_))&&!!_.anchor;hB.ALIAS=L9;hB.DOC=E7;hB.MAP=D_;hB.NODE_TYPE=K1;hB.PAIR=C7;hB.SCALAR=H9;hB.SEQ=w_;hB.hasAnchor=yB;hB.isAlias=OB;hB.isCollection=y7;hB.isDocument=NB;hB.isMap=fB;hB.isNode=bB;hB.isPair=EB;hB.isScalar=b7;hB.isSeq=CB});var R0=H((tB)=>{var n=g(),e=Symbol("break visit"),h7=Symbol("skip children"),H1=Symbol("remove node");function S_(_,q){let $=x7(q);if(n.isDocument(_)){if(q0(null,_.contents,$,Object.freeze([_]))===H1)_.contents=null}else q0(null,_,$,Object.freeze([]))}S_.BREAK=e;S_.SKIP=h7;S_.REMOVE=H1;function q0(_,q,$,Z){let X=g7(_,q,$,Z);if(n.isNode(X)||n.isPair(X))return k7(_,Z,X),q0(_,X,$,Z);if(typeof X!=="symbol"){if(n.isCollection(q)){Z=Object.freeze(Z.concat(q));for(let z=0;z<q.items.length;++z){let U=q0(z,q.items[z],$,Z);if(typeof U==="number")z=U-1;else if(U===e)return e;else if(U===H1)q.items.splice(z,1),z-=1}}else if(n.isPair(q)){Z=Object.freeze(Z.concat(q));let z=q0("key",q.key,$,Z);if(z===e)return e;else if(z===H1)q.key=null;let U=q0("value",q.value,$,Z);if(U===e)return e;else if(U===H1)q.value=null}}return X}async function R_(_,q){let $=x7(q);if(n.isDocument(_)){if(await $0(null,_.contents,$,Object.freeze([_]))===H1)_.contents=null}else await $0(null,_,$,Object.freeze([]))}R_.BREAK=e;R_.SKIP=h7;R_.REMOVE=H1;async function $0(_,q,$,Z){let X=await g7(_,q,$,Z);if(n.isNode(X)||n.isPair(X))return k7(_,Z,X),$0(_,X,$,Z);if(typeof X!=="symbol"){if(n.isCollection(q)){Z=Object.freeze(Z.concat(q));for(let z=0;z<q.items.length;++z){let U=await $0(z,q.items[z],$,Z);if(typeof U==="number")z=U-1;else if(U===e)return e;else if(U===H1)q.items.splice(z,1),z-=1}}else if(n.isPair(q)){Z=Object.freeze(Z.concat(q));let z=await $0("key",q.key,$,Z);if(z===e)return e;else if(z===H1)q.key=null;let U=await $0("value",q.value,$,Z);if(U===e)return e;else if(U===H1)q.value=null}}return X}function x7(_){if(typeof _==="object"&&(_.Collection||_.Node||_.Value))return Object.assign({Alias:_.Node,Map:_.Node,Scalar:_.Node,Seq:_.Node},_.Value&&{Map:_.Value,Scalar:_.Value,Seq:_.Value},_.Collection&&{Map:_.Collection,Seq:_.Collection},_);return _}function g7(_,q,$,Z){if(typeof $==="function")return $(_,q,Z);if(n.isMap(q))return $.Map?.(_,q,Z);if(n.isSeq(q))return $.Seq?.(_,q,Z);if(n.isPair(q))return $.Pair?.(_,q,Z);if(n.isScalar(q))return $.Scalar?.(_,q,Z);if(n.isAlias(q))return $.Alias?.(_,q,Z);return}function k7(_,q,$){let Z=q[q.length-1];if(n.isCollection(Z))Z.items[_]=$;else if(n.isPair(Z))if(_==="key")Z.key=$;else Z.value=$;else if(n.isDocument(Z))Z.contents=$;else{let X=n.isAlias(Z)?"alias":"scalar";throw Error(`Cannot replace node with ${X} parent`)}}tB.visit=S_;tB.visitAsync=R_});var M9=H((XJ)=>{var v7=g(),qJ=R0(),$J={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},ZJ=(_)=>_.replace(/[!,[\]{}]/g,(q)=>$J[q]);class U1{constructor(_,q){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},U1.defaultYaml,_),this.tags=Object.assign({},U1.defaultTags,q)}clone(){let _=new U1(this.yaml,this.tags);return _.docStart=this.docStart,_}atDocument(){let _=new U1(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:U1.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},U1.defaultTags);break}return _}add(_,q){if(this.atNextDocument)this.yaml={explicit:U1.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},U1.defaultTags),this.atNextDocument=!1;let $=_.trim().split(/[ \t]+/),Z=$.shift();switch(Z){case"%TAG":{if($.length!==2){if(q(0,"%TAG directive should contain exactly two parts"),$.length<2)return!1}let[X,z]=$;return this.tags[X]=z,!0}case"%YAML":{if(this.yaml.explicit=!0,$.length!==1)return q(0,"%YAML directive should contain exactly one part"),!1;let[X]=$;if(X==="1.1"||X==="1.2")return this.yaml.version=X,!0;else{let z=/^\d+\.\d+$/.test(X);return q(6,`Unsupported YAML version ${X}`,z),!1}}default:return q(0,`Unknown directive ${Z}`,!0),!1}}tagName(_,q){if(_==="!")return"!";if(_[0]!=="!")return q(`Not a valid tag: ${_}`),null;if(_[1]==="<"){let z=_.slice(2,-1);if(z==="!"||z==="!!")return q(`Verbatim tags aren't resolved, so ${_} is invalid.`),null;if(_[_.length-1]!==">")q("Verbatim tags must end with a >");return z}let[,$,Z]=_.match(/^(.*!)([^!]*)$/s);if(!Z)q(`The ${_} tag has no suffix`);let X=this.tags[$];if(X)try{return X+decodeURIComponent(Z)}catch(z){return q(String(z)),null}if($==="!")return _;return q(`Could not resolve tag: ${_}`),null}tagString(_){for(let[q,$]of Object.entries(this.tags))if(_.startsWith($))return q+ZJ(_.substring($.length));return _[0]==="!"?_:`!<${_}>`}toString(_){let q=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],$=Object.entries(this.tags),Z;if(_&&$.length>0&&v7.isNode(_.contents)){let X={};qJ.visit(_.contents,(z,U)=>{if(v7.isNode(U)&&U.tag)X[U.tag]=!0}),Z=Object.keys(X)}else Z=[];for(let[X,z]of $){if(X==="!!"&&z==="tag:yaml.org,2002:")continue;if(!_||Z.some((U)=>U.startsWith(z)))q.push(`%TAG ${X} ${z}`)}return q.join(`
|
|
49
|
-
`)}}U1.defaultYaml={explicit:!1,version:"1.2"};U1.defaultTags={"!!":"tag:yaml.org,2002:"};
|
|
47
|
+
*/var gX=x("util"),k4=x4(),g4=(_)=>_!==null&&typeof _==="object"&&!Array.isArray(_),kX=(_)=>{return(q)=>_===!0?Number(q):String(q)},fq=(_)=>{return typeof _==="number"||typeof _==="string"&&_!==""},H0=(_)=>Number.isInteger(+_),Eq=(_)=>{let q=`${_}`,$=-1;if(q[0]==="-")q=q.slice(1);if(q==="0")return!1;while(q[++$]==="0");return $>0},vX=(_,q,$)=>{if(typeof _==="string"||typeof q==="string")return!0;return $.stringify===!0},uX=(_,q,$)=>{if(q>0){let Z=_[0]==="-"?"-":"";if(Z)_=_.slice(1);_=Z+_.padStart(Z?q-1:q,"0")}if($===!1)return String(_);return _},X_=(_,q)=>{let $=_[0]==="-"?"-":"";if($)_=_.slice(1),q--;while(_.length<q)_="0"+_;return $?"-"+_:_},mX=(_,q,$)=>{_.negatives.sort((Q,Y)=>Q<Y?-1:Q>Y?1:0),_.positives.sort((Q,Y)=>Q<Y?-1:Q>Y?1:0);let Z=q.capture?"":"?:",X="",z="",U;if(_.positives.length)X=_.positives.map((Q)=>X_(String(Q),$)).join("|");if(_.negatives.length)z=`-(${Z}${_.negatives.map((Q)=>X_(String(Q),$)).join("|")})`;if(X&&z)U=`${X}|${z}`;else U=X||z;if(q.wrap)return`(${Z}${U})`;return U},v4=(_,q,$,Z)=>{if($)return k4(_,q,{wrap:!1,...Z});let X=String.fromCharCode(_);if(_===q)return X;let z=String.fromCharCode(q);return`[${X}-${z}]`},u4=(_,q,$)=>{if(Array.isArray(_)){let Z=$.wrap===!0,X=$.capture?"":"?:";return Z?`(${X}${_.join("|")})`:_.join("|")}return k4(_,q,$)},m4=(..._)=>{return RangeError("Invalid range arguments: "+gX.inspect(..._))},d4=(_,q,$)=>{if($.strictRanges===!0)throw m4([_,q]);return[]},dX=(_,q)=>{if(q.strictRanges===!0)throw TypeError(`Expected step "${_}" to be a number`);return[]},lX=(_,q,$=1,Z={})=>{let X=Number(_),z=Number(q);if(!Number.isInteger(X)||!Number.isInteger(z)){if(Z.strictRanges===!0)throw m4([_,q]);return[]}if(X===0)X=0;if(z===0)z=0;let U=X>z,Q=String(_),Y=String(q),B=String($);$=Math.max(Math.abs($),1);let W=Eq(Q)||Eq(Y)||Eq(B),V=W?Math.max(Q.length,Y.length,B.length):0,J=W===!1&&vX(_,q,Z)===!1,G=Z.transform||kX(J);if(Z.toRegex&&$===1)return v4(X_(_,V),X_(q,V),!0,Z);let L={negatives:[],positives:[]},F=(j)=>L[j<0?"negatives":"positives"].push(Math.abs(j)),I=[],S=0;while(U?X>=z:X<=z){if(Z.toRegex===!0&&$>1)F(X);else I.push(uX(G(X,S),V,J));X=U?X-$:X+$,S++}if(Z.toRegex===!0)return $>1?mX(L,Z,V):u4(I,null,{wrap:!1,...Z});return I},iX=(_,q,$=1,Z={})=>{if(!H0(_)&&_.length>1||!H0(q)&&q.length>1)return d4(_,q,Z);let X=Z.transform||((J)=>String.fromCharCode(J)),z=`${_}`.charCodeAt(0),U=`${q}`.charCodeAt(0),Q=z>U,Y=Math.min(z,U),B=Math.max(z,U);if(Z.toRegex&&$===1)return v4(Y,B,!1,Z);let W=[],V=0;while(Q?z>=U:z<=U)W.push(X(z,V)),z=Q?z-$:z+$,V++;if(Z.toRegex===!0)return u4(W,null,{wrap:!1,options:Z});return W},Z_=(_,q,$,Z={})=>{if(q==null&&fq(_))return[_];if(!fq(_)||!fq(q))return d4(_,q,Z);if(typeof $==="function")return Z_(_,q,1,{transform:$});if(g4($))return Z_(_,q,0,$);let X={...Z};if(X.capture===!0)X.wrap=!0;if($=$||X.step||1,!H0($)){if($!=null&&!g4($))return dX($,X);return Z_(_,q,1,$)}if(H0(_)&&H0(q))return lX(_,q,$,X);return iX(_,q,Math.max(Math.abs($),1),X)};l4.exports=Z_});var p4=H((KT,c4)=>{var cX=Cq(),i4=q_(),pX=(_,q={})=>{let $=(Z,X={})=>{let z=i4.isInvalidBrace(X),U=Z.invalid===!0&&q.escapeInvalid===!0,Q=z===!0||U===!0,Y=q.escapeInvalid===!0?"\\":"",B="";if(Z.isOpen===!0)return Y+Z.value;if(Z.isClose===!0)return console.log("node.isClose",Y,Z.value),Y+Z.value;if(Z.type==="open")return Q?Y+Z.value:"(";if(Z.type==="close")return Q?Y+Z.value:")";if(Z.type==="comma")return Z.prev.type==="comma"?"":Q?Z.value:"|";if(Z.value)return Z.value;if(Z.nodes&&Z.ranges>0){let W=i4.reduce(Z.nodes),V=cX(...W,{...q,wrap:!1,toRegex:!0,strictZeros:!0});if(V.length!==0)return W.length>1&&V.length>1?`(${V})`:V}if(Z.nodes)for(let W of Z.nodes)B+=$(W,Z);return B};return $(_)};c4.exports=pX});var n4=H((DT,s4)=>{var rX=Cq(),r4=$_(),o1=q_(),k1=(_="",q="",$=!1)=>{let Z=[];if(_=[].concat(_),q=[].concat(q),!q.length)return _;if(!_.length)return $?o1.flatten(q).map((X)=>`{${X}}`):q;for(let X of _)if(Array.isArray(X))for(let z of X)Z.push(k1(z,q,$));else for(let z of q){if($===!0&&typeof z==="string")z=`{${z}}`;Z.push(Array.isArray(z)?k1(X,z,$):X+z)}return o1.flatten(Z)},sX=(_,q={})=>{let $=q.rangeLimit===void 0?1000:q.rangeLimit,Z=(X,z={})=>{X.queue=[];let U=z,Q=z.queue;while(U.type!=="brace"&&U.type!=="root"&&U.parent)U=U.parent,Q=U.queue;if(X.invalid||X.dollar){Q.push(k1(Q.pop(),r4(X,q)));return}if(X.type==="brace"&&X.invalid!==!0&&X.nodes.length===2){Q.push(k1(Q.pop(),["{}"]));return}if(X.nodes&&X.ranges>0){let V=o1.reduce(X.nodes);if(o1.exceedsLimit(...V,q.step,$))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let J=rX(...V,q);if(J.length===0)J=r4(X,q);Q.push(k1(Q.pop(),J)),X.nodes=[];return}let Y=o1.encloseBrace(X),B=X.queue,W=X;while(W.type!=="brace"&&W.type!=="root"&&W.parent)W=W.parent,B=W.queue;for(let V=0;V<X.nodes.length;V++){let J=X.nodes[V];if(J.type==="comma"&&X.type==="brace"){if(V===1)B.push("");B.push("");continue}if(J.type==="close"){Q.push(k1(Q.pop(),B,Y));continue}if(J.value&&J.type!=="open"){B.push(k1(B.pop(),J.value));continue}if(J.nodes)Z(J,X)}return B};return o1.flatten(Z(_))};s4.exports=sX});var o4=H((ST,a4)=>{a4.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
48
|
+
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var $3=H((wT,q3)=>{var nX=$_(),{MAX_LENGTH:t4,CHAR_BACKSLASH:bq,CHAR_BACKTICK:aX,CHAR_COMMA:oX,CHAR_DOT:tX,CHAR_LEFT_PARENTHESES:eX,CHAR_RIGHT_PARENTHESES:_z,CHAR_LEFT_CURLY_BRACE:qz,CHAR_RIGHT_CURLY_BRACE:$z,CHAR_LEFT_SQUARE_BRACKET:e4,CHAR_RIGHT_SQUARE_BRACKET:_3,CHAR_DOUBLE_QUOTE:Zz,CHAR_SINGLE_QUOTE:Xz,CHAR_NO_BREAK_SPACE:zz,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Uz}=o4(),Qz=(_,q={})=>{if(typeof _!=="string")throw TypeError("Expected a string");let $=q||{},Z=typeof $.maxLength==="number"?Math.min(t4,$.maxLength):t4;if(_.length>Z)throw SyntaxError(`Input length (${_.length}), exceeds max characters (${Z})`);let X={type:"root",input:_,nodes:[]},z=[X],U=X,Q=X,Y=0,B=_.length,W=0,V=0,J,G=()=>_[W++],L=(F)=>{if(F.type==="text"&&Q.type==="dot")Q.type="text";if(Q&&Q.type==="text"&&F.type==="text"){Q.value+=F.value;return}return U.nodes.push(F),F.parent=U,F.prev=Q,Q=F,F};L({type:"bos"});while(W<B){if(U=z[z.length-1],J=G(),J===Uz||J===zz)continue;if(J===bq){L({type:"text",value:(q.keepEscaping?J:"")+G()});continue}if(J===_3){L({type:"text",value:"\\"+J});continue}if(J===e4){Y++;let F;while(W<B&&(F=G())){if(J+=F,F===e4){Y++;continue}if(F===bq){J+=G();continue}if(F===_3){if(Y--,Y===0)break}}L({type:"text",value:J});continue}if(J===eX){U=L({type:"paren",nodes:[]}),z.push(U),L({type:"text",value:J});continue}if(J===_z){if(U.type!=="paren"){L({type:"text",value:J});continue}U=z.pop(),L({type:"text",value:J}),U=z[z.length-1];continue}if(J===Zz||J===Xz||J===aX){let F=J,I;if(q.keepQuotes!==!0)J="";while(W<B&&(I=G())){if(I===bq){J+=I+G();continue}if(I===F){if(q.keepQuotes===!0)J+=I;break}J+=I}L({type:"text",value:J});continue}if(J===qz){V++;let I={type:"brace",open:!0,close:!1,dollar:Q.value&&Q.value.slice(-1)==="$"||U.dollar===!0,depth:V,commas:0,ranges:0,nodes:[]};U=L(I),z.push(U),L({type:"open",value:J});continue}if(J===$z){if(U.type!=="brace"){L({type:"text",value:J});continue}let F="close";U=z.pop(),U.close=!0,L({type:F,value:J}),V--,U=z[z.length-1];continue}if(J===oX&&V>0){if(U.ranges>0){U.ranges=0;let F=U.nodes.shift();U.nodes=[F,{type:"text",value:nX(U)}]}L({type:"comma",value:J}),U.commas++;continue}if(J===tX&&V>0&&U.commas===0){let F=U.nodes;if(V===0||F.length===0){L({type:"text",value:J});continue}if(Q.type==="dot"){if(U.range=[],Q.value+=J,Q.type="range",U.nodes.length!==3&&U.nodes.length!==5){U.invalid=!0,U.ranges=0,Q.type="text";continue}U.ranges++,U.args=[];continue}if(Q.type==="range"){F.pop();let I=F[F.length-1];I.value+=Q.value+J,Q=I,U.ranges--;continue}L({type:"dot",value:J});continue}L({type:"text",value:J})}do if(U=z.pop(),U.type!=="root"){U.nodes.forEach((S)=>{if(!S.nodes){if(S.type==="open")S.isOpen=!0;if(S.type==="close")S.isClose=!0;if(!S.nodes)S.type="text";S.invalid=!0}});let F=z[z.length-1],I=F.nodes.indexOf(U);F.nodes.splice(I,1,...U.nodes)}while(z.length>0);return L({type:"eos"}),X};q3.exports=Qz});var z3=H((RT,X3)=>{var Z3=$_(),Yz=p4(),Bz=n4(),Jz=$3(),$1=(_,q={})=>{let $=[];if(Array.isArray(_))for(let Z of _){let X=$1.create(Z,q);if(Array.isArray(X))$.push(...X);else $.push(X)}else $=[].concat($1.create(_,q));if(q&&q.expand===!0&&q.nodupes===!0)$=[...new Set($)];return $};$1.parse=(_,q={})=>Jz(_,q);$1.stringify=(_,q={})=>{if(typeof _==="string")return Z3($1.parse(_,q),q);return Z3(_,q)};$1.compile=(_,q={})=>{if(typeof _==="string")_=$1.parse(_,q);return Yz(_,q)};$1.expand=(_,q={})=>{if(typeof _==="string")_=$1.parse(_,q);let $=Bz(_,q);if(q.noempty===!0)$=$.filter(Boolean);if(q.nodupes===!0)$=[...new Set($)];return $};$1.create=(_,q={})=>{if(_===""||_.length<3)return[_];return q.expand!==!0?$1.compile(_,q):$1.expand(_,q)};X3.exports=$1});var I0=H((PT,Q3)=>{var Wz=x("path"),U3={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},Vz={...U3,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},Fz={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Q3.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:Fz,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Wz.sep,extglobChars(_){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${_.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(_){return _===!0?Vz:U3}}});var T0=H((Kz)=>{var Gz=x("path"),Lz=process.platform==="win32",{REGEX_BACKSLASH:Mz,REGEX_REMOVE_BACKSLASH:Hz,REGEX_SPECIAL_CHARS:Iz,REGEX_SPECIAL_CHARS_GLOBAL:Tz}=I0();Kz.isObject=(_)=>_!==null&&typeof _==="object"&&!Array.isArray(_);Kz.hasRegexChars=(_)=>Iz.test(_);Kz.isRegexChar=(_)=>_.length===1&&Kz.hasRegexChars(_);Kz.escapeRegex=(_)=>_.replace(Tz,"\\$1");Kz.toPosixSlashes=(_)=>_.replace(Mz,"/");Kz.removeBackslashes=(_)=>{return _.replace(Hz,(q)=>{return q==="\\"?"":q})};Kz.supportsLookbehinds=()=>{let _=process.version.slice(1).split(".").map(Number);if(_.length===3&&_[0]>=9||_[0]===8&&_[1]>=10)return!0;return!1};Kz.isWindows=(_)=>{if(_&&typeof _.windows==="boolean")return _.windows;return Lz===!0||Gz.sep==="\\"};Kz.escapeLast=(_,q,$)=>{let Z=_.lastIndexOf(q,$);if(Z===-1)return _;if(_[Z-1]==="\\")return Kz.escapeLast(_,q,Z-1);return`${_.slice(0,Z)}\\${_.slice(Z)}`};Kz.removePrefix=(_,q={})=>{let $=_;if($.startsWith("./"))$=$.slice(2),q.prefix="./";return $};Kz.wrapOutput=(_,q={},$={})=>{let Z=$.contains?"":"^",X=$.contains?"":"$",z=`${Z}(?:${_})${X}`;if(q.negated===!0)z=`(?:^(?!${z}).*$)`;return z}});var H3=H((jT,M3)=>{var J3=T0(),{CHAR_ASTERISK:yq,CHAR_AT:fz,CHAR_BACKWARD_SLASH:K0,CHAR_COMMA:Ez,CHAR_DOT:hq,CHAR_EXCLAMATION_MARK:xq,CHAR_FORWARD_SLASH:L3,CHAR_LEFT_CURLY_BRACE:gq,CHAR_LEFT_PARENTHESES:kq,CHAR_LEFT_SQUARE_BRACKET:Cz,CHAR_PLUS:bz,CHAR_QUESTION_MARK:W3,CHAR_RIGHT_CURLY_BRACE:yz,CHAR_RIGHT_PARENTHESES:V3,CHAR_RIGHT_SQUARE_BRACKET:hz}=I0(),F3=(_)=>{return _===L3||_===K0},G3=(_)=>{if(_.isPrefix!==!0)_.depth=_.isGlobstar?1/0:1},xz=(_,q)=>{let $=q||{},Z=_.length-1,X=$.parts===!0||$.scanToEnd===!0,z=[],U=[],Q=[],Y=_,B=-1,W=0,V=0,J=!1,G=!1,L=!1,F=!1,I=!1,S=!1,j=!1,A=!1,E=!1,O=!1,w=0,C,M,f={value:"",depth:0,isGlob:!1},u=()=>B>=Z,D=()=>Y.charCodeAt(B+1),b=()=>{return C=M,Y.charCodeAt(++B)};while(B<Z){M=b();let a;if(M===K0){if(j=f.backslashes=!0,M=b(),M===gq)S=!0;continue}if(S===!0||M===gq){w++;while(u()!==!0&&(M=b())){if(M===K0){j=f.backslashes=!0,b();continue}if(M===gq){w++;continue}if(S!==!0&&M===hq&&(M=b())===hq){if(J=f.isBrace=!0,L=f.isGlob=!0,O=!0,X===!0)continue;break}if(S!==!0&&M===Ez){if(J=f.isBrace=!0,L=f.isGlob=!0,O=!0,X===!0)continue;break}if(M===yz){if(w--,w===0){S=!1,J=f.isBrace=!0,O=!0;break}}}if(X===!0)continue;break}if(M===L3){if(z.push(B),U.push(f),f={value:"",depth:0,isGlob:!1},O===!0)continue;if(C===hq&&B===W+1){W+=2;continue}V=B+1;continue}if($.noext!==!0){if((M===bz||M===fz||M===yq||M===W3||M===xq)===!0&&D()===kq){if(L=f.isGlob=!0,F=f.isExtglob=!0,O=!0,M===xq&&B===W)E=!0;if(X===!0){while(u()!==!0&&(M=b())){if(M===K0){j=f.backslashes=!0,M=b();continue}if(M===V3){L=f.isGlob=!0,O=!0;break}}continue}break}}if(M===yq){if(C===yq)I=f.isGlobstar=!0;if(L=f.isGlob=!0,O=!0,X===!0)continue;break}if(M===W3){if(L=f.isGlob=!0,O=!0,X===!0)continue;break}if(M===Cz){while(u()!==!0&&(a=b())){if(a===K0){j=f.backslashes=!0,b();continue}if(a===hz){G=f.isBracket=!0,L=f.isGlob=!0,O=!0;break}}if(X===!0)continue;break}if($.nonegate!==!0&&M===xq&&B===W){A=f.negated=!0,W++;continue}if($.noparen!==!0&&M===kq){if(L=f.isGlob=!0,X===!0){while(u()!==!0&&(M=b())){if(M===kq){j=f.backslashes=!0,M=b();continue}if(M===V3){O=!0;break}}continue}break}if(L===!0){if(O=!0,X===!0)continue;break}}if($.noext===!0)F=!1,L=!1;let m=Y,R1="",T="";if(W>0)R1=Y.slice(0,W),Y=Y.slice(W),V-=W;if(m&&L===!0&&V>0)m=Y.slice(0,V),T=Y.slice(V);else if(L===!0)m="",T=Y;else m=Y;if(m&&m!==""&&m!=="/"&&m!==Y){if(F3(m.charCodeAt(m.length-1)))m=m.slice(0,-1)}if($.unescape===!0){if(T)T=J3.removeBackslashes(T);if(m&&j===!0)m=J3.removeBackslashes(m)}let K={prefix:R1,input:_,start:W,base:m,glob:T,isBrace:J,isBracket:G,isGlob:L,isExtglob:F,isGlobstar:I,negated:A,negatedExtglob:E};if($.tokens===!0){if(K.maxDepth=0,!F3(M))U.push(f);K.tokens=U}if($.parts===!0||$.tokens===!0){let a;for(let v=0;v<z.length;v++){let G1=a?a+1:W,L1=z[v],q1=_.slice(G1,L1);if($.tokens){if(v===0&&W!==0)U[v].isPrefix=!0,U[v].value=R1;else U[v].value=q1;G3(U[v]),K.maxDepth+=U[v].depth}if(v!==0||q1!=="")Q.push(q1);a=L1}if(a&&a+1<_.length){let v=_.slice(a+1);if(Q.push(v),$.tokens)U[U.length-1].value=v,G3(U[U.length-1]),K.maxDepth+=U[U.length-1].depth}K.slashes=z,K.parts=Q}return K};M3.exports=xz});var K3=H((NT,T3)=>{var z_=I0(),Z1=T0(),{MAX_LENGTH:U_,POSIX_REGEX_SOURCE:gz,REGEX_NON_SPECIAL_CHARS:kz,REGEX_SPECIAL_CHARS_BACKREF:vz,REPLACEMENTS:I3}=z_,uz=(_,q)=>{if(typeof q.expandRange==="function")return q.expandRange(..._,q);_.sort();let $=`[${_.join("-")}]`;try{new RegExp($)}catch(Z){return _.map((X)=>Z1.escapeRegex(X)).join("..")}return $},t1=(_,q)=>{return`Missing ${_}: "${q}" - use "\\\\${q}" to match literal characters`},vq=(_,q)=>{if(typeof _!=="string")throw TypeError("Expected a string");_=I3[_]||_;let $={...q},Z=typeof $.maxLength==="number"?Math.min(U_,$.maxLength):U_,X=_.length;if(X>Z)throw SyntaxError(`Input length: ${X}, exceeds maximum allowed length: ${Z}`);let z={type:"bos",value:"",output:$.prepend||""},U=[z],Q=$.capture?"":"?:",Y=Z1.isWindows(q),B=z_.globChars(Y),W=z_.extglobChars(B),{DOT_LITERAL:V,PLUS_LITERAL:J,SLASH_LITERAL:G,ONE_CHAR:L,DOTS_SLASH:F,NO_DOT:I,NO_DOT_SLASH:S,NO_DOTS_SLASH:j,QMARK:A,QMARK_NO_DOT:E,STAR:O,START_ANCHOR:w}=B,C=(N)=>{return`(${Q}(?:(?!${w}${N.dot?F:V}).)*?)`},M=$.dot?"":I,f=$.dot?A:E,u=$.bash===!0?C($):O;if($.capture)u=`(${u})`;if(typeof $.noext==="boolean")$.noextglob=$.noext;let D={input:_,index:-1,start:0,dot:$.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:U};_=Z1.removePrefix(_,D),X=_.length;let b=[],m=[],R1=[],T=z,K,a=()=>D.index===X-1,v=D.peek=(N=1)=>_[D.index+N],G1=D.advance=()=>_[++D.index]||"",L1=()=>_.slice(D.index+1),q1=(N="",d=0)=>{D.consumed+=N,D.index+=d},s0=(N)=>{D.output+=N.output!=null?N.output:N.value,q1(N.value)},e5=()=>{let N=1;while(v()==="!"&&(v(2)!=="("||v(3)==="?"))G1(),D.start++,N++;if(N%2===0)return!1;return D.negated=!0,D.start++,!0},n0=(N)=>{D[N]++,R1.push(N)},x1=(N)=>{D[N]--,R1.pop()},h=(N)=>{if(T.type==="globstar"){let d=D.braces>0&&(N.type==="comma"||N.type==="brace"),R=N.extglob===!0||b.length&&(N.type==="pipe"||N.type==="paren");if(N.type!=="slash"&&N.type!=="paren"&&!d&&!R)D.output=D.output.slice(0,-T.output.length),T.type="star",T.value="*",T.output=u,D.output+=T.output}if(b.length&&N.type!=="paren")b[b.length-1].inner+=N.value;if(N.value||N.output)s0(N);if(T&&T.type==="text"&&N.type==="text"){T.value+=N.value,T.output=(T.output||"")+N.value;return}N.prev=T,U.push(N),T=N},a0=(N,d)=>{let R={...W[d],conditions:1,inner:""};R.prev=T,R.parens=D.parens,R.output=D.output;let y=($.capture?"(":"")+R.open;n0("parens"),h({type:N,value:d,output:D.output?"":L}),h({type:"paren",extglob:!0,value:G1(),output:y}),b.push(R)},_Z=(N)=>{let d=N.close+($.capture?")":""),R;if(N.type==="negate"){let y=u;if(N.inner&&N.inner.length>1&&N.inner.includes("/"))y=C($);if(y!==u||a()||/^\)+$/.test(L1()))d=N.close=`)$))${y}`;if(N.inner.includes("*")&&(R=L1())&&/^\.[^\\/.]+$/.test(R)){let c=vq(R,{...q,fastpaths:!1}).output;d=N.close=`)${c})${y})`}if(N.prev.type==="bos")D.negatedExtglob=!0}h({type:"paren",extglob:!0,value:K,output:d}),x1("parens")};if($.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(_)){let N=!1,d=_.replace(vz,(R,y,c,o,s,Mq)=>{if(o==="\\")return N=!0,R;if(o==="?"){if(y)return y+o+(s?A.repeat(s.length):"");if(Mq===0)return f+(s?A.repeat(s.length):"");return A.repeat(c.length)}if(o===".")return V.repeat(c.length);if(o==="*"){if(y)return y+o+(s?u:"");return u}return y?R:`\\${R}`});if(N===!0)if($.unescape===!0)d=d.replace(/\\/g,"");else d=d.replace(/\\+/g,(R)=>{return R.length%2===0?"\\\\":R?"\\":""});if(d===_&&$.contains===!0)return D.output=_,D;return D.output=Z1.wrapOutput(d,D,q),D}while(!a()){if(K=G1(),K==="\x00")continue;if(K==="\\"){let R=v();if(R==="/"&&$.bash!==!0)continue;if(R==="."||R===";")continue;if(!R){K+="\\",h({type:"text",value:K});continue}let y=/^\\+/.exec(L1()),c=0;if(y&&y[0].length>2){if(c=y[0].length,D.index+=c,c%2!==0)K+="\\"}if($.unescape===!0)K=G1();else K+=G1();if(D.brackets===0){h({type:"text",value:K});continue}}if(D.brackets>0&&(K!=="]"||T.value==="["||T.value==="[^")){if($.posix!==!1&&K===":"){let R=T.value.slice(1);if(R.includes("[")){if(T.posix=!0,R.includes(":")){let y=T.value.lastIndexOf("["),c=T.value.slice(0,y),o=T.value.slice(y+2),s=gz[o];if(s){if(T.value=c+s,D.backtrack=!0,G1(),!z.output&&U.indexOf(T)===1)z.output=L;continue}}}}if(K==="["&&v()!==":"||K==="-"&&v()==="]")K=`\\${K}`;if(K==="]"&&(T.value==="["||T.value==="[^"))K=`\\${K}`;if($.posix===!0&&K==="!"&&T.value==="[")K="^";T.value+=K,s0({value:K});continue}if(D.quotes===1&&K!=='"'){K=Z1.escapeRegex(K),T.value+=K,s0({value:K});continue}if(K==='"'){if(D.quotes=D.quotes===1?0:1,$.keepQuotes===!0)h({type:"text",value:K});continue}if(K==="("){n0("parens"),h({type:"paren",value:K});continue}if(K===")"){if(D.parens===0&&$.strictBrackets===!0)throw SyntaxError(t1("opening","("));let R=b[b.length-1];if(R&&D.parens===R.parens+1){_Z(b.pop());continue}h({type:"paren",value:K,output:D.parens?")":"\\)"}),x1("parens");continue}if(K==="["){if($.nobracket===!0||!L1().includes("]")){if($.nobracket!==!0&&$.strictBrackets===!0)throw SyntaxError(t1("closing","]"));K=`\\${K}`}else n0("brackets");h({type:"bracket",value:K});continue}if(K==="]"){if($.nobracket===!0||T&&T.type==="bracket"&&T.value.length===1){h({type:"text",value:K,output:`\\${K}`});continue}if(D.brackets===0){if($.strictBrackets===!0)throw SyntaxError(t1("opening","["));h({type:"text",value:K,output:`\\${K}`});continue}x1("brackets");let R=T.value.slice(1);if(T.posix!==!0&&R[0]==="^"&&!R.includes("/"))K=`/${K}`;if(T.value+=K,s0({value:K}),$.literalBrackets===!1||Z1.hasRegexChars(R))continue;let y=Z1.escapeRegex(T.value);if(D.output=D.output.slice(0,-T.value.length),$.literalBrackets===!0){D.output+=y,T.value=y;continue}T.value=`(${Q}${y}|${T.value})`,D.output+=T.value;continue}if(K==="{"&&$.nobrace!==!0){n0("braces");let R={type:"brace",value:K,output:"(",outputIndex:D.output.length,tokensIndex:D.tokens.length};m.push(R),h(R);continue}if(K==="}"){let R=m[m.length-1];if($.nobrace===!0||!R){h({type:"text",value:K,output:K});continue}let y=")";if(R.dots===!0){let c=U.slice(),o=[];for(let s=c.length-1;s>=0;s--){if(U.pop(),c[s].type==="brace")break;if(c[s].type!=="dots")o.unshift(c[s].value)}y=uz(o,$),D.backtrack=!0}if(R.comma!==!0&&R.dots!==!0){let c=D.output.slice(0,R.outputIndex),o=D.tokens.slice(R.tokensIndex);R.value=R.output="\\{",K=y="\\}",D.output=c;for(let s of o)D.output+=s.output||s.value}h({type:"brace",value:K,output:y}),x1("braces"),m.pop();continue}if(K==="|"){if(b.length>0)b[b.length-1].conditions++;h({type:"text",value:K});continue}if(K===","){let R=K,y=m[m.length-1];if(y&&R1[R1.length-1]==="braces")y.comma=!0,R="|";h({type:"comma",value:K,output:R});continue}if(K==="/"){if(T.type==="dot"&&D.index===D.start+1){D.start=D.index+1,D.consumed="",D.output="",U.pop(),T=z;continue}h({type:"slash",value:K,output:G});continue}if(K==="."){if(D.braces>0&&T.type==="dot"){if(T.value===".")T.output=V;let R=m[m.length-1];T.type="dots",T.output+=K,T.value+=K,R.dots=!0;continue}if(D.braces+D.parens===0&&T.type!=="bos"&&T.type!=="slash"){h({type:"text",value:K,output:V});continue}h({type:"dot",value:K,output:V});continue}if(K==="?"){if(!(T&&T.value==="(")&&$.noextglob!==!0&&v()==="("&&v(2)!=="?"){a0("qmark",K);continue}if(T&&T.type==="paren"){let y=v(),c=K;if(y==="<"&&!Z1.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(T.value==="("&&!/[!=<:]/.test(y)||y==="<"&&!/<([!=]|\w+>)/.test(L1()))c=`\\${K}`;h({type:"text",value:K,output:c});continue}if($.dot!==!0&&(T.type==="slash"||T.type==="bos")){h({type:"qmark",value:K,output:E});continue}h({type:"qmark",value:K,output:A});continue}if(K==="!"){if($.noextglob!==!0&&v()==="("){if(v(2)!=="?"||!/[!=<:]/.test(v(3))){a0("negate",K);continue}}if($.nonegate!==!0&&D.index===0){e5();continue}}if(K==="+"){if($.noextglob!==!0&&v()==="("&&v(2)!=="?"){a0("plus",K);continue}if(T&&T.value==="("||$.regex===!1){h({type:"plus",value:K,output:J});continue}if(T&&(T.type==="bracket"||T.type==="paren"||T.type==="brace")||D.parens>0){h({type:"plus",value:K});continue}h({type:"plus",value:J});continue}if(K==="@"){if($.noextglob!==!0&&v()==="("&&v(2)!=="?"){h({type:"at",extglob:!0,value:K,output:""});continue}h({type:"text",value:K});continue}if(K!=="*"){if(K==="$"||K==="^")K=`\\${K}`;let R=kz.exec(L1());if(R)K+=R[0],D.index+=R[0].length;h({type:"text",value:K});continue}if(T&&(T.type==="globstar"||T.star===!0)){T.type="star",T.star=!0,T.value+=K,T.output=u,D.backtrack=!0,D.globstar=!0,q1(K);continue}let N=L1();if($.noextglob!==!0&&/^\([^?]/.test(N)){a0("star",K);continue}if(T.type==="star"){if($.noglobstar===!0){q1(K);continue}let R=T.prev,y=R.prev,c=R.type==="slash"||R.type==="bos",o=y&&(y.type==="star"||y.type==="globstar");if($.bash===!0&&(!c||N[0]&&N[0]!=="/")){h({type:"star",value:K,output:""});continue}let s=D.braces>0&&(R.type==="comma"||R.type==="brace"),Mq=b.length&&(R.type==="pipe"||R.type==="paren");if(!c&&R.type!=="paren"&&!s&&!Mq){h({type:"star",value:K,output:""});continue}while(N.slice(0,3)==="/**"){let o0=_[D.index+4];if(o0&&o0!=="/")break;N=N.slice(3),q1("/**",3)}if(R.type==="bos"&&a()){T.type="globstar",T.value+=K,T.output=C($),D.output=T.output,D.globstar=!0,q1(K);continue}if(R.type==="slash"&&R.prev.type!=="bos"&&!o&&a()){D.output=D.output.slice(0,-(R.output+T.output).length),R.output=`(?:${R.output}`,T.type="globstar",T.output=C($)+($.strictSlashes?")":"|$)"),T.value+=K,D.globstar=!0,D.output+=R.output+T.output,q1(K);continue}if(R.type==="slash"&&R.prev.type!=="bos"&&N[0]==="/"){let o0=N[1]!==void 0?"|$":"";D.output=D.output.slice(0,-(R.output+T.output).length),R.output=`(?:${R.output}`,T.type="globstar",T.output=`${C($)}${G}|${G}${o0})`,T.value+=K,D.output+=R.output+T.output,D.globstar=!0,q1(K+G1()),h({type:"slash",value:"/",output:""});continue}if(R.type==="bos"&&N[0]==="/"){T.type="globstar",T.value+=K,T.output=`(?:^|${G}|${C($)}${G})`,D.output=T.output,D.globstar=!0,q1(K+G1()),h({type:"slash",value:"/",output:""});continue}D.output=D.output.slice(0,-T.output.length),T.type="globstar",T.output=C($),T.value+=K,D.output+=T.output,D.globstar=!0,q1(K);continue}let d={type:"star",value:K,output:u};if($.bash===!0){if(d.output=".*?",T.type==="bos"||T.type==="slash")d.output=M+d.output;h(d);continue}if(T&&(T.type==="bracket"||T.type==="paren")&&$.regex===!0){d.output=K,h(d);continue}if(D.index===D.start||T.type==="slash"||T.type==="dot"){if(T.type==="dot")D.output+=S,T.output+=S;else if($.dot===!0)D.output+=j,T.output+=j;else D.output+=M,T.output+=M;if(v()!=="*")D.output+=L,T.output+=L}h(d)}while(D.brackets>0){if($.strictBrackets===!0)throw SyntaxError(t1("closing","]"));D.output=Z1.escapeLast(D.output,"["),x1("brackets")}while(D.parens>0){if($.strictBrackets===!0)throw SyntaxError(t1("closing",")"));D.output=Z1.escapeLast(D.output,"("),x1("parens")}while(D.braces>0){if($.strictBrackets===!0)throw SyntaxError(t1("closing","}"));D.output=Z1.escapeLast(D.output,"{"),x1("braces")}if($.strictSlashes!==!0&&(T.type==="star"||T.type==="bracket"))h({type:"maybe_slash",value:"",output:`${G}?`});if(D.backtrack===!0){D.output="";for(let N of D.tokens)if(D.output+=N.output!=null?N.output:N.value,N.suffix)D.output+=N.suffix}return D};vq.fastpaths=(_,q)=>{let $={...q},Z=typeof $.maxLength==="number"?Math.min(U_,$.maxLength):U_,X=_.length;if(X>Z)throw SyntaxError(`Input length: ${X}, exceeds maximum allowed length: ${Z}`);_=I3[_]||_;let z=Z1.isWindows(q),{DOT_LITERAL:U,SLASH_LITERAL:Q,ONE_CHAR:Y,DOTS_SLASH:B,NO_DOT:W,NO_DOTS:V,NO_DOTS_SLASH:J,STAR:G,START_ANCHOR:L}=z_.globChars(z),F=$.dot?V:W,I=$.dot?J:W,S=$.capture?"":"?:",j={negated:!1,prefix:""},A=$.bash===!0?".*?":G;if($.capture)A=`(${A})`;let E=(M)=>{if(M.noglobstar===!0)return A;return`(${S}(?:(?!${L}${M.dot?B:U}).)*?)`},O=(M)=>{switch(M){case"*":return`${F}${Y}${A}`;case".*":return`${U}${Y}${A}`;case"*.*":return`${F}${A}${U}${Y}${A}`;case"*/*":return`${F}${A}${Q}${Y}${I}${A}`;case"**":return F+E($);case"**/*":return`(?:${F}${E($)}${Q})?${I}${Y}${A}`;case"**/*.*":return`(?:${F}${E($)}${Q})?${I}${A}${U}${Y}${A}`;case"**/.*":return`(?:${F}${E($)}${Q})?${U}${Y}${A}`;default:{let f=/^(.*?)\.(\w+)$/.exec(M);if(!f)return;let u=O(f[1]);if(!u)return;return u+U+f[2]}}},w=Z1.removePrefix(_,j),C=O(w);if(C&&$.strictSlashes!==!0)C+=`${Q}?`;return C};T3.exports=vq});var S3=H((OT,D3)=>{var mz=x("path"),dz=H3(),uq=K3(),mq=T0(),lz=I0(),iz=(_)=>_&&typeof _==="object"&&!Array.isArray(_),p=(_,q,$=!1)=>{if(Array.isArray(_)){let W=_.map((J)=>p(J,q,$));return(J)=>{for(let G of W){let L=G(J);if(L)return L}return!1}}let Z=iz(_)&&_.tokens&&_.input;if(_===""||typeof _!=="string"&&!Z)throw TypeError("Expected pattern to be a non-empty string");let X=q||{},z=mq.isWindows(q),U=Z?p.compileRe(_,q):p.makeRe(_,q,!1,!0),Q=U.state;delete U.state;let Y=()=>!1;if(X.ignore){let W={...q,ignore:null,onMatch:null,onResult:null};Y=p(X.ignore,W,$)}let B=(W,V=!1)=>{let{isMatch:J,match:G,output:L}=p.test(W,U,q,{glob:_,posix:z}),F={glob:_,state:Q,regex:U,posix:z,input:W,output:L,match:G,isMatch:J};if(typeof X.onResult==="function")X.onResult(F);if(J===!1)return F.isMatch=!1,V?F:!1;if(Y(W)){if(typeof X.onIgnore==="function")X.onIgnore(F);return F.isMatch=!1,V?F:!1}if(typeof X.onMatch==="function")X.onMatch(F);return V?F:!0};if($)B.state=Q;return B};p.test=(_,q,$,{glob:Z,posix:X}={})=>{if(typeof _!=="string")throw TypeError("Expected input to be a string");if(_==="")return{isMatch:!1,output:""};let z=$||{},U=z.format||(X?mq.toPosixSlashes:null),Q=_===Z,Y=Q&&U?U(_):_;if(Q===!1)Y=U?U(_):_,Q=Y===Z;if(Q===!1||z.capture===!0)if(z.matchBase===!0||z.basename===!0)Q=p.matchBase(_,q,$,X);else Q=q.exec(Y);return{isMatch:Boolean(Q),match:Q,output:Y}};p.matchBase=(_,q,$,Z=mq.isWindows($))=>{return(q instanceof RegExp?q:p.makeRe(q,$)).test(mz.basename(_))};p.isMatch=(_,q,$)=>p(q,$)(_);p.parse=(_,q)=>{if(Array.isArray(_))return _.map(($)=>p.parse($,q));return uq(_,{...q,fastpaths:!1})};p.scan=(_,q)=>dz(_,q);p.compileRe=(_,q,$=!1,Z=!1)=>{if($===!0)return _.output;let X=q||{},z=X.contains?"":"^",U=X.contains?"":"$",Q=`${z}(?:${_.output})${U}`;if(_&&_.negated===!0)Q=`^(?!${Q}).*$`;let Y=p.toRegex(Q,q);if(Z===!0)Y.state=_;return Y};p.makeRe=(_,q={},$=!1,Z=!1)=>{if(!_||typeof _!=="string")throw TypeError("Expected a non-empty string");let X={negated:!1,fastpaths:!0};if(q.fastpaths!==!1&&(_[0]==="."||_[0]==="*"))X.output=uq.fastpaths(_,q);if(!X.output)X=uq(_,q);return p.compileRe(X,q,$,Z)};p.toRegex=(_,q)=>{try{let $=q||{};return new RegExp(_,$.flags||($.nocase?"i":""))}catch($){if(q&&q.debug===!0)throw $;return/$^/}};p.constants=lz;D3.exports=p});var N3=H((fT,j3)=>{var R3=x("util"),P3=z3(),M1=S3(),dq=T0(),w3=(_)=>_===""||_==="./",A3=(_)=>{let q=_.indexOf("{");return q>-1&&_.indexOf("}",q)>-1},l=(_,q,$)=>{q=[].concat(q),_=[].concat(_);let Z=new Set,X=new Set,z=new Set,U=0,Q=(W)=>{if(z.add(W.output),$&&$.onResult)$.onResult(W)};for(let W=0;W<q.length;W++){let V=M1(String(q[W]),{...$,onResult:Q},!0),J=V.state.negated||V.state.negatedExtglob;if(J)U++;for(let G of _){let L=V(G,!0);if(!(J?!L.isMatch:L.isMatch))continue;if(J)Z.add(L.output);else Z.delete(L.output),X.add(L.output)}}let B=(U===q.length?[...z]:[...X]).filter((W)=>!Z.has(W));if($&&B.length===0){if($.failglob===!0)throw Error(`No matches found for "${q.join(", ")}"`);if($.nonull===!0||$.nullglob===!0)return $.unescape?q.map((W)=>W.replace(/\\/g,"")):q}return B};l.match=l;l.matcher=(_,q)=>M1(_,q);l.isMatch=(_,q,$)=>M1(q,$)(_);l.any=l.isMatch;l.not=(_,q,$={})=>{q=[].concat(q).map(String);let Z=new Set,X=[],U=new Set(l(_,q,{...$,onResult:(Q)=>{if($.onResult)$.onResult(Q);X.push(Q.output)}}));for(let Q of X)if(!U.has(Q))Z.add(Q);return[...Z]};l.contains=(_,q,$)=>{if(typeof _!=="string")throw TypeError(`Expected a string: "${R3.inspect(_)}"`);if(Array.isArray(q))return q.some((Z)=>l.contains(_,Z,$));if(typeof q==="string"){if(w3(_)||w3(q))return!1;if(_.includes(q)||_.startsWith("./")&&_.slice(2).includes(q))return!0}return l.isMatch(_,q,{...$,contains:!0})};l.matchKeys=(_,q,$)=>{if(!dq.isObject(_))throw TypeError("Expected the first argument to be an object");let Z=l(Object.keys(_),q,$),X={};for(let z of Z)X[z]=_[z];return X};l.some=(_,q,$)=>{let Z=[].concat(_);for(let X of[].concat(q)){let z=M1(String(X),$);if(Z.some((U)=>z(U)))return!0}return!1};l.every=(_,q,$)=>{let Z=[].concat(_);for(let X of[].concat(q)){let z=M1(String(X),$);if(!Z.every((U)=>z(U)))return!1}return!0};l.all=(_,q,$)=>{if(typeof _!=="string")throw TypeError(`Expected a string: "${R3.inspect(_)}"`);return[].concat(q).every((Z)=>M1(Z,$)(_))};l.capture=(_,q,$)=>{let Z=dq.isWindows($),z=M1.makeRe(String(_),{...$,capture:!0}).exec(Z?dq.toPosixSlashes(q):q);if(z)return z.slice(1).map((U)=>U===void 0?"":U)};l.makeRe=(..._)=>M1.makeRe(..._);l.scan=(..._)=>M1.scan(..._);l.parse=(_,q)=>{let $=[];for(let Z of[].concat(_||[]))for(let X of P3(String(Z),q))$.push(M1.parse(X,q));return $};l.braces=(_,q)=>{if(typeof _!=="string")throw TypeError("Expected a string");if(q&&q.nobrace===!0||!A3(_))return[_];return P3(_,q)};l.braceExpand=(_,q)=>{if(typeof _!=="string")throw TypeError("Expected a string");return l.braces(_,{...q,expand:!0})};l.hasBraces=A3;j3.exports=l});var u3=H((k3)=>{Object.defineProperty(k3,"__esModule",{value:!0});k3.isAbsolute=k3.partitionAbsoluteAndRelative=k3.removeDuplicateSlashes=k3.matchAny=k3.convertPatternsToRe=k3.makeRe=k3.getPatternParts=k3.expandBraceExpansion=k3.expandPatternsWithBraceExpansion=k3.isAffectDepthOfReadingPattern=k3.endsWithSlashGlobStar=k3.hasGlobStar=k3.getBaseDirectory=k3.isPatternRelatedToParentDirectory=k3.getPatternsOutsideCurrentDirectory=k3.getPatternsInsideCurrentDirectory=k3.getPositivePatterns=k3.getNegativePatterns=k3.isPositivePattern=k3.isNegativePattern=k3.convertToNegativePattern=k3.convertToPositivePattern=k3.isDynamicPattern=k3.isStaticPattern=void 0;var O3=x("path"),cz=w4(),lq=N3(),f3="**",pz="\\",rz=/[*?]|^!/,sz=/\[[^[]*]/,nz=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,az=/[!*+?@]\([^(]*\)/,oz=/,|\.\./,tz=/(?!^)\/{2,}/g;function E3(_,q={}){return!C3(_,q)}k3.isStaticPattern=E3;function C3(_,q={}){if(_==="")return!1;if(q.caseSensitiveMatch===!1||_.includes(pz))return!0;if(rz.test(_)||sz.test(_)||nz.test(_))return!0;if(q.extglob!==!1&&az.test(_))return!0;if(q.braceExpansion!==!1&&ez(_))return!0;return!1}k3.isDynamicPattern=C3;function ez(_){let q=_.indexOf("{");if(q===-1)return!1;let $=_.indexOf("}",q+1);if($===-1)return!1;let Z=_.slice(q,$);return oz.test(Z)}function _U(_){return Q_(_)?_.slice(1):_}k3.convertToPositivePattern=_U;function qU(_){return"!"+_}k3.convertToNegativePattern=qU;function Q_(_){return _.startsWith("!")&&_[1]!=="("}k3.isNegativePattern=Q_;function b3(_){return!Q_(_)}k3.isPositivePattern=b3;function $U(_){return _.filter(Q_)}k3.getNegativePatterns=$U;function ZU(_){return _.filter(b3)}k3.getPositivePatterns=ZU;function XU(_){return _.filter((q)=>!iq(q))}k3.getPatternsInsideCurrentDirectory=XU;function zU(_){return _.filter(iq)}k3.getPatternsOutsideCurrentDirectory=zU;function iq(_){return _.startsWith("..")||_.startsWith("./..")}k3.isPatternRelatedToParentDirectory=iq;function UU(_){return cz(_,{flipBackslashes:!1})}k3.getBaseDirectory=UU;function QU(_){return _.includes(f3)}k3.hasGlobStar=QU;function y3(_){return _.endsWith("/"+f3)}k3.endsWithSlashGlobStar=y3;function YU(_){let q=O3.basename(_);return y3(_)||E3(q)}k3.isAffectDepthOfReadingPattern=YU;function BU(_){return _.reduce((q,$)=>{return q.concat(h3($))},[])}k3.expandPatternsWithBraceExpansion=BU;function h3(_){let q=lq.braces(_,{expand:!0,nodupes:!0,keepEscaping:!0});return q.sort(($,Z)=>$.length-Z.length),q.filter(($)=>$!=="")}k3.expandBraceExpansion=h3;function JU(_,q){let{parts:$}=lq.scan(_,Object.assign(Object.assign({},q),{parts:!0}));if($.length===0)$=[_];if($[0].startsWith("/"))$[0]=$[0].slice(1),$.unshift("");return $}k3.getPatternParts=JU;function x3(_,q){return lq.makeRe(_,q)}k3.makeRe=x3;function WU(_,q){return _.map(($)=>x3($,q))}k3.convertPatternsToRe=WU;function VU(_,q){return q.some(($)=>$.test(_))}k3.matchAny=VU;function FU(_){return _.replace(tz,"/")}k3.removeDuplicateSlashes=FU;function GU(_){let q=[],$=[];for(let Z of _)if(g3(Z))q.push(Z);else $.push(Z);return[q,$]}k3.partitionAbsoluteAndRelative=GU;function g3(_){return O3.isAbsolute(_)}k3.isAbsolute=g3});var i3=H((CT,l3)=>{var kU=x("stream"),m3=kU.PassThrough,vU=Array.prototype.slice;l3.exports=uU;function uU(){let _=[],q=vU.call(arguments),$=!1,Z=q[q.length-1];if(Z&&!Array.isArray(Z)&&Z.pipe==null)q.pop();else Z={};let X=Z.end!==!1,z=Z.pipeError===!0;if(Z.objectMode==null)Z.objectMode=!0;if(Z.highWaterMark==null)Z.highWaterMark=65536;let U=m3(Z);function Q(){for(let W=0,V=arguments.length;W<V;W++)_.push(d3(arguments[W],Z));return Y(),this}function Y(){if($)return;$=!0;let W=_.shift();if(!W){process.nextTick(B);return}if(!Array.isArray(W))W=[W];let V=W.length+1;function J(){if(--V>0)return;$=!1,Y()}function G(L){function F(){if(L.removeListener("merge2UnpipeEnd",F),L.removeListener("end",F),z)L.removeListener("error",I);J()}function I(S){U.emit("error",S)}if(L._readableState.endEmitted)return J();if(L.on("merge2UnpipeEnd",F),L.on("end",F),z)L.on("error",I);L.pipe(U,{end:!1}),L.resume()}for(let L=0;L<W.length;L++)G(W[L]);J()}function B(){if($=!1,U.emit("queueDrain"),X)U.end()}if(U.setMaxListeners(0),U.add=Q,U.on("unpipe",function(W){W.emit("merge2UnpipeEnd")}),q.length)Q.apply(null,q);return U}function d3(_,q){if(!Array.isArray(_)){if(!_._readableState&&_.pipe)_=_.pipe(m3(q));if(!_._readableState||!_.pause||!_.pipe)throw Error("Only readable stream can be merged.");_.pause()}else for(let $=0,Z=_.length;$<Z;$++)_[$]=d3(_[$],q);return _}});var s3=H((p3)=>{Object.defineProperty(p3,"__esModule",{value:!0});p3.merge=void 0;var mU=i3();function dU(_){let q=mU(_);return _.forEach(($)=>{$.once("error",(Z)=>q.emit("error",Z))}),q.once("close",()=>c3(_)),q.once("end",()=>c3(_)),q}p3.merge=dU;function c3(_){_.forEach((q)=>q.emit("close"))}});var o3=H((n3)=>{Object.defineProperty(n3,"__esModule",{value:!0});n3.isEmpty=n3.isString=void 0;function lU(_){return typeof _==="string"}n3.isString=lU;function iU(_){return _===""}n3.isEmpty=iU});var K1=H((t3)=>{Object.defineProperty(t3,"__esModule",{value:!0});t3.string=t3.stream=t3.pattern=t3.path=t3.fs=t3.errno=t3.array=void 0;var pU=Z4();t3.array=pU;var rU=U4();t3.errno=rU;var sU=J4();t3.fs=sU;var nU=M4();t3.path=nU;var aU=u3();t3.pattern=aU;var oU=s3();t3.stream=oU;var tU=o3();t3.string=tU});var z6=H((Z6)=>{Object.defineProperty(Z6,"__esModule",{value:!0});Z6.convertPatternGroupToTask=Z6.convertPatternGroupsToTasks=Z6.groupPatternsByBaseDirectory=Z6.getNegativePatternsAsPositive=Z6.getPositivePatterns=Z6.convertPatternsToTasks=Z6.generate=void 0;var B1=K1();function zQ(_,q){let $=_6(_,q),Z=_6(q.ignore,q),X=q6($),z=$6($,Z),U=X.filter((W)=>B1.pattern.isStaticPattern(W,q)),Q=X.filter((W)=>B1.pattern.isDynamicPattern(W,q)),Y=cq(U,z,!1),B=cq(Q,z,!0);return Y.concat(B)}Z6.generate=zQ;function _6(_,q){let $=_;if(q.braceExpansion)$=B1.pattern.expandPatternsWithBraceExpansion($);if(q.baseNameMatch)$=$.map((Z)=>Z.includes("/")?Z:`**/${Z}`);return $.map((Z)=>B1.pattern.removeDuplicateSlashes(Z))}function cq(_,q,$){let Z=[],X=B1.pattern.getPatternsOutsideCurrentDirectory(_),z=B1.pattern.getPatternsInsideCurrentDirectory(_),U=pq(X),Q=pq(z);if(Z.push(...rq(U,q,$)),"."in Q)Z.push(sq(".",z,q,$));else Z.push(...rq(Q,q,$));return Z}Z6.convertPatternsToTasks=cq;function q6(_){return B1.pattern.getPositivePatterns(_)}Z6.getPositivePatterns=q6;function $6(_,q){return B1.pattern.getNegativePatterns(_).concat(q).map(B1.pattern.convertToPositivePattern)}Z6.getNegativePatternsAsPositive=$6;function pq(_){let q={};return _.reduce(($,Z)=>{let X=B1.pattern.getBaseDirectory(Z);if(X in $)$[X].push(Z);else $[X]=[Z];return $},q)}Z6.groupPatternsByBaseDirectory=pq;function rq(_,q,$){return Object.keys(_).map((Z)=>{return sq(Z,_[Z],q,$)})}Z6.convertPatternGroupsToTasks=rq;function sq(_,q,$,Z){return{dynamic:Z,positive:q,negative:$,base:_,patterns:[].concat(q,$.map(B1.pattern.convertToNegativePattern))}}Z6.convertPatternGroupToTask=sq});var B6=H((Q6)=>{Object.defineProperty(Q6,"__esModule",{value:!0});Q6.read=void 0;function VQ(_,q,$){q.fs.lstat(_,(Z,X)=>{if(Z!==null){U6($,Z);return}if(!X.isSymbolicLink()||!q.followSymbolicLink){nq($,X);return}q.fs.stat(_,(z,U)=>{if(z!==null){if(q.throwErrorOnBrokenSymbolicLink){U6($,z);return}nq($,X);return}if(q.markSymbolicLink)U.isSymbolicLink=()=>!0;nq($,U)})})}Q6.read=VQ;function U6(_,q){_(q)}function nq(_,q){_(null,q)}});var V6=H((J6)=>{Object.defineProperty(J6,"__esModule",{value:!0});J6.read=void 0;function FQ(_,q){let $=q.fs.lstatSync(_);if(!$.isSymbolicLink()||!q.followSymbolicLink)return $;try{let Z=q.fs.statSync(_);if(q.markSymbolicLink)Z.isSymbolicLink=()=>!0;return Z}catch(Z){if(!q.throwErrorOnBrokenSymbolicLink)return $;throw Z}}J6.read=FQ});var L6=H((F6)=>{Object.defineProperty(F6,"__esModule",{value:!0});F6.createFileSystemAdapter=F6.FILE_SYSTEM_ADAPTER=void 0;var Y_=x("fs");F6.FILE_SYSTEM_ADAPTER={lstat:Y_.lstat,stat:Y_.stat,lstatSync:Y_.lstatSync,statSync:Y_.statSync};function GQ(_){if(_===void 0)return F6.FILE_SYSTEM_ADAPTER;return Object.assign(Object.assign({},F6.FILE_SYSTEM_ADAPTER),_)}F6.createFileSystemAdapter=GQ});var I6=H((H6)=>{Object.defineProperty(H6,"__esModule",{value:!0});var LQ=L6();class M6{constructor(_={}){this._options=_,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=LQ.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(_,q){return _!==null&&_!==void 0?_:q}}H6.default=M6});var v1=H((K6)=>{Object.defineProperty(K6,"__esModule",{value:!0});K6.statSync=K6.stat=K6.Settings=void 0;var T6=B6(),HQ=V6(),oq=I6();K6.Settings=oq.default;function IQ(_,q,$){if(typeof q==="function"){T6.read(_,tq(),q);return}T6.read(_,tq(q),$)}K6.stat=IQ;function TQ(_,q){let $=tq(q);return HQ.read(_,$)}K6.statSync=TQ;function tq(_={}){if(_ instanceof oq.default)return _;return new oq.default(_)}});var R6=H((dT,w6)=>{/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var S6;w6.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window<"u"?window:global):(_)=>(S6||(S6=Promise.resolve())).then(_).catch((q)=>setTimeout(()=>{throw q},0))});var A6=H((lT,P6)=>{/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */P6.exports=wQ;var SQ=R6();function wQ(_,q){let $,Z,X,z=!0;if(Array.isArray(_))$=[],Z=_.length;else X=Object.keys(_),$={},Z=X.length;function U(Y){function B(){if(q)q(Y,$);q=null}if(z)SQ(B);else B()}function Q(Y,B,W){if($[Y]=W,--Z===0||B)U(B)}if(!Z)U(null);else if(X)X.forEach(function(Y){_[Y](function(B,W){Q(Y,B,W)})});else _.forEach(function(Y,B){Y(function(W,V){Q(B,W,V)})});z=!1}});var eq=H((O6)=>{Object.defineProperty(O6,"__esModule",{value:!0});O6.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var B_=process.versions.node.split(".");if(B_[0]===void 0||B_[1]===void 0)throw Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var j6=Number.parseInt(B_[0],10),RQ=Number.parseInt(B_[1],10),N6=10,PQ=10,AQ=j6>N6,jQ=j6===N6&&RQ>=PQ;O6.IS_SUPPORT_READDIR_WITH_FILE_TYPES=AQ||jQ});var y6=H((C6)=>{Object.defineProperty(C6,"__esModule",{value:!0});C6.createDirentFromStats=void 0;class E6{constructor(_,q){this.name=_,this.isBlockDevice=q.isBlockDevice.bind(q),this.isCharacterDevice=q.isCharacterDevice.bind(q),this.isDirectory=q.isDirectory.bind(q),this.isFIFO=q.isFIFO.bind(q),this.isFile=q.isFile.bind(q),this.isSocket=q.isSocket.bind(q),this.isSymbolicLink=q.isSymbolicLink.bind(q)}}function NQ(_,q){return new E6(_,q)}C6.createDirentFromStats=NQ});var _9=H((h6)=>{Object.defineProperty(h6,"__esModule",{value:!0});h6.fs=void 0;var OQ=y6();h6.fs=OQ});var q9=H((g6)=>{Object.defineProperty(g6,"__esModule",{value:!0});g6.joinPathSegments=void 0;function fQ(_,q,$){if(_.endsWith($))return _+q;return _+$+q}g6.joinPathSegments=fQ});var p6=H((i6)=>{Object.defineProperty(i6,"__esModule",{value:!0});i6.readdir=i6.readdirWithFileTypes=i6.read=void 0;var EQ=v1(),v6=A6(),CQ=eq(),u6=_9(),m6=q9();function bQ(_,q,$){if(!q.stats&&CQ.IS_SUPPORT_READDIR_WITH_FILE_TYPES){d6(_,q,$);return}l6(_,q,$)}i6.read=bQ;function d6(_,q,$){q.fs.readdir(_,{withFileTypes:!0},(Z,X)=>{if(Z!==null){J_($,Z);return}let z=X.map((Q)=>({dirent:Q,name:Q.name,path:m6.joinPathSegments(_,Q.name,q.pathSegmentSeparator)}));if(!q.followSymbolicLinks){$9($,z);return}let U=z.map((Q)=>yQ(Q,q));v6(U,(Q,Y)=>{if(Q!==null){J_($,Q);return}$9($,Y)})})}i6.readdirWithFileTypes=d6;function yQ(_,q){return($)=>{if(!_.dirent.isSymbolicLink()){$(null,_);return}q.fs.stat(_.path,(Z,X)=>{if(Z!==null){if(q.throwErrorOnBrokenSymbolicLink){$(Z);return}$(null,_);return}_.dirent=u6.fs.createDirentFromStats(_.name,X),$(null,_)})}}function l6(_,q,$){q.fs.readdir(_,(Z,X)=>{if(Z!==null){J_($,Z);return}let z=X.map((U)=>{let Q=m6.joinPathSegments(_,U,q.pathSegmentSeparator);return(Y)=>{EQ.stat(Q,q.fsStatSettings,(B,W)=>{if(B!==null){Y(B);return}let V={name:U,path:Q,dirent:u6.fs.createDirentFromStats(U,W)};if(q.stats)V.stats=W;Y(null,V)})}});v6(z,(U,Q)=>{if(U!==null){J_($,U);return}$9($,Q)})})}i6.readdir=l6;function J_(_,q){_(q)}function $9(_,q){_(null,q)}});var e6=H((o6)=>{Object.defineProperty(o6,"__esModule",{value:!0});o6.readdir=o6.readdirWithFileTypes=o6.read=void 0;var gQ=v1(),kQ=eq(),r6=_9(),s6=q9();function vQ(_,q){if(!q.stats&&kQ.IS_SUPPORT_READDIR_WITH_FILE_TYPES)return n6(_,q);return a6(_,q)}o6.read=vQ;function n6(_,q){return q.fs.readdirSync(_,{withFileTypes:!0}).map((Z)=>{let X={dirent:Z,name:Z.name,path:s6.joinPathSegments(_,Z.name,q.pathSegmentSeparator)};if(X.dirent.isSymbolicLink()&&q.followSymbolicLinks)try{let z=q.fs.statSync(X.path);X.dirent=r6.fs.createDirentFromStats(X.name,z)}catch(z){if(q.throwErrorOnBrokenSymbolicLink)throw z}return X})}o6.readdirWithFileTypes=n6;function a6(_,q){return q.fs.readdirSync(_).map((Z)=>{let X=s6.joinPathSegments(_,Z,q.pathSegmentSeparator),z=gQ.statSync(X,q.fsStatSettings),U={name:Z,path:X,dirent:r6.fs.createDirentFromStats(Z,z)};if(q.stats)U.stats=z;return U})}o6.readdir=a6});var $2=H((_2)=>{Object.defineProperty(_2,"__esModule",{value:!0});_2.createFileSystemAdapter=_2.FILE_SYSTEM_ADAPTER=void 0;var e1=x("fs");_2.FILE_SYSTEM_ADAPTER={lstat:e1.lstat,stat:e1.stat,lstatSync:e1.lstatSync,statSync:e1.statSync,readdir:e1.readdir,readdirSync:e1.readdirSync};function dQ(_){if(_===void 0)return _2.FILE_SYSTEM_ADAPTER;return Object.assign(Object.assign({},_2.FILE_SYSTEM_ADAPTER),_)}_2.createFileSystemAdapter=dQ});var z2=H((X2)=>{Object.defineProperty(X2,"__esModule",{value:!0});var lQ=x("path"),iQ=v1(),cQ=$2();class Z2{constructor(_={}){this._options=_,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=cQ.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,lQ.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new iQ.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(_,q){return _!==null&&_!==void 0?_:q}}X2.default=Z2});var W_=H((Q2)=>{Object.defineProperty(Q2,"__esModule",{value:!0});Q2.Settings=Q2.scandirSync=Q2.scandir=void 0;var U2=p6(),rQ=e6(),X9=z2();Q2.Settings=X9.default;function sQ(_,q,$){if(typeof q==="function"){U2.read(_,z9(),q);return}U2.read(_,z9(q),$)}Q2.scandir=sQ;function nQ(_,q){let $=z9(q);return rQ.read(_,$)}Q2.scandirSync=nQ;function z9(_={}){if(_ instanceof X9.default)return _;return new X9.default(_)}});var J2=H((eT,B2)=>{function tQ(_){var q=new _,$=q;function Z(){var z=q;if(z.next)q=z.next;else q=new _,$=q;return z.next=null,z}function X(z){$.next=z,$=z}return{get:Z,release:X}}B2.exports=tQ});var V2=H((_K,U9)=>{var eQ=J2();function W2(_,q,$){if(typeof _==="function")$=q,q=_,_=null;if(!($>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");var Z=eQ(_Y),X=null,z=null,U=0,Q=null,Y={push:F,drain:e,saturated:e,pause:W,paused:!1,get concurrency(){return $},set concurrency(w){if(!(w>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");if($=w,Y.paused)return;for(;X&&U<$;)U++,S()},running:B,resume:G,idle:L,length:V,getQueue:J,unshift:I,empty:e,kill:j,killAndDrain:A,error:O,abort:E};return Y;function B(){return U}function W(){Y.paused=!0}function V(){var w=X,C=0;while(w)w=w.next,C++;return C}function J(){var w=X,C=[];while(w)C.push(w.value),w=w.next;return C}function G(){if(!Y.paused)return;if(Y.paused=!1,X===null){U++,S();return}for(;X&&U<$;)U++,S()}function L(){return U===0&&Y.length()===0}function F(w,C){var M=Z.get();if(M.context=_,M.release=S,M.value=w,M.callback=C||e,M.errorHandler=Q,U>=$||Y.paused)if(z)z.next=M,z=M;else X=M,z=M,Y.saturated();else U++,q.call(_,M.value,M.worked)}function I(w,C){var M=Z.get();if(M.context=_,M.release=S,M.value=w,M.callback=C||e,M.errorHandler=Q,U>=$||Y.paused)if(X)M.next=X,X=M;else X=M,z=M,Y.saturated();else U++,q.call(_,M.value,M.worked)}function S(w){if(w)Z.release(w);var C=X;if(C&&U<=$)if(!Y.paused){if(z===X)z=null;if(X=C.next,C.next=null,q.call(_,C.value,C.worked),z===null)Y.empty()}else U--;else if(--U===0)Y.drain()}function j(){X=null,z=null,Y.drain=e}function A(){X=null,z=null,Y.drain(),Y.drain=e}function E(){var w=X;X=null,z=null;while(w){var{next:C,callback:M,errorHandler:f,value:u,context:D}=w;if(w.value=null,w.callback=e,w.errorHandler=null,f)f(Error("abort"),u);M.call(D,Error("abort")),w.release(w),w=C}Y.drain=e}function O(w){Q=w}}function e(){}function _Y(){this.value=null,this.callback=e,this.next=null,this.release=e,this.context=null,this.errorHandler=null;var _=this;this.worked=function($,Z){var{callback:X,errorHandler:z,value:U}=_;if(_.value=null,_.callback=e,_.errorHandler)z($,U);X.call(_.context,$,Z),_.release(_)}}function qY(_,q,$){if(typeof _==="function")$=q,q=_,_=null;function Z(W,V){q.call(this,W).then(function(J){V(null,J)},V)}var X=W2(_,Z,$),z=X.push,U=X.unshift;return X.push=Q,X.unshift=Y,X.drained=B,X;function Q(W){var V=new Promise(function(J,G){z(W,function(L,F){if(L){G(L);return}J(F)})});return V.catch(e),V}function Y(W){var V=new Promise(function(J,G){U(W,function(L,F){if(L){G(L);return}J(F)})});return V.catch(e),V}function B(){var W=new Promise(function(V){process.nextTick(function(){if(X.idle())V();else{var J=X.drain;X.drain=function(){if(typeof J==="function")J();V(),X.drain=J}}})});return W}}U9.exports=W2;U9.exports.promise=qY});var V_=H((F2)=>{Object.defineProperty(F2,"__esModule",{value:!0});F2.joinPathSegments=F2.replacePathSegmentSeparator=F2.isAppliedFilter=F2.isFatalError=void 0;function $Y(_,q){if(_.errorFilter===null)return!0;return!_.errorFilter(q)}F2.isFatalError=$Y;function ZY(_,q){return _===null||_(q)}F2.isAppliedFilter=ZY;function XY(_,q){return _.split(/[/\\]/).join(q)}F2.replacePathSegmentSeparator=XY;function zY(_,q,$){if(_==="")return q;if(_.endsWith($))return _+q;return _+$+q}F2.joinPathSegments=zY});var Q9=H((M2)=>{Object.defineProperty(M2,"__esModule",{value:!0});var BY=V_();class L2{constructor(_,q){this._root=_,this._settings=q,this._root=BY.replacePathSegmentSeparator(_,q.pathSegmentSeparator)}}M2.default=L2});var Y9=H((I2)=>{Object.defineProperty(I2,"__esModule",{value:!0});var WY=x("events"),VY=W_(),FY=V2(),F_=V_(),GY=Q9();class H2 extends GY.default{constructor(_,q){super(_,q);this._settings=q,this._scandir=VY.scandir,this._emitter=new WY.EventEmitter,this._queue=FY(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{if(!this._isFatalError)this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(_){this._emitter.on("entry",_)}onError(_){this._emitter.once("error",_)}onEnd(_){this._emitter.once("end",_)}_pushToQueue(_,q){let $={directory:_,base:q};this._queue.push($,(Z)=>{if(Z!==null)this._handleError(Z)})}_worker(_,q){this._scandir(_.directory,this._settings.fsScandirSettings,($,Z)=>{if($!==null){q($,void 0);return}for(let X of Z)this._handleEntry(X,_.base);q(null,void 0)})}_handleError(_){if(this._isDestroyed||!F_.isFatalError(this._settings,_))return;this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",_)}_handleEntry(_,q){if(this._isDestroyed||this._isFatalError)return;let $=_.path;if(q!==void 0)_.path=F_.joinPathSegments(q,_.name,this._settings.pathSegmentSeparator);if(F_.isAppliedFilter(this._settings.entryFilter,_))this._emitEntry(_);if(_.dirent.isDirectory()&&F_.isAppliedFilter(this._settings.deepFilter,_))this._pushToQueue($,q===void 0?void 0:_.path)}_emitEntry(_){this._emitter.emit("entry",_)}}I2.default=H2});var D2=H((K2)=>{Object.defineProperty(K2,"__esModule",{value:!0});var MY=Y9();class T2{constructor(_,q){this._root=_,this._settings=q,this._reader=new MY.default(this._root,this._settings),this._storage=[]}read(_){this._reader.onError((q)=>{HY(_,q)}),this._reader.onEntry((q)=>{this._storage.push(q)}),this._reader.onEnd(()=>{IY(_,this._storage)}),this._reader.read()}}K2.default=T2;function HY(_,q){_(q)}function IY(_,q){_(null,q)}});var R2=H((w2)=>{Object.defineProperty(w2,"__esModule",{value:!0});var KY=x("stream"),DY=Y9();class S2{constructor(_,q){this._root=_,this._settings=q,this._reader=new DY.default(this._root,this._settings),this._stream=new KY.Readable({objectMode:!0,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed)this._reader.destroy()}})}read(){return this._reader.onError((_)=>{this._stream.emit("error",_)}),this._reader.onEntry((_)=>{this._stream.push(_)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}}w2.default=S2});var j2=H((A2)=>{Object.defineProperty(A2,"__esModule",{value:!0});var wY=W_(),G_=V_(),RY=Q9();class P2 extends RY.default{constructor(){super(...arguments);this._scandir=wY.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(_,q){this._queue.add({directory:_,base:q})}_handleQueue(){for(let _ of this._queue.values())this._handleDirectory(_.directory,_.base)}_handleDirectory(_,q){try{let $=this._scandir(_,this._settings.fsScandirSettings);for(let Z of $)this._handleEntry(Z,q)}catch($){this._handleError($)}}_handleError(_){if(!G_.isFatalError(this._settings,_))return;throw _}_handleEntry(_,q){let $=_.path;if(q!==void 0)_.path=G_.joinPathSegments(q,_.name,this._settings.pathSegmentSeparator);if(G_.isAppliedFilter(this._settings.entryFilter,_))this._pushToStorage(_);if(_.dirent.isDirectory()&&G_.isAppliedFilter(this._settings.deepFilter,_))this._pushToQueue($,q===void 0?void 0:_.path)}_pushToStorage(_){this._storage.push(_)}}A2.default=P2});var f2=H((O2)=>{Object.defineProperty(O2,"__esModule",{value:!0});var AY=j2();class N2{constructor(_,q){this._root=_,this._settings=q,this._reader=new AY.default(this._root,this._settings)}read(){return this._reader.read()}}O2.default=N2});var b2=H((C2)=>{Object.defineProperty(C2,"__esModule",{value:!0});var NY=x("path"),OY=W_();class E2{constructor(_={}){this._options=_,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,NY.sep),this.fsScandirSettings=new OY.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(_,q){return _!==null&&_!==void 0?_:q}}C2.default=E2});var M_=H((h2)=>{Object.defineProperty(h2,"__esModule",{value:!0});h2.Settings=h2.walkStream=h2.walkSync=h2.walk=void 0;var y2=D2(),EY=R2(),CY=f2(),B9=b2();h2.Settings=B9.default;function bY(_,q,$){if(typeof q==="function"){new y2.default(_,L_()).read(q);return}new y2.default(_,L_(q)).read($)}h2.walk=bY;function yY(_,q){let $=L_(q);return new CY.default(_,$).read()}h2.walkSync=yY;function hY(_,q){let $=L_(q);return new EY.default(_,$).read()}h2.walkStream=hY;function L_(_={}){if(_ instanceof B9.default)return _;return new B9.default(_)}});var H_=H((v2)=>{Object.defineProperty(v2,"__esModule",{value:!0});var vY=x("path"),uY=v1(),g2=K1();class k2{constructor(_){this._settings=_,this._fsStatSettings=new uY.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(_){return vY.resolve(this._settings.cwd,_)}_makeEntry(_,q){let $={name:q,path:q,dirent:g2.fs.createDirentFromStats(q,_)};if(this._settings.stats)$.stats=_;return $}_isFatalError(_){return!g2.errno.isEnoentCodeError(_)&&!this._settings.suppressErrors}}v2.default=k2});var J9=H((m2)=>{Object.defineProperty(m2,"__esModule",{value:!0});var dY=x("stream"),lY=v1(),iY=M_(),cY=H_();class u2 extends cY.default{constructor(){super(...arguments);this._walkStream=iY.walkStream,this._stat=lY.stat}dynamic(_,q){return this._walkStream(_,q)}static(_,q){let $=_.map(this._getFullEntryPath,this),Z=new dY.PassThrough({objectMode:!0});Z._write=(X,z,U)=>{return this._getEntry($[X],_[X],q).then((Q)=>{if(Q!==null&&q.entryFilter(Q))Z.push(Q);if(X===$.length-1)Z.end();U()}).catch(U)};for(let X=0;X<$.length;X++)Z.write(X);return Z}_getEntry(_,q,$){return this._getStat(_).then((Z)=>this._makeEntry(Z,q)).catch((Z)=>{if($.errorFilter(Z))return null;throw Z})}_getStat(_){return new Promise((q,$)=>{this._stat(_,this._fsStatSettings,(Z,X)=>{return Z===null?q(X):$(Z)})})}}m2.default=u2});var i2=H((l2)=>{Object.defineProperty(l2,"__esModule",{value:!0});var rY=M_(),sY=H_(),nY=J9();class d2 extends sY.default{constructor(){super(...arguments);this._walkAsync=rY.walk,this._readerStream=new nY.default(this._settings)}dynamic(_,q){return new Promise(($,Z)=>{this._walkAsync(_,q,(X,z)=>{if(X===null)$(z);else Z(X)})})}async static(_,q){let $=[],Z=this._readerStream.static(_,q);return new Promise((X,z)=>{Z.once("error",z),Z.on("data",(U)=>$.push(U)),Z.once("end",()=>X($))})}}l2.default=d2});var r2=H((p2)=>{Object.defineProperty(p2,"__esModule",{value:!0});var D0=K1();class c2{constructor(_,q,$){this._patterns=_,this._settings=q,this._micromatchOptions=$,this._storage=[],this._fillStorage()}_fillStorage(){for(let _ of this._patterns){let q=this._getPatternSegments(_),$=this._splitSegmentsIntoSections(q);this._storage.push({complete:$.length<=1,pattern:_,segments:q,sections:$})}}_getPatternSegments(_){return D0.pattern.getPatternParts(_,this._micromatchOptions).map(($)=>{if(!D0.pattern.isDynamicPattern($,this._settings))return{dynamic:!1,pattern:$};return{dynamic:!0,pattern:$,patternRe:D0.pattern.makeRe($,this._micromatchOptions)}})}_splitSegmentsIntoSections(_){return D0.array.splitWhen(_,(q)=>q.dynamic&&D0.pattern.hasGlobStar(q.pattern))}}p2.default=c2});var a2=H((n2)=>{Object.defineProperty(n2,"__esModule",{value:!0});var tY=r2();class s2 extends tY.default{match(_){let q=_.split("/"),$=q.length,Z=this._storage.filter((X)=>!X.complete||X.segments.length>$);for(let X of Z){let z=X.sections[0];if(!X.complete&&$>z.length)return!0;if(q.every((Q,Y)=>{let B=X.segments[Y];if(B.dynamic&&B.patternRe.test(Q))return!0;if(!B.dynamic&&B.pattern===Q)return!0;return!1}))return!0}return!1}}n2.default=s2});var e2=H((t2)=>{Object.defineProperty(t2,"__esModule",{value:!0});var I_=K1(),_B=a2();class o2{constructor(_,q){this._settings=_,this._micromatchOptions=q}getFilter(_,q,$){let Z=this._getMatcher(q),X=this._getNegativePatternsRe($);return(z)=>this._filter(_,z,Z,X)}_getMatcher(_){return new _B.default(_,this._settings,this._micromatchOptions)}_getNegativePatternsRe(_){let q=_.filter(I_.pattern.isAffectDepthOfReadingPattern);return I_.pattern.convertPatternsToRe(q,this._micromatchOptions)}_filter(_,q,$,Z){if(this._isSkippedByDeep(_,q.path))return!1;if(this._isSkippedSymbolicLink(q))return!1;let X=I_.path.removeLeadingDotSegment(q.path);if(this._isSkippedByPositivePatterns(X,$))return!1;return this._isSkippedByNegativePatterns(X,Z)}_isSkippedByDeep(_,q){if(this._settings.deep===1/0)return!1;return this._getEntryLevel(_,q)>=this._settings.deep}_getEntryLevel(_,q){let $=q.split("/").length;if(_==="")return $;let Z=_.split("/").length;return $-Z}_isSkippedSymbolicLink(_){return!this._settings.followSymbolicLinks&&_.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(_,q){return!this._settings.baseNameMatch&&!q.match(_)}_isSkippedByNegativePatterns(_,q){return!I_.pattern.matchAny(_,q)}}t2.default=o2});var $7=H((q7)=>{Object.defineProperty(q7,"__esModule",{value:!0});var A1=K1();class _7{constructor(_,q){this._settings=_,this._micromatchOptions=q,this.index=new Map}getFilter(_,q){let[$,Z]=A1.pattern.partitionAbsoluteAndRelative(q),X={positive:{all:A1.pattern.convertPatternsToRe(_,this._micromatchOptions)},negative:{absolute:A1.pattern.convertPatternsToRe($,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:A1.pattern.convertPatternsToRe(Z,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return(z)=>this._filter(z,X)}_filter(_,q){let $=A1.path.removeLeadingDotSegment(_.path);if(this._settings.unique&&this._isDuplicateEntry($))return!1;if(this._onlyFileFilter(_)||this._onlyDirectoryFilter(_))return!1;let Z=this._isMatchToPatternsSet($,q,_.dirent.isDirectory());if(this._settings.unique&&Z)this._createIndexRecord($);return Z}_isDuplicateEntry(_){return this.index.has(_)}_createIndexRecord(_){this.index.set(_,void 0)}_onlyFileFilter(_){return this._settings.onlyFiles&&!_.dirent.isFile()}_onlyDirectoryFilter(_){return this._settings.onlyDirectories&&!_.dirent.isDirectory()}_isMatchToPatternsSet(_,q,$){if(!this._isMatchToPatterns(_,q.positive.all,$))return!1;if(this._isMatchToPatterns(_,q.negative.relative,$))return!1;if(this._isMatchToAbsoluteNegative(_,q.negative.absolute,$))return!1;return!0}_isMatchToAbsoluteNegative(_,q,$){if(q.length===0)return!1;let Z=A1.path.makeAbsolute(this._settings.cwd,_);return this._isMatchToPatterns(Z,q,$)}_isMatchToPatterns(_,q,$){if(q.length===0)return!1;let Z=A1.pattern.matchAny(_,q);if(!Z&&$)return A1.pattern.matchAny(_+"/",q);return Z}}q7.default=_7});var z7=H((X7)=>{Object.defineProperty(X7,"__esModule",{value:!0});var ZB=K1();class Z7{constructor(_){this._settings=_}getFilter(){return(_)=>this._isNonFatalError(_)}_isNonFatalError(_){return ZB.errno.isEnoentCodeError(_)||this._settings.suppressErrors}}X7.default=Z7});var B7=H((Y7)=>{Object.defineProperty(Y7,"__esModule",{value:!0});var U7=K1();class Q7{constructor(_){this._settings=_}getTransformer(){return(_)=>this._transform(_)}_transform(_){let q=_.path;if(this._settings.absolute)q=U7.path.makeAbsolute(this._settings.cwd,q),q=U7.path.unixify(q);if(this._settings.markDirectories&&_.dirent.isDirectory())q+="/";if(!this._settings.objectMode)return q;return Object.assign(Object.assign({},_),{path:q})}}Y7.default=Q7});var T_=H((W7)=>{Object.defineProperty(W7,"__esModule",{value:!0});var UB=x("path"),QB=e2(),YB=$7(),BB=z7(),JB=B7();class J7{constructor(_){this._settings=_,this.errorFilter=new BB.default(this._settings),this.entryFilter=new YB.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new QB.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new JB.default(this._settings)}_getRootDirectory(_){return UB.resolve(this._settings.cwd,_.base)}_getReaderOptions(_){let q=_.base==="."?"":_.base;return{basePath:q,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(q,_.positive,_.negative),entryFilter:this.entryFilter.getFilter(_.positive,_.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}}W7.default=J7});var G7=H((F7)=>{Object.defineProperty(F7,"__esModule",{value:!0});var VB=i2(),FB=T_();class V7 extends FB.default{constructor(){super(...arguments);this._reader=new VB.default(this._settings)}async read(_){let q=this._getRootDirectory(_),$=this._getReaderOptions(_);return(await this.api(q,_,$)).map((X)=>$.transform(X))}api(_,q,$){if(q.dynamic)return this._reader.dynamic(_,$);return this._reader.static(q.patterns,$)}}F7.default=V7});var H7=H((M7)=>{Object.defineProperty(M7,"__esModule",{value:!0});var LB=x("stream"),MB=J9(),HB=T_();class L7 extends HB.default{constructor(){super(...arguments);this._reader=new MB.default(this._settings)}read(_){let q=this._getRootDirectory(_),$=this._getReaderOptions(_),Z=this.api(q,_,$),X=new LB.Readable({objectMode:!0,read:()=>{}});return Z.once("error",(z)=>X.emit("error",z)).on("data",(z)=>X.emit("data",$.transform(z))).once("end",()=>X.emit("end")),X.once("close",()=>Z.destroy()),X}api(_,q,$){if(q.dynamic)return this._reader.dynamic(_,$);return this._reader.static(q.patterns,$)}}M7.default=L7});var K7=H((T7)=>{Object.defineProperty(T7,"__esModule",{value:!0});var TB=v1(),KB=M_(),DB=H_();class I7 extends DB.default{constructor(){super(...arguments);this._walkSync=KB.walkSync,this._statSync=TB.statSync}dynamic(_,q){return this._walkSync(_,q)}static(_,q){let $=[];for(let Z of _){let X=this._getFullEntryPath(Z),z=this._getEntry(X,Z,q);if(z===null||!q.entryFilter(z))continue;$.push(z)}return $}_getEntry(_,q,$){try{let Z=this._getStat(_);return this._makeEntry(Z,q)}catch(Z){if($.errorFilter(Z))return null;throw Z}}_getStat(_){return this._statSync(_,this._fsStatSettings)}}T7.default=I7});var w7=H((S7)=>{Object.defineProperty(S7,"__esModule",{value:!0});var wB=K7(),RB=T_();class D7 extends RB.default{constructor(){super(...arguments);this._reader=new wB.default(this._settings)}read(_){let q=this._getRootDirectory(_),$=this._getReaderOptions(_);return this.api(q,_,$).map($.transform)}api(_,q,$){if(q.dynamic)return this._reader.dynamic(_,$);return this._reader.static(q.patterns,$)}}S7.default=D7});var A7=H((P7)=>{Object.defineProperty(P7,"__esModule",{value:!0});P7.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var _0=x("fs"),AB=x("os"),jB=Math.max(AB.cpus().length,1);P7.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:_0.lstat,lstatSync:_0.lstatSync,stat:_0.stat,statSync:_0.statSync,readdir:_0.readdir,readdirSync:_0.readdirSync};class R7{constructor(_={}){if(this._options=_,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,jB),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories)this.onlyFiles=!1;if(this.stats)this.objectMode=!0;this.ignore=[].concat(this.ignore)}_getValue(_,q){return _===void 0?q:_}_getFileSystemMethods(_={}){return Object.assign(Object.assign({},P7.DEFAULT_FILE_SYSTEM_ADAPTER),_)}}P7.default=R7});var O7=H((PK,N7)=>{var j7=z6(),OB=G7(),fB=H7(),EB=w7(),V9=A7(),z1=K1();async function F9(_,q){J1(_);let $=G9(_,OB.default,q),Z=await Promise.all($);return z1.array.flatten(Z)}(function(_){_.glob=_,_.globSync=q,_.globStream=$,_.async=_;function q(B,W){J1(B);let V=G9(B,EB.default,W);return z1.array.flatten(V)}_.sync=q;function $(B,W){J1(B);let V=G9(B,fB.default,W);return z1.stream.merge(V)}_.stream=$;function Z(B,W){J1(B);let V=[].concat(B),J=new V9.default(W);return j7.generate(V,J)}_.generateTasks=Z;function X(B,W){J1(B);let V=new V9.default(W);return z1.pattern.isDynamicPattern(B,V)}_.isDynamicPattern=X;function z(B){return J1(B),z1.path.escape(B)}_.escapePath=z;function U(B){return J1(B),z1.path.convertPathToPattern(B)}_.convertPathToPattern=U;let Q;(function(B){function W(J){return J1(J),z1.path.escapePosixPath(J)}B.escapePath=W;function V(J){return J1(J),z1.path.convertPosixPathToPattern(J)}B.convertPathToPattern=V})(Q=_.posix||(_.posix={}));let Y;(function(B){function W(J){return J1(J),z1.path.escapeWindowsPath(J)}B.escapePath=W;function V(J){return J1(J),z1.path.convertWindowsPathToPattern(J)}B.convertPathToPattern=V})(Y=_.win32||(_.win32={}))})(F9||(F9={}));function G9(_,q,$){let Z=[].concat(_),X=new V9.default($),z=j7.generate(Z,X),U=new q(X);return z.map(U.read,U)}function J1(_){if(![].concat(_).every((Z)=>z1.string.isString(Z)&&!z1.string.isEmpty(Z)))throw TypeError("Patterns must be a string (non empty) or an array of strings")}N7.exports=F9});var g=H((vB)=>{var L9=Symbol.for("yaml.alias"),E7=Symbol.for("yaml.document"),D_=Symbol.for("yaml.map"),C7=Symbol.for("yaml.pair"),M9=Symbol.for("yaml.scalar"),S_=Symbol.for("yaml.seq"),D1=Symbol.for("yaml.node.type"),CB=(_)=>!!_&&typeof _==="object"&&_[D1]===L9,bB=(_)=>!!_&&typeof _==="object"&&_[D1]===E7,yB=(_)=>!!_&&typeof _==="object"&&_[D1]===D_,hB=(_)=>!!_&&typeof _==="object"&&_[D1]===C7,b7=(_)=>!!_&&typeof _==="object"&&_[D1]===M9,xB=(_)=>!!_&&typeof _==="object"&&_[D1]===S_;function y7(_){if(_&&typeof _==="object")switch(_[D1]){case D_:case S_:return!0}return!1}function gB(_){if(_&&typeof _==="object")switch(_[D1]){case L9:case D_:case M9:case S_:return!0}return!1}var kB=(_)=>(b7(_)||y7(_))&&!!_.anchor;vB.ALIAS=L9;vB.DOC=E7;vB.MAP=D_;vB.NODE_TYPE=D1;vB.PAIR=C7;vB.SCALAR=M9;vB.SEQ=S_;vB.hasAnchor=kB;vB.isAlias=CB;vB.isCollection=y7;vB.isDocument=bB;vB.isMap=yB;vB.isNode=gB;vB.isPair=hB;vB.isScalar=b7;vB.isSeq=xB});var R0=H(($J)=>{var n=g(),_1=Symbol("break visit"),h7=Symbol("skip children"),H1=Symbol("remove node");function w_(_,q){let $=x7(q);if(n.isDocument(_)){if(q0(null,_.contents,$,Object.freeze([_]))===H1)_.contents=null}else q0(null,_,$,Object.freeze([]))}w_.BREAK=_1;w_.SKIP=h7;w_.REMOVE=H1;function q0(_,q,$,Z){let X=g7(_,q,$,Z);if(n.isNode(X)||n.isPair(X))return k7(_,Z,X),q0(_,X,$,Z);if(typeof X!=="symbol"){if(n.isCollection(q)){Z=Object.freeze(Z.concat(q));for(let z=0;z<q.items.length;++z){let U=q0(z,q.items[z],$,Z);if(typeof U==="number")z=U-1;else if(U===_1)return _1;else if(U===H1)q.items.splice(z,1),z-=1}}else if(n.isPair(q)){Z=Object.freeze(Z.concat(q));let z=q0("key",q.key,$,Z);if(z===_1)return _1;else if(z===H1)q.key=null;let U=q0("value",q.value,$,Z);if(U===_1)return _1;else if(U===H1)q.value=null}}return X}async function R_(_,q){let $=x7(q);if(n.isDocument(_)){if(await $0(null,_.contents,$,Object.freeze([_]))===H1)_.contents=null}else await $0(null,_,$,Object.freeze([]))}R_.BREAK=_1;R_.SKIP=h7;R_.REMOVE=H1;async function $0(_,q,$,Z){let X=await g7(_,q,$,Z);if(n.isNode(X)||n.isPair(X))return k7(_,Z,X),$0(_,X,$,Z);if(typeof X!=="symbol"){if(n.isCollection(q)){Z=Object.freeze(Z.concat(q));for(let z=0;z<q.items.length;++z){let U=await $0(z,q.items[z],$,Z);if(typeof U==="number")z=U-1;else if(U===_1)return _1;else if(U===H1)q.items.splice(z,1),z-=1}}else if(n.isPair(q)){Z=Object.freeze(Z.concat(q));let z=await $0("key",q.key,$,Z);if(z===_1)return _1;else if(z===H1)q.key=null;let U=await $0("value",q.value,$,Z);if(U===_1)return _1;else if(U===H1)q.value=null}}return X}function x7(_){if(typeof _==="object"&&(_.Collection||_.Node||_.Value))return Object.assign({Alias:_.Node,Map:_.Node,Scalar:_.Node,Seq:_.Node},_.Value&&{Map:_.Value,Scalar:_.Value,Seq:_.Value},_.Collection&&{Map:_.Collection,Seq:_.Collection},_);return _}function g7(_,q,$,Z){if(typeof $==="function")return $(_,q,Z);if(n.isMap(q))return $.Map?.(_,q,Z);if(n.isSeq(q))return $.Seq?.(_,q,Z);if(n.isPair(q))return $.Pair?.(_,q,Z);if(n.isScalar(q))return $.Scalar?.(_,q,Z);if(n.isAlias(q))return $.Alias?.(_,q,Z);return}function k7(_,q,$){let Z=q[q.length-1];if(n.isCollection(Z))Z.items[_]=$;else if(n.isPair(Z))if(_==="key")Z.key=$;else Z.value=$;else if(n.isDocument(Z))Z.contents=$;else{let X=n.isAlias(Z)?"alias":"scalar";throw Error(`Cannot replace node with ${X} parent`)}}$J.visit=w_;$J.visitAsync=R_});var H9=H((YJ)=>{var v7=g(),zJ=R0(),UJ={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},QJ=(_)=>_.replace(/[!,[\]{}]/g,(q)=>UJ[q]);class U1{constructor(_,q){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},U1.defaultYaml,_),this.tags=Object.assign({},U1.defaultTags,q)}clone(){let _=new U1(this.yaml,this.tags);return _.docStart=this.docStart,_}atDocument(){let _=new U1(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:U1.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},U1.defaultTags);break}return _}add(_,q){if(this.atNextDocument)this.yaml={explicit:U1.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},U1.defaultTags),this.atNextDocument=!1;let $=_.trim().split(/[ \t]+/),Z=$.shift();switch(Z){case"%TAG":{if($.length!==2){if(q(0,"%TAG directive should contain exactly two parts"),$.length<2)return!1}let[X,z]=$;return this.tags[X]=z,!0}case"%YAML":{if(this.yaml.explicit=!0,$.length!==1)return q(0,"%YAML directive should contain exactly one part"),!1;let[X]=$;if(X==="1.1"||X==="1.2")return this.yaml.version=X,!0;else{let z=/^\d+\.\d+$/.test(X);return q(6,`Unsupported YAML version ${X}`,z),!1}}default:return q(0,`Unknown directive ${Z}`,!0),!1}}tagName(_,q){if(_==="!")return"!";if(_[0]!=="!")return q(`Not a valid tag: ${_}`),null;if(_[1]==="<"){let z=_.slice(2,-1);if(z==="!"||z==="!!")return q(`Verbatim tags aren't resolved, so ${_} is invalid.`),null;if(_[_.length-1]!==">")q("Verbatim tags must end with a >");return z}let[,$,Z]=_.match(/^(.*!)([^!]*)$/s);if(!Z)q(`The ${_} tag has no suffix`);let X=this.tags[$];if(X)try{return X+decodeURIComponent(Z)}catch(z){return q(String(z)),null}if($==="!")return _;return q(`Could not resolve tag: ${_}`),null}tagString(_){for(let[q,$]of Object.entries(this.tags))if(_.startsWith($))return q+QJ(_.substring($.length));return _[0]==="!"?_:`!<${_}>`}toString(_){let q=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],$=Object.entries(this.tags),Z;if(_&&$.length>0&&v7.isNode(_.contents)){let X={};zJ.visit(_.contents,(z,U)=>{if(v7.isNode(U)&&U.tag)X[U.tag]=!0}),Z=Object.keys(X)}else Z=[];for(let[X,z]of $){if(X==="!!"&&z==="tag:yaml.org,2002:")continue;if(!_||Z.some((U)=>U.startsWith(z)))q.push(`%TAG ${X} ${z}`)}return q.join(`
|
|
49
|
+
`)}}U1.defaultYaml={explicit:!1,version:"1.2"};U1.defaultTags={"!!":"tag:yaml.org,2002:"};YJ.Directives=U1});var P_=H((FJ)=>{var u7=g(),JJ=R0();function WJ(_){if(/[\x00-\x19\s,[\]{}]/.test(_)){let $=`Anchor must not contain whitespace or control characters: ${JSON.stringify(_)}`;throw Error($)}return!0}function m7(_){let q=new Set;return JJ.visit(_,{Value($,Z){if(Z.anchor)q.add(Z.anchor)}}),q}function d7(_,q){for(let $=1;;++$){let Z=`${_}${$}`;if(!q.has(Z))return Z}}function VJ(_,q){let $=[],Z=new Map,X=null;return{onAnchor:(z)=>{$.push(z),X??(X=m7(_));let U=d7(q,X);return X.add(U),U},setAnchors:()=>{for(let z of $){let U=Z.get(z);if(typeof U==="object"&&U.anchor&&(u7.isScalar(U.node)||u7.isCollection(U.node)))U.node.anchor=U.anchor;else{let Q=Error("Failed to resolve repeated object (this should not happen)");throw Q.source=z,Q}}},sourceObjects:Z}}FJ.anchorIsValid=WJ;FJ.anchorNames=m7;FJ.createNodeAnchors=VJ;FJ.findNewAnchor=d7});var I9=H((IJ)=>{function P0(_,q,$,Z){if(Z&&typeof Z==="object")if(Array.isArray(Z))for(let X=0,z=Z.length;X<z;++X){let U=Z[X],Q=P0(_,Z,String(X),U);if(Q===void 0)delete Z[X];else if(Q!==U)Z[X]=Q}else if(Z instanceof Map)for(let X of Array.from(Z.keys())){let z=Z.get(X),U=P0(_,Z,X,z);if(U===void 0)Z.delete(X);else if(U!==z)Z.set(X,U)}else if(Z instanceof Set)for(let X of Array.from(Z)){let z=P0(_,Z,X,X);if(z===void 0)Z.delete(X);else if(z!==X)Z.delete(X),Z.add(z)}else for(let[X,z]of Object.entries(Z)){let U=P0(_,Z,X,z);if(U===void 0)delete Z[X];else if(U!==z)Z[X]=U}return _.call(q,$,Z)}IJ.applyReviver=P0});var j1=H((DJ)=>{var KJ=g();function l7(_,q,$){if(Array.isArray(_))return _.map((Z,X)=>l7(Z,String(X),$));if(_&&typeof _.toJSON==="function"){if(!$||!KJ.hasAnchor(_))return _.toJSON(q,$);let Z={aliasCount:0,count:1,res:void 0};$.anchors.set(_,Z),$.onCreate=(z)=>{Z.res=z,delete $.onCreate};let X=_.toJSON(q,$);if($.onCreate)$.onCreate(X);return X}if(typeof _==="bigint"&&!$?.keep)return Number(_);return _}DJ.toJS=l7});var A_=H((PJ)=>{var wJ=I9(),i7=g(),RJ=j1();class c7{constructor(_){Object.defineProperty(this,i7.NODE_TYPE,{value:_})}clone(){let _=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)_.range=this.range.slice();return _}toJS(_,{mapAsMap:q,maxAliasCount:$,onAnchor:Z,reviver:X}={}){if(!i7.isDocument(_))throw TypeError("A document argument is required");let z={anchors:new Map,doc:_,keep:!0,mapAsMap:q===!0,mapKeyWarned:!1,maxAliasCount:typeof $==="number"?$:100},U=RJ.toJS(this,"",z);if(typeof Z==="function")for(let{count:Q,res:Y}of z.anchors.values())Z(Y,Q);return typeof X==="function"?wJ.applyReviver(X,{"":U},"",U):U}}PJ.NodeBase=c7});var A0=H((EJ)=>{var jJ=P_(),NJ=R0(),Z0=g(),OJ=A_(),fJ=j1();class p7 extends OJ.NodeBase{constructor(_){super(Z0.ALIAS);this.source=_,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(_,q){let $;if(q?.aliasResolveCache)$=q.aliasResolveCache;else if($=[],NJ.visit(_,{Node:(X,z)=>{if(Z0.isAlias(z)||Z0.hasAnchor(z))$.push(z)}}),q)q.aliasResolveCache=$;let Z=void 0;for(let X of $){if(X===this)break;if(X.anchor===this.source)Z=X}return Z}toJSON(_,q){if(!q)return{source:this.source};let{anchors:$,doc:Z,maxAliasCount:X}=q,z=this.resolve(Z,q);if(!z){let Q=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(Q)}let U=$.get(z);if(!U)fJ.toJS(z,null,q),U=$.get(z);if(U?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(X>=0){if(U.count+=1,U.aliasCount===0)U.aliasCount=j_(Z,z,$);if(U.count*U.aliasCount>X)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return U.res}toString(_,q,$){let Z=`*${this.source}`;if(_){if(jJ.anchorIsValid(this.source),_.options.verifyAliasOrder&&!_.anchors.has(this.source)){let X=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(X)}if(_.implicitKey)return`${Z} `}return Z}}function j_(_,q,$){if(Z0.isAlias(q)){let Z=q.resolve(_),X=$&&Z&&$.get(Z);return X?X.count*X.aliasCount:0}else if(Z0.isCollection(q)){let Z=0;for(let X of q.items){let z=j_(_,X,$);if(z>Z)Z=z}return Z}else if(Z0.isPair(q)){let Z=j_(_,q.key,$),X=j_(_,q.value,$);return Math.max(Z,X)}return 1}EJ.Alias=p7});var r=H((gJ)=>{var bJ=g(),yJ=A_(),hJ=j1(),xJ=(_)=>!_||typeof _!=="function"&&typeof _!=="object";class u1 extends yJ.NodeBase{constructor(_){super(bJ.SCALAR);this.value=_}toJSON(_,q){return q?.keep?this.value:hJ.toJS(this.value,_,q)}toString(){return String(this.value)}}u1.BLOCK_FOLDED="BLOCK_FOLDED";u1.BLOCK_LITERAL="BLOCK_LITERAL";u1.PLAIN="PLAIN";u1.QUOTE_DOUBLE="QUOTE_DOUBLE";u1.QUOTE_SINGLE="QUOTE_SINGLE";gJ.Scalar=u1;gJ.isScalarValue=xJ});var j0=H((iJ)=>{var uJ=A0(),m1=g(),r7=r(),mJ="tag:yaml.org,2002:";function dJ(_,q,$){if(q){let Z=$.filter((z)=>z.tag===q),X=Z.find((z)=>!z.format)??Z[0];if(!X)throw Error(`Tag ${q} not found`);return X}return $.find((Z)=>Z.identify?.(_)&&!Z.format)}function lJ(_,q,$){if(m1.isDocument(_))_=_.contents;if(m1.isNode(_))return _;if(m1.isPair(_)){let V=$.schema[m1.MAP].createNode?.($.schema,null,$);return V.items.push(_),V}if(_ instanceof String||_ instanceof Number||_ instanceof Boolean||typeof BigInt<"u"&&_ instanceof BigInt)_=_.valueOf();let{aliasDuplicateObjects:Z,onAnchor:X,onTagObj:z,schema:U,sourceObjects:Q}=$,Y=void 0;if(Z&&_&&typeof _==="object")if(Y=Q.get(_),Y)return Y.anchor??(Y.anchor=X(_)),new uJ.Alias(Y.anchor);else Y={anchor:null,node:null},Q.set(_,Y);if(q?.startsWith("!!"))q=mJ+q.slice(2);let B=dJ(_,q,U.tags);if(!B){if(_&&typeof _.toJSON==="function")_=_.toJSON();if(!_||typeof _!=="object"){let V=new r7.Scalar(_);if(Y)Y.node=V;return V}B=_ instanceof Map?U[m1.MAP]:(Symbol.iterator in Object(_))?U[m1.SEQ]:U[m1.MAP]}if(z)z(B),delete $.onTagObj;let W=B?.createNode?B.createNode($.schema,_,$):typeof B?.nodeClass?.from==="function"?B.nodeClass.from($.schema,_,$):new r7.Scalar(_);if(q)W.tag=q;else if(!B.default)W.tag=B.tag;if(Y)Y.node=W;return W}iJ.createNode=lJ});var N_=H((sJ)=>{var pJ=j0(),I1=g(),rJ=A_();function T9(_,q,$){let Z=$;for(let X=q.length-1;X>=0;--X){let z=q[X];if(typeof z==="number"&&Number.isInteger(z)&&z>=0){let U=[];U[z]=Z,Z=U}else Z=new Map([[z,Z]])}return pJ.createNode(Z,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:_,sourceObjects:new Map})}var s7=(_)=>_==null||typeof _==="object"&&!!_[Symbol.iterator]().next().done;class n7 extends rJ.NodeBase{constructor(_,q){super(_);Object.defineProperty(this,"schema",{value:q,configurable:!0,enumerable:!1,writable:!0})}clone(_){let q=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(_)q.schema=_;if(q.items=q.items.map(($)=>I1.isNode($)||I1.isPair($)?$.clone(_):$),this.range)q.range=this.range.slice();return q}addIn(_,q){if(s7(_))this.add(q);else{let[$,...Z]=_,X=this.get($,!0);if(I1.isCollection(X))X.addIn(Z,q);else if(X===void 0&&this.schema)this.set($,T9(this.schema,Z,q));else throw Error(`Expected YAML collection at ${$}. Remaining path: ${Z}`)}}deleteIn(_){let[q,...$]=_;if($.length===0)return this.delete(q);let Z=this.get(q,!0);if(I1.isCollection(Z))return Z.deleteIn($);else throw Error(`Expected YAML collection at ${q}. Remaining path: ${$}`)}getIn(_,q){let[$,...Z]=_,X=this.get($,!0);if(Z.length===0)return!q&&I1.isScalar(X)?X.value:X;else return I1.isCollection(X)?X.getIn(Z,q):void 0}hasAllNullValues(_){return this.items.every((q)=>{if(!I1.isPair(q))return!1;let $=q.value;return $==null||_&&I1.isScalar($)&&$.value==null&&!$.commentBefore&&!$.comment&&!$.tag})}hasIn(_){let[q,...$]=_;if($.length===0)return this.has(q);let Z=this.get(q,!0);return I1.isCollection(Z)?Z.hasIn($):!1}setIn(_,q){let[$,...Z]=_;if(Z.length===0)this.set($,q);else{let X=this.get($,!0);if(I1.isCollection(X))X.setIn(Z,q);else if(X===void 0&&this.schema)this.set($,T9(this.schema,Z,q));else throw Error(`Expected YAML collection at ${$}. Remaining path: ${Z}`)}}}sJ.Collection=n7;sJ.collectionFromPath=T9;sJ.isEmptyPath=s7});var N0=H((_W)=>{var tJ=(_)=>_.replace(/^(?!$)(?: $)?/gm,"#");function K9(_,q){if(/^\n+$/.test(_))return _.substring(1);return q?_.replace(/^(?! *$)/gm,q):_}var eJ=(_,q,$)=>_.endsWith(`
|
|
50
50
|
`)?K9($,q):$.includes(`
|
|
51
51
|
`)?`
|
|
52
|
-
`+K9($,q):(_.endsWith(" ")?"":" ")+$;
|
|
53
|
-
`){if($==="block")F=a7(_,F,q.length);V=F+q.length+Y,J=void 0}else{if(
|
|
52
|
+
`+K9($,q):(_.endsWith(" ")?"":" ")+$;_W.indentComment=K9;_W.lineComment=eJ;_W.stringifyComment=tJ});var o7=H((zW)=>{function XW(_,q,$="flow",{indentAtStart:Z,lineWidth:X=80,minContentWidth:z=20,onFold:U,onOverflow:Q}={}){if(!X||X<0)return _;if(X<z)z=0;let Y=Math.max(1+z,1+X-q.length);if(_.length<=Y)return _;let B=[],W={},V=X-q.length;if(typeof Z==="number")if(Z>X-Math.max(2,z))B.push(0);else V=X-Z;let J=void 0,G=void 0,L=!1,F=-1,I=-1,S=-1;if($==="block"){if(F=a7(_,F,q.length),F!==-1)V=F+Y}for(let A;A=_[F+=1];){if($==="quoted"&&A==="\\"){switch(I=F,_[F+1]){case"x":F+=3;break;case"u":F+=5;break;case"U":F+=9;break;default:F+=1}S=F}if(A===`
|
|
53
|
+
`){if($==="block")F=a7(_,F,q.length);V=F+q.length+Y,J=void 0}else{if(A===" "&&G&&G!==" "&&G!==`
|
|
54
54
|
`&&G!=="\t"){let E=_[F+1];if(E&&E!==" "&&E!==`
|
|
55
|
-
`&&E!=="\t")J=F}if(F>=V)if(J)B.push(J),V=J+Y,J=void 0;else if($==="quoted"){while(G===" "||G==="\t")G=
|
|
56
|
-
${q}${_.slice(0,
|
|
57
|
-
${q}${_.slice(E+1,
|
|
58
|
-
`);Z=q,X=q+1,z=_[X]}return Z}
|
|
59
|
-
`){if(z-U>Z)return!0;if(U=z+1,X-U<=Z)return!1}return!0}function
|
|
55
|
+
`&&E!=="\t")J=F}if(F>=V)if(J)B.push(J),V=J+Y,J=void 0;else if($==="quoted"){while(G===" "||G==="\t")G=A,A=_[F+=1],L=!0;let E=F>S+1?F-2:I-1;if(W[E])return _;B.push(E),W[E]=!0,V=E+Y,J=void 0}else L=!0}G=A}if(L&&Q)Q();if(B.length===0)return _;if(U)U();let j=_.slice(0,B[0]);for(let A=0;A<B.length;++A){let E=B[A],O=B[A+1]||_.length;if(E===0)j=`
|
|
56
|
+
${q}${_.slice(0,O)}`;else{if($==="quoted"&&W[E])j+=`${_[E]}\\`;j+=`
|
|
57
|
+
${q}${_.slice(E+1,O)}`}}return j}function a7(_,q,$){let Z=q,X=q+1,z=_[X];while(z===" "||z==="\t")if(q<X+$)z=_[++q];else{do z=_[++q];while(z&&z!==`
|
|
58
|
+
`);Z=q,X=q+1,z=_[X]}return Z}zW.FOLD_BLOCK="block";zW.FOLD_FLOW="flow";zW.FOLD_QUOTED="quoted";zW.foldFlowLines=XW});var f0=H((FW)=>{var W1=r(),N1=o7(),f_=(_,q)=>({indentAtStart:q?_.indent.length:_.indentAtStart,lineWidth:_.options.lineWidth,minContentWidth:_.options.minContentWidth}),E_=(_)=>/^(%|---|\.\.\.)/m.test(_);function JW(_,q,$){if(!q||q<0)return!1;let Z=q-$,X=_.length;if(X<=Z)return!1;for(let z=0,U=0;z<X;++z)if(_[z]===`
|
|
59
|
+
`){if(z-U>Z)return!0;if(U=z+1,X-U<=Z)return!1}return!0}function O0(_,q){let $=JSON.stringify(_);if(q.options.doubleQuotedAsJSON)return $;let{implicitKey:Z}=q,X=q.options.doubleQuotedMinMultiLineLength,z=q.indent||(E_(_)?" ":""),U="",Q=0;for(let Y=0,B=$[Y];B;B=$[++Y]){if(B===" "&&$[Y+1]==="\\"&&$[Y+2]==="n")U+=$.slice(Q,Y)+"\\ ",Y+=1,Q=Y,B="\\";if(B==="\\")switch($[Y+1]){case"u":{U+=$.slice(Q,Y);let W=$.substr(Y+2,4);switch(W){case"0000":U+="\\0";break;case"0007":U+="\\a";break;case"000b":U+="\\v";break;case"001b":U+="\\e";break;case"0085":U+="\\N";break;case"00a0":U+="\\_";break;case"2028":U+="\\L";break;case"2029":U+="\\P";break;default:if(W.substr(0,2)==="00")U+="\\x"+W.substr(2);else U+=$.substr(Y,6)}Y+=5,Q=Y+1}break;case"n":if(Z||$[Y+2]==='"'||$.length<X)Y+=1;else{U+=$.slice(Q,Y)+`
|
|
60
60
|
|
|
61
61
|
`;while($[Y+2]==="\\"&&$[Y+3]==="n"&&$[Y+4]!=='"')U+=`
|
|
62
|
-
`,Y+=2;if(U+=z,$[Y+2]===" ")U+="\\";Y+=1,Q=Y+1}break;default:Y+=1}}return U=Q?U+$.slice(Q):$,Z?U:
|
|
63
|
-
`)||/[ \t]\n|\n[ \t]/.test(_))return
|
|
64
|
-
${$}`)+"'";return q.implicitKey?Z:
|
|
62
|
+
`,Y+=2;if(U+=z,$[Y+2]===" ")U+="\\";Y+=1,Q=Y+1}break;default:Y+=1}}return U=Q?U+$.slice(Q):$,Z?U:N1.foldFlowLines(U,z,N1.FOLD_QUOTED,f_(q,!1))}function D9(_,q){if(q.options.singleQuote===!1||q.implicitKey&&_.includes(`
|
|
63
|
+
`)||/[ \t]\n|\n[ \t]/.test(_))return O0(_,q);let $=q.indent||(E_(_)?" ":""),Z="'"+_.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
64
|
+
${$}`)+"'";return q.implicitKey?Z:N1.foldFlowLines(Z,$,N1.FOLD_FLOW,f_(q,!1))}function X0(_,q){let{singleQuote:$}=q.options,Z;if($===!1)Z=O0;else{let X=_.includes('"'),z=_.includes("'");if(X&&!z)Z=D9;else if(z&&!X)Z=O0;else Z=$?D9:O0}return Z(_,q)}var S9;try{S9=new RegExp(`(^|(?<!
|
|
65
65
|
))
|
|
66
66
|
+(?!
|
|
67
|
-
|$)`,"g")}catch{
|
|
67
|
+
|$)`,"g")}catch{S9=/\n+(?!\n|$)/g}function O_({comment:_,type:q,value:$},Z,X,z){let{blockQuote:U,commentString:Q,lineWidth:Y}=Z.options;if(!U||/\n[\t ]+$/.test($))return X0($,Z);let B=Z.indent||(Z.forceBlockIndent||E_($)?" ":""),W=U==="literal"?!0:U==="folded"||q===W1.Scalar.BLOCK_FOLDED?!1:q===W1.Scalar.BLOCK_LITERAL?!0:!JW($,Y,B.length);if(!$)return W?`|
|
|
68
68
|
`:`>
|
|
69
|
-
`;let V,J;for(J=$.length;J>0;--J){let
|
|
70
|
-
`&&
|
|
69
|
+
`;let V,J;for(J=$.length;J>0;--J){let O=$[J-1];if(O!==`
|
|
70
|
+
`&&O!=="\t"&&O!==" ")break}let G=$.substring(J),L=G.indexOf(`
|
|
71
71
|
`);if(L===-1)V="-";else if($===G||L!==G.length-1){if(V="+",z)z()}else V="";if(G){if($=$.slice(0,-G.length),G[G.length-1]===`
|
|
72
|
-
`)G=G.slice(0,-1);G=G.replace(
|
|
73
|
-
`)
|
|
74
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${B}`),
|
|
75
|
-
${B}${
|
|
76
|
-
${B}${j}${$}${G}`}function
|
|
72
|
+
`)G=G.slice(0,-1);G=G.replace(S9,`$&${B}`)}let F=!1,I,S=-1;for(I=0;I<$.length;++I){let O=$[I];if(O===" ")F=!0;else if(O===`
|
|
73
|
+
`)S=I;else break}let j=$.substring(0,S<I?S+1:I);if(j)$=$.substring(j.length),j=j.replace(/\n+/g,`$&${B}`);let E=(F?B?"2":"1":"")+V;if(_){if(E+=" "+Q(_.replace(/ ?[\r\n]+/g," ")),X)X()}if(!W){let O=$.replace(/\n+/g,`
|
|
74
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${B}`),w=!1,C=f_(Z,!0);if(U!=="folded"&&q!==W1.Scalar.BLOCK_FOLDED)C.onOverflow=()=>{w=!0};let M=N1.foldFlowLines(`${j}${O}${G}`,B,N1.FOLD_BLOCK,C);if(!w)return`>${E}
|
|
75
|
+
${B}${M}`}return $=$.replace(/\n+/g,`$&${B}`),`|${E}
|
|
76
|
+
${B}${j}${$}${G}`}function WW(_,q,$,Z){let{type:X,value:z}=_,{actualString:U,implicitKey:Q,indent:Y,indentStep:B,inFlow:W}=q;if(Q&&z.includes(`
|
|
77
77
|
`)||W&&/[[\]{},]/.test(z))return X0(z,q);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(z))return Q||W||!z.includes(`
|
|
78
|
-
`)?X0(z,q):
|
|
79
|
-
`))return
|
|
80
|
-
${Y}`);if(U){let J=(F)=>F.default&&F.tag!=="tag:yaml.org,2002:str"&&F.test?.test(V),{compat:G,tags:L}=q.doc.schema;if(L.some(J)||G?.some(J))return X0(z,q)}return Q?V:
|
|
81
|
-
${q.indent}${Q}`}
|
|
82
|
-
${Q}:`}else if(
|
|
83
|
-
`:"",j){let
|
|
84
|
-
${C0.indentComment(
|
|
85
|
-
|
|
78
|
+
`)?X0(z,q):O_(_,q,$,Z);if(!Q&&!W&&X!==W1.Scalar.PLAIN&&z.includes(`
|
|
79
|
+
`))return O_(_,q,$,Z);if(E_(z)){if(Y==="")return q.forceBlockIndent=!0,O_(_,q,$,Z);else if(Q&&Y===B)return X0(z,q)}let V=z.replace(/\n+/g,`$&
|
|
80
|
+
${Y}`);if(U){let J=(F)=>F.default&&F.tag!=="tag:yaml.org,2002:str"&&F.test?.test(V),{compat:G,tags:L}=q.doc.schema;if(L.some(J)||G?.some(J))return X0(z,q)}return Q?V:N1.foldFlowLines(V,Y,N1.FOLD_FLOW,f_(q,!1))}function VW(_,q,$,Z){let{implicitKey:X,inFlow:z}=q,U=typeof _.value==="string"?_:Object.assign({},_,{value:String(_.value)}),{type:Q}=_;if(Q!==W1.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(U.value))Q=W1.Scalar.QUOTE_DOUBLE}let Y=(W)=>{switch(W){case W1.Scalar.BLOCK_FOLDED:case W1.Scalar.BLOCK_LITERAL:return X||z?X0(U.value,q):O_(U,q,$,Z);case W1.Scalar.QUOTE_DOUBLE:return O0(U.value,q);case W1.Scalar.QUOTE_SINGLE:return D9(U.value,q);case W1.Scalar.PLAIN:return WW(U,q,$,Z);default:return null}},B=Y(Q);if(B===null){let{defaultKeyType:W,defaultStringType:V}=q.options,J=X&&W||V;if(B=Y(J),B===null)throw Error(`Unsupported default string type ${J}`)}return B}FW.stringifyString=VW});var E0=H((SW)=>{var LW=P_(),O1=g(),MW=N0(),HW=f0();function IW(_,q){let $=Object.assign({blockQuote:!0,commentString:MW.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},_.schema.toStringOptions,q),Z;switch($.collectionStyle){case"block":Z=!1;break;case"flow":Z=!0;break;default:Z=null}return{anchors:new Set,doc:_,flowCollectionPadding:$.flowCollectionPadding?" ":"",indent:"",indentStep:typeof $.indent==="number"?" ".repeat($.indent):" ",inFlow:Z,options:$}}function TW(_,q){if(q.tag){let X=_.filter((z)=>z.tag===q.tag);if(X.length>0)return X.find((z)=>z.format===q.format)??X[0]}let $=void 0,Z;if(O1.isScalar(q)){Z=q.value;let X=_.filter((z)=>z.identify?.(Z));if(X.length>1){let z=X.filter((U)=>U.test);if(z.length>0)X=z}$=X.find((z)=>z.format===q.format)??X.find((z)=>!z.format)}else Z=q,$=_.find((X)=>X.nodeClass&&Z instanceof X.nodeClass);if(!$){let X=Z?.constructor?.name??(Z===null?"null":typeof Z);throw Error(`Tag not resolved for ${X} value`)}return $}function KW(_,q,{anchors:$,doc:Z}){if(!Z.directives)return"";let X=[],z=(O1.isScalar(_)||O1.isCollection(_))&&_.anchor;if(z&&LW.anchorIsValid(z))$.add(z),X.push(`&${z}`);let U=_.tag??(q.default?null:q.tag);if(U)X.push(Z.directives.tagString(U));return X.join(" ")}function DW(_,q,$,Z){if(O1.isPair(_))return _.toString(q,$,Z);if(O1.isAlias(_)){if(q.doc.directives)return _.toString(q);if(q.resolvedAliases?.has(_))throw TypeError("Cannot stringify circular structure without alias nodes");else{if(q.resolvedAliases)q.resolvedAliases.add(_);else q.resolvedAliases=new Set([_]);_=_.resolve(q.doc)}}let X=void 0,z=O1.isNode(_)?_:q.doc.createNode(_,{onTagObj:(Y)=>X=Y});X??(X=TW(q.doc.schema.tags,z));let U=KW(z,X,q);if(U.length>0)q.indentAtStart=(q.indentAtStart??0)+U.length+1;let Q=typeof X.stringify==="function"?X.stringify(z,q,$,Z):O1.isScalar(z)?HW.stringifyString(z,q,$,Z):z.toString(q,$,Z);if(!U)return Q;return O1.isScalar(z)||Q[0]==="{"||Q[0]==="["?`${U} ${Q}`:`${U}
|
|
81
|
+
${q.indent}${Q}`}SW.createStringifyContext=IW;SW.stringify=DW});var _8=H((AW)=>{var S1=g(),t7=r(),e7=E0(),C0=N0();function PW({key:_,value:q},$,Z,X){let{allNullValues:z,doc:U,indent:Q,indentStep:Y,options:{commentString:B,indentSeq:W,simpleKeys:V}}=$,J=S1.isNode(_)&&_.comment||null;if(V){if(J)throw Error("With simple keys, key nodes cannot have comments");if(S1.isCollection(_)||!S1.isNode(_)&&typeof _==="object")throw Error("With simple keys, collection cannot be used as a key value")}let G=!V&&(!_||J&&q==null&&!$.inFlow||S1.isCollection(_)||(S1.isScalar(_)?_.type===t7.Scalar.BLOCK_FOLDED||_.type===t7.Scalar.BLOCK_LITERAL:typeof _==="object"));$=Object.assign({},$,{allNullValues:!1,implicitKey:!G&&(V||!z),indent:Q+Y});let L=!1,F=!1,I=e7.stringify(_,$,()=>L=!0,()=>F=!0);if(!G&&!$.inFlow&&I.length>1024){if(V)throw Error("With simple keys, single line scalar must not span more than 1024 characters");G=!0}if($.inFlow){if(z||q==null){if(L&&Z)Z();return I===""?"?":G?`? ${I}`:I}}else if(z&&!V||q==null&&G){if(I=`? ${I}`,J&&!L)I+=C0.lineComment(I,$.indent,B(J));else if(F&&X)X();return I}if(L)J=null;if(G){if(J)I+=C0.lineComment(I,$.indent,B(J));I=`? ${I}
|
|
82
|
+
${Q}:`}else if(I=`${I}:`,J)I+=C0.lineComment(I,$.indent,B(J));let S,j,A;if(S1.isNode(q))S=!!q.spaceBefore,j=q.commentBefore,A=q.comment;else if(S=!1,j=null,A=null,q&&typeof q==="object")q=U.createNode(q);if($.implicitKey=!1,!G&&!J&&S1.isScalar(q))$.indentAtStart=I.length+1;if(F=!1,!W&&Y.length>=2&&!$.inFlow&&!G&&S1.isSeq(q)&&!q.flow&&!q.tag&&!q.anchor)$.indent=$.indent.substring(2);let E=!1,O=e7.stringify(q,$,()=>E=!0,()=>F=!0),w=" ";if(J||S||j){if(w=S?`
|
|
83
|
+
`:"",j){let C=B(j);w+=`
|
|
84
|
+
${C0.indentComment(C,$.indent)}`}if(O===""&&!$.inFlow){if(w===`
|
|
85
|
+
`&&A)w=`
|
|
86
86
|
|
|
87
|
-
`}else
|
|
88
|
-
${$.indent}`}else if(!G&&
|
|
89
|
-
`),
|
|
90
|
-
${$.indent}`}}else if(
|
|
91
|
-
`)
|
|
87
|
+
`}else w+=`
|
|
88
|
+
${$.indent}`}else if(!G&&S1.isCollection(q)){let C=O[0],M=O.indexOf(`
|
|
89
|
+
`),f=M!==-1,u=$.inFlow??q.flow??q.items.length===0;if(f||!u){let D=!1;if(f&&(C==="&"||C==="!")){let b=O.indexOf(" ");if(C==="&"&&b!==-1&&b<M&&O[b+1]==="!")b=O.indexOf(" ",b+1);if(b===-1||M<b)D=!0}if(!D)w=`
|
|
90
|
+
${$.indent}`}}else if(O===""||O[0]===`
|
|
91
|
+
`)w="";if(I+=w+O,$.inFlow){if(E&&Z)Z()}else if(A&&!E)I+=C0.lineComment(I,$.indent,B(A));else if(F&&X)X();return I}AW.stringifyPair=PW});var w9=H((fW)=>{var q8=x("process");function NW(_,...q){if(_==="debug")console.log(...q)}function OW(_,q){if(_==="debug"||_==="warn")if(typeof q8.emitWarning==="function")q8.emitWarning(q);else console.warn(q)}fW.debug=NW;fW.warn=OW});var y_=H((yW)=>{var b0=g(),$8=r(),C_="<<",b_={identify:(_)=>_===C_||typeof _==="symbol"&&_.description===C_,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new $8.Scalar(Symbol(C_)),{addToJSMap:Z8}),stringify:()=>C_},bW=(_,q)=>(b_.identify(q)||b0.isScalar(q)&&(!q.type||q.type===$8.Scalar.PLAIN)&&b_.identify(q.value))&&_?.doc.schema.tags.some(($)=>$.tag===b_.tag&&$.default);function Z8(_,q,$){if($=_&&b0.isAlias($)?$.resolve(_.doc):$,b0.isSeq($))for(let Z of $.items)R9(_,q,Z);else if(Array.isArray($))for(let Z of $)R9(_,q,Z);else R9(_,q,$)}function R9(_,q,$){let Z=_&&b0.isAlias($)?$.resolve(_.doc):$;if(!b0.isMap(Z))throw Error("Merge sources must be maps or map aliases");let X=Z.toJSON(null,_,Map);for(let[z,U]of X)if(q instanceof Map){if(!q.has(z))q.set(z,U)}else if(q instanceof Set)q.add(z);else if(!Object.prototype.hasOwnProperty.call(q,z))Object.defineProperty(q,z,{value:U,writable:!0,enumerable:!0,configurable:!0});return q}yW.addMergeToJSMap=Z8;yW.isMergeKey=bW;yW.merge=b_});var A9=H((dW)=>{var kW=w9(),X8=y_(),vW=E0(),z8=g(),P9=j1();function uW(_,q,{key:$,value:Z}){if(z8.isNode($)&&$.addToJSMap)$.addToJSMap(_,q,Z);else if(X8.isMergeKey(_,$))X8.addMergeToJSMap(_,q,Z);else{let X=P9.toJS($,"",_);if(q instanceof Map)q.set(X,P9.toJS(Z,X,_));else if(q instanceof Set)q.add(X);else{let z=mW($,X,_),U=P9.toJS(Z,z,_);if(z in q)Object.defineProperty(q,z,{value:U,writable:!0,enumerable:!0,configurable:!0});else q[z]=U}}return q}function mW(_,q,$){if(q===null)return"";if(typeof q!=="object")return String(q);if(z8.isNode(_)&&$?.doc){let Z=vW.createStringifyContext($.doc,{});Z.anchors=new Set;for(let z of $.anchors.keys())Z.anchors.add(z.anchor);Z.inFlow=!0,Z.inStringifyKey=!0;let X=_.toString(Z);if(!$.mapKeyWarned){let z=JSON.stringify(X);if(z.length>40)z=z.substring(0,36)+'..."';kW.warn($.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${z}. Set mapAsMap: true to use object keys.`),$.mapKeyWarned=!0}return X}return JSON.stringify(q)}dW.addPairToJSMap=uW});var f1=H((rW)=>{var U8=j0(),iW=_8(),cW=A9(),h_=g();function pW(_,q,$){let Z=U8.createNode(_,void 0,$),X=U8.createNode(q,void 0,$);return new x_(Z,X)}class x_{constructor(_,q=null){Object.defineProperty(this,h_.NODE_TYPE,{value:h_.PAIR}),this.key=_,this.value=q}clone(_){let{key:q,value:$}=this;if(h_.isNode(q))q=q.clone(_);if(h_.isNode($))$=$.clone(_);return new x_(q,$)}toJSON(_,q){let $=q?.mapAsMap?new Map:{};return cW.addPairToJSMap(q,$,this)}toString(_,q,$){return _?.doc?iW.stringifyPair(this,_,q,$):JSON.stringify(this)}}rW.Pair=x_;rW.createPair=pW});var j9=H((eW)=>{var d1=g(),Q8=E0(),g_=N0();function aW(_,q,$){return(q.inFlow??_.flow?tW:oW)(_,q,$)}function oW({comment:_,items:q},$,{blockItemPrefix:Z,flowChars:X,itemIndent:z,onChompKeep:U,onComment:Q}){let{indent:Y,options:{commentString:B}}=$,W=Object.assign({},$,{indent:z,type:null}),V=!1,J=[];for(let L=0;L<q.length;++L){let F=q[L],I=null;if(d1.isNode(F)){if(!V&&F.spaceBefore)J.push("");if(k_($,J,F.commentBefore,V),F.comment)I=F.comment}else if(d1.isPair(F)){let j=d1.isNode(F.key)?F.key:null;if(j){if(!V&&j.spaceBefore)J.push("");k_($,J,j.commentBefore,V)}}V=!1;let S=Q8.stringify(F,W,()=>I=null,()=>V=!0);if(I)S+=g_.lineComment(S,z,B(I));if(V&&I)V=!1;J.push(Z+S)}let G;if(J.length===0)G=X.start+X.end;else{G=J[0];for(let L=1;L<J.length;++L){let F=J[L];G+=F?`
|
|
92
92
|
${Y}${F}`:`
|
|
93
93
|
`}}if(_){if(G+=`
|
|
94
|
-
`+g_.indentComment(B(_),Y),Q)Q()}else if(V&&U)U();return G}function
|
|
95
|
-
`)))B=!0;V.push(
|
|
94
|
+
`+g_.indentComment(B(_),Y),Q)Q()}else if(V&&U)U();return G}function tW({items:_},q,{flowChars:$,itemIndent:Z}){let{indent:X,indentStep:z,flowCollectionPadding:U,options:{commentString:Q}}=q;Z+=z;let Y=Object.assign({},q,{indent:Z,inFlow:!0,type:null}),B=!1,W=0,V=[];for(let L=0;L<_.length;++L){let F=_[L],I=null;if(d1.isNode(F)){if(F.spaceBefore)V.push("");if(k_(q,V,F.commentBefore,!1),F.comment)I=F.comment}else if(d1.isPair(F)){let j=d1.isNode(F.key)?F.key:null;if(j){if(j.spaceBefore)V.push("");if(k_(q,V,j.commentBefore,!1),j.comment)B=!0}let A=d1.isNode(F.value)?F.value:null;if(A){if(A.comment)I=A.comment;if(A.commentBefore)B=!0}else if(F.value==null&&j?.comment)I=j.comment}if(I)B=!0;let S=Q8.stringify(F,Y,()=>I=null);if(L<_.length-1)S+=",";if(I)S+=g_.lineComment(S,Z,Q(I));if(!B&&(V.length>W||S.includes(`
|
|
95
|
+
`)))B=!0;V.push(S),W=V.length}let{start:J,end:G}=$;if(V.length===0)return J+G;else{if(!B){let L=V.reduce((F,I)=>F+I.length+2,2);B=q.options.lineWidth>0&&L>q.options.lineWidth}if(B){let L=J;for(let F of V)L+=F?`
|
|
96
96
|
${z}${X}${F}`:`
|
|
97
97
|
`;return`${L}
|
|
98
|
-
${X}${G}`}else return`${J}${U}${V.join(" ")}${U}${G}`}}function k_({indent:_,options:{commentString:q}},$,Z,X){if(Z&&X)Z=Z.replace(/^\n+/,"");if(Z){let z=g_.indentComment(q(Z),_);$.push(z.trimStart())}}
|
|
99
|
-
`:" ")}return
|
|
98
|
+
${X}${G}`}else return`${J}${U}${V.join(" ")}${U}${G}`}}function k_({indent:_,options:{commentString:q}},$,Z,X){if(Z&&X)Z=Z.replace(/^\n+/,"");if(Z){let z=g_.indentComment(q(Z),_);$.push(z.trimStart())}}eW.stringifyCollection=aW});var C1=H((zV)=>{var qV=j9(),$V=A9(),ZV=N_(),E1=g(),v_=f1(),XV=r();function y0(_,q){let $=E1.isScalar(q)?q.value:q;for(let Z of _)if(E1.isPair(Z)){if(Z.key===q||Z.key===$)return Z;if(E1.isScalar(Z.key)&&Z.key.value===$)return Z}return}class Y8 extends ZV.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(_){super(E1.MAP,_);this.items=[]}static from(_,q,$){let{keepUndefined:Z,replacer:X}=$,z=new this(_),U=(Q,Y)=>{if(typeof X==="function")Y=X.call(q,Q,Y);else if(Array.isArray(X)&&!X.includes(Q))return;if(Y!==void 0||Z)z.items.push(v_.createPair(Q,Y,$))};if(q instanceof Map)for(let[Q,Y]of q)U(Q,Y);else if(q&&typeof q==="object")for(let Q of Object.keys(q))U(Q,q[Q]);if(typeof _.sortMapEntries==="function")z.items.sort(_.sortMapEntries);return z}add(_,q){let $;if(E1.isPair(_))$=_;else if(!_||typeof _!=="object"||!("key"in _))$=new v_.Pair(_,_?.value);else $=new v_.Pair(_.key,_.value);let Z=y0(this.items,$.key),X=this.schema?.sortMapEntries;if(Z){if(!q)throw Error(`Key ${$.key} already set`);if(E1.isScalar(Z.value)&&XV.isScalarValue($.value))Z.value.value=$.value;else Z.value=$.value}else if(X){let z=this.items.findIndex((U)=>X($,U)<0);if(z===-1)this.items.push($);else this.items.splice(z,0,$)}else this.items.push($)}delete(_){let q=y0(this.items,_);if(!q)return!1;return this.items.splice(this.items.indexOf(q),1).length>0}get(_,q){let Z=y0(this.items,_)?.value;return(!q&&E1.isScalar(Z)?Z.value:Z)??void 0}has(_){return!!y0(this.items,_)}set(_,q){this.add(new v_.Pair(_,q),!0)}toJSON(_,q,$){let Z=$?new $:q?.mapAsMap?new Map:{};if(q?.onCreate)q.onCreate(Z);for(let X of this.items)$V.addPairToJSMap(q,Z,X);return Z}toString(_,q,$){if(!_)return JSON.stringify(this);for(let Z of this.items)if(!E1.isPair(Z))throw Error(`Map items must all be pairs; found ${JSON.stringify(Z)} instead`);if(!_.allNullValues&&this.hasAllNullValues(!1))_=Object.assign({},_,{allNullValues:!0});return qV.stringifyCollection(this,_,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:_.indent||"",onChompKeep:$,onComment:q})}}zV.YAMLMap=Y8;zV.findPair=y0});var z0=H((JV)=>{var YV=g(),B8=C1(),BV={collection:"map",default:!0,nodeClass:B8.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(_,q){if(!YV.isMap(_))q("Expected a mapping for this tag");return _},createNode:(_,q,$)=>B8.YAMLMap.from(_,q,$)};JV.map=BV});var b1=H((HV)=>{var VV=j0(),FV=j9(),GV=N_(),m_=g(),LV=r(),MV=j1();class J8 extends GV.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(_){super(m_.SEQ,_);this.items=[]}add(_){this.items.push(_)}delete(_){let q=u_(_);if(typeof q!=="number")return!1;return this.items.splice(q,1).length>0}get(_,q){let $=u_(_);if(typeof $!=="number")return;let Z=this.items[$];return!q&&m_.isScalar(Z)?Z.value:Z}has(_){let q=u_(_);return typeof q==="number"&&q<this.items.length}set(_,q){let $=u_(_);if(typeof $!=="number")throw Error(`Expected a valid index, not ${_}.`);let Z=this.items[$];if(m_.isScalar(Z)&&LV.isScalarValue(q))Z.value=q;else this.items[$]=q}toJSON(_,q){let $=[];if(q?.onCreate)q.onCreate($);let Z=0;for(let X of this.items)$.push(MV.toJS(X,String(Z++),q));return $}toString(_,q,$){if(!_)return JSON.stringify(this);return FV.stringifyCollection(this,_,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(_.indent||"")+" ",onChompKeep:$,onComment:q})}static from(_,q,$){let{replacer:Z}=$,X=new this(_);if(q&&Symbol.iterator in Object(q)){let z=0;for(let U of q){if(typeof Z==="function"){let Q=q instanceof Set?U:String(z++);U=Z.call(q,Q,U)}X.items.push(VV.createNode(U,void 0,$))}}return X}}function u_(_){let q=m_.isScalar(_)?_.value:_;if(q&&typeof q==="string")q=Number(q);return typeof q==="number"&&Number.isInteger(q)&&q>=0?q:null}HV.YAMLSeq=J8});var U0=H((DV)=>{var TV=g(),W8=b1(),KV={collection:"seq",default:!0,nodeClass:W8.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(_,q){if(!TV.isSeq(_))q("Expected a sequence for this tag");return _},createNode:(_,q,$)=>W8.YAMLSeq.from(_,q,$)};DV.seq=KV});var h0=H((PV)=>{var wV=f0(),RV={identify:(_)=>typeof _==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(_)=>_,stringify(_,q,$,Z){return q=Object.assign({actualString:!0},q),wV.stringifyString(_,q,$,Z)}};PV.string=RV});var d_=H((jV)=>{var V8=r(),F8={identify:(_)=>_==null,createNode:()=>new V8.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new V8.Scalar(null),stringify:({source:_},q)=>typeof _==="string"&&F8.test.test(_)?_:q.options.nullStr};jV.nullTag=F8});var N9=H((fV)=>{var OV=r(),G8={identify:(_)=>typeof _==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(_)=>new OV.Scalar(_[0]==="t"||_[0]==="T"),stringify({source:_,value:q},$){if(_&&G8.test.test(_)){let Z=_[0]==="t"||_[0]==="T";if(q===Z)return _}return q?$.options.trueStr:$.options.falseStr}};fV.boolTag=G8});var Q0=H((bV)=>{function CV({format:_,minFractionDigits:q,tag:$,value:Z}){if(typeof Z==="bigint")return String(Z);let X=typeof Z==="number"?Z:Number(Z);if(!isFinite(X))return isNaN(X)?".nan":X<0?"-.inf":".inf";let z=Object.is(Z,-0)?"-0":JSON.stringify(Z);if(!_&&q&&(!$||$==="tag:yaml.org,2002:float")&&/^\d/.test(z)){let U=z.indexOf(".");if(U<0)U=z.length,z+=".";let Q=q-(z.length-U-1);while(Q-- >0)z+="0"}return z}bV.stringifyNumber=CV});var f9=H((vV)=>{var hV=r(),O9=Q0(),xV={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(_)=>_.slice(-3).toLowerCase()==="nan"?NaN:_[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:O9.stringifyNumber},gV={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:(_)=>parseFloat(_),stringify(_){let q=Number(_.value);return isFinite(q)?q.toExponential():O9.stringifyNumber(_)}},kV={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(_){let q=new hV.Scalar(parseFloat(_)),$=_.indexOf(".");if($!==-1&&_[_.length-1]==="0")q.minFractionDigits=_.length-$-1;return q},stringify:O9.stringifyNumber};vV.float=kV;vV.floatExp=gV;vV.floatNaN=xV});var C9=H((pV)=>{var L8=Q0(),l_=(_)=>typeof _==="bigint"||Number.isInteger(_),E9=(_,q,$,{intAsBigInt:Z})=>Z?BigInt(_):parseInt(_.substring(q),$);function M8(_,q,$){let{value:Z}=_;if(l_(Z)&&Z>=0)return $+Z.toString(q);return L8.stringifyNumber(_)}var lV={identify:(_)=>l_(_)&&_>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(_,q,$)=>E9(_,2,8,$),stringify:(_)=>M8(_,8,"0o")},iV={identify:l_,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(_,q,$)=>E9(_,0,10,$),stringify:L8.stringifyNumber},cV={identify:(_)=>l_(_)&&_>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(_,q,$)=>E9(_,2,16,$),stringify:(_)=>M8(_,16,"0x")};pV.int=iV;pV.intHex=cV;pV.intOct=lV});var H8=H(($F)=>{var aV=z0(),oV=d_(),tV=U0(),eV=h0(),_F=N9(),b9=f9(),y9=C9(),qF=[aV.map,tV.seq,eV.string,oV.nullTag,_F.boolTag,y9.intOct,y9.int,y9.intHex,b9.floatNaN,b9.floatExp,b9.float];$F.schema=qF});var T8=H((JF)=>{var XF=r(),zF=z0(),UF=U0();function I8(_){return typeof _==="bigint"||Number.isInteger(_)}var i_=({value:_})=>JSON.stringify(_),QF=[{identify:(_)=>typeof _==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(_)=>_,stringify:i_},{identify:(_)=>_==null,createNode:()=>new XF.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:i_},{identify:(_)=>typeof _==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:(_)=>_==="true",stringify:i_},{identify:I8,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(_,q,{intAsBigInt:$})=>$?BigInt(_):parseInt(_,10),stringify:({value:_})=>I8(_)?_.toString():JSON.stringify(_)},{identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:(_)=>parseFloat(_),stringify:i_}],YF={default:!0,tag:"",test:/^/,resolve(_,q){return q(`Unresolved plain scalar ${JSON.stringify(_)}`),_}},BF=[zF.map,UF.seq].concat(QF,YF);JF.schema=BF});var x9=H((GF)=>{var x0=x("buffer"),h9=r(),VF=f0(),FF={identify:(_)=>_ instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(_,q){if(typeof x0.Buffer==="function")return x0.Buffer.from(_,"base64");else if(typeof atob==="function"){let $=atob(_.replace(/[\n\r]/g,"")),Z=new Uint8Array($.length);for(let X=0;X<$.length;++X)Z[X]=$.charCodeAt(X);return Z}else return q("This environment does not support reading binary tags; either Buffer or atob is required"),_},stringify({comment:_,type:q,value:$},Z,X,z){if(!$)return"";let U=$,Q;if(typeof x0.Buffer==="function")Q=U instanceof x0.Buffer?U.toString("base64"):x0.Buffer.from(U.buffer).toString("base64");else if(typeof btoa==="function"){let Y="";for(let B=0;B<U.length;++B)Y+=String.fromCharCode(U[B]);Q=btoa(Y)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(q??(q=h9.Scalar.BLOCK_LITERAL),q!==h9.Scalar.QUOTE_DOUBLE){let Y=Math.max(Z.options.lineWidth-Z.indent.length,Z.options.minContentWidth),B=Math.ceil(Q.length/Y),W=Array(B);for(let V=0,J=0;V<B;++V,J+=Y)W[V]=Q.substr(J,Y);Q=W.join(q===h9.Scalar.BLOCK_LITERAL?`
|
|
99
|
+
`:" ")}return VF.stringifyString({comment:_,type:q,value:Q},Z,X,z)}};GF.binary=FF});var p_=H((TF)=>{var c_=g(),g9=f1(),MF=r(),HF=b1();function K8(_,q){if(c_.isSeq(_))for(let $=0;$<_.items.length;++$){let Z=_.items[$];if(c_.isPair(Z))continue;else if(c_.isMap(Z)){if(Z.items.length>1)q("Each pair must have its own sequence indicator");let X=Z.items[0]||new g9.Pair(new MF.Scalar(null));if(Z.commentBefore)X.key.commentBefore=X.key.commentBefore?`${Z.commentBefore}
|
|
100
100
|
${X.key.commentBefore}`:Z.commentBefore;if(Z.comment){let z=X.value??X.key;z.comment=z.comment?`${Z.comment}
|
|
101
|
-
${z.comment}`:Z.comment}Z=X}_.items[$]=c_.isPair(Z)?Z:new g9.Pair(Z)}else q("Expected a sequence for this tag");return _}function D8(_,q,$){let{replacer:Z}=$,X=new FF.YAMLSeq(_);X.tag="tag:yaml.org,2002:pairs";let z=0;if(q&&Symbol.iterator in Object(q))for(let U of q){if(typeof Z==="function")U=Z.call(q,String(z++),U);let Q,Y;if(Array.isArray(U))if(U.length===2)Q=U[0],Y=U[1];else throw TypeError(`Expected [key, value] tuple: ${U}`);else if(U&&U instanceof Object){let B=Object.keys(U);if(B.length===1)Q=B[0],Y=U[Q];else throw TypeError(`Expected tuple with one key, not ${B.length} keys`)}else Q=U;X.items.push(g9.createPair(Q,Y,$))}return X}var GF={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:K8,createNode:D8};LF.createPairs=D8;LF.pairs=GF;LF.resolvePairs=K8});var v9=H((DF)=>{var w8=g(),k9=j1(),g0=E1(),TF=C1(),S8=p_();class d1 extends TF.YAMLSeq{constructor(){super();this.add=g0.YAMLMap.prototype.add.bind(this),this.delete=g0.YAMLMap.prototype.delete.bind(this),this.get=g0.YAMLMap.prototype.get.bind(this),this.has=g0.YAMLMap.prototype.has.bind(this),this.set=g0.YAMLMap.prototype.set.bind(this),this.tag=d1.tag}toJSON(_,q){if(!q)return super.toJSON(_);let $=new Map;if(q?.onCreate)q.onCreate($);for(let Z of this.items){let X,z;if(w8.isPair(Z))X=k9.toJS(Z.key,"",q),z=k9.toJS(Z.value,X,q);else X=k9.toJS(Z,"",q);if($.has(X))throw Error("Ordered maps must not include duplicate keys");$.set(X,z)}return $}static from(_,q,$){let Z=S8.createPairs(_,q,$),X=new this;return X.items=Z.items,X}}d1.tag="tag:yaml.org,2002:omap";var KF={collection:"seq",identify:(_)=>_ instanceof Map,nodeClass:d1,default:!1,tag:"tag:yaml.org,2002:omap",resolve(_,q){let $=S8.resolvePairs(_,q),Z=[];for(let{key:X}of $.items)if(w8.isScalar(X))if(Z.includes(X.value))q(`Ordered maps must not include duplicate keys: ${X.value}`);else Z.push(X.value);return Object.assign(new d1,$)},createNode:(_,q,$)=>d1.from(_,q,$)};DF.YAMLOMap=d1;DF.omap=KF});var O8=H((RF)=>{var R8=r();function P8({value:_,source:q},$){if(q&&(_?j8:A8).test.test(q))return q;return _?$.options.trueStr:$.options.falseStr}var j8={identify:(_)=>_===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new R8.Scalar(!0),stringify:P8},A8={identify:(_)=>_===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new R8.Scalar(!1),stringify:P8};RF.falseTag=A8;RF.trueTag=j8});var N8=H((EF)=>{var AF=r(),u9=Q0(),OF={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(_)=>_.slice(-3).toLowerCase()==="nan"?NaN:_[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:u9.stringifyNumber},NF={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(_)=>parseFloat(_.replace(/_/g,"")),stringify(_){let q=Number(_.value);return isFinite(q)?q.toExponential():u9.stringifyNumber(_)}},fF={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(_){let q=new AF.Scalar(parseFloat(_.replace(/_/g,""))),$=_.indexOf(".");if($!==-1){let Z=_.substring($+1).replace(/_/g,"");if(Z[Z.length-1]==="0")q.minFractionDigits=Z.length}return q},stringify:u9.stringifyNumber};EF.float=fF;EF.floatExp=NF;EF.floatNaN=OF});var E8=H((vF)=>{var f8=Q0(),k0=(_)=>typeof _==="bigint"||Number.isInteger(_);function r_(_,q,$,{intAsBigInt:Z}){let X=_[0];if(X==="-"||X==="+")q+=1;if(_=_.substring(q).replace(/_/g,""),Z){switch($){case 2:_=`0b${_}`;break;case 8:_=`0o${_}`;break;case 16:_=`0x${_}`;break}let U=BigInt(_);return X==="-"?BigInt(-1)*U:U}let z=parseInt(_,$);return X==="-"?-1*z:z}function m9(_,q,$){let{value:Z}=_;if(k0(Z)){let X=Z.toString(q);return Z<0?"-"+$+X.substr(1):$+X}return f8.stringifyNumber(_)}var hF={identify:k0,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(_,q,$)=>r_(_,2,2,$),stringify:(_)=>m9(_,2,"0b")},xF={identify:k0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(_,q,$)=>r_(_,1,8,$),stringify:(_)=>m9(_,8,"0")},gF={identify:k0,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(_,q,$)=>r_(_,0,10,$),stringify:f8.stringifyNumber},kF={identify:k0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(_,q,$)=>r_(_,2,16,$),stringify:(_)=>m9(_,16,"0x")};vF.int=gF;vF.intBin=hF;vF.intHex=kF;vF.intOct=xF});var d9=H((cF)=>{var a_=g(),s_=N1(),n_=E1();class l1 extends n_.YAMLMap{constructor(_){super(_);this.tag=l1.tag}add(_){let q;if(a_.isPair(_))q=_;else if(_&&typeof _==="object"&&"key"in _&&"value"in _&&_.value===null)q=new s_.Pair(_.key,null);else q=new s_.Pair(_,null);if(!n_.findPair(this.items,q.key))this.items.push(q)}get(_,q){let $=n_.findPair(this.items,_);return!q&&a_.isPair($)?a_.isScalar($.key)?$.key.value:$.key:$}set(_,q){if(typeof q!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof q}`);let $=n_.findPair(this.items,_);if($&&!q)this.items.splice(this.items.indexOf($),1);else if(!$&&q)this.items.push(new s_.Pair(_))}toJSON(_,q){return super.toJSON(_,q,Set)}toString(_,q,$){if(!_)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},_,{allNullValues:!0}),q,$);else throw Error("Set items must all have null values")}static from(_,q,$){let{replacer:Z}=$,X=new this(_);if(q&&Symbol.iterator in Object(q))for(let z of q){if(typeof Z==="function")z=Z.call(q,z,z);X.items.push(s_.createPair(z,null,$))}return X}}l1.tag="tag:yaml.org,2002:set";var iF={collection:"map",identify:(_)=>_ instanceof Set,nodeClass:l1,default:!1,tag:"tag:yaml.org,2002:set",createNode:(_,q,$)=>l1.from(_,q,$),resolve(_,q){if(a_.isMap(_))if(_.hasAllNullValues(!0))return Object.assign(new l1,_);else q("Set items must all have null values");else q("Expected a mapping for this tag");return _}};cF.YAMLSet=l1;cF.set=iF});var i9=H((oF)=>{var sF=Q0();function l9(_,q){let $=_[0],Z=$==="-"||$==="+"?_.substring(1):_,X=(U)=>q?BigInt(U):Number(U),z=Z.replace(/_/g,"").split(":").reduce((U,Q)=>U*X(60)+X(Q),X(0));return $==="-"?X(-1)*z:z}function C8(_){let{value:q}=_,$=(U)=>U;if(typeof q==="bigint")$=(U)=>BigInt(U);else if(isNaN(q)||!isFinite(q))return sF.stringifyNumber(_);let Z="";if(q<0)Z="-",q*=$(-1);let X=$(60),z=[q%X];if(q<60)z.unshift(0);else if(q=(q-z[0])/X,z.unshift(q%X),q>=60)q=(q-z[0])/X,z.unshift(q);return Z+z.map((U)=>String(U).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var nF={identify:(_)=>typeof _==="bigint"||Number.isInteger(_),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(_,q,{intAsBigInt:$})=>l9(_,$),stringify:C8},aF={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:(_)=>l9(_,!1),stringify:C8},b8={identify:(_)=>_ instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(_){let q=_.match(b8.test);if(!q)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,$,Z,X,z,U,Q]=q.map(Number),Y=q[7]?Number((q[7]+"00").substr(1,3)):0,B=Date.UTC($,Z-1,X,z||0,U||0,Q||0,Y),W=q[8];if(W&&W!=="Z"){let V=l9(W,!1);if(Math.abs(V)<30)V*=60;B-=60000*V}return new Date(B)},stringify:({value:_})=>_?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};oF.floatTime=aF;oF.intTime=nF;oF.timestamp=b8});var h8=H((WG)=>{var qG=z0(),$G=d_(),ZG=U0(),XG=h0(),zG=x9(),y8=O8(),c9=N8(),o_=E8(),UG=y_(),QG=v9(),YG=p_(),BG=d9(),p9=i9(),JG=[qG.map,ZG.seq,XG.string,$G.nullTag,y8.trueTag,y8.falseTag,o_.intBin,o_.intOct,o_.int,o_.intHex,c9.floatNaN,c9.floatExp,c9.float,zG.binary,UG.merge,QG.omap,YG.pairs,BG.set,p9.intTime,p9.floatTime,p9.timestamp];WG.schema=JG});var c8=H((KG)=>{var v8=z0(),FG=d_(),u8=U0(),GG=h0(),LG=O9(),r9=f9(),s9=C9(),HG=M8(),MG=T8(),m8=x9(),v0=y_(),d8=v9(),l8=p_(),x8=h8(),i8=d9(),t_=i9(),g8=new Map([["core",HG.schema],["failsafe",[v8.map,u8.seq,GG.string]],["json",MG.schema],["yaml11",x8.schema],["yaml-1.1",x8.schema]]),k8={binary:m8.binary,bool:LG.boolTag,float:r9.float,floatExp:r9.floatExp,floatNaN:r9.floatNaN,floatTime:t_.floatTime,int:s9.int,intHex:s9.intHex,intOct:s9.intOct,intTime:t_.intTime,map:v8.map,merge:v0.merge,null:FG.nullTag,omap:d8.omap,pairs:l8.pairs,seq:u8.seq,set:i8.set,timestamp:t_.timestamp},IG={"tag:yaml.org,2002:binary":m8.binary,"tag:yaml.org,2002:merge":v0.merge,"tag:yaml.org,2002:omap":d8.omap,"tag:yaml.org,2002:pairs":l8.pairs,"tag:yaml.org,2002:set":i8.set,"tag:yaml.org,2002:timestamp":t_.timestamp};function TG(_,q,$){let Z=g8.get(q);if(Z&&!_)return $&&!Z.includes(v0.merge)?Z.concat(v0.merge):Z.slice();let X=Z;if(!X)if(Array.isArray(_))X=[];else{let z=Array.from(g8.keys()).filter((U)=>U!=="yaml11").map((U)=>JSON.stringify(U)).join(", ");throw Error(`Unknown schema "${q}"; use one of ${z} or define customTags array`)}if(Array.isArray(_))for(let z of _)X=X.concat(z);else if(typeof _==="function")X=_(X.slice());if($)X=X.concat(v0.merge);return X.reduce((z,U)=>{let Q=typeof U==="string"?k8[U]:U;if(!Q){let Y=JSON.stringify(U),B=Object.keys(k8).map((W)=>JSON.stringify(W)).join(", ");throw Error(`Unknown custom tag ${Y}; use one of ${B}`)}if(!z.includes(Q))z.push(Q);return z},[])}KG.coreKnownTags=IG;KG.getTags=TG});var o9=H((AG)=>{var n9=g(),SG=z0(),RG=U0(),PG=h0(),e_=c8(),jG=(_,q)=>_.key<q.key?-1:_.key>q.key?1:0;class a9{constructor({compat:_,customTags:q,merge:$,resolveKnownTags:Z,schema:X,sortMapEntries:z,toStringDefaults:U}){this.compat=Array.isArray(_)?e_.getTags(_,"compat"):_?e_.getTags(null,_):null,this.name=typeof X==="string"&&X||"core",this.knownTags=Z?e_.coreKnownTags:{},this.tags=e_.getTags(q,this.name,$),this.toStringOptions=U??null,Object.defineProperty(this,n9.MAP,{value:SG.map}),Object.defineProperty(this,n9.SCALAR,{value:PG.string}),Object.defineProperty(this,n9.SEQ,{value:RG.seq}),this.sortMapEntries=typeof z==="function"?z:z===!0?jG:null}clone(){let _=Object.create(a9.prototype,Object.getOwnPropertyDescriptors(this));return _.tags=this.tags.slice(),_}}AG.Schema=a9});var p8=H((EG)=>{var NG=g(),t9=E0(),u0=O0();function fG(_,q){let $=[],Z=q.directives===!0;if(q.directives!==!1&&_.directives){let Y=_.directives.toString(_);if(Y)$.push(Y),Z=!0;else if(_.directives.docStart)Z=!0}if(Z)$.push("---");let X=t9.createStringifyContext(_,q),{commentString:z}=X.options;if(_.commentBefore){if($.length!==1)$.unshift("");let Y=z(_.commentBefore);$.unshift(u0.indentComment(Y,""))}let U=!1,Q=null;if(_.contents){if(NG.isNode(_.contents)){if(_.contents.spaceBefore&&Z)$.push("");if(_.contents.commentBefore){let W=z(_.contents.commentBefore);$.push(u0.indentComment(W,""))}X.forceBlockIndent=!!_.comment,Q=_.contents.comment}let Y=Q?void 0:()=>U=!0,B=t9.stringify(_.contents,X,()=>Q=null,Y);if(Q)B+=u0.lineComment(B,"",z(Q));if((B[0]==="|"||B[0]===">")&&$[$.length-1]==="---")$[$.length-1]=`--- ${B}`;else $.push(B)}else $.push(t9.stringify(_.contents,X));if(_.directives?.docEnd)if(_.comment){let Y=z(_.comment);if(Y.includes(`
|
|
101
|
+
${z.comment}`:Z.comment}Z=X}_.items[$]=c_.isPair(Z)?Z:new g9.Pair(Z)}else q("Expected a sequence for this tag");return _}function D8(_,q,$){let{replacer:Z}=$,X=new HF.YAMLSeq(_);X.tag="tag:yaml.org,2002:pairs";let z=0;if(q&&Symbol.iterator in Object(q))for(let U of q){if(typeof Z==="function")U=Z.call(q,String(z++),U);let Q,Y;if(Array.isArray(U))if(U.length===2)Q=U[0],Y=U[1];else throw TypeError(`Expected [key, value] tuple: ${U}`);else if(U&&U instanceof Object){let B=Object.keys(U);if(B.length===1)Q=B[0],Y=U[Q];else throw TypeError(`Expected tuple with one key, not ${B.length} keys`)}else Q=U;X.items.push(g9.createPair(Q,Y,$))}return X}var IF={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:K8,createNode:D8};TF.createPairs=D8;TF.pairs=IF;TF.resolvePairs=K8});var v9=H((PF)=>{var S8=g(),k9=j1(),g0=C1(),wF=b1(),w8=p_();class l1 extends wF.YAMLSeq{constructor(){super();this.add=g0.YAMLMap.prototype.add.bind(this),this.delete=g0.YAMLMap.prototype.delete.bind(this),this.get=g0.YAMLMap.prototype.get.bind(this),this.has=g0.YAMLMap.prototype.has.bind(this),this.set=g0.YAMLMap.prototype.set.bind(this),this.tag=l1.tag}toJSON(_,q){if(!q)return super.toJSON(_);let $=new Map;if(q?.onCreate)q.onCreate($);for(let Z of this.items){let X,z;if(S8.isPair(Z))X=k9.toJS(Z.key,"",q),z=k9.toJS(Z.value,X,q);else X=k9.toJS(Z,"",q);if($.has(X))throw Error("Ordered maps must not include duplicate keys");$.set(X,z)}return $}static from(_,q,$){let Z=w8.createPairs(_,q,$),X=new this;return X.items=Z.items,X}}l1.tag="tag:yaml.org,2002:omap";var RF={collection:"seq",identify:(_)=>_ instanceof Map,nodeClass:l1,default:!1,tag:"tag:yaml.org,2002:omap",resolve(_,q){let $=w8.resolvePairs(_,q),Z=[];for(let{key:X}of $.items)if(S8.isScalar(X))if(Z.includes(X.value))q(`Ordered maps must not include duplicate keys: ${X.value}`);else Z.push(X.value);return Object.assign(new l1,$)},createNode:(_,q,$)=>l1.from(_,q,$)};PF.YAMLOMap=l1;PF.omap=RF});var N8=H((NF)=>{var R8=r();function P8({value:_,source:q},$){if(q&&(_?A8:j8).test.test(q))return q;return _?$.options.trueStr:$.options.falseStr}var A8={identify:(_)=>_===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new R8.Scalar(!0),stringify:P8},j8={identify:(_)=>_===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new R8.Scalar(!1),stringify:P8};NF.falseTag=j8;NF.trueTag=A8});var O8=H((hF)=>{var EF=r(),u9=Q0(),CF={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(_)=>_.slice(-3).toLowerCase()==="nan"?NaN:_[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:u9.stringifyNumber},bF={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(_)=>parseFloat(_.replace(/_/g,"")),stringify(_){let q=Number(_.value);return isFinite(q)?q.toExponential():u9.stringifyNumber(_)}},yF={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(_){let q=new EF.Scalar(parseFloat(_.replace(/_/g,""))),$=_.indexOf(".");if($!==-1){let Z=_.substring($+1).replace(/_/g,"");if(Z[Z.length-1]==="0")q.minFractionDigits=Z.length}return q},stringify:u9.stringifyNumber};hF.float=yF;hF.floatExp=bF;hF.floatNaN=CF});var E8=H((lF)=>{var f8=Q0(),k0=(_)=>typeof _==="bigint"||Number.isInteger(_);function r_(_,q,$,{intAsBigInt:Z}){let X=_[0];if(X==="-"||X==="+")q+=1;if(_=_.substring(q).replace(/_/g,""),Z){switch($){case 2:_=`0b${_}`;break;case 8:_=`0o${_}`;break;case 16:_=`0x${_}`;break}let U=BigInt(_);return X==="-"?BigInt(-1)*U:U}let z=parseInt(_,$);return X==="-"?-1*z:z}function m9(_,q,$){let{value:Z}=_;if(k0(Z)){let X=Z.toString(q);return Z<0?"-"+$+X.substr(1):$+X}return f8.stringifyNumber(_)}var vF={identify:k0,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(_,q,$)=>r_(_,2,2,$),stringify:(_)=>m9(_,2,"0b")},uF={identify:k0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(_,q,$)=>r_(_,1,8,$),stringify:(_)=>m9(_,8,"0")},mF={identify:k0,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(_,q,$)=>r_(_,0,10,$),stringify:f8.stringifyNumber},dF={identify:k0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(_,q,$)=>r_(_,2,16,$),stringify:(_)=>m9(_,16,"0x")};lF.int=mF;lF.intBin=vF;lF.intHex=dF;lF.intOct=uF});var d9=H((nF)=>{var a_=g(),s_=f1(),n_=C1();class i1 extends n_.YAMLMap{constructor(_){super(_);this.tag=i1.tag}add(_){let q;if(a_.isPair(_))q=_;else if(_&&typeof _==="object"&&"key"in _&&"value"in _&&_.value===null)q=new s_.Pair(_.key,null);else q=new s_.Pair(_,null);if(!n_.findPair(this.items,q.key))this.items.push(q)}get(_,q){let $=n_.findPair(this.items,_);return!q&&a_.isPair($)?a_.isScalar($.key)?$.key.value:$.key:$}set(_,q){if(typeof q!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof q}`);let $=n_.findPair(this.items,_);if($&&!q)this.items.splice(this.items.indexOf($),1);else if(!$&&q)this.items.push(new s_.Pair(_))}toJSON(_,q){return super.toJSON(_,q,Set)}toString(_,q,$){if(!_)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},_,{allNullValues:!0}),q,$);else throw Error("Set items must all have null values")}static from(_,q,$){let{replacer:Z}=$,X=new this(_);if(q&&Symbol.iterator in Object(q))for(let z of q){if(typeof Z==="function")z=Z.call(q,z,z);X.items.push(s_.createPair(z,null,$))}return X}}i1.tag="tag:yaml.org,2002:set";var sF={collection:"map",identify:(_)=>_ instanceof Set,nodeClass:i1,default:!1,tag:"tag:yaml.org,2002:set",createNode:(_,q,$)=>i1.from(_,q,$),resolve(_,q){if(a_.isMap(_))if(_.hasAllNullValues(!0))return Object.assign(new i1,_);else q("Set items must all have null values");else q("Expected a mapping for this tag");return _}};nF.YAMLSet=i1;nF.set=sF});var i9=H((qG)=>{var tF=Q0();function l9(_,q){let $=_[0],Z=$==="-"||$==="+"?_.substring(1):_,X=(U)=>q?BigInt(U):Number(U),z=Z.replace(/_/g,"").split(":").reduce((U,Q)=>U*X(60)+X(Q),X(0));return $==="-"?X(-1)*z:z}function C8(_){let{value:q}=_,$=(U)=>U;if(typeof q==="bigint")$=(U)=>BigInt(U);else if(isNaN(q)||!isFinite(q))return tF.stringifyNumber(_);let Z="";if(q<0)Z="-",q*=$(-1);let X=$(60),z=[q%X];if(q<60)z.unshift(0);else if(q=(q-z[0])/X,z.unshift(q%X),q>=60)q=(q-z[0])/X,z.unshift(q);return Z+z.map((U)=>String(U).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var eF={identify:(_)=>typeof _==="bigint"||Number.isInteger(_),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(_,q,{intAsBigInt:$})=>l9(_,$),stringify:C8},_G={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:(_)=>l9(_,!1),stringify:C8},b8={identify:(_)=>_ instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(_){let q=_.match(b8.test);if(!q)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,$,Z,X,z,U,Q]=q.map(Number),Y=q[7]?Number((q[7]+"00").substr(1,3)):0,B=Date.UTC($,Z-1,X,z||0,U||0,Q||0,Y),W=q[8];if(W&&W!=="Z"){let V=l9(W,!1);if(Math.abs(V)<30)V*=60;B-=60000*V}return new Date(B)},stringify:({value:_})=>_?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};qG.floatTime=_G;qG.intTime=eF;qG.timestamp=b8});var h8=H((LG)=>{var zG=z0(),UG=d_(),QG=U0(),YG=h0(),BG=x9(),y8=N8(),c9=O8(),o_=E8(),JG=y_(),WG=v9(),VG=p_(),FG=d9(),p9=i9(),GG=[zG.map,QG.seq,YG.string,UG.nullTag,y8.trueTag,y8.falseTag,o_.intBin,o_.intOct,o_.int,o_.intHex,c9.floatNaN,c9.floatExp,c9.float,BG.binary,JG.merge,WG.omap,VG.pairs,FG.set,p9.intTime,p9.floatTime,p9.timestamp];LG.schema=GG});var c8=H((RG)=>{var v8=z0(),HG=d_(),u8=U0(),IG=h0(),TG=N9(),r9=f9(),s9=C9(),KG=H8(),DG=T8(),m8=x9(),v0=y_(),d8=v9(),l8=p_(),x8=h8(),i8=d9(),t_=i9(),g8=new Map([["core",KG.schema],["failsafe",[v8.map,u8.seq,IG.string]],["json",DG.schema],["yaml11",x8.schema],["yaml-1.1",x8.schema]]),k8={binary:m8.binary,bool:TG.boolTag,float:r9.float,floatExp:r9.floatExp,floatNaN:r9.floatNaN,floatTime:t_.floatTime,int:s9.int,intHex:s9.intHex,intOct:s9.intOct,intTime:t_.intTime,map:v8.map,merge:v0.merge,null:HG.nullTag,omap:d8.omap,pairs:l8.pairs,seq:u8.seq,set:i8.set,timestamp:t_.timestamp},SG={"tag:yaml.org,2002:binary":m8.binary,"tag:yaml.org,2002:merge":v0.merge,"tag:yaml.org,2002:omap":d8.omap,"tag:yaml.org,2002:pairs":l8.pairs,"tag:yaml.org,2002:set":i8.set,"tag:yaml.org,2002:timestamp":t_.timestamp};function wG(_,q,$){let Z=g8.get(q);if(Z&&!_)return $&&!Z.includes(v0.merge)?Z.concat(v0.merge):Z.slice();let X=Z;if(!X)if(Array.isArray(_))X=[];else{let z=Array.from(g8.keys()).filter((U)=>U!=="yaml11").map((U)=>JSON.stringify(U)).join(", ");throw Error(`Unknown schema "${q}"; use one of ${z} or define customTags array`)}if(Array.isArray(_))for(let z of _)X=X.concat(z);else if(typeof _==="function")X=_(X.slice());if($)X=X.concat(v0.merge);return X.reduce((z,U)=>{let Q=typeof U==="string"?k8[U]:U;if(!Q){let Y=JSON.stringify(U),B=Object.keys(k8).map((W)=>JSON.stringify(W)).join(", ");throw Error(`Unknown custom tag ${Y}; use one of ${B}`)}if(!z.includes(Q))z.push(Q);return z},[])}RG.coreKnownTags=SG;RG.getTags=wG});var o9=H((EG)=>{var n9=g(),jG=z0(),NG=U0(),OG=h0(),e_=c8(),fG=(_,q)=>_.key<q.key?-1:_.key>q.key?1:0;class a9{constructor({compat:_,customTags:q,merge:$,resolveKnownTags:Z,schema:X,sortMapEntries:z,toStringDefaults:U}){this.compat=Array.isArray(_)?e_.getTags(_,"compat"):_?e_.getTags(null,_):null,this.name=typeof X==="string"&&X||"core",this.knownTags=Z?e_.coreKnownTags:{},this.tags=e_.getTags(q,this.name,$),this.toStringOptions=U??null,Object.defineProperty(this,n9.MAP,{value:jG.map}),Object.defineProperty(this,n9.SCALAR,{value:OG.string}),Object.defineProperty(this,n9.SEQ,{value:NG.seq}),this.sortMapEntries=typeof z==="function"?z:z===!0?fG:null}clone(){let _=Object.create(a9.prototype,Object.getOwnPropertyDescriptors(this));return _.tags=this.tags.slice(),_}}EG.Schema=a9});var p8=H((hG)=>{var bG=g(),t9=E0(),u0=N0();function yG(_,q){let $=[],Z=q.directives===!0;if(q.directives!==!1&&_.directives){let Y=_.directives.toString(_);if(Y)$.push(Y),Z=!0;else if(_.directives.docStart)Z=!0}if(Z)$.push("---");let X=t9.createStringifyContext(_,q),{commentString:z}=X.options;if(_.commentBefore){if($.length!==1)$.unshift("");let Y=z(_.commentBefore);$.unshift(u0.indentComment(Y,""))}let U=!1,Q=null;if(_.contents){if(bG.isNode(_.contents)){if(_.contents.spaceBefore&&Z)$.push("");if(_.contents.commentBefore){let W=z(_.contents.commentBefore);$.push(u0.indentComment(W,""))}X.forceBlockIndent=!!_.comment,Q=_.contents.comment}let Y=Q?void 0:()=>U=!0,B=t9.stringify(_.contents,X,()=>Q=null,Y);if(Q)B+=u0.lineComment(B,"",z(Q));if((B[0]==="|"||B[0]===">")&&$[$.length-1]==="---")$[$.length-1]=`--- ${B}`;else $.push(B)}else $.push(t9.stringify(_.contents,X));if(_.directives?.docEnd)if(_.comment){let Y=z(_.comment);if(Y.includes(`
|
|
102
102
|
`))$.push("..."),$.push(u0.indentComment(Y,""));else $.push(`... ${Y}`)}else $.push("...");else{let Y=_.comment;if(Y&&U)Y=Y.replace(/^\n+/,"");if(Y){if((!U||Q)&&$[$.length-1]!=="")$.push("");$.push(u0.indentComment(z(Y),""))}}return $.join(`
|
|
103
103
|
`)+`
|
|
104
|
-
`}
|
|
105
|
-
`;U=Q+U}if(/[^ ]/.test(U)){let Q=1,Y=$.linePos[1];if(Y
|
|
104
|
+
`}hG.stringifyDocument=yG});var m0=H((iG)=>{var gG=A0(),Y0=N_(),Q1=g(),kG=f1(),vG=j1(),uG=o9(),mG=p8(),e9=P_(),dG=I9(),lG=j0(),_$=H9();class q${constructor(_,q,$){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Q1.NODE_TYPE,{value:Q1.DOC});let Z=null;if(typeof q==="function"||Array.isArray(q))Z=q;else if($===void 0&&q)$=q,q=void 0;let X=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},$);this.options=X;let{version:z}=X;if($?._directives){if(this.directives=$._directives.atDocument(),this.directives.yaml.explicit)z=this.directives.yaml.version}else this.directives=new _$.Directives({version:z});this.setSchema(z,$),this.contents=_===void 0?null:this.createNode(_,Z,$)}clone(){let _=Object.create(q$.prototype,{[Q1.NODE_TYPE]:{value:Q1.DOC}});if(_.commentBefore=this.commentBefore,_.comment=this.comment,_.errors=this.errors.slice(),_.warnings=this.warnings.slice(),_.options=Object.assign({},this.options),this.directives)_.directives=this.directives.clone();if(_.schema=this.schema.clone(),_.contents=Q1.isNode(this.contents)?this.contents.clone(_.schema):this.contents,this.range)_.range=this.range.slice();return _}add(_){if(B0(this.contents))this.contents.add(_)}addIn(_,q){if(B0(this.contents))this.contents.addIn(_,q)}createAlias(_,q){if(!_.anchor){let $=e9.anchorNames(this);_.anchor=!q||$.has(q)?e9.findNewAnchor(q||"a",$):q}return new gG.Alias(_.anchor)}createNode(_,q,$){let Z=void 0;if(typeof q==="function")_=q.call({"":_},"",_),Z=q;else if(Array.isArray(q)){let F=(S)=>typeof S==="number"||S instanceof String||S instanceof Number,I=q.filter(F).map(String);if(I.length>0)q=q.concat(I);Z=q}else if($===void 0&&q)$=q,q=void 0;let{aliasDuplicateObjects:X,anchorPrefix:z,flow:U,keepUndefined:Q,onTagObj:Y,tag:B}=$??{},{onAnchor:W,setAnchors:V,sourceObjects:J}=e9.createNodeAnchors(this,z||"a"),G={aliasDuplicateObjects:X??!0,keepUndefined:Q??!1,onAnchor:W,onTagObj:Y,replacer:Z,schema:this.schema,sourceObjects:J},L=lG.createNode(_,B,G);if(U&&Q1.isCollection(L))L.flow=!0;return V(),L}createPair(_,q,$={}){let Z=this.createNode(_,null,$),X=this.createNode(q,null,$);return new kG.Pair(Z,X)}delete(_){return B0(this.contents)?this.contents.delete(_):!1}deleteIn(_){if(Y0.isEmptyPath(_)){if(this.contents==null)return!1;return this.contents=null,!0}return B0(this.contents)?this.contents.deleteIn(_):!1}get(_,q){return Q1.isCollection(this.contents)?this.contents.get(_,q):void 0}getIn(_,q){if(Y0.isEmptyPath(_))return!q&&Q1.isScalar(this.contents)?this.contents.value:this.contents;return Q1.isCollection(this.contents)?this.contents.getIn(_,q):void 0}has(_){return Q1.isCollection(this.contents)?this.contents.has(_):!1}hasIn(_){if(Y0.isEmptyPath(_))return this.contents!==void 0;return Q1.isCollection(this.contents)?this.contents.hasIn(_):!1}set(_,q){if(this.contents==null)this.contents=Y0.collectionFromPath(this.schema,[_],q);else if(B0(this.contents))this.contents.set(_,q)}setIn(_,q){if(Y0.isEmptyPath(_))this.contents=q;else if(this.contents==null)this.contents=Y0.collectionFromPath(this.schema,Array.from(_),q);else if(B0(this.contents))this.contents.setIn(_,q)}setSchema(_,q={}){if(typeof _==="number")_=String(_);let $;switch(_){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new _$.Directives({version:"1.1"});$={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=_;else this.directives=new _$.Directives({version:_});$={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;$=null;break;default:{let Z=JSON.stringify(_);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${Z}`)}}if(q.schema instanceof Object)this.schema=q.schema;else if($)this.schema=new uG.Schema(Object.assign($,q));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:_,jsonArg:q,mapAsMap:$,maxAliasCount:Z,onAnchor:X,reviver:z}={}){let U={anchors:new Map,doc:this,keep:!_,mapAsMap:$===!0,mapKeyWarned:!1,maxAliasCount:typeof Z==="number"?Z:100},Q=vG.toJS(this.contents,q??"",U);if(typeof X==="function")for(let{count:Y,res:B}of U.anchors.values())X(B,Y);return typeof z==="function"?dG.applyReviver(z,{"":Q},"",Q):Q}toJSON(_,q){return this.toJS({json:!0,jsonArg:_,mapAsMap:!1,onAnchor:q})}toString(_={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in _&&(!Number.isInteger(_.indent)||Number(_.indent)<=0)){let q=JSON.stringify(_.indent);throw Error(`"indent" option must be a positive integer, not ${q}`)}return mG.stringifyDocument(this,_)}}function B0(_){if(Q1.isCollection(_))return!0;throw Error("Expected a YAML collection as document contents")}iG.Document=q$});var d0=H((rG)=>{class _q extends Error{constructor(_,q,$,Z){super();this.name=_,this.code=$,this.message=Z,this.pos=q}}class r8 extends _q{constructor(_,q,$){super("YAMLParseError",_,q,$)}}class s8 extends _q{constructor(_,q,$){super("YAMLWarning",_,q,$)}}var pG=(_,q)=>($)=>{if($.pos[0]===-1)return;$.linePos=$.pos.map((Q)=>q.linePos(Q));let{line:Z,col:X}=$.linePos[0];$.message+=` at line ${Z}, column ${X}`;let z=X-1,U=_.substring(q.lineStarts[Z-1],q.lineStarts[Z]).replace(/[\n\r]+$/,"");if(z>=60&&U.length>80){let Q=Math.min(z-39,U.length-79);U="…"+U.substring(Q),z-=Q-1}if(U.length>80)U=U.substring(0,79)+"…";if(Z>1&&/^ *$/.test(U.substring(0,z))){let Q=_.substring(q.lineStarts[Z-2],q.lineStarts[Z-1]);if(Q.length>80)Q=Q.substring(0,79)+`…
|
|
105
|
+
`;U=Q+U}if(/[^ ]/.test(U)){let Q=1,Y=$.linePos[1];if(Y?.line===Z&&Y.col>X)Q=Math.max(1,Math.min(Y.col-X,80-z));let B=" ".repeat(z)+"^".repeat(Q);$.message+=`:
|
|
106
106
|
|
|
107
107
|
${U}
|
|
108
108
|
${B}
|
|
109
|
-
`}};
|
|
110
|
-
`))return!0;if(_.end){for(let q of _.end)if(q.type==="newline")return!0}return!1;case"flow-collection":for(let q of _.items){for(let $ of q.start)if($.type==="newline")return!0;if(q.sep){for(let $ of q.sep)if($.type==="newline")return!0}if($$(q.key)||$$(q.value))return!0}return!1;default:return!0}}
|
|
111
|
-
`+F.comment;else Q.comment=F.comment;continue}if(F.newlineAfterProp||
|
|
112
|
-
`+
|
|
113
|
-
`+
|
|
114
|
-
`+
|
|
115
|
-
`+
|
|
116
|
-
`+
|
|
117
|
-
`.repeat(Math.max(1,U.length-1)):"",
|
|
118
|
-
`;for(let F=W;F<Q;++F){let[
|
|
119
|
-
`;else if(
|
|
109
|
+
`}};rG.YAMLError=_q;rG.YAMLParseError=r8;rG.YAMLWarning=s8;rG.prettifyError=pG});var l0=H((eG)=>{function tG(_,{flow:q,indicator:$,next:Z,offset:X,onError:z,parentIndent:U,startOnNewline:Q}){let Y=!1,B=Q,W=Q,V="",J="",G=!1,L=!1,F=null,I=null,S=null,j=null,A=null,E=null,O=null;for(let M of _){if(L){if(M.type!=="space"&&M.type!=="newline"&&M.type!=="comma")z(M.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");L=!1}if(F){if(B&&M.type!=="comment"&&M.type!=="newline")z(F,"TAB_AS_INDENT","Tabs are not allowed as indentation");F=null}switch(M.type){case"space":if(!q&&($!=="doc-start"||Z?.type!=="flow-collection")&&M.source.includes("\t"))F=M;W=!0;break;case"comment":{if(!W)z(M,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let f=M.source.substring(1)||" ";if(!V)V=f;else V+=J+f;J="",B=!1;break}case"newline":if(B){if(V)V+=M.source;else if(!E||$!=="seq-item-ind")Y=!0}else J+=M.source;if(B=!0,G=!0,I||S)j=M;W=!0;break;case"anchor":if(I)z(M,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(M.source.endsWith(":"))z(M.offset+M.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);I=M,O??(O=M.offset),B=!1,W=!1,L=!0;break;case"tag":{if(S)z(M,"MULTIPLE_TAGS","A node can have at most one tag");S=M,O??(O=M.offset),B=!1,W=!1,L=!0;break}case $:if(I||S)z(M,"BAD_PROP_ORDER",`Anchors and tags must be after the ${M.source} indicator`);if(E)z(M,"UNEXPECTED_TOKEN",`Unexpected ${M.source} in ${q??"collection"}`);E=M,B=$==="seq-item-ind"||$==="explicit-key-ind",W=!1;break;case"comma":if(q){if(A)z(M,"UNEXPECTED_TOKEN",`Unexpected , in ${q}`);A=M,B=!1,W=!1;break}default:z(M,"UNEXPECTED_TOKEN",`Unexpected ${M.type} token`),B=!1,W=!1}}let w=_[_.length-1],C=w?w.offset+w.source.length:X;if(L&&Z&&Z.type!=="space"&&Z.type!=="newline"&&Z.type!=="comma"&&(Z.type!=="scalar"||Z.source!==""))z(Z.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(F&&(B&&F.indent<=U||Z?.type==="block-map"||Z?.type==="block-seq"))z(F,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:A,found:E,spaceBefore:Y,comment:V,hasNewline:G,anchor:I,tag:S,newlineAfterProp:j,end:C,start:O??C}}eG.resolveProps=tG});var qq=H((qL)=>{function $$(_){if(!_)return null;switch(_.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(_.source.includes(`
|
|
110
|
+
`))return!0;if(_.end){for(let q of _.end)if(q.type==="newline")return!0}return!1;case"flow-collection":for(let q of _.items){for(let $ of q.start)if($.type==="newline")return!0;if(q.sep){for(let $ of q.sep)if($.type==="newline")return!0}if($$(q.key)||$$(q.value))return!0}return!1;default:return!0}}qL.containsNewline=$$});var Z$=H((zL)=>{var ZL=qq();function XL(_,q,$){if(q?.type==="flow-collection"){let Z=q.end[0];if(Z.indent===_&&(Z.source==="]"||Z.source==="}")&&ZL.containsNewline(q))$(Z,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}zL.flowIndentCheck=XL});var X$=H((YL)=>{var n8=g();function QL(_,q,$){let{uniqueKeys:Z}=_.options;if(Z===!1)return!1;let X=typeof Z==="function"?Z:(z,U)=>z===U||n8.isScalar(z)&&n8.isScalar(U)&&z.value===U.value;return q.some((z)=>X(z.key,$))}YL.mapIncludes=QL});var _5=H((GL)=>{var a8=f1(),JL=C1(),o8=l0(),WL=qq(),t8=Z$(),VL=X$(),e8="All mapping items must start at the same column";function FL({composeNode:_,composeEmptyNode:q},$,Z,X,z){let Q=new(z?.nodeClass??JL.YAMLMap)($.schema);if($.atRoot)$.atRoot=!1;let Y=Z.offset,B=null;for(let W of Z.items){let{start:V,key:J,sep:G,value:L}=W,F=o8.resolveProps(V,{indicator:"explicit-key-ind",next:J??G?.[0],offset:Y,onError:X,parentIndent:Z.indent,startOnNewline:!0}),I=!F.found;if(I){if(J){if(J.type==="block-seq")X(Y,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in J&&J.indent!==Z.indent)X(Y,"BAD_INDENT",e8)}if(!F.anchor&&!F.tag&&!G){if(B=F.end,F.comment)if(Q.comment)Q.comment+=`
|
|
111
|
+
`+F.comment;else Q.comment=F.comment;continue}if(F.newlineAfterProp||WL.containsNewline(J))X(J??V[V.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(F.found?.indent!==Z.indent)X(Y,"BAD_INDENT",e8);$.atKey=!0;let S=F.end,j=J?_($,J,F,X):q($,S,V,null,F,X);if($.schema.compat)t8.flowIndentCheck(Z.indent,J,X);if($.atKey=!1,VL.mapIncludes($,Q.items,j))X(S,"DUPLICATE_KEY","Map keys must be unique");let A=o8.resolveProps(G??[],{indicator:"map-value-ind",next:L,offset:j.range[2],onError:X,parentIndent:Z.indent,startOnNewline:!J||J.type==="block-scalar"});if(Y=A.end,A.found){if(I){if(L?.type==="block-map"&&!A.hasNewline)X(Y,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if($.options.strict&&F.start<A.found.offset-1024)X(j.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let E=L?_($,L,A,X):q($,Y,G,null,A,X);if($.schema.compat)t8.flowIndentCheck(Z.indent,L,X);Y=E.range[2];let O=new a8.Pair(j,E);if($.options.keepSourceTokens)O.srcToken=W;Q.items.push(O)}else{if(I)X(j.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(A.comment)if(j.comment)j.comment+=`
|
|
112
|
+
`+A.comment;else j.comment=A.comment;let E=new a8.Pair(j);if($.options.keepSourceTokens)E.srcToken=W;Q.items.push(E)}}if(B&&B<Y)X(B,"IMPOSSIBLE","Map comment with trailing content");return Q.range=[Z.offset,Y,B??Y],Q}GL.resolveBlockMap=FL});var q5=H((KL)=>{var ML=b1(),HL=l0(),IL=Z$();function TL({composeNode:_,composeEmptyNode:q},$,Z,X,z){let Q=new(z?.nodeClass??ML.YAMLSeq)($.schema);if($.atRoot)$.atRoot=!1;if($.atKey)$.atKey=!1;let Y=Z.offset,B=null;for(let{start:W,value:V}of Z.items){let J=HL.resolveProps(W,{indicator:"seq-item-ind",next:V,offset:Y,onError:X,parentIndent:Z.indent,startOnNewline:!0});if(!J.found)if(J.anchor||J.tag||V)if(V?.type==="block-seq")X(J.end,"BAD_INDENT","All sequence items must start at the same column");else X(Y,"MISSING_CHAR","Sequence item without - indicator");else{if(B=J.end,J.comment)Q.comment=J.comment;continue}let G=V?_($,V,J,X):q($,J.end,W,null,J,X);if($.schema.compat)IL.flowIndentCheck(Z.indent,V,X);Y=G.range[2],Q.items.push(G)}return Q.range=[Z.offset,Y,B??Y],Q}KL.resolveBlockSeq=TL});var J0=H((wL)=>{function SL(_,q,$,Z){let X="";if(_){let z=!1,U="";for(let Q of _){let{source:Y,type:B}=Q;switch(B){case"space":z=!0;break;case"comment":{if($&&!z)Z(Q,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let W=Y.substring(1)||" ";if(!X)X=W;else X+=U+W;U="";break}case"newline":if(X)U+=Y;z=!0;break;default:Z(Q,"UNEXPECTED_TOKEN",`Unexpected ${B} at node end`)}q+=Y.length}}return{comment:X,offset:q}}wL.resolveEnd=SL});var X5=H((CL)=>{var PL=g(),AL=f1(),$5=C1(),jL=b1(),NL=J0(),Z5=l0(),OL=qq(),fL=X$(),z$="Block collections are not allowed within flow collections",U$=(_)=>_&&(_.type==="block-map"||_.type==="block-seq");function EL({composeNode:_,composeEmptyNode:q},$,Z,X,z){let U=Z.start.source==="{",Q=U?"flow map":"flow sequence",B=new(z?.nodeClass??(U?$5.YAMLMap:jL.YAMLSeq))($.schema);B.flow=!0;let W=$.atRoot;if(W)$.atRoot=!1;if($.atKey)$.atKey=!1;let V=Z.offset+Z.start.source.length;for(let I=0;I<Z.items.length;++I){let S=Z.items[I],{start:j,key:A,sep:E,value:O}=S,w=Z5.resolveProps(j,{flow:Q,indicator:"explicit-key-ind",next:A??E?.[0],offset:V,onError:X,parentIndent:Z.indent,startOnNewline:!1});if(!w.found){if(!w.anchor&&!w.tag&&!E&&!O){if(I===0&&w.comma)X(w.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${Q}`);else if(I<Z.items.length-1)X(w.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${Q}`);if(w.comment)if(B.comment)B.comment+=`
|
|
113
|
+
`+w.comment;else B.comment=w.comment;V=w.end;continue}if(!U&&$.options.strict&&OL.containsNewline(A))X(A,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(I===0){if(w.comma)X(w.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${Q}`)}else{if(!w.comma)X(w.start,"MISSING_CHAR",`Missing , between ${Q} items`);if(w.comment){let C="";_:for(let M of j)switch(M.type){case"comma":case"space":break;case"comment":C=M.source.substring(1);break _;default:break _}if(C){let M=B.items[B.items.length-1];if(PL.isPair(M))M=M.value??M.key;if(M.comment)M.comment+=`
|
|
114
|
+
`+C;else M.comment=C;w.comment=w.comment.substring(C.length+1)}}}if(!U&&!E&&!w.found){let C=O?_($,O,w,X):q($,w.end,E,null,w,X);if(B.items.push(C),V=C.range[2],U$(O))X(C.range,"BLOCK_IN_FLOW",z$)}else{$.atKey=!0;let C=w.end,M=A?_($,A,w,X):q($,C,j,null,w,X);if(U$(A))X(M.range,"BLOCK_IN_FLOW",z$);$.atKey=!1;let f=Z5.resolveProps(E??[],{flow:Q,indicator:"map-value-ind",next:O,offset:M.range[2],onError:X,parentIndent:Z.indent,startOnNewline:!1});if(f.found){if(!U&&!w.found&&$.options.strict){if(E)for(let b of E){if(b===f.found)break;if(b.type==="newline"){X(b,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(w.start<f.found.offset-1024)X(f.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(O)if("source"in O&&O.source?.[0]===":")X(O,"MISSING_CHAR",`Missing space after : in ${Q}`);else X(f.start,"MISSING_CHAR",`Missing , or : between ${Q} items`);let u=O?_($,O,f,X):f.found?q($,f.end,E,null,f,X):null;if(u){if(U$(O))X(u.range,"BLOCK_IN_FLOW",z$)}else if(f.comment)if(M.comment)M.comment+=`
|
|
115
|
+
`+f.comment;else M.comment=f.comment;let D=new AL.Pair(M,u);if($.options.keepSourceTokens)D.srcToken=S;if(U){let b=B;if(fL.mapIncludes($,b.items,M))X(C,"DUPLICATE_KEY","Map keys must be unique");b.items.push(D)}else{let b=new $5.YAMLMap($.schema);b.flow=!0,b.items.push(D);let m=(u??M).range;b.range=[M.range[0],m[1],m[2]],B.items.push(b)}V=u?u.range[2]:f.end}}let J=U?"}":"]",[G,...L]=Z.end,F=V;if(G?.source===J)F=G.offset+G.source.length;else{let I=Q[0].toUpperCase()+Q.substring(1),S=W?`${I} must end with a ${J}`:`${I} in block collection must be sufficiently indented and end with a ${J}`;if(X(V,W?"MISSING_CHAR":"BAD_INDENT",S),G&&G.source.length!==1)L.unshift(G)}if(L.length>0){let I=NL.resolveEnd(L,F,$.options.strict,X);if(I.comment)if(B.comment)B.comment+=`
|
|
116
|
+
`+I.comment;else B.comment=I.comment;B.range=[Z.offset,F,I.offset]}else B.range=[Z.offset,F,F];return B}CL.resolveFlowCollection=EL});var z5=H((dL)=>{var yL=g(),hL=r(),xL=C1(),gL=b1(),kL=_5(),vL=q5(),uL=X5();function Q$(_,q,$,Z,X,z){let U=$.type==="block-map"?kL.resolveBlockMap(_,q,$,Z,z):$.type==="block-seq"?vL.resolveBlockSeq(_,q,$,Z,z):uL.resolveFlowCollection(_,q,$,Z,z),Q=U.constructor;if(X==="!"||X===Q.tagName)return U.tag=Q.tagName,U;if(X)U.tag=X;return U}function mL(_,q,$,Z,X){let z=Z.tag,U=!z?null:q.directives.tagName(z.source,(J)=>X(z,"TAG_RESOLVE_FAILED",J));if($.type==="block-seq"){let{anchor:J,newlineAfterProp:G}=Z,L=J&&z?J.offset>z.offset?J:z:J??z;if(L&&(!G||G.offset<L.offset))X(L,"MISSING_CHAR","Missing newline after block sequence props")}let Q=$.type==="block-map"?"map":$.type==="block-seq"?"seq":$.start.source==="{"?"map":"seq";if(!z||!U||U==="!"||U===xL.YAMLMap.tagName&&Q==="map"||U===gL.YAMLSeq.tagName&&Q==="seq")return Q$(_,q,$,X,U);let Y=q.schema.tags.find((J)=>J.tag===U&&J.collection===Q);if(!Y){let J=q.schema.knownTags[U];if(J?.collection===Q)q.schema.tags.push(Object.assign({},J,{default:!1})),Y=J;else{if(J)X(z,"BAD_COLLECTION_TYPE",`${J.tag} used for ${Q} collection, but expects ${J.collection??"scalar"}`,!0);else X(z,"TAG_RESOLVE_FAILED",`Unresolved tag: ${U}`,!0);return Q$(_,q,$,X,U)}}let B=Q$(_,q,$,X,U,Y),W=Y.resolve?.(B,(J)=>X(z,"TAG_RESOLVE_FAILED",J),q.options)??B,V=yL.isNode(W)?W:new hL.Scalar(W);if(V.range=B.range,V.tag=U,Y?.format)V.format=Y.format;return V}dL.composeCollection=mL});var B$=H((rL)=>{var Y$=r();function iL(_,q,$){let Z=q.offset,X=cL(q,_.options.strict,$);if(!X)return{value:"",type:null,comment:"",range:[Z,Z,Z]};let z=X.mode===">"?Y$.Scalar.BLOCK_FOLDED:Y$.Scalar.BLOCK_LITERAL,U=q.source?pL(q.source):[],Q=U.length;for(let F=U.length-1;F>=0;--F){let I=U[F][1];if(I===""||I==="\r")Q=F;else break}if(Q===0){let F=X.chomp==="+"&&U.length>0?`
|
|
117
|
+
`.repeat(Math.max(1,U.length-1)):"",I=Z+X.length;if(q.source)I+=q.source.length;return{value:F,type:z,comment:X.comment,range:[Z,I,I]}}let Y=q.indent+X.indent,B=q.offset+X.length,W=0;for(let F=0;F<Q;++F){let[I,S]=U[F];if(S===""||S==="\r"){if(X.indent===0&&I.length>Y)Y=I.length}else{if(I.length<Y)$(B+I.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(X.indent===0)Y=I.length;if(W=F,Y===0&&!_.atRoot)$(B,"BAD_INDENT","Block scalar values in collections must be indented");break}B+=I.length+S.length+1}for(let F=U.length-1;F>=Q;--F)if(U[F][0].length>Y)Q=F+1;let V="",J="",G=!1;for(let F=0;F<W;++F)V+=U[F][0].slice(Y)+`
|
|
118
|
+
`;for(let F=W;F<Q;++F){let[I,S]=U[F];B+=I.length+S.length+1;let j=S[S.length-1]==="\r";if(j)S=S.slice(0,-1);if(S&&I.length<Y){let E=`Block scalar lines must not be less indented than their ${X.indent?"explicit indentation indicator":"first line"}`;$(B-S.length-(j?2:1),"BAD_INDENT",E),I=""}if(z===Y$.Scalar.BLOCK_LITERAL)V+=J+I.slice(Y)+S,J=`
|
|
119
|
+
`;else if(I.length>Y||S[0]==="\t"){if(J===" ")J=`
|
|
120
120
|
`;else if(!G&&J===`
|
|
121
121
|
`)J=`
|
|
122
122
|
|
|
123
|
-
`;V+=J+
|
|
124
|
-
`,G=!0}else if(
|
|
123
|
+
`;V+=J+I.slice(Y)+S,J=`
|
|
124
|
+
`,G=!0}else if(S==="")if(J===`
|
|
125
125
|
`)V+=`
|
|
126
126
|
`;else J=`
|
|
127
|
-
`;else V+=J+
|
|
127
|
+
`;else V+=J+S,J=" ",G=!1}switch(X.chomp){case"-":break;case"+":for(let F=Q;F<U.length;++F)V+=`
|
|
128
128
|
`+U[F][0].slice(Y);if(V[V.length-1]!==`
|
|
129
129
|
`)V+=`
|
|
130
130
|
`;break;default:V+=`
|
|
131
|
-
`}let L=Z+X.length+q.source.length;return{value:V,type:z,comment:X.comment,range:[Z,L,L]}}function
|
|
131
|
+
`}let L=Z+X.length+q.source.length;return{value:V,type:z,comment:X.comment,range:[Z,L,L]}}function cL({offset:_,props:q},$,Z){if(q[0].type!=="block-scalar-header")return Z(q[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:X}=q[0],z=X[0],U=0,Q="",Y=-1;for(let J=1;J<X.length;++J){let G=X[J];if(!Q&&(G==="-"||G==="+"))Q=G;else{let L=Number(G);if(!U&&L)U=L;else if(Y===-1)Y=_+J}}if(Y!==-1)Z(Y,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${X}`);let B=!1,W="",V=X.length;for(let J=1;J<q.length;++J){let G=q[J];switch(G.type){case"space":B=!0;case"newline":V+=G.source.length;break;case"comment":if($&&!B)Z(G,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");V+=G.source.length,W=G.source.substring(1);break;case"error":Z(G,"UNEXPECTED_TOKEN",G.message),V+=G.source.length;break;default:{let L=`Unexpected token in block scalar header: ${G.type}`;Z(G,"UNEXPECTED_TOKEN",L);let F=G.source;if(F&&typeof F==="string")V+=F.length}}}return{mode:z,indent:U,chomp:Q,comment:W,length:V}}function pL(_){let q=_.split(/\n( *)/),$=q[0],Z=$.match(/^( *)/),z=[Z?.[1]?[Z[1],$.slice(Z[1].length)]:["",$]];for(let U=1;U<q.length;U+=2)z.push([q[U],q[U+1]]);return z}rL.resolveBlockScalar=iL});var W$=H((ZM)=>{var J$=r(),nL=J0();function aL(_,q,$){let{offset:Z,type:X,source:z,end:U}=_,Q,Y,B=(J,G,L)=>$(Z+J,G,L);switch(X){case"scalar":Q=J$.Scalar.PLAIN,Y=oL(z,B);break;case"single-quoted-scalar":Q=J$.Scalar.QUOTE_SINGLE,Y=tL(z,B);break;case"double-quoted-scalar":Q=J$.Scalar.QUOTE_DOUBLE,Y=eL(z,B);break;default:return $(_,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${X}`),{value:"",type:null,comment:"",range:[Z,Z+z.length,Z+z.length]}}let W=Z+z.length,V=nL.resolveEnd(U,W,q,$);return{value:Y,type:Q,comment:V.comment,range:[Z,W,V.offset]}}function oL(_,q){let $="";switch(_[0]){case"\t":$="a tab character";break;case",":$="flow indicator character ,";break;case"%":$="directive indicator character %";break;case"|":case">":{$=`block scalar indicator ${_[0]}`;break}case"@":case"`":{$=`reserved character ${_[0]}`;break}}if($)q(0,"BAD_SCALAR_START",`Plain value cannot start with ${$}`);return U5(_)}function tL(_,q){if(_[_.length-1]!=="'"||_.length===1)q(_.length,"MISSING_CHAR","Missing closing 'quote");return U5(_.slice(1,-1)).replace(/''/g,"'")}function U5(_){let q,$;try{q=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
132
132
|
`,"sy"),$=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
133
133
|
`,"sy")}catch{q=/(.*?)[ \t]*\r?\n/sy,$=/[ \t]*(.*?)[ \t]*\r?\n/sy}let Z=q.exec(_);if(!Z)return _;let X=Z[1],z=" ",U=q.lastIndex;$.lastIndex=U;while(Z=$.exec(_)){if(Z[1]==="")if(z===`
|
|
134
134
|
`)X+=z;else z=`
|
|
135
|
-
`;else X+=z+Z[1],z=" ";U=$.lastIndex}let Q=/[ \t]*(.*)/sy;return Q.lastIndex=U,Z=Q.exec(_),X+z+(Z?.[1]??"")}function
|
|
135
|
+
`;else X+=z+Z[1],z=" ";U=$.lastIndex}let Q=/[ \t]*(.*)/sy;return Q.lastIndex=U,Z=Q.exec(_),X+z+(Z?.[1]??"")}function eL(_,q){let $="";for(let Z=1;Z<_.length-1;++Z){let X=_[Z];if(X==="\r"&&_[Z+1]===`
|
|
136
136
|
`)continue;if(X===`
|
|
137
|
-
`){let{fold:z,offset:U}=
|
|
137
|
+
`){let{fold:z,offset:U}=_M(_,Z);$+=z,Z=U}else if(X==="\\"){let z=_[++Z],U=qM[z];if(U)$+=U;else if(z===`
|
|
138
138
|
`){z=_[Z+1];while(z===" "||z==="\t")z=_[++Z+1]}else if(z==="\r"&&_[Z+1]===`
|
|
139
|
-
`){z=_[++Z+1];while(z===" "||z==="\t")z=_[++Z+1]}else if(z==="x"||z==="u"||z==="U"){let Q={x:2,u:4,U:8}[z]
|
|
139
|
+
`){z=_[++Z+1];while(z===" "||z==="\t")z=_[++Z+1]}else if(z==="x"||z==="u"||z==="U"){let Q={x:2,u:4,U:8}[z];$+=$M(_,Z+1,Q,q),Z+=Q}else{let Q=_.substr(Z-1,2);q(Z-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${Q}`),$+=Q}}else if(X===" "||X==="\t"){let z=Z,U=_[Z+1];while(U===" "||U==="\t")U=_[++Z+1];if(U!==`
|
|
140
140
|
`&&!(U==="\r"&&_[Z+2]===`
|
|
141
|
-
`))$+=Z>z?_.slice(z,Z+1):X}else $+=X}if(_[_.length-1]!=='"'||_.length===1)q(_.length,"MISSING_CHAR",'Missing closing "quote');return $}function
|
|
141
|
+
`))$+=Z>z?_.slice(z,Z+1):X}else $+=X}if(_[_.length-1]!=='"'||_.length===1)q(_.length,"MISSING_CHAR",'Missing closing "quote');return $}function _M(_,q){let $="",Z=_[q+1];while(Z===" "||Z==="\t"||Z===`
|
|
142
142
|
`||Z==="\r"){if(Z==="\r"&&_[q+2]!==`
|
|
143
143
|
`)break;if(Z===`
|
|
144
144
|
`)$+=`
|
|
145
|
-
`;q+=1,Z=_[q+1]}if(!$)$=" ";return{fold:$,offset:q}}var
|
|
146
|
-
`,r:"\r",t:"\t",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function
|
|
145
|
+
`;q+=1,Z=_[q+1]}if(!$)$=" ";return{fold:$,offset:q}}var qM={"0":"\x00",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
146
|
+
`,r:"\r",t:"\t",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function $M(_,q,$,Z){let X=_.substr(q,$),U=X.length===$&&/^[0-9a-fA-F]+$/.test(X)?parseInt(X,16):NaN;if(isNaN(U)){let Q=_.substr(q-2,$+2);return Z(q-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${Q}`),Q}return String.fromCodePoint(U)}ZM.resolveFlowScalar=aL});var Y5=H((JM)=>{var c1=g(),Q5=r(),zM=B$(),UM=W$();function QM(_,q,$,Z){let{value:X,type:z,comment:U,range:Q}=q.type==="block-scalar"?zM.resolveBlockScalar(_,q,Z):UM.resolveFlowScalar(q,_.options.strict,Z),Y=$?_.directives.tagName($.source,(V)=>Z($,"TAG_RESOLVE_FAILED",V)):null,B;if(_.options.stringKeys&&_.atKey)B=_.schema[c1.SCALAR];else if(Y)B=YM(_.schema,X,Y,$,Z);else if(q.type==="scalar")B=BM(_,X,q,Z);else B=_.schema[c1.SCALAR];let W;try{let V=B.resolve(X,(J)=>Z($??q,"TAG_RESOLVE_FAILED",J),_.options);W=c1.isScalar(V)?V:new Q5.Scalar(V)}catch(V){let J=V instanceof Error?V.message:String(V);Z($??q,"TAG_RESOLVE_FAILED",J),W=new Q5.Scalar(X)}if(W.range=Q,W.source=X,z)W.type=z;if(Y)W.tag=Y;if(B.format)W.format=B.format;if(U)W.comment=U;return W}function YM(_,q,$,Z,X){if($==="!")return _[c1.SCALAR];let z=[];for(let Q of _.tags)if(!Q.collection&&Q.tag===$)if(Q.default&&Q.test)z.push(Q);else return Q;for(let Q of z)if(Q.test?.test(q))return Q;let U=_.knownTags[$];if(U&&!U.collection)return _.tags.push(Object.assign({},U,{default:!1,test:void 0})),U;return X(Z,"TAG_RESOLVE_FAILED",`Unresolved tag: ${$}`,$!=="tag:yaml.org,2002:str"),_[c1.SCALAR]}function BM({atKey:_,directives:q,schema:$},Z,X,z){let U=$.tags.find((Q)=>(Q.default===!0||_&&Q.default==="key")&&Q.test?.test(Z))||$[c1.SCALAR];if($.compat){let Q=$.compat.find((Y)=>Y.default&&Y.test?.test(Z))??$[c1.SCALAR];if(U.tag!==Q.tag){let Y=q.tagString(U.tag),B=q.tagString(Q.tag),W=`Value may be parsed as either ${Y} or ${B}`;z(X,"TAG_RESOLVE_FAILED",W,!0)}}return U}JM.composeScalar=QM});var B5=H((FM)=>{function VM(_,q,$){if(q){$??($=q.length);for(let Z=$-1;Z>=0;--Z){let X=q[Z];switch(X.type){case"space":case"comment":case"newline":_-=X.source.length;continue}X=q[++Z];while(X?.type==="space")_+=X.source.length,X=q[++Z];break}}return _}FM.emptyScalarPosition=VM});var V5=H((SM)=>{var LM=A0(),MM=g(),HM=z5(),J5=Y5(),IM=J0(),TM=B5(),KM={composeNode:W5,composeEmptyNode:V$};function W5(_,q,$,Z){let X=_.atKey,{spaceBefore:z,comment:U,anchor:Q,tag:Y}=$,B,W=!0;switch(q.type){case"alias":if(B=DM(_,q,Z),Q||Y)Z(q,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":if(B=J5.composeScalar(_,q,Y,Z),Q)B.anchor=Q.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":if(B=HM.composeCollection(KM,_,q,$,Z),Q)B.anchor=Q.source.substring(1);break;default:{let V=q.type==="error"?q.message:`Unsupported token (type: ${q.type})`;Z(q,"UNEXPECTED_TOKEN",V),B=V$(_,q.offset,void 0,null,$,Z),W=!1}}if(Q&&B.anchor==="")Z(Q,"BAD_ALIAS","Anchor cannot be an empty string");if(X&&_.options.stringKeys&&(!MM.isScalar(B)||typeof B.value!=="string"||B.tag&&B.tag!=="tag:yaml.org,2002:str"))Z(Y??q,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(z)B.spaceBefore=!0;if(U)if(q.type==="scalar"&&q.source==="")B.comment=U;else B.commentBefore=U;if(_.options.keepSourceTokens&&W)B.srcToken=q;return B}function V$(_,q,$,Z,{spaceBefore:X,comment:z,anchor:U,tag:Q,end:Y},B){let W={type:"scalar",offset:TM.emptyScalarPosition(q,$,Z),indent:-1,source:""},V=J5.composeScalar(_,W,Q,B);if(U){if(V.anchor=U.source.substring(1),V.anchor==="")B(U,"BAD_ALIAS","Anchor cannot be an empty string")}if(X)V.spaceBefore=!0;if(z)V.comment=z,V.range[2]=Y;return V}function DM({options:_},{offset:q,source:$,end:Z},X){let z=new LM.Alias($.substring(1));if(z.source==="")X(q,"BAD_ALIAS","Alias cannot be an empty string");if(z.source.endsWith(":"))X(q+$.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let U=q+$.length,Q=IM.resolveEnd(Z,U,_.strict,X);if(z.range=[q,U,Q.offset],Q.comment)z.comment=Q.comment;return z}SM.composeEmptyNode=V$;SM.composeNode=W5});var G5=H((OM)=>{var PM=m0(),F5=V5(),AM=J0(),jM=l0();function NM(_,q,{offset:$,start:Z,value:X,end:z},U){let Q=Object.assign({_directives:q},_),Y=new PM.Document(void 0,Q),B={atKey:!1,atRoot:!0,directives:Y.directives,options:Y.options,schema:Y.schema},W=jM.resolveProps(Z,{indicator:"doc-start",next:X??z?.[0],offset:$,onError:U,parentIndent:0,startOnNewline:!0});if(W.found){if(Y.directives.docStart=!0,X&&(X.type==="block-map"||X.type==="block-seq")&&!W.hasNewline)U(W.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}Y.contents=X?F5.composeNode(B,X,W,U):F5.composeEmptyNode(B,W.end,Z,null,W,U);let V=Y.contents.range[2],J=AM.resolveEnd(z,V,!1,U);if(J.comment)Y.comment=J.comment;return Y.range=[$,V,J.offset],Y}OM.composeDoc=NM});var F$=H((xM)=>{var EM=x("process"),CM=H9(),bM=m0(),i0=d0(),L5=g(),yM=G5(),hM=J0();function c0(_){if(typeof _==="number")return[_,_+1];if(Array.isArray(_))return _.length===2?_:[_[0],_[1]];let{offset:q,source:$}=_;return[q,q+(typeof $==="string"?$.length:1)]}function M5(_){let q="",$=!1,Z=!1;for(let X=0;X<_.length;++X){let z=_[X];switch(z[0]){case"#":q+=(q===""?"":Z?`
|
|
147
147
|
|
|
148
148
|
`:`
|
|
149
|
-
`)+(z.substring(1)||" "),$=!0,Z=!1;break;case"%":if(_[X+1]?.[0]!=="#")X+=1;$=!1;break;default:if(!$)Z=!0;$=!1}}return{comment:q,afterEmptyLine:Z}}class
|
|
149
|
+
`)+(z.substring(1)||" "),$=!0,Z=!1;break;case"%":if(_[X+1]?.[0]!=="#")X+=1;$=!1;break;default:if(!$)Z=!0;$=!1}}return{comment:q,afterEmptyLine:Z}}class H5{constructor(_={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(q,$,Z,X)=>{let z=c0(q);if(X)this.warnings.push(new i0.YAMLWarning(z,$,Z));else this.errors.push(new i0.YAMLParseError(z,$,Z))},this.directives=new CM.Directives({version:_.version||"1.2"}),this.options=_}decorate(_,q){let{comment:$,afterEmptyLine:Z}=M5(this.prelude);if($){let X=_.contents;if(q)_.comment=_.comment?`${_.comment}
|
|
150
150
|
${$}`:$;else if(Z||_.directives.docStart||!X)_.commentBefore=$;else if(L5.isCollection(X)&&!X.flow&&X.items.length>0){let z=X.items[0];if(L5.isPair(z))z=z.key;let U=z.commentBefore;z.commentBefore=U?`${$}
|
|
151
151
|
${U}`:$}else{let z=X.commentBefore;X.commentBefore=z?`${$}
|
|
152
|
-
${z}`:$}}if(q)Array.prototype.push.apply(_.errors,this.errors),Array.prototype.push.apply(_.warnings,this.warnings);else _.errors=this.errors,_.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:
|
|
153
|
-
${q.comment}`:q.comment}this.doc.range[2]=q.offset;break}default:this.errors.push(new i0.YAMLParseError(c0(_),"UNEXPECTED_TOKEN",`Unsupported token ${_.type}`))}}*end(_=!1,q=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(_){let $=Object.assign({_directives:this.directives},this.options),Z=new
|
|
152
|
+
${z}`:$}}if(q)Array.prototype.push.apply(_.errors,this.errors),Array.prototype.push.apply(_.warnings,this.warnings);else _.errors=this.errors,_.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:M5(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(_,q=!1,$=-1){for(let Z of _)yield*this.next(Z);yield*this.end(q,$)}*next(_){if(EM.env.LOG_STREAM)console.dir(_,{depth:null});switch(_.type){case"directive":this.directives.add(_.source,(q,$,Z)=>{let X=c0(_);X[0]+=q,this.onError(X,"BAD_DIRECTIVE",$,Z)}),this.prelude.push(_.source),this.atDirectives=!0;break;case"document":{let q=yM.composeDoc(this.options,this.directives,_,this.onError);if(this.atDirectives&&!q.directives.docStart)this.onError(_,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate(q,!1),this.doc)yield this.doc;this.doc=q,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(_.source);break;case"error":{let q=_.source?`${_.message}: ${JSON.stringify(_.source)}`:_.message,$=new i0.YAMLParseError(c0(_),"UNEXPECTED_TOKEN",q);if(this.atDirectives||!this.doc)this.errors.push($);else this.doc.errors.push($);break}case"doc-end":{if(!this.doc){this.errors.push(new i0.YAMLParseError(c0(_),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let q=hM.resolveEnd(_.end,_.offset+_.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),q.comment){let $=this.doc.comment;this.doc.comment=$?`${$}
|
|
153
|
+
${q.comment}`:q.comment}this.doc.range[2]=q.offset;break}default:this.errors.push(new i0.YAMLParseError(c0(_),"UNEXPECTED_TOKEN",`Unsupported token ${_.type}`))}}*end(_=!1,q=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(_){let $=Object.assign({_directives:this.directives},this.options),Z=new bM.Document(void 0,$);if(this.atDirectives)this.onError(q,"MISSING_CHAR","Missing directives-end indicator line");Z.range=[0,q,q],this.decorate(Z,!1),yield Z}}}xM.Composer=H5});var K5=H((cM)=>{var kM=B$(),vM=W$(),uM=d0(),I5=f0();function mM(_,q=!0,$){if(_){let Z=(X,z,U)=>{let Q=typeof X==="number"?X:Array.isArray(X)?X[0]:X.offset;if($)$(Q,z,U);else throw new uM.YAMLParseError([Q,Q+1],z,U)};switch(_.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return vM.resolveFlowScalar(_,q,Z);case"block-scalar":return kM.resolveBlockScalar({options:{strict:q}},_,Z)}}return null}function dM(_,q){let{implicitKey:$=!1,indent:Z,inFlow:X=!1,offset:z=-1,type:U="PLAIN"}=q,Q=I5.stringifyString({type:U,value:_},{implicitKey:$,indent:Z>0?" ".repeat(Z):"",inFlow:X,options:{blockQuote:!0,lineWidth:-1}}),Y=q.end??[{type:"newline",offset:-1,indent:Z,source:`
|
|
154
154
|
`}];switch(Q[0]){case"|":case">":{let B=Q.indexOf(`
|
|
155
155
|
`),W=Q.substring(0,B),V=Q.substring(B+1)+`
|
|
156
156
|
`,J=[{type:"block-scalar-header",offset:z,indent:Z,source:W}];if(!T5(J,Y))J.push({type:"newline",offset:-1,indent:Z,source:`
|
|
157
|
-
`});return{type:"block-scalar",offset:z,indent:Z,props:J,source:V}}case'"':return{type:"double-quoted-scalar",offset:z,indent:Z,source:Q,end:Y};case"'":return{type:"single-quoted-scalar",offset:z,indent:Z,source:Q,end:Y};default:return{type:"scalar",offset:z,indent:Z,source:Q,end:Y}}}function
|
|
157
|
+
`});return{type:"block-scalar",offset:z,indent:Z,props:J,source:V}}case'"':return{type:"double-quoted-scalar",offset:z,indent:Z,source:Q,end:Y};case"'":return{type:"single-quoted-scalar",offset:z,indent:Z,source:Q,end:Y};default:return{type:"scalar",offset:z,indent:Z,source:Q,end:Y}}}function lM(_,q,$={}){let{afterKey:Z=!1,implicitKey:X=!1,inFlow:z=!1,type:U}=$,Q="indent"in _?_.indent:null;if(Z&&typeof Q==="number")Q+=2;if(!U)switch(_.type){case"single-quoted-scalar":U="QUOTE_SINGLE";break;case"double-quoted-scalar":U="QUOTE_DOUBLE";break;case"block-scalar":{let B=_.props[0];if(B.type!=="block-scalar-header")throw Error("Invalid block scalar header");U=B.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:U="PLAIN"}let Y=I5.stringifyString({type:U,value:q},{implicitKey:X||Q===null,indent:Q!==null&&Q>0?" ".repeat(Q):"",inFlow:z,options:{blockQuote:!0,lineWidth:-1}});switch(Y[0]){case"|":case">":iM(_,Y);break;case'"':G$(_,Y,"double-quoted-scalar");break;case"'":G$(_,Y,"single-quoted-scalar");break;default:G$(_,Y,"scalar")}}function iM(_,q){let $=q.indexOf(`
|
|
158
158
|
`),Z=q.substring(0,$),X=q.substring($+1)+`
|
|
159
159
|
`;if(_.type==="block-scalar"){let z=_.props[0];if(z.type!=="block-scalar-header")throw Error("Invalid block scalar header");z.source=Z,_.source=X}else{let{offset:z}=_,U="indent"in _?_.indent:-1,Q=[{type:"block-scalar-header",offset:z,indent:U,source:Z}];if(!T5(Q,"end"in _?_.end:void 0))Q.push({type:"newline",offset:-1,indent:U,source:`
|
|
160
160
|
`});for(let Y of Object.keys(_))if(Y!=="type"&&Y!=="offset")delete _[Y];Object.assign(_,{type:"block-scalar",indent:U,props:Q,source:X})}}function T5(_,q){if(q)for(let $ of q)switch($.type){case"space":case"comment":_.push($);break;case"newline":return _.push($),!0}return!1}function G$(_,q,$){switch(_.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":_.type=$,_.source=q;break;case"block-scalar":{let Z=_.props.slice(1),X=q.length;if(_.props[0].type==="block-scalar-header")X-=_.props[0].source.length;for(let z of Z)z.offset+=X;delete _.props,Object.assign(_,{type:$,source:q,end:Z});break}case"block-map":case"block-seq":{let X={type:"newline",offset:_.offset+q.length,indent:_.indent,source:`
|
|
161
|
-
`};delete _.items,Object.assign(_,{type:$,source:q,end:[X]});break}default:{let Z="indent"in _?_.indent:-1,X="end"in _&&Array.isArray(_.end)?_.end.filter((z)=>z.type==="space"||z.type==="comment"||z.type==="newline"):[];for(let z of Object.keys(_))if(z!=="type"&&z!=="offset")delete _[z];Object.assign(_,{type:$,indent:Z,source:q,end:X})}}}
|
|
161
|
+
`};delete _.items,Object.assign(_,{type:$,source:q,end:[X]});break}default:{let Z="indent"in _?_.indent:-1,X="end"in _&&Array.isArray(_.end)?_.end.filter((z)=>z.type==="space"||z.type==="comment"||z.type==="newline"):[];for(let z of Object.keys(_))if(z!=="type"&&z!=="offset")delete _[z];Object.assign(_,{type:$,indent:Z,source:q,end:X})}}}cM.createScalarToken=dM;cM.resolveAsScalar=mM;cM.setScalarValue=lM});var D5=H((aM)=>{var nM=(_)=>("type"in _)?Zq(_):$q(_);function Zq(_){switch(_.type){case"block-scalar":{let q="";for(let $ of _.props)q+=Zq($);return q+_.source}case"block-map":case"block-seq":{let q="";for(let $ of _.items)q+=$q($);return q}case"flow-collection":{let q=_.start.source;for(let $ of _.items)q+=$q($);for(let $ of _.end)q+=$.source;return q}case"document":{let q=$q(_);if(_.end)for(let $ of _.end)q+=$.source;return q}default:{let q=_.source;if("end"in _&&_.end)for(let $ of _.end)q+=$.source;return q}}}function $q({start:_,key:q,sep:$,value:Z}){let X="";for(let z of _)X+=z.source;if(q)X+=Zq(q);if($)for(let z of $)X+=z.source;if(Z)X+=Zq(Z);return X}aM.stringify=nM});var R5=H((eM)=>{var L$=Symbol("break visit"),tM=Symbol("skip children"),S5=Symbol("remove item");function p1(_,q){if("type"in _&&_.type==="document")_={start:_.start,value:_.value};w5(Object.freeze([]),_,q)}p1.BREAK=L$;p1.SKIP=tM;p1.REMOVE=S5;p1.itemAtPath=(_,q)=>{let $=_;for(let[Z,X]of q){let z=$?.[Z];if(z&&"items"in z)$=z.items[X];else return}return $};p1.parentCollection=(_,q)=>{let $=p1.itemAtPath(_,q.slice(0,-1)),Z=q[q.length-1][0],X=$?.[Z];if(X&&"items"in X)return X;throw Error("Parent collection not found")};function w5(_,q,$){let Z=$(q,_);if(typeof Z==="symbol")return Z;for(let X of["key","value"]){let z=q[X];if(z&&"items"in z){for(let U=0;U<z.items.length;++U){let Q=w5(Object.freeze(_.concat([[X,U]])),z.items[U],$);if(typeof Q==="number")U=Q-1;else if(Q===L$)return L$;else if(Q===S5)z.items.splice(U,1),U-=1}if(typeof Z==="function"&&X==="key")Z=Z(q,_)}}return typeof Z==="function"?Z(q,_):Z}eM.visit=p1});var Xq=H((QH)=>{var M$=K5(),qH=D5(),$H=R5(),H$="\uFEFF",I$="\x02",T$="\x18",K$="\x1F",ZH=(_)=>!!_&&("items"in _),XH=(_)=>!!_&&(_.type==="scalar"||_.type==="single-quoted-scalar"||_.type==="double-quoted-scalar"||_.type==="block-scalar");function zH(_){switch(_){case H$:return"<BOM>";case I$:return"<DOC>";case T$:return"<FLOW_END>";case K$:return"<SCALAR>";default:return JSON.stringify(_)}}function UH(_){switch(_){case H$:return"byte-order-mark";case I$:return"doc-mode";case T$:return"flow-error-end";case K$:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
162
162
|
`:case`\r
|
|
163
|
-
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(_[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}
|
|
164
|
-
`:case"\r":case"\t":return!0;default:return!1}}var P5=new Set("0123456789ABCDEFabcdef"),
|
|
165
|
-
\r `),D$=(_)=>!_||
|
|
163
|
+
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(_[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}QH.createScalarToken=M$.createScalarToken;QH.resolveAsScalar=M$.resolveAsScalar;QH.setScalarValue=M$.setScalarValue;QH.stringify=qH.stringify;QH.visit=$H.visit;QH.BOM=H$;QH.DOCUMENT=I$;QH.FLOW_END=T$;QH.SCALAR=K$;QH.isCollection=ZH;QH.isScalar=XH;QH.prettyToken=zH;QH.tokenType=UH});var S$=H((wH)=>{var p0=Xq();function V1(_){switch(_){case void 0:case" ":case`
|
|
164
|
+
`:case"\r":case"\t":return!0;default:return!1}}var P5=new Set("0123456789ABCDEFabcdef"),DH=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),zq=new Set(",[]{}"),SH=new Set(` ,[]{}
|
|
165
|
+
\r `),D$=(_)=>!_||SH.has(_);class A5{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(_,q=!1){if(_){if(typeof _!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+_:_,this.lineEndPos=null}this.atEnd=!q;let $=this.next??"stream";while($&&(q||this.hasChars(1)))$=yield*this.parseNext($)}atLineEnd(){let _=this.pos,q=this.buffer[_];while(q===" "||q==="\t")q=this.buffer[++_];if(!q||q==="#"||q===`
|
|
166
166
|
`)return!0;if(q==="\r")return this.buffer[_+1]===`
|
|
167
167
|
`;return!1}charAt(_){return this.buffer[this.pos+_]}continueScalar(_){let q=this.buffer[_];if(this.indentNext>0){let $=0;while(q===" ")q=this.buffer[++$+_];if(q==="\r"){let Z=this.buffer[$+_+1];if(Z===`
|
|
168
168
|
`||!Z&&!this.atEnd)return _+$+1}return q===`
|
|
@@ -177,41 +177,43 @@ ${q.comment}`:q.comment}this.doc.range[2]=q.offset;break}default:this.errors.pus
|
|
|
177
177
|
`&&X>=this.pos&&X+1+q>U)_=X;else break}while(!0);return yield p0.SCALAR,yield*this.pushToIndex(_+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let _=this.flowLevel>0,q=this.pos-1,$=this.pos-1,Z;while(Z=this.buffer[++$])if(Z===":"){let X=this.buffer[$+1];if(V1(X)||_&&zq.has(X))break;q=$}else if(V1(Z)){let X=this.buffer[$+1];if(Z==="\r")if(X===`
|
|
178
178
|
`)$+=1,Z=`
|
|
179
179
|
`,X=this.buffer[$+1];else q=$;if(X==="#"||_&&zq.has(X))break;if(Z===`
|
|
180
|
-
`){let z=this.continueScalar($+1);if(z===-1)break;$=Math.max($,z-2)}}else{if(_&&zq.has(Z))break;q=$}if(!Z&&!this.atEnd)return this.setNext("plain-scalar");return yield p0.SCALAR,yield*this.pushToIndex(q+1,!0),_?"flow":"doc"}*pushCount(_){if(_>0)return yield this.buffer.substr(this.pos,_),this.pos+=_,_;return 0}*pushToIndex(_,q){let $=this.buffer.slice(this.pos,_);if($)return yield $,this.pos+=$.length,$.length;else if(q)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(D$))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let _=this.flowLevel>0,q=this.charAt(1);if(V1(q)||_&&zq.has(q)){if(!_)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=!1;return(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let _=this.pos+2,q=this.buffer[_];while(!V1(q)&&q!==">")q=this.buffer[++_];return yield*this.pushToIndex(q===">"?_+1:_,!1)}else{let _=this.pos+1,q=this.buffer[_];while(q)if(
|
|
180
|
+
`){let z=this.continueScalar($+1);if(z===-1)break;$=Math.max($,z-2)}}else{if(_&&zq.has(Z))break;q=$}if(!Z&&!this.atEnd)return this.setNext("plain-scalar");return yield p0.SCALAR,yield*this.pushToIndex(q+1,!0),_?"flow":"doc"}*pushCount(_){if(_>0)return yield this.buffer.substr(this.pos,_),this.pos+=_,_;return 0}*pushToIndex(_,q){let $=this.buffer.slice(this.pos,_);if($)return yield $,this.pos+=$.length,$.length;else if(q)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(D$))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let _=this.flowLevel>0,q=this.charAt(1);if(V1(q)||_&&zq.has(q)){if(!_)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=!1;return(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let _=this.pos+2,q=this.buffer[_];while(!V1(q)&&q!==">")q=this.buffer[++_];return yield*this.pushToIndex(q===">"?_+1:_,!1)}else{let _=this.pos+1,q=this.buffer[_];while(q)if(DH.has(q))q=this.buffer[++_];else if(q==="%"&&P5.has(this.buffer[_+1])&&P5.has(this.buffer[_+2]))q=this.buffer[_+=3];else break;return yield*this.pushToIndex(_,!1)}}*pushNewline(){let _=this.buffer[this.pos];if(_===`
|
|
181
181
|
`)return yield*this.pushCount(1);else if(_==="\r"&&this.charAt(1)===`
|
|
182
|
-
`)return yield*this.pushCount(2);else return 0}*pushSpaces(_){let q=this.pos-1,$;do $=this.buffer[++q];while($===" "||_&&$==="\t");let Z=q-this.pos;if(Z>0)yield this.buffer.substr(this.pos,Z),this.pos=q;return Z}*pushUntil(_){let q=this.pos,$=this.buffer[q];while(!_($))$=this.buffer[++q];return yield*this.pushToIndex(q,!1)}}
|
|
182
|
+
`)return yield*this.pushCount(2);else return 0}*pushSpaces(_){let q=this.pos-1,$;do $=this.buffer[++q];while($===" "||_&&$==="\t");let Z=q-this.pos;if(Z>0)yield this.buffer.substr(this.pos,Z),this.pos=q;return Z}*pushUntil(_){let q=this.pos,$=this.buffer[q];while(!_($))$=this.buffer[++q];return yield*this.pushToIndex(q,!1)}}wH.Lexer=A5});var w$=H((PH)=>{class j5{constructor(){this.lineStarts=[],this.addNewLine=(_)=>this.lineStarts.push(_),this.linePos=(_)=>{let q=0,$=this.lineStarts.length;while(q<$){let X=q+$>>1;if(this.lineStarts[X]<_)q=X+1;else $=X}if(this.lineStarts[q]===_)return{line:q+1,col:1};if(q===0)return{line:0,col:_};let Z=this.lineStarts[q-1];return{line:q,col:_-Z+1}}}}PH.LineCounter=j5});var R$=H((OH)=>{var jH=x("process"),N5=Xq(),NH=S$();function y1(_,q){for(let $=0;$<_.length;++$)if(_[$].type===q)return!0;return!1}function O5(_){for(let q=0;q<_.length;++q)switch(_[q].type){case"space":case"comment":case"newline":break;default:return q}return-1}function E5(_){switch(_?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Uq(_){switch(_.type){case"document":return _.start;case"block-map":{let q=_.items[_.items.length-1];return q.sep??q.start}case"block-seq":return _.items[_.items.length-1].start;default:return[]}}function W0(_){if(_.length===0)return[];let q=_.length;_:while(--q>=0)switch(_[q].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break _}while(_[++q]?.type==="space");return _.splice(q,_.length)}function f5(_){if(_.start.type==="flow-seq-start"){for(let q of _.items)if(q.sep&&!q.value&&!y1(q.start,"explicit-key-ind")&&!y1(q.sep,"map-value-ind")){if(q.key)q.value=q.key;if(delete q.key,E5(q.value))if(q.value.end)Array.prototype.push.apply(q.value.end,q.sep);else q.value.end=q.sep;else Array.prototype.push.apply(q.start,q.sep);delete q.sep}}}class C5{constructor(_){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new NH.Lexer,this.onNewLine=_}*parse(_,q=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let $ of this.lexer.lex(_,q))yield*this.next($);if(!q)yield*this.end()}*next(_){if(this.source=_,jH.env.LOG_TOKENS)console.log("|",N5.prettyToken(_));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=_.length;return}let q=N5.tokenType(_);if(!q){let $=`Not a YAML token: ${_}`;yield*this.pop({type:"error",offset:this.offset,message:$,source:_}),this.offset+=_.length}else if(q==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=q,yield*this.step(),q){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+_.length);break;case"space":if(this.atNewLine&&_[0]===" ")this.indent+=_.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=_.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=_.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let _=this.peek(1);if(this.type==="doc-end"&&_?.type!=="doc-end"){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!_)return yield*this.stream();switch(_.type){case"document":return yield*this.document(_);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(_);case"block-scalar":return yield*this.blockScalar(_);case"block-map":return yield*this.blockMap(_);case"block-seq":return yield*this.blockSequence(_);case"flow-collection":return yield*this.flowCollection(_);case"doc-end":return yield*this.documentEnd(_)}yield*this.pop()}peek(_){return this.stack[this.stack.length-_]}*pop(_){let q=_??this.stack.pop();if(!q)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield q;else{let $=this.peek(1);if(q.type==="block-scalar")q.indent="indent"in $?$.indent:0;else if(q.type==="flow-collection"&&$.type==="document")q.indent=0;if(q.type==="flow-collection")f5(q);switch($.type){case"document":$.value=q;break;case"block-scalar":$.props.push(q);break;case"block-map":{let Z=$.items[$.items.length-1];if(Z.value){$.items.push({start:[],key:q,sep:[]}),this.onKeyLine=!0;return}else if(Z.sep)Z.value=q;else{Object.assign(Z,{key:q,sep:[]}),this.onKeyLine=!Z.explicitKey;return}break}case"block-seq":{let Z=$.items[$.items.length-1];if(Z.value)$.items.push({start:[],value:q});else Z.value=q;break}case"flow-collection":{let Z=$.items[$.items.length-1];if(!Z||Z.value)$.items.push({start:[],key:q,sep:[]});else if(Z.sep)Z.value=q;else Object.assign(Z,{key:q,sep:[]});return}default:yield*this.pop(),yield*this.pop(q)}if(($.type==="document"||$.type==="block-map"||$.type==="block-seq")&&(q.type==="block-map"||q.type==="block-seq")){let Z=q.items[q.items.length-1];if(Z&&!Z.sep&&!Z.value&&Z.start.length>0&&O5(Z.start)===-1&&(q.indent===0||Z.start.every((X)=>X.type!=="comment"||X.indent<q.indent))){if($.type==="document")$.end=Z.start;else $.items.push({start:Z.start});q.items.splice(-1,1)}}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let _={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")_.start.push(this.sourceToken);this.stack.push(_);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(_){if(_.value)return yield*this.lineEnd(_);switch(this.type){case"doc-start":{if(O5(_.start)!==-1)yield*this.pop(),yield*this.step();else _.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":_.start.push(this.sourceToken);return}let q=this.startBlockValue(_);if(q)this.stack.push(q);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(_){if(this.type==="map-value-ind"){let q=Uq(this.peek(2)),$=W0(q),Z;if(_.end)Z=_.end,Z.push(this.sourceToken),delete _.end;else Z=[this.sourceToken];let X={type:"block-map",offset:_.offset,indent:_.indent,items:[{start:$,key:_,sep:Z}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=X}else yield*this.lineEnd(_)}*blockScalar(_){switch(this.type){case"space":case"comment":case"newline":_.props.push(this.sourceToken);return;case"scalar":if(_.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let q=this.source.indexOf(`
|
|
183
183
|
`)+1;while(q!==0)this.onNewLine(this.offset+q),q=this.source.indexOf(`
|
|
184
|
-
`,q)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(_){let q=_.items[_.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,q.value){let $="end"in q.value?q.value.end:void 0;if((Array.isArray($)?$[$.length-1]:void 0)?.type==="comment")$?.push(this.sourceToken);else _.items.push({start:[this.sourceToken]})}else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"space":case"comment":if(q.value)_.items.push({start:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else{if(this.atIndentedComment(q.start,_.indent)){let Z=_.items[_.items.length-2]?.value?.end;if(Array.isArray(Z)){Array.prototype.push.apply(Z,q.start),Z.push(this.sourceToken),_.items.pop();return}}q.start.push(this.sourceToken)}return}if(this.indent>=_.indent){let $=!this.onKeyLine&&this.indent===_.indent,Z=$&&(q.sep||q.explicitKey)&&this.type!=="seq-item-ind",X=[];if(Z&&q.sep&&!q.value){let z=[];for(let U=0;U<q.sep.length;++U){let Q=q.sep[U];switch(Q.type){case"newline":z.push(U);break;case"space":break;case"comment":if(Q.indent>_.indent)z.length=0;break;default:z.length=0}}if(z.length>=2)X=q.sep.splice(z[1])}switch(this.type){case"anchor":case"tag":if(Z||q.value)X.push(this.sourceToken),_.items.push({start:X}),this.onKeyLine=!0;else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"explicit-key-ind":if(!q.sep&&!q.explicitKey)q.start.push(this.sourceToken),q.explicitKey=!0;else if(Z||q.value)X.push(this.sourceToken),_.items.push({start:X,explicitKey:!0});else this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]});this.onKeyLine=!0;return;case"map-value-ind":if(q.explicitKey)if(!q.sep)if(
|
|
184
|
+
`,q)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(_){let q=_.items[_.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,q.value){let $="end"in q.value?q.value.end:void 0;if((Array.isArray($)?$[$.length-1]:void 0)?.type==="comment")$?.push(this.sourceToken);else _.items.push({start:[this.sourceToken]})}else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"space":case"comment":if(q.value)_.items.push({start:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else{if(this.atIndentedComment(q.start,_.indent)){let Z=_.items[_.items.length-2]?.value?.end;if(Array.isArray(Z)){Array.prototype.push.apply(Z,q.start),Z.push(this.sourceToken),_.items.pop();return}}q.start.push(this.sourceToken)}return}if(this.indent>=_.indent){let $=!this.onKeyLine&&this.indent===_.indent,Z=$&&(q.sep||q.explicitKey)&&this.type!=="seq-item-ind",X=[];if(Z&&q.sep&&!q.value){let z=[];for(let U=0;U<q.sep.length;++U){let Q=q.sep[U];switch(Q.type){case"newline":z.push(U);break;case"space":break;case"comment":if(Q.indent>_.indent)z.length=0;break;default:z.length=0}}if(z.length>=2)X=q.sep.splice(z[1])}switch(this.type){case"anchor":case"tag":if(Z||q.value)X.push(this.sourceToken),_.items.push({start:X}),this.onKeyLine=!0;else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"explicit-key-ind":if(!q.sep&&!q.explicitKey)q.start.push(this.sourceToken),q.explicitKey=!0;else if(Z||q.value)X.push(this.sourceToken),_.items.push({start:X,explicitKey:!0});else this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]});this.onKeyLine=!0;return;case"map-value-ind":if(q.explicitKey)if(!q.sep)if(y1(q.start,"newline"))Object.assign(q,{key:null,sep:[this.sourceToken]});else{let z=W0(q.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:z,key:null,sep:[this.sourceToken]}]})}else if(q.value)_.items.push({start:[],key:null,sep:[this.sourceToken]});else if(y1(q.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:X,key:null,sep:[this.sourceToken]}]});else if(E5(q.key)&&!y1(q.sep,"newline")){let z=W0(q.start),U=q.key,Q=q.sep;Q.push(this.sourceToken),delete q.key,delete q.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:z,key:U,sep:Q}]})}else if(X.length>0)q.sep=q.sep.concat(X,this.sourceToken);else q.sep.push(this.sourceToken);else if(!q.sep)Object.assign(q,{key:null,sep:[this.sourceToken]});else if(q.value||Z)_.items.push({start:X,key:null,sep:[this.sourceToken]});else if(y1(q.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else q.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let z=this.flowScalar(this.type);if(Z||q.value)_.items.push({start:X,key:z,sep:[]}),this.onKeyLine=!0;else if(q.sep)this.stack.push(z);else Object.assign(q,{key:z,sep:[]}),this.onKeyLine=!0;return}default:{let z=this.startBlockValue(_);if(z){if(z.type==="block-seq"){if(!q.explicitKey&&q.sep&&!y1(q.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if($)_.items.push({start:X});this.stack.push(z);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(_){let q=_.items[_.items.length-1];switch(this.type){case"newline":if(q.value){let $="end"in q.value?q.value.end:void 0;if((Array.isArray($)?$[$.length-1]:void 0)?.type==="comment")$?.push(this.sourceToken);else _.items.push({start:[this.sourceToken]})}else q.start.push(this.sourceToken);return;case"space":case"comment":if(q.value)_.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(q.start,_.indent)){let Z=_.items[_.items.length-2]?.value?.end;if(Array.isArray(Z)){Array.prototype.push.apply(Z,q.start),Z.push(this.sourceToken),_.items.pop();return}}q.start.push(this.sourceToken)}return;case"anchor":case"tag":if(q.value||this.indent<=_.indent)break;q.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==_.indent)break;if(q.value||y1(q.start,"seq-item-ind"))_.items.push({start:[this.sourceToken]});else q.start.push(this.sourceToken);return}if(this.indent>_.indent){let $=this.startBlockValue(_);if($){this.stack.push($);return}}yield*this.pop(),yield*this.step()}*flowCollection(_){let q=_.items[_.items.length-1];if(this.type==="flow-error-end"){let $;do yield*this.pop(),$=this.peek(1);while($?.type==="flow-collection")}else if(_.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!q||q.sep)_.items.push({start:[this.sourceToken]});else q.start.push(this.sourceToken);return;case"map-value-ind":if(!q||q.value)_.items.push({start:[],key:null,sep:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else Object.assign(q,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!q||q.value)_.items.push({start:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let Z=this.flowScalar(this.type);if(!q||q.value)_.items.push({start:[],key:Z,sep:[]});else if(q.sep)this.stack.push(Z);else Object.assign(q,{key:Z,sep:[]});return}case"flow-map-end":case"flow-seq-end":_.end.push(this.sourceToken);return}let $=this.startBlockValue(_);if($)this.stack.push($);else yield*this.pop(),yield*this.step()}else{let $=this.peek(2);if($.type==="block-map"&&(this.type==="map-value-ind"&&$.indent===_.indent||this.type==="newline"&&!$.items[$.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&$.type!=="flow-collection"){let Z=Uq($),X=W0(Z);f5(_);let z=_.end.splice(1,_.end.length);z.push(this.sourceToken);let U={type:"block-map",offset:_.offset,indent:_.indent,items:[{start:X,key:_,sep:z}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=U}else yield*this.lineEnd(_)}}flowScalar(_){if(this.onNewLine){let q=this.source.indexOf(`
|
|
185
185
|
`)+1;while(q!==0)this.onNewLine(this.offset+q),q=this.source.indexOf(`
|
|
186
|
-
`,q)+1}return{type:_,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(_){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let q=Uq(_),$=W0(q);return $.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:$,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let q=Uq(_),$=W0(q);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:$,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(_,q){if(this.type!=="comment")return!1;if(this.indent<=q)return!1;return _.every(($)=>$.type==="newline"||$.type==="space")}*documentEnd(_){if(this.type!=="doc-mode"){if(_.end)_.end.push(this.sourceToken);else _.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(_){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:if(_.end)_.end.push(this.sourceToken);else _.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}PM.Parser=C5});var g5=H((yM)=>{var b5=F$(),AM=m0(),r0=d0(),OM=S9(),NM=g(),fM=S$(),y5=R$();function h5(_){let q=_.prettyErrors!==!1;return{lineCounter:_.lineCounter||q&&new fM.LineCounter||null,prettyErrors:q}}function EM(_,q={}){let{lineCounter:$,prettyErrors:Z}=h5(q),X=new y5.Parser($?.addNewLine),z=new b5.Composer(q),U=Array.from(z.compose(X.parse(_)));if(Z&&$)for(let Q of U)Q.errors.forEach(r0.prettifyError(_,$)),Q.warnings.forEach(r0.prettifyError(_,$));if(U.length>0)return U;return Object.assign([],{empty:!0},z.streamInfo())}function x5(_,q={}){let{lineCounter:$,prettyErrors:Z}=h5(q),X=new y5.Parser($?.addNewLine),z=new b5.Composer(q),U=null;for(let Q of z.compose(X.parse(_),!0,_.length))if(!U)U=Q;else if(U.options.logLevel!=="silent"){U.errors.push(new r0.YAMLParseError(Q.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(Z&&$)U.errors.forEach(r0.prettifyError(_,$)),U.warnings.forEach(r0.prettifyError(_,$));return U}function CM(_,q,$){let Z=void 0;if(typeof q==="function")Z=q;else if($===void 0&&q&&typeof q==="object")$=q;let X=x5(_,$);if(!X)return null;if(X.warnings.forEach((z)=>OM.warn(X.options.logLevel,z)),X.errors.length>0)if(X.options.logLevel!=="silent")throw X.errors[0];else X.errors=[];return X.toJS(Object.assign({reviver:Z},$))}function bM(_,q,$){let Z=null;if(typeof q==="function"||Array.isArray(q))Z=q;else if($===void 0&&q)$=q;if(typeof $==="string")$=$.length;if(typeof $==="number"){let X=Math.round($);$=X<1?void 0:X>8?{indent:8}:{indent:X}}if(_===void 0){let{keepUndefined:X}=$??q??{};if(!X)return}if(NM.isDocument(_)&&!Z)return _.toString($);return new AM.Document(_,Z,$).toString($)}yM.parse=CM;yM.parseAllDocuments=EM;yM.parseDocument=x5;yM.stringify=bM});var o$=R1(a$(),1),{program:pI,createCommand:rI,createArgument:sI,createOption:nI,CommanderError:aI,InvalidArgumentError:oI,InvalidOptionArgumentError:tI,Command:t$,Argument:eI,Option:_T,Help:qT}=o$.default;import{readFileSync as EI}from"fs";import{join as CI,dirname as b$}from"path";import{fileURLToPath as bI}from"url";var c5=R1(a1(),1);var N$=R1(N7(),1);import{readFileSync as u5,existsSync as Fq}from"fs";import{join as Gq,resolve as O$,dirname as m5}from"path";import{readFileSync as f7,existsSync as w0}from"fs";import{join as S0}from"path";class K_{name="bun";isActive(_){let q=S0(_,"bun.lock"),$=S0(_,"bun.lockb");if(w0(q)||w0($))return!0;let Z=S0(_,"bunfig.toml");if(w0(Z))return!0;let X=S0(_,"package.json");if(w0(X))try{let z=JSON.parse(f7(X,"utf8"));if(z.bun||z.trustedDependencies)return!0}catch{}return!1}getRunCommand(_){return{command:"bun",args:["run",_]}}parseWorkspaceConfig(_){let q=S0(_,"package.json");if(!w0(q))throw Error("No package.json found in workspace root");let $=JSON.parse(f7(q,"utf8"));if(!$.workspaces)throw Error("No workspaces configuration found in package.json");let Z=$.workspaces,X=Array.isArray(Z)?Z:Z.packages;if(!Array.isArray(X))throw Error("Invalid workspaces configuration: must be an array or object with packages array");return{packages:X}}getLockFileName(){return"bun.lock"}}import{readFileSync as A$,existsSync as V0}from"fs";import{join as F0}from"path";var vM=F$(),uM=m0(),mM=o9(),P$=d0(),dM=j0(),y1=g(),lM=N1(),iM=r(),cM=E1(),pM=C1(),dD=Xq(),rM=w$(),sM=S$(),nM=R$(),Qq=g5(),k5=R0();var aM=vM.Composer,oM=uM.Document,tM=mM.Schema,eM=P$.YAMLError,_I=P$.YAMLParseError,qI=P$.YAMLWarning,$I=dM.Alias,ZI=y1.isAlias,XI=y1.isCollection,zI=y1.isDocument,UI=y1.isMap,QI=y1.isNode,YI=y1.isPair,BI=y1.isScalar,JI=y1.isSeq,WI=lM.Pair,VI=iM.Scalar,FI=cM.YAMLMap,GI=pM.YAMLSeq;var LI=rM.Lexer,HI=sM.LineCounter,MI=nM.Parser,j$=Qq.parse,II=Qq.parseAllDocuments,TI=Qq.parseDocument,KI=Qq.stringify,DI=k5.visit,wI=k5.visitAsync;class Yq{name="pnpm";isActive(_){let q=F0(_,"pnpm-lock.yaml");if(V0(q))return!0;let $=F0(_,"pnpm-workspace.yaml");if(V0($))return!0;let Z=F0(_,".pnpmfile.cjs");if(V0(Z))return!0;let X=F0(_,"package.json");if(V0(X))try{let z=JSON.parse(A$(X,"utf8")),U=z.publishConfig;if(z.pnpm||U?.registry)return!0}catch{}return!1}getRunCommand(_){return{command:"pnpm",args:["run",_]}}parseWorkspaceConfig(_){let q=F0(_,"pnpm-workspace.yaml");if(V0(q)){let U=A$(q,"utf8"),Q=j$(U);if(!Q.packages||!Array.isArray(Q.packages))throw Error("Invalid pnpm-workspace.yaml: packages must be an array");return{packages:Q.packages}}let $=F0(_,"package.json");if(!V0($))throw Error("No pnpm-workspace.yaml or package.json found in workspace root");let Z=JSON.parse(A$($,"utf8"));if(!Z.workspaces)throw Error("No pnpm-workspace.yaml found and no workspaces configuration in package.json");let X=Z.workspaces,z=Array.isArray(X)?X:X.packages;if(!Array.isArray(z))throw Error("Invalid workspaces configuration: must be an array or object with packages array");return{packages:z}}getLockFileName(){return"pnpm-lock.yaml"}}import{readFileSync as v5,existsSync as Bq}from"fs";import{join as Jq}from"path";class Wq{name="npm";isActive(_){let q=Jq(_,"package-lock.json");if(Bq(q))return!0;let $=Jq(_,".npmrc");if(Bq($))return!0;let Z=Jq(_,"package.json");if(Bq(Z))try{let X=JSON.parse(v5(Z,"utf8"));if(X.workspaces||X.publishConfig)return!0}catch{}return!1}getRunCommand(_){return{command:"npm",args:["run",_]}}parseWorkspaceConfig(_){let q=Jq(_,"package.json");if(!Bq(q))throw Error("No package.json found in workspace root");let $=JSON.parse(v5(q,"utf8"));if(!$.workspaces)throw Error("No workspaces configuration found in package.json");let Z=$.workspaces,X=Array.isArray(Z)?Z:Z.packages;if(!Array.isArray(X))throw Error("Invalid workspaces configuration: must be an array or object with packages array");return{packages:X}}getLockFileName(){return"package-lock.json"}}import{existsSync as p1}from"fs";import{join as r1}from"path";class Vq{static packageManagers=[new K_,new Yq,new Wq];static detect(_){let q=[];for(let Z of this.packageManagers)if(Z.isActive(_)){let X=this.calculateConfidence(Z,_);q.push({packageManager:Z,confidence:X})}q.sort((Z,X)=>X.confidence-Z.confidence);let[$]=q;if(!$)throw Error("No package manager detected. Please ensure you have a lock file (bun.lockb, pnpm-lock.yaml, or package-lock.json) or workspace configuration in your project.");return $}static getPackageManager(_){let q=this.packageManagers.find(($)=>$.name===_);if(!q)throw Error(`Unknown package manager: ${_}`);return q}static getSupportedPackageManagers(){return[...this.packageManagers]}static calculateConfidence(_,q){let $=0,Z=r1(q,_.getLockFileName());if(p1(Z))$+=100;switch(_.name){case"bun":if(p1(r1(q,"bun.lock")))$+=100;if(p1(r1(q,"bun.lockb")))$+=100;if(p1(r1(q,"bunfig.toml")))$+=50;break;case"pnpm":if(p1(r1(q,"pnpm-workspace.yaml")))$+=80;if(p1(r1(q,".pnpmfile.cjs")))$+=30;break;case"npm":if(p1(r1(q,".npmrc")))$+=30;break}try{_.parseWorkspaceConfig(q),$+=20}catch{}return $}static async isPackageManagerAvailable(_){try{let{spawn:q}=await import("child_process");return new Promise(($)=>{let Z=q(_,["--version"],{stdio:"ignore"});Z.on("close",(X)=>$(X===0)),Z.on("error",()=>$(!1))})}catch{return!1}}}class s1{workspaceRoot;packageManager;constructor(_=process.cwd()){this.workspaceRoot=this.findWorkspaceRoot(O$(_));let q=Vq.detect(this.workspaceRoot);this.packageManager=q.packageManager}async parseWorkspace(){let _=this.readWorkspaceConfig(),q=await this.resolvePackagePaths(_.packages||[]),$=await Promise.all(q.map((X)=>this.loadPackageInfo(X))),Z=new Map;return $.forEach((X)=>{Z.set(X.name,X)}),{root:this.workspaceRoot,packages:$,packageMap:Z,packageManager:this.packageManager}}findWorkspaceRoot(_){let q=_;while(q!==m5(q)){let $=Gq(q,"package.json");if(Fq($)){if(JSON.parse(u5($,"utf8")).workspaces)return q}let Z=Gq(q,"pnpm-workspace.yaml");if(Fq(Z))return q;q=m5(q)}return _}readWorkspaceConfig(){try{return this.packageManager.parseWorkspaceConfig(this.workspaceRoot)}catch(_){throw Error(`Failed to parse workspace configuration with ${this.packageManager.name}: ${_ instanceof Error?_.message:String(_)}`)}}async resolvePackagePaths(_){let q=[];for(let Z of _){if(Z.startsWith("!"))continue;let X=await N$.default(Z,{cwd:this.workspaceRoot,onlyDirectories:!0,absolute:!1});for(let z of X){let U=Gq(this.workspaceRoot,z,"package.json");if(Fq(U))q.push(O$(this.workspaceRoot,z))}}let $=_.filter((Z)=>Z.startsWith("!"));if($.length>0){let Z=new Set;for(let X of $){let z=X.slice(1);(await N$.default(z,{cwd:this.workspaceRoot,onlyDirectories:!0,absolute:!1})).forEach((Q)=>{Z.add(O$(this.workspaceRoot,Q))})}return q.filter((X)=>!Z.has(X))}return Array.from(new Set(q))}async loadPackageInfo(_){let q=Gq(_,"package.json");if(!Fq(q))throw Error(`package.json not found in ${_}`);let $=JSON.parse(u5(q,"utf8"));if(!$.name||typeof $.name!=="string")throw Error(`Package name not found in ${q}`);let{dependencies:Z,devDependencies:X,scripts:z}=$,U=Object.keys(Z||{}),Q=Object.keys(X||{}),Y=z||{};return{name:$.name,path:_,packageJson:$,dependencies:U,devDependencies:Q,scripts:Y}}filterPackages(_,q){if(!q)return _;let $=q.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[([^\]]+)\]/g,"[$1]"),Z=new RegExp(`^${$}$`);return _.filter((X)=>Z.test(X.name))}hasScript(_,q){return q in _.scripts}getPackagesWithScript(_,q){return _.filter(($)=>this.hasScript($,q))}getPackageManager(){return this.packageManager}}class Lq{nodes=new Map;addPackage(_){if(!this.nodes.has(_))this.nodes.set(_,{name:_,dependencies:new Set,dependents:new Set})}addDependency(_,q){this.addPackage(_),this.addPackage(q);let $=this.nodes.get(_),Z=this.nodes.get(q);$.dependencies.add(q),Z.dependents.add(_)}getPackages(){return Array.from(this.nodes.keys())}getDependencies(_){let q=this.nodes.get(_);return q?Array.from(q.dependencies):[]}getDependents(_){let q=this.nodes.get(_);return q?Array.from(q.dependents):[]}topologicalSort(){let _=[],q=new Map,$=[];for(let[X,z]of this.nodes)if(q.set(X,z.dependencies.size),z.dependencies.size===0)$.push(X);while($.length>0){let X=$.shift();_.push(X);let z=this.getDependents(X);for(let U of z){let Q=q.get(U)-1;if(q.set(U,Q),Q===0)$.push(U)}}let Z=[];if(_.length!==this.nodes.size){let X=this.getPackages().filter((U)=>!_.includes(U)),z=this.detectCycles(X);Z.push(...z)}return{order:_,cycles:Z}}detectCycles(_){let q=[],$=new Set,Z=new Set,X=(z,U)=>{if(Z.has(z)){let Y=U.indexOf(z);if(Y!==-1)q.push(U.slice(Y).concat([z]));return}if($.has(z))return;$.add(z),Z.add(z);let Q=this.getDependencies(z);for(let Y of Q)if(_.includes(Y))X(Y,[...U,z]);Z.delete(z)};for(let z of _)if(!$.has(z))X(z,[]);return q}getBuildBatches(){let{order:_,cycles:q}=this.topologicalSort();if(q.length>0)throw Error(`Circular dependencies detected: ${q.map((X)=>X.join(" -> ")).join(", ")}`);let $=[],Z=new Set;while(Z.size<_.length){let X=[];for(let z of _){if(Z.has(z))continue;if(this.getDependencies(z).every((Y)=>Z.has(Y)))X.push(z)}if(X.length===0)throw Error("Unable to determine build order - possible circular dependency");$.push(X),X.forEach((z)=>Z.add(z))}return $}filterGraph(_){let q=new Lq,$=new Set(_);for(let Z of _)if(this.nodes.has(Z))q.addPackage(Z);for(let Z of _)if(this.nodes.has(Z)){let X=this.getDependencies(Z);for(let z of X)if($.has(z))q.addDependency(Z,z)}return q}getRootPackages(){return this.getPackages().filter((_)=>this.getDependencies(_).length===0)}getLeafPackages(){return this.getPackages().filter((_)=>this.getDependents(_).length===0)}printGraph(){console.log(`
|
|
186
|
+
`,q)+1}return{type:_,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(_){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let q=Uq(_),$=W0(q);return $.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:$,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let q=Uq(_),$=W0(q);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:$,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(_,q){if(this.type!=="comment")return!1;if(this.indent<=q)return!1;return _.every(($)=>$.type==="newline"||$.type==="space")}*documentEnd(_){if(this.type!=="doc-mode"){if(_.end)_.end.push(this.sourceToken);else _.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(_){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:if(_.end)_.end.push(this.sourceToken);else _.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}OH.Parser=C5});var g5=H((kH)=>{var b5=F$(),EH=m0(),r0=d0(),CH=w9(),bH=g(),yH=w$(),y5=R$();function h5(_){let q=_.prettyErrors!==!1;return{lineCounter:_.lineCounter||q&&new yH.LineCounter||null,prettyErrors:q}}function hH(_,q={}){let{lineCounter:$,prettyErrors:Z}=h5(q),X=new y5.Parser($?.addNewLine),z=new b5.Composer(q),U=Array.from(z.compose(X.parse(_)));if(Z&&$)for(let Q of U)Q.errors.forEach(r0.prettifyError(_,$)),Q.warnings.forEach(r0.prettifyError(_,$));if(U.length>0)return U;return Object.assign([],{empty:!0},z.streamInfo())}function x5(_,q={}){let{lineCounter:$,prettyErrors:Z}=h5(q),X=new y5.Parser($?.addNewLine),z=new b5.Composer(q),U=null;for(let Q of z.compose(X.parse(_),!0,_.length))if(!U)U=Q;else if(U.options.logLevel!=="silent"){U.errors.push(new r0.YAMLParseError(Q.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(Z&&$)U.errors.forEach(r0.prettifyError(_,$)),U.warnings.forEach(r0.prettifyError(_,$));return U}function xH(_,q,$){let Z=void 0;if(typeof q==="function")Z=q;else if($===void 0&&q&&typeof q==="object")$=q;let X=x5(_,$);if(!X)return null;if(X.warnings.forEach((z)=>CH.warn(X.options.logLevel,z)),X.errors.length>0)if(X.options.logLevel!=="silent")throw X.errors[0];else X.errors=[];return X.toJS(Object.assign({reviver:Z},$))}function gH(_,q,$){let Z=null;if(typeof q==="function"||Array.isArray(q))Z=q;else if($===void 0&&q)$=q;if(typeof $==="string")$=$.length;if(typeof $==="number"){let X=Math.round($);$=X<1?void 0:X>8?{indent:8}:{indent:X}}if(_===void 0){let{keepUndefined:X}=$??q??{};if(!X)return}if(bH.isDocument(_)&&!Z)return _.toString($);return new EH.Document(_,Z,$).toString($)}kH.parse=xH;kH.parseAllDocuments=hH;kH.parseDocument=x5;kH.stringify=gH});var o$=P1(a$(),1),{program:aI,createCommand:oI,createArgument:tI,createOption:eI,CommanderError:_T,InvalidArgumentError:qT,InvalidOptionArgumentError:$T,Command:t$,Argument:ZT,Option:XT,Help:zT}=o$.default;import{readFileSync as hI}from"fs";import{join as xI,dirname as b$}from"path";import{fileURLToPath as gI}from"url";var c5=P1(a1(),1);var O$=P1(O7(),1);import{readFileSync as u5,existsSync as Fq}from"fs";import{join as Gq,resolve as N$,dirname as m5}from"path";import{readFileSync as f7,existsSync as S0}from"fs";import{join as w0}from"path";class K_{name="bun";isActive(_){let q=w0(_,"bun.lock"),$=w0(_,"bun.lockb");if(S0(q)||S0($))return!0;let Z=w0(_,"bunfig.toml");if(S0(Z))return!0;let X=w0(_,"package.json");if(S0(X))try{let z=JSON.parse(f7(X,"utf8"));if(z.bun||z.trustedDependencies)return!0}catch{}return!1}getRunCommand(_){return{command:"bun",args:["run",_]}}parseWorkspaceConfig(_){let q=w0(_,"package.json");if(!S0(q))throw Error("No package.json found in workspace root");let $=JSON.parse(f7(q,"utf8"));if(!$.workspaces)throw Error("No workspaces configuration found in package.json");let Z=$.workspaces,X=Array.isArray(Z)?Z:Z.packages;if(!Array.isArray(X))throw Error("Invalid workspaces configuration: must be an array or object with packages array");return{packages:X}}getLockFileName(){return"bun.lock"}}import{readFileSync as j$,existsSync as V0}from"fs";import{join as F0}from"path";var lH=F$(),iH=m0(),cH=o9(),P$=d0(),pH=A0(),h1=g(),rH=f1(),sH=r(),nH=C1(),aH=b1(),pD=Xq(),oH=S$(),tH=w$(),eH=R$(),Qq=g5(),k5=R0();var _I=lH.Composer,qI=iH.Document,$I=cH.Schema,ZI=P$.YAMLError,XI=P$.YAMLParseError,zI=P$.YAMLWarning,UI=pH.Alias,QI=h1.isAlias,YI=h1.isCollection,BI=h1.isDocument,JI=h1.isMap,WI=h1.isNode,VI=h1.isPair,FI=h1.isScalar,GI=h1.isSeq,LI=rH.Pair,MI=sH.Scalar,HI=nH.YAMLMap,II=aH.YAMLSeq;var TI=oH.Lexer,KI=tH.LineCounter,DI=eH.Parser,A$=Qq.parse,SI=Qq.parseAllDocuments,wI=Qq.parseDocument,RI=Qq.stringify,PI=k5.visit,AI=k5.visitAsync;class Yq{name="pnpm";isActive(_){let q=F0(_,"pnpm-lock.yaml");if(V0(q))return!0;let $=F0(_,"pnpm-workspace.yaml");if(V0($))return!0;let Z=F0(_,".pnpmfile.cjs");if(V0(Z))return!0;let X=F0(_,"package.json");if(V0(X))try{let z=JSON.parse(j$(X,"utf8")),U=z.publishConfig;if(z.pnpm||U?.registry)return!0}catch{}return!1}getRunCommand(_){return{command:"pnpm",args:["run",_]}}parseWorkspaceConfig(_){let q=F0(_,"pnpm-workspace.yaml");if(V0(q)){let U=j$(q,"utf8"),Q=A$(U);if(!Q.packages||!Array.isArray(Q.packages))throw Error("Invalid pnpm-workspace.yaml: packages must be an array");return{packages:Q.packages}}let $=F0(_,"package.json");if(!V0($))throw Error("No pnpm-workspace.yaml or package.json found in workspace root");let Z=JSON.parse(j$($,"utf8"));if(!Z.workspaces)throw Error("No pnpm-workspace.yaml found and no workspaces configuration in package.json");let X=Z.workspaces,z=Array.isArray(X)?X:X.packages;if(!Array.isArray(z))throw Error("Invalid workspaces configuration: must be an array or object with packages array");return{packages:z}}getLockFileName(){return"pnpm-lock.yaml"}}import{readFileSync as v5,existsSync as Bq}from"fs";import{join as Jq}from"path";class Wq{name="npm";isActive(_){let q=Jq(_,"package-lock.json");if(Bq(q))return!0;let $=Jq(_,".npmrc");if(Bq($))return!0;let Z=Jq(_,"package.json");if(Bq(Z))try{let X=JSON.parse(v5(Z,"utf8"));if(X.workspaces||X.publishConfig)return!0}catch{}return!1}getRunCommand(_){return{command:"npm",args:["run",_]}}parseWorkspaceConfig(_){let q=Jq(_,"package.json");if(!Bq(q))throw Error("No package.json found in workspace root");let $=JSON.parse(v5(q,"utf8"));if(!$.workspaces)throw Error("No workspaces configuration found in package.json");let Z=$.workspaces,X=Array.isArray(Z)?Z:Z.packages;if(!Array.isArray(X))throw Error("Invalid workspaces configuration: must be an array or object with packages array");return{packages:X}}getLockFileName(){return"package-lock.json"}}import{existsSync as r1}from"fs";import{join as s1}from"path";class Vq{static packageManagers=[new K_,new Yq,new Wq];static detect(_){let q=[];for(let Z of this.packageManagers)if(Z.isActive(_)){let X=this.calculateConfidence(Z,_);q.push({packageManager:Z,confidence:X})}q.sort((Z,X)=>X.confidence-Z.confidence);let[$]=q;if(!$)throw Error("No package manager detected. Please ensure you have a lock file (bun.lockb, pnpm-lock.yaml, or package-lock.json) or workspace configuration in your project.");return $}static getPackageManager(_){let q=this.packageManagers.find(($)=>$.name===_);if(!q)throw Error(`Unknown package manager: ${_}`);return q}static getSupportedPackageManagers(){return[...this.packageManagers]}static calculateConfidence(_,q){let $=0,Z=s1(q,_.getLockFileName());if(r1(Z))$+=100;switch(_.name){case"bun":if(r1(s1(q,"bun.lock")))$+=100;if(r1(s1(q,"bun.lockb")))$+=100;if(r1(s1(q,"bunfig.toml")))$+=50;break;case"pnpm":if(r1(s1(q,"pnpm-workspace.yaml")))$+=80;if(r1(s1(q,".pnpmfile.cjs")))$+=30;break;case"npm":if(r1(s1(q,".npmrc")))$+=30;break}try{_.parseWorkspaceConfig(q),$+=20}catch{}return $}static async isPackageManagerAvailable(_){try{let{spawn:q}=await import("child_process");return new Promise(($)=>{let Z=q(_,["--version"],{stdio:"ignore"});Z.on("close",(X)=>$(X===0)),Z.on("error",()=>$(!1))})}catch{return!1}}}class w1{workspaceRoot;packageManager;constructor(_=process.cwd()){this.workspaceRoot=this.findWorkspaceRoot(N$(_));let q=Vq.detect(this.workspaceRoot);this.packageManager=q.packageManager}async parseWorkspace(){let _=this.readWorkspaceConfig(),q=await this.resolvePackagePaths(_.packages||[]),$=await Promise.all(q.map((X)=>this.loadPackageInfo(X))),Z=new Map;return $.forEach((X)=>{Z.set(X.name,X)}),{root:this.workspaceRoot,packages:$,packageMap:Z,packageManager:this.packageManager}}findWorkspaceRoot(_){let q=_;while(q!==m5(q)){let $=Gq(q,"package.json");if(Fq($)){if(JSON.parse(u5($,"utf8")).workspaces)return q}let Z=Gq(q,"pnpm-workspace.yaml");if(Fq(Z))return q;q=m5(q)}return _}readWorkspaceConfig(){try{return this.packageManager.parseWorkspaceConfig(this.workspaceRoot)}catch(_){throw Error(`Failed to parse workspace configuration with ${this.packageManager.name}: ${_ instanceof Error?_.message:String(_)}`)}}async resolvePackagePaths(_){let q=[];for(let Z of _){if(Z.startsWith("!"))continue;let X=await O$.default(Z,{cwd:this.workspaceRoot,onlyDirectories:!0,absolute:!1});for(let z of X){let U=Gq(this.workspaceRoot,z,"package.json");if(Fq(U))q.push(N$(this.workspaceRoot,z))}}let $=_.filter((Z)=>Z.startsWith("!"));if($.length>0){let Z=new Set;for(let X of $){let z=X.slice(1);(await O$.default(z,{cwd:this.workspaceRoot,onlyDirectories:!0,absolute:!1})).forEach((Q)=>{Z.add(N$(this.workspaceRoot,Q))})}return q.filter((X)=>!Z.has(X))}return Array.from(new Set(q))}async loadPackageInfo(_){let q=Gq(_,"package.json");if(!Fq(q))throw Error(`package.json not found in ${_}`);let $=JSON.parse(u5(q,"utf8"));if(!$.name||typeof $.name!=="string")throw Error(`Package name not found in ${q}`);let{dependencies:Z,devDependencies:X,scripts:z}=$,U=Object.keys(Z||{}),Q=Object.keys(X||{}),Y=z||{};return{name:$.name,path:_,packageJson:$,dependencies:U,devDependencies:Q,scripts:Y}}filterPackages(_,q){if(!q)return _;let $=q.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[([^\]]+)\]/g,"[$1]"),Z=new RegExp(`^${$}$`);return _.filter((X)=>Z.test(X.name))}hasScript(_,q){return q in _.scripts}getPackagesWithScript(_,q){return _.filter(($)=>this.hasScript($,q))}getPackageManager(){return this.packageManager}}class Lq{nodes=new Map;addPackage(_){if(!this.nodes.has(_))this.nodes.set(_,{name:_,dependencies:new Set,dependents:new Set})}addDependency(_,q){this.addPackage(_),this.addPackage(q);let $=this.nodes.get(_),Z=this.nodes.get(q);$.dependencies.add(q),Z.dependents.add(_)}getPackages(){return Array.from(this.nodes.keys())}getDependencies(_){let q=this.nodes.get(_);return q?Array.from(q.dependencies):[]}getDependents(_){let q=this.nodes.get(_);return q?Array.from(q.dependents):[]}topologicalSort(){let _=[],q=new Map,$=[];for(let[X,z]of this.nodes)if(q.set(X,z.dependencies.size),z.dependencies.size===0)$.push(X);while($.length>0){let X=$.shift();_.push(X);let z=this.getDependents(X);for(let U of z){let Q=q.get(U)-1;if(q.set(U,Q),Q===0)$.push(U)}}let Z=[];if(_.length!==this.nodes.size){let X=this.getPackages().filter((U)=>!_.includes(U)),z=this.detectCycles(X);Z.push(...z)}return{order:_,cycles:Z}}detectCycles(_){let q=[],$=new Set,Z=new Set,X=(z,U)=>{if(Z.has(z)){let Y=U.indexOf(z);if(Y!==-1)q.push(U.slice(Y).concat([z]));return}if($.has(z))return;$.add(z),Z.add(z);let Q=this.getDependencies(z);for(let Y of Q)if(_.includes(Y))X(Y,[...U,z]);Z.delete(z)};for(let z of _)if(!$.has(z))X(z,[]);return q}getBuildBatches(){let{order:_,cycles:q}=this.topologicalSort();if(q.length>0)throw Error(`Circular dependencies detected: ${q.map((X)=>X.join(" -> ")).join(", ")}`);let $=[],Z=new Set;while(Z.size<_.length){let X=[];for(let z of _){if(Z.has(z))continue;if(this.getDependencies(z).every((Y)=>Z.has(Y)))X.push(z)}if(X.length===0)throw Error("Unable to determine build order - possible circular dependency");$.push(X),X.forEach((z)=>Z.add(z))}return $}filterGraph(_){let q=new Lq,$=new Set(_);for(let Z of _)if(this.nodes.has(Z))q.addPackage(Z);for(let Z of _)if(this.nodes.has(Z)){let X=this.getDependencies(Z);for(let z of X)if($.has(z))q.addDependency(Z,z)}return q}getRootPackages(){return this.getPackages().filter((_)=>this.getDependencies(_).length===0)}getLeafPackages(){return this.getPackages().filter((_)=>this.getDependents(_).length===0)}printGraph(){console.log(`
|
|
187
187
|
\uD83D\uDCCA Dependency Graph:`);for(let[_,q]of this.nodes){let $=Array.from(q.dependencies),Z=Array.from(q.dependents);if(console.log(`
|
|
188
|
-
\uD83D\uDCE6 ${_}`),$.length>0)console.log(` ⬇️ Dependencies: ${$.join(", ")}`);if(Z.length>0)console.log(` ⬆️ Dependents: ${Z.join(", ")}`)}}}function i5(_){let q=new Lq,$=new Set(_.map((Z)=>Z.name));return _.forEach((Z)=>{q.addPackage(Z.name)}),_.forEach((Z)=>{[...Z.dependencies,...Z.devDependencies].forEach((z)=>{if($.has(z))q.addDependency(Z.name,z)})}),q}function
|
|
188
|
+
\uD83D\uDCE6 ${_}`),$.length>0)console.log(` ⬇️ Dependencies: ${$.join(", ")}`);if(Z.length>0)console.log(` ⬆️ Dependents: ${Z.join(", ")}`)}}}function i5(_){let q=new Lq,$=new Set(_.map((Z)=>Z.name));return _.forEach((Z)=>{q.addPackage(Z.name)}),_.forEach((Z)=>{[...Z.dependencies,...Z.devDependencies].forEach((z)=>{if($.has(z))q.addDependency(Z.name,z)})}),q}function jI(_,q){return q.getRunCommand(_)}function n1(_,q){let $=[],Z=[];return _.forEach((X)=>{if(X.scripts&&typeof X.scripts==="object"&&X.scripts[q])$.push(X);else Z.push(X)}),{valid:$,invalid:Z}}function G0(_,q,$){let{command:Z,args:X}=jI(q,$);return _.map((z)=>{if(!OI(z.path))throw Error(`Invalid package path: ${z.path}`);return{command:Z,args:X,options:{cwd:z.path,env:{FORCE_COLOR:"1",NODE_ENV:"development"}},logOptions:{prefix:z.name,color:NI(z.name)},packageInfo:z}})}var d5=["red","green","yellow","blue","magenta","cyan","gray","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright"],f$=new Map,l5=0;function NI(_){if(!f$.has(_)){let q=d5[l5%d5.length];if(q)f$.set(_,q);l5++}return f$.get(_)||"white"}function OI(_){let q=x("fs"),$=x("path");try{let Z=$.join(_,"package.json");if(!q.existsSync(Z))return!1;let X=q.readFileSync(Z,"utf8"),z=JSON.parse(X);return typeof z==="object"&&z!==null&&typeof z.name==="string"}catch{return!1}}var k=P1(a1(),1);import{spawn as fI}from"child_process";class X1{static colorPalette=["red","green","yellow","blue","magenta","cyan","gray","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright"];static assignedColors=new Map;static colorIndex=0;static activeChildren=new Set;static getPackageColor(_){if(!this.assignedColors.has(_)){let $=this.colorIndex%this.colorPalette.length,Z=this.colorPalette[$]||"white";this.assignedColors.set(_,Z),this.colorIndex++}return this.assignedColors.get(_)||"white"}static getColorFn(_){switch(_){case"red":return k.default.red;case"green":return k.default.green;case"yellow":return k.default.yellow;case"blue":return k.default.blue;case"magenta":return k.default.magenta;case"cyan":return k.default.cyan;case"gray":return k.default.gray;case"redBright":return k.default.redBright;case"greenBright":return k.default.greenBright;case"yellowBright":return k.default.yellowBright;case"blueBright":return k.default.blueBright;case"magentaBright":return k.default.magentaBright;case"cyanBright":return k.default.cyanBright;default:return k.default.white}}static async runCommand(_,q,$,Z){let X=Date.now(),z=[_,...q].join(" "),U=this.getColorFn(Z.color);return console.log(`[${U(Z.prefix)}] `+k.default.gray(`Starting: ${z}`)),new Promise((Q)=>{let Y=fI(_,q,{cwd:$.cwd,env:{...process.env,...$.env},stdio:["inherit","pipe","pipe"]});if(X1.activeChildren.add(Y),Y.stdout)Y.stdout.on("data",(B)=>{B.toString().split(`
|
|
189
189
|
`).forEach((V)=>{if(V.trim())this.logLine(V,Z,!1)})});if(Y.stderr)Y.stderr.on("data",(B)=>{B.toString().split(`
|
|
190
|
-
`).forEach((V)=>{if(V.trim())this.logLine(V,Z,!0)})});Y.on("close",(B)=>{
|
|
190
|
+
`).forEach((V)=>{if(V.trim())this.logLine(V,Z,!0)})});Y.on("close",(B)=>{X1.activeChildren.delete(Y);let W=Date.now()-X,V=B||0,J={success:V===0,exitCode:V,packageName:Z.prefix,command:z,duration:W},G=this.getColorFn(Z.color);if(V===0)console.log(`[${G(Z.prefix)}] `+k.default.green(`✅ Completed in ${W}ms`));else console.log(`[${G(Z.prefix)}] `+k.default.red(`❌ Failed with exit code ${V} (${W}ms)`));Q(J)}),Y.on("error",(B)=>{X1.activeChildren.delete(Y);let W=Date.now()-X,V=this.getColorFn(Z.color);console.error(`[${V(Z.prefix)}] `+k.default.red(`\uD83D\uDCA5 Error: ${B.message}`)),Q({success:!1,exitCode:1,packageName:Z.prefix,command:z,duration:W})})})}static async terminateAll(_="SIGTERM",q=5000){let $=Array.from(this.activeChildren);if($.length===0)return;for(let Z of $)try{Z.kill(_)}catch{}await Promise.all($.map((Z)=>{return new Promise((X)=>{let z=!1,U=()=>{if(z)return;z=!0,X()};Z.once("close",U);let Q=setTimeout(()=>{if(z)return;try{Z.kill("SIGKILL")}catch{}z=!0,X()},q)})}))}static logLine(_,q,$=!1){let Z=q.showTimestamp?k.default.dim(`[${new Date().toISOString()}] `):"",z=`[${this.getColorFn(q.color)(q.prefix)}] `,U=$?k.default.red(_):_;console.log(Z+z+U)}static async runParallel(_,q=4){let $=[],Z=[];for(let z=0;z<_.length;z++){let U=_[z];if(!U)continue;let Q=this.runCommand(U.command,U.args,U.options,U.logOptions);if(Z.push(Q),Z.length>=q||z===_.length-1){let Y=await this.waitForAny(Z),B=Z[Y];if(B){let W=await B;$.push(W)}Z.splice(Y,1)}}let X=await Promise.all(Z);return $.push(...X),$}static async waitForAny(_){return new Promise((q)=>{_.forEach(($,Z)=>{$.then(()=>q(Z))})})}static async runSequential(_){let q=[];for(let $ of _){let Z=await this.runCommand($.command,$.args,$.options,$.logOptions);if(q.push(Z),!Z.success){console.log(k.default.red(`
|
|
191
191
|
❌ Stopping execution due to failure in ${Z.packageName}`));break}}return q}static async runBatches(_,q=4){let $=[];for(let Z=0;Z<_.length;Z++){let X=_[Z];if(!X)continue;console.log(k.default.blue(`
|
|
192
192
|
\uD83D\uDD04 Running batch ${Z+1}/${_.length} (${X.length} packages)`));let z=await this.runParallel(X,q);$.push(...z);let U=z.filter((Q)=>!Q.success);if(U.length>0){console.log(k.default.red(`
|
|
193
193
|
❌ Batch ${Z+1} failed. The following packages failed:`)),U.forEach((Q)=>{console.log(k.default.red(` • ${Q.packageName}: ${Q.command}`))}),console.log(k.default.red(`
|
|
194
194
|
Stopping execution due to batch failure.`));break}console.log(k.default.green(`✅ Batch ${Z+1} completed successfully`))}return $}static printSummary(_){let q=_.filter((X)=>X.success),$=_.filter((X)=>!X.success),Z=_.reduce((X,z)=>X+z.duration,0);if(console.log(k.default.bold(`
|
|
195
195
|
\uD83D\uDCCA Execution Summary:`)),console.log(k.default.green(`✅ Successful: ${q.length}`)),$.length>0)console.log(k.default.red(`❌ Failed: ${$.length}`)),console.log(k.default.red(`
|
|
196
|
-
Failed packages:`)),$.forEach((X)=>{console.log(k.default.red(` • ${X.packageName} (exit code ${X.exitCode})`))});if(console.log(k.default.blue(`⏱️ Total duration: ${Z}ms`)),q.length>0){let X=Math.round(Z/q.length);console.log(k.default.dim(`\uD83D\uDCC8 Average duration: ${X}ms`))}}}var L0=
|
|
196
|
+
Failed packages:`)),$.forEach((X)=>{console.log(k.default.red(` • ${X.packageName} (exit code ${X.exitCode})`))});if(console.log(k.default.blue(`⏱️ Total duration: ${Z}ms`)),q.length>0){let X=Math.round(Z/q.length);console.log(k.default.dim(`\uD83D\uDCC8 Average duration: ${X}ms`))}}}var L0=P1(a1(),1);function E$(){if(process.env.WSU_UNICODE==="1"||process.env.WSU_UNICODE==="true")return!0;return!1}var EI={rocket:"\uD83D\uDE80",folder:"\uD83D\uDCC1",package:"\uD83D\uDCE6",checkmark:"✅",crossmark:"❌",warning:"⚠️",wrench:"\uD83D\uDD27",lightning:"\uD83D\uDE80",clock:"⏱️",target:"\uD83C\uDFAF",magnifying:"\uD83D\uDD0D",chart:"\uD83D\uDCCA",fire:"\uD83D\uDCA5",trophy:"\uD83C\uDFC6",seedling:"\uD83C\uDF31",leaf:"\uD83C\uDF43",books:"\uD83D\uDCDA",gear:"\uD83D\uDD27",construction:"\uD83C\uDFD7️",movie:"\uD83C\uDFAC",lightbulb:"\uD83D\uDCA1",sparkles:"✨",party:"\uD83C\uDF89",boom:"\uD83D\uDCA5",building:"\uD83C\uDFE2",arrow:"\uD83D\uDD17",dot:"\uD83D\uDD38"},CI={rocket:">",folder:"[DIR]",package:"[PKG]",checkmark:"[OK]",crossmark:"[ERR]",warning:"[WARN]",wrench:"[TOOL]",lightning:"[FAST]",clock:"[TIME]",target:"[TARGET]",magnifying:"[FIND]",chart:"[CHART]",fire:"[BOOM]",trophy:"[WIN]",seedling:"[ROOT]",leaf:"[LEAF]",books:"[DOCS]",gear:"[GEAR]",construction:"[BUILD]",movie:"[START]",lightbulb:"[TIP]",sparkles:"[DONE]",party:"[SUCCESS]",boom:"[ERROR]",building:"[CORP]",arrow:"->",dot:"*"},bI=E$()?EI:CI;class P{static symbols=bI;static log(_,q,$){let X=`${q?`${this.symbols[q]} `:""}${_}`;if($)console.log(L0.default[$](X));else console.log(X)}static info(_){this.log(_,"rocket","blue")}static success(_){this.log(_,"checkmark","green")}static error(_){this.log(_,"crossmark","red")}static warning(_){this.log(_,"warning","yellow")}static dim(_,q){this.log(_,q,"dim")}static build(_){this.log(_,"construction","blue")}static dev(_){this.log(_,"movie","blue")}static package(_){this.log(_,"package","blue")}static timing(_){this.log(_,"clock","blue")}static summary(_){this.log(_,"target","blue")}static celebrate(_){this.log(_,"party","green")}static tip(_){this.log(_,"lightbulb","yellow")}static listItem(_,q=2){let $=" ".repeat(q);this.log(`${$}${_}`,"dot","dim")}static separator(){let _=E$()?"────────────────────────────────────────────────────────":"--------------------------------------------------------";console.log(L0.default.dim(_))}static getSymbol(_){return this.symbols[_]}static formatPackageName(_,q){let $=`[${_}]`;return q?L0.default[q]($):$}static formatDuration(_){if(_<1000)return`${_}ms`;else if(_<60000)return`${(_/1000).toFixed(1)}s`;else{let q=Math.floor(_/60000),$=(_%60000/1000).toFixed(0);return`${q}m ${$}s`}}static executionSummary(_,q,$){if(console.log(L0.default.bold(`
|
|
197
197
|
${this.symbols.chart} Execution Summary:`)),this.success(`Successful: ${_}`),q>0)this.error(`Failed: ${q}`);this.timing(`Total duration: ${this.formatDuration($)}`)}static buildSummary(_,q,$){if(console.log(L0.default.bold(`
|
|
198
|
-
${this.symbols.target} Build Summary:`)),this.success(`Successfully built: ${_} packages`),q>0)this.error(`Failed to build: ${q} packages`);this.timing(`Total build time: ${this.formatDuration($)}`)}static get supportsUnicode(){return E$()}}async function p5(_,q){try{
|
|
199
|
-
`);let $=new
|
|
200
|
-
`,"package");let X=Z.packages;if(q.filter)X=$.filterPackages(Z.packages,q.filter),
|
|
201
|
-
Failed packages:`)),L.forEach((F)=>{
|
|
202
|
-
`);let q=new
|
|
203
|
-
`,"package");let Z=$.packages;if(_.filter)Z=q.filterPackages($.packages,_.filter),
|
|
204
|
-
${
|
|
205
|
-
Failed packages:`)),
|
|
206
|
-
Build failed due to package failures.`,"fire","red"),process.exit(1);else
|
|
207
|
-
All packages built successfully!`)}catch(q){
|
|
208
|
-
`);let q=new
|
|
209
|
-
`,"package");let Z=$.packages;if(_.filter)Z=q.filterPackages($.packages,_.filter),
|
|
210
|
-
`);let Q=G0(X,"dev",$.packageManager).map((J)=>({...J,logOptions:{...J.logOptions,showTimestamp:!1}})),Y=!1,B=()=>{if(Y)return;Y=!0,
|
|
198
|
+
${this.symbols.target} Build Summary:`)),this.success(`Successfully built: ${_} packages`),q>0)this.error(`Failed to build: ${q} packages`);this.timing(`Total build time: ${this.formatDuration($)}`)}static get supportsUnicode(){return E$()}}async function p5(_,q){try{P.info(`Running script "${_}" across packages...
|
|
199
|
+
`);let $=new w1,Z=await $.parseWorkspace();P.dim(`Workspace root: ${Z.root}`,"folder"),P.dim(`Found ${Z.packages.length} packages
|
|
200
|
+
`,"package");let X=Z.packages;if(q.filter)X=$.filterPackages(Z.packages,q.filter),P.log(`Filtered to ${X.length} packages matching "${q.filter}"`,"magnifying","yellow");let{valid:z,invalid:U}=n1(X,_);if(z.length===0)P.error(`No packages found with the "${_}" script.`),process.exit(1);P.success(`Running "${_}" in ${z.length} packages:`),z.forEach((F)=>{P.listItem(F.name)}),console.log();let Q=!q.sequential,Y=parseInt(q.concurrency||"4",10);P.log(`Package manager: ${Z.packageManager.name}`,"wrench","blue"),P.log(`Execution mode: ${Q?`parallel (concurrency: ${Y})`:"sequential"}`,"lightning","blue"),console.log();let B=G0(z,_,Z.packageManager),W=Date.now(),V;if(Q)V=await X1.runParallel(B,Y);else V=await X1.runSequential(B);let J=Date.now()-W,G=V.filter((F)=>F.success),L=V.filter((F)=>!F.success);if(P.executionSummary(G.length,L.length,J),L.length>0)console.log(c5.default.red(`
|
|
201
|
+
Failed packages:`)),L.forEach((F)=>{P.listItem(`${F.packageName} (exit code ${F.exitCode})`)});if(G.length>0){let F=Math.round(G.reduce((I,S)=>I+S.duration,0)/G.length);P.dim(`Average package duration: ${P.formatDuration(F)}`,"chart")}if(L.length>0)process.exit(1)}catch($){P.log(`Error: ${$ instanceof Error?$.message:String($)}`,"fire","red"),process.exit(1)}}var C$=P1(a1(),1);function yI(_,q){let $=[..._],Z=new Map;while($.length>0){let X=$.shift();if(!X||Z.has(X.name))continue;Z.set(X.name,X);let z=[...X.dependencies,...X.devDependencies];for(let U of z){let Q=q.get(U);if(Q&&!Z.has(U))$.push(Q)}}return Array.from(Z.values())}async function r5(_){try{P.build(`Building packages in dependency order...
|
|
202
|
+
`);let q=new w1,$=await q.parseWorkspace();P.dim(`Workspace root: ${$.root}`,"folder"),P.dim(`Found ${$.packages.length} packages
|
|
203
|
+
`,"package");let Z=$.packages;if(_.filter)Z=q.filterPackages($.packages,_.filter),P.log(`Filtered to ${Z.length} packages matching "${_.filter}"`,"magnifying","yellow");let{valid:X,invalid:z}=n1(Z,"build");if(X.length===0)P.error('No packages found with a "build" script.'),process.exit(1);let U=yI(X,$.packageMap),{valid:Q,invalid:Y}=n1(U,"build"),B=new Map;if([...z,...Y].forEach((M)=>{B.set(M.name,M)}),B.size>0)P.warning(`The following packages don't have a "build" script:`),Array.from(B.values()).forEach((M)=>{P.listItem(M.name)}),console.log();P.log("Building dependency graph...","chart","blue");let W=i5(Q),V=Q.map((M)=>M.name),J=W.filterGraph(V),G;try{G=J.getBuildBatches()}catch(M){P.error(`Dependency cycle detected: ${M instanceof Error?M.message:String(M)}`),P.tip("Check for circular dependencies between packages."),process.exit(1)}P.success(`Build order determined: ${G.length} batches`),console.log(C$.default.blue(`
|
|
204
|
+
${P.getSymbol("books")} Build Plan:`)),G.forEach((M,f)=>{P.listItem(`Batch ${f+1}: ${M.join(", ")}`)}),console.log();let L=parseInt(_.concurrency||"4",10);P.log(`Package manager: ${$.packageManager.name}`,"wrench","blue"),P.log(`Batch concurrency: ${L}`,"lightning","blue"),console.log();let F=new Map(Q.map((M)=>[M.name,M])),I=G.map((M)=>{return M.map((f)=>F.get(f)).filter((f)=>f!==void 0).map((f)=>{return G0([f],"build",$.packageManager)[0]}).filter((f)=>f!==void 0)}),S=Date.now(),j=await X1.runBatches(I,L),A=Date.now()-S,E=j.filter((M)=>M.success),O=j.filter((M)=>!M.success);if(P.buildSummary(E.length,O.length,A),O.length>0)console.log(C$.default.red(`
|
|
205
|
+
Failed packages:`)),O.forEach((M)=>{P.listItem(`${M.packageName} (exit code ${M.exitCode})`)});if(E.length>0){let M=Math.round(E.reduce((f,u)=>f+u.duration,0)/E.length);P.dim(`Average package build time: ${P.formatDuration(M)}`,"chart")}let w=J.getRootPackages(),C=J.getLeafPackages();if(w.length>0)P.dim(`Root packages (no dependencies): ${w.join(", ")}`,"seedling");if(C.length>0)P.dim(`Leaf packages (no dependents): ${C.join(", ")}`,"leaf");if(O.length>0)P.log(`
|
|
206
|
+
Build failed due to package failures.`,"fire","red"),process.exit(1);else P.celebrate(`
|
|
207
|
+
All packages built successfully!`)}catch(q){P.log(`Build error: ${q instanceof Error?q.message:String(q)}`,"fire","red"),process.exit(1)}}var t=P1(a1(),1);async function s5(_){try{P.dev(`Starting development servers with live log streaming...
|
|
208
|
+
`);let q=new w1,$=await q.parseWorkspace();P.dim(`Workspace root: ${$.root}`,"folder"),P.dim(`Found ${$.packages.length} packages
|
|
209
|
+
`,"package");let Z=$.packages;if(_.filter)Z=q.filterPackages($.packages,_.filter),P.log(`Filtered to ${Z.length} packages matching "${_.filter}"`,"magnifying","yellow");let{valid:X,invalid:z}=n1(Z,"dev");if(z.length>0)P.warning(`The following packages don't have a "dev" script:`),z.forEach((J)=>{P.listItem(J.name)}),console.log();if(X.length===0)P.error('No packages found with a "dev" script.'),process.exit(1);P.success(`Starting dev servers for ${X.length} packages:`),X.forEach((J)=>{let G=X1.getPackageColor(J.name),F=((I)=>{switch(I){case"red":return t.default.red;case"green":return t.default.green;case"yellow":return t.default.yellow;case"blue":return t.default.blue;case"magenta":return t.default.magenta;case"cyan":return t.default.cyan;case"gray":return t.default.gray;case"redBright":return t.default.redBright;case"greenBright":return t.default.greenBright;case"yellowBright":return t.default.yellowBright;case"blueBright":return t.default.blueBright;case"magentaBright":return t.default.magentaBright;case"cyanBright":return t.default.cyanBright;default:return t.default.white}})(G);console.log(` • ${F(J.name)}`)}),console.log();let U=parseInt(_.concurrency||"4",10);P.log(`Package manager: ${$.packageManager.name}`,"wrench","blue"),P.log(`Running ${Math.min(X.length,U)} dev servers simultaneously`,"lightning","blue"),P.tip(`Use Ctrl+C to stop all development servers
|
|
210
|
+
`);let Q=G0(X,"dev",$.packageManager).map((J)=>({...J,logOptions:{...J.logOptions,showTimestamp:!1}})),Y=!1,B=()=>{if(Y)return;Y=!0,P.log(`
|
|
211
211
|
|
|
212
|
-
Shutting down development servers...`,"warning","yellow"),
|
|
213
|
-
`),
|
|
214
|
-
`,"movie","green"),
|
|
215
|
-
Some development servers may have stopped unexpectedly.`),
|
|
216
|
-
`)}catch(J){if(!Y)
|
|
217
|
-
Development session lasted: ${
|
|
212
|
+
Shutting down development servers...`,"warning","yellow"),P.dim(`This may take a moment to gracefully stop all processes.
|
|
213
|
+
`),X1.terminateAll("SIGTERM",5000).then(()=>{process.exit(0)}).catch(()=>{process.exit(0)}),setTimeout(()=>{P.log("Timeout reached, forcing exit...","clock","red"),process.exit(0)},6000)};process.on("SIGINT",B),process.on("SIGTERM",B),P.log(`Starting development servers...
|
|
214
|
+
`,"movie","green"),P.separator();let W=Date.now();try{let J=Q.map((G)=>X1.runCommand(G.command,G.args,G.options,G.logOptions).catch((L)=>{return P.log(`Error in ${G.logOptions.prefix}: ${L}`,"fire","red"),{success:!1,exitCode:1,packageName:G.logOptions.prefix,command:`${G.command} ${G.args.join(" ")}`,duration:Date.now()-W}}));if(await Promise.allSettled(J.slice(0,Math.min(U,J.length))),!Y)P.warning(`
|
|
215
|
+
Some development servers may have stopped unexpectedly.`),P.dim(`Check the logs above for any error messages.
|
|
216
|
+
`)}catch(J){if(!Y)P.log(`Development server error: ${J instanceof Error?J.message:String(J)}`,"fire","red")}let V=Date.now()-W;if(!Y)P.log(`
|
|
217
|
+
Development session lasted: ${P.formatDuration(V)}`,"chart","blue"),P.success("All development servers have stopped.")}catch(q){P.log(`Dev command error: ${q instanceof Error?q.message:String(q)}`,"fire","red"),process.exit(1)}}import{rm as n5}from"fs/promises";import{existsSync as a5}from"fs";import{join as o5}from"path";async function t5(_){try{P.info(`Cleaning node_modules across packages...
|
|
218
|
+
`);let q=new w1,$=await q.parseWorkspace();P.dim(`Workspace root: ${$.root}`,"folder"),P.dim(`Found ${$.packages.length} packages
|
|
219
|
+
`,"package");let Z=$.packages;if(_.filter)Z=q.filterPackages($.packages,_.filter),P.log(`Filtered to ${Z.length} packages matching "${_.filter}"`,"magnifying","yellow");let X=Date.now(),z=0,U=0;if(!_.filter){let Y=o5($.root,"node_modules");if(a5(Y))P.log(`Removing ${Y}`,"fire","yellow"),await n5(Y,{recursive:!0,force:!0}),z++}for(let Y of Z){let B=o5(Y.path,"node_modules");if(a5(B))P.log(`Removing ${Y.name}/node_modules`,"fire","yellow"),await n5(B,{recursive:!0,force:!0}),z++;else U++}let Q=Date.now()-X;console.log(),P.executionSummary(z,0,Q),P.dim(`Cleaned: ${z} directories`,"checkmark"),P.dim(`Skipped: ${U} (no node_modules found)`,"magnifying")}catch(q){P.log(`Error: ${q instanceof Error?q.message:String(q)}`,"fire","red"),process.exit(1)}}var kI=gI(import.meta.url),vI=b$(kI);function uI(_){let q=_;while(q!==b$(q))try{let $=xI(q,"package.json"),Z=hI($,"utf8");return JSON.parse(Z)}catch{q=b$(q)}throw Error("package.json not found in any parent directory")}var mI=uI(vI),F1=new t$;F1.name("workspace-utils").description("CLI tool to orchestrate scripts across monorepo workspaces (Bun, pnpm, npm)").version(mI.version).option("--ascii","Force ASCII output (no Unicode/emoji characters)",!1);F1.command("run <script>").description("Run a script across multiple packages").option("-c, --concurrency <number>","Maximum number of concurrent processes","4").option("-f, --filter <pattern>","Filter packages by pattern (e.g., @scope/*)").option("--sequential","Run scripts sequentially (default is parallel)",!1).action((_,q)=>{if(F1.opts().ascii)process.env.WSU_ASCII="1";return p5(_,q)});F1.command("build").description("Build packages in dependency order").option("-f, --filter <pattern>","Filter packages by pattern").option("-c, --concurrency <number>","Maximum number of concurrent builds","4").option("--skip-unchanged","Skip packages that haven't changed (future feature)",!1).action((_)=>{if(F1.opts().ascii)process.env.WSU_ASCII="1";return r5(_)});F1.command("dev").description("Run dev scripts across packages with live log streaming").option("-f, --filter <pattern>","Filter packages by pattern").option("-c, --concurrency <number>","Maximum number of concurrent processes","4").action((_)=>{if(F1.opts().ascii)process.env.WSU_ASCII="1";return s5(_)});F1.command("clean").description("Remove node_modules directories across all packages").option("-f, --filter <pattern>","Filter packages by pattern").action((_)=>{if(F1.opts().ascii)process.env.WSU_ASCII="1";return t5(_)});if(process.argv.length<=2)F1.help();F1.parse();
|