npm-check-updates 22.2.0 → 22.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/cli.cjs CHANGED
@@ -1,67 +1,67 @@
1
1
  #!/usr/bin/env node
2
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./chunks/chunk-BAUY9lu4.cjs"),W=require("./index.cjs");let Fe=require("path");Fe=T.__toESM(Fe,1);let Ge=require("os");Ge=T.__toESM(Ge,1);let $=require("node:process");$=T.__toESM($,1);let ge=require("node:os");ge=T.__toESM(ge,1);let V=require("node:path");V=T.__toESM(V,1);let Gt=require("node:url"),X=require("node:util"),j=require("node:fs");j=T.__toESM(j,1);let Er=require("node:child_process");var Te=T.__commonJSMin((e=>{var r=class extends Error{constructor(l,i,o){super(o),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=i,this.exitCode=l,this.nestedError=void 0}},n=class extends r{constructor(l){super(1,"commander.invalidArgument",l),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};e.CommanderError=r,e.InvalidArgumentError=n})),st=T.__commonJSMin((e=>{var{InvalidArgumentError:r}=Te(),n=class{constructor(i,o){switch(this.description=o||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,i[0]){case"<":this.required=!0,this._name=i.slice(1,-1);break;case"[":this.required=!1,this._name=i.slice(1,-1);break;default:this.required=!0,this._name=i;break}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(i,o){return o===this.defaultValue||!Array.isArray(o)?[i]:(o.push(i),o)}default(i,o){return this.defaultValue=i,this.defaultValueDescription=o,this}argParser(i){return this.parseArg=i,this}choices(i){return this.argChoices=i.slice(),this.parseArg=(o,D)=>{if(!this.argChoices.includes(o))throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(o,D):o},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function l(i){const o=i.name()+(i.variadic===!0?"...":"");return i.required?"<"+o+">":"["+o+"]"}e.Argument=n,e.humanReadableArgName=l})),Jt=T.__commonJSMin((e=>{var{humanReadableArgName:r}=st(),n=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(i){this.helpWidth=this.helpWidth??i.helpWidth??80}visibleCommands(i){const o=i.commands.filter(s=>!s._hidden),D=i._getHelpCommand();return D&&!D._hidden&&o.push(D),this.sortSubcommands&&o.sort((s,u)=>s.name().localeCompare(u.name())),o}compareOptions(i,o){const D=s=>s.short?s.short.replace(/^-/,""):s.long.replace(/^--/,"");return D(i).localeCompare(D(o))}visibleOptions(i){const o=i.options.filter(s=>!s.hidden),D=i._getHelpOption();if(D&&!D.hidden){const s=D.short&&i._findOption(D.short),u=D.long&&i._findOption(D.long);!s&&!u?o.push(D):D.long&&!u?o.push(i.createOption(D.long,D.description)):D.short&&!s&&o.push(i.createOption(D.short,D.description))}return this.sortOptions&&o.sort(this.compareOptions),o}visibleGlobalOptions(i){if(!this.showGlobalOptions)return[];const o=[];for(let D=i.parent;D;D=D.parent){const s=D.options.filter(u=>!u.hidden);o.push(...s)}return this.sortOptions&&o.sort(this.compareOptions),o}visibleArguments(i){return i._argsDescription&&i.registeredArguments.forEach(o=>{o.description=o.description||i._argsDescription[o.name()]||""}),i.registeredArguments.find(o=>o.description)?i.registeredArguments:[]}subcommandTerm(i){const o=i.registeredArguments.map(D=>r(D)).join(" ");return i._name+(i._aliases[0]?"|"+i._aliases[0]:"")+(i.options.length?" [options]":"")+(o?" "+o:"")}optionTerm(i){return i.flags}argumentTerm(i){return i.name()}longestSubcommandTermLength(i,o){return o.visibleCommands(i).reduce((D,s)=>Math.max(D,this.displayWidth(o.styleSubcommandTerm(o.subcommandTerm(s)))),0)}longestOptionTermLength(i,o){return o.visibleOptions(i).reduce((D,s)=>Math.max(D,this.displayWidth(o.styleOptionTerm(o.optionTerm(s)))),0)}longestGlobalOptionTermLength(i,o){return o.visibleGlobalOptions(i).reduce((D,s)=>Math.max(D,this.displayWidth(o.styleOptionTerm(o.optionTerm(s)))),0)}longestArgumentTermLength(i,o){return o.visibleArguments(i).reduce((D,s)=>Math.max(D,this.displayWidth(o.styleArgumentTerm(o.argumentTerm(s)))),0)}commandUsage(i){let o=i._name;i._aliases[0]&&(o=o+"|"+i._aliases[0]);let D="";for(let s=i.parent;s;s=s.parent)D=s.name()+" "+D;return D+o+" "+i.usage()}commandDescription(i){return i.description()}subcommandDescription(i){return i.summary()||i.description()}optionDescription(i){const o=[];if(i.argChoices&&o.push(`choices: ${i.argChoices.map(D=>JSON.stringify(D)).join(", ")}`),i.defaultValue!==void 0&&(i.required||i.optional||i.isBoolean()&&typeof i.defaultValue=="boolean")&&o.push(`default: ${i.defaultValueDescription||JSON.stringify(i.defaultValue)}`),i.presetArg!==void 0&&i.optional&&o.push(`preset: ${JSON.stringify(i.presetArg)}`),i.envVar!==void 0&&o.push(`env: ${i.envVar}`),o.length>0){const D=`(${o.join(", ")})`;return i.description?`${i.description} ${D}`:D}return i.description}argumentDescription(i){const o=[];if(i.argChoices&&o.push(`choices: ${i.argChoices.map(D=>JSON.stringify(D)).join(", ")}`),i.defaultValue!==void 0&&o.push(`default: ${i.defaultValueDescription||JSON.stringify(i.defaultValue)}`),o.length>0){const D=`(${o.join(", ")})`;return i.description?`${i.description} ${D}`:D}return i.description}formatItemList(i,o,D){return o.length===0?[]:[D.styleTitle(i),...o,""]}groupItems(i,o,D){const s=new Map;return i.forEach(u=>{const c=D(u);s.has(c)||s.set(c,[])}),o.forEach(u=>{const c=D(u);s.has(c)||s.set(c,[]),s.get(c).push(u)}),s}formatHelp(i,o){const D=o.padWidth(i,o),s=o.helpWidth??80;function u(F,E){return o.formatItem(F,D,E,o)}let c=[`${o.styleTitle("Usage:")} ${o.styleUsage(o.commandUsage(i))}`,""];const m=o.commandDescription(i);m.length>0&&(c=c.concat([o.boxWrap(o.styleCommandDescription(m),s),""]));const h=o.visibleArguments(i).map(F=>u(o.styleArgumentTerm(o.argumentTerm(F)),o.styleArgumentDescription(o.argumentDescription(F))));if(c=c.concat(this.formatItemList("Arguments:",h,o)),this.groupItems(i.options,o.visibleOptions(i),F=>F.helpGroupHeading??"Options:").forEach((F,E)=>{const C=F.map(v=>u(o.styleOptionTerm(o.optionTerm(v)),o.styleOptionDescription(o.optionDescription(v))));c=c.concat(this.formatItemList(E,C,o))}),o.showGlobalOptions){const F=o.visibleGlobalOptions(i).map(E=>u(o.styleOptionTerm(o.optionTerm(E)),o.styleOptionDescription(o.optionDescription(E))));c=c.concat(this.formatItemList("Global Options:",F,o))}return this.groupItems(i.commands,o.visibleCommands(i),F=>F.helpGroup()||"Commands:").forEach((F,E)=>{const C=F.map(v=>u(o.styleSubcommandTerm(o.subcommandTerm(v)),o.styleSubcommandDescription(o.subcommandDescription(v))));c=c.concat(this.formatItemList(E,C,o))}),c.join(`
2
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./index.cjs");let me=require("path");me=w.__toESM(me,1);let Ue=require("os");Ue=w.__toESM(Ue,1);let $=require("node:process");$=w.__toESM($,1);let Fe=require("node:os");Fe=w.__toESM(Fe,1);let W=require("node:path");W=w.__toESM(W,1);let Ut=require("node:url"),z=require("node:util"),j=require("node:fs");j=w.__toESM(j,1);let gr=require("node:child_process");var xe=w.__commonJSMin((e=>{var r=class extends Error{constructor(l,i,o){super(o),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=i,this.exitCode=l,this.nestedError=void 0}},n=class extends r{constructor(l){super(1,"commander.invalidArgument",l),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};e.CommanderError=r,e.InvalidArgumentError=n})),ot=w.__commonJSMin((e=>{var{InvalidArgumentError:r}=xe(),n=class{constructor(i,o){switch(this.description=o||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,i[0]){case"<":this.required=!0,this._name=i.slice(1,-1);break;case"[":this.required=!1,this._name=i.slice(1,-1);break;default:this.required=!0,this._name=i;break}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(i,o){return o===this.defaultValue||!Array.isArray(o)?[i]:(o.push(i),o)}default(i,o){return this.defaultValue=i,this.defaultValueDescription=o,this}argParser(i){return this.parseArg=i,this}choices(i){return this.argChoices=i.slice(),this.parseArg=(o,D)=>{if(!this.argChoices.includes(o))throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(o,D):o},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function l(i){const o=i.name()+(i.variadic===!0?"...":"");return i.required?"<"+o+">":"["+o+"]"}e.Argument=n,e.humanReadableArgName=l})),Gt=w.__commonJSMin((e=>{var{humanReadableArgName:r}=ot(),n=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(i){this.helpWidth=this.helpWidth??i.helpWidth??80}visibleCommands(i){const o=i.commands.filter(s=>!s._hidden),D=i._getHelpCommand();return D&&!D._hidden&&o.push(D),this.sortSubcommands&&o.sort((s,u)=>s.name().localeCompare(u.name())),o}compareOptions(i,o){const D=s=>s.short?s.short.replace(/^-/,""):s.long.replace(/^--/,"");return D(i).localeCompare(D(o))}visibleOptions(i){const o=i.options.filter(s=>!s.hidden),D=i._getHelpOption();if(D&&!D.hidden){const s=D.short&&i._findOption(D.short),u=D.long&&i._findOption(D.long);!s&&!u?o.push(D):D.long&&!u?o.push(i.createOption(D.long,D.description)):D.short&&!s&&o.push(i.createOption(D.short,D.description))}return this.sortOptions&&o.sort(this.compareOptions),o}visibleGlobalOptions(i){if(!this.showGlobalOptions)return[];const o=[];for(let D=i.parent;D;D=D.parent){const s=D.options.filter(u=>!u.hidden);o.push(...s)}return this.sortOptions&&o.sort(this.compareOptions),o}visibleArguments(i){return i._argsDescription&&i.registeredArguments.forEach(o=>{o.description=o.description||i._argsDescription[o.name()]||""}),i.registeredArguments.find(o=>o.description)?i.registeredArguments:[]}subcommandTerm(i){const o=i.registeredArguments.map(D=>r(D)).join(" ");return i._name+(i._aliases[0]?"|"+i._aliases[0]:"")+(i.options.length?" [options]":"")+(o?" "+o:"")}optionTerm(i){return i.flags}argumentTerm(i){return i.name()}longestSubcommandTermLength(i,o){return o.visibleCommands(i).reduce((D,s)=>Math.max(D,this.displayWidth(o.styleSubcommandTerm(o.subcommandTerm(s)))),0)}longestOptionTermLength(i,o){return o.visibleOptions(i).reduce((D,s)=>Math.max(D,this.displayWidth(o.styleOptionTerm(o.optionTerm(s)))),0)}longestGlobalOptionTermLength(i,o){return o.visibleGlobalOptions(i).reduce((D,s)=>Math.max(D,this.displayWidth(o.styleOptionTerm(o.optionTerm(s)))),0)}longestArgumentTermLength(i,o){return o.visibleArguments(i).reduce((D,s)=>Math.max(D,this.displayWidth(o.styleArgumentTerm(o.argumentTerm(s)))),0)}commandUsage(i){let o=i._name;i._aliases[0]&&(o=o+"|"+i._aliases[0]);let D="";for(let s=i.parent;s;s=s.parent)D=s.name()+" "+D;return D+o+" "+i.usage()}commandDescription(i){return i.description()}subcommandDescription(i){return i.summary()||i.description()}optionDescription(i){const o=[];if(i.argChoices&&o.push(`choices: ${i.argChoices.map(D=>JSON.stringify(D)).join(", ")}`),i.defaultValue!==void 0&&(i.required||i.optional||i.isBoolean()&&typeof i.defaultValue=="boolean")&&o.push(`default: ${i.defaultValueDescription||JSON.stringify(i.defaultValue)}`),i.presetArg!==void 0&&i.optional&&o.push(`preset: ${JSON.stringify(i.presetArg)}`),i.envVar!==void 0&&o.push(`env: ${i.envVar}`),o.length>0){const D=`(${o.join(", ")})`;return i.description?`${i.description} ${D}`:D}return i.description}argumentDescription(i){const o=[];if(i.argChoices&&o.push(`choices: ${i.argChoices.map(D=>JSON.stringify(D)).join(", ")}`),i.defaultValue!==void 0&&o.push(`default: ${i.defaultValueDescription||JSON.stringify(i.defaultValue)}`),o.length>0){const D=`(${o.join(", ")})`;return i.description?`${i.description} ${D}`:D}return i.description}formatItemList(i,o,D){return o.length===0?[]:[D.styleTitle(i),...o,""]}groupItems(i,o,D){const s=new Map;return i.forEach(u=>{const c=D(u);s.has(c)||s.set(c,[])}),o.forEach(u=>{const c=D(u);s.has(c)||s.set(c,[]),s.get(c).push(u)}),s}formatHelp(i,o){const D=o.padWidth(i,o),s=o.helpWidth??80;function u(F,E){return o.formatItem(F,D,E,o)}let c=[`${o.styleTitle("Usage:")} ${o.styleUsage(o.commandUsage(i))}`,""];const m=o.commandDescription(i);m.length>0&&(c=c.concat([o.boxWrap(o.styleCommandDescription(m),s),""]));const h=o.visibleArguments(i).map(F=>u(o.styleArgumentTerm(o.argumentTerm(F)),o.styleArgumentDescription(o.argumentDescription(F))));if(c=c.concat(this.formatItemList("Arguments:",h,o)),this.groupItems(i.options,o.visibleOptions(i),F=>F.helpGroupHeading??"Options:").forEach((F,E)=>{const C=F.map(v=>u(o.styleOptionTerm(o.optionTerm(v)),o.styleOptionDescription(o.optionDescription(v))));c=c.concat(this.formatItemList(E,C,o))}),o.showGlobalOptions){const F=o.visibleGlobalOptions(i).map(E=>u(o.styleOptionTerm(o.optionTerm(E)),o.styleOptionDescription(o.optionDescription(E))));c=c.concat(this.formatItemList("Global Options:",F,o))}return this.groupItems(i.commands,o.visibleCommands(i),F=>F.helpGroup()||"Commands:").forEach((F,E)=>{const C=F.map(v=>u(o.styleSubcommandTerm(o.subcommandTerm(v)),o.styleSubcommandDescription(o.subcommandDescription(v))));c=c.concat(this.formatItemList(E,C,o))}),c.join(`
3
3
  `)}displayWidth(i){return l(i).length}styleTitle(i){return i}styleUsage(i){return i.split(" ").map(o=>o==="[options]"?this.styleOptionText(o):o==="[command]"?this.styleSubcommandText(o):o[0]==="["||o[0]==="<"?this.styleArgumentText(o):this.styleCommandText(o)).join(" ")}styleCommandDescription(i){return this.styleDescriptionText(i)}styleOptionDescription(i){return this.styleDescriptionText(i)}styleSubcommandDescription(i){return this.styleDescriptionText(i)}styleArgumentDescription(i){return this.styleDescriptionText(i)}styleDescriptionText(i){return i}styleOptionTerm(i){return this.styleOptionText(i)}styleSubcommandTerm(i){return i.split(" ").map(o=>o==="[options]"?this.styleOptionText(o):o[0]==="["||o[0]==="<"?this.styleArgumentText(o):this.styleSubcommandText(o)).join(" ")}styleArgumentTerm(i){return this.styleArgumentText(i)}styleOptionText(i){return i}styleArgumentText(i){return i}styleSubcommandText(i){return i}styleCommandText(i){return i}padWidth(i,o){return Math.max(o.longestOptionTermLength(i,o),o.longestGlobalOptionTermLength(i,o),o.longestSubcommandTermLength(i,o),o.longestArgumentTermLength(i,o))}preformatted(i){return/\n[^\S\r\n]/.test(i)}formatItem(i,o,D,s){const c=" ".repeat(2);if(!D)return c+i;const m=i.padEnd(o+i.length-s.displayWidth(i)),h=2,F=(this.helpWidth??80)-o-h-2;let E;return F<this.minWidthToWrap||s.preformatted(D)?E=D:E=s.boxWrap(D,F).replace(/\n/g,`
4
4
  `+" ".repeat(o+h)),c+m+" ".repeat(h)+E.replace(/\n/g,`
5
5
  ${c}`)}boxWrap(i,o){if(o<this.minWidthToWrap)return i;const D=i.split(/\r\n|\n/),s=/[\s]*[^\s]+/g,u=[];return D.forEach(c=>{const m=c.match(s);if(m===null){u.push("");return}let h=[m.shift()],F=this.displayWidth(h[0]);m.forEach(E=>{const C=this.displayWidth(E);if(F+C<=o){h.push(E),F+=C;return}u.push(h.join(""));const v=E.trimStart();h=[v],F=this.displayWidth(v)}),u.push(h.join(""))}),u.join(`
6
- `)}};function l(i){return i.replace(/\x1b\[\d*(;\d*)*m/g,"")}e.Help=n,e.stripColor=l})),Yt=T.__commonJSMin((e=>{var{InvalidArgumentError:r}=Te(),n=class{constructor(D,s){this.flags=D,this.description=s||"",this.required=D.includes("<"),this.optional=D.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(D),this.mandatory=!1;const u=o(D);this.short=u.shortFlag,this.long=u.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,this.helpGroupHeading=void 0}default(D,s){return this.defaultValue=D,this.defaultValueDescription=s,this}preset(D){return this.presetArg=D,this}conflicts(D){return this.conflictsWith=this.conflictsWith.concat(D),this}implies(D){let s=D;return typeof D=="string"&&(s={[D]:!0}),this.implied=Object.assign(this.implied||{},s),this}env(D){return this.envVar=D,this}argParser(D){return this.parseArg=D,this}makeOptionMandatory(D=!0){return this.mandatory=!!D,this}hideHelp(D=!0){return this.hidden=!!D,this}_collectValue(D,s){return s===this.defaultValue||!Array.isArray(s)?[D]:(s.push(D),s)}choices(D){return this.argChoices=D.slice(),this.parseArg=(s,u)=>{if(!this.argChoices.includes(s))throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(s,u):s},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?i(this.name().replace(/^no-/,"")):i(this.name())}helpGroup(D){return this.helpGroupHeading=D,this}is(D){return this.short===D||this.long===D}isBoolean(){return!this.required&&!this.optional&&!this.negate}},l=class{constructor(D){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,D.forEach(s=>{s.negate?this.negativeOptions.set(s.attributeName(),s):this.positiveOptions.set(s.attributeName(),s)}),this.negativeOptions.forEach((s,u)=>{this.positiveOptions.has(u)&&this.dualOptions.add(u)})}valueFromOption(D,s){const u=s.attributeName();if(!this.dualOptions.has(u))return!0;const c=this.negativeOptions.get(u).presetArg,m=c!==void 0?c:!1;return s.negate===(m===D)}};function i(D){return D.split("-").reduce((s,u)=>s+u[0].toUpperCase()+u.slice(1))}function o(D){let s,u;const c=/^-[^-]$/,m=/^--[^-]/,h=D.split(/[ |,]+/).concat("guard");if(c.test(h[0])&&(s=h.shift()),m.test(h[0])&&(u=h.shift()),!s&&c.test(h[0])&&(s=h.shift()),!s&&m.test(h[0])&&(s=u,u=h.shift()),h[0].startsWith("-")){const F=h[0],E=`option creation failed due to '${F}' in option flags '${D}'`;throw/^-[^-][^-]/.test(F)?new Error(`${E}
6
+ `)}};function l(i){return i.replace(/\x1b\[\d*(;\d*)*m/g,"")}e.Help=n,e.stripColor=l})),Jt=w.__commonJSMin((e=>{var{InvalidArgumentError:r}=xe(),n=class{constructor(D,s){this.flags=D,this.description=s||"",this.required=D.includes("<"),this.optional=D.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(D),this.mandatory=!1;const u=o(D);this.short=u.shortFlag,this.long=u.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,this.helpGroupHeading=void 0}default(D,s){return this.defaultValue=D,this.defaultValueDescription=s,this}preset(D){return this.presetArg=D,this}conflicts(D){return this.conflictsWith=this.conflictsWith.concat(D),this}implies(D){let s=D;return typeof D=="string"&&(s={[D]:!0}),this.implied=Object.assign(this.implied||{},s),this}env(D){return this.envVar=D,this}argParser(D){return this.parseArg=D,this}makeOptionMandatory(D=!0){return this.mandatory=!!D,this}hideHelp(D=!0){return this.hidden=!!D,this}_collectValue(D,s){return s===this.defaultValue||!Array.isArray(s)?[D]:(s.push(D),s)}choices(D){return this.argChoices=D.slice(),this.parseArg=(s,u)=>{if(!this.argChoices.includes(s))throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(s,u):s},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?i(this.name().replace(/^no-/,"")):i(this.name())}helpGroup(D){return this.helpGroupHeading=D,this}is(D){return this.short===D||this.long===D}isBoolean(){return!this.required&&!this.optional&&!this.negate}},l=class{constructor(D){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,D.forEach(s=>{s.negate?this.negativeOptions.set(s.attributeName(),s):this.positiveOptions.set(s.attributeName(),s)}),this.negativeOptions.forEach((s,u)=>{this.positiveOptions.has(u)&&this.dualOptions.add(u)})}valueFromOption(D,s){const u=s.attributeName();if(!this.dualOptions.has(u))return!0;const c=this.negativeOptions.get(u).presetArg,m=c!==void 0?c:!1;return s.negate===(m===D)}};function i(D){return D.split("-").reduce((s,u)=>s+u[0].toUpperCase()+u.slice(1))}function o(D){let s,u;const c=/^-[^-]$/,m=/^--[^-]/,h=D.split(/[ |,]+/).concat("guard");if(c.test(h[0])&&(s=h.shift()),m.test(h[0])&&(u=h.shift()),!s&&c.test(h[0])&&(s=h.shift()),!s&&m.test(h[0])&&(s=u,u=h.shift()),h[0].startsWith("-")){const F=h[0],E=`option creation failed due to '${F}' in option flags '${D}'`;throw/^-[^-][^-]/.test(F)?new Error(`${E}
7
7
  - a short flag is a single dash and a single character
8
8
  - either use a single dash and a single character (for a short flag)
9
9
  - or use a double dash for a long option (and can have two, like '--ws, --workspace')`):c.test(F)?new Error(`${E}
10
10
  - too many short flags`):m.test(F)?new Error(`${E}
11
11
  - too many long flags`):new Error(`${E}
12
- - unrecognised flag format`)}if(s===void 0&&u===void 0)throw new Error(`option creation failed due to no flags found in '${D}'.`);return{shortFlag:s,longFlag:u}}e.Option=n,e.DualOptions=l})),Cr=T.__commonJSMin((e=>{var r=3;function n(i,o){if(Math.abs(i.length-o.length)>r)return Math.max(i.length,o.length);const D=[];for(let s=0;s<=i.length;s++)D[s]=[s];for(let s=0;s<=o.length;s++)D[0][s]=s;for(let s=1;s<=o.length;s++)for(let u=1;u<=i.length;u++){let c=1;i[u-1]===o[s-1]?c=0:c=1,D[u][s]=Math.min(D[u-1][s]+1,D[u][s-1]+1,D[u-1][s-1]+c),u>1&&s>1&&i[u-1]===o[s-2]&&i[u-2]===o[s-1]&&(D[u][s]=Math.min(D[u][s],D[u-2][s-2]+1))}return D[i.length][o.length]}function l(i,o){if(!o||o.length===0)return"";o=Array.from(new Set(o));const D=i.startsWith("--");D&&(i=i.slice(2),o=o.map(m=>m.slice(2)));let s=[],u=r;const c=.4;return o.forEach(m=>{if(m.length<=1)return;const h=n(i,m),F=Math.max(i.length,m.length);(F-h)/F>c&&(h<u?(u=h,s=[m]):h===u&&s.push(m))}),s.sort((m,h)=>m.localeCompare(h)),D&&(s=s.map(m=>`--${m}`)),s.length>1?`
12
+ - unrecognised flag format`)}if(s===void 0&&u===void 0)throw new Error(`option creation failed due to no flags found in '${D}'.`);return{shortFlag:s,longFlag:u}}e.Option=n,e.DualOptions=l})),Er=w.__commonJSMin((e=>{var r=3;function n(i,o){if(Math.abs(i.length-o.length)>r)return Math.max(i.length,o.length);const D=[];for(let s=0;s<=i.length;s++)D[s]=[s];for(let s=0;s<=o.length;s++)D[0][s]=s;for(let s=1;s<=o.length;s++)for(let u=1;u<=i.length;u++){let c=1;i[u-1]===o[s-1]?c=0:c=1,D[u][s]=Math.min(D[u-1][s]+1,D[u][s-1]+1,D[u-1][s-1]+c),u>1&&s>1&&i[u-1]===o[s-2]&&i[u-2]===o[s-1]&&(D[u][s]=Math.min(D[u][s],D[u-2][s-2]+1))}return D[i.length][o.length]}function l(i,o){if(!o||o.length===0)return"";o=Array.from(new Set(o));const D=i.startsWith("--");D&&(i=i.slice(2),o=o.map(m=>m.slice(2)));let s=[],u=r;const c=.4;return o.forEach(m=>{if(m.length<=1)return;const h=n(i,m),F=Math.max(i.length,m.length);(F-h)/F>c&&(h<u?(u=h,s=[m]):h===u&&s.push(m))}),s.sort((m,h)=>m.localeCompare(h)),D&&(s=s.map(m=>`--${m}`)),s.length>1?`
13
13
  (Did you mean one of ${s.join(", ")}?)`:s.length===1?`
14
- (Did you mean ${s[0]}?)`:""}e.suggestSimilar=l})),yr=T.__commonJSMin((e=>{var r=require("node:events").EventEmitter,n=require("node:child_process"),l=require("node:path"),i=require("node:fs"),o=require("node:process"),{Argument:D,humanReadableArgName:s}=st(),{CommanderError:u}=Te(),{Help:c,stripColor:m}=Jt(),{Option:h,DualOptions:F}=Yt(),{suggestSimilar:E}=Cr(),C=class Kt extends r{constructor(t){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=t||"",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._savedState=null,this._outputConfiguration={writeOut:a=>o.stdout.write(a),writeErr:a=>o.stderr.write(a),outputError:(a,f)=>f(a),getOutHelpWidth:()=>o.stdout.isTTY?o.stdout.columns:void 0,getErrHelpWidth:()=>o.stderr.isTTY?o.stderr.columns:void 0,getOutHasColors:()=>y()??(o.stdout.isTTY&&o.stdout.hasColors?.()),getErrHasColors:()=>y()??(o.stderr.isTTY&&o.stderr.hasColors?.()),stripColor:a=>m(a)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){const t=[];for(let a=this;a;a=a.parent)t.push(a);return t}command(t,a,f){let d=a,g=f;typeof d=="object"&&d!==null&&(g=d,d=null),g=g||{};const[,_,A]=t.match(/([^ ]+) *(.*)/),b=this.createCommand(_);return d&&(b.description(d),b._executableHandler=!0),g.isDefault&&(this._defaultCommandName=b._name),b._hidden=!!(g.noHelp||g.hidden),b._executableFile=g.executableFile||null,A&&b.arguments(A),this._registerCommand(b),b.parent=this,b.copyInheritedSettings(this),d?this:b}createCommand(t){return new Kt(t)}createHelp(){return Object.assign(new c,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...t},this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,a){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
14
+ (Did you mean ${s[0]}?)`:""}e.suggestSimilar=l})),Cr=w.__commonJSMin((e=>{var r=require("node:events").EventEmitter,n=require("node:child_process"),l=require("node:path"),i=require("node:fs"),o=require("node:process"),{Argument:D,humanReadableArgName:s}=ot(),{CommanderError:u}=xe(),{Help:c,stripColor:m}=Gt(),{Option:h,DualOptions:F}=Jt(),{suggestSimilar:E}=Er(),C=class Yt extends r{constructor(t){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=t||"",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._savedState=null,this._outputConfiguration={writeOut:a=>o.stdout.write(a),writeErr:a=>o.stderr.write(a),outputError:(a,f)=>f(a),getOutHelpWidth:()=>o.stdout.isTTY?o.stdout.columns:void 0,getErrHelpWidth:()=>o.stderr.isTTY?o.stderr.columns:void 0,getOutHasColors:()=>y()??(o.stdout.isTTY&&o.stdout.hasColors?.()),getErrHasColors:()=>y()??(o.stderr.isTTY&&o.stderr.hasColors?.()),stripColor:a=>m(a)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){const t=[];for(let a=this;a;a=a.parent)t.push(a);return t}command(t,a,f){let d=a,g=f;typeof d=="object"&&d!==null&&(g=d,d=null),g=g||{};const[,_,A]=t.match(/([^ ]+) *(.*)/),b=this.createCommand(_);return d&&(b.description(d),b._executableHandler=!0),g.isDefault&&(this._defaultCommandName=b._name),b._hidden=!!(g.noHelp||g.hidden),b._executableFile=g.executableFile||null,A&&b.arguments(A),this._registerCommand(b),b.parent=this,b.copyInheritedSettings(this),d?this:b}createCommand(t){return new Yt(t)}createHelp(){return Object.assign(new c,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...t},this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,a){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
15
15
  - specify the name in Command constructor or using .name()`);return a=a||{},a.isDefault&&(this._defaultCommandName=t._name),(a.noHelp||a.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,a){return new D(t,a)}argument(t,a,f,d){const g=this.createArgument(t,a);return typeof f=="function"?g.default(d).argParser(f):g.default(f),this.addArgument(g),this}arguments(t){return t.trim().split(/ +/).forEach(a=>{this.argument(a)}),this}addArgument(t){const a=this.registeredArguments.slice(-1)[0];if(a?.variadic)throw new Error(`only the last argument can be variadic '${a.name()}'`);if(t.required&&t.defaultValue!==void 0&&t.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${t.name()}'`);return this.registeredArguments.push(t),this}helpCommand(t,a){if(typeof t=="boolean")return this._addImplicitHelpCommand=t,t&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;const[,f,d]=(t??"help [command]").match(/([^ ]+) *(.*)/),g=a??"display help for command",_=this.createCommand(f);return _.helpOption(!1),d&&_.arguments(d),g&&_.description(g),this._addImplicitHelpCommand=!0,this._helpCommand=_,(t||a)&&this._initCommandGroup(_),this}addHelpCommand(t,a){return typeof t!="object"?(this.helpCommand(t,a),this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this._initCommandGroup(t),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(t,a){const f=["preSubcommand","preAction","postAction"];if(!f.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.
16
16
  Expecting one of '${f.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(a):this._lifeCycleHooks[t]=[a],this}exitOverride(t){return t?this._exitCallback=t:this._exitCallback=a=>{if(a.code!=="commander.executeSubCommandAsync")throw a},this}_exit(t,a,f){this._exitCallback&&this._exitCallback(new u(t,a,f)),o.exit(t)}action(t){const a=f=>{const d=this.registeredArguments.length,g=f.slice(0,d);return this._storeOptionsAsProperties?g[d]=this:g[d]=this.opts(),g.push(this),t.apply(this,g)};return this._actionHandler=a,this}createOption(t,a){return new h(t,a)}_callParseArg(t,a,f,d){try{return t.parseArg(a,f)}catch(g){if(g.code==="commander.invalidArgument"){const _=`${d} ${g.message}`;this.error(_,{exitCode:g.exitCode,code:g.code})}throw g}}_registerOption(t){const a=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(a){const f=t.long&&this._findOption(t.long)?t.long:t.short;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${f}'
17
- - already used by option '${a.flags}'`)}this._initOptionGroup(t),this.options.push(t)}_registerCommand(t){const a=d=>[d.name()].concat(d.aliases()),f=a(t).find(d=>this._findCommand(d));if(f){const d=a(this._findCommand(f)).join("|"),g=a(t).join("|");throw new Error(`cannot add command '${g}' as already have command '${d}'`)}this._initCommandGroup(t),this.commands.push(t)}addOption(t){this._registerOption(t);const a=t.name(),f=t.attributeName();if(t.negate){const g=t.long.replace(/^--no-/,"--");this._findOption(g)||this.setOptionValueWithSource(f,t.defaultValue===void 0?!0:t.defaultValue,"default")}else t.defaultValue!==void 0&&this.setOptionValueWithSource(f,t.defaultValue,"default");const d=(g,_,A)=>{g==null&&t.presetArg!==void 0&&(g=t.presetArg);const b=this.getOptionValue(f);g!==null&&t.parseArg?g=this._callParseArg(t,g,b,_):g!==null&&t.variadic&&(g=t._collectValue(g,b)),g==null&&(t.negate?g=!1:t.isBoolean()||t.optional?g=!0:g=""),this.setOptionValueWithSource(f,g,A)};return this.on("option:"+a,g=>{d(g,`error: option '${t.flags}' argument '${g}' is invalid.`,"cli")}),t.envVar&&this.on("optionEnv:"+a,g=>{d(g,`error: option '${t.flags}' value '${g}' from env '${t.envVar}' is invalid.`,"env")}),this}_optionEx(t,a,f,d,g){if(typeof a=="object"&&a instanceof h)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");const _=this.createOption(a,f);if(_.makeOptionMandatory(!!t.mandatory),typeof d=="function")_.default(g).argParser(d);else if(d instanceof RegExp){const A=d;d=(b,S)=>{const B=A.exec(b);return B?B[0]:S},_.default(g).argParser(d)}else _.default(d);return this.addOption(_)}option(t,a,f,d){return this._optionEx({},t,a,f,d)}requiredOption(t,a,f,d){return this._optionEx({mandatory:!0},t,a,f,d)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){return this._passThroughOptions=!!t,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(t=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,a){return this.setOptionValueWithSource(t,a,void 0)}setOptionValueWithSource(t,a,f){return this._storeOptionsAsProperties?this[t]=a:this._optionValues[t]=a,this._optionValueSources[t]=f,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let a;return this._getCommandAndAncestors().forEach(f=>{f.getOptionValueSource(t)!==void 0&&(a=f.getOptionValueSource(t))}),a}_prepareUserArgs(t,a){if(t!==void 0&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(a=a||{},t===void 0&&a.from===void 0){o.versions?.electron&&(a.from="electron");const d=o.execArgv??[];(d.includes("-e")||d.includes("--eval")||d.includes("-p")||d.includes("--print"))&&(a.from="eval")}t===void 0&&(t=o.argv),this.rawArgs=t.slice();let f;switch(a.from){case void 0:case"node":this._scriptPath=t[1],f=t.slice(2);break;case"electron":o.defaultApp?(this._scriptPath=t[1],f=t.slice(2)):f=t.slice(1);break;case"user":f=t.slice(0);break;case"eval":f=t.slice(1);break;default:throw new Error(`unexpected parse option { from: '${a.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",f}parse(t,a){this._prepareForParse();const f=this._prepareUserArgs(t,a);return this._parseCommand([],f),this}async parseAsync(t,a){this._prepareForParse();const f=this._prepareUserArgs(t,a);return await this._parseCommand([],f),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
17
+ - already used by option '${a.flags}'`)}this._initOptionGroup(t),this.options.push(t)}_registerCommand(t){const a=d=>[d.name()].concat(d.aliases()),f=a(t).find(d=>this._findCommand(d));if(f){const d=a(this._findCommand(f)).join("|"),g=a(t).join("|");throw new Error(`cannot add command '${g}' as already have command '${d}'`)}this._initCommandGroup(t),this.commands.push(t)}addOption(t){this._registerOption(t);const a=t.name(),f=t.attributeName();if(t.negate){const g=t.long.replace(/^--no-/,"--");this._findOption(g)||this.setOptionValueWithSource(f,t.defaultValue===void 0?!0:t.defaultValue,"default")}else t.defaultValue!==void 0&&this.setOptionValueWithSource(f,t.defaultValue,"default");const d=(g,_,A)=>{g==null&&t.presetArg!==void 0&&(g=t.presetArg);const b=this.getOptionValue(f);g!==null&&t.parseArg?g=this._callParseArg(t,g,b,_):g!==null&&t.variadic&&(g=t._collectValue(g,b)),g==null&&(t.negate?g=!1:t.isBoolean()||t.optional?g=!0:g=""),this.setOptionValueWithSource(f,g,A)};return this.on("option:"+a,g=>{d(g,`error: option '${t.flags}' argument '${g}' is invalid.`,"cli")}),t.envVar&&this.on("optionEnv:"+a,g=>{d(g,`error: option '${t.flags}' value '${g}' from env '${t.envVar}' is invalid.`,"env")}),this}_optionEx(t,a,f,d,g){if(typeof a=="object"&&a instanceof h)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");const _=this.createOption(a,f);if(_.makeOptionMandatory(!!t.mandatory),typeof d=="function")_.default(g).argParser(d);else if(d instanceof RegExp){const A=d;d=(b,O)=>{const S=A.exec(b);return S?S[0]:O},_.default(g).argParser(d)}else _.default(d);return this.addOption(_)}option(t,a,f,d){return this._optionEx({},t,a,f,d)}requiredOption(t,a,f,d){return this._optionEx({mandatory:!0},t,a,f,d)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){return this._passThroughOptions=!!t,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(t=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,a){return this.setOptionValueWithSource(t,a,void 0)}setOptionValueWithSource(t,a,f){return this._storeOptionsAsProperties?this[t]=a:this._optionValues[t]=a,this._optionValueSources[t]=f,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let a;return this._getCommandAndAncestors().forEach(f=>{f.getOptionValueSource(t)!==void 0&&(a=f.getOptionValueSource(t))}),a}_prepareUserArgs(t,a){if(t!==void 0&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(a=a||{},t===void 0&&a.from===void 0){o.versions?.electron&&(a.from="electron");const d=o.execArgv??[];(d.includes("-e")||d.includes("--eval")||d.includes("-p")||d.includes("--print"))&&(a.from="eval")}t===void 0&&(t=o.argv),this.rawArgs=t.slice();let f;switch(a.from){case void 0:case"node":this._scriptPath=t[1],f=t.slice(2);break;case"electron":o.defaultApp?(this._scriptPath=t[1],f=t.slice(2)):f=t.slice(1);break;case"user":f=t.slice(0);break;case"eval":f=t.slice(1);break;default:throw new Error(`unexpected parse option { from: '${a.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",f}parse(t,a){this._prepareForParse();const f=this._prepareUserArgs(t,a);return this._parseCommand([],f),this}async parseAsync(t,a){this._prepareForParse();const f=this._prepareUserArgs(t,a);return await this._parseCommand([],f),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
18
18
  - either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(t,a,f){if(i.existsSync(t))return;const d=`'${t}' does not exist
19
19
  - if '${f}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
20
20
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
21
- - ${a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory"}`;throw new Error(d)}_executeSubCommand(t,a){a=a.slice();let f=!1;const d=[".js",".ts",".tsx",".mjs",".cjs"];function g(B,O){const U=l.resolve(B,O);if(i.existsSync(U))return U;if(d.includes(l.extname(O)))return;const J=d.find(Y=>i.existsSync(`${U}${Y}`));if(J)return`${U}${J}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let _=t._executableFile||`${this._name}-${t._name}`,A=this._executableDir||"";if(this._scriptPath){let B;try{B=i.realpathSync(this._scriptPath)}catch{B=this._scriptPath}A=l.resolve(l.dirname(B),A)}if(A){let B=g(A,_);if(!B&&!t._executableFile&&this._scriptPath){const O=l.basename(this._scriptPath,l.extname(this._scriptPath));O!==this._name&&(B=g(A,`${O}-${t._name}`))}_=B||_}f=d.includes(l.extname(_));let b;o.platform!=="win32"?f?(a.unshift(_),a=v(o.execArgv).concat(a),b=n.spawn(o.argv[0],a,{stdio:"inherit"})):b=n.spawn(_,a,{stdio:"inherit"}):(this._checkForMissingExecutable(_,A,t._name),a.unshift(_),a=v(o.execArgv).concat(a),b=n.spawn(o.execPath,a,{stdio:"inherit"})),b.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(B=>{o.on(B,()=>{b.killed===!1&&b.exitCode===null&&b.kill(B)})});const S=this._exitCallback;b.on("close",B=>{B=B??1,S?S(new u(B,"commander.executeSubCommandAsync","(close)")):o.exit(B)}),b.on("error",B=>{if(B.code==="ENOENT")this._checkForMissingExecutable(_,A,t._name);else if(B.code==="EACCES")throw new Error(`'${_}' not executable`);if(!S)o.exit(1);else{const O=new u(1,"commander.executeSubCommandAsync","(error)");O.nestedError=B,S(O)}}),this.runningCommand=b}_dispatchSubcommand(t,a,f){const d=this._findCommand(t);d||this.help({error:!0}),d._prepareForParse();let g;return g=this._chainOrCallSubCommandHook(g,d,"preSubcommand"),g=this._chainOrCall(g,()=>{if(d._executableHandler)this._executeSubCommand(d,a.concat(f));else return d._parseCommand(a,f)}),g}_dispatchHelpCommand(t){t||this.help();const a=this._findCommand(t);return a&&!a._executableHandler&&a.help(),this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((t,a)=>{t.required&&this.args[a]==null&&this.missingArgument(t.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){const t=(f,d,g)=>{let _=d;if(d!==null&&f.parseArg){const A=`error: command-argument value '${d}' is invalid for argument '${f.name()}'.`;_=this._callParseArg(f,d,g,A)}return _};this._checkNumberOfArguments();const a=[];this.registeredArguments.forEach((f,d)=>{let g=f.defaultValue;f.variadic?d<this.args.length?(g=this.args.slice(d),f.parseArg&&(g=g.reduce((_,A)=>t(f,A,_),f.defaultValue))):g===void 0&&(g=[]):d<this.args.length&&(g=this.args[d],f.parseArg&&(g=t(f,g,f.defaultValue))),a[d]=g}),this.processedArgs=a}_chainOrCall(t,a){return t?.then&&typeof t.then=="function"?t.then(()=>a()):a()}_chainOrCallHooks(t,a){let f=t;const d=[];return this._getCommandAndAncestors().reverse().filter(g=>g._lifeCycleHooks[a]!==void 0).forEach(g=>{g._lifeCycleHooks[a].forEach(_=>{d.push({hookedCommand:g,callback:_})})}),a==="postAction"&&d.reverse(),d.forEach(g=>{f=this._chainOrCall(f,()=>g.callback(g.hookedCommand,this))}),f}_chainOrCallSubCommandHook(t,a,f){let d=t;return this._lifeCycleHooks[f]!==void 0&&this._lifeCycleHooks[f].forEach(g=>{d=this._chainOrCall(d,()=>g(this,a))}),d}_parseCommand(t,a){const f=this.parseOptions(a);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(f.operands),a=f.unknown,this.args=t.concat(a),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),a);if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(a),this._dispatchSubcommand(this._defaultCommandName,t,a);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(f.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();const d=()=>{f.unknown.length>0&&this.unknownOption(f.unknown[0])},g=`command:${this.name()}`;if(this._actionHandler){d(),this._processArguments();let _;return _=this._chainOrCallHooks(_,"preAction"),_=this._chainOrCall(_,()=>this._actionHandler(this.processedArgs)),this.parent&&(_=this._chainOrCall(_,()=>{this.parent.emit(g,t,a)})),_=this._chainOrCallHooks(_,"postAction"),_}if(this.parent?.listenerCount(g))d(),this._processArguments(),this.parent.emit(g,t,a);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,a);this.listenerCount("command:*")?this.emit("command:*",t,a):this.commands.length?this.unknownCommand():(d(),this._processArguments())}else this.commands.length?(d(),this.help({error:!0})):(d(),this._processArguments())}_findCommand(t){if(t)return this.commands.find(a=>a._name===t||a._aliases.includes(t))}_findOption(t){return this.options.find(a=>a.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{t.options.forEach(a=>{a.mandatory&&t.getOptionValue(a.attributeName())===void 0&&t.missingMandatoryOptionValue(a)})})}_checkForConflictingLocalOptions(){const t=this.options.filter(a=>{const f=a.attributeName();return this.getOptionValue(f)===void 0?!1:this.getOptionValueSource(f)!=="default"});t.filter(a=>a.conflictsWith.length>0).forEach(a=>{const f=t.find(d=>a.conflictsWith.includes(d.attributeName()));f&&this._conflictingOption(a,f)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{t._checkForConflictingLocalOptions()})}parseOptions(t){const a=[],f=[];let d=a;function g(B){return B.length>1&&B[0]==="-"}const _=B=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(B)?!this._getCommandAndAncestors().some(O=>O.options.map(U=>U.short).some(U=>/^-\d$/.test(U))):!1;let A=null,b=null,S=0;for(;S<t.length||b;){const B=b??t[S++];if(b=null,B==="--"){d===f&&d.push(B),d.push(...t.slice(S));break}if(A&&(!g(B)||_(B))){this.emit(`option:${A.name()}`,B);continue}if(A=null,g(B)){const O=this._findOption(B);if(O){if(O.required){const U=t[S++];U===void 0&&this.optionMissingArgument(O),this.emit(`option:${O.name()}`,U)}else if(O.optional){let U=null;S<t.length&&(!g(t[S])||_(t[S]))&&(U=t[S++]),this.emit(`option:${O.name()}`,U)}else this.emit(`option:${O.name()}`);A=O.variadic?O:null;continue}}if(B.length>2&&B[0]==="-"&&B[1]!=="-"){const O=this._findOption(`-${B[1]}`);if(O){O.required||O.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${O.name()}`,B.slice(2)):(this.emit(`option:${O.name()}`),b=`-${B.slice(2)}`);continue}}if(/^--[^=]+=/.test(B)){const O=B.indexOf("="),U=this._findOption(B.slice(0,O));if(U&&(U.required||U.optional)){this.emit(`option:${U.name()}`,B.slice(O+1));continue}}if(d===a&&g(B)&&!(this.commands.length===0&&_(B))&&(d=f),(this._enablePositionalOptions||this._passThroughOptions)&&a.length===0&&f.length===0){if(this._findCommand(B)){a.push(B),f.push(...t.slice(S));break}else if(this._getHelpCommand()&&B===this._getHelpCommand().name()){a.push(B,...t.slice(S));break}else if(this._defaultCommandName){f.push(B,...t.slice(S));break}}if(this._passThroughOptions){d.push(B,...t.slice(S));break}d.push(B)}return{operands:a,unknown:f}}opts(){if(this._storeOptionsAsProperties){const t={},a=this.options.length;for(let f=0;f<a;f++){const d=this.options[f].attributeName();t[d]=d===this._versionOptionName?this._version:this[d]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((t,a)=>Object.assign(t,a.opts()),{})}error(t,a){this._outputConfiguration.outputError(`${t}
21
+ - ${a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory"}`;throw new Error(d)}_executeSubCommand(t,a){a=a.slice();let f=!1;const d=[".js",".ts",".tsx",".mjs",".cjs"];function g(S,x){const V=l.resolve(S,x);if(i.existsSync(V))return V;if(d.includes(l.extname(x)))return;const G=d.find(J=>i.existsSync(`${V}${J}`));if(G)return`${V}${G}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let _=t._executableFile||`${this._name}-${t._name}`,A=this._executableDir||"";if(this._scriptPath){let S;try{S=i.realpathSync(this._scriptPath)}catch{S=this._scriptPath}A=l.resolve(l.dirname(S),A)}if(A){let S=g(A,_);if(!S&&!t._executableFile&&this._scriptPath){const x=l.basename(this._scriptPath,l.extname(this._scriptPath));x!==this._name&&(S=g(A,`${x}-${t._name}`))}_=S||_}f=d.includes(l.extname(_));let b;o.platform!=="win32"?f?(a.unshift(_),a=v(o.execArgv).concat(a),b=n.spawn(o.argv[0],a,{stdio:"inherit"})):b=n.spawn(_,a,{stdio:"inherit"}):(this._checkForMissingExecutable(_,A,t._name),a.unshift(_),a=v(o.execArgv).concat(a),b=n.spawn(o.execPath,a,{stdio:"inherit"})),b.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(S=>{o.on(S,()=>{b.killed===!1&&b.exitCode===null&&b.kill(S)})});const O=this._exitCallback;b.on("close",S=>{S=S??1,O?O(new u(S,"commander.executeSubCommandAsync","(close)")):o.exit(S)}),b.on("error",S=>{if(S.code==="ENOENT")this._checkForMissingExecutable(_,A,t._name);else if(S.code==="EACCES")throw new Error(`'${_}' not executable`);if(!O)o.exit(1);else{const x=new u(1,"commander.executeSubCommandAsync","(error)");x.nestedError=S,O(x)}}),this.runningCommand=b}_dispatchSubcommand(t,a,f){const d=this._findCommand(t);d||this.help({error:!0}),d._prepareForParse();let g;return g=this._chainOrCallSubCommandHook(g,d,"preSubcommand"),g=this._chainOrCall(g,()=>{if(d._executableHandler)this._executeSubCommand(d,a.concat(f));else return d._parseCommand(a,f)}),g}_dispatchHelpCommand(t){t||this.help();const a=this._findCommand(t);return a&&!a._executableHandler&&a.help(),this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((t,a)=>{t.required&&this.args[a]==null&&this.missingArgument(t.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){const t=(f,d,g)=>{let _=d;if(d!==null&&f.parseArg){const A=`error: command-argument value '${d}' is invalid for argument '${f.name()}'.`;_=this._callParseArg(f,d,g,A)}return _};this._checkNumberOfArguments();const a=[];this.registeredArguments.forEach((f,d)=>{let g=f.defaultValue;f.variadic?d<this.args.length?(g=this.args.slice(d),f.parseArg&&(g=g.reduce((_,A)=>t(f,A,_),f.defaultValue))):g===void 0&&(g=[]):d<this.args.length&&(g=this.args[d],f.parseArg&&(g=t(f,g,f.defaultValue))),a[d]=g}),this.processedArgs=a}_chainOrCall(t,a){return t?.then&&typeof t.then=="function"?t.then(()=>a()):a()}_chainOrCallHooks(t,a){let f=t;const d=[];return this._getCommandAndAncestors().reverse().filter(g=>g._lifeCycleHooks[a]!==void 0).forEach(g=>{g._lifeCycleHooks[a].forEach(_=>{d.push({hookedCommand:g,callback:_})})}),a==="postAction"&&d.reverse(),d.forEach(g=>{f=this._chainOrCall(f,()=>g.callback(g.hookedCommand,this))}),f}_chainOrCallSubCommandHook(t,a,f){let d=t;return this._lifeCycleHooks[f]!==void 0&&this._lifeCycleHooks[f].forEach(g=>{d=this._chainOrCall(d,()=>g(this,a))}),d}_parseCommand(t,a){const f=this.parseOptions(a);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(f.operands),a=f.unknown,this.args=t.concat(a),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),a);if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(a),this._dispatchSubcommand(this._defaultCommandName,t,a);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(f.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();const d=()=>{f.unknown.length>0&&this.unknownOption(f.unknown[0])},g=`command:${this.name()}`;if(this._actionHandler){d(),this._processArguments();let _;return _=this._chainOrCallHooks(_,"preAction"),_=this._chainOrCall(_,()=>this._actionHandler(this.processedArgs)),this.parent&&(_=this._chainOrCall(_,()=>{this.parent.emit(g,t,a)})),_=this._chainOrCallHooks(_,"postAction"),_}if(this.parent?.listenerCount(g))d(),this._processArguments(),this.parent.emit(g,t,a);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,a);this.listenerCount("command:*")?this.emit("command:*",t,a):this.commands.length?this.unknownCommand():(d(),this._processArguments())}else this.commands.length?(d(),this.help({error:!0})):(d(),this._processArguments())}_findCommand(t){if(t)return this.commands.find(a=>a._name===t||a._aliases.includes(t))}_findOption(t){return this.options.find(a=>a.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{t.options.forEach(a=>{a.mandatory&&t.getOptionValue(a.attributeName())===void 0&&t.missingMandatoryOptionValue(a)})})}_checkForConflictingLocalOptions(){const t=this.options.filter(a=>{const f=a.attributeName();return this.getOptionValue(f)===void 0?!1:this.getOptionValueSource(f)!=="default"});t.filter(a=>a.conflictsWith.length>0).forEach(a=>{const f=t.find(d=>a.conflictsWith.includes(d.attributeName()));f&&this._conflictingOption(a,f)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{t._checkForConflictingLocalOptions()})}parseOptions(t){const a=[],f=[];let d=a;function g(S){return S.length>1&&S[0]==="-"}const _=S=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(S)?!this._getCommandAndAncestors().some(x=>x.options.map(V=>V.short).some(V=>/^-\d$/.test(V))):!1;let A=null,b=null,O=0;for(;O<t.length||b;){const S=b??t[O++];if(b=null,S==="--"){d===f&&d.push(S),d.push(...t.slice(O));break}if(A&&(!g(S)||_(S))){this.emit(`option:${A.name()}`,S);continue}if(A=null,g(S)){const x=this._findOption(S);if(x){if(x.required){const V=t[O++];V===void 0&&this.optionMissingArgument(x),this.emit(`option:${x.name()}`,V)}else if(x.optional){let V=null;O<t.length&&(!g(t[O])||_(t[O]))&&(V=t[O++]),this.emit(`option:${x.name()}`,V)}else this.emit(`option:${x.name()}`);A=x.variadic?x:null;continue}}if(S.length>2&&S[0]==="-"&&S[1]!=="-"){const x=this._findOption(`-${S[1]}`);if(x){x.required||x.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${x.name()}`,S.slice(2)):(this.emit(`option:${x.name()}`),b=`-${S.slice(2)}`);continue}}if(/^--[^=]+=/.test(S)){const x=S.indexOf("="),V=this._findOption(S.slice(0,x));if(V&&(V.required||V.optional)){this.emit(`option:${V.name()}`,S.slice(x+1));continue}}if(d===a&&g(S)&&!(this.commands.length===0&&_(S))&&(d=f),(this._enablePositionalOptions||this._passThroughOptions)&&a.length===0&&f.length===0){if(this._findCommand(S)){a.push(S),f.push(...t.slice(O));break}else if(this._getHelpCommand()&&S===this._getHelpCommand().name()){a.push(S,...t.slice(O));break}else if(this._defaultCommandName){f.push(S,...t.slice(O));break}}if(this._passThroughOptions){d.push(S,...t.slice(O));break}d.push(S)}return{operands:a,unknown:f}}opts(){if(this._storeOptionsAsProperties){const t={},a=this.options.length;for(let f=0;f<a;f++){const d=this.options[f].attributeName();t[d]=d===this._versionOptionName?this._version:this[d]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((t,a)=>Object.assign(t,a.opts()),{})}error(t,a){this._outputConfiguration.outputError(`${t}
22
22
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
23
23
  `):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
24
- `),this.outputHelp({error:!0}));const f=a||{},d=f.exitCode||1,g=f.code||"commander.error";this._exit(d,g,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in o.env){const a=t.attributeName();(this.getOptionValue(a)===void 0||["default","config","env"].includes(this.getOptionValueSource(a)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,o.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){const t=new F(this.options),a=f=>this.getOptionValue(f)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(f));this.options.filter(f=>f.implied!==void 0&&a(f.attributeName())&&t.valueFromOption(this.getOptionValue(f.attributeName()),f)).forEach(f=>{Object.keys(f.implied).filter(d=>!a(d)).forEach(d=>{this.setOptionValueWithSource(d,f.implied[d],"implied")})})}missingArgument(t){const a=`error: missing required argument '${t}'`;this.error(a,{code:"commander.missingArgument"})}optionMissingArgument(t){const a=`error: option '${t.flags}' argument missing`;this.error(a,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){const a=`error: required option '${t.flags}' not specified`;this.error(a,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,a){const f=_=>{const A=_.attributeName(),b=this.getOptionValue(A),S=this.options.find(O=>O.negate&&A===O.attributeName()),B=this.options.find(O=>!O.negate&&A===O.attributeName());return S&&(S.presetArg===void 0&&b===!1||S.presetArg!==void 0&&b===S.presetArg)?S:B||_},d=_=>{const A=f(_),b=A.attributeName();return this.getOptionValueSource(b)==="env"?`environment variable '${A.envVar}'`:`option '${A.flags}'`},g=`error: ${d(t)} cannot be used with ${d(a)}`;this.error(g,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let a="";if(t.startsWith("--")&&this._showSuggestionAfterError){let d=[],g=this;do{const _=g.createHelp().visibleOptions(g).filter(A=>A.long).map(A=>A.long);d=d.concat(_),g=g.parent}while(g&&!g._enablePositionalOptions);a=E(t,d)}const f=`error: unknown option '${t}'${a}`;this.error(f,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;const a=this.registeredArguments.length,f=a===1?"":"s",d=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${a} argument${f} but got ${t.length}.`;this.error(d,{code:"commander.excessArguments"})}unknownCommand(){const t=this.args[0];let a="";if(this._showSuggestionAfterError){const d=[];this.createHelp().visibleCommands(this).forEach(g=>{d.push(g.name()),g.alias()&&d.push(g.alias())}),a=E(t,d)}const f=`error: unknown command '${t}'${a}`;this.error(f,{code:"commander.unknownCommand"})}version(t,a,f){if(t===void 0)return this._version;this._version=t,a=a||"-V, --version",f=f||"output the version number";const d=this.createOption(a,f);return this._versionOptionName=d.attributeName(),this._registerOption(d),this.on("option:"+d.name(),()=>{this._outputConfiguration.writeOut(`${t}
24
+ `),this.outputHelp({error:!0}));const f=a||{},d=f.exitCode||1,g=f.code||"commander.error";this._exit(d,g,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in o.env){const a=t.attributeName();(this.getOptionValue(a)===void 0||["default","config","env"].includes(this.getOptionValueSource(a)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,o.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){const t=new F(this.options),a=f=>this.getOptionValue(f)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(f));this.options.filter(f=>f.implied!==void 0&&a(f.attributeName())&&t.valueFromOption(this.getOptionValue(f.attributeName()),f)).forEach(f=>{Object.keys(f.implied).filter(d=>!a(d)).forEach(d=>{this.setOptionValueWithSource(d,f.implied[d],"implied")})})}missingArgument(t){const a=`error: missing required argument '${t}'`;this.error(a,{code:"commander.missingArgument"})}optionMissingArgument(t){const a=`error: option '${t.flags}' argument missing`;this.error(a,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){const a=`error: required option '${t.flags}' not specified`;this.error(a,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,a){const f=_=>{const A=_.attributeName(),b=this.getOptionValue(A),O=this.options.find(x=>x.negate&&A===x.attributeName()),S=this.options.find(x=>!x.negate&&A===x.attributeName());return O&&(O.presetArg===void 0&&b===!1||O.presetArg!==void 0&&b===O.presetArg)?O:S||_},d=_=>{const A=f(_),b=A.attributeName();return this.getOptionValueSource(b)==="env"?`environment variable '${A.envVar}'`:`option '${A.flags}'`},g=`error: ${d(t)} cannot be used with ${d(a)}`;this.error(g,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let a="";if(t.startsWith("--")&&this._showSuggestionAfterError){let d=[],g=this;do{const _=g.createHelp().visibleOptions(g).filter(A=>A.long).map(A=>A.long);d=d.concat(_),g=g.parent}while(g&&!g._enablePositionalOptions);a=E(t,d)}const f=`error: unknown option '${t}'${a}`;this.error(f,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;const a=this.registeredArguments.length,f=a===1?"":"s",d=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${a} argument${f} but got ${t.length}.`;this.error(d,{code:"commander.excessArguments"})}unknownCommand(){const t=this.args[0];let a="";if(this._showSuggestionAfterError){const d=[];this.createHelp().visibleCommands(this).forEach(g=>{d.push(g.name()),g.alias()&&d.push(g.alias())}),a=E(t,d)}const f=`error: unknown command '${t}'${a}`;this.error(f,{code:"commander.unknownCommand"})}version(t,a,f){if(t===void 0)return this._version;this._version=t,a=a||"-V, --version",f=f||"output the version number";const d=this.createOption(a,f);return this._versionOptionName=d.attributeName(),this._registerOption(d),this.on("option:"+d.name(),()=>{this._outputConfiguration.writeOut(`${t}
25
25
  `),this._exit(0,"commander.version",t)}),this}description(t,a){return t===void 0&&a===void 0?this._description:(this._description=t,a&&(this._argsDescription=a),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===void 0)return this._aliases[0];let a=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(a=this.commands[this.commands.length-1]),t===a._name)throw new Error("Command alias can't be the same as its name");const f=this.parent?._findCommand(t);if(f){const d=[f.name()].concat(f.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${d}'`)}return a._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(a=>this.alias(a)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;const a=this.registeredArguments.map(f=>s(f));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?a:[]).join(" ")}return this._usage=t,this}name(t){return t===void 0?this._name:(this._name=t,this)}helpGroup(t){return t===void 0?this._helpGroupHeading??"":(this._helpGroupHeading=t,this)}commandsGroup(t){return t===void 0?this._defaultCommandGroup??"":(this._defaultCommandGroup=t,this)}optionsGroup(t){return t===void 0?this._defaultOptionGroup??"":(this._defaultOptionGroup=t,this)}_initOptionGroup(t){this._defaultOptionGroup&&!t.helpGroupHeading&&t.helpGroup(this._defaultOptionGroup)}_initCommandGroup(t){this._defaultCommandGroup&&!t.helpGroup()&&t.helpGroup(this._defaultCommandGroup)}nameFromFilename(t){return this._name=l.basename(t,l.extname(t)),this}executableDir(t){return t===void 0?this._executableDir:(this._executableDir=t,this)}helpInformation(t){const a=this.createHelp(),f=this._getOutputContext(t);a.prepareContext({error:f.error,helpWidth:f.helpWidth,outputHasColors:f.hasColors});const d=a.formatHelp(this,a);return f.hasColors?d:this._outputConfiguration.stripColor(d)}_getOutputContext(t){t=t||{};const a=!!t.error;let f,d,g;return a?(f=A=>this._outputConfiguration.writeErr(A),d=this._outputConfiguration.getErrHasColors(),g=this._outputConfiguration.getErrHelpWidth()):(f=A=>this._outputConfiguration.writeOut(A),d=this._outputConfiguration.getOutHasColors(),g=this._outputConfiguration.getOutHelpWidth()),{error:a,write:A=>(d||(A=this._outputConfiguration.stripColor(A)),f(A)),hasColors:d,helpWidth:g}}outputHelp(t){let a;typeof t=="function"&&(a=t,t=void 0);const f=this._getOutputContext(t),d={error:f.error,write:f.write,command:this};this._getCommandAndAncestors().reverse().forEach(_=>_.emit("beforeAllHelp",d)),this.emit("beforeHelp",d);let g=this.helpInformation({error:f.error});if(a&&(g=a(g),typeof g!="string"&&!Buffer.isBuffer(g)))throw new Error("outputHelp callback must return a string or a Buffer");f.write(g),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",d),this._getCommandAndAncestors().forEach(_=>_.emit("afterAllHelp",d))}helpOption(t,a){return typeof t=="boolean"?(t?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(t??"-h, --help",a??"display help for command"),(t||a)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this._initOptionGroup(t),this}help(t){this.outputHelp(t);let a=Number(o.exitCode??0);a===0&&t&&typeof t!="function"&&t.error&&(a=1),this._exit(a,"commander.help","(outputHelp)")}addHelpText(t,a){const f=["beforeAll","before","after","afterAll"];if(!f.includes(t))throw new Error(`Unexpected value for position to addHelpText.
26
26
  Expecting one of '${f.join("', '")}'`);const d=`${t}Help`;return this.on(d,g=>{let _;typeof a=="function"?_=a({error:g.error,command:g.command}):_=a,_&&g.write(`${_}
27
- `)}),this}_outputHelpIfRequested(t){const a=this._getHelpOption();a&&t.find(f=>a.is(f))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function v(p){return p.map(t=>{if(!t.startsWith("--inspect"))return t;let a,f="127.0.0.1",d="9229",g;return(g=t.match(/^(--inspect(-brk)?)$/))!==null?a=g[1]:(g=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(a=g[1],/^\d+$/.test(g[3])?d=g[3]:f=g[3]):(g=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(a=g[1],f=g[3],d=g[4]),a&&d!=="0"?`${a}=${f}:${parseInt(d)+1}`:t})}function y(){if(o.env.NO_COLOR||o.env.FORCE_COLOR==="0"||o.env.FORCE_COLOR==="false")return!1;if(o.env.FORCE_COLOR||o.env.CLICOLOR_FORCE!==void 0)return!0}e.Command=C,e.useColor=y})),vr=T.__commonJSMin((e=>{var{Argument:r}=st(),{Command:n}=yr(),{CommanderError:l,InvalidArgumentError:i}=Te(),{Help:o}=Jt(),{Option:D}=Yt();e.program=new n,e.createCommand=s=>new n(s),e.createOption=(s,u)=>new D(s,u),e.createArgument=(s,u)=>new r(s,u),e.Command=n,e.Option=D,e.Argument=r,e.Help=o,e.CommanderError=l,e.InvalidArgumentError=i,e.InvalidOptionArgumentError=i})),_r=T.__toESM(vr(),1),{program:te,createCommand:yi,createArgument:vi,createOption:_i,CommanderError:Ai,InvalidArgumentError:bi,InvalidOptionArgumentError:wi,Command:Bi,Argument:Si,Option:Ft,Help:Ar}=_r.default,br=T.__commonJSMin(((e,r)=>{r.exports=l;function n(o){return o instanceof Buffer?Buffer.from(o):new o.constructor(o.buffer.slice(),o.byteOffset,o.length)}function l(o){if(o=o||{},o.circles)return i(o);const D=new Map;if(D.set(Date,h=>new Date(h)),D.set(Map,(h,F)=>new Map(u(Array.from(h),F))),D.set(Set,(h,F)=>new Set(u(Array.from(h),F))),o.constructorHandlers)for(const h of o.constructorHandlers)D.set(h[0],h[1]);let s=null;return o.proto?m:c;function u(h,F){const E=Object.keys(h),C=new Array(E.length);for(let v=0;v<E.length;v++){const y=E[v],p=h[y];typeof p!="object"||p===null?C[y]=p:p.constructor!==Object&&(s=D.get(p.constructor))?C[y]=s(p,F):ArrayBuffer.isView(p)?C[y]=n(p):C[y]=F(p)}return C}function c(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return u(h,c);if(h.constructor!==Object&&(s=D.get(h.constructor)))return s(h,c);const F={};for(const E in h){if(Object.hasOwnProperty.call(h,E)===!1)continue;const C=h[E];typeof C!="object"||C===null?F[E]=C:C.constructor!==Object&&(s=D.get(C.constructor))?F[E]=s(C,c):ArrayBuffer.isView(C)?F[E]=n(C):F[E]=c(C)}return F}function m(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return u(h,m);if(h.constructor!==Object&&(s=D.get(h.constructor)))return s(h,m);const F={};for(const E in h){const C=h[E];typeof C!="object"||C===null?F[E]=C:C.constructor!==Object&&(s=D.get(C.constructor))?F[E]=s(C,m):ArrayBuffer.isView(C)?F[E]=n(C):F[E]=m(C)}return F}}function i(o){const D=[],s=[],u=new Map;if(u.set(Date,E=>new Date(E)),u.set(Map,(E,C)=>new Map(m(Array.from(E),C))),u.set(Set,(E,C)=>new Set(m(Array.from(E),C))),o.constructorHandlers)for(const E of o.constructorHandlers)u.set(E[0],E[1]);let c=null;return o.proto?F:h;function m(E,C){const v=Object.keys(E),y=new Array(v.length);for(let p=0;p<v.length;p++){const t=v[p],a=E[t];if(typeof a!="object"||a===null)y[t]=a;else if(a.constructor!==Object&&(c=u.get(a.constructor)))y[t]=c(a,C);else if(ArrayBuffer.isView(a))y[t]=n(a);else{const f=D.indexOf(a);f!==-1?y[t]=s[f]:y[t]=C(a)}}return y}function h(E){if(typeof E!="object"||E===null)return E;if(Array.isArray(E))return m(E,h);if(E.constructor!==Object&&(c=u.get(E.constructor)))return c(E,h);const C={};D.push(E),s.push(C);for(const v in E){if(Object.hasOwnProperty.call(E,v)===!1)continue;const y=E[v];if(typeof y!="object"||y===null)C[v]=y;else if(y.constructor!==Object&&(c=u.get(y.constructor)))C[v]=c(y,h);else if(ArrayBuffer.isView(y))C[v]=n(y);else{const p=D.indexOf(y);p!==-1?C[v]=s[p]:C[v]=h(y)}}return D.pop(),s.pop(),C}function F(E){if(typeof E!="object"||E===null)return E;if(Array.isArray(E))return m(E,F);if(E.constructor!==Object&&(c=u.get(E.constructor)))return c(E,F);const C={};D.push(E),s.push(C);for(const v in E){const y=E[v];if(typeof y!="object"||y===null)C[v]=y;else if(y.constructor!==Object&&(c=u.get(y.constructor)))C[v]=c(y,F);else if(ArrayBuffer.isView(y))C[v]=n(y);else{const p=D.indexOf(y);p!==-1?C[v]=s[p]:C[v]=F(y)}}return D.pop(),s.pop(),C}}})),wr=T.__commonJSMin(((e,r)=>{var n=require("constants"),l=process.cwd,i=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=l.call(process)),i};try{process.cwd()}catch{}if(typeof process.chdir=="function"){var D=process.chdir;process.chdir=function(u){i=null,D.call(process,u)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,D)}r.exports=s;function s(u){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&c(u),u.lutimes||m(u),u.chown=E(u.chown),u.fchown=E(u.fchown),u.lchown=E(u.lchown),u.chmod=h(u.chmod),u.fchmod=h(u.fchmod),u.lchmod=h(u.lchmod),u.chownSync=C(u.chownSync),u.fchownSync=C(u.fchownSync),u.lchownSync=C(u.lchownSync),u.chmodSync=F(u.chmodSync),u.fchmodSync=F(u.fchmodSync),u.lchmodSync=F(u.lchmodSync),u.stat=v(u.stat),u.fstat=v(u.fstat),u.lstat=v(u.lstat),u.statSync=y(u.statSync),u.fstatSync=y(u.fstatSync),u.lstatSync=y(u.lstatSync),u.chmod&&!u.lchmod&&(u.lchmod=function(t,a,f){f&&process.nextTick(f)},u.lchmodSync=function(){}),u.chown&&!u.lchown&&(u.lchown=function(t,a,f,d){d&&process.nextTick(d)},u.lchownSync=function(){}),o==="win32"&&(u.rename=typeof u.rename!="function"?u.rename:(function(t){function a(f,d,g){var _=Date.now(),A=0;t(f,d,function b(S){if(S&&(S.code==="EACCES"||S.code==="EPERM"||S.code==="EBUSY")&&Date.now()-_<6e4){setTimeout(function(){u.stat(d,function(B,O){B&&B.code==="ENOENT"?t(f,d,b):g(S)})},A),A<100&&(A+=10);return}g&&g(S)})}return Object.setPrototypeOf&&Object.setPrototypeOf(a,t),a})(u.rename)),u.read=typeof u.read!="function"?u.read:(function(t){function a(f,d,g,_,A,b){var S;if(b&&typeof b=="function"){var B=0;S=function(O,U,J){if(O&&O.code==="EAGAIN"&&B<10)return B++,t.call(u,f,d,g,_,A,S);b.apply(this,arguments)}}return t.call(u,f,d,g,_,A,S)}return Object.setPrototypeOf&&Object.setPrototypeOf(a,t),a})(u.read),u.readSync=typeof u.readSync!="function"?u.readSync:(function(t){return function(a,f,d,g,_){for(var A=0;;)try{return t.call(u,a,f,d,g,_)}catch(b){if(b.code==="EAGAIN"&&A<10){A++;continue}throw b}}})(u.readSync);function c(t){t.lchmod=function(a,f,d){t.open(a,n.O_WRONLY|n.O_SYMLINK,f,function(g,_){if(g){d&&d(g);return}t.fchmod(_,f,function(A){t.close(_,function(b){d&&d(A||b)})})})},t.lchmodSync=function(a,f){var d=t.openSync(a,n.O_WRONLY|n.O_SYMLINK,f),g=!0,_;try{_=t.fchmodSync(d,f),g=!1}finally{if(g)try{t.closeSync(d)}catch{}else t.closeSync(d)}return _}}function m(t){n.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(a,f,d,g){t.open(a,n.O_SYMLINK,function(_,A){if(_){g&&g(_);return}t.futimes(A,f,d,function(b){t.close(A,function(S){g&&g(b||S)})})})},t.lutimesSync=function(a,f,d){var g=t.openSync(a,n.O_SYMLINK),_,A=!0;try{_=t.futimesSync(g,f,d),A=!1}finally{if(A)try{t.closeSync(g)}catch{}else t.closeSync(g)}return _}):t.futimes&&(t.lutimes=function(a,f,d,g){g&&process.nextTick(g)},t.lutimesSync=function(){})}function h(t){return t&&function(a,f,d){return t.call(u,a,f,function(g){p(g)&&(g=null),d&&d.apply(this,arguments)})}}function F(t){return t&&function(a,f){try{return t.call(u,a,f)}catch(d){if(!p(d))throw d}}}function E(t){return t&&function(a,f,d,g){return t.call(u,a,f,d,function(_){p(_)&&(_=null),g&&g.apply(this,arguments)})}}function C(t){return t&&function(a,f,d){try{return t.call(u,a,f,d)}catch(g){if(!p(g))throw g}}}function v(t){return t&&function(a,f,d){typeof f=="function"&&(d=f,f=null);function g(_,A){A&&(A.uid<0&&(A.uid+=4294967296),A.gid<0&&(A.gid+=4294967296)),d&&d.apply(this,arguments)}return f?t.call(u,a,f,g):t.call(u,a,g)}}function y(t){return t&&function(a,f){var d=f?t.call(u,a,f):t.call(u,a);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function p(t){return!t||t.code==="ENOSYS"||(!process.getuid||process.getuid()!==0)&&(t.code==="EINVAL"||t.code==="EPERM")}}})),Br=T.__commonJSMin(((e,r)=>{var n=require("stream").Stream;r.exports=l;function l(i){return{ReadStream:o,WriteStream:D};function o(s,u){if(!(this instanceof o))return new o(s,u);n.call(this);var c=this;this.path=s,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,u=u||{};for(var m=Object.keys(u),h=0,F=m.length;h<F;h++){var E=m[h];this[E]=u[E]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){c._read()});return}i.open(this.path,this.flags,this.mode,function(C,v){if(C){c.emit("error",C),c.readable=!1;return}c.fd=v,c.emit("open",v),c._read()})}function D(s,u){if(!(this instanceof D))return new D(s,u);n.call(this),this.path=s,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,u=u||{};for(var c=Object.keys(u),m=0,h=c.length;m<h;m++){var F=c[m];this[F]=u[F]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}})),Sr=T.__commonJSMin(((e,r)=>{r.exports=l;var n=Object.getPrototypeOf||function(i){return i.__proto__};function l(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var o={__proto__:n(i)};else var o=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(D){Object.defineProperty(o,D,Object.getOwnPropertyDescriptor(i,D))}),o}})),Or=T.__commonJSMin(((e,r)=>{var n=require("fs"),l=wr(),i=Br(),o=Sr(),D=require("util"),s,u;typeof Symbol=="function"&&typeof Symbol.for=="function"?(s=Symbol.for("graceful-fs.queue"),u=Symbol.for("graceful-fs.previous")):(s="___graceful-fs.queue",u="___graceful-fs.previous");function c(){}function m(p,t){Object.defineProperty(p,s,{get:function(){return t}})}var h=c;D.debuglog?h=D.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var p=D.format.apply(D,arguments);p="GFS4: "+p.split(/\n/).join(`
28
- GFS4: `),console.error(p)}),n[s]||(m(n,global[s]||[]),n.close=(function(p){function t(a,f){return p.call(n,a,function(d){d||v(),typeof f=="function"&&f.apply(this,arguments)})}return Object.defineProperty(t,u,{value:p}),t})(n.close),n.closeSync=(function(p){function t(a){p.apply(n,arguments),v()}return Object.defineProperty(t,u,{value:p}),t})(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){h(n[s]),require("assert").equal(n[s].length,0)})),global[s]||m(global,n[s]),r.exports=F(o(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(r.exports=F(n),n.__patched=!0);function F(p){l(p),p.gracefulify=F,p.createReadStream=je,p.createWriteStream=Le;var t=p.readFile;p.readFile=a;function a(w,R,x){return typeof R=="function"&&(x=R,R=null),M(w,R,x);function M(q,L,N,k){return t(q,L,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?E([M,[q,L,N],P,k||Date.now(),Date.now()]):typeof N=="function"&&N.apply(this,arguments)})}}var f=p.writeFile;p.writeFile=d;function d(w,R,x,M){return typeof x=="function"&&(M=x,x=null),q(w,R,x,M);function q(L,N,k,P,H){return f(L,N,k,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?E([q,[L,N,k,P],I,H||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var g=p.appendFile;g&&(p.appendFile=_);function _(w,R,x,M){return typeof x=="function"&&(M=x,x=null),q(w,R,x,M);function q(L,N,k,P,H){return g(L,N,k,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?E([q,[L,N,k,P],I,H||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var A=p.copyFile;A&&(p.copyFile=b);function b(w,R,x,M){return typeof x=="function"&&(M=x,x=0),q(w,R,x,M);function q(L,N,k,P,H){return A(L,N,k,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?E([q,[L,N,k,P],I,H||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var S=p.readdir;p.readdir=O;var B=/^v[0-5]\./;function O(w,R,x){typeof R=="function"&&(x=R,R=null);var M=B.test(process.version)?function(N,k,P,H){return S(N,q(N,k,P,H))}:function(N,k,P,H){return S(N,k,q(N,k,P,H))};return M(w,R,x);function q(L,N,k,P){return function(H,I){H&&(H.code==="EMFILE"||H.code==="ENFILE")?E([M,[L,N,k],H,P||Date.now(),Date.now()]):(I&&I.sort&&I.sort(),typeof k=="function"&&k.call(this,H,I))}}}if(process.version.substr(0,4)==="v0.8"){var U=i(p);K=U.ReadStream,z=U.WriteStream}var J=p.ReadStream;J&&(K.prototype=Object.create(J.prototype),K.prototype.open=Ne);var Y=p.WriteStream;Y&&(z.prototype=Object.create(Y.prototype),z.prototype.open=ke),Object.defineProperty(p,"ReadStream",{get:function(){return K},set:function(w){K=w},enumerable:!0,configurable:!0}),Object.defineProperty(p,"WriteStream",{get:function(){return z},set:function(w){z=w},enumerable:!0,configurable:!0});var Ee=K;Object.defineProperty(p,"FileReadStream",{get:function(){return Ee},set:function(w){Ee=w},enumerable:!0,configurable:!0});var Ce=z;Object.defineProperty(p,"FileWriteStream",{get:function(){return Ce},set:function(w){Ce=w},enumerable:!0,configurable:!0});function K(w,R){return this instanceof K?(J.apply(this,arguments),this):K.apply(Object.create(K.prototype),arguments)}function Ne(){var w=this;fe(w.path,w.flags,w.mode,function(R,x){R?(w.autoClose&&w.destroy(),w.emit("error",R)):(w.fd=x,w.emit("open",x),w.read())})}function z(w,R){return this instanceof z?(Y.apply(this,arguments),this):z.apply(Object.create(z.prototype),arguments)}function ke(){var w=this;fe(w.path,w.flags,w.mode,function(R,x){R?(w.destroy(),w.emit("error",R)):(w.fd=x,w.emit("open",x))})}function je(w,R){return new p.ReadStream(w,R)}function Le(w,R){return new p.WriteStream(w,R)}var Me=p.open;p.open=fe;function fe(w,R,x,M){return typeof x=="function"&&(M=x,x=null),q(w,R,x,M);function q(L,N,k,P,H){return Me(L,N,k,function(I,gr){I&&(I.code==="EMFILE"||I.code==="ENFILE")?E([q,[L,N,k,P],I,H||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}return p}function E(p){h("ENQUEUE",p[0].name,p[1]),n[s].push(p),y()}var C;function v(){for(var p=Date.now(),t=0;t<n[s].length;++t)n[s][t].length>2&&(n[s][t][3]=p,n[s][t][4]=p);y()}function y(){if(clearTimeout(C),C=void 0,n[s].length!==0){var p=n[s].shift(),t=p[0],a=p[1],f=p[2],d=p[3],g=p[4];if(d===void 0)h("RETRY",t.name,a),t.apply(null,a);else if(Date.now()-d>=6e4){h("TIMEOUT",t.name,a);var _=a.pop();typeof _=="function"&&_.call(null,f)}else{var A=Date.now()-g,b=Math.max(g-d,1);A>=Math.min(b*1.2,100)?(h("RETRY",t.name,a),t.apply(null,a.concat([d]))):n[s].push(p)}C===void 0&&(C=setTimeout(y,0))}}})),Je=T.__toESM(W.require_semver(),1),xr=T.__toESM(br(),1),Se=T.__toESM(Or(),1),ce=Ge.default.homedir(),{env:de}=process,gt=de.XDG_DATA_HOME||(ce?Fe.default.join(ce,".local","share"):void 0),Oe=de.XDG_CONFIG_HOME||(ce?Fe.default.join(ce,".config"):void 0),Oi=de.XDG_STATE_HOME||(ce?Fe.default.join(ce,".local","state"):void 0),xi=de.XDG_CACHE_HOME||(ce?Fe.default.join(ce,".cache"):void 0),Ti=de.XDG_RUNTIME_DIR||void 0,Tr=(de.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");gt&&Tr.unshift(gt);var Rr=(de.XDG_CONFIG_DIRS||"/etc/xdg").split(":");Oe&&Rr.unshift(Oe);var se=(e,r)=>{const{onError:n}=r;return function(...i){return e.apply(void 0,i).catch(n)}},oe=(e,r)=>{const{onError:n}=r;return function(...i){try{return e.apply(void 0,i)}catch(o){return n(o)}}},ae=(e,r)=>{const{isRetriable:n}=r;return function(i){const{timeout:o}=i,D=i.interval??250,s=Date.now()+o;return function u(...c){return e.apply(void 0,c).catch(m=>{if(!n(m)||Date.now()>=s)throw m;const h=Math.round(D*Math.random());return h>0?new Promise(F=>setTimeout(F,h)).then(()=>u.apply(void 0,c)):u.apply(void 0,c)})}}},De=(e,r)=>{const{isRetriable:n}=r;return function(i){const{timeout:o}=i,D=Date.now()+o;return function(...u){for(;;)try{return e.apply(void 0,u)}catch(c){if(!n(c)||Date.now()>=D)throw c;continue}}}},me={isChangeErrorOk:e=>{if(!me.isNodeError(e))return!1;const{code:r}=e;return r==="ENOSYS"||!$r&&(r==="EINVAL"||r==="EPERM")},isNodeError:e=>e instanceof Error,isRetriableError:e=>{if(!me.isNodeError(e))return!1;const{code:r}=e;return r==="EMFILE"||r==="ENFILE"||r==="EAGAIN"||r==="EBUSY"||r==="EACCESS"||r==="EACCES"||r==="EACCS"||r==="EPERM"},onChangeError:e=>{if(!me.isNodeError(e))throw e;if(!me.isChangeErrorOk(e))throw e}},be={onError:me.onChangeError},re={onError:()=>{}},$r=$.default.getuid?!$.default.getuid():!1,Q={isRetriable:me.isRetriableError},Z={attempt:{chmod:se((0,X.promisify)(j.default.chmod),be),chown:se((0,X.promisify)(j.default.chown),be),close:se((0,X.promisify)(j.default.close),re),fsync:se((0,X.promisify)(j.default.fsync),re),mkdir:se((0,X.promisify)(j.default.mkdir),re),realpath:se((0,X.promisify)(j.default.realpath),re),stat:se((0,X.promisify)(j.default.stat),re),unlink:se((0,X.promisify)(j.default.unlink),re),chmodSync:oe(j.default.chmodSync,be),chownSync:oe(j.default.chownSync,be),closeSync:oe(j.default.closeSync,re),existsSync:oe(j.default.existsSync,re),fsyncSync:oe(j.default.fsync,re),mkdirSync:oe(j.default.mkdirSync,re),realpathSync:oe(j.default.realpathSync,re),statSync:oe(j.default.statSync,re),unlinkSync:oe(j.default.unlinkSync,re)},retry:{close:ae((0,X.promisify)(j.default.close),Q),fsync:ae((0,X.promisify)(j.default.fsync),Q),open:ae((0,X.promisify)(j.default.open),Q),readFile:ae((0,X.promisify)(j.default.readFile),Q),rename:ae((0,X.promisify)(j.default.rename),Q),stat:ae((0,X.promisify)(j.default.stat),Q),write:ae((0,X.promisify)(j.default.write),Q),writeFile:ae((0,X.promisify)(j.default.writeFile),Q),closeSync:De(j.default.closeSync,Q),fsyncSync:De(j.default.fsyncSync,Q),openSync:De(j.default.openSync,Q),readFileSync:De(j.default.readFileSync,Q),renameSync:De(j.default.renameSync,Q),statSync:De(j.default.statSync,Q),writeSync:De(j.default.writeSync,Q),writeFileSync:De(j.default.writeFileSync,Q)}};var Pr={},Ir=$.default.geteuid?$.default.geteuid():-1,Nr=$.default.getegid?$.default.getegid():-1;var kr=!!$.default.getuid,Ri=$.default.getuid?!$.default.getuid():!1,jr=e=>e instanceof Error&&"code"in e,Et=e=>typeof e=="string",qe=e=>e===void 0,Lr=$.default.platform==="linux",zt=$.default.platform==="win32",at=["SIGHUP","SIGINT","SIGTERM"];zt||at.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");Lr&&at.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var Mr=class{constructor(){this.callbacks=new Set,this.exited=!1,this.exit=e=>{if(!this.exited){this.exited=!0;for(const r of this.callbacks)r();e&&(zt&&e!=="SIGINT"&&e!=="SIGTERM"&&e!=="SIGKILL"?$.default.kill($.default.pid,"SIGTERM"):$.default.kill($.default.pid,e))}},this.hook=()=>{$.default.once("exit",()=>this.exit());for(const e of at)try{$.default.once(e,()=>this.exit(e))}catch{}},this.register=e=>(this.callbacks.add(e),()=>{this.callbacks.delete(e)}),this.hook()}},qr=new Mr,Hr=qr.register,ee={store:{},create:e=>{const r=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6);return`${e}${`.tmp-${Date.now().toString().slice(-10)}${r}`}`},get:(e,r,n=!0)=>{const l=ee.truncate(r(e));return l in ee.store?ee.get(e,r,n):(ee.store[l]=n,[l,()=>delete ee.store[l]])},purge:e=>{ee.store[e]&&(delete ee.store[e],Z.attempt.unlink(e))},purgeSync:e=>{ee.store[e]&&(delete ee.store[e],Z.attempt.unlinkSync(e))},purgeSyncAll:()=>{for(const e in ee.store)ee.purgeSync(e)},truncate:e=>{const r=V.default.basename(e);if(r.length<=128)return e;const n=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(r);if(!n)return e;const l=r.length-128;return`${e.slice(0,-r.length)}${n[1]}${n[2].slice(0,-l)}${n[3]}`}};Hr(ee.purgeSyncAll);function Ye(e,r,n=Pr){if(Et(n))return Ye(e,r,{encoding:n});const l={timeout:n.timeout??1e3};let i=null,o=null,D=null;try{const s=Z.attempt.realpathSync(e),u=!!s;e=s||e,[o,i]=ee.get(e,n.tmpCreate||ee.create,n.tmpPurge!==!1);const c=kr&&qe(n.chown),m=qe(n.mode);if(u&&(c||m)){const h=Z.attempt.statSync(e);h&&(n={...n},c&&(n.chown={uid:h.uid,gid:h.gid}),m&&(n.mode=h.mode))}if(!u){const h=V.default.dirname(e);Z.attempt.mkdirSync(h,{mode:511,recursive:!0})}D=Z.retry.openSync(l)(o,"w",n.mode||438),n.tmpCreated&&n.tmpCreated(o),Et(r)?Z.retry.writeSync(l)(D,r,0,n.encoding||"utf8"):qe(r)||Z.retry.writeSync(l)(D,r,0,r.length,0),n.fsync!==!1&&(n.fsyncWait!==!1?Z.retry.fsyncSync(l)(D):Z.attempt.fsync(D)),Z.retry.closeSync(l)(D),D=null,n.chown&&(n.chown.uid!==Ir||n.chown.gid!==Nr)&&Z.attempt.chownSync(o,n.chown.uid,n.chown.gid),n.mode&&n.mode!==438&&Z.attempt.chmodSync(o,n.mode);try{Z.retry.renameSync(l)(o,e)}catch(h){if(!jr(h)||h.code!=="ENAMETOOLONG")throw h;Z.retry.renameSync(l)(o,ee.truncate(e))}i(),o=null}finally{D&&Z.attempt.closeSync(D),o&&ee.purge(o)}}var pe=e=>{const r=typeof e;return e!==null&&(r==="object"||r==="function")},He=new Set(["__proto__","prototype","constructor"]),Wr=new Set("0123456789");function Re(e){const r=[];let n="",l="start",i=!1;for(const o of e)switch(o){case"\\":if(l==="index")throw new Error("Invalid character in an index");if(l==="indexEnd")throw new Error("Invalid character after an index");i&&(n+=o),l="property",i=!i;break;case".":if(l==="index")throw new Error("Invalid character in an index");if(l==="indexEnd"){l="property";break}if(i){i=!1,n+=o;break}if(He.has(n))return[];r.push(n),n="",l="property";break;case"[":if(l==="index")throw new Error("Invalid character in an index");if(l==="indexEnd"){l="index";break}if(i){i=!1,n+=o;break}if(l==="property"){if(He.has(n))return[];r.push(n),n=""}l="index";break;case"]":if(l==="index"){r.push(Number.parseInt(n,10)),n="",l="indexEnd";break}if(l==="indexEnd")throw new Error("Invalid character after an index");default:if(l==="index"&&!Wr.has(o))throw new Error("Invalid character in an index");if(l==="indexEnd")throw new Error("Invalid character after an index");l==="start"&&(l="property"),i&&(i=!1,n+="\\"),n+=o}switch(i&&(n+="\\"),l){case"property":if(He.has(n))return[];r.push(n);break;case"index":throw new Error("Index was not closed");case"start":r.push("");break}return r}function Dt(e,r){if(typeof r!="number"&&Array.isArray(e)){const n=Number.parseInt(r,10);return Number.isInteger(n)&&e[n]===e[r]}return!1}function Xt(e,r){if(Dt(e,r))throw new Error("Cannot use string index")}function Vr(e,r,n){if(!pe(e)||typeof r!="string")return n===void 0?e:n;const l=Re(r);if(l.length===0)return n;for(let i=0;i<l.length;i++){const o=l[i];if(Dt(e,o)?e=i===l.length-1?void 0:null:e=e[o],e==null){if(i!==l.length-1)return n;break}}return e===void 0?n:e}function Ct(e,r,n){if(!pe(e)||typeof r!="string")return e;const l=e,i=Re(r);for(let o=0;o<i.length;o++){const D=i[o];Xt(e,D),o===i.length-1?e[D]=n:pe(e[D])||(e[D]=typeof i[o+1]=="number"?[]:{}),e=e[D]}return l}function Ur(e,r){if(!pe(e)||typeof r!="string")return!1;const n=Re(r);for(let l=0;l<n.length;l++){const i=n[l];if(Xt(e,i),l===n.length-1)return delete e[i],!0;if(e=e[i],!pe(e))return!1}}function Gr(e,r){if(!pe(e)||typeof r!="string")return!1;const n=Re(r);if(n.length===0)return!1;for(const l of n){if(!pe(e)||!(l in e)||Dt(e,l))return!1;e=e[l]}return!0}function Jr(e,r){const n=r?V.default.join(e,"config.json"):V.default.join("configstore",`${e}.json`),l=Oe??Se.default.mkdtempSync(Se.default.realpathSync(ge.default.tmpdir())+V.default.sep);return V.default.join(l,n)}var Yr="You don't have access to this file.",Kr={mode:448,recursive:!0},yt={mode:384};function vt(e){throw e.code==="EACCES"&&(e.message=`${e.message}
29
- ${Yr}
30
- `),e}var zr=class{constructor(e,r,n={}){this._path=n.configPath??Jr(e,n.globalConfigPath),this._clearInvalidConfig=n.clearInvalidConfig??!0,r&&(this.all={...r,...this.all})}get all(){try{return JSON.parse(Se.default.readFileSync(this._path,"utf8"))}catch(e){if(e.code==="ENOENT")return{};if(e.name==="SyntaxError"){if(this._clearInvalidConfig)return Ye(this._path,"",yt),{};throw e}return vt(e),{}}}set all(e){try{Se.default.mkdirSync(V.default.dirname(this._path),Kr),Ye(this._path,JSON.stringify(e,void 0," "),yt)}catch(r){vt(r)}}get size(){return Object.keys(this.all||{}).length}get(e){return Vr(this.all,e)}set(e,r){const n=this.all;if(typeof e=="object"&&arguments.length===1)for(const l of Object.keys(e))Ct(n,l,e[l]);else Ct(n,e,r);this.all=n}has(e){return Gr(this.all,e)}delete(e){const r=this.all;Ur(r,e),this.all=r}clear(){this.all={}}get path(){return this._path}},Xr=T.__toESM(W.require_diff(),1),Qr=T.__toESM(W.require_gt(),1),Ke=class extends Error{response;request;options;constructor(e,r,n){const l=`${e.status||e.status===0?e.status:""} ${e.statusText??""}`.trim(),i=l?`status code ${l}`:"an unknown error";super(`Request failed with ${i}: ${r.method} ${r.url}`),this.name="HTTPError",this.response=e,this.request=r,this.options=n}},Qt=class extends Error{name="NonError";value;constructor(e){let r="Non-error value was thrown";try{typeof e=="string"?r=e:e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"&&(r=e.message)}catch{}super(r),this.value=e}},We=class extends Error{name="ForceRetryError";customDelay;code;customRequest;constructor(e){const r=e?.cause?e.cause instanceof Error?e.cause:new Qt(e.cause):void 0;super(e?.code?`Forced retry: ${e.code}`:"Forced retry",r?{cause:r}:void 0),this.customDelay=e?.delay,this.code=e?.code,this.customRequest=e?.request}},_t=(()=>{let e=!1,r=!1;const n=typeof globalThis.ReadableStream=="function",l=typeof globalThis.Request=="function";if(n&&l)try{r=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(i){if(i instanceof Error&&i.message==="unsupported BodyInit type")return!1;throw i}return e&&!r})(),Zr=typeof globalThis.AbortController=="function",Zt=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",eu=typeof globalThis.ReadableStream=="function",tu=typeof globalThis.FormData=="function",er=["get","post","put","patch","head","delete"],ru=()=>{};ru();var uu={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},At=2147483647,nu=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,tr=Symbol("stop"),rr=class{options;constructor(e){this.options=e}},iu=e=>new rr(e),ou={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},su={next:!0},au={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},Du=e=>{if(!e)return 0;if(e instanceof FormData){let r=0;for(const[n,l]of e)r+=nu,r+=new TextEncoder().encode(`Content-Disposition: form-data; name="${n}"`).length,r+=typeof l=="string"?new TextEncoder().encode(l).length:l.size;return r}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if(typeof e=="string")return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if(typeof e=="object"&&e!==null)try{const r=JSON.stringify(e);return new TextEncoder().encode(r).length}catch{return 0}return 0},ur=(e,r,n)=>{let l,i=0;return e.pipeThrough(new TransformStream({transform(o,D){if(D.enqueue(o),l){i+=l.byteLength;let s=r===0?0:i/r;s>=1&&(s=1-Number.EPSILON),n?.({percent:s,totalBytes:Math.max(r,i),transferredBytes:i},l)}l=o},flush(){l&&(i+=l.byteLength,n?.({percent:1,totalBytes:Math.max(r,i),transferredBytes:i},l))}}))},lu=(e,r)=>{if(!e.body)return e;if(e.status===204)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});const n=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(ur(e.body,n,r),{status:e.status,statusText:e.statusText,headers:e.headers})},cu=(e,r,n)=>{if(!e.body)return e;const l=Du(n??e.body);return new Request(e,{duplex:"half",body:ur(e.body,l,r)})},he=e=>e!==null&&typeof e=="object",we=(...e)=>{for(const r of e)if((!he(r)||Array.isArray(r))&&r!==void 0)throw new TypeError("The `options` argument must be an object");return lt({},...e)},nr=(e={},r={})=>{const n=new globalThis.Headers(e),l=r instanceof globalThis.Headers,i=new globalThis.Headers(r);for(const[o,D]of i.entries())l&&D==="undefined"||D===void 0?n.delete(o):n.set(o,D);return n};function Be(e,r,n){return Object.hasOwn(r,n)&&r[n]===void 0?[]:lt(e[n]??[],r[n]??[])}var ir=(e={},r={})=>({beforeRequest:Be(e,r,"beforeRequest"),beforeRetry:Be(e,r,"beforeRetry"),afterResponse:Be(e,r,"afterResponse"),beforeError:Be(e,r,"beforeError")}),fu=(e,r)=>{const n=new URLSearchParams;for(const l of[e,r])if(l!==void 0)if(l instanceof URLSearchParams)for(const[i,o]of l.entries())n.append(i,o);else if(Array.isArray(l))for(const i of l){if(!Array.isArray(i)||i.length!==2)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");n.append(String(i[0]),String(i[1]))}else if(he(l))for(const[i,o]of Object.entries(l))o!==void 0&&n.append(i,String(o));else{const i=new URLSearchParams(l);for(const[o,D]of i.entries())n.append(o,D)}return n},lt=(...e)=>{let r={},n={},l={},i;const o=[];for(const D of e)if(Array.isArray(D))Array.isArray(r)||(r=[]),r=[...r,...D];else if(he(D)){for(let[s,u]of Object.entries(D)){if(s==="signal"&&u instanceof globalThis.AbortSignal){o.push(u);continue}if(s==="context"){if(u!=null&&(!he(u)||Array.isArray(u)))throw new TypeError("The `context` option must be an object");r={...r,context:u==null?{}:{...r.context,...u}};continue}if(s==="searchParams"){u==null?i=void 0:i=i===void 0?u:fu(i,u);continue}he(u)&&s in r&&(u=lt(r[s],u)),r={...r,[s]:u}}he(D.hooks)&&(l=ir(l,D.hooks),r.hooks=l),he(D.headers)&&(n=nr(n,D.headers),r.headers=n)}return i!==void 0&&(r.searchParams=i),o.length>0&&(o.length===1?r.signal=o[0]:Zt?r.signal=AbortSignal.any(o):r.signal=o.at(-1)),r},hu=e=>er.includes(e)?e.toUpperCase():e,bt={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},pu=(e={})=>{if(typeof e=="number")return{...bt,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.methods&&=e.methods.map(n=>n.toLowerCase()),e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");const r=Object.fromEntries(Object.entries(e).filter(([,n])=>n!==void 0));return{...bt,...r}},ze=class extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}};async function du(e,r,n,l){return new Promise((i,o)=>{const D=setTimeout(()=>{n&&n.abort(),o(new ze(e))},l.timeout);l.fetch(e,r).then(i).catch(o).then(()=>{clearTimeout(D)})})}async function mu(e,{signal:r}){return new Promise((n,l)=>{r&&(r.throwIfAborted(),r.addEventListener("abort",i,{once:!0}));function i(){clearTimeout(o),l(r.reason)}const o=setTimeout(()=>{r?.removeEventListener("abort",i),n()},e)})}var Fu=(e,r)=>{const n={};for(const l in r)Object.hasOwn(r,l)&&!(l in au)&&!(l in ou)&&(!(l in e)||l in su)&&(n[l]=r[l]);return n},gu=e=>e===void 0?!1:Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:typeof e=="object"?Object.keys(e).length>0:typeof e=="string"?e.trim().length>0:!!e;function Eu(e){return e instanceof Ke||e?.name===Ke.name}function Cu(e){return e instanceof ze||e?.name===ze.name}var wt=class Xe{static create(r,n){const l=new Xe(r,n),i=async()=>{if(typeof l.#e.timeout=="number"&&l.#e.timeout>2147483647)throw new RangeError(`The \`timeout\` option cannot be greater than ${At}`);await Promise.resolve();let D=await l.#F();for(const s of l.#e.hooks.afterResponse){const u=l.#h(D.clone());let c;try{c=await s(l.request,l.#D(),u,{retryCount:l.#u})}catch(h){throw l.#i(u),l.#i(D),h}if(c instanceof rr)throw l.#i(u),l.#i(D),new We(c.options);const m=c instanceof globalThis.Response?c:D;u!==m&&l.#i(u),D!==m&&l.#i(D),D=m}if(l.#h(D),!D.ok&&(typeof l.#e.throwHttpErrors=="function"?l.#e.throwHttpErrors(D.status):l.#e.throwHttpErrors)){let s=new Ke(D,l.request,l.#D());for(const u of l.#e.hooks.beforeError)s=await u(s,{retryCount:l.#u});throw s}if(l.#e.onDownloadProgress){if(typeof l.#e.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!eu)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");const s=D.clone();return l.#i(D),lu(s,l.#e.onDownloadProgress)}return D},o=l.#p(i).finally(()=>{const D=l.#s;l.#c(D?.body??void 0),l.#c(l.request.body??void 0)});for(const[D,s]of Object.entries(uu))D==="bytes"&&typeof globalThis.Response?.prototype?.bytes!="function"||(o[D]=async()=>{l.request.headers.set("accept",l.request.headers.get("accept")||s);const u=await o;if(D==="json"){if(u.status===204)return"";const c=await u.text();return c===""?"":n.parseJson?n.parseJson(c):JSON.parse(c)}return u[D]()});return o}static#o(r){return r&&typeof r=="object"&&!Array.isArray(r)&&!(r instanceof URLSearchParams)?Object.fromEntries(Object.entries(r).filter(([,n])=>n!==void 0)):r}request;#r;#u=0;#t;#e;#s;#n;#a;constructor(r,n={}){if(this.#t=r,this.#e={...n,headers:nr(this.#t.headers,n.headers),hooks:ir({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},n.hooks),method:hu(n.method??this.#t.method??"GET"),prefixUrl:String(n.prefixUrl||""),retry:pu(n.retry),throwHttpErrors:n.throwHttpErrors??!0,timeout:n.timeout??1e4,fetch:n.fetch??globalThis.fetch.bind(globalThis),context:n.context??{}},typeof this.#t!="string"&&!(this.#t instanceof URL||this.#t instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this.#e.prefixUrl&&typeof this.#t=="string"){if(this.#t.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this.#e.prefixUrl.endsWith("/")||(this.#e.prefixUrl+="/"),this.#t=this.#e.prefixUrl+this.#t}Zr&&Zt&&(this.#n=this.#e.signal??this.#t.signal,this.#r=new globalThis.AbortController,this.#e.signal=this.#n?AbortSignal.any([this.#n,this.#r.signal]):this.#r.signal),_t&&(this.#e.duplex="half"),this.#e.json!==void 0&&(this.#e.body=this.#e.stringifyJson?.(this.#e.json)??JSON.stringify(this.#e.json),this.#e.headers.set("content-type",this.#e.headers.get("content-type")??"application/json"));const l=n.headers&&new globalThis.Headers(n.headers).has("content-type");if(this.#t instanceof globalThis.Request&&(tu&&this.#e.body instanceof globalThis.FormData||this.#e.body instanceof URLSearchParams)&&!l&&this.#e.headers.delete("content-type"),this.request=new globalThis.Request(this.#t,this.#e),gu(this.#e.searchParams)){const i="?"+(typeof this.#e.searchParams=="string"?this.#e.searchParams.replace(/^\?/,""):new URLSearchParams(Xe.#o(this.#e.searchParams)).toString()),o=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,i);this.request=new globalThis.Request(o,this.#e)}if(this.#e.onUploadProgress){if(typeof this.#e.onUploadProgress!="function")throw new TypeError("The `onUploadProgress` option must be a function");if(!_t)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#d(this.request,this.#e.body??void 0)}}#l(){const r=this.#e.retry.delay(this.#u);let n=r;this.#e.retry.jitter===!0?n=Math.random()*r:typeof this.#e.retry.jitter=="function"&&(n=this.#e.retry.jitter(r),(!Number.isFinite(n)||n<0)&&(n=r));const l=this.#e.retry.backoffLimit??Number.POSITIVE_INFINITY;return Math.min(l,n)}async#m(r){if(this.#u++,this.#u>this.#e.retry.limit)throw r;const n=r instanceof Error?r:new Qt(r);if(n instanceof We)return n.customDelay??this.#l();if(!this.#e.retry.methods.includes(this.request.method.toLowerCase()))throw r;if(this.#e.retry.shouldRetry!==void 0){const l=await this.#e.retry.shouldRetry({error:n,retryCount:this.#u});if(l===!1)throw r;if(l===!0)return this.#l()}if(Cu(r)&&!this.#e.retry.retryOnTimeout)throw r;if(Eu(r)){if(!this.#e.retry.statusCodes.includes(r.response.status))throw r;const l=r.response.headers.get("Retry-After")??r.response.headers.get("RateLimit-Reset")??r.response.headers.get("X-RateLimit-Retry-After")??r.response.headers.get("X-RateLimit-Reset")??r.response.headers.get("X-Rate-Limit-Reset");if(l&&this.#e.retry.afterStatusCodes.includes(r.response.status)){let i=Number(l)*1e3;Number.isNaN(i)?i=Date.parse(l)-Date.now():i>=Date.parse("2024-01-01")&&(i-=Date.now());const o=this.#e.retry.maxRetryAfter??i;return i<o?i:o}if(r.response.status===413)throw r}return this.#l()}#h(r){return this.#e.parseJson&&(r.json=async()=>this.#e.parseJson(await r.text())),r}#c(r){r&&r.cancel().catch(()=>{})}#i(r){this.#c(r.body??void 0)}async#p(r){try{return await r()}catch(n){const l=Math.min(await this.#m(n),At);if(this.#u<1)throw n;if(await mu(l,this.#n?{signal:this.#n}:{}),n instanceof We&&n.customRequest){const i=this.#e.signal?new globalThis.Request(n.customRequest,{signal:this.#e.signal}):new globalThis.Request(n.customRequest);this.#f(i)}for(const i of this.#e.hooks.beforeRetry){const o=await i({request:this.request,options:this.#D(),error:n,retryCount:this.#u});if(o instanceof globalThis.Request){this.#f(o);break}if(o instanceof globalThis.Response)return o;if(o===tr)return}return this.#p(r)}}async#F(){this.#r?.signal.aborted&&(this.#r=new globalThis.AbortController,this.#e.signal=this.#n?AbortSignal.any([this.#n,this.#r.signal]):this.#r.signal,this.request=new globalThis.Request(this.request,{signal:this.#e.signal}));for(const n of this.#e.hooks.beforeRequest){const l=await n(this.request,this.#D(),{retryCount:this.#u});if(l instanceof Response)return l;if(l instanceof globalThis.Request){this.#f(l);break}}const r=Fu(this.request,this.#e);return this.#s=this.request,this.request=this.#s.clone(),this.#e.timeout===!1?this.#e.fetch(this.#s,r):du(this.#s,r,this.#r,this.#e)}#D(){if(!this.#a){const{hooks:r,...n}=this.#e;this.#a=Object.freeze(n)}return this.#a}#f(r){this.#a=void 0,this.request=this.#d(r)}#d(r,n){return!this.#e.onUploadProgress||!r.body?r:cu(r,this.#e.onUploadProgress,n??this.#e.body??void 0)}},Qe=e=>{const r=(n,l)=>wt.create(n,we(e,l));for(const n of er)r[n]=(l,i)=>wt.create(l,we(e,i,{method:n}));return r.create=n=>Qe(we(n)),r.extend=n=>(typeof n=="function"&&(n=n(e??{})),Qe(we(e,n))),r.stop=tr,r.retry=iu,r},yu=Qe(),vu=T.__commonJSMin((e=>{e.parse=e.decode=i,e.stringify=e.encode=n,e.safe=D,e.unsafe=s;var r=typeof process<"u"&&process.platform==="win32"?`\r
27
+ `)}),this}_outputHelpIfRequested(t){const a=this._getHelpOption();a&&t.find(f=>a.is(f))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function v(p){return p.map(t=>{if(!t.startsWith("--inspect"))return t;let a,f="127.0.0.1",d="9229",g;return(g=t.match(/^(--inspect(-brk)?)$/))!==null?a=g[1]:(g=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(a=g[1],/^\d+$/.test(g[3])?d=g[3]:f=g[3]):(g=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(a=g[1],f=g[3],d=g[4]),a&&d!=="0"?`${a}=${f}:${parseInt(d)+1}`:t})}function y(){if(o.env.NO_COLOR||o.env.FORCE_COLOR==="0"||o.env.FORCE_COLOR==="false")return!1;if(o.env.FORCE_COLOR||o.env.CLICOLOR_FORCE!==void 0)return!0}e.Command=C,e.useColor=y})),yr=w.__commonJSMin((e=>{var{Argument:r}=ot(),{Command:n}=Cr(),{CommanderError:l,InvalidArgumentError:i}=xe(),{Help:o}=Gt(),{Option:D}=Jt();e.program=new n,e.createCommand=s=>new n(s),e.createOption=(s,u)=>new D(s,u),e.createArgument=(s,u)=>new r(s,u),e.Command=n,e.Option=D,e.Argument=r,e.Help=o,e.CommanderError=l,e.InvalidArgumentError=i,e.InvalidOptionArgumentError=i})),vr=w.__toESM(yr(),1),{program:ee,createCommand:Ei,createArgument:Ci,createOption:yi,CommanderError:vi,InvalidArgumentError:_i,InvalidOptionArgumentError:Ai,Command:bi,Argument:wi,Option:mt,Help:_r}=vr.default,Ar=w.__commonJSMin(((e,r)=>{r.exports=l;function n(o){return o instanceof Buffer?Buffer.from(o):new o.constructor(o.buffer.slice(),o.byteOffset,o.length)}function l(o){if(o=o||{},o.circles)return i(o);const D=new Map;if(D.set(Date,h=>new Date(h)),D.set(Map,(h,F)=>new Map(u(Array.from(h),F))),D.set(Set,(h,F)=>new Set(u(Array.from(h),F))),o.constructorHandlers)for(const h of o.constructorHandlers)D.set(h[0],h[1]);let s=null;return o.proto?m:c;function u(h,F){const E=Object.keys(h),C=new Array(E.length);for(let v=0;v<E.length;v++){const y=E[v],p=h[y];typeof p!="object"||p===null?C[y]=p:p.constructor!==Object&&(s=D.get(p.constructor))?C[y]=s(p,F):ArrayBuffer.isView(p)?C[y]=n(p):C[y]=F(p)}return C}function c(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return u(h,c);if(h.constructor!==Object&&(s=D.get(h.constructor)))return s(h,c);const F={};for(const E in h){if(Object.hasOwnProperty.call(h,E)===!1)continue;const C=h[E];typeof C!="object"||C===null?F[E]=C:C.constructor!==Object&&(s=D.get(C.constructor))?F[E]=s(C,c):ArrayBuffer.isView(C)?F[E]=n(C):F[E]=c(C)}return F}function m(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return u(h,m);if(h.constructor!==Object&&(s=D.get(h.constructor)))return s(h,m);const F={};for(const E in h){const C=h[E];typeof C!="object"||C===null?F[E]=C:C.constructor!==Object&&(s=D.get(C.constructor))?F[E]=s(C,m):ArrayBuffer.isView(C)?F[E]=n(C):F[E]=m(C)}return F}}function i(o){const D=[],s=[],u=new Map;if(u.set(Date,E=>new Date(E)),u.set(Map,(E,C)=>new Map(m(Array.from(E),C))),u.set(Set,(E,C)=>new Set(m(Array.from(E),C))),o.constructorHandlers)for(const E of o.constructorHandlers)u.set(E[0],E[1]);let c=null;return o.proto?F:h;function m(E,C){const v=Object.keys(E),y=new Array(v.length);for(let p=0;p<v.length;p++){const t=v[p],a=E[t];if(typeof a!="object"||a===null)y[t]=a;else if(a.constructor!==Object&&(c=u.get(a.constructor)))y[t]=c(a,C);else if(ArrayBuffer.isView(a))y[t]=n(a);else{const f=D.indexOf(a);f!==-1?y[t]=s[f]:y[t]=C(a)}}return y}function h(E){if(typeof E!="object"||E===null)return E;if(Array.isArray(E))return m(E,h);if(E.constructor!==Object&&(c=u.get(E.constructor)))return c(E,h);const C={};D.push(E),s.push(C);for(const v in E){if(Object.hasOwnProperty.call(E,v)===!1)continue;const y=E[v];if(typeof y!="object"||y===null)C[v]=y;else if(y.constructor!==Object&&(c=u.get(y.constructor)))C[v]=c(y,h);else if(ArrayBuffer.isView(y))C[v]=n(y);else{const p=D.indexOf(y);p!==-1?C[v]=s[p]:C[v]=h(y)}}return D.pop(),s.pop(),C}function F(E){if(typeof E!="object"||E===null)return E;if(Array.isArray(E))return m(E,F);if(E.constructor!==Object&&(c=u.get(E.constructor)))return c(E,F);const C={};D.push(E),s.push(C);for(const v in E){const y=E[v];if(typeof y!="object"||y===null)C[v]=y;else if(y.constructor!==Object&&(c=u.get(y.constructor)))C[v]=c(y,F);else if(ArrayBuffer.isView(y))C[v]=n(y);else{const p=D.indexOf(y);p!==-1?C[v]=s[p]:C[v]=F(y)}}return D.pop(),s.pop(),C}}})),br=w.__commonJSMin(((e,r)=>{var n=require("constants"),l=process.cwd,i=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=l.call(process)),i};try{process.cwd()}catch{}if(typeof process.chdir=="function"){var D=process.chdir;process.chdir=function(u){i=null,D.call(process,u)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,D)}r.exports=s;function s(u){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&c(u),u.lutimes||m(u),u.chown=E(u.chown),u.fchown=E(u.fchown),u.lchown=E(u.lchown),u.chmod=h(u.chmod),u.fchmod=h(u.fchmod),u.lchmod=h(u.lchmod),u.chownSync=C(u.chownSync),u.fchownSync=C(u.fchownSync),u.lchownSync=C(u.lchownSync),u.chmodSync=F(u.chmodSync),u.fchmodSync=F(u.fchmodSync),u.lchmodSync=F(u.lchmodSync),u.stat=v(u.stat),u.fstat=v(u.fstat),u.lstat=v(u.lstat),u.statSync=y(u.statSync),u.fstatSync=y(u.fstatSync),u.lstatSync=y(u.lstatSync),u.chmod&&!u.lchmod&&(u.lchmod=function(t,a,f){f&&process.nextTick(f)},u.lchmodSync=function(){}),u.chown&&!u.lchown&&(u.lchown=function(t,a,f,d){d&&process.nextTick(d)},u.lchownSync=function(){}),o==="win32"&&(u.rename=typeof u.rename!="function"?u.rename:(function(t){function a(f,d,g){var _=Date.now(),A=0;t(f,d,function b(O){if(O&&(O.code==="EACCES"||O.code==="EPERM"||O.code==="EBUSY")&&Date.now()-_<6e4){setTimeout(function(){u.stat(d,function(S,x){S&&S.code==="ENOENT"?t(f,d,b):g(O)})},A),A<100&&(A+=10);return}g&&g(O)})}return Object.setPrototypeOf&&Object.setPrototypeOf(a,t),a})(u.rename)),u.read=typeof u.read!="function"?u.read:(function(t){function a(f,d,g,_,A,b){var O;if(b&&typeof b=="function"){var S=0;O=function(x,V,G){if(x&&x.code==="EAGAIN"&&S<10)return S++,t.call(u,f,d,g,_,A,O);b.apply(this,arguments)}}return t.call(u,f,d,g,_,A,O)}return Object.setPrototypeOf&&Object.setPrototypeOf(a,t),a})(u.read),u.readSync=typeof u.readSync!="function"?u.readSync:(function(t){return function(a,f,d,g,_){for(var A=0;;)try{return t.call(u,a,f,d,g,_)}catch(b){if(b.code==="EAGAIN"&&A<10){A++;continue}throw b}}})(u.readSync);function c(t){t.lchmod=function(a,f,d){t.open(a,n.O_WRONLY|n.O_SYMLINK,f,function(g,_){if(g){d&&d(g);return}t.fchmod(_,f,function(A){t.close(_,function(b){d&&d(A||b)})})})},t.lchmodSync=function(a,f){var d=t.openSync(a,n.O_WRONLY|n.O_SYMLINK,f),g=!0,_;try{_=t.fchmodSync(d,f),g=!1}finally{if(g)try{t.closeSync(d)}catch{}else t.closeSync(d)}return _}}function m(t){n.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(a,f,d,g){t.open(a,n.O_SYMLINK,function(_,A){if(_){g&&g(_);return}t.futimes(A,f,d,function(b){t.close(A,function(O){g&&g(b||O)})})})},t.lutimesSync=function(a,f,d){var g=t.openSync(a,n.O_SYMLINK),_,A=!0;try{_=t.futimesSync(g,f,d),A=!1}finally{if(A)try{t.closeSync(g)}catch{}else t.closeSync(g)}return _}):t.futimes&&(t.lutimes=function(a,f,d,g){g&&process.nextTick(g)},t.lutimesSync=function(){})}function h(t){return t&&function(a,f,d){return t.call(u,a,f,function(g){p(g)&&(g=null),d&&d.apply(this,arguments)})}}function F(t){return t&&function(a,f){try{return t.call(u,a,f)}catch(d){if(!p(d))throw d}}}function E(t){return t&&function(a,f,d,g){return t.call(u,a,f,d,function(_){p(_)&&(_=null),g&&g.apply(this,arguments)})}}function C(t){return t&&function(a,f,d){try{return t.call(u,a,f,d)}catch(g){if(!p(g))throw g}}}function v(t){return t&&function(a,f,d){typeof f=="function"&&(d=f,f=null);function g(_,A){A&&(A.uid<0&&(A.uid+=4294967296),A.gid<0&&(A.gid+=4294967296)),d&&d.apply(this,arguments)}return f?t.call(u,a,f,g):t.call(u,a,g)}}function y(t){return t&&function(a,f){var d=f?t.call(u,a,f):t.call(u,a);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function p(t){return!t||t.code==="ENOSYS"||(!process.getuid||process.getuid()!==0)&&(t.code==="EINVAL"||t.code==="EPERM")}}})),wr=w.__commonJSMin(((e,r)=>{var n=require("stream").Stream;r.exports=l;function l(i){return{ReadStream:o,WriteStream:D};function o(s,u){if(!(this instanceof o))return new o(s,u);n.call(this);var c=this;this.path=s,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,u=u||{};for(var m=Object.keys(u),h=0,F=m.length;h<F;h++){var E=m[h];this[E]=u[E]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){c._read()});return}i.open(this.path,this.flags,this.mode,function(C,v){if(C){c.emit("error",C),c.readable=!1;return}c.fd=v,c.emit("open",v),c._read()})}function D(s,u){if(!(this instanceof D))return new D(s,u);n.call(this),this.path=s,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,u=u||{};for(var c=Object.keys(u),m=0,h=c.length;m<h;m++){var F=c[m];this[F]=u[F]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}})),Br=w.__commonJSMin(((e,r)=>{r.exports=l;var n=Object.getPrototypeOf||function(i){return i.__proto__};function l(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var o={__proto__:n(i)};else var o=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(D){Object.defineProperty(o,D,Object.getOwnPropertyDescriptor(i,D))}),o}})),Sr=w.__commonJSMin(((e,r)=>{var n=require("fs"),l=br(),i=wr(),o=Br(),D=require("util"),s,u;typeof Symbol=="function"&&typeof Symbol.for=="function"?(s=Symbol.for("graceful-fs.queue"),u=Symbol.for("graceful-fs.previous")):(s="___graceful-fs.queue",u="___graceful-fs.previous");function c(){}function m(p,t){Object.defineProperty(p,s,{get:function(){return t}})}var h=c;D.debuglog?h=D.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var p=D.format.apply(D,arguments);p="GFS4: "+p.split(/\n/).join(`
28
+ GFS4: `),console.error(p)}),n[s]||(m(n,global[s]||[]),n.close=(function(p){function t(a,f){return p.call(n,a,function(d){d||v(),typeof f=="function"&&f.apply(this,arguments)})}return Object.defineProperty(t,u,{value:p}),t})(n.close),n.closeSync=(function(p){function t(a){p.apply(n,arguments),v()}return Object.defineProperty(t,u,{value:p}),t})(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){h(n[s]),require("assert").equal(n[s].length,0)})),global[s]||m(global,n[s]),r.exports=F(o(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(r.exports=F(n),n.__patched=!0);function F(p){l(p),p.gracefulify=F,p.createReadStream=ke,p.createWriteStream=je;var t=p.readFile;p.readFile=a;function a(B,R,T){return typeof R=="function"&&(T=R,R=null),M(B,R,T);function M(q,L,N,k){return t(q,L,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?E([M,[q,L,N],P,k||Date.now(),Date.now()]):typeof N=="function"&&N.apply(this,arguments)})}}var f=p.writeFile;p.writeFile=d;function d(B,R,T,M){return typeof T=="function"&&(M=T,T=null),q(B,R,T,M);function q(L,N,k,P,H){return f(L,N,k,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?E([q,[L,N,k,P],I,H||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var g=p.appendFile;g&&(p.appendFile=_);function _(B,R,T,M){return typeof T=="function"&&(M=T,T=null),q(B,R,T,M);function q(L,N,k,P,H){return g(L,N,k,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?E([q,[L,N,k,P],I,H||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var A=p.copyFile;A&&(p.copyFile=b);function b(B,R,T,M){return typeof T=="function"&&(M=T,T=0),q(B,R,T,M);function q(L,N,k,P,H){return A(L,N,k,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?E([q,[L,N,k,P],I,H||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var O=p.readdir;p.readdir=x;var S=/^v[0-5]\./;function x(B,R,T){typeof R=="function"&&(T=R,R=null);var M=S.test(process.version)?function(N,k,P,H){return O(N,q(N,k,P,H))}:function(N,k,P,H){return O(N,k,q(N,k,P,H))};return M(B,R,T);function q(L,N,k,P){return function(H,I){H&&(H.code==="EMFILE"||H.code==="ENFILE")?E([M,[L,N,k],H,P||Date.now(),Date.now()]):(I&&I.sort&&I.sort(),typeof k=="function"&&k.call(this,H,I))}}}if(process.version.substr(0,4)==="v0.8"){var V=i(p);Y=V.ReadStream,K=V.WriteStream}var G=p.ReadStream;G&&(Y.prototype=Object.create(G.prototype),Y.prototype.open=Ie);var J=p.WriteStream;J&&(K.prototype=Object.create(J.prototype),K.prototype.open=Ne),Object.defineProperty(p,"ReadStream",{get:function(){return Y},set:function(B){Y=B},enumerable:!0,configurable:!0}),Object.defineProperty(p,"WriteStream",{get:function(){return K},set:function(B){K=B},enumerable:!0,configurable:!0});var ge=Y;Object.defineProperty(p,"FileReadStream",{get:function(){return ge},set:function(B){ge=B},enumerable:!0,configurable:!0});var Ee=K;Object.defineProperty(p,"FileWriteStream",{get:function(){return Ee},set:function(B){Ee=B},enumerable:!0,configurable:!0});function Y(B,R){return this instanceof Y?(G.apply(this,arguments),this):Y.apply(Object.create(Y.prototype),arguments)}function Ie(){var B=this;ce(B.path,B.flags,B.mode,function(R,T){R?(B.autoClose&&B.destroy(),B.emit("error",R)):(B.fd=T,B.emit("open",T),B.read())})}function K(B,R){return this instanceof K?(J.apply(this,arguments),this):K.apply(Object.create(K.prototype),arguments)}function Ne(){var B=this;ce(B.path,B.flags,B.mode,function(R,T){R?(B.destroy(),B.emit("error",R)):(B.fd=T,B.emit("open",T))})}function ke(B,R){return new p.ReadStream(B,R)}function je(B,R){return new p.WriteStream(B,R)}var Le=p.open;p.open=ce;function ce(B,R,T,M){return typeof T=="function"&&(M=T,T=null),q(B,R,T,M);function q(L,N,k,P,H){return Le(L,N,k,function(I,Fr){I&&(I.code==="EMFILE"||I.code==="ENFILE")?E([q,[L,N,k,P],I,H||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}return p}function E(p){h("ENQUEUE",p[0].name,p[1]),n[s].push(p),y()}var C;function v(){for(var p=Date.now(),t=0;t<n[s].length;++t)n[s][t].length>2&&(n[s][t][3]=p,n[s][t][4]=p);y()}function y(){if(clearTimeout(C),C=void 0,n[s].length!==0){var p=n[s].shift(),t=p[0],a=p[1],f=p[2],d=p[3],g=p[4];if(d===void 0)h("RETRY",t.name,a),t.apply(null,a);else if(Date.now()-d>=6e4){h("TIMEOUT",t.name,a);var _=a.pop();typeof _=="function"&&_.call(null,f)}else{var A=Date.now()-g,b=Math.max(g-d,1);A>=Math.min(b*1.2,100)?(h("RETRY",t.name,a),t.apply(null,a.concat([d]))):n[s].push(p)}C===void 0&&(C=setTimeout(y,0))}}})),Ge=w.__toESM(w.require_semver(),1),Or=w.__toESM(Ar(),1),Be=w.__toESM(Sr(),1),le=Ue.default.homedir(),{env:pe}=process,Ft=pe.XDG_DATA_HOME||(le?me.default.join(le,".local","share"):void 0),Se=pe.XDG_CONFIG_HOME||(le?me.default.join(le,".config"):void 0),Bi=pe.XDG_STATE_HOME||(le?me.default.join(le,".local","state"):void 0),Si=pe.XDG_CACHE_HOME||(le?me.default.join(le,".cache"):void 0),Oi=pe.XDG_RUNTIME_DIR||void 0,xr=(pe.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");Ft&&xr.unshift(Ft);var Tr=(pe.XDG_CONFIG_DIRS||"/etc/xdg").split(":");Se&&Tr.unshift(Se);var oe=(e,r)=>{const{onError:n}=r;return function(...i){return e.apply(void 0,i).catch(n)}},ie=(e,r)=>{const{onError:n}=r;return function(...i){try{return e.apply(void 0,i)}catch(o){return n(o)}}},se=(e,r)=>{const{isRetriable:n}=r;return function(i){const{timeout:o}=i,D=i.interval??250,s=Date.now()+o;return function u(...c){return e.apply(void 0,c).catch(m=>{if(!n(m)||Date.now()>=s)throw m;const h=Math.round(D*Math.random());return h>0?new Promise(F=>setTimeout(F,h)).then(()=>u.apply(void 0,c)):u.apply(void 0,c)})}}},ae=(e,r)=>{const{isRetriable:n}=r;return function(i){const{timeout:o}=i,D=Date.now()+o;return function(...u){for(;;)try{return e.apply(void 0,u)}catch(c){if(!n(c)||Date.now()>=D)throw c;continue}}}},de={isChangeErrorOk:e=>{if(!de.isNodeError(e))return!1;const{code:r}=e;return r==="ENOSYS"||!Rr&&(r==="EINVAL"||r==="EPERM")},isNodeError:e=>e instanceof Error,isRetriableError:e=>{if(!de.isNodeError(e))return!1;const{code:r}=e;return r==="EMFILE"||r==="ENFILE"||r==="EAGAIN"||r==="EBUSY"||r==="EACCESS"||r==="EACCES"||r==="EACCS"||r==="EPERM"},onChangeError:e=>{if(!de.isNodeError(e))throw e;if(!de.isChangeErrorOk(e))throw e}},Ae={onError:de.onChangeError},te={onError:()=>{}},Rr=$.default.getuid?!$.default.getuid():!1,X={isRetriable:de.isRetriableError},Q={attempt:{chmod:oe((0,z.promisify)(j.default.chmod),Ae),chown:oe((0,z.promisify)(j.default.chown),Ae),close:oe((0,z.promisify)(j.default.close),te),fsync:oe((0,z.promisify)(j.default.fsync),te),mkdir:oe((0,z.promisify)(j.default.mkdir),te),realpath:oe((0,z.promisify)(j.default.realpath),te),stat:oe((0,z.promisify)(j.default.stat),te),unlink:oe((0,z.promisify)(j.default.unlink),te),chmodSync:ie(j.default.chmodSync,Ae),chownSync:ie(j.default.chownSync,Ae),closeSync:ie(j.default.closeSync,te),existsSync:ie(j.default.existsSync,te),fsyncSync:ie(j.default.fsync,te),mkdirSync:ie(j.default.mkdirSync,te),realpathSync:ie(j.default.realpathSync,te),statSync:ie(j.default.statSync,te),unlinkSync:ie(j.default.unlinkSync,te)},retry:{close:se((0,z.promisify)(j.default.close),X),fsync:se((0,z.promisify)(j.default.fsync),X),open:se((0,z.promisify)(j.default.open),X),readFile:se((0,z.promisify)(j.default.readFile),X),rename:se((0,z.promisify)(j.default.rename),X),stat:se((0,z.promisify)(j.default.stat),X),write:se((0,z.promisify)(j.default.write),X),writeFile:se((0,z.promisify)(j.default.writeFile),X),closeSync:ae(j.default.closeSync,X),fsyncSync:ae(j.default.fsyncSync,X),openSync:ae(j.default.openSync,X),readFileSync:ae(j.default.readFileSync,X),renameSync:ae(j.default.renameSync,X),statSync:ae(j.default.statSync,X),writeSync:ae(j.default.writeSync,X),writeFileSync:ae(j.default.writeFileSync,X)}};var $r={},Pr=$.default.geteuid?$.default.geteuid():-1,Ir=$.default.getegid?$.default.getegid():-1;var Nr=!!$.default.getuid,xi=$.default.getuid?!$.default.getuid():!1,kr=e=>e instanceof Error&&"code"in e,gt=e=>typeof e=="string",Me=e=>e===void 0,jr=$.default.platform==="linux",Kt=$.default.platform==="win32",st=["SIGHUP","SIGINT","SIGTERM"];Kt||st.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");jr&&st.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var Lr=class{constructor(){this.callbacks=new Set,this.exited=!1,this.exit=e=>{if(!this.exited){this.exited=!0;for(const r of this.callbacks)r();e&&(Kt&&e!=="SIGINT"&&e!=="SIGTERM"&&e!=="SIGKILL"?$.default.kill($.default.pid,"SIGTERM"):$.default.kill($.default.pid,e))}},this.hook=()=>{$.default.once("exit",()=>this.exit());for(const e of st)try{$.default.once(e,()=>this.exit(e))}catch{}},this.register=e=>(this.callbacks.add(e),()=>{this.callbacks.delete(e)}),this.hook()}},Mr=new Lr,qr=Mr.register,Z={store:{},create:e=>{const r=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6);return`${e}${`.tmp-${Date.now().toString().slice(-10)}${r}`}`},get:(e,r,n=!0)=>{const l=Z.truncate(r(e));return l in Z.store?Z.get(e,r,n):(Z.store[l]=n,[l,()=>delete Z.store[l]])},purge:e=>{Z.store[e]&&(delete Z.store[e],Q.attempt.unlink(e))},purgeSync:e=>{Z.store[e]&&(delete Z.store[e],Q.attempt.unlinkSync(e))},purgeSyncAll:()=>{for(const e in Z.store)Z.purgeSync(e)},truncate:e=>{const r=W.default.basename(e);if(r.length<=128)return e;const n=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(r);if(!n)return e;const l=r.length-128;return`${e.slice(0,-r.length)}${n[1]}${n[2].slice(0,-l)}${n[3]}`}};qr(Z.purgeSyncAll);function Je(e,r,n=$r){if(gt(n))return Je(e,r,{encoding:n});const l={timeout:n.timeout??1e3};let i=null,o=null,D=null;try{const s=Q.attempt.realpathSync(e),u=!!s;e=s||e,[o,i]=Z.get(e,n.tmpCreate||Z.create,n.tmpPurge!==!1);const c=Nr&&Me(n.chown),m=Me(n.mode);if(u&&(c||m)){const h=Q.attempt.statSync(e);h&&(n={...n},c&&(n.chown={uid:h.uid,gid:h.gid}),m&&(n.mode=h.mode))}if(!u){const h=W.default.dirname(e);Q.attempt.mkdirSync(h,{mode:511,recursive:!0})}D=Q.retry.openSync(l)(o,"w",n.mode||438),n.tmpCreated&&n.tmpCreated(o),gt(r)?Q.retry.writeSync(l)(D,r,0,n.encoding||"utf8"):Me(r)||Q.retry.writeSync(l)(D,r,0,r.length,0),n.fsync!==!1&&(n.fsyncWait!==!1?Q.retry.fsyncSync(l)(D):Q.attempt.fsync(D)),Q.retry.closeSync(l)(D),D=null,n.chown&&(n.chown.uid!==Pr||n.chown.gid!==Ir)&&Q.attempt.chownSync(o,n.chown.uid,n.chown.gid),n.mode&&n.mode!==438&&Q.attempt.chmodSync(o,n.mode);try{Q.retry.renameSync(l)(o,e)}catch(h){if(!kr(h)||h.code!=="ENAMETOOLONG")throw h;Q.retry.renameSync(l)(o,Z.truncate(e))}i(),o=null}finally{D&&Q.attempt.closeSync(D),o&&Z.purge(o)}}var he=e=>{const r=typeof e;return e!==null&&(r==="object"||r==="function")},qe=new Set(["__proto__","prototype","constructor"]),Hr=new Set("0123456789");function Te(e){const r=[];let n="",l="start",i=!1;for(const o of e)switch(o){case"\\":if(l==="index")throw new Error("Invalid character in an index");if(l==="indexEnd")throw new Error("Invalid character after an index");i&&(n+=o),l="property",i=!i;break;case".":if(l==="index")throw new Error("Invalid character in an index");if(l==="indexEnd"){l="property";break}if(i){i=!1,n+=o;break}if(qe.has(n))return[];r.push(n),n="",l="property";break;case"[":if(l==="index")throw new Error("Invalid character in an index");if(l==="indexEnd"){l="index";break}if(i){i=!1,n+=o;break}if(l==="property"){if(qe.has(n))return[];r.push(n),n=""}l="index";break;case"]":if(l==="index"){r.push(Number.parseInt(n,10)),n="",l="indexEnd";break}if(l==="indexEnd")throw new Error("Invalid character after an index");default:if(l==="index"&&!Hr.has(o))throw new Error("Invalid character in an index");if(l==="indexEnd")throw new Error("Invalid character after an index");l==="start"&&(l="property"),i&&(i=!1,n+="\\"),n+=o}switch(i&&(n+="\\"),l){case"property":if(qe.has(n))return[];r.push(n);break;case"index":throw new Error("Index was not closed");case"start":r.push("");break}return r}function at(e,r){if(typeof r!="number"&&Array.isArray(e)){const n=Number.parseInt(r,10);return Number.isInteger(n)&&e[n]===e[r]}return!1}function zt(e,r){if(at(e,r))throw new Error("Cannot use string index")}function Wr(e,r,n){if(!he(e)||typeof r!="string")return n===void 0?e:n;const l=Te(r);if(l.length===0)return n;for(let i=0;i<l.length;i++){const o=l[i];if(at(e,o)?e=i===l.length-1?void 0:null:e=e[o],e==null){if(i!==l.length-1)return n;break}}return e===void 0?n:e}function Et(e,r,n){if(!he(e)||typeof r!="string")return e;const l=e,i=Te(r);for(let o=0;o<i.length;o++){const D=i[o];zt(e,D),o===i.length-1?e[D]=n:he(e[D])||(e[D]=typeof i[o+1]=="number"?[]:{}),e=e[D]}return l}function Vr(e,r){if(!he(e)||typeof r!="string")return!1;const n=Te(r);for(let l=0;l<n.length;l++){const i=n[l];if(zt(e,i),l===n.length-1)return delete e[i],!0;if(e=e[i],!he(e))return!1}}function Ur(e,r){if(!he(e)||typeof r!="string")return!1;const n=Te(r);if(n.length===0)return!1;for(const l of n){if(!he(e)||!(l in e)||at(e,l))return!1;e=e[l]}return!0}function Gr(e,r){const n=r?W.default.join(e,"config.json"):W.default.join("configstore",`${e}.json`),l=Se??Be.default.mkdtempSync(Be.default.realpathSync(Fe.default.tmpdir())+W.default.sep);return W.default.join(l,n)}var Jr="You don't have access to this file.",Yr={mode:448,recursive:!0},Ct={mode:384};function yt(e){throw e.code==="EACCES"&&(e.message=`${e.message}
29
+ ${Jr}
30
+ `),e}var Kr=class{constructor(e,r,n={}){this._path=n.configPath??Gr(e,n.globalConfigPath),this._clearInvalidConfig=n.clearInvalidConfig??!0,r&&(this.all={...r,...this.all})}get all(){try{return JSON.parse(Be.default.readFileSync(this._path,"utf8"))}catch(e){if(e.code==="ENOENT")return{};if(e.name==="SyntaxError"){if(this._clearInvalidConfig)return Je(this._path,"",Ct),{};throw e}return yt(e),{}}}set all(e){try{Be.default.mkdirSync(W.default.dirname(this._path),Yr),Je(this._path,JSON.stringify(e,void 0," "),Ct)}catch(r){yt(r)}}get size(){return Object.keys(this.all||{}).length}get(e){return Wr(this.all,e)}set(e,r){const n=this.all;if(typeof e=="object"&&arguments.length===1)for(const l of Object.keys(e))Et(n,l,e[l]);else Et(n,e,r);this.all=n}has(e){return Ur(this.all,e)}delete(e){const r=this.all;Vr(r,e),this.all=r}clear(){this.all={}}get path(){return this._path}},zr=w.__toESM(w.require_diff(),1),Xr=w.__toESM(w.require_gt(),1),Ye=class extends Error{response;request;options;constructor(e,r,n){const l=`${e.status||e.status===0?e.status:""} ${e.statusText??""}`.trim(),i=l?`status code ${l}`:"an unknown error";super(`Request failed with ${i}: ${r.method} ${r.url}`),this.name="HTTPError",this.response=e,this.request=r,this.options=n}},Xt=class extends Error{name="NonError";value;constructor(e){let r="Non-error value was thrown";try{typeof e=="string"?r=e:e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"&&(r=e.message)}catch{}super(r),this.value=e}},He=class extends Error{name="ForceRetryError";customDelay;code;customRequest;constructor(e){const r=e?.cause?e.cause instanceof Error?e.cause:new Xt(e.cause):void 0;super(e?.code?`Forced retry: ${e.code}`:"Forced retry",r?{cause:r}:void 0),this.customDelay=e?.delay,this.code=e?.code,this.customRequest=e?.request}},vt=(()=>{let e=!1,r=!1;const n=typeof globalThis.ReadableStream=="function",l=typeof globalThis.Request=="function";if(n&&l)try{r=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(i){if(i instanceof Error&&i.message==="unsupported BodyInit type")return!1;throw i}return e&&!r})(),Qr=typeof globalThis.AbortController=="function",Qt=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",Zr=typeof globalThis.ReadableStream=="function",eu=typeof globalThis.FormData=="function",Zt=["get","post","put","patch","head","delete"],tu={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},_t=2147483647,ru=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,er=Symbol("stop"),tr=class{options;constructor(e){this.options=e}},uu=e=>new tr(e),nu={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},iu={next:!0},ou={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},su=e=>{if(!e)return 0;if(e instanceof FormData){let r=0;for(const[n,l]of e)r+=ru,r+=new TextEncoder().encode(`Content-Disposition: form-data; name="${n}"`).length,r+=typeof l=="string"?new TextEncoder().encode(l).length:l.size;return r}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if(typeof e=="string")return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if(typeof e=="object"&&e!==null)try{const r=JSON.stringify(e);return new TextEncoder().encode(r).length}catch{return 0}return 0},rr=(e,r,n)=>{let l,i=0;return e.pipeThrough(new TransformStream({transform(o,D){if(D.enqueue(o),l){i+=l.byteLength;let s=r===0?0:i/r;s>=1&&(s=1-Number.EPSILON),n?.({percent:s,totalBytes:Math.max(r,i),transferredBytes:i},l)}l=o},flush(){l&&(i+=l.byteLength,n?.({percent:1,totalBytes:Math.max(r,i),transferredBytes:i},l))}}))},au=(e,r)=>{if(!e.body)return e;if(e.status===204)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});const n=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(rr(e.body,n,r),{status:e.status,statusText:e.statusText,headers:e.headers})},Du=(e,r,n)=>{if(!e.body)return e;const l=su(n??e.body);return new Request(e,{duplex:"half",body:rr(e.body,l,r)})},fe=e=>e!==null&&typeof e=="object",be=(...e)=>{for(const r of e)if((!fe(r)||Array.isArray(r))&&r!==void 0)throw new TypeError("The `options` argument must be an object");return Dt({},...e)},ur=(e={},r={})=>{const n=new globalThis.Headers(e),l=r instanceof globalThis.Headers,i=new globalThis.Headers(r);for(const[o,D]of i.entries())l&&D==="undefined"||D===void 0?n.delete(o):n.set(o,D);return n};function we(e,r,n){return Object.hasOwn(r,n)&&r[n]===void 0?[]:Dt(e[n]??[],r[n]??[])}var nr=(e={},r={})=>({beforeRequest:we(e,r,"beforeRequest"),beforeRetry:we(e,r,"beforeRetry"),afterResponse:we(e,r,"afterResponse"),beforeError:we(e,r,"beforeError")}),lu=(e,r)=>{const n=new URLSearchParams;for(const l of[e,r])if(l!==void 0)if(l instanceof URLSearchParams)for(const[i,o]of l.entries())n.append(i,o);else if(Array.isArray(l))for(const i of l){if(!Array.isArray(i)||i.length!==2)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");n.append(String(i[0]),String(i[1]))}else if(fe(l))for(const[i,o]of Object.entries(l))o!==void 0&&n.append(i,String(o));else{const i=new URLSearchParams(l);for(const[o,D]of i.entries())n.append(o,D)}return n},Dt=(...e)=>{let r={},n={},l={},i;const o=[];for(const D of e)if(Array.isArray(D))Array.isArray(r)||(r=[]),r=[...r,...D];else if(fe(D)){for(let[s,u]of Object.entries(D)){if(s==="signal"&&u instanceof globalThis.AbortSignal){o.push(u);continue}if(s==="context"){if(u!=null&&(!fe(u)||Array.isArray(u)))throw new TypeError("The `context` option must be an object");r={...r,context:u==null?{}:{...r.context,...u}};continue}if(s==="searchParams"){u==null?i=void 0:i=i===void 0?u:lu(i,u);continue}fe(u)&&s in r&&(u=Dt(r[s],u)),r={...r,[s]:u}}fe(D.hooks)&&(l=nr(l,D.hooks),r.hooks=l),fe(D.headers)&&(n=ur(n,D.headers),r.headers=n)}return i!==void 0&&(r.searchParams=i),o.length>0&&(o.length===1?r.signal=o[0]:Qt?r.signal=AbortSignal.any(o):r.signal=o.at(-1)),r},cu=e=>Zt.includes(e)?e.toUpperCase():e,At={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},fu=(e={})=>{if(typeof e=="number")return{...At,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.methods&&=e.methods.map(n=>n.toLowerCase()),e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");const r=Object.fromEntries(Object.entries(e).filter(([,n])=>n!==void 0));return{...At,...r}},Ke=class extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}};async function hu(e,r,n,l){return new Promise((i,o)=>{const D=setTimeout(()=>{n&&n.abort(),o(new Ke(e))},l.timeout);l.fetch(e,r).then(i).catch(o).then(()=>{clearTimeout(D)})})}async function pu(e,{signal:r}){return new Promise((n,l)=>{r&&(r.throwIfAborted(),r.addEventListener("abort",i,{once:!0}));function i(){clearTimeout(o),l(r.reason)}const o=setTimeout(()=>{r?.removeEventListener("abort",i),n()},e)})}var du=(e,r)=>{const n={};for(const l in r)Object.hasOwn(r,l)&&!(l in ou)&&!(l in nu)&&(!(l in e)||l in iu)&&(n[l]=r[l]);return n},mu=e=>e===void 0?!1:Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:typeof e=="object"?Object.keys(e).length>0:typeof e=="string"?e.trim().length>0:!!e;function Fu(e){return e instanceof Ye||e?.name===Ye.name}function gu(e){return e instanceof Ke||e?.name===Ke.name}var bt=class ze{static create(r,n){const l=new ze(r,n),i=async()=>{if(typeof l.#e.timeout=="number"&&l.#e.timeout>2147483647)throw new RangeError(`The \`timeout\` option cannot be greater than ${_t}`);await Promise.resolve();let D=await l.#F();for(const s of l.#e.hooks.afterResponse){const u=l.#h(D.clone());let c;try{c=await s(l.request,l.#D(),u,{retryCount:l.#u})}catch(h){throw l.#i(u),l.#i(D),h}if(c instanceof tr)throw l.#i(u),l.#i(D),new He(c.options);const m=c instanceof globalThis.Response?c:D;u!==m&&l.#i(u),D!==m&&l.#i(D),D=m}if(l.#h(D),!D.ok&&(typeof l.#e.throwHttpErrors=="function"?l.#e.throwHttpErrors(D.status):l.#e.throwHttpErrors)){let s=new Ye(D,l.request,l.#D());for(const u of l.#e.hooks.beforeError)s=await u(s,{retryCount:l.#u});throw s}if(l.#e.onDownloadProgress){if(typeof l.#e.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!Zr)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");const s=D.clone();return l.#i(D),au(s,l.#e.onDownloadProgress)}return D},o=l.#p(i).finally(()=>{const D=l.#s;l.#c(D?.body??void 0),l.#c(l.request.body??void 0)});for(const[D,s]of Object.entries(tu))D==="bytes"&&typeof globalThis.Response?.prototype?.bytes!="function"||(o[D]=async()=>{l.request.headers.set("accept",l.request.headers.get("accept")||s);const u=await o;if(D==="json"){if(u.status===204)return"";const c=await u.text();return c===""?"":n.parseJson?n.parseJson(c):JSON.parse(c)}return u[D]()});return o}static#o(r){return r&&typeof r=="object"&&!Array.isArray(r)&&!(r instanceof URLSearchParams)?Object.fromEntries(Object.entries(r).filter(([,n])=>n!==void 0)):r}request;#r;#u=0;#t;#e;#s;#n;#a;constructor(r,n={}){if(this.#t=r,this.#e={...n,headers:ur(this.#t.headers,n.headers),hooks:nr({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},n.hooks),method:cu(n.method??this.#t.method??"GET"),prefixUrl:String(n.prefixUrl||""),retry:fu(n.retry),throwHttpErrors:n.throwHttpErrors??!0,timeout:n.timeout??1e4,fetch:n.fetch??globalThis.fetch.bind(globalThis),context:n.context??{}},typeof this.#t!="string"&&!(this.#t instanceof URL||this.#t instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this.#e.prefixUrl&&typeof this.#t=="string"){if(this.#t.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this.#e.prefixUrl.endsWith("/")||(this.#e.prefixUrl+="/"),this.#t=this.#e.prefixUrl+this.#t}Qr&&Qt&&(this.#n=this.#e.signal??this.#t.signal,this.#r=new globalThis.AbortController,this.#e.signal=this.#n?AbortSignal.any([this.#n,this.#r.signal]):this.#r.signal),vt&&(this.#e.duplex="half"),this.#e.json!==void 0&&(this.#e.body=this.#e.stringifyJson?.(this.#e.json)??JSON.stringify(this.#e.json),this.#e.headers.set("content-type",this.#e.headers.get("content-type")??"application/json"));const l=n.headers&&new globalThis.Headers(n.headers).has("content-type");if(this.#t instanceof globalThis.Request&&(eu&&this.#e.body instanceof globalThis.FormData||this.#e.body instanceof URLSearchParams)&&!l&&this.#e.headers.delete("content-type"),this.request=new globalThis.Request(this.#t,this.#e),mu(this.#e.searchParams)){const i="?"+(typeof this.#e.searchParams=="string"?this.#e.searchParams.replace(/^\?/,""):new URLSearchParams(ze.#o(this.#e.searchParams)).toString()),o=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,i);this.request=new globalThis.Request(o,this.#e)}if(this.#e.onUploadProgress){if(typeof this.#e.onUploadProgress!="function")throw new TypeError("The `onUploadProgress` option must be a function");if(!vt)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#d(this.request,this.#e.body??void 0)}}#l(){const r=this.#e.retry.delay(this.#u);let n=r;this.#e.retry.jitter===!0?n=Math.random()*r:typeof this.#e.retry.jitter=="function"&&(n=this.#e.retry.jitter(r),(!Number.isFinite(n)||n<0)&&(n=r));const l=this.#e.retry.backoffLimit??Number.POSITIVE_INFINITY;return Math.min(l,n)}async#m(r){if(this.#u++,this.#u>this.#e.retry.limit)throw r;const n=r instanceof Error?r:new Xt(r);if(n instanceof He)return n.customDelay??this.#l();if(!this.#e.retry.methods.includes(this.request.method.toLowerCase()))throw r;if(this.#e.retry.shouldRetry!==void 0){const l=await this.#e.retry.shouldRetry({error:n,retryCount:this.#u});if(l===!1)throw r;if(l===!0)return this.#l()}if(gu(r)&&!this.#e.retry.retryOnTimeout)throw r;if(Fu(r)){if(!this.#e.retry.statusCodes.includes(r.response.status))throw r;const l=r.response.headers.get("Retry-After")??r.response.headers.get("RateLimit-Reset")??r.response.headers.get("X-RateLimit-Retry-After")??r.response.headers.get("X-RateLimit-Reset")??r.response.headers.get("X-Rate-Limit-Reset");if(l&&this.#e.retry.afterStatusCodes.includes(r.response.status)){let i=Number(l)*1e3;Number.isNaN(i)?i=Date.parse(l)-Date.now():i>=Date.parse("2024-01-01")&&(i-=Date.now());const o=this.#e.retry.maxRetryAfter??i;return i<o?i:o}if(r.response.status===413)throw r}return this.#l()}#h(r){return this.#e.parseJson&&(r.json=async()=>this.#e.parseJson(await r.text())),r}#c(r){r&&r.cancel().catch(()=>{})}#i(r){this.#c(r.body??void 0)}async#p(r){try{return await r()}catch(n){const l=Math.min(await this.#m(n),_t);if(this.#u<1)throw n;if(await pu(l,this.#n?{signal:this.#n}:{}),n instanceof He&&n.customRequest){const i=this.#e.signal?new globalThis.Request(n.customRequest,{signal:this.#e.signal}):new globalThis.Request(n.customRequest);this.#f(i)}for(const i of this.#e.hooks.beforeRetry){const o=await i({request:this.request,options:this.#D(),error:n,retryCount:this.#u});if(o instanceof globalThis.Request){this.#f(o);break}if(o instanceof globalThis.Response)return o;if(o===er)return}return this.#p(r)}}async#F(){this.#r?.signal.aborted&&(this.#r=new globalThis.AbortController,this.#e.signal=this.#n?AbortSignal.any([this.#n,this.#r.signal]):this.#r.signal,this.request=new globalThis.Request(this.request,{signal:this.#e.signal}));for(const n of this.#e.hooks.beforeRequest){const l=await n(this.request,this.#D(),{retryCount:this.#u});if(l instanceof Response)return l;if(l instanceof globalThis.Request){this.#f(l);break}}const r=du(this.request,this.#e);return this.#s=this.request,this.request=this.#s.clone(),this.#e.timeout===!1?this.#e.fetch(this.#s,r):hu(this.#s,r,this.#r,this.#e)}#D(){if(!this.#a){const{hooks:r,...n}=this.#e;this.#a=Object.freeze(n)}return this.#a}#f(r){this.#a=void 0,this.request=this.#d(r)}#d(r,n){return!this.#e.onUploadProgress||!r.body?r:Du(r,this.#e.onUploadProgress,n??this.#e.body??void 0)}},Xe=e=>{const r=(n,l)=>bt.create(n,be(e,l));for(const n of Zt)r[n]=(l,i)=>bt.create(l,be(e,i,{method:n}));return r.create=n=>Xe(be(n)),r.extend=n=>(typeof n=="function"&&(n=n(e??{})),Xe(be(e,n))),r.stop=er,r.retry=uu,r},Eu=Xe(),Cu=w.__commonJSMin((e=>{e.parse=e.decode=i,e.stringify=e.encode=n,e.safe=D,e.unsafe=s;var r=typeof process<"u"&&process.platform==="win32"?`\r
31
31
  `:`
32
32
  `;function n(u,c){var m=[],h="";typeof c=="string"?c={section:c,whitespace:!1}:(c=c||{},c.whitespace=c.whitespace===!0);var F=c.whitespace?" = ":"=";return Object.keys(u).forEach(function(E,C,v){var y=u[E];y&&Array.isArray(y)?y.forEach(function(p){h+=D(E+"[]")+F+D(p)+`
33
- `}):y&&typeof y=="object"?m.push(E):h+=D(E)+F+D(y)+r}),c.section&&h.length&&(h="["+D(c.section)+"]"+r+h),m.forEach(function(E,C,v){var y=l(E).join("\\."),p=(c.section?c.section+".":"")+y,t=n(u[E],{section:p,whitespace:c.whitespace});h.length&&t.length&&(h+=r),h+=t}),h}function l(u){return u.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(c){return c.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function i(u){var c={},m=c,h=null,F=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;return u.split(/[\r\n]+/g).forEach(function(E,C,v){if(!(!E||E.match(/^\s*[;#]/))){var y=E.match(F);if(y){if(y[1]!==void 0){if(h=s(y[1]),h==="__proto__"){m={};return}m=c[h]=c[h]||{};return}var p=s(y[2]);if(p!=="__proto__"){var t=y[3]?s(y[4]):!0;switch(t){case"true":case"false":case"null":t=JSON.parse(t)}if(p.length>2&&p.slice(-2)==="[]"){if(p=p.substring(0,p.length-2),p==="__proto__")return;m[p]?Array.isArray(m[p])||(m[p]=[m[p]]):m[p]=[]}Array.isArray(m[p])?m[p].push(t):m[p]=t}}}}),Object.keys(c).filter(function(E,C,v){if(!c[E]||typeof c[E]!="object"||Array.isArray(c[E]))return!1;var y=l(E),p=c,t=y.pop(),a=t.replace(/\\\./g,".");return y.forEach(function(f,d,g){f!=="__proto__"&&((!p[f]||typeof p[f]!="object")&&(p[f]={}),p=p[f])}),p===c&&a===t?!1:(p[a]=c[E],!0)}).forEach(function(E,C,v){delete c[E]}),c}function o(u){return u.charAt(0)==='"'&&u.slice(-1)==='"'||u.charAt(0)==="'"&&u.slice(-1)==="'"}function D(u){return typeof u!="string"||u.match(/[=\r\n]/)||u.match(/^\[/)||u.length>1&&o(u)||u!==u.trim()?JSON.stringify(u):u.replace(/;/g,"\\;").replace(/#/g,"\\#")}function s(u,c){if(u=(u||"").trim(),o(u)){u.charAt(0)==="'"&&(u=u.substr(1,u.length-2));try{u=JSON.parse(u)}catch{}}else{for(var m=!1,h="",F=0,E=u.length;F<E;F++){var C=u.charAt(F);if(m)"\\;#".indexOf(C)!==-1?h+=C:h+="\\"+C,m=!1;else{if(";#".indexOf(C)!==-1)break;C==="\\"?m=!0:h+=C}}return m&&(h+="\\"),h.trim()}return u}})),_u=T.__commonJSMin(((e,r)=>{var n=1,l=2;function i(){return""}function o(D,s,u){return D.slice(s,u).replace(/\S/g," ")}r.exports=function(D,s){s=s||{};for(var u,c,m=!1,h=!1,F=0,E="",C=s.whitespace===!1?i:o,v=0;v<D.length;v++)if(u=D[v],c=D[v+1],!h&&u==='"'&&(D[v-1]==="\\"&&D[v-2]!=="\\"||(m=!m)),!m){if(!h&&u+c==="//")E+=D.slice(F,v),F=v,h=n,v++;else if(h===n&&u+c===`\r
33
+ `}):y&&typeof y=="object"?m.push(E):h+=D(E)+F+D(y)+r}),c.section&&h.length&&(h="["+D(c.section)+"]"+r+h),m.forEach(function(E,C,v){var y=l(E).join("\\."),p=(c.section?c.section+".":"")+y,t=n(u[E],{section:p,whitespace:c.whitespace});h.length&&t.length&&(h+=r),h+=t}),h}function l(u){return u.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(c){return c.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function i(u){var c={},m=c,h=null,F=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;return u.split(/[\r\n]+/g).forEach(function(E,C,v){if(!(!E||E.match(/^\s*[;#]/))){var y=E.match(F);if(y){if(y[1]!==void 0){if(h=s(y[1]),h==="__proto__"){m={};return}m=c[h]=c[h]||{};return}var p=s(y[2]);if(p!=="__proto__"){var t=y[3]?s(y[4]):!0;switch(t){case"true":case"false":case"null":t=JSON.parse(t)}if(p.length>2&&p.slice(-2)==="[]"){if(p=p.substring(0,p.length-2),p==="__proto__")return;m[p]?Array.isArray(m[p])||(m[p]=[m[p]]):m[p]=[]}Array.isArray(m[p])?m[p].push(t):m[p]=t}}}}),Object.keys(c).filter(function(E,C,v){if(!c[E]||typeof c[E]!="object"||Array.isArray(c[E]))return!1;var y=l(E),p=c,t=y.pop(),a=t.replace(/\\\./g,".");return y.forEach(function(f,d,g){f!=="__proto__"&&((!p[f]||typeof p[f]!="object")&&(p[f]={}),p=p[f])}),p===c&&a===t?!1:(p[a]=c[E],!0)}).forEach(function(E,C,v){delete c[E]}),c}function o(u){return u.charAt(0)==='"'&&u.slice(-1)==='"'||u.charAt(0)==="'"&&u.slice(-1)==="'"}function D(u){return typeof u!="string"||u.match(/[=\r\n]/)||u.match(/^\[/)||u.length>1&&o(u)||u!==u.trim()?JSON.stringify(u):u.replace(/;/g,"\\;").replace(/#/g,"\\#")}function s(u,c){if(u=(u||"").trim(),o(u)){u.charAt(0)==="'"&&(u=u.substr(1,u.length-2));try{u=JSON.parse(u)}catch{}}else{for(var m=!1,h="",F=0,E=u.length;F<E;F++){var C=u.charAt(F);if(m)"\\;#".indexOf(C)!==-1?h+=C:h+="\\"+C,m=!1;else{if(";#".indexOf(C)!==-1)break;C==="\\"?m=!0:h+=C}}return m&&(h+="\\"),h.trim()}return u}})),yu=w.__commonJSMin(((e,r)=>{var n=1,l=2;function i(){return""}function o(D,s,u){return D.slice(s,u).replace(/\S/g," ")}r.exports=function(D,s){s=s||{};for(var u,c,m=!1,h=!1,F=0,E="",C=s.whitespace===!1?i:o,v=0;v<D.length;v++)if(u=D[v],c=D[v+1],!h&&u==='"'&&(D[v-1]==="\\"&&D[v-2]!=="\\"||(m=!m)),!m){if(!h&&u+c==="//")E+=D.slice(F,v),F=v,h=n,v++;else if(h===n&&u+c===`\r
34
34
  `){v++,h=!1,E+=C(D,F,v),F=v;continue}else if(h===n&&u===`
35
- `)h=!1,E+=C(D,F,v),F=v;else if(!h&&u+c==="/*"){E+=D.slice(F,v),F=v,h=l,v++;continue}else if(h===l&&u+c==="*/"){v++,h=!1,E+=C(D,F,v+1),F=v+1;continue}}return E+(h?C(D.substr(F)):D.substr(F))}})),Au=T.__commonJSMin((e=>{var r=require("fs"),n=vu(),l=require("path"),i=_u(),o=e.parse=function(s){return/^\s*{/.test(s)?JSON.parse(i(s)):n.parse(s)},D=e.file=function(){var s=[].slice.call(arguments).filter(function(m){return m!=null});for(var u in s)if(typeof s[u]!="string")return;var c=l.join.apply(null,s);try{return r.readFileSync(c,"utf-8")}catch{return}};e.json=function(){var s=D.apply(null,arguments);return s?o(s):null},e.env=function(s,u){u=u||process.env;var c={},m=s.length;for(var h in u)if(h.toLowerCase().indexOf(s.toLowerCase())===0){for(var F=h.substring(m).split("__"),E;(E=F.indexOf(""))>-1;)F.splice(E,1);var C=c;F.forEach(function(y,p){!y||typeof C!="object"||(p===F.length-1&&(C[y]=u[h]),C[y]===void 0&&(C[y]={}),C=C[y])})}return c},e.find=function(){var s=l.join.apply(null,[].slice.call(arguments));function u(c,m){var h=l.join(c,m);try{return r.statSync(h),h}catch{if(l.dirname(c)!==c)return u(l.dirname(c),m)}}return u(process.cwd(),s)}})),bu=T.__commonJSMin(((e,r)=>{function n(s){return s instanceof Buffer||s instanceof Date||s instanceof RegExp}function l(s){if(s instanceof Buffer){var u=Buffer.alloc?Buffer.alloc(s.length):new Buffer(s.length);return s.copy(u),u}else{if(s instanceof Date)return new Date(s.getTime());if(s instanceof RegExp)return new RegExp(s);throw new Error("Unexpected situation")}}function i(s){var u=[];return s.forEach(function(c,m){typeof c=="object"&&c!==null?Array.isArray(c)?u[m]=i(c):n(c)?u[m]=l(c):u[m]=D({},c):u[m]=c}),u}function o(s,u){return u==="__proto__"?void 0:s[u]}var D=r.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var s=arguments[0],u=Array.prototype.slice.call(arguments,1),c,m;return u.forEach(function(h){typeof h!="object"||h===null||Array.isArray(h)||Object.keys(h).forEach(function(F){if(m=o(s,F),c=o(h,F),c!==s)if(typeof c!="object"||c===null){s[F]=c;return}else if(Array.isArray(c)){s[F]=i(c);return}else if(n(c)){s[F]=l(c);return}else if(typeof m!="object"||m===null||Array.isArray(m)){s[F]=D({},c);return}else{s[F]=D(m,c);return}})}),s}})),wu=T.__commonJSMin(((e,r)=>{function n(o,D){var s=o;return D.slice(0,-1).forEach(function(u){s=s[u]||{}}),D[D.length-1]in s}function l(o){return typeof o=="number"||/^0x[0-9a-f]+$/i.test(o)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(o)}function i(o,D){return D==="constructor"&&typeof o[D]=="function"||D==="__proto__"}r.exports=function(o,D){D||(D={});var s={bools:{},strings:{},unknownFn:null};typeof D.unknown=="function"&&(s.unknownFn=D.unknown),typeof D.boolean=="boolean"&&D.boolean?s.allBools=!0:[].concat(D.boolean).filter(Boolean).forEach(function(b){s.bools[b]=!0});var u={};function c(b){return u[b].some(function(S){return s.bools[S]})}Object.keys(D.alias||{}).forEach(function(b){u[b]=[].concat(D.alias[b]),u[b].forEach(function(S){u[S]=[b].concat(u[b].filter(function(B){return S!==B}))})}),[].concat(D.string).filter(Boolean).forEach(function(b){s.strings[b]=!0,u[b]&&[].concat(u[b]).forEach(function(S){s.strings[S]=!0})});var m=D.default||{},h={_:[]};function F(b,S){return s.allBools&&/^--[^=]+$/.test(S)||s.strings[b]||s.bools[b]||u[b]}function E(b,S,B){for(var O=b,U=0;U<S.length-1;U++){var J=S[U];if(i(O,J))return;O[J]===void 0&&(O[J]={}),(O[J]===Object.prototype||O[J]===Number.prototype||O[J]===String.prototype)&&(O[J]={}),O[J]===Array.prototype&&(O[J]=[]),O=O[J]}var Y=S[S.length-1];i(O,Y)||((O===Object.prototype||O===Number.prototype||O===String.prototype)&&(O={}),O===Array.prototype&&(O=[]),O[Y]===void 0||s.bools[Y]||typeof O[Y]=="boolean"?O[Y]=B:Array.isArray(O[Y])?O[Y].push(B):O[Y]=[O[Y],B])}function C(b,S,B){if(!(B&&s.unknownFn&&!F(b,B)&&s.unknownFn(B)===!1)){var O=!s.strings[b]&&l(S)?Number(S):S;E(h,b.split("."),O),(u[b]||[]).forEach(function(U){E(h,U.split("."),O)})}}Object.keys(s.bools).forEach(function(b){C(b,m[b]===void 0?!1:m[b])});var v=[];o.indexOf("--")!==-1&&(v=o.slice(o.indexOf("--")+1),o=o.slice(0,o.indexOf("--")));for(var y=0;y<o.length;y++){var p=o[y],t,a;if(/^--.+=/.test(p)){var f=p.match(/^--([^=]+)=([\s\S]*)$/);t=f[1];var d=f[2];s.bools[t]&&(d=d!=="false"),C(t,d,p)}else if(/^--no-.+/.test(p))t=p.match(/^--no-(.+)/)[1],C(t,!1,p);else if(/^--.+/.test(p))t=p.match(/^--(.+)/)[1],a=o[y+1],a!==void 0&&!/^(-|--)[^-]/.test(a)&&!s.bools[t]&&!s.allBools&&(!u[t]||!c(t))?(C(t,a,p),y+=1):/^(true|false)$/.test(a)?(C(t,a==="true",p),y+=1):C(t,s.strings[t]?"":!0,p);else if(/^-[^-]+/.test(p)){for(var g=p.slice(1,-1).split(""),_=!1,A=0;A<g.length;A++){if(a=p.slice(A+2),a==="-"){C(g[A],a,p);continue}if(/[A-Za-z]/.test(g[A])&&a[0]==="="){C(g[A],a.slice(1),p),_=!0;break}if(/[A-Za-z]/.test(g[A])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(a)){C(g[A],a,p),_=!0;break}if(g[A+1]&&g[A+1].match(/\W/)){C(g[A],p.slice(A+2),p),_=!0;break}else C(g[A],s.strings[g[A]]?"":!0,p)}t=p.slice(-1)[0],!_&&t!=="-"&&(o[y+1]&&!/^(-|--)[^-]/.test(o[y+1])&&!s.bools[t]&&(!u[t]||!c(t))?(C(t,o[y+1],p),y+=1):o[y+1]&&/^(true|false)$/.test(o[y+1])?(C(t,o[y+1]==="true",p),y+=1):C(t,s.strings[t]?"":!0,p))}else if((!s.unknownFn||s.unknownFn(p)!==!1)&&h._.push(s.strings._||!l(p)?p:Number(p)),D.stopEarly){h._.push.apply(h._,o.slice(y+1));break}}return Object.keys(m).forEach(function(b){n(h,b.split("."))||(E(h,b.split("."),m[b]),(u[b]||[]).forEach(function(S){E(h,S.split("."),m[b])}))}),D["--"]?h["--"]=v.slice():v.forEach(function(b){h._.push(b)}),h}})),Bu=T.__commonJSMin(((e,r)=>{var n=Au(),l=require("path").join,i=bu(),o="/etc",D=process.platform==="win32",s=D?process.env.USERPROFILE:process.env.HOME;r.exports=function(u,c,m,h){if(typeof u!="string")throw new Error("rc(name): name *must* be string");m||(m=wu()(process.argv.slice(2))),c=(typeof c=="string"?n.json(c):c)||{},h=h||n.parse;var F=n.env(u+"_"),E=[c],C=[];function v(y){if(!(C.indexOf(y)>=0)){var p=n.file(y);p&&(E.push(h(p)),C.push(y))}}return D||[l(o,u,"config"),l(o,u+"rc")].forEach(v),s&&[l(s,".config",u,"config"),l(s,".config",u),l(s,"."+u,"config"),l(s,"."+u+"rc")].forEach(v),v(n.find("."+u+"rc")),F.config&&v(F.config),m.config&&v(m.config),i.apply(null,E.concat([F,m,C.length?{configs:C,config:C[C.length-1]}:void 0]))}})),Su=T.__toESM(Bu(),1);function Ou(e){const r=(0,Su.default)("npm",{registry:"https://registry.npmjs.org/"}),n=r[`${e}:registry`]||r.config_registry||r.registry;return n.slice(-1)==="/"?n:`${n}/`}var xu=T.__commonJSMin(((e,r)=>{var n=require("constants"),l=process.cwd,i=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=l.call(process)),i};try{process.cwd()}catch{}if(typeof process.chdir=="function"){var D=process.chdir;process.chdir=function(u){i=null,D.call(process,u)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,D)}r.exports=s;function s(u){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&c(u),u.lutimes||m(u),u.chown=E(u.chown),u.fchown=E(u.fchown),u.lchown=E(u.lchown),u.chmod=h(u.chmod),u.fchmod=h(u.fchmod),u.lchmod=h(u.lchmod),u.chownSync=C(u.chownSync),u.fchownSync=C(u.fchownSync),u.lchownSync=C(u.lchownSync),u.chmodSync=F(u.chmodSync),u.fchmodSync=F(u.fchmodSync),u.lchmodSync=F(u.lchmodSync),u.stat=v(u.stat),u.fstat=v(u.fstat),u.lstat=v(u.lstat),u.statSync=y(u.statSync),u.fstatSync=y(u.fstatSync),u.lstatSync=y(u.lstatSync),u.chmod&&!u.lchmod&&(u.lchmod=function(t,a,f){f&&process.nextTick(f)},u.lchmodSync=function(){}),u.chown&&!u.lchown&&(u.lchown=function(t,a,f,d){d&&process.nextTick(d)},u.lchownSync=function(){}),o==="win32"&&(u.rename=typeof u.rename!="function"?u.rename:(function(t){function a(f,d,g){var _=Date.now(),A=0;t(f,d,function b(S){if(S&&(S.code==="EACCES"||S.code==="EPERM")&&Date.now()-_<6e4){setTimeout(function(){u.stat(d,function(B,O){B&&B.code==="ENOENT"?t(f,d,b):g(S)})},A),A<100&&(A+=10);return}g&&g(S)})}return Object.setPrototypeOf&&Object.setPrototypeOf(a,t),a})(u.rename)),u.read=typeof u.read!="function"?u.read:(function(t){function a(f,d,g,_,A,b){var S;if(b&&typeof b=="function"){var B=0;S=function(O,U,J){if(O&&O.code==="EAGAIN"&&B<10)return B++,t.call(u,f,d,g,_,A,S);b.apply(this,arguments)}}return t.call(u,f,d,g,_,A,S)}return Object.setPrototypeOf&&Object.setPrototypeOf(a,t),a})(u.read),u.readSync=typeof u.readSync!="function"?u.readSync:(function(t){return function(a,f,d,g,_){for(var A=0;;)try{return t.call(u,a,f,d,g,_)}catch(b){if(b.code==="EAGAIN"&&A<10){A++;continue}throw b}}})(u.readSync);function c(t){t.lchmod=function(a,f,d){t.open(a,n.O_WRONLY|n.O_SYMLINK,f,function(g,_){if(g){d&&d(g);return}t.fchmod(_,f,function(A){t.close(_,function(b){d&&d(A||b)})})})},t.lchmodSync=function(a,f){var d=t.openSync(a,n.O_WRONLY|n.O_SYMLINK,f),g=!0,_;try{_=t.fchmodSync(d,f),g=!1}finally{if(g)try{t.closeSync(d)}catch{}else t.closeSync(d)}return _}}function m(t){n.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(a,f,d,g){t.open(a,n.O_SYMLINK,function(_,A){if(_){g&&g(_);return}t.futimes(A,f,d,function(b){t.close(A,function(S){g&&g(b||S)})})})},t.lutimesSync=function(a,f,d){var g=t.openSync(a,n.O_SYMLINK),_,A=!0;try{_=t.futimesSync(g,f,d),A=!1}finally{if(A)try{t.closeSync(g)}catch{}else t.closeSync(g)}return _}):t.futimes&&(t.lutimes=function(a,f,d,g){g&&process.nextTick(g)},t.lutimesSync=function(){})}function h(t){return t&&function(a,f,d){return t.call(u,a,f,function(g){p(g)&&(g=null),d&&d.apply(this,arguments)})}}function F(t){return t&&function(a,f){try{return t.call(u,a,f)}catch(d){if(!p(d))throw d}}}function E(t){return t&&function(a,f,d,g){return t.call(u,a,f,d,function(_){p(_)&&(_=null),g&&g.apply(this,arguments)})}}function C(t){return t&&function(a,f,d){try{return t.call(u,a,f,d)}catch(g){if(!p(g))throw g}}}function v(t){return t&&function(a,f,d){typeof f=="function"&&(d=f,f=null);function g(_,A){A&&(A.uid<0&&(A.uid+=4294967296),A.gid<0&&(A.gid+=4294967296)),d&&d.apply(this,arguments)}return f?t.call(u,a,f,g):t.call(u,a,g)}}function y(t){return t&&function(a,f){var d=f?t.call(u,a,f):t.call(u,a);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function p(t){return!t||t.code==="ENOSYS"||(!process.getuid||process.getuid()!==0)&&(t.code==="EINVAL"||t.code==="EPERM")}}})),Tu=T.__commonJSMin(((e,r)=>{var n=require("stream").Stream;r.exports=l;function l(i){return{ReadStream:o,WriteStream:D};function o(s,u){if(!(this instanceof o))return new o(s,u);n.call(this);var c=this;this.path=s,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,u=u||{};for(var m=Object.keys(u),h=0,F=m.length;h<F;h++){var E=m[h];this[E]=u[E]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){c._read()});return}i.open(this.path,this.flags,this.mode,function(C,v){if(C){c.emit("error",C),c.readable=!1;return}c.fd=v,c.emit("open",v),c._read()})}function D(s,u){if(!(this instanceof D))return new D(s,u);n.call(this),this.path=s,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,u=u||{};for(var c=Object.keys(u),m=0,h=c.length;m<h;m++){var F=c[m];this[F]=u[F]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}})),Ru=T.__commonJSMin(((e,r)=>{r.exports=l;var n=Object.getPrototypeOf||function(i){return i.__proto__};function l(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var o={__proto__:n(i)};else var o=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(D){Object.defineProperty(o,D,Object.getOwnPropertyDescriptor(i,D))}),o}})),$u=T.__commonJSMin(((e,r)=>{var n=require("fs"),l=xu(),i=Tu(),o=Ru(),D=require("util"),s,u;typeof Symbol=="function"&&typeof Symbol.for=="function"?(s=Symbol.for("graceful-fs.queue"),u=Symbol.for("graceful-fs.previous")):(s="___graceful-fs.queue",u="___graceful-fs.previous");function c(){}function m(p,t){Object.defineProperty(p,s,{get:function(){return t}})}var h=c;D.debuglog?h=D.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var p=D.format.apply(D,arguments);p="GFS4: "+p.split(/\n/).join(`
36
- GFS4: `),console.error(p)}),n[s]||(m(n,global[s]||[]),n.close=(function(p){function t(a,f){return p.call(n,a,function(d){d||v(),typeof f=="function"&&f.apply(this,arguments)})}return Object.defineProperty(t,u,{value:p}),t})(n.close),n.closeSync=(function(p){function t(a){p.apply(n,arguments),v()}return Object.defineProperty(t,u,{value:p}),t})(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){h(n[s]),require("assert").equal(n[s].length,0)})),global[s]||m(global,n[s]),r.exports=F(o(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(r.exports=F(n),n.__patched=!0);function F(p){l(p),p.gracefulify=F,p.createReadStream=je,p.createWriteStream=Le;var t=p.readFile;p.readFile=a;function a(w,R,x){return typeof R=="function"&&(x=R,R=null),M(w,R,x);function M(q,L,N,k){return t(q,L,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?E([M,[q,L,N],P,k||Date.now(),Date.now()]):typeof N=="function"&&N.apply(this,arguments)})}}var f=p.writeFile;p.writeFile=d;function d(w,R,x,M){return typeof x=="function"&&(M=x,x=null),q(w,R,x,M);function q(L,N,k,P,H){return f(L,N,k,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?E([q,[L,N,k,P],I,H||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var g=p.appendFile;g&&(p.appendFile=_);function _(w,R,x,M){return typeof x=="function"&&(M=x,x=null),q(w,R,x,M);function q(L,N,k,P,H){return g(L,N,k,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?E([q,[L,N,k,P],I,H||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var A=p.copyFile;A&&(p.copyFile=b);function b(w,R,x,M){return typeof x=="function"&&(M=x,x=0),q(w,R,x,M);function q(L,N,k,P,H){return A(L,N,k,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?E([q,[L,N,k,P],I,H||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var S=p.readdir;p.readdir=O;var B=/^v[0-5]\./;function O(w,R,x){typeof R=="function"&&(x=R,R=null);var M=B.test(process.version)?function(N,k,P,H){return S(N,q(N,k,P,H))}:function(N,k,P,H){return S(N,k,q(N,k,P,H))};return M(w,R,x);function q(L,N,k,P){return function(H,I){H&&(H.code==="EMFILE"||H.code==="ENFILE")?E([M,[L,N,k],H,P||Date.now(),Date.now()]):(I&&I.sort&&I.sort(),typeof k=="function"&&k.call(this,H,I))}}}if(process.version.substr(0,4)==="v0.8"){var U=i(p);K=U.ReadStream,z=U.WriteStream}var J=p.ReadStream;J&&(K.prototype=Object.create(J.prototype),K.prototype.open=Ne);var Y=p.WriteStream;Y&&(z.prototype=Object.create(Y.prototype),z.prototype.open=ke),Object.defineProperty(p,"ReadStream",{get:function(){return K},set:function(w){K=w},enumerable:!0,configurable:!0}),Object.defineProperty(p,"WriteStream",{get:function(){return z},set:function(w){z=w},enumerable:!0,configurable:!0});var Ee=K;Object.defineProperty(p,"FileReadStream",{get:function(){return Ee},set:function(w){Ee=w},enumerable:!0,configurable:!0});var Ce=z;Object.defineProperty(p,"FileWriteStream",{get:function(){return Ce},set:function(w){Ce=w},enumerable:!0,configurable:!0});function K(w,R){return this instanceof K?(J.apply(this,arguments),this):K.apply(Object.create(K.prototype),arguments)}function Ne(){var w=this;fe(w.path,w.flags,w.mode,function(R,x){R?(w.autoClose&&w.destroy(),w.emit("error",R)):(w.fd=x,w.emit("open",x),w.read())})}function z(w,R){return this instanceof z?(Y.apply(this,arguments),this):z.apply(Object.create(z.prototype),arguments)}function ke(){var w=this;fe(w.path,w.flags,w.mode,function(R,x){R?(w.destroy(),w.emit("error",R)):(w.fd=x,w.emit("open",x))})}function je(w,R){return new p.ReadStream(w,R)}function Le(w,R){return new p.WriteStream(w,R)}var Me=p.open;p.open=fe;function fe(w,R,x,M){return typeof x=="function"&&(M=x,x=null),q(w,R,x,M);function q(L,N,k,P,H){return Me(L,N,k,function(I,gr){I&&(I.code==="EMFILE"||I.code==="ENFILE")?E([q,[L,N,k,P],I,H||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}return p}function E(p){h("ENQUEUE",p[0].name,p[1]),n[s].push(p),y()}var C;function v(){for(var p=Date.now(),t=0;t<n[s].length;++t)n[s][t].length>2&&(n[s][t][3]=p,n[s][t][4]=p);y()}function y(){if(clearTimeout(C),C=void 0,n[s].length!==0){var p=n[s].shift(),t=p[0],a=p[1],f=p[2],d=p[3],g=p[4];if(d===void 0)h("RETRY",t.name,a),t.apply(null,a);else if(Date.now()-d>=6e4){h("TIMEOUT",t.name,a);var _=a.pop();typeof _=="function"&&_.call(null,f)}else{var A=Date.now()-g,b=Math.max(g-d,1);A>=Math.min(b*1.2,100)?(h("RETRY",t.name,a),t.apply(null,a.concat([d]))):n[s].push(p)}C===void 0&&(C=setTimeout(y,0))}}})),Pu=T.__commonJSMin((e=>{var r=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.readCAFileSync=void 0;var n=r($u());function l(i){try{const o=n.default.readFileSync(i,"utf8"),D="-----END CERTIFICATE-----";return o.split(D).filter(s=>!!s.trim()).map(s=>`${s.trimLeft()}${D}`)}catch(o){if(o.code==="ENOENT")return;throw o}}e.readCAFileSync=l})),Iu=T.__commonJSMin((e=>{var r=e&&e.__createBinding||(Object.create?(function(l,i,o,D){D===void 0&&(D=o);var s=Object.getOwnPropertyDescriptor(i,o);(!s||("get"in s?!i.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(l,D,s)}):(function(l,i,o,D){D===void 0&&(D=o),l[D]=i[o]})),n=e&&e.__exportStar||function(l,i){for(var o in l)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&r(i,l,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(Pu(),e)})),Nu=T.__commonJSMin(((e,r)=>{r.exports=l;function n(i,o){if(typeof Object.setPrototypeOf=="function")return Object.setPrototypeOf(i,o);i.__proto__=o}function l(){this.list=[];var i=null;Object.defineProperty(this,"root",{get:function(){return i},set:function(o){i=o,this.list.length&&n(this.list[this.list.length-1],o)},enumerable:!0,configurable:!0})}l.prototype={get length(){return this.list.length},get keys(){var i=[];for(var o in this.list[0])i.push(o);return i},get snapshot(){var i={};return this.keys.forEach(function(o){i[o]=this.get(o)},this),i},get store(){return this.list[0]},push:function(i){return typeof i!="object"&&(i={valueOf:i}),this.list.length>=1&&n(this.list[this.list.length-1],i),n(i,this.root),this.list.push(i)},pop:function(){return this.list.length>=2&&n(this.list[this.list.length-2],this.root),this.list.pop()},unshift:function(i){return n(i,this.list[0]||this.root),this.list.unshift(i)},shift:function(){return this.list.length===1&&n(this.list[0],this.root),this.list.shift()},get:function(i){return this.list[0][i]},set:function(i,o,D){return this.length||this.push({}),D&&this.list[0].hasOwnProperty(i)&&this.push({}),this.list[0][i]=o},forEach:function(i,o){for(var D in this.list[0])i.call(o,D,this.list[0][D])},slice:function(){return this.list.slice.apply(this.list,arguments)},splice:function(){for(var i=this.list.splice.apply(this.list,arguments),o=0,D=this.list.length;o<D;o++)n(this.list[o],this.list[o+1]||this.root);return i}}})),ku=T.__commonJSMin((e=>{e.parse=e.decode=i,e.stringify=e.encode=n,e.safe=D,e.unsafe=s;var r=typeof process<"u"&&process.platform==="win32"?`\r
35
+ `)h=!1,E+=C(D,F,v),F=v;else if(!h&&u+c==="/*"){E+=D.slice(F,v),F=v,h=l,v++;continue}else if(h===l&&u+c==="*/"){v++,h=!1,E+=C(D,F,v+1),F=v+1;continue}}return E+(h?C(D.substr(F)):D.substr(F))}})),vu=w.__commonJSMin((e=>{var r=require("fs"),n=Cu(),l=require("path"),i=yu(),o=e.parse=function(s){return/^\s*{/.test(s)?JSON.parse(i(s)):n.parse(s)},D=e.file=function(){var s=[].slice.call(arguments).filter(function(m){return m!=null});for(var u in s)if(typeof s[u]!="string")return;var c=l.join.apply(null,s);try{return r.readFileSync(c,"utf-8")}catch{return}};e.json=function(){var s=D.apply(null,arguments);return s?o(s):null},e.env=function(s,u){u=u||process.env;var c={},m=s.length;for(var h in u)if(h.toLowerCase().indexOf(s.toLowerCase())===0){for(var F=h.substring(m).split("__"),E;(E=F.indexOf(""))>-1;)F.splice(E,1);var C=c;F.forEach(function(y,p){!y||typeof C!="object"||(p===F.length-1&&(C[y]=u[h]),C[y]===void 0&&(C[y]={}),C=C[y])})}return c},e.find=function(){var s=l.join.apply(null,[].slice.call(arguments));function u(c,m){var h=l.join(c,m);try{return r.statSync(h),h}catch{if(l.dirname(c)!==c)return u(l.dirname(c),m)}}return u(process.cwd(),s)}})),_u=w.__commonJSMin(((e,r)=>{function n(s){return s instanceof Buffer||s instanceof Date||s instanceof RegExp}function l(s){if(s instanceof Buffer){var u=Buffer.alloc?Buffer.alloc(s.length):new Buffer(s.length);return s.copy(u),u}else{if(s instanceof Date)return new Date(s.getTime());if(s instanceof RegExp)return new RegExp(s);throw new Error("Unexpected situation")}}function i(s){var u=[];return s.forEach(function(c,m){typeof c=="object"&&c!==null?Array.isArray(c)?u[m]=i(c):n(c)?u[m]=l(c):u[m]=D({},c):u[m]=c}),u}function o(s,u){return u==="__proto__"?void 0:s[u]}var D=r.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var s=arguments[0],u=Array.prototype.slice.call(arguments,1),c,m;return u.forEach(function(h){typeof h!="object"||h===null||Array.isArray(h)||Object.keys(h).forEach(function(F){if(m=o(s,F),c=o(h,F),c!==s)if(typeof c!="object"||c===null){s[F]=c;return}else if(Array.isArray(c)){s[F]=i(c);return}else if(n(c)){s[F]=l(c);return}else if(typeof m!="object"||m===null||Array.isArray(m)){s[F]=D({},c);return}else{s[F]=D(m,c);return}})}),s}})),Au=w.__commonJSMin(((e,r)=>{function n(o,D){var s=o;return D.slice(0,-1).forEach(function(u){s=s[u]||{}}),D[D.length-1]in s}function l(o){return typeof o=="number"||/^0x[0-9a-f]+$/i.test(o)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(o)}function i(o,D){return D==="constructor"&&typeof o[D]=="function"||D==="__proto__"}r.exports=function(o,D){D||(D={});var s={bools:{},strings:{},unknownFn:null};typeof D.unknown=="function"&&(s.unknownFn=D.unknown),typeof D.boolean=="boolean"&&D.boolean?s.allBools=!0:[].concat(D.boolean).filter(Boolean).forEach(function(b){s.bools[b]=!0});var u={};function c(b){return u[b].some(function(O){return s.bools[O]})}Object.keys(D.alias||{}).forEach(function(b){u[b]=[].concat(D.alias[b]),u[b].forEach(function(O){u[O]=[b].concat(u[b].filter(function(S){return O!==S}))})}),[].concat(D.string).filter(Boolean).forEach(function(b){s.strings[b]=!0,u[b]&&[].concat(u[b]).forEach(function(O){s.strings[O]=!0})});var m=D.default||{},h={_:[]};function F(b,O){return s.allBools&&/^--[^=]+$/.test(O)||s.strings[b]||s.bools[b]||u[b]}function E(b,O,S){for(var x=b,V=0;V<O.length-1;V++){var G=O[V];if(i(x,G))return;x[G]===void 0&&(x[G]={}),(x[G]===Object.prototype||x[G]===Number.prototype||x[G]===String.prototype)&&(x[G]={}),x[G]===Array.prototype&&(x[G]=[]),x=x[G]}var J=O[O.length-1];i(x,J)||((x===Object.prototype||x===Number.prototype||x===String.prototype)&&(x={}),x===Array.prototype&&(x=[]),x[J]===void 0||s.bools[J]||typeof x[J]=="boolean"?x[J]=S:Array.isArray(x[J])?x[J].push(S):x[J]=[x[J],S])}function C(b,O,S){if(!(S&&s.unknownFn&&!F(b,S)&&s.unknownFn(S)===!1)){var x=!s.strings[b]&&l(O)?Number(O):O;E(h,b.split("."),x),(u[b]||[]).forEach(function(V){E(h,V.split("."),x)})}}Object.keys(s.bools).forEach(function(b){C(b,m[b]===void 0?!1:m[b])});var v=[];o.indexOf("--")!==-1&&(v=o.slice(o.indexOf("--")+1),o=o.slice(0,o.indexOf("--")));for(var y=0;y<o.length;y++){var p=o[y],t,a;if(/^--.+=/.test(p)){var f=p.match(/^--([^=]+)=([\s\S]*)$/);t=f[1];var d=f[2];s.bools[t]&&(d=d!=="false"),C(t,d,p)}else if(/^--no-.+/.test(p))t=p.match(/^--no-(.+)/)[1],C(t,!1,p);else if(/^--.+/.test(p))t=p.match(/^--(.+)/)[1],a=o[y+1],a!==void 0&&!/^(-|--)[^-]/.test(a)&&!s.bools[t]&&!s.allBools&&(!u[t]||!c(t))?(C(t,a,p),y+=1):/^(true|false)$/.test(a)?(C(t,a==="true",p),y+=1):C(t,s.strings[t]?"":!0,p);else if(/^-[^-]+/.test(p)){for(var g=p.slice(1,-1).split(""),_=!1,A=0;A<g.length;A++){if(a=p.slice(A+2),a==="-"){C(g[A],a,p);continue}if(/[A-Za-z]/.test(g[A])&&a[0]==="="){C(g[A],a.slice(1),p),_=!0;break}if(/[A-Za-z]/.test(g[A])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(a)){C(g[A],a,p),_=!0;break}if(g[A+1]&&g[A+1].match(/\W/)){C(g[A],p.slice(A+2),p),_=!0;break}else C(g[A],s.strings[g[A]]?"":!0,p)}t=p.slice(-1)[0],!_&&t!=="-"&&(o[y+1]&&!/^(-|--)[^-]/.test(o[y+1])&&!s.bools[t]&&(!u[t]||!c(t))?(C(t,o[y+1],p),y+=1):o[y+1]&&/^(true|false)$/.test(o[y+1])?(C(t,o[y+1]==="true",p),y+=1):C(t,s.strings[t]?"":!0,p))}else if((!s.unknownFn||s.unknownFn(p)!==!1)&&h._.push(s.strings._||!l(p)?p:Number(p)),D.stopEarly){h._.push.apply(h._,o.slice(y+1));break}}return Object.keys(m).forEach(function(b){n(h,b.split("."))||(E(h,b.split("."),m[b]),(u[b]||[]).forEach(function(O){E(h,O.split("."),m[b])}))}),D["--"]?h["--"]=v.slice():v.forEach(function(b){h._.push(b)}),h}})),bu=w.__commonJSMin(((e,r)=>{var n=vu(),l=require("path").join,i=_u(),o="/etc",D=process.platform==="win32",s=D?process.env.USERPROFILE:process.env.HOME;r.exports=function(u,c,m,h){if(typeof u!="string")throw new Error("rc(name): name *must* be string");m||(m=Au()(process.argv.slice(2))),c=(typeof c=="string"?n.json(c):c)||{},h=h||n.parse;var F=n.env(u+"_"),E=[c],C=[];function v(y){if(!(C.indexOf(y)>=0)){var p=n.file(y);p&&(E.push(h(p)),C.push(y))}}return D||[l(o,u,"config"),l(o,u+"rc")].forEach(v),s&&[l(s,".config",u,"config"),l(s,".config",u),l(s,"."+u,"config"),l(s,"."+u+"rc")].forEach(v),v(n.find("."+u+"rc")),F.config&&v(F.config),m.config&&v(m.config),i.apply(null,E.concat([F,m,C.length?{configs:C,config:C[C.length-1]}:void 0]))}})),wu=w.__toESM(bu(),1);function Bu(e){const r=(0,wu.default)("npm",{registry:"https://registry.npmjs.org/"}),n=r[`${e}:registry`]||r.config_registry||r.registry;return n.slice(-1)==="/"?n:`${n}/`}var Su=w.__commonJSMin(((e,r)=>{var n=require("constants"),l=process.cwd,i=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=l.call(process)),i};try{process.cwd()}catch{}if(typeof process.chdir=="function"){var D=process.chdir;process.chdir=function(u){i=null,D.call(process,u)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,D)}r.exports=s;function s(u){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&c(u),u.lutimes||m(u),u.chown=E(u.chown),u.fchown=E(u.fchown),u.lchown=E(u.lchown),u.chmod=h(u.chmod),u.fchmod=h(u.fchmod),u.lchmod=h(u.lchmod),u.chownSync=C(u.chownSync),u.fchownSync=C(u.fchownSync),u.lchownSync=C(u.lchownSync),u.chmodSync=F(u.chmodSync),u.fchmodSync=F(u.fchmodSync),u.lchmodSync=F(u.lchmodSync),u.stat=v(u.stat),u.fstat=v(u.fstat),u.lstat=v(u.lstat),u.statSync=y(u.statSync),u.fstatSync=y(u.fstatSync),u.lstatSync=y(u.lstatSync),u.chmod&&!u.lchmod&&(u.lchmod=function(t,a,f){f&&process.nextTick(f)},u.lchmodSync=function(){}),u.chown&&!u.lchown&&(u.lchown=function(t,a,f,d){d&&process.nextTick(d)},u.lchownSync=function(){}),o==="win32"&&(u.rename=typeof u.rename!="function"?u.rename:(function(t){function a(f,d,g){var _=Date.now(),A=0;t(f,d,function b(O){if(O&&(O.code==="EACCES"||O.code==="EPERM")&&Date.now()-_<6e4){setTimeout(function(){u.stat(d,function(S,x){S&&S.code==="ENOENT"?t(f,d,b):g(O)})},A),A<100&&(A+=10);return}g&&g(O)})}return Object.setPrototypeOf&&Object.setPrototypeOf(a,t),a})(u.rename)),u.read=typeof u.read!="function"?u.read:(function(t){function a(f,d,g,_,A,b){var O;if(b&&typeof b=="function"){var S=0;O=function(x,V,G){if(x&&x.code==="EAGAIN"&&S<10)return S++,t.call(u,f,d,g,_,A,O);b.apply(this,arguments)}}return t.call(u,f,d,g,_,A,O)}return Object.setPrototypeOf&&Object.setPrototypeOf(a,t),a})(u.read),u.readSync=typeof u.readSync!="function"?u.readSync:(function(t){return function(a,f,d,g,_){for(var A=0;;)try{return t.call(u,a,f,d,g,_)}catch(b){if(b.code==="EAGAIN"&&A<10){A++;continue}throw b}}})(u.readSync);function c(t){t.lchmod=function(a,f,d){t.open(a,n.O_WRONLY|n.O_SYMLINK,f,function(g,_){if(g){d&&d(g);return}t.fchmod(_,f,function(A){t.close(_,function(b){d&&d(A||b)})})})},t.lchmodSync=function(a,f){var d=t.openSync(a,n.O_WRONLY|n.O_SYMLINK,f),g=!0,_;try{_=t.fchmodSync(d,f),g=!1}finally{if(g)try{t.closeSync(d)}catch{}else t.closeSync(d)}return _}}function m(t){n.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(a,f,d,g){t.open(a,n.O_SYMLINK,function(_,A){if(_){g&&g(_);return}t.futimes(A,f,d,function(b){t.close(A,function(O){g&&g(b||O)})})})},t.lutimesSync=function(a,f,d){var g=t.openSync(a,n.O_SYMLINK),_,A=!0;try{_=t.futimesSync(g,f,d),A=!1}finally{if(A)try{t.closeSync(g)}catch{}else t.closeSync(g)}return _}):t.futimes&&(t.lutimes=function(a,f,d,g){g&&process.nextTick(g)},t.lutimesSync=function(){})}function h(t){return t&&function(a,f,d){return t.call(u,a,f,function(g){p(g)&&(g=null),d&&d.apply(this,arguments)})}}function F(t){return t&&function(a,f){try{return t.call(u,a,f)}catch(d){if(!p(d))throw d}}}function E(t){return t&&function(a,f,d,g){return t.call(u,a,f,d,function(_){p(_)&&(_=null),g&&g.apply(this,arguments)})}}function C(t){return t&&function(a,f,d){try{return t.call(u,a,f,d)}catch(g){if(!p(g))throw g}}}function v(t){return t&&function(a,f,d){typeof f=="function"&&(d=f,f=null);function g(_,A){A&&(A.uid<0&&(A.uid+=4294967296),A.gid<0&&(A.gid+=4294967296)),d&&d.apply(this,arguments)}return f?t.call(u,a,f,g):t.call(u,a,g)}}function y(t){return t&&function(a,f){var d=f?t.call(u,a,f):t.call(u,a);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function p(t){return!t||t.code==="ENOSYS"||(!process.getuid||process.getuid()!==0)&&(t.code==="EINVAL"||t.code==="EPERM")}}})),Ou=w.__commonJSMin(((e,r)=>{var n=require("stream").Stream;r.exports=l;function l(i){return{ReadStream:o,WriteStream:D};function o(s,u){if(!(this instanceof o))return new o(s,u);n.call(this);var c=this;this.path=s,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,u=u||{};for(var m=Object.keys(u),h=0,F=m.length;h<F;h++){var E=m[h];this[E]=u[E]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){c._read()});return}i.open(this.path,this.flags,this.mode,function(C,v){if(C){c.emit("error",C),c.readable=!1;return}c.fd=v,c.emit("open",v),c._read()})}function D(s,u){if(!(this instanceof D))return new D(s,u);n.call(this),this.path=s,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,u=u||{};for(var c=Object.keys(u),m=0,h=c.length;m<h;m++){var F=c[m];this[F]=u[F]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}})),xu=w.__commonJSMin(((e,r)=>{r.exports=l;var n=Object.getPrototypeOf||function(i){return i.__proto__};function l(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var o={__proto__:n(i)};else var o=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(D){Object.defineProperty(o,D,Object.getOwnPropertyDescriptor(i,D))}),o}})),Tu=w.__commonJSMin(((e,r)=>{var n=require("fs"),l=Su(),i=Ou(),o=xu(),D=require("util"),s,u;typeof Symbol=="function"&&typeof Symbol.for=="function"?(s=Symbol.for("graceful-fs.queue"),u=Symbol.for("graceful-fs.previous")):(s="___graceful-fs.queue",u="___graceful-fs.previous");function c(){}function m(p,t){Object.defineProperty(p,s,{get:function(){return t}})}var h=c;D.debuglog?h=D.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var p=D.format.apply(D,arguments);p="GFS4: "+p.split(/\n/).join(`
36
+ GFS4: `),console.error(p)}),n[s]||(m(n,global[s]||[]),n.close=(function(p){function t(a,f){return p.call(n,a,function(d){d||v(),typeof f=="function"&&f.apply(this,arguments)})}return Object.defineProperty(t,u,{value:p}),t})(n.close),n.closeSync=(function(p){function t(a){p.apply(n,arguments),v()}return Object.defineProperty(t,u,{value:p}),t})(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){h(n[s]),require("assert").equal(n[s].length,0)})),global[s]||m(global,n[s]),r.exports=F(o(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(r.exports=F(n),n.__patched=!0);function F(p){l(p),p.gracefulify=F,p.createReadStream=ke,p.createWriteStream=je;var t=p.readFile;p.readFile=a;function a(B,R,T){return typeof R=="function"&&(T=R,R=null),M(B,R,T);function M(q,L,N,k){return t(q,L,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?E([M,[q,L,N],P,k||Date.now(),Date.now()]):typeof N=="function"&&N.apply(this,arguments)})}}var f=p.writeFile;p.writeFile=d;function d(B,R,T,M){return typeof T=="function"&&(M=T,T=null),q(B,R,T,M);function q(L,N,k,P,H){return f(L,N,k,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?E([q,[L,N,k,P],I,H||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var g=p.appendFile;g&&(p.appendFile=_);function _(B,R,T,M){return typeof T=="function"&&(M=T,T=null),q(B,R,T,M);function q(L,N,k,P,H){return g(L,N,k,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?E([q,[L,N,k,P],I,H||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var A=p.copyFile;A&&(p.copyFile=b);function b(B,R,T,M){return typeof T=="function"&&(M=T,T=0),q(B,R,T,M);function q(L,N,k,P,H){return A(L,N,k,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?E([q,[L,N,k,P],I,H||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var O=p.readdir;p.readdir=x;var S=/^v[0-5]\./;function x(B,R,T){typeof R=="function"&&(T=R,R=null);var M=S.test(process.version)?function(N,k,P,H){return O(N,q(N,k,P,H))}:function(N,k,P,H){return O(N,k,q(N,k,P,H))};return M(B,R,T);function q(L,N,k,P){return function(H,I){H&&(H.code==="EMFILE"||H.code==="ENFILE")?E([M,[L,N,k],H,P||Date.now(),Date.now()]):(I&&I.sort&&I.sort(),typeof k=="function"&&k.call(this,H,I))}}}if(process.version.substr(0,4)==="v0.8"){var V=i(p);Y=V.ReadStream,K=V.WriteStream}var G=p.ReadStream;G&&(Y.prototype=Object.create(G.prototype),Y.prototype.open=Ie);var J=p.WriteStream;J&&(K.prototype=Object.create(J.prototype),K.prototype.open=Ne),Object.defineProperty(p,"ReadStream",{get:function(){return Y},set:function(B){Y=B},enumerable:!0,configurable:!0}),Object.defineProperty(p,"WriteStream",{get:function(){return K},set:function(B){K=B},enumerable:!0,configurable:!0});var ge=Y;Object.defineProperty(p,"FileReadStream",{get:function(){return ge},set:function(B){ge=B},enumerable:!0,configurable:!0});var Ee=K;Object.defineProperty(p,"FileWriteStream",{get:function(){return Ee},set:function(B){Ee=B},enumerable:!0,configurable:!0});function Y(B,R){return this instanceof Y?(G.apply(this,arguments),this):Y.apply(Object.create(Y.prototype),arguments)}function Ie(){var B=this;ce(B.path,B.flags,B.mode,function(R,T){R?(B.autoClose&&B.destroy(),B.emit("error",R)):(B.fd=T,B.emit("open",T),B.read())})}function K(B,R){return this instanceof K?(J.apply(this,arguments),this):K.apply(Object.create(K.prototype),arguments)}function Ne(){var B=this;ce(B.path,B.flags,B.mode,function(R,T){R?(B.destroy(),B.emit("error",R)):(B.fd=T,B.emit("open",T))})}function ke(B,R){return new p.ReadStream(B,R)}function je(B,R){return new p.WriteStream(B,R)}var Le=p.open;p.open=ce;function ce(B,R,T,M){return typeof T=="function"&&(M=T,T=null),q(B,R,T,M);function q(L,N,k,P,H){return Le(L,N,k,function(I,Fr){I&&(I.code==="EMFILE"||I.code==="ENFILE")?E([q,[L,N,k,P],I,H||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}return p}function E(p){h("ENQUEUE",p[0].name,p[1]),n[s].push(p),y()}var C;function v(){for(var p=Date.now(),t=0;t<n[s].length;++t)n[s][t].length>2&&(n[s][t][3]=p,n[s][t][4]=p);y()}function y(){if(clearTimeout(C),C=void 0,n[s].length!==0){var p=n[s].shift(),t=p[0],a=p[1],f=p[2],d=p[3],g=p[4];if(d===void 0)h("RETRY",t.name,a),t.apply(null,a);else if(Date.now()-d>=6e4){h("TIMEOUT",t.name,a);var _=a.pop();typeof _=="function"&&_.call(null,f)}else{var A=Date.now()-g,b=Math.max(g-d,1);A>=Math.min(b*1.2,100)?(h("RETRY",t.name,a),t.apply(null,a.concat([d]))):n[s].push(p)}C===void 0&&(C=setTimeout(y,0))}}})),Ru=w.__commonJSMin((e=>{var r=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.readCAFileSync=void 0;var n=r(Tu());function l(i){try{const o=n.default.readFileSync(i,"utf8"),D="-----END CERTIFICATE-----";return o.split(D).filter(s=>!!s.trim()).map(s=>`${s.trimLeft()}${D}`)}catch(o){if(o.code==="ENOENT")return;throw o}}e.readCAFileSync=l})),$u=w.__commonJSMin((e=>{var r=e&&e.__createBinding||(Object.create?(function(l,i,o,D){D===void 0&&(D=o);var s=Object.getOwnPropertyDescriptor(i,o);(!s||("get"in s?!i.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(l,D,s)}):(function(l,i,o,D){D===void 0&&(D=o),l[D]=i[o]})),n=e&&e.__exportStar||function(l,i){for(var o in l)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&r(i,l,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ru(),e)})),Pu=w.__commonJSMin(((e,r)=>{r.exports=l;function n(i,o){if(typeof Object.setPrototypeOf=="function")return Object.setPrototypeOf(i,o);i.__proto__=o}function l(){this.list=[];var i=null;Object.defineProperty(this,"root",{get:function(){return i},set:function(o){i=o,this.list.length&&n(this.list[this.list.length-1],o)},enumerable:!0,configurable:!0})}l.prototype={get length(){return this.list.length},get keys(){var i=[];for(var o in this.list[0])i.push(o);return i},get snapshot(){var i={};return this.keys.forEach(function(o){i[o]=this.get(o)},this),i},get store(){return this.list[0]},push:function(i){return typeof i!="object"&&(i={valueOf:i}),this.list.length>=1&&n(this.list[this.list.length-1],i),n(i,this.root),this.list.push(i)},pop:function(){return this.list.length>=2&&n(this.list[this.list.length-2],this.root),this.list.pop()},unshift:function(i){return n(i,this.list[0]||this.root),this.list.unshift(i)},shift:function(){return this.list.length===1&&n(this.list[0],this.root),this.list.shift()},get:function(i){return this.list[0][i]},set:function(i,o,D){return this.length||this.push({}),D&&this.list[0].hasOwnProperty(i)&&this.push({}),this.list[0][i]=o},forEach:function(i,o){for(var D in this.list[0])i.call(o,D,this.list[0][D])},slice:function(){return this.list.slice.apply(this.list,arguments)},splice:function(){for(var i=this.list.splice.apply(this.list,arguments),o=0,D=this.list.length;o<D;o++)n(this.list[o],this.list[o+1]||this.root);return i}}})),Iu=w.__commonJSMin((e=>{e.parse=e.decode=i,e.stringify=e.encode=n,e.safe=D,e.unsafe=s;var r=typeof process<"u"&&process.platform==="win32"?`\r
37
37
  `:`
38
38
  `;function n(u,c){var m=[],h="";typeof c=="string"?c={section:c,whitespace:!1}:(c=c||{},c.whitespace=c.whitespace===!0);var F=c.whitespace?" = ":"=";return Object.keys(u).forEach(function(E,C,v){var y=u[E];y&&Array.isArray(y)?y.forEach(function(p){h+=D(E+"[]")+F+D(p)+`
39
- `}):y&&typeof y=="object"?m.push(E):h+=D(E)+F+D(y)+r}),c.section&&h.length&&(h="["+D(c.section)+"]"+r+h),m.forEach(function(E,C,v){var y=l(E).join("\\."),p=(c.section?c.section+".":"")+y,t=n(u[E],{section:p,whitespace:c.whitespace});h.length&&t.length&&(h+=r),h+=t}),h}function l(u){return u.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(c){return c.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function i(u){var c={},m=c,h=null,F=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;return u.split(/[\r\n]+/g).forEach(function(E,C,v){if(!(!E||E.match(/^\s*[;#]/))){var y=E.match(F);if(y){if(y[1]!==void 0){if(h=s(y[1]),h==="__proto__"){m={};return}m=c[h]=c[h]||{};return}var p=s(y[2]);if(p!=="__proto__"){var t=y[3]?s(y[4]):!0;switch(t){case"true":case"false":case"null":t=JSON.parse(t)}if(p.length>2&&p.slice(-2)==="[]"){if(p=p.substring(0,p.length-2),p==="__proto__")return;m[p]?Array.isArray(m[p])||(m[p]=[m[p]]):m[p]=[]}Array.isArray(m[p])?m[p].push(t):m[p]=t}}}}),Object.keys(c).filter(function(E,C,v){if(!c[E]||typeof c[E]!="object"||Array.isArray(c[E]))return!1;var y=l(E),p=c,t=y.pop(),a=t.replace(/\\\./g,".");return y.forEach(function(f,d,g){f!=="__proto__"&&((!p[f]||typeof p[f]!="object")&&(p[f]={}),p=p[f])}),p===c&&a===t?!1:(p[a]=c[E],!0)}).forEach(function(E,C,v){delete c[E]}),c}function o(u){return u.charAt(0)==='"'&&u.slice(-1)==='"'||u.charAt(0)==="'"&&u.slice(-1)==="'"}function D(u){return typeof u!="string"||u.match(/[=\r\n]/)||u.match(/^\[/)||u.length>1&&o(u)||u!==u.trim()?JSON.stringify(u):u.replace(/;/g,"\\;").replace(/#/g,"\\#")}function s(u,c){if(u=(u||"").trim(),o(u)){u.charAt(0)==="'"&&(u=u.substr(1,u.length-2));try{u=JSON.parse(u)}catch{}}else{for(var m=!1,h="",F=0,E=u.length;F<E;F++){var C=u.charAt(F);if(m)"\\;#".indexOf(C)!==-1?h+=C:h+="\\"+C,m=!1;else{if(";#".indexOf(C)!==-1)break;C==="\\"?m=!0:h+=C}}return m&&(h+="\\"),h.trim()}return u}})),ju=T.__commonJSMin(((c,r)=>{var n=Nu(),l=require("path"),i=require("fs"),o=ku(),D=require("events").EventEmitter,s=require("url"),u=require("http"),c=r.exports=function(){for(var C=[].slice.call(arguments),v=new F;C.length;){var y=C.shift();y&&v.push(typeof y=="string"?h(y):y)}return v};c.find=function(){var C=l.join.apply(null,[].slice.call(arguments));function v(y,p){var t=l.join(y,p);try{return i.statSync(t),t}catch{if(l.dirname(y)!==y)return v(l.dirname(y),p)}}return v(__dirname,C)};var m=c.parse=function(C,v,y){if(C=""+C,y)if(y==="json")if(this.emit)try{return JSON.parse(C)}catch(p){this.emit("error",p)}else return JSON.parse(C);else return o.parse(C);else try{return JSON.parse(C)}catch{return o.parse(C)}},h=c.json=function(){var C=[].slice.call(arguments).filter(function(p){return p!=null}),v=l.join.apply(null,C),y;try{y=i.readFileSync(v,"utf-8")}catch{return}return m(y,v,"json")};c.env=function(C,v){v=v||process.env;var y={},p=C.length;for(var t in v)t.indexOf(C)===0&&(y[t.substring(p)]=v[t]);return y},c.ConfigChain=F;function F(){D.apply(this),n.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var E={constructor:{value:F}};Object.keys(D.prototype).forEach(function(C){E[C]=Object.getOwnPropertyDescriptor(D.prototype,C)}),F.prototype=Object.create(n.prototype,E),F.prototype.del=function(C,v){if(v){var y=this.sources[v];if(y=y&&y.data,!y)return this.emit("error",new Error("not found "+v));delete y[C]}else for(var p=0,t=this.list.length;p<t;p++)delete this.list[p][C];return this},F.prototype.set=function(C,v,y){var p;if(y){if(p=this.sources[y],p=p&&p.data,!p)return this.emit("error",new Error("not found "+y))}else if(p=this.list[0],!p)return this.emit("error",new Error("cannot set, no confs!"));return p[C]=v,this},F.prototype.get=function(C,v){return v?(v=this.sources[v],v&&(v=v.data),v&&Object.hasOwnProperty.call(v,C)?v[C]:void 0):this.list[0][C]},F.prototype.save=function(C,a,y){typeof a=="function"&&(y=a,a=null);var p=this.sources[C];if(!p||!(p.path||p.source)||!p.data)return this.emit("error",new Error("bad save target: "+C));if(p.source){var t=p.prefix||"";return Object.keys(p.data).forEach(function(d){p.source[t+d]=p.data[d]}),this}var a=a||p.type,f=p.data;return p.type==="json"?f=JSON.stringify(f):f=o.stringify(f),this._saving++,i.writeFile(p.path,f,"utf8",function(d){if(this._saving--,d)return y?y(d):this.emit("error",d);this._saving===0&&(y&&y(),this.emit("save"))}.bind(this)),this},F.prototype.addFile=function(C,v,y){y=y||C;var p={__source__:y};return this.sources[y]={path:C,type:v},this.push(p),this._await(),i.readFile(C,"utf8",function(t,a){t&&this.emit("error",t),this.addString(a,C,v,p)}.bind(this)),this},F.prototype.addEnv=function(C,v,y){y=y||"env";var p=c.env(C,v);return this.sources[y]={data:p,source:v,prefix:C},this.add(p,y)},F.prototype.addUrl=function(C,v,y){this._await();var p=s.format(C);y=y||p;var t={__source__:y};return this.sources[y]={href:p,type:v},this.push(t),u.request(C,function(a){var f=[],d=a.headers["content-type"];v||(v=d.indexOf("json")!==-1?"json":d.indexOf("ini")!==-1?"ini":p.match(/\.json$/)?"json":p.match(/\.ini$/)?"ini":null,t.type=v),a.on("data",f.push.bind(f)).on("end",function(){this.addString(Buffer.concat(f),p,v,t)}.bind(this)).on("error",this.emit.bind(this,"error"))}.bind(this)).on("error",this.emit.bind(this,"error")).end(),this},F.prototype.addString=function(C,v,y,p){return C=this.parse(C,v,y),this.add(C,p),this},F.prototype.add=function(C,v){if(v&&typeof v=="object"){var y=this.list.indexOf(v);if(y===-1)return this.emit("error",new Error("bad marker"));this.splice(y,1,C),v=v.__source__,this.sources[v]=this.sources[v]||{},this.sources[v].data=C,this._resolve()}else typeof v=="string"&&(this.sources[v]=this.sources[v]||{},this.sources[v].data=C),this._await(),this.push(C),process.nextTick(this._resolve.bind(this));return this},F.prototype.parse=c.parse,F.prototype._await=function(){this._awaiting++},F.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit("load",this)}})),Lu=T.__commonJSMin(((e,r)=>{r.exports=function(l){const i=l.indexOf(":");return i===-1?n(l):`${l.substr(0,i)}:${n(l.substr(i+1))}`};function n(l){if(l=l.toLowerCase(),l==="_authtoken")return"_authToken";let i=l[0];for(let o=1;o<l.length;o++)i+=l[o]==="_"?"-":l[o];return i}})),Mu=T.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.envReplace=void 0;var r=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;function n(D,s){return D.replace(r,l.bind(null,s))}e.envReplace=n;function l(D,s,u,c){if(u.length%2)return s.slice((u.length+1)/2);const m=o(D,c);if(m===void 0)throw new Error(`Failed to replace env in config: ${s}`);return`${u.slice(u.length/2)}${m}`}var i=/([^:-]+)(:?)-(.+)/;function o(D,s){const u=s.match(i);if(!u)return D[s];const[,c,m,h]=u;return Object.prototype.hasOwnProperty.call(D,c)?!D[c]&&m?h:D[c]:h}})),qu=T.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.envReplace=void 0;var r=Mu();Object.defineProperty(e,"envReplace",{enumerable:!0,get:function(){return r.envReplace}})})),Hu=T.__commonJSMin((e=>{var r=require("fs"),n=require("path"),{envReplace:l}=qu(),i=s=>typeof s!="string"?s:l(s,process.env),o=(s,u,c)=>{if(typeof u!="string")return u;const m=[].concat(s[c]),h=m.indexOf(n)!==-1,F=m.indexOf(Boolean)!==-1,E=m.indexOf(String)!==-1,C=m.indexOf(Number)!==-1;if(u=`${u}`.trim(),/^".*"$/.test(u))try{u=JSON.parse(u)}catch{throw new Error(`Failed parsing JSON config key ${c}: ${u}`)}if(F&&!E&&u==="")return!0;switch(u){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}const v=l(u,process.env);if((c.endsWith(":tokenHelper")||c==="tokenHelper")&&v!==u)throw new Error(`It is not allowed to use environment variables in the value of the ${c} setting.`);return u=v,h&&((process.platform==="win32"?/^~(\/|\\)/:/^~\//).test(u)&&process.env.HOME&&(u=n.resolve(process.env.HOME,u.substr(2))),u=n.resolve(u)),C&&!isNaN(u)&&(u=Number(u)),u},D=s=>{s=n.resolve(s);let u=!1;for(;n.basename(s)==="node_modules";)s=n.dirname(s),u=!0;if(u)return s;const c=(m,h)=>{if(m==="/"||process.platform==="win32"&&/^[a-zA-Z]:(\\|\/)?$/.test(m))return h;try{const F=r.readdirSync(m);if(F.includes("node_modules")||F.includes("package.json")||F.includes("package.json5")||F.includes("package.yaml")||F.includes("pnpm-workspace.yaml"))return m;const E=n.dirname(m);return E===m?h:c(E,h)}catch(F){if(m===h){if(F.code==="ENOENT")return h;throw F}return h}};return c(s,s)};e.envReplace=l,e.findPrefix=D,e.parseField=o,e.parseKey=i})),Wu=T.__commonJSMin((e=>{var r=require("path"),n=require("stream").Stream,l=require("url"),i=()=>{},o=()=>[],D=()=>{};e.types={access:[null,"restricted","public"],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,"dev","development"],audit:Boolean,"auth-type":["legacy","sso","saml","oauth"],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:r,cache:r,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],cidr:[null,String,Array],color:["always",Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,"commit-hooks":Boolean,global:Boolean,globalconfig:r,"global-style":Boolean,group:[Number,String],"https-proxy":[null,l],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":r,"init-author-name":String,"init-author-email":String,"init-author-url":["",l],"init-license":String,"init-version":D,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":o(),loglevel:["silent","error","warn","notice","http","timing","info","verbose","silly"],logstream:n,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-options":[null,String],"node-version":[null,D],"no-proxy":[null,String,Array],offline:Boolean,"onload-script":[null,String],only:[null,"dev","development","prod","production"],optional:Boolean,"package-lock":Boolean,otp:[null,String],"package-lock-only":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:r,production:Boolean,progress:Boolean,proxy:[null,!1,l],provenance:Boolean,"read-only":Boolean,"rebuild-bundle":Boolean,registry:[null,l],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[!1,!0,"auto","warn-only"],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,"oauth","saml"],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:r,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:r,umask:i,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}})),Vu=T.__commonJSMin(((e,r)=>{var{readCAFileSync:n}=Iu(),l=require("fs"),i=require("path"),{ConfigChain:o}=ju(),D=Lu(),s=Hu(),u=class extends o{constructor(m,h){super(m),this.root=m,this._parseField=s.parseField.bind(null,h||Wu())}add(m,h){try{for(const[F,E]of Object.entries(m)){const C=s.parseKey(F);C!==F&&delete m[F],m[C]=this._parseField(E,C)}}catch(F){throw F}return super.add(m,h)}addFile(m,h){h=h||m;const F={__source__:h};this.sources[h]={path:m,type:"ini"},this.push(F),this._await();try{const E=l.readFileSync(m,"utf8");this.addString(E,m,"ini",F)}catch(E){if(E.code==="ENOENT")this.add({},F);else if(E.code!=="EISDIR")return`Issue while reading "${m}". ${E.message}`}}addEnv(m){m=m||process.env;const h={};return Object.keys(m).filter(F=>/^npm_config_/i.test(F)).forEach(F=>{if(!m[F])return;const E=D(F.substr(11)),C=m[F];h[E]=c(E,C)}),super.addEnv("",h,"env")}loadPrefix(){const m=this.list[0];Object.defineProperty(this,"prefix",{enumerable:!0,set:F=>{const E=this.get("global");this[E?"globalPrefix":"localPrefix"]=F},get:()=>this.get("global")?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,"globalPrefix",{enumerable:!0,set:F=>{this.set("prefix",F)},get:()=>i.resolve(this.get("prefix"))});let h;if(Object.defineProperty(this,"localPrefix",{enumerable:!0,set:F=>{h=F},get:()=>h}),Object.prototype.hasOwnProperty.call(m,"prefix"))h=i.resolve(m.prefix);else try{h=s.findPrefix(process.cwd())}catch(F){throw F}return h}loadCAFile(m){if(!m)return;const h=n(m);h&&this.set("ca",h)}loadUser(){const m=this.root;if(this.get("global"))return;if(process.env.SUDO_UID){m.user=Number(process.env.SUDO_UID);return}const h=i.resolve(this.get("prefix"));try{m.user=l.statSync(h).uid}catch(F){if(F.code==="ENOENT")return;throw F}}};function c(m,h){function F(E){return E.indexOf(`
39
+ `}):y&&typeof y=="object"?m.push(E):h+=D(E)+F+D(y)+r}),c.section&&h.length&&(h="["+D(c.section)+"]"+r+h),m.forEach(function(E,C,v){var y=l(E).join("\\."),p=(c.section?c.section+".":"")+y,t=n(u[E],{section:p,whitespace:c.whitespace});h.length&&t.length&&(h+=r),h+=t}),h}function l(u){return u.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(c){return c.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function i(u){var c={},m=c,h=null,F=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;return u.split(/[\r\n]+/g).forEach(function(E,C,v){if(!(!E||E.match(/^\s*[;#]/))){var y=E.match(F);if(y){if(y[1]!==void 0){if(h=s(y[1]),h==="__proto__"){m={};return}m=c[h]=c[h]||{};return}var p=s(y[2]);if(p!=="__proto__"){var t=y[3]?s(y[4]):!0;switch(t){case"true":case"false":case"null":t=JSON.parse(t)}if(p.length>2&&p.slice(-2)==="[]"){if(p=p.substring(0,p.length-2),p==="__proto__")return;m[p]?Array.isArray(m[p])||(m[p]=[m[p]]):m[p]=[]}Array.isArray(m[p])?m[p].push(t):m[p]=t}}}}),Object.keys(c).filter(function(E,C,v){if(!c[E]||typeof c[E]!="object"||Array.isArray(c[E]))return!1;var y=l(E),p=c,t=y.pop(),a=t.replace(/\\\./g,".");return y.forEach(function(f,d,g){f!=="__proto__"&&((!p[f]||typeof p[f]!="object")&&(p[f]={}),p=p[f])}),p===c&&a===t?!1:(p[a]=c[E],!0)}).forEach(function(E,C,v){delete c[E]}),c}function o(u){return u.charAt(0)==='"'&&u.slice(-1)==='"'||u.charAt(0)==="'"&&u.slice(-1)==="'"}function D(u){return typeof u!="string"||u.match(/[=\r\n]/)||u.match(/^\[/)||u.length>1&&o(u)||u!==u.trim()?JSON.stringify(u):u.replace(/;/g,"\\;").replace(/#/g,"\\#")}function s(u,c){if(u=(u||"").trim(),o(u)){u.charAt(0)==="'"&&(u=u.substr(1,u.length-2));try{u=JSON.parse(u)}catch{}}else{for(var m=!1,h="",F=0,E=u.length;F<E;F++){var C=u.charAt(F);if(m)"\\;#".indexOf(C)!==-1?h+=C:h+="\\"+C,m=!1;else{if(";#".indexOf(C)!==-1)break;C==="\\"?m=!0:h+=C}}return m&&(h+="\\"),h.trim()}return u}})),Nu=w.__commonJSMin(((c,r)=>{var n=Pu(),l=require("path"),i=require("fs"),o=Iu(),D=require("events").EventEmitter,s=require("url"),u=require("http"),c=r.exports=function(){for(var C=[].slice.call(arguments),v=new F;C.length;){var y=C.shift();y&&v.push(typeof y=="string"?h(y):y)}return v};c.find=function(){var C=l.join.apply(null,[].slice.call(arguments));function v(y,p){var t=l.join(y,p);try{return i.statSync(t),t}catch{if(l.dirname(y)!==y)return v(l.dirname(y),p)}}return v(__dirname,C)};var m=c.parse=function(C,v,y){if(C=""+C,y)if(y==="json")if(this.emit)try{return JSON.parse(C)}catch(p){this.emit("error",p)}else return JSON.parse(C);else return o.parse(C);else try{return JSON.parse(C)}catch{return o.parse(C)}},h=c.json=function(){var C=[].slice.call(arguments).filter(function(p){return p!=null}),v=l.join.apply(null,C),y;try{y=i.readFileSync(v,"utf-8")}catch{return}return m(y,v,"json")};c.env=function(C,v){v=v||process.env;var y={},p=C.length;for(var t in v)t.indexOf(C)===0&&(y[t.substring(p)]=v[t]);return y},c.ConfigChain=F;function F(){D.apply(this),n.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var E={constructor:{value:F}};Object.keys(D.prototype).forEach(function(C){E[C]=Object.getOwnPropertyDescriptor(D.prototype,C)}),F.prototype=Object.create(n.prototype,E),F.prototype.del=function(C,v){if(v){var y=this.sources[v];if(y=y&&y.data,!y)return this.emit("error",new Error("not found "+v));delete y[C]}else for(var p=0,t=this.list.length;p<t;p++)delete this.list[p][C];return this},F.prototype.set=function(C,v,y){var p;if(y){if(p=this.sources[y],p=p&&p.data,!p)return this.emit("error",new Error("not found "+y))}else if(p=this.list[0],!p)return this.emit("error",new Error("cannot set, no confs!"));return p[C]=v,this},F.prototype.get=function(C,v){return v?(v=this.sources[v],v&&(v=v.data),v&&Object.hasOwnProperty.call(v,C)?v[C]:void 0):this.list[0][C]},F.prototype.save=function(C,a,y){typeof a=="function"&&(y=a,a=null);var p=this.sources[C];if(!p||!(p.path||p.source)||!p.data)return this.emit("error",new Error("bad save target: "+C));if(p.source){var t=p.prefix||"";return Object.keys(p.data).forEach(function(d){p.source[t+d]=p.data[d]}),this}var a=a||p.type,f=p.data;return p.type==="json"?f=JSON.stringify(f):f=o.stringify(f),this._saving++,i.writeFile(p.path,f,"utf8",function(d){if(this._saving--,d)return y?y(d):this.emit("error",d);this._saving===0&&(y&&y(),this.emit("save"))}.bind(this)),this},F.prototype.addFile=function(C,v,y){y=y||C;var p={__source__:y};return this.sources[y]={path:C,type:v},this.push(p),this._await(),i.readFile(C,"utf8",function(t,a){t&&this.emit("error",t),this.addString(a,C,v,p)}.bind(this)),this},F.prototype.addEnv=function(C,v,y){y=y||"env";var p=c.env(C,v);return this.sources[y]={data:p,source:v,prefix:C},this.add(p,y)},F.prototype.addUrl=function(C,v,y){this._await();var p=s.format(C);y=y||p;var t={__source__:y};return this.sources[y]={href:p,type:v},this.push(t),u.request(C,function(a){var f=[],d=a.headers["content-type"];v||(v=d.indexOf("json")!==-1?"json":d.indexOf("ini")!==-1?"ini":p.match(/\.json$/)?"json":p.match(/\.ini$/)?"ini":null,t.type=v),a.on("data",f.push.bind(f)).on("end",function(){this.addString(Buffer.concat(f),p,v,t)}.bind(this)).on("error",this.emit.bind(this,"error"))}.bind(this)).on("error",this.emit.bind(this,"error")).end(),this},F.prototype.addString=function(C,v,y,p){return C=this.parse(C,v,y),this.add(C,p),this},F.prototype.add=function(C,v){if(v&&typeof v=="object"){var y=this.list.indexOf(v);if(y===-1)return this.emit("error",new Error("bad marker"));this.splice(y,1,C),v=v.__source__,this.sources[v]=this.sources[v]||{},this.sources[v].data=C,this._resolve()}else typeof v=="string"&&(this.sources[v]=this.sources[v]||{},this.sources[v].data=C),this._await(),this.push(C),process.nextTick(this._resolve.bind(this));return this},F.prototype.parse=c.parse,F.prototype._await=function(){this._awaiting++},F.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit("load",this)}})),ku=w.__commonJSMin(((e,r)=>{r.exports=function(l){const i=l.indexOf(":");return i===-1?n(l):`${l.substr(0,i)}:${n(l.substr(i+1))}`};function n(l){if(l=l.toLowerCase(),l==="_authtoken")return"_authToken";let i=l[0];for(let o=1;o<l.length;o++)i+=l[o]==="_"?"-":l[o];return i}})),ju=w.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.envReplace=void 0;var r=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;function n(D,s){return D.replace(r,l.bind(null,s))}e.envReplace=n;function l(D,s,u,c){if(u.length%2)return s.slice((u.length+1)/2);const m=o(D,c);if(m===void 0)throw new Error(`Failed to replace env in config: ${s}`);return`${u.slice(u.length/2)}${m}`}var i=/([^:-]+)(:?)-(.+)/;function o(D,s){const u=s.match(i);if(!u)return D[s];const[,c,m,h]=u;return Object.prototype.hasOwnProperty.call(D,c)?!D[c]&&m?h:D[c]:h}})),Lu=w.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.envReplace=void 0;var r=ju();Object.defineProperty(e,"envReplace",{enumerable:!0,get:function(){return r.envReplace}})})),Mu=w.__commonJSMin((e=>{var r=require("fs"),n=require("path"),{envReplace:l}=Lu(),i=s=>typeof s!="string"?s:l(s,process.env),o=(s,u,c)=>{if(typeof u!="string")return u;const m=[].concat(s[c]),h=m.indexOf(n)!==-1,F=m.indexOf(Boolean)!==-1,E=m.indexOf(String)!==-1,C=m.indexOf(Number)!==-1;if(u=`${u}`.trim(),/^".*"$/.test(u))try{u=JSON.parse(u)}catch{throw new Error(`Failed parsing JSON config key ${c}: ${u}`)}if(F&&!E&&u==="")return!0;switch(u){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}const v=l(u,process.env);if((c.endsWith(":tokenHelper")||c==="tokenHelper")&&v!==u)throw new Error(`It is not allowed to use environment variables in the value of the ${c} setting.`);return u=v,h&&((process.platform==="win32"?/^~(\/|\\)/:/^~\//).test(u)&&process.env.HOME&&(u=n.resolve(process.env.HOME,u.substr(2))),u=n.resolve(u)),C&&!isNaN(u)&&(u=Number(u)),u},D=s=>{s=n.resolve(s);let u=!1;for(;n.basename(s)==="node_modules";)s=n.dirname(s),u=!0;if(u)return s;const c=(m,h)=>{if(m==="/"||process.platform==="win32"&&/^[a-zA-Z]:(\\|\/)?$/.test(m))return h;try{const F=r.readdirSync(m);if(F.includes("node_modules")||F.includes("package.json")||F.includes("package.json5")||F.includes("package.yaml")||F.includes("pnpm-workspace.yaml"))return m;const E=n.dirname(m);return E===m?h:c(E,h)}catch(F){if(m===h){if(F.code==="ENOENT")return h;throw F}return h}};return c(s,s)};e.envReplace=l,e.findPrefix=D,e.parseField=o,e.parseKey=i})),qu=w.__commonJSMin((e=>{var r=require("path"),n=require("stream").Stream,l=require("url"),i=()=>{},o=()=>[],D=()=>{};e.types={access:[null,"restricted","public"],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,"dev","development"],audit:Boolean,"auth-type":["legacy","sso","saml","oauth"],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:r,cache:r,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],cidr:[null,String,Array],color:["always",Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,"commit-hooks":Boolean,global:Boolean,globalconfig:r,"global-style":Boolean,group:[Number,String],"https-proxy":[null,l],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":r,"init-author-name":String,"init-author-email":String,"init-author-url":["",l],"init-license":String,"init-version":D,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":o(),loglevel:["silent","error","warn","notice","http","timing","info","verbose","silly"],logstream:n,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-options":[null,String],"node-version":[null,D],"no-proxy":[null,String,Array],offline:Boolean,"onload-script":[null,String],only:[null,"dev","development","prod","production"],optional:Boolean,"package-lock":Boolean,otp:[null,String],"package-lock-only":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:r,production:Boolean,progress:Boolean,proxy:[null,!1,l],provenance:Boolean,"read-only":Boolean,"rebuild-bundle":Boolean,registry:[null,l],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[!1,!0,"auto","warn-only"],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,"oauth","saml"],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:r,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:r,umask:i,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}})),Hu=w.__commonJSMin(((e,r)=>{var{readCAFileSync:n}=$u(),l=require("fs"),i=require("path"),{ConfigChain:o}=Nu(),D=ku(),s=Mu(),u=class extends o{constructor(m,h){super(m),this.root=m,this._parseField=s.parseField.bind(null,h||qu())}add(m,h){try{for(const[F,E]of Object.entries(m)){const C=s.parseKey(F);C!==F&&delete m[F],m[C]=this._parseField(E,C)}}catch(F){throw F}return super.add(m,h)}addFile(m,h){h=h||m;const F={__source__:h};this.sources[h]={path:m,type:"ini"},this.push(F),this._await();try{const E=l.readFileSync(m,"utf8");this.addString(E,m,"ini",F)}catch(E){if(E.code==="ENOENT")this.add({},F);else if(E.code!=="EISDIR")return`Issue while reading "${m}". ${E.message}`}}addEnv(m){m=m||process.env;const h={};return Object.keys(m).filter(F=>/^npm_config_/i.test(F)).forEach(F=>{if(!m[F])return;const E=D(F.substr(11)),C=m[F];h[E]=c(E,C)}),super.addEnv("",h,"env")}loadPrefix(){const m=this.list[0];Object.defineProperty(this,"prefix",{enumerable:!0,set:F=>{const E=this.get("global");this[E?"globalPrefix":"localPrefix"]=F},get:()=>this.get("global")?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,"globalPrefix",{enumerable:!0,set:F=>{this.set("prefix",F)},get:()=>i.resolve(this.get("prefix"))});let h;if(Object.defineProperty(this,"localPrefix",{enumerable:!0,set:F=>{h=F},get:()=>h}),Object.prototype.hasOwnProperty.call(m,"prefix"))h=i.resolve(m.prefix);else try{h=s.findPrefix(process.cwd())}catch(F){throw F}return h}loadCAFile(m){if(!m)return;const h=n(m);h&&this.set("ca",h)}loadUser(){const m=this.root;if(this.get("global"))return;if(process.env.SUDO_UID){m.user=Number(process.env.SUDO_UID);return}const h=i.resolve(this.get("prefix"));try{m.user=l.statSync(h).uid}catch(F){if(F.code==="ENOENT")return;throw F}}};function c(m,h){function F(E){return E.indexOf(`
40
40
 
41
41
  `)?E.split(`
42
42
 
43
- `):E.split(",")}switch(m){case"hoist-pattern":case"public-hoist-pattern":return F(h)}return h}r.exports=u})),Uu=T.__commonJSMin((e=>{var r=require("os"),n=require("path"),l=r.tmpdir(),i=process.getuid?process.getuid():process.pid,o=()=>!0,D=process.platform==="win32",s={editor:()=>process.env.EDITOR||process.env.VISUAL||(D?"notepad.exe":"vi"),shell:()=>D?process.env.COMSPEC||"cmd.exe":process.env.SHELL||"/bin/bash"},u={fromString:()=>process.umask()},c=r.homedir();c?process.env.HOME=c:c=n.resolve(l,"npm-"+i);var m=process.platform==="win32"?"npm-cache":".npm",h=process.platform==="win32"&&process.env.APPDATA||c,F=n.resolve(h,m),E,C;Object.defineProperty(e,"defaults",{get:function(){return E||(process.env.PREFIX?C=process.env.PREFIX:process.platform==="win32"?C=n.dirname(process.execPath):(C=n.dirname(n.dirname(process.execPath)),process.env.DESTDIR&&(C=n.join(process.env.DESTDIR,C))),E={access:null,"allow-same-version":!1,"always-auth":!1,also:null,audit:!0,"auth-type":"legacy","bin-links":!0,browser:null,ca:null,cafile:null,cache:F,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":1/0,"cache-min":10,cert:null,cidr:null,color:process.env.NO_COLOR==null,depth:1/0,description:!0,dev:!1,"dry-run":!1,editor:s.editor(),"engine-strict":!1,force:!1,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:"git","git-tag-version":!0,"commit-hooks":!0,global:!1,globalconfig:n.resolve(C,"etc","npmrc"),"global-style":!1,group:process.platform==="win32"?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":!1,heading:"npm","if-present":!1,"ignore-prepublish":!1,"ignore-scripts":!1,"init-module":n.resolve(c,".npm-init.js"),"init-author-name":"","init-author-email":"","init-author-url":"","init-version":"1.0.0","init-license":"ISC",json:!1,key:null,"legacy-bundling":!1,link:!1,"local-address":void 0,loglevel:"notice",logstream:process.stderr,"logs-max":10,long:!1,maxsockets:50,message:"%s","metrics-registry":null,"node-options":null,offline:!1,"onload-script":!1,only:null,optional:!0,otp:null,"package-lock":!0,"package-lock-only":!1,parseable:!1,"prefer-offline":!1,"prefer-online":!1,prefix:C,production:!1,progress:!process.env.TRAVIS&&!process.env.CI,provenance:!1,proxy:null,"https-proxy":null,"no-proxy":null,"user-agent":"npm/{npm-version} node/{node-version} {platform} {arch}","read-only":!1,"rebuild-bundle":!0,registry:"https://registry.npmjs.org/",rollback:!0,save:!0,"save-bundle":!1,"save-dev":!1,"save-exact":!1,"save-optional":!1,"save-prefix":"^","save-prod":!1,scope:"","script-shell":null,"scripts-prepend-node-path":"warn-only",searchopts:"",searchexclude:null,searchlimit:20,searchstaleness:900,"send-metrics":!1,shell:s.shell(),shrinkwrap:!0,"sign-git-tag":!1,"sso-poll-frequency":500,"sso-type":"oauth","strict-ssl":!0,tag:"latest","tag-version-prefix":"v",timing:!1,tmp:l,unicode:o(),"unsafe-perm":process.platform==="win32"||process.platform==="cygwin"||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:!1,user:process.platform==="win32"?0:"nobody",userconfig:n.resolve(c,".npmrc"),umask:process.umask?process.umask():u.fromString("022"),version:!1,versions:!1,viewer:process.platform==="win32"?"browser":"man",_exit:!0},E)}})})),Gu=T.__commonJSMin(((e,r)=>{var n=require("path"),l=Vu(),i=Uu();r.exports=(o,D,s)=>{const u=new l(Object.assign({},i.defaults,s),D);u.add(Object.assign({},o),"cli");const c=[];let m=!1;if(require.resolve.paths){const C=require.resolve.paths("npm");let v;try{v=require.resolve("npm",{paths:C.slice(-1)})}catch{m=!0}v&&c.push(u.addFile(n.resolve(n.dirname(v),"..","npmrc"),"builtin"))}u.addEnv(),u.loadPrefix();const h=n.resolve(u.localPrefix,".npmrc"),F=u.get("userconfig");if(!u.get("global")&&h!==F?c.push(u.addFile(h,"project")):u.add({},"project"),u.get("workspace-prefix")&&u.get("workspace-prefix")!==h){const C=n.resolve(u.get("workspace-prefix"),".npmrc");c.push(u.addFile(C,"workspace"))}if(c.push(u.addFile(u.get("userconfig"),"user")),u.get("prefix")){const C=n.resolve(u.get("prefix"),"etc");u.root.globalconfig=n.resolve(C,"npmrc"),u.root.globalignorefile=n.resolve(C,"npmignore")}c.push(u.addFile(u.get("globalconfig"),"global")),u.loadUser();const E=u.get("cafile");return E&&u.loadCAFile(E),{config:u,warnings:c.filter(Boolean),failedToLoadBuiltInConfig:m}},Object.defineProperty(r.exports,"defaults",{get(){return i.defaults},enumerable:!0})})),Ju=T.__commonJSMin(((e,r)=>{var n=Gu(),l=":_authToken",i=":_auth",o=":username",D=":_password";r.exports=function(){let p,t;arguments.length>=2?(p=arguments[0],t=Object.assign({},arguments[1])):typeof arguments[0]=="string"?p=arguments[0]:t=Object.assign({},arguments[0]),t=t||{};const a=t.npmrc;return t.npmrc=(t.npmrc?{config:{get:f=>a[f]}}:n()).config,p=p||t.npmrc.get("registry")||n.defaults.registry,u(p,t)||c(t.npmrc)};function s(y,p){const t=new URL(p,new URL(y.startsWith("//")?`./${y}`:y,"resolve://"));if(t.protocol==="resolve:"){const{pathname:a,search:f,hash:d}=t;return a+f+d}return t.toString()}function u(y,p){let t=y instanceof URL?y:new URL(y.startsWith("//")?`http:${y}`:y),a;for(;a!=="/"&&t.pathname!==a;){a=t.pathname||"/";const f=h("//"+t.host+a.replace(/\/$/,""),p.npmrc);if(f)return f;if(!p.recursive)return/\/$/.test(y)?void 0:u(new URL("./",t),p);t.pathname=s(m(a),"..")||"/"}}function c(y){if(y.get("_auth"))return{token:F(y.get("_auth")),type:"Basic"}}function m(y){return y[y.length-1]==="/"?y:y+"/"}function h(y,p){const t=E(p.get(y+l)||p.get(y+"/:_authToken"));if(t)return t;const a=C(p.get(y+o)||p.get(y+"/:username"),p.get(y+D)||p.get(y+"/:_password"));if(a)return a;const f=v(p.get(y+i)||p.get(y+"/:_auth"));if(f)return f}function F(y){return y.replace(/^\$\{?([^}]*)\}?$/,function(p,t){return process.env[t]})}function E(y){if(y)return{token:F(y),type:"Bearer"}}function C(y,p){if(!y||!p)return;const t=Buffer.from(F(p),"base64").toString("utf8");return{token:Buffer.from(y+":"+t,"utf8").toString("base64"),type:"Basic",password:t,username:y}}function v(y){if(y)return{token:F(y),type:"Basic"}}})),Yu=T.__toESM(Ju(),1),Ku=class extends Error{constructor(e){super(`Package \`${e}\` could not be found`),this.name="PackageNotFoundError"}},zu=class extends Error{constructor(e,r){super(`Version \`${r}\` for package \`${e}\` could not be found`),this.name="VersionNotFoundError"}};async function Xu(e,r={}){let{version:n="latest"}=r;const{omitDeprecated:l=!0}=r,i=e.split("/")[0],o=r.registryUrl??Ou(i),D=new URL(encodeURIComponent(e).replace(/^%40/,"@"),o),s=(0,Yu.default)(o.toString(),{recursive:!0}),u={accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"};r.fullMetadata&&delete u.accept,s&&(u.authorization=`${s.type} ${s.token}`);let c;try{c=await yu(D,{headers:u,keepalive:!0}).json()}catch(h){throw h?.response?.status===404?new Ku(e):h}if(r.allVersions)return c;const m=new zu(e,n);if(c["dist-tags"][n]){const{time:h}=c;c=c.versions[c["dist-tags"][n]],c.time=h}else if(n){const h=!!c.versions[n];if(l&&!h)for(const[E,C]of Object.entries(c.versions))C.deprecated&&delete c.versions[E];if(!h){const E=Object.keys(c.versions);if(n=Je.default.maxSatisfying(E,n),!n)throw m}const{time:F}=c;if(c=c.versions[n],c.time=F,!c)throw m}return c}async function Qu(e,r){const{version:n}=await Xu(e.toLowerCase(),r);return n}var Zu=$.default.env.npm_package_json,$e=$.default.env.npm_config_user_agent,en=!!$e?.startsWith("npm")||!!Zu?.endsWith("package.json"),tn=!!$e?.startsWith("yarn"),$i=!!$e?.startsWith("pnpm"),Pi=!!$e?.startsWith("bun"),rn=en||tn,un=T.__commonJSMin(((e,r)=>{var{hasOwnProperty:n}=Object.prototype,l=(c,m={})=>{typeof m=="string"&&(m={section:m}),m.align=m.align===!0,m.newline=m.newline===!0,m.sort=m.sort===!0,m.whitespace=m.whitespace===!0||m.align===!0,m.platform=m.platform||typeof process<"u"&&process.platform,m.bracketedArray=m.bracketedArray!==!1;const h=m.platform==="win32"?`\r
43
+ `):E.split(",")}switch(m){case"hoist-pattern":case"public-hoist-pattern":return F(h)}return h}r.exports=u})),Wu=w.__commonJSMin((e=>{var r=require("os"),n=require("path"),l=r.tmpdir(),i=process.getuid?process.getuid():process.pid,o=()=>!0,D=process.platform==="win32",s={editor:()=>process.env.EDITOR||process.env.VISUAL||(D?"notepad.exe":"vi"),shell:()=>D?process.env.COMSPEC||"cmd.exe":process.env.SHELL||"/bin/bash"},u={fromString:()=>process.umask()},c=r.homedir();c?process.env.HOME=c:c=n.resolve(l,"npm-"+i);var m=process.platform==="win32"?"npm-cache":".npm",h=process.platform==="win32"&&process.env.APPDATA||c,F=n.resolve(h,m),E,C;Object.defineProperty(e,"defaults",{get:function(){return E||(process.env.PREFIX?C=process.env.PREFIX:process.platform==="win32"?C=n.dirname(process.execPath):(C=n.dirname(n.dirname(process.execPath)),process.env.DESTDIR&&(C=n.join(process.env.DESTDIR,C))),E={access:null,"allow-same-version":!1,"always-auth":!1,also:null,audit:!0,"auth-type":"legacy","bin-links":!0,browser:null,ca:null,cafile:null,cache:F,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":1/0,"cache-min":10,cert:null,cidr:null,color:process.env.NO_COLOR==null,depth:1/0,description:!0,dev:!1,"dry-run":!1,editor:s.editor(),"engine-strict":!1,force:!1,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:"git","git-tag-version":!0,"commit-hooks":!0,global:!1,globalconfig:n.resolve(C,"etc","npmrc"),"global-style":!1,group:process.platform==="win32"?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":!1,heading:"npm","if-present":!1,"ignore-prepublish":!1,"ignore-scripts":!1,"init-module":n.resolve(c,".npm-init.js"),"init-author-name":"","init-author-email":"","init-author-url":"","init-version":"1.0.0","init-license":"ISC",json:!1,key:null,"legacy-bundling":!1,link:!1,"local-address":void 0,loglevel:"notice",logstream:process.stderr,"logs-max":10,long:!1,maxsockets:50,message:"%s","metrics-registry":null,"node-options":null,offline:!1,"onload-script":!1,only:null,optional:!0,otp:null,"package-lock":!0,"package-lock-only":!1,parseable:!1,"prefer-offline":!1,"prefer-online":!1,prefix:C,production:!1,progress:!process.env.TRAVIS&&!process.env.CI,provenance:!1,proxy:null,"https-proxy":null,"no-proxy":null,"user-agent":"npm/{npm-version} node/{node-version} {platform} {arch}","read-only":!1,"rebuild-bundle":!0,registry:"https://registry.npmjs.org/",rollback:!0,save:!0,"save-bundle":!1,"save-dev":!1,"save-exact":!1,"save-optional":!1,"save-prefix":"^","save-prod":!1,scope:"","script-shell":null,"scripts-prepend-node-path":"warn-only",searchopts:"",searchexclude:null,searchlimit:20,searchstaleness:900,"send-metrics":!1,shell:s.shell(),shrinkwrap:!0,"sign-git-tag":!1,"sso-poll-frequency":500,"sso-type":"oauth","strict-ssl":!0,tag:"latest","tag-version-prefix":"v",timing:!1,tmp:l,unicode:o(),"unsafe-perm":process.platform==="win32"||process.platform==="cygwin"||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:!1,user:process.platform==="win32"?0:"nobody",userconfig:n.resolve(c,".npmrc"),umask:process.umask?process.umask():u.fromString("022"),version:!1,versions:!1,viewer:process.platform==="win32"?"browser":"man",_exit:!0},E)}})})),Vu=w.__commonJSMin(((e,r)=>{var n=require("path"),l=Hu(),i=Wu();r.exports=(o,D,s)=>{const u=new l(Object.assign({},i.defaults,s),D);u.add(Object.assign({},o),"cli");const c=[];let m=!1;if(require.resolve.paths){const C=require.resolve.paths("npm");let v;try{v=require.resolve("npm",{paths:C.slice(-1)})}catch{m=!0}v&&c.push(u.addFile(n.resolve(n.dirname(v),"..","npmrc"),"builtin"))}u.addEnv(),u.loadPrefix();const h=n.resolve(u.localPrefix,".npmrc"),F=u.get("userconfig");if(!u.get("global")&&h!==F?c.push(u.addFile(h,"project")):u.add({},"project"),u.get("workspace-prefix")&&u.get("workspace-prefix")!==h){const C=n.resolve(u.get("workspace-prefix"),".npmrc");c.push(u.addFile(C,"workspace"))}if(c.push(u.addFile(u.get("userconfig"),"user")),u.get("prefix")){const C=n.resolve(u.get("prefix"),"etc");u.root.globalconfig=n.resolve(C,"npmrc"),u.root.globalignorefile=n.resolve(C,"npmignore")}c.push(u.addFile(u.get("globalconfig"),"global")),u.loadUser();const E=u.get("cafile");return E&&u.loadCAFile(E),{config:u,warnings:c.filter(Boolean),failedToLoadBuiltInConfig:m}},Object.defineProperty(r.exports,"defaults",{get(){return i.defaults},enumerable:!0})})),Uu=w.__commonJSMin(((e,r)=>{var n=Vu(),l=":_authToken",i=":_auth",o=":username",D=":_password";r.exports=function(){let p,t;arguments.length>=2?(p=arguments[0],t=Object.assign({},arguments[1])):typeof arguments[0]=="string"?p=arguments[0]:t=Object.assign({},arguments[0]),t=t||{};const a=t.npmrc;return t.npmrc=(t.npmrc?{config:{get:f=>a[f]}}:n()).config,p=p||t.npmrc.get("registry")||n.defaults.registry,u(p,t)||c(t.npmrc)};function s(y,p){const t=new URL(p,new URL(y.startsWith("//")?`./${y}`:y,"resolve://"));if(t.protocol==="resolve:"){const{pathname:a,search:f,hash:d}=t;return a+f+d}return t.toString()}function u(y,p){let t=y instanceof URL?y:new URL(y.startsWith("//")?`http:${y}`:y),a;for(;a!=="/"&&t.pathname!==a;){a=t.pathname||"/";const f=h("//"+t.host+a.replace(/\/$/,""),p.npmrc);if(f)return f;if(!p.recursive)return/\/$/.test(y)?void 0:u(new URL("./",t),p);t.pathname=s(m(a),"..")||"/"}}function c(y){if(y.get("_auth"))return{token:F(y.get("_auth")),type:"Basic"}}function m(y){return y[y.length-1]==="/"?y:y+"/"}function h(y,p){const t=E(p.get(y+l)||p.get(y+"/:_authToken"));if(t)return t;const a=C(p.get(y+o)||p.get(y+"/:username"),p.get(y+D)||p.get(y+"/:_password"));if(a)return a;const f=v(p.get(y+i)||p.get(y+"/:_auth"));if(f)return f}function F(y){return y.replace(/^\$\{?([^}]*)\}?$/,function(p,t){return process.env[t]})}function E(y){if(y)return{token:F(y),type:"Bearer"}}function C(y,p){if(!y||!p)return;const t=Buffer.from(F(p),"base64").toString("utf8");return{token:Buffer.from(y+":"+t,"utf8").toString("base64"),type:"Basic",password:t,username:y}}function v(y){if(y)return{token:F(y),type:"Basic"}}})),Gu=w.__toESM(Uu(),1),Ju=class extends Error{constructor(e){super(`Package \`${e}\` could not be found`),this.name="PackageNotFoundError"}},Yu=class extends Error{constructor(e,r){super(`Version \`${r}\` for package \`${e}\` could not be found`),this.name="VersionNotFoundError"}};async function Ku(e,r={}){let{version:n="latest"}=r;const{omitDeprecated:l=!0}=r,i=e.split("/")[0],o=r.registryUrl??Bu(i),D=new URL(encodeURIComponent(e).replace(/^%40/,"@"),o),s=(0,Gu.default)(o.toString(),{recursive:!0}),u={accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"};r.fullMetadata&&delete u.accept,s&&(u.authorization=`${s.type} ${s.token}`);let c;try{c=await Eu(D,{headers:u,keepalive:!0}).json()}catch(h){throw h?.response?.status===404?new Ju(e):h}if(r.allVersions)return c;const m=new Yu(e,n);if(c["dist-tags"][n]){const{time:h}=c;c=c.versions[c["dist-tags"][n]],c.time=h}else if(n){const h=!!c.versions[n];if(l&&!h)for(const[E,C]of Object.entries(c.versions))C.deprecated&&delete c.versions[E];if(!h){const E=Object.keys(c.versions);if(n=Ge.default.maxSatisfying(E,n),!n)throw m}const{time:F}=c;if(c=c.versions[n],c.time=F,!c)throw m}return c}async function zu(e,r){const{version:n}=await Ku(e.toLowerCase(),r);return n}var Xu=$.default.env.npm_package_json,Re=$.default.env.npm_config_user_agent,Qu=!!Re?.startsWith("npm")||!!Xu?.endsWith("package.json"),Zu=!!Re?.startsWith("yarn"),Ti=!!Re?.startsWith("pnpm"),Ri=!!Re?.startsWith("bun"),en=Qu||Zu,tn=w.__commonJSMin(((e,r)=>{var{hasOwnProperty:n}=Object.prototype,l=(c,m={})=>{typeof m=="string"&&(m={section:m}),m.align=m.align===!0,m.newline=m.newline===!0,m.sort=m.sort===!0,m.whitespace=m.whitespace===!0||m.align===!0,m.platform=m.platform||typeof process<"u"&&process.platform,m.bracketedArray=m.bracketedArray!==!1;const h=m.platform==="win32"?`\r
44
44
  `:`
45
- `,F=m.whitespace?" = ":"=",E=[],C=m.sort?Object.keys(c).sort():Object.keys(c);let v=0;m.align&&(v=s(C.filter(t=>c[t]===null||Array.isArray(c[t])||typeof c[t]!="object").map(t=>Array.isArray(c[t])?`${t}[]`:t).concat([""]).reduce((t,a)=>s(t).length>=s(a).length?t:a)).length);let y="";const p=m.bracketedArray?"[]":"";for(const t of C){const a=c[t];if(a&&Array.isArray(a))for(const f of a)y+=s(`${t}${p}`).padEnd(v," ")+F+s(f)+h;else a&&typeof a=="object"?E.push(t):y+=s(t).padEnd(v," ")+F+s(a)+h}m.section&&y.length&&(y="["+s(m.section)+"]"+(m.newline?h+h:h)+y);for(const t of E){const a=i(t,".").join("\\."),f=(m.section?m.section+".":"")+a,d=l(c[t],{...m,section:f});y.length&&d.length&&(y+=h),y+=d}return y};function i(c,m){var h=0,F=0,E=0,C=[];do if(E=c.indexOf(m,h),E!==-1){if(h=E+m.length,E>0&&c[E-1]==="\\")continue;C.push(c.slice(F,E)),F=E+m.length}while(E!==-1);return C.push(c.slice(F)),C}var o=(c,m={})=>{m.bracketedArray=m.bracketedArray!==!1;const h=Object.create(null);let F=h,E=null;const C=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,v=c.split(/[\r\n]+/g),y={};for(const t of v){if(!t||t.match(/^\s*[;#]/)||t.match(/^\s*$/))continue;const a=t.match(C);if(!a)continue;if(a[1]!==void 0){if(E=u(a[1]),E==="__proto__"){F=Object.create(null);continue}F=h[E]=h[E]||Object.create(null);continue}const f=u(a[2]);let d;m.bracketedArray?d=f.length>2&&f.slice(-2)==="[]":(y[f]=(y?.[f]||0)+1,d=y[f]>1);const g=d?f.slice(0,-2):f;if(g==="__proto__")continue;const _=a[3]?u(a[4]):!0,A=_==="true"||_==="false"||_==="null"?JSON.parse(_):_;d&&(n.call(F,g)?Array.isArray(F[g])||(F[g]=[F[g]]):F[g]=[]),Array.isArray(F[g])?F[g].push(A):F[g]=A}const p=[];for(const t of Object.keys(h)){if(!n.call(h,t)||typeof h[t]!="object"||Array.isArray(h[t]))continue;const a=i(t,".");F=h;const f=a.pop(),d=f.replace(/\\\./g,".");for(const g of a)g!=="__proto__"&&((!n.call(F,g)||typeof F[g]!="object")&&(F[g]=Object.create(null)),F=F[g]);F===h&&d===f||(F[d]=h[t],p.push(t))}for(const t of p)delete h[t];return h},D=c=>c.startsWith('"')&&c.endsWith('"')||c.startsWith("'")&&c.endsWith("'"),s=c=>typeof c!="string"||c.match(/[=\r\n]/)||c.match(/^\[/)||c.length>1&&D(c)||c!==c.trim()?JSON.stringify(c):c.split(";").join("\\;").split("#").join("\\#"),u=(c,m)=>{if(c=(c||"").trim(),D(c)){c.charAt(0)==="'"&&(c=c.slice(1,-1));try{c=JSON.parse(c)}catch{}}else{let h=!1,F="";for(let E=0,C=c.length;E<C;E++){const v=c.charAt(E);if(h)"\\;#".indexOf(v)!==-1?F+=v:F+="\\"+v,h=!1;else{if(";#".indexOf(v)!==-1)break;v==="\\"?h=!0:F+=v}}return h&&(F+="\\"),F.trim()}return c};r.exports={parse:o,decode:o,stringify:l,encode:l,safe:s,unsafe:u}})),nn=T.__toESM(un(),1),Ae=$.default.platform==="win32",Bt=e=>{try{return nn.default.parse(j.default.readFileSync(e,"utf8")).prefix}catch{}},on=()=>Object.keys($.default.env).reduce((e,r)=>/^npm_config_prefix$/i.test(r)?$.default.env[r]:e,void 0),sn=()=>{if(Ae&&$.default.env.APPDATA)return V.default.join($.default.env.APPDATA,"/npm/etc/npmrc");if($.default.execPath.includes("/Cellar/node")){const e=$.default.execPath.slice(0,$.default.execPath.indexOf("/Cellar/node"));return V.default.join(e,"/lib/node_modules/npm/npmrc")}if($.default.execPath.endsWith("/bin/node")){const e=V.default.dirname(V.default.dirname($.default.execPath));return V.default.join(e,"/etc/npmrc")}},an=()=>{if(Ae){const{APPDATA:e}=$.default.env;return e?V.default.join(e,"npm"):V.default.dirname($.default.execPath)}return V.default.dirname(V.default.dirname($.default.execPath))},Dn=()=>{const e=on();if(e)return e;const r=Bt(V.default.join(ge.default.homedir(),".npmrc"));if(r)return r;if($.default.env.PREFIX)return $.default.env.PREFIX;const n=Bt(sn());return n||an()},ye=V.default.resolve(Dn()),or=()=>{if(Ae&&$.default.env.LOCALAPPDATA){const e=V.default.join($.default.env.LOCALAPPDATA,"Yarn");if(j.default.existsSync(e))return e}return!1},ln=()=>{if($.default.env.PREFIX)return $.default.env.PREFIX;const e=or();if(e)return e;const r=V.default.join(ge.default.homedir(),".config/yarn");if(j.default.existsSync(r))return r;const n=V.default.join(ge.default.homedir(),".yarn-config");return j.default.existsSync(n)?n:ye},ne={};ne.npm={};ne.npm.prefix=ye;ne.npm.packages=V.default.join(ye,Ae?"node_modules":"lib/node_modules");ne.npm.binaries=Ae?ye:V.default.join(ye,"bin");var sr=V.default.resolve(ln());ne.yarn={};ne.yarn.prefix=sr;ne.yarn.packages=V.default.join(sr,or()?"Data/global/node_modules":"global/node_modules");ne.yarn.binaries=V.default.join(ne.yarn.packages,".bin");function St(e,r){const n=V.default.relative(r,e);return!!(n&&n!==".."&&!n.startsWith(`..${V.default.sep}`)&&n!==V.default.resolve(e))}var Ot=V.default.dirname((0,Gt.fileURLToPath)(require("url").pathToFileURL(__filename).href)),cn=(()=>{try{return St(Ot,ne.yarn.packages)||St(Ot,j.default.realpathSync(ne.npm.packages))}catch{return!1}})();function fn({onlyFirst:e=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",e?void 0:"g")}var hn=fn();function ar(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes("\x1B")&&!e.includes("›")?e:e.replace(hn,"")}var ct=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],ft=[12288,12288,65281,65376,65504,65510],Dr=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],lr=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],Pe=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],ht=(e,r)=>{let n=0,l=Math.floor(e.length/2)-1;for(;n<=l;){const i=Math.floor((n+l)/2),o=i*2;if(r<e[o])l=i-1;else if(r>e[o+1])n=i+1;else return!0}return!1},pn=ct[0],dn=ct.at(-1),mn=ft[0],Fn=ft.at(-1),Ii=Dr[0],Ni=Dr.at(-1),ki=lr[0],ji=lr.at(-1),gn=Pe[0],En=Pe.at(-1),xt=19968,[Cn,yn]=vn(Pe);function vn(e){let r=e[0],n=e[1];for(let l=0;l<e.length;l+=2){const i=e[l],o=e[l+1];if(xt>=i&&xt<=o)return[i,o];o-i>n-r&&(r=i,n=o)}return[r,n]}var _n=e=>e<pn||e>dn?!1:ht(ct,e),An=e=>e<mn||e>Fn?!1:ht(ft,e),bn=e=>e>=Cn&&e<=yn?!0:e<gn||e>En?!1:ht(Pe,e);function wn(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Bn(e,{ambiguousAsWide:r=!1}={}){return wn(e),An(e)||bn(e)||r&&_n(e)?2:1}var Sn=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,On=new Intl.Segmenter,xn=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function ie(e,r={}){if(typeof e!="string"||e.length===0)return 0;const{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:l=!1}=r;if(l||(e=ar(e)),e.length===0)return 0;let i=0;const o={ambiguousAsWide:!n};for(const{segment:D}of On.segment(e)){const s=D.codePointAt(0);if(!(s<=31||s>=127&&s<=159)&&!(s>=8203&&s<=8207||s===65279)&&!(s>=768&&s<=879||s>=6832&&s<=6911||s>=7616&&s<=7679||s>=8400&&s<=8447||s>=65056&&s<=65071)&&!(s>=55296&&s<=57343)&&!(s>=65024&&s<=65039)&&!xn.test(D)){if(Sn().test(D)){i+=2;continue}i+=Bn(s,o)}}return i}function cr(e){let r=0;for(const n of e.split(`
46
- `))r=Math.max(r,ie(n));return r}var Tn=T.__exportAll({arrow:()=>ot,bold:()=>rt,classic:()=>it,default:()=>fr,double:()=>et,doubleSingle:()=>nt,round:()=>tt,single:()=>Ze,singleDouble:()=>ut}),Ze,et,tt,rt,ut,nt,it,ot,fr,Rn=T.__esmMin((()=>{Ze={topLeft:"┌",top:"─",topRight:"┐",right:"│",bottomRight:"┘",bottom:"─",bottomLeft:"└",left:"│"},et={topLeft:"╔",top:"═",topRight:"╗",right:"║",bottomRight:"╝",bottom:"═",bottomLeft:"╚",left:"║"},tt={topLeft:"╭",top:"─",topRight:"╮",right:"│",bottomRight:"╯",bottom:"─",bottomLeft:"╰",left:"│"},rt={topLeft:"┏",top:"━",topRight:"┓",right:"┃",bottomRight:"┛",bottom:"━",bottomLeft:"┗",left:"┃"},ut={topLeft:"╓",top:"─",topRight:"╖",right:"║",bottomRight:"╜",bottom:"─",bottomLeft:"╙",left:"║"},nt={topLeft:"╒",top:"═",topRight:"╕",right:"│",bottomRight:"╛",bottom:"═",bottomLeft:"╘",left:"│"},it={topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},ot={topLeft:"↘",top:"↓",topRight:"↙",right:"←",bottomRight:"↖",bottom:"↑",bottomLeft:"↗",left:"→"},fr={single:Ze,double:et,round:tt,bold:rt,singleDouble:ut,doubleSingle:nt,classic:it,arrow:ot}})),$n=T.__commonJSMin(((e,r)=>{var n=(Rn(),T.__toCommonJS(Tn).default);r.exports=n,r.exports.default=n})),Pn=T.__toESM($n(),1),In=/[\p{Lu}]/u,Nn=/[\p{Ll}]/u,Tt=/^[\p{Lu}](?![\p{Lu}])/gu,hr=/([\p{Alpha}\p{N}_]|$)/u,pt=/[_.\- ]+/,kn=new RegExp("^"+pt.source),Rt=new RegExp(pt.source+hr.source,"gu"),$t=new RegExp("\\d+"+hr.source,"gu"),jn=(e,r,n,l)=>{let i=!1,o=!1,D=!1,s=!1;for(let u=0;u<e.length;u++){const c=e[u];s=u>2?e[u-3]==="-":!0,i&&In.test(c)?(e=e.slice(0,u)+"-"+e.slice(u),i=!1,D=o,o=!0,u++):o&&D&&Nn.test(c)&&(!s||l)?(e=e.slice(0,u-1)+"-"+e.slice(u-1),D=o,o=!1,i=!0):(i=r(c)===c&&n(c)!==c,D=o,o=n(c)===c&&r(c)!==c)}return e},Ln=(e,r)=>(Tt.lastIndex=0,e.replaceAll(Tt,n=>r(n))),Mn=(e,r)=>(Rt.lastIndex=0,$t.lastIndex=0,e.replaceAll($t,(n,l,i)=>["_","-"].includes(e.charAt(i+n.length))?n:r(n)).replaceAll(Rt,(n,l)=>r(l)));function qn(e,r){if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");if(r={pascalCase:!1,preserveConsecutiveUppercase:!1,...r},Array.isArray(e)?e=e.map(i=>i.trim()).filter(i=>i.length).join("-"):e=e.trim(),e.length===0)return"";const n=r.locale===!1?i=>i.toLowerCase():i=>i.toLocaleLowerCase(r.locale),l=r.locale===!1?i=>i.toUpperCase():i=>i.toLocaleUpperCase(r.locale);return e.length===1?pt.test(e)?"":r.pascalCase?l(e):n(e):(e!==n(e)&&(e=jn(e,n,l,r.preserveConsecutiveUppercase)),e=e.replace(kn,""),e=r.preserveConsecutiveUppercase?Ln(e,n):n(e),r.pascalCase&&(e=l(e.charAt(0))+e.slice(1)),Mn(e,l))}var Hn=T.__commonJSMin(((e,r)=>{r.exports=({onlyFirst:n=!1}={})=>{const l=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(l,n?void 0:"g")}})),Wn=T.__commonJSMin(((e,r)=>{var n=Hn();r.exports=l=>typeof l=="string"?l.replace(n(),""):l})),Vn=T.__commonJSMin(((e,r)=>{r.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}})),Un=T.__commonJSMin(((e,r)=>{var n=Wn(),l=W.require_is_fullwidth_code_point(),i=Vn(),o=D=>{if(typeof D!="string"||D.length===0||(D=n(D),D.length===0))return 0;D=D.replace(i()," ");let s=0;for(let u=0;u<D.length;u++){const c=D.codePointAt(u);c<=31||c>=127&&c<=159||c>=768&&c<=879||(c>65535&&u++,s+=l(c)?2:1)}return s};r.exports=o,r.exports.default=o})),Gn=T.__commonJSMin(((e,r)=>{var n=Un();function l(D,s){if(!D)return D;s=s||{};const u=s.align||"center";if(u==="left")return D;const c=s.split||`
47
- `,m=s.pad||" ",h=u!=="right"?i:o;let F=!1;Array.isArray(D)||(F=!0,D=String(D).split(c));let E,C=0;return D=D.map(function(v){return v=String(v),E=n(v),C=Math.max(E,C),{str:v,width:E}}).map(function(v){return new Array(h(C,v.width)+1).join(m)+v.str}),F?D.join(c):D}l.left=function(s){return l(s,{align:"left"})},l.center=function(s){return l(s,{align:"center"})},l.right=function(s){return l(s,{align:"right"})},r.exports=l;function i(D,s){return Math.floor((D-s)/2)}function o(D,s){return D-s}})),Pt=T.__toESM(Gn(),1),Ve=10,It=(e=0)=>r=>`\x1B[${r+e}m`,Nt=(e=0)=>r=>`\x1B[${38+e};5;${r}m`,kt=(e=0)=>(r,n,l)=>`\x1B[${38+e};2;${r};${n};${l}m`,G={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Li=Object.keys(G.modifier),Jn=Object.keys(G.color),Yn=Object.keys(G.bgColor),Mi=[...Jn,...Yn];function Kn(){const e=new Map;for(const[r,n]of Object.entries(G)){for(const[l,i]of Object.entries(n))G[l]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},n[l]=G[l],e.set(i[0],i[1]);Object.defineProperty(G,r,{value:n,enumerable:!1})}return Object.defineProperty(G,"codes",{value:e,enumerable:!1}),G.color.close="\x1B[39m",G.bgColor.close="\x1B[49m",G.color.ansi=It(),G.color.ansi256=Nt(),G.color.ansi16m=kt(),G.bgColor.ansi=It(Ve),G.bgColor.ansi256=Nt(Ve),G.bgColor.ansi16m=kt(Ve),Object.defineProperties(G,{rgbToAnsi256:{value(r,n,l){return r===n&&n===l?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(l/255*5)},enumerable:!1},hexToRgb:{value(r){const n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(r.toString(16));if(!n)return[0,0,0];let[l]=n;l.length===3&&(l=[...l].map(o=>o+o).join(""));const i=Number.parseInt(l,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:r=>G.rgbToAnsi256(...G.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value(r){if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,l,i;if(r>=232)n=((r-232)*10+8)/255,l=n,i=n;else{r-=16;const s=r%36;n=Math.floor(r/36)/5,l=Math.floor(s/6)/5,i=s%6/5}const o=Math.max(n,l,i)*2;if(o===0)return 30;let D=30+(Math.round(i)<<2|Math.round(l)<<1|Math.round(n));return o===2&&(D+=60),D},enumerable:!1},rgbToAnsi:{value:(r,n,l)=>G.ansi256ToAnsi(G.rgbToAnsi256(r,n,l)),enumerable:!1},hexToAnsi:{value:r=>G.ansi256ToAnsi(G.hexToAnsi256(r)),enumerable:!1}}),G}var zn=Kn(),Ie=new Set(["\x1B","›"]),Xn=39,dt="\x07",pr="[",Qn="]",dr="m",xe=`${Qn}8;;`,jt=e=>`${Ie.values().next().value}${pr}${e}${dr}`,Lt=e=>`${Ie.values().next().value}${xe}${e}${dt}`,Zn=e=>e.split(" ").map(r=>ie(r)),Ue=(e,r,n)=>{const l=[...r];let i=!1,o=!1,D=ie(ar(e.at(-1)));for(const[s,u]of l.entries()){const c=ie(u);if(D+c<=n?e[e.length-1]+=u:(e.push(u),D=0),Ie.has(u)&&(i=!0,o=l.slice(s+1,s+1+xe.length).join("")===xe),i){o?u===dt&&(i=!1,o=!1):u===dr&&(i=!1);continue}D+=c,D===n&&s<l.length-1&&(e.push(""),D=0)}!D&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop())},ei=e=>{const r=e.split(" ");let n=r.length;for(;n>0&&!(ie(r[n-1])>0);)n--;return n===r.length?e:r.slice(0,n).join(" ")+r.slice(n).join("")},ti=(e,r,n={})=>{if(n.trim!==!1&&e.trim()==="")return"";let l="",i,o;const D=Zn(e);let s=[""];for(const[h,F]of e.split(" ").entries()){n.trim!==!1&&(s[s.length-1]=s.at(-1).trimStart());let E=ie(s.at(-1));if(h!==0&&(E>=r&&(n.wordWrap===!1||n.trim===!1)&&(s.push(""),E=0),(E>0||n.trim===!1)&&(s[s.length-1]+=" ",E++)),n.hard&&D[h]>r){const C=r-E,v=1+Math.floor((D[h]-C-1)/r);Math.floor((D[h]-1)/r)<v&&s.push(""),Ue(s,F,r);continue}if(E+D[h]>r&&E>0&&D[h]>0){if(n.wordWrap===!1&&E<r){Ue(s,F,r);continue}s.push("")}if(E+D[h]>r&&n.wordWrap===!1){Ue(s,F,r);continue}s[s.length-1]+=F}n.trim!==!1&&(s=s.map(h=>ei(h)));const u=s.join(`
48
- `),c=[...u];let m=0;for(const[h,F]of c.entries()){if(l+=F,Ie.has(F)){const{groups:C}=new RegExp(`(?:\\${pr}(?<code>\\d+)m|\\${xe}(?<uri>.*)${dt})`).exec(u.slice(m))||{groups:{}};if(C.code!==void 0){const v=Number.parseFloat(C.code);i=v===Xn?void 0:v}else C.uri!==void 0&&(o=C.uri.length===0?void 0:C.uri)}const E=zn.codes.get(Number(i));c[h+1]===`
49
- `?(o&&(l+=Lt("")),i&&E&&(l+=jt(E))):F===`
50
- `&&(i&&E&&(l+=jt(i)),o&&(l+=Lt(o))),m+=F.length}return l};function mr(e,r,n){return String(e).normalize().replaceAll(`\r
45
+ `,F=m.whitespace?" = ":"=",E=[],C=m.sort?Object.keys(c).sort():Object.keys(c);let v=0;m.align&&(v=s(C.filter(t=>c[t]===null||Array.isArray(c[t])||typeof c[t]!="object").map(t=>Array.isArray(c[t])?`${t}[]`:t).concat([""]).reduce((t,a)=>s(t).length>=s(a).length?t:a)).length);let y="";const p=m.bracketedArray?"[]":"";for(const t of C){const a=c[t];if(a&&Array.isArray(a))for(const f of a)y+=s(`${t}${p}`).padEnd(v," ")+F+s(f)+h;else a&&typeof a=="object"?E.push(t):y+=s(t).padEnd(v," ")+F+s(a)+h}m.section&&y.length&&(y="["+s(m.section)+"]"+(m.newline?h+h:h)+y);for(const t of E){const a=i(t,".").join("\\."),f=(m.section?m.section+".":"")+a,d=l(c[t],{...m,section:f});y.length&&d.length&&(y+=h),y+=d}return y};function i(c,m){var h=0,F=0,E=0,C=[];do if(E=c.indexOf(m,h),E!==-1){if(h=E+m.length,E>0&&c[E-1]==="\\")continue;C.push(c.slice(F,E)),F=E+m.length}while(E!==-1);return C.push(c.slice(F)),C}var o=(c,m={})=>{m.bracketedArray=m.bracketedArray!==!1;const h=Object.create(null);let F=h,E=null;const C=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,v=c.split(/[\r\n]+/g),y={};for(const t of v){if(!t||t.match(/^\s*[;#]/)||t.match(/^\s*$/))continue;const a=t.match(C);if(!a)continue;if(a[1]!==void 0){if(E=u(a[1]),E==="__proto__"){F=Object.create(null);continue}F=h[E]=h[E]||Object.create(null);continue}const f=u(a[2]);let d;m.bracketedArray?d=f.length>2&&f.slice(-2)==="[]":(y[f]=(y?.[f]||0)+1,d=y[f]>1);const g=d?f.slice(0,-2):f;if(g==="__proto__")continue;const _=a[3]?u(a[4]):!0,A=_==="true"||_==="false"||_==="null"?JSON.parse(_):_;d&&(n.call(F,g)?Array.isArray(F[g])||(F[g]=[F[g]]):F[g]=[]),Array.isArray(F[g])?F[g].push(A):F[g]=A}const p=[];for(const t of Object.keys(h)){if(!n.call(h,t)||typeof h[t]!="object"||Array.isArray(h[t]))continue;const a=i(t,".");F=h;const f=a.pop(),d=f.replace(/\\\./g,".");for(const g of a)g!=="__proto__"&&((!n.call(F,g)||typeof F[g]!="object")&&(F[g]=Object.create(null)),F=F[g]);F===h&&d===f||(F[d]=h[t],p.push(t))}for(const t of p)delete h[t];return h},D=c=>c.startsWith('"')&&c.endsWith('"')||c.startsWith("'")&&c.endsWith("'"),s=c=>typeof c!="string"||c.match(/[=\r\n]/)||c.match(/^\[/)||c.length>1&&D(c)||c!==c.trim()?JSON.stringify(c):c.split(";").join("\\;").split("#").join("\\#"),u=(c,m)=>{if(c=(c||"").trim(),D(c)){c.charAt(0)==="'"&&(c=c.slice(1,-1));try{c=JSON.parse(c)}catch{}}else{let h=!1,F="";for(let E=0,C=c.length;E<C;E++){const v=c.charAt(E);if(h)"\\;#".indexOf(v)!==-1?F+=v:F+="\\"+v,h=!1;else{if(";#".indexOf(v)!==-1)break;v==="\\"?h=!0:F+=v}}return h&&(F+="\\"),F.trim()}return c};r.exports={parse:o,decode:o,stringify:l,encode:l,safe:s,unsafe:u}})),rn=w.__toESM(tn(),1),_e=$.default.platform==="win32",wt=e=>{try{return rn.default.parse(j.default.readFileSync(e,"utf8")).prefix}catch{}},un=()=>Object.keys($.default.env).reduce((e,r)=>/^npm_config_prefix$/i.test(r)?$.default.env[r]:e,void 0),nn=()=>{if(_e&&$.default.env.APPDATA)return W.default.join($.default.env.APPDATA,"/npm/etc/npmrc");if($.default.execPath.includes("/Cellar/node")){const e=$.default.execPath.slice(0,$.default.execPath.indexOf("/Cellar/node"));return W.default.join(e,"/lib/node_modules/npm/npmrc")}if($.default.execPath.endsWith("/bin/node")){const e=W.default.dirname(W.default.dirname($.default.execPath));return W.default.join(e,"/etc/npmrc")}},on=()=>{if(_e){const{APPDATA:e}=$.default.env;return e?W.default.join(e,"npm"):W.default.dirname($.default.execPath)}return W.default.dirname(W.default.dirname($.default.execPath))},sn=()=>{const e=un();if(e)return e;const r=wt(W.default.join(Fe.default.homedir(),".npmrc"));if(r)return r;if($.default.env.PREFIX)return $.default.env.PREFIX;const n=wt(nn());return n||on()},Ce=W.default.resolve(sn()),ir=()=>{if(_e&&$.default.env.LOCALAPPDATA){const e=W.default.join($.default.env.LOCALAPPDATA,"Yarn");if(j.default.existsSync(e))return e}return!1},an=()=>{if($.default.env.PREFIX)return $.default.env.PREFIX;const e=ir();if(e)return e;const r=W.default.join(Fe.default.homedir(),".config/yarn");if(j.default.existsSync(r))return r;const n=W.default.join(Fe.default.homedir(),".yarn-config");return j.default.existsSync(n)?n:Ce},ue={};ue.npm={};ue.npm.prefix=Ce;ue.npm.packages=W.default.join(Ce,_e?"node_modules":"lib/node_modules");ue.npm.binaries=_e?Ce:W.default.join(Ce,"bin");var or=W.default.resolve(an());ue.yarn={};ue.yarn.prefix=or;ue.yarn.packages=W.default.join(or,ir()?"Data/global/node_modules":"global/node_modules");ue.yarn.binaries=W.default.join(ue.yarn.packages,".bin");function Bt(e,r){const n=W.default.relative(r,e);return!!(n&&n!==".."&&!n.startsWith(`..${W.default.sep}`)&&n!==W.default.resolve(e))}var St=W.default.dirname((0,Ut.fileURLToPath)(require("url").pathToFileURL(__filename).href)),Dn=(()=>{try{return Bt(St,ue.yarn.packages)||Bt(St,j.default.realpathSync(ue.npm.packages))}catch{return!1}})();function ln({onlyFirst:e=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",e?void 0:"g")}var cn=ln();function sr(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes("\x1B")&&!e.includes("›")?e:e.replace(cn,"")}var lt=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],ct=[12288,12288,65281,65376,65504,65510],ar=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],Dr=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],$e=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],ft=(e,r)=>{let n=0,l=Math.floor(e.length/2)-1;for(;n<=l;){const i=Math.floor((n+l)/2),o=i*2;if(r<e[o])l=i-1;else if(r>e[o+1])n=i+1;else return!0}return!1},fn=lt[0],hn=lt.at(-1),pn=ct[0],dn=ct.at(-1),$i=ar[0],Pi=ar.at(-1),Ii=Dr[0],Ni=Dr.at(-1),mn=$e[0],Fn=$e.at(-1),Ot=19968,[gn,En]=Cn($e);function Cn(e){let r=e[0],n=e[1];for(let l=0;l<e.length;l+=2){const i=e[l],o=e[l+1];if(Ot>=i&&Ot<=o)return[i,o];o-i>n-r&&(r=i,n=o)}return[r,n]}var yn=e=>e<fn||e>hn?!1:ft(lt,e),vn=e=>e<pn||e>dn?!1:ft(ct,e),_n=e=>e>=gn&&e<=En?!0:e<mn||e>Fn?!1:ft($e,e);function An(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function bn(e,{ambiguousAsWide:r=!1}={}){return An(e),vn(e)||_n(e)||r&&yn(e)?2:1}var wn=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,Bn=new Intl.Segmenter,Sn=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function ne(e,r={}){if(typeof e!="string"||e.length===0)return 0;const{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:l=!1}=r;if(l||(e=sr(e)),e.length===0)return 0;let i=0;const o={ambiguousAsWide:!n};for(const{segment:D}of Bn.segment(e)){const s=D.codePointAt(0);if(!(s<=31||s>=127&&s<=159)&&!(s>=8203&&s<=8207||s===65279)&&!(s>=768&&s<=879||s>=6832&&s<=6911||s>=7616&&s<=7679||s>=8400&&s<=8447||s>=65056&&s<=65071)&&!(s>=55296&&s<=57343)&&!(s>=65024&&s<=65039)&&!Sn.test(D)){if(wn().test(D)){i+=2;continue}i+=bn(s,o)}}return i}function lr(e){let r=0;for(const n of e.split(`
46
+ `))r=Math.max(r,ne(n));return r}var On=w.__exportAll({arrow:()=>it,bold:()=>tt,classic:()=>nt,default:()=>cr,double:()=>Ze,doubleSingle:()=>ut,round:()=>et,single:()=>Qe,singleDouble:()=>rt}),Qe,Ze,et,tt,rt,ut,nt,it,cr,xn=w.__esmMin((()=>{Qe={topLeft:"┌",top:"─",topRight:"┐",right:"│",bottomRight:"┘",bottom:"─",bottomLeft:"└",left:"│"},Ze={topLeft:"╔",top:"═",topRight:"╗",right:"║",bottomRight:"╝",bottom:"═",bottomLeft:"╚",left:"║"},et={topLeft:"╭",top:"─",topRight:"╮",right:"│",bottomRight:"╯",bottom:"─",bottomLeft:"╰",left:"│"},tt={topLeft:"┏",top:"━",topRight:"┓",right:"┃",bottomRight:"┛",bottom:"━",bottomLeft:"┗",left:"┃"},rt={topLeft:"╓",top:"─",topRight:"╖",right:"║",bottomRight:"╜",bottom:"─",bottomLeft:"╙",left:"║"},ut={topLeft:"╒",top:"═",topRight:"╕",right:"│",bottomRight:"╛",bottom:"═",bottomLeft:"╘",left:"│"},nt={topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},it={topLeft:"↘",top:"↓",topRight:"↙",right:"←",bottomRight:"↖",bottom:"↑",bottomLeft:"↗",left:"→"},cr={single:Qe,double:Ze,round:et,bold:tt,singleDouble:rt,doubleSingle:ut,classic:nt,arrow:it}})),Tn=w.__commonJSMin(((e,r)=>{var n=(xn(),w.__toCommonJS(On).default);r.exports=n,r.exports.default=n})),Rn=w.__toESM(Tn(),1),$n=/[\p{Lu}]/u,Pn=/[\p{Ll}]/u,xt=/^[\p{Lu}](?![\p{Lu}])/gu,fr=/([\p{Alpha}\p{N}_]|$)/u,ht=/[_.\- ]+/,In=new RegExp("^"+ht.source),Tt=new RegExp(ht.source+fr.source,"gu"),Rt=new RegExp("\\d+"+fr.source,"gu"),Nn=(e,r,n,l)=>{let i=!1,o=!1,D=!1,s=!1;for(let u=0;u<e.length;u++){const c=e[u];s=u>2?e[u-3]==="-":!0,i&&$n.test(c)?(e=e.slice(0,u)+"-"+e.slice(u),i=!1,D=o,o=!0,u++):o&&D&&Pn.test(c)&&(!s||l)?(e=e.slice(0,u-1)+"-"+e.slice(u-1),D=o,o=!1,i=!0):(i=r(c)===c&&n(c)!==c,D=o,o=n(c)===c&&r(c)!==c)}return e},kn=(e,r)=>(xt.lastIndex=0,e.replaceAll(xt,n=>r(n))),jn=(e,r)=>(Tt.lastIndex=0,Rt.lastIndex=0,e.replaceAll(Rt,(n,l,i)=>["_","-"].includes(e.charAt(i+n.length))?n:r(n)).replaceAll(Tt,(n,l)=>r(l)));function Ln(e,r){if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");if(r={pascalCase:!1,preserveConsecutiveUppercase:!1,...r},Array.isArray(e)?e=e.map(i=>i.trim()).filter(i=>i.length).join("-"):e=e.trim(),e.length===0)return"";const n=r.locale===!1?i=>i.toLowerCase():i=>i.toLocaleLowerCase(r.locale),l=r.locale===!1?i=>i.toUpperCase():i=>i.toLocaleUpperCase(r.locale);return e.length===1?ht.test(e)?"":r.pascalCase?l(e):n(e):(e!==n(e)&&(e=Nn(e,n,l,r.preserveConsecutiveUppercase)),e=e.replace(In,""),e=r.preserveConsecutiveUppercase?kn(e,n):n(e),r.pascalCase&&(e=l(e.charAt(0))+e.slice(1)),jn(e,l))}var Mn=w.__commonJSMin(((e,r)=>{r.exports=({onlyFirst:n=!1}={})=>{const l=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(l,n?void 0:"g")}})),qn=w.__commonJSMin(((e,r)=>{var n=Mn();r.exports=l=>typeof l=="string"?l.replace(n(),""):l})),Hn=w.__commonJSMin(((e,r)=>{r.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}})),Wn=w.__commonJSMin(((e,r)=>{var n=qn(),l=w.require_is_fullwidth_code_point(),i=Hn(),o=D=>{if(typeof D!="string"||D.length===0||(D=n(D),D.length===0))return 0;D=D.replace(i()," ");let s=0;for(let u=0;u<D.length;u++){const c=D.codePointAt(u);c<=31||c>=127&&c<=159||c>=768&&c<=879||(c>65535&&u++,s+=l(c)?2:1)}return s};r.exports=o,r.exports.default=o})),Vn=w.__commonJSMin(((e,r)=>{var n=Wn();function l(D,s){if(!D)return D;s=s||{};const u=s.align||"center";if(u==="left")return D;const c=s.split||`
47
+ `,m=s.pad||" ",h=u!=="right"?i:o;let F=!1;Array.isArray(D)||(F=!0,D=String(D).split(c));let E,C=0;return D=D.map(function(v){return v=String(v),E=n(v),C=Math.max(E,C),{str:v,width:E}}).map(function(v){return new Array(h(C,v.width)+1).join(m)+v.str}),F?D.join(c):D}l.left=function(s){return l(s,{align:"left"})},l.center=function(s){return l(s,{align:"center"})},l.right=function(s){return l(s,{align:"right"})},r.exports=l;function i(D,s){return Math.floor((D-s)/2)}function o(D,s){return D-s}})),$t=w.__toESM(Vn(),1),We=10,Pt=(e=0)=>r=>`\x1B[${r+e}m`,It=(e=0)=>r=>`\x1B[${38+e};5;${r}m`,Nt=(e=0)=>(r,n,l)=>`\x1B[${38+e};2;${r};${n};${l}m`,U={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},ki=Object.keys(U.modifier),Un=Object.keys(U.color),Gn=Object.keys(U.bgColor),ji=[...Un,...Gn];function Jn(){const e=new Map;for(const[r,n]of Object.entries(U)){for(const[l,i]of Object.entries(n))U[l]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},n[l]=U[l],e.set(i[0],i[1]);Object.defineProperty(U,r,{value:n,enumerable:!1})}return Object.defineProperty(U,"codes",{value:e,enumerable:!1}),U.color.close="\x1B[39m",U.bgColor.close="\x1B[49m",U.color.ansi=Pt(),U.color.ansi256=It(),U.color.ansi16m=Nt(),U.bgColor.ansi=Pt(We),U.bgColor.ansi256=It(We),U.bgColor.ansi16m=Nt(We),Object.defineProperties(U,{rgbToAnsi256:{value(r,n,l){return r===n&&n===l?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(l/255*5)},enumerable:!1},hexToRgb:{value(r){const n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(r.toString(16));if(!n)return[0,0,0];let[l]=n;l.length===3&&(l=[...l].map(o=>o+o).join(""));const i=Number.parseInt(l,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:r=>U.rgbToAnsi256(...U.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value(r){if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,l,i;if(r>=232)n=((r-232)*10+8)/255,l=n,i=n;else{r-=16;const s=r%36;n=Math.floor(r/36)/5,l=Math.floor(s/6)/5,i=s%6/5}const o=Math.max(n,l,i)*2;if(o===0)return 30;let D=30+(Math.round(i)<<2|Math.round(l)<<1|Math.round(n));return o===2&&(D+=60),D},enumerable:!1},rgbToAnsi:{value:(r,n,l)=>U.ansi256ToAnsi(U.rgbToAnsi256(r,n,l)),enumerable:!1},hexToAnsi:{value:r=>U.ansi256ToAnsi(U.hexToAnsi256(r)),enumerable:!1}}),U}var Yn=Jn(),Pe=new Set(["\x1B","›"]),Kn=39,pt="\x07",hr="[",zn="]",pr="m",Oe=`${zn}8;;`,kt=e=>`${Pe.values().next().value}${hr}${e}${pr}`,jt=e=>`${Pe.values().next().value}${Oe}${e}${pt}`,Xn=e=>e.split(" ").map(r=>ne(r)),Ve=(e,r,n)=>{const l=[...r];let i=!1,o=!1,D=ne(sr(e.at(-1)));for(const[s,u]of l.entries()){const c=ne(u);if(D+c<=n?e[e.length-1]+=u:(e.push(u),D=0),Pe.has(u)&&(i=!0,o=l.slice(s+1,s+1+Oe.length).join("")===Oe),i){o?u===pt&&(i=!1,o=!1):u===pr&&(i=!1);continue}D+=c,D===n&&s<l.length-1&&(e.push(""),D=0)}!D&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop())},Qn=e=>{const r=e.split(" ");let n=r.length;for(;n>0&&!(ne(r[n-1])>0);)n--;return n===r.length?e:r.slice(0,n).join(" ")+r.slice(n).join("")},Zn=(e,r,n={})=>{if(n.trim!==!1&&e.trim()==="")return"";let l="",i,o;const D=Xn(e);let s=[""];for(const[h,F]of e.split(" ").entries()){n.trim!==!1&&(s[s.length-1]=s.at(-1).trimStart());let E=ne(s.at(-1));if(h!==0&&(E>=r&&(n.wordWrap===!1||n.trim===!1)&&(s.push(""),E=0),(E>0||n.trim===!1)&&(s[s.length-1]+=" ",E++)),n.hard&&D[h]>r){const C=r-E,v=1+Math.floor((D[h]-C-1)/r);Math.floor((D[h]-1)/r)<v&&s.push(""),Ve(s,F,r);continue}if(E+D[h]>r&&E>0&&D[h]>0){if(n.wordWrap===!1&&E<r){Ve(s,F,r);continue}s.push("")}if(E+D[h]>r&&n.wordWrap===!1){Ve(s,F,r);continue}s[s.length-1]+=F}n.trim!==!1&&(s=s.map(h=>Qn(h)));const u=s.join(`
48
+ `),c=[...u];let m=0;for(const[h,F]of c.entries()){if(l+=F,Pe.has(F)){const{groups:C}=new RegExp(`(?:\\${hr}(?<code>\\d+)m|\\${Oe}(?<uri>.*)${pt})`).exec(u.slice(m))||{groups:{}};if(C.code!==void 0){const v=Number.parseFloat(C.code);i=v===Kn?void 0:v}else C.uri!==void 0&&(o=C.uri.length===0?void 0:C.uri)}const E=Yn.codes.get(Number(i));c[h+1]===`
49
+ `?(o&&(l+=jt("")),i&&E&&(l+=kt(E))):F===`
50
+ `&&(i&&E&&(l+=kt(i)),o&&(l+=jt(o))),m+=F.length}return l};function dr(e,r,n){return String(e).normalize().replaceAll(`\r
51
51
  `,`
52
52
  `).split(`
53
- `).map(l=>ti(l,r,n)).join(`
54
- `)}var le=`
55
- `,ue=" ",ve="none",Fr=()=>{const{env:e,stdout:r,stderr:n}=$.default;return r?.columns?r.columns:n?.columns?n.columns:e.COLUMNS?Number.parseInt(e.COLUMNS,10):80},Mt=e=>typeof e=="number"?{top:e,right:e*3,bottom:e,left:e*3}:{top:0,right:0,bottom:0,left:0,...e},_e=e=>e===ve?0:2,ri=e=>{const r=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"];let n;if(e===ve){e={};for(const l of r)e[l]=""}if(typeof e=="string"){if(n=Pn.default[e],!n)throw new TypeError(`Invalid border style: ${e}`)}else{typeof e?.vertical=="string"&&(e.left=e.vertical,e.right=e.vertical),typeof e?.horizontal=="string"&&(e.top=e.horizontal,e.bottom=e.horizontal);for(const l of r)if(e[l]===null||typeof e[l]!="string")throw new TypeError(`Invalid border style: ${l}`);n=e}return n},ui=(e,r,n)=>{let l="";const i=ie(e);switch(n){case"left":l=e+r.slice(i);break;case"right":l=r.slice(i)+e;break;default:r=r.slice(i),r.length%2===1?(r=r.slice(Math.floor(r.length/2)),l=r.slice(1)+e+r):(r=r.slice(r.length/2),l=r+e+r);break}return l},ni=(e,{padding:r,width:n,textAlignment:l,height:i})=>{e=(0,Pt.default)(e,{align:l});let o=e.split(le);const D=cr(e),s=n-r.left-r.right;if(D>s){const m=[];for(const h of o){const F=(0,Pt.default)(mr(h,s,{hard:!0}),{align:l}).split(`
56
- `),E=Math.max(...F.map(C=>ie(C)));for(const C of F){let v;switch(l){case"center":v=ue.repeat((s-E)/2)+C;break;case"right":v=ue.repeat(s-E)+C;break;default:v=C;break}m.push(v)}}o=m}l==="center"&&D<s?o=o.map(m=>ue.repeat((s-D)/2)+m):l==="right"&&D<s&&(o=o.map(m=>ue.repeat(s-D)+m));const u=ue.repeat(r.left),c=ue.repeat(r.right);return o=o.map(m=>{const h=u+m+c;return h+ue.repeat(n-ie(h))}),r.top>0&&(o=[...Array.from({length:r.top}).fill(ue.repeat(n)),...o]),r.bottom>0&&(o=[...o,...Array.from({length:r.bottom}).fill(ue.repeat(n))]),i&&o.length>i?o=o.slice(0,i):i&&o.length<i&&(o=[...o,...Array.from({length:i-o.length}).fill(ue.repeat(n))]),o.join(le)},ii=(e,r,n)=>{const l=m=>{const h=n.borderColor?ai(n.borderColor)(m):m;return n.dimBorder?W.chalk.dim(h):h},i=m=>n.backgroundColor?Di(n.backgroundColor)(m):m,o=ri(n.borderStyle),D=Fr();let s=ue.repeat(n.margin.left);if(n.float==="center"){const m=Math.max((D-r-_e(n.borderStyle))/2,0);s=ue.repeat(m)}else if(n.float==="right"){const m=Math.max(D-r-n.margin.right-_e(n.borderStyle),0);s=ue.repeat(m)}let u="";n.margin.top&&(u+=le.repeat(n.margin.top)),(n.borderStyle!==ve||n.title)&&(u+=l(s+o.topLeft+(n.title?ui(n.title,o.top.repeat(r),n.titleAlignment):o.top.repeat(r))+o.topRight)+le);const c=e.split(le);return u+=c.map(m=>s+l(o.left)+i(m)+l(o.right)).join(le),n.borderStyle!==ve&&(u+=le+l(s+o.bottomLeft+o.bottom.repeat(r)+o.bottomRight)),n.margin.bottom&&(u+=le.repeat(n.margin.bottom)),u},oi=e=>{if(e.fullscreen&&$.default?.stdout){let r=[$.default.stdout.columns,$.default.stdout.rows];typeof e.fullscreen=="function"&&(r=e.fullscreen(...r)),e.width||=r[0],e.height||=r[1]}return e.width&&=Math.max(1,e.width-_e(e.borderStyle)),e.height&&=Math.max(1,e.height-_e(e.borderStyle)),e},qt=(e,r)=>r===ve?e:` ${e} `,si=(e,r)=>{r=oi(r);const n=r.width!==void 0,l=Fr(),i=_e(r.borderStyle),o=l-r.margin.left-r.margin.right-i,D=cr(mr(e,l-i,{hard:!0,trim:!1}))+r.padding.left+r.padding.right;if(r.title&&n?(r.title=r.title.slice(0,Math.max(0,r.width-2)),r.title&&=qt(r.title,r.borderStyle)):r.title&&(r.title=r.title.slice(0,Math.max(0,o-2)),r.title&&(r.title=qt(r.title,r.borderStyle),ie(r.title)>D&&(r.width=ie(r.title)))),r.width||=D,!n){if(r.margin.left&&r.margin.right&&r.width>o){const s=(l-r.width-i)/(r.margin.left+r.margin.right);r.margin.left=Math.max(0,Math.floor(r.margin.left*s)),r.margin.right=Math.max(0,Math.floor(r.margin.right*s))}r.width=Math.min(r.width,l-i-r.margin.left-r.margin.right)}return r.width-(r.padding.left+r.padding.right)<=0&&(r.padding.left=0,r.padding.right=0),r.height&&r.height-(r.padding.top+r.padding.bottom)<=0&&(r.padding.top=0,r.padding.bottom=0),r},mt=e=>e.match(/^#(?:[0-f]{3}){1,2}$/i),Ht=e=>typeof e=="string"&&(W.chalk[e]??mt(e)),ai=e=>mt(e)?W.chalk.hex(e):W.chalk[e],Di=e=>mt(e)?W.chalk.bgHex(e):W.chalk[qn(["bg",e])];function Wt(e,r){if(r={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...r},r.align&&(r.textAlignment=r.align),r.borderColor&&!Ht(r.borderColor))throw new Error(`${r.borderColor} is not a valid borderColor`);if(r.backgroundColor&&!Ht(r.backgroundColor))throw new Error(`${r.backgroundColor} is not a valid backgroundColor`);return r.padding=Mt(r.padding),r.margin=Mt(r.margin),r=si(e,r),e=ni(e,r),ii(e,r.width,r)}var li=$.env.CI!=="0"&&$.env.CI!=="false"&&("CI"in $.env||"CONTINUOUS_INTEGRATION"in $.env||Object.keys($.env).some(e=>e.startsWith("CI_"))),Vt=e=>e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;");function ci(e,...r){if(typeof e=="string")return Vt(e);let n=e[0];for(const[l,i]of r.entries())n=n+Vt(String(i))+e[l+1];return n}var fi=class extends Error{constructor(e){super(`Missing a value for ${e?`the placeholder: ${e}`:"a placeholder"}`,e),this.name="MissingValueError",this.key=e}},hi=class extends Error{constructor(e){super(`Missing filter: ${e}`),this.name="MissingFilterError",this.filterName=e}};function pi(e,r,{ignoreMissing:n=!1,transform:l=({value:o})=>o,filters:i={}}={}){if(typeof e!="string")throw new TypeError(`Expected a \`string\` in the first argument, got \`${typeof e}\``);if(typeof r!="object")throw new TypeError(`Expected an \`object\` or \`Array\` in the second argument, got \`${typeof r}\``);const o="",D="";e=e.replace(/\\{/g,o),e=e.replace(/\\}/g,D);const s=F=>{const E=[];let C="";for(let v=0;v<F.length;v++)F[v]==="\\"&&F[v+1]==="."?(C+=".",v++):F[v]==="."?(E.push(C),C=""):C+=F[v];return E.push(C),E},u=(F,E)=>{const C=E.split("|").map(f=>f.trim()),v=C[0],y=C.slice(1),p=s(v);let t=r;for(const f of p)t&&(t=t[f]);for(const f of y){const d=i[f];if(!d){if(n)return F;throw new hi(f)}t!==void 0&&(t=d(t))}const a=l({value:t,key:v});if(a===void 0){if(n)return F;throw new fi(v)}return String(a)},c="((\\d+|[a-z$_][\\w\\-.$\\\\]*)\\s*(?:\\|\\s*[a-z$_][\\w$]*\\s*)*)",m=new RegExp(`{{${c}}}`,"gi"),h=new RegExp(`{${c}}`,"gi");return e=e.replace(m,(...F)=>ci(u(...F))),e=e.replace(h,u),e=e.replace(new RegExp(o,"g"),"{"),e=e.replace(new RegExp(D,"g"),"}"),e}var di=V.default.dirname((0,Gt.fileURLToPath)(require("url").pathToFileURL(__filename).href)),mi=1e3*60*60*24,Fi=class{config;update;_packageName;_shouldNotifyInNpmScript;#o;#r;#u;#t;constructor(e={}){if(this.#o=e,e.pkg??={},e.distTag??="latest",e.pkg={name:e.pkg.name??e.packageName,version:e.pkg.version??e.packageVersion},!e.pkg.name||!e.pkg.version)throw new Error("pkg.name and pkg.version required");if(this._packageName=e.pkg.name,this.#r=e.pkg.version,this.#u=typeof e.updateCheckInterval=="number"?e.updateCheckInterval:mi,this.#t="NO_UPDATE_NOTIFIER"in $.default.env||$.default.env.NODE_ENV==="test"||$.default.argv.includes("--no-update-notifier")||li,this._shouldNotifyInNpmScript=e.shouldNotifyInNpmScript,!this.#t)try{this.config=new zr(`update-notifier-${this._packageName}`,{optOut:!1,lastUpdateCheck:Date.now()})}catch{const r=W.chalk.yellow((0,X.format)(" %s update check failed ",e.pkg.name))+(0,X.format)(`
57
- Try running with %s or get access `,W.chalk.cyan("sudo"))+`
53
+ `).map(l=>Zn(l,r,n)).join(`
54
+ `)}var De=`
55
+ `,re=" ",ye="none",mr=()=>{const{env:e,stdout:r,stderr:n}=$.default;return r?.columns?r.columns:n?.columns?n.columns:e.COLUMNS?Number.parseInt(e.COLUMNS,10):80},Lt=e=>typeof e=="number"?{top:e,right:e*3,bottom:e,left:e*3}:{top:0,right:0,bottom:0,left:0,...e},ve=e=>e===ye?0:2,ei=e=>{const r=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"];let n;if(e===ye){e={};for(const l of r)e[l]=""}if(typeof e=="string"){if(n=Rn.default[e],!n)throw new TypeError(`Invalid border style: ${e}`)}else{typeof e?.vertical=="string"&&(e.left=e.vertical,e.right=e.vertical),typeof e?.horizontal=="string"&&(e.top=e.horizontal,e.bottom=e.horizontal);for(const l of r)if(e[l]===null||typeof e[l]!="string")throw new TypeError(`Invalid border style: ${l}`);n=e}return n},ti=(e,r,n)=>{let l="";const i=ne(e);switch(n){case"left":l=e+r.slice(i);break;case"right":l=r.slice(i)+e;break;default:r=r.slice(i),r.length%2===1?(r=r.slice(Math.floor(r.length/2)),l=r.slice(1)+e+r):(r=r.slice(r.length/2),l=r+e+r);break}return l},ri=(e,{padding:r,width:n,textAlignment:l,height:i})=>{e=(0,$t.default)(e,{align:l});let o=e.split(De);const D=lr(e),s=n-r.left-r.right;if(D>s){const m=[];for(const h of o){const F=(0,$t.default)(dr(h,s,{hard:!0}),{align:l}).split(`
56
+ `),E=Math.max(...F.map(C=>ne(C)));for(const C of F){let v;switch(l){case"center":v=re.repeat((s-E)/2)+C;break;case"right":v=re.repeat(s-E)+C;break;default:v=C;break}m.push(v)}}o=m}l==="center"&&D<s?o=o.map(m=>re.repeat((s-D)/2)+m):l==="right"&&D<s&&(o=o.map(m=>re.repeat(s-D)+m));const u=re.repeat(r.left),c=re.repeat(r.right);return o=o.map(m=>{const h=u+m+c;return h+re.repeat(n-ne(h))}),r.top>0&&(o=[...Array.from({length:r.top}).fill(re.repeat(n)),...o]),r.bottom>0&&(o=[...o,...Array.from({length:r.bottom}).fill(re.repeat(n))]),i&&o.length>i?o=o.slice(0,i):i&&o.length<i&&(o=[...o,...Array.from({length:i-o.length}).fill(re.repeat(n))]),o.join(De)},ui=(e,r,n)=>{const l=m=>{const h=n.borderColor?oi(n.borderColor)(m):m;return n.dimBorder?w.chalk.dim(h):h},i=m=>n.backgroundColor?si(n.backgroundColor)(m):m,o=ei(n.borderStyle),D=mr();let s=re.repeat(n.margin.left);if(n.float==="center"){const m=Math.max((D-r-ve(n.borderStyle))/2,0);s=re.repeat(m)}else if(n.float==="right"){const m=Math.max(D-r-n.margin.right-ve(n.borderStyle),0);s=re.repeat(m)}let u="";n.margin.top&&(u+=De.repeat(n.margin.top)),(n.borderStyle!==ye||n.title)&&(u+=l(s+o.topLeft+(n.title?ti(n.title,o.top.repeat(r),n.titleAlignment):o.top.repeat(r))+o.topRight)+De);const c=e.split(De);return u+=c.map(m=>s+l(o.left)+i(m)+l(o.right)).join(De),n.borderStyle!==ye&&(u+=De+l(s+o.bottomLeft+o.bottom.repeat(r)+o.bottomRight)),n.margin.bottom&&(u+=De.repeat(n.margin.bottom)),u},ni=e=>{if(e.fullscreen&&$.default?.stdout){let r=[$.default.stdout.columns,$.default.stdout.rows];typeof e.fullscreen=="function"&&(r=e.fullscreen(...r)),e.width||=r[0],e.height||=r[1]}return e.width&&=Math.max(1,e.width-ve(e.borderStyle)),e.height&&=Math.max(1,e.height-ve(e.borderStyle)),e},Mt=(e,r)=>r===ye?e:` ${e} `,ii=(e,r)=>{r=ni(r);const n=r.width!==void 0,l=mr(),i=ve(r.borderStyle),o=l-r.margin.left-r.margin.right-i,D=lr(dr(e,l-i,{hard:!0,trim:!1}))+r.padding.left+r.padding.right;if(r.title&&n?(r.title=r.title.slice(0,Math.max(0,r.width-2)),r.title&&=Mt(r.title,r.borderStyle)):r.title&&(r.title=r.title.slice(0,Math.max(0,o-2)),r.title&&(r.title=Mt(r.title,r.borderStyle),ne(r.title)>D&&(r.width=ne(r.title)))),r.width||=D,!n){if(r.margin.left&&r.margin.right&&r.width>o){const s=(l-r.width-i)/(r.margin.left+r.margin.right);r.margin.left=Math.max(0,Math.floor(r.margin.left*s)),r.margin.right=Math.max(0,Math.floor(r.margin.right*s))}r.width=Math.min(r.width,l-i-r.margin.left-r.margin.right)}return r.width-(r.padding.left+r.padding.right)<=0&&(r.padding.left=0,r.padding.right=0),r.height&&r.height-(r.padding.top+r.padding.bottom)<=0&&(r.padding.top=0,r.padding.bottom=0),r},dt=e=>e.match(/^#(?:[0-f]{3}){1,2}$/i),qt=e=>typeof e=="string"&&(w.chalk[e]??dt(e)),oi=e=>dt(e)?w.chalk.hex(e):w.chalk[e],si=e=>dt(e)?w.chalk.bgHex(e):w.chalk[Ln(["bg",e])];function Ht(e,r){if(r={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...r},r.align&&(r.textAlignment=r.align),r.borderColor&&!qt(r.borderColor))throw new Error(`${r.borderColor} is not a valid borderColor`);if(r.backgroundColor&&!qt(r.backgroundColor))throw new Error(`${r.backgroundColor} is not a valid backgroundColor`);return r.padding=Lt(r.padding),r.margin=Lt(r.margin),r=ii(e,r),e=ri(e,r),ui(e,r.width,r)}var ai=$.env.CI!=="0"&&$.env.CI!=="false"&&("CI"in $.env||"CONTINUOUS_INTEGRATION"in $.env||Object.keys($.env).some(e=>e.startsWith("CI_"))),Wt=e=>e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;");function Di(e,...r){if(typeof e=="string")return Wt(e);let n=e[0];for(const[l,i]of r.entries())n=n+Wt(String(i))+e[l+1];return n}var li=class extends Error{constructor(e){super(`Missing a value for ${e?`the placeholder: ${e}`:"a placeholder"}`,e),this.name="MissingValueError",this.key=e}},ci=class extends Error{constructor(e){super(`Missing filter: ${e}`),this.name="MissingFilterError",this.filterName=e}};function fi(e,r,{ignoreMissing:n=!1,transform:l=({value:o})=>o,filters:i={}}={}){if(typeof e!="string")throw new TypeError(`Expected a \`string\` in the first argument, got \`${typeof e}\``);if(typeof r!="object")throw new TypeError(`Expected an \`object\` or \`Array\` in the second argument, got \`${typeof r}\``);const o="",D="";e=e.replace(/\\{/g,o),e=e.replace(/\\}/g,D);const s=F=>{const E=[];let C="";for(let v=0;v<F.length;v++)F[v]==="\\"&&F[v+1]==="."?(C+=".",v++):F[v]==="."?(E.push(C),C=""):C+=F[v];return E.push(C),E},u=(F,E)=>{const C=E.split("|").map(f=>f.trim()),v=C[0],y=C.slice(1),p=s(v);let t=r;for(const f of p)t&&(t=t[f]);for(const f of y){const d=i[f];if(!d){if(n)return F;throw new ci(f)}t!==void 0&&(t=d(t))}const a=l({value:t,key:v});if(a===void 0){if(n)return F;throw new li(v)}return String(a)},c="((\\d+|[a-z$_][\\w\\-.$\\\\]*)\\s*(?:\\|\\s*[a-z$_][\\w$]*\\s*)*)",m=new RegExp(`{{${c}}}`,"gi"),h=new RegExp(`{${c}}`,"gi");return e=e.replace(m,(...F)=>Di(u(...F))),e=e.replace(h,u),e=e.replace(new RegExp(o,"g"),"{"),e=e.replace(new RegExp(D,"g"),"}"),e}var hi=W.default.dirname((0,Ut.fileURLToPath)(require("url").pathToFileURL(__filename).href)),pi=1e3*60*60*24,di=class{config;update;_packageName;_shouldNotifyInNpmScript;#o;#r;#u;#t;constructor(e={}){if(this.#o=e,e.pkg??={},e.distTag??="latest",e.pkg={name:e.pkg.name??e.packageName,version:e.pkg.version??e.packageVersion},!e.pkg.name||!e.pkg.version)throw new Error("pkg.name and pkg.version required");if(this._packageName=e.pkg.name,this.#r=e.pkg.version,this.#u=typeof e.updateCheckInterval=="number"?e.updateCheckInterval:pi,this.#t="NO_UPDATE_NOTIFIER"in $.default.env||$.default.env.NODE_ENV==="test"||$.default.argv.includes("--no-update-notifier")||ai,this._shouldNotifyInNpmScript=e.shouldNotifyInNpmScript,!this.#t)try{this.config=new Kr(`update-notifier-${this._packageName}`,{optOut:!1,lastUpdateCheck:Date.now()})}catch{const r=w.chalk.yellow((0,z.format)(" %s update check failed ",e.pkg.name))+(0,z.format)(`
57
+ Try running with %s or get access `,w.chalk.cyan("sudo"))+`
58
58
  to the local update config store via
59
- `+W.chalk.cyan((0,X.format)(" sudo chown -R $USER:$(id -gn $USER) %s ",Oe));$.default.on("exit",()=>{console.error(Wt(r,{textAlignment:"center"}))})}}check(){!this.config||this.config.get("optOut")||this.#t||(this.update=this.config.get("update"),this.update&&(this.update.current=this.#r,this.config.delete("update")),!(Date.now()-this.config.get("lastUpdateCheck")<this.#u)&&(0,Er.spawn)($.default.execPath,[V.default.join(di,"check.js"),JSON.stringify(this.#o)],{detached:!0,stdio:"ignore"}).unref())}async fetchInfo(){const{distTag:e}=this.#o,r=await Qu(this._packageName,{version:e});return{latest:r,current:this.#r,type:(0,Xr.default)(this.#r,r)??e,name:this._packageName}}notify(e){const r=!this._shouldNotifyInNpmScript&&rn;if(!$.default.stdout.isTTY||r||!this.update||!(0,Qr.default)(this.update.latest,this.update.current))return this;e={isGlobal:cn,...e};const n=e.isGlobal?`npm i -g ${this._packageName}`:`npm i ${this._packageName}`,l="Update available "+W.chalk.dim("{currentVersion}")+W.chalk.reset(" → ")+W.chalk.green("{latestVersion}")+`
60
- Run `+W.chalk.cyan("{updateCommand}")+" to update",i=e.message||l;e.boxenOptions??={padding:1,margin:1,textAlignment:"center",borderColor:"yellow",borderStyle:"round"};const o=Wt(pi(i,{packageName:this._packageName,currentVersion:this.update.current,latestVersion:this.update.latest,updateCommand:n}),e.boxenOptions);return e.defer===!1?console.error(o):$.default.on("exit",()=>{console.error(o)}),this}};function gi(e){const r=new Fi(e);return r.check(),r}var Ut="Output the version number of npm-check-updates.",Ei=e=>e.replace(/`/g,""),Ci=(0,xr.default)();(async()=>{const e=gi({pkg:W.package_default});if(e.update&&e.update.latest!==W.package_default.version){const a=W.getChalk(!0),f=Je.default.parse(e.update.current)?.major,d=Je.default.parse(e.update.latest)?.major,g=(f&&d&&d>=f?new Array(d-f).fill(0).map((A,b)=>f+b+1):[]).map(A=>`${W.package_default.homepage??""}/releases/tag/v${A}.0.0`),_=`${W.package_default.homepage??""}/compare/v${e.update.current}...v${e.update.latest}`;e.notify({defer:!1,isGlobal:!0,message:`Update available ${a.dim("{currentVersion}")}${a.reset(" → ")}${e.update.type==="major"?a.red("{latestVersion}"):e.update.type==="minor"?a.yellow("{latestVersion}"):a.green("{latestVersion}")}
59
+ `+w.chalk.cyan((0,z.format)(" sudo chown -R $USER:$(id -gn $USER) %s ",Se));$.default.on("exit",()=>{console.error(Ht(r,{textAlignment:"center"}))})}}check(){!this.config||this.config.get("optOut")||this.#t||(this.update=this.config.get("update"),this.update&&(this.update.current=this.#r,this.config.delete("update")),!(Date.now()-this.config.get("lastUpdateCheck")<this.#u)&&(0,gr.spawn)($.default.execPath,[W.default.join(hi,"check.js"),JSON.stringify(this.#o)],{detached:!0,stdio:"ignore"}).unref())}async fetchInfo(){const{distTag:e}=this.#o,r=await zu(this._packageName,{version:e});return{latest:r,current:this.#r,type:(0,zr.default)(this.#r,r)??e,name:this._packageName}}notify(e){const r=!this._shouldNotifyInNpmScript&&en;if(!$.default.stdout.isTTY||r||!this.update||!(0,Xr.default)(this.update.latest,this.update.current))return this;e={isGlobal:Dn,...e};const n=e.isGlobal?`npm i -g ${this._packageName}`:`npm i ${this._packageName}`,l="Update available "+w.chalk.dim("{currentVersion}")+w.chalk.reset(" → ")+w.chalk.green("{latestVersion}")+`
60
+ Run `+w.chalk.cyan("{updateCommand}")+" to update",i=e.message||l;e.boxenOptions??={padding:1,margin:1,textAlignment:"center",borderColor:"yellow",borderStyle:"round"};const o=Ht(fi(i,{packageName:this._packageName,currentVersion:this.update.current,latestVersion:this.update.latest,updateCommand:n}),e.boxenOptions);return e.defer===!1?console.error(o):$.default.on("exit",()=>{console.error(o)}),this}};function mi(e){const r=new di(e);return r.check(),r}var Vt="Output the version number of npm-check-updates.",Fi=e=>e.replace(/`/g,""),gi=(0,Or.default)();(async()=>{const e=mi({pkg:w.package_default});if(e.update&&e.update.latest!==w.package_default.version){const a=w.getChalk(!0),f=Ge.default.parse(e.update.current)?.major,d=Ge.default.parse(e.update.latest)?.major,g=(f&&d&&d>=f?new Array(d-f).fill(0).map((A,b)=>f+b+1):[]).map(A=>`${w.package_default.homepage??""}/releases/tag/v${A}.0.0`),_=`${w.package_default.homepage??""}/compare/v${e.update.current}...v${e.update.latest}`;e.notify({defer:!1,isGlobal:!0,message:`Update available ${a.dim("{currentVersion}")}${a.reset(" → ")}${e.update.type==="major"?a.red("{latestVersion}"):e.update.type==="minor"?a.yellow("{latestVersion}"):a.green("{latestVersion}")}
61
61
  Run ${a.cyan("{updateCommand}")} to update
62
62
  ${a.dim.underline(e.update.type==="major"?g.map(A=>a.dim.underline(A)).join(`
63
- `):_)}`})}const r=process.argv.slice(2),n=r.findIndex(a=>a==="--help"||a==="-h");if(n!==-1&&r[n+1]){const a=r[n+1].replace(/^-*/,"");a==="help"||a==="h"?console.info("Would you like some help with your help?"):(await W.chalkInit(),[...r.slice(0,n),...r.slice(n+1)].forEach(f=>{const d=f.replace(/^-*/,""),g=W.cliOptionsSorted.find(_=>d===_.long||d===_.short||d===`no-${_.long}`&&_.type==="boolean");console.info(g?W.renderExtendedHelp(g)+`
64
- `:d==="version"||d==="v"||d==="V"?W.renderExtendedHelp({long:"version",short:"v",description:Ut,type:"string"})+`
65
- `:`Unknown option: ${f}`)})),process.exit(0)}const l=new Set(W.cliOptionsSorted.filter(a=>a.cli===!1).map(a=>`--${a.long}`));te.description("[filter] is a list or regex of package names to check (all others will be ignored).").usage("[options] [filter]").configureHelp({optionTerm:a=>a.long&&l.has(a.long)?a.long.replace("--","")+"*":a.long==="--version"?"-v, -V, --version":a.flags.replace("[bool]",""),optionDescription:a=>a.long==="--version"?Ut:a.long==="--help"?`You're lookin' at it. Run "ncu --help <option>" for a specific option.`:Ar.prototype.optionDescription(a)}).addOption(new Ft("-v, --versionAlias").hideHelp()).on("option:versionAlias",()=>{console.info(W.package_default.version),process.exit(0)}),W.cliOptionsSorted.forEach(({long:a,short:f,arg:d,description:g,default:_,help:A,parse:b,type:S})=>{const B=`${f?`-${f}, `:""}--${a}${d?` <${d}>`:""}`,O=`${Ei(g)}${A?` Run "ncu --help ${a}" for details.`:""}`;te.option(B,O,b||_,b?_:void 0),S==="boolean"&&te.addOption(new Ft(`--no-${a}`).default(!1).hideHelp())}),te.version(W.package_default.version);const i=Ci(te._optionValues);te.allowExcessArguments(!0),te.parse(process.argv);const o=te.opts(),D=process.argv.slice(2),{color:s,configFileName:u,configFilePath:c,global:m,packageFile:h,mergeConfig:F}=o;await W.chalkInit(s);const E=!process.env.NCU_TESTS||c||F?await W.getNcuRc({configFileName:u,configFilePath:c,global:m,packageFile:h,options:{...o,cli:!0}}):null,C=(E?.args||[]).filter((a,f,d)=>(typeof a!="string"||!a.startsWith("-")||!D.includes(a))&&(typeof d[f-1]!="string"||!d[f-1].startsWith("-")||!D.includes(d[f-1]))),v=[...process.argv.slice(0,2),...C,...D],y={},p=v.slice(2);for(let a=0;a<p.length;a++){const f=p[a];if(typeof f!="string"||!f.startsWith("-"))continue;const d=W.cliOptionsMap[f.replace(/^--?(no-)?/,"")];if(d){const g=d.long;d.arg?(y[g]=a+1<p.length?p[a+1]:!0,a++):d.type==="boolean"?y[g]=!f.startsWith("--no-"):y[g]=!0}}te._optionValues=i,te.parse(v);const t=te.opts();W.default({...E&&Object.keys(E.config).length>0?{rcConfigPath:E.filePath}:null,...W.pickBy(te.opts(),a=>a!==void 0),args:te.args,raw:y,...t.filter?{filter:t.filter}:null,...t.reject?{reject:t.reject}:null},{cli:!0})})();
63
+ `):_)}`})}const r=process.argv.slice(2),n=r.findIndex(a=>a==="--help"||a==="-h");if(n!==-1&&r[n+1]){const a=r[n+1].replace(/^-*/,"");a==="help"||a==="h"?console.info("Would you like some help with your help?"):(await w.chalkInit(),[...r.slice(0,n),...r.slice(n+1)].forEach(f=>{const d=f.replace(/^-*/,""),g=w.cliOptionsSorted.find(_=>d===_.long||d===_.short||d===`no-${_.long}`&&_.type==="boolean");console.info(g?w.renderExtendedHelp(g)+`
64
+ `:d==="version"||d==="v"||d==="V"?w.renderExtendedHelp({long:"version",short:"v",description:Vt,type:"string"})+`
65
+ `:`Unknown option: ${f}`)})),process.exit(0)}const l=new Set(w.cliOptionsSorted.filter(a=>a.cli===!1).map(a=>`--${a.long}`));ee.description("[filter] is a list or regex of package names to check (all others will be ignored).").usage("[options] [filter]").configureHelp({optionTerm:a=>a.long&&l.has(a.long)?a.long.replace("--","")+"*":a.long==="--version"?"-v, -V, --version":a.flags.replace("[bool]",""),optionDescription:a=>a.long==="--version"?Vt:a.long==="--help"?`You're lookin' at it. Run "ncu --help <option>" for a specific option.`:_r.prototype.optionDescription(a)}).addOption(new mt("-v, --versionAlias").hideHelp()).on("option:versionAlias",()=>{console.info(w.package_default.version),process.exit(0)}),w.cliOptionsSorted.forEach(({long:a,short:f,arg:d,description:g,default:_,help:A,parse:b,type:O})=>{const S=`${f?`-${f}, `:""}--${a}${d?` <${d}>`:""}`,x=`${Fi(g)}${A?` Run "ncu --help ${a}" for details.`:""}`;ee.option(S,x,b||_,b?_:void 0),O==="boolean"&&ee.addOption(new mt(`--no-${a}`).default(!1).hideHelp())}),ee.version(w.package_default.version);const i=gi(ee._optionValues);ee.allowExcessArguments(!0),ee.parse(process.argv);const o=ee.opts(),D=process.argv.slice(2),{color:s,configFileName:u,configFilePath:c,global:m,packageFile:h,mergeConfig:F}=o;await w.chalkInit(s);const E=!process.env.NCU_TESTS||c||F?await w.getNcuRc({configFileName:u,configFilePath:c,global:m,packageFile:h,options:{...o,cli:!0}}):null,C=(E?.args||[]).filter((a,f,d)=>(typeof a!="string"||!a.startsWith("-")||!D.includes(a))&&(typeof d[f-1]!="string"||!d[f-1].startsWith("-")||!D.includes(d[f-1]))),v=[...process.argv.slice(0,2),...C,...D],y={},p=v.slice(2);for(let a=0;a<p.length;a++){const f=p[a];if(typeof f!="string"||!f.startsWith("-"))continue;const d=w.cliOptionsMap[f.replace(/^--?(no-)?/,"")];if(d){const g=d.long;d.arg?(y[g]=a+1<p.length?p[a+1]:!0,a++):d.type==="boolean"?y[g]=!f.startsWith("--no-"):y[g]=!0}}ee._optionValues=i,ee.parse(v);const t=ee.opts();w.default({...E&&Object.keys(E.config).length>0?{rcConfigPath:E.filePath}:null,...w.pickBy(ee.opts(),a=>a!==void 0),args:ee.args,raw:y,...t.filter?{filter:t.filter}:null,...t.reject?{reject:t.reject}:null},{cli:!0})})();
66
66
 
67
67
  //# sourceMappingURL=cli.cjs.map