npm-check-updates 22.2.3 → 22.2.6

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,57 @@
1
1
  #!/usr/bin/env node
2
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./chunks/chunk-jrEOD7hJ.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(`
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
- `+" ".repeat(o+h)),c+m+" ".repeat(h)+E.replace(/\n/g,`
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}
2
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./index.cjs");let t=require("path");t=e.v(t,1);let n=require("os");n=e.v(n,1);let r=require("node:process");r=e.v(r,1);let i=require("node:os");i=e.v(i,1);let a=require("node:path");a=e.v(a,1);let o=require("node:url"),s=require("node:util"),c=require("node:fs");c=e.v(c,1);let l=require("node:child_process");var u=e.m((e=>{var t=class extends Error{constructor(e,t,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},n=class extends t{constructor(e){super(1,`commander.invalidArgument`,e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};e.CommanderError=t,e.InvalidArgumentError=n})),d=e.m((e=>{var{InvalidArgumentError:t}=u(),n=class{constructor(e,t){switch(this.description=t||``,this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case`<`:this.required=!0,this._name=e.slice(1,-1);break;case`[`:this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.endsWith(`...`)&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(e,t){return t===this.defaultValue||!Array.isArray(t)?[e]:(t.push(e),t)}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,n)=>{if(!this.argChoices.includes(e))throw new t(`Allowed choices are ${this.argChoices.join(`, `)}.`);return this.variadic?this._collectValue(e,n):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function r(e){let t=e.name()+(e.variadic===!0?`...`:``);return e.required?`<`+t+`>`:`[`+t+`]`}e.Argument=n,e.humanReadableArgName=r})),f=e.m((e=>{var{humanReadableArgName:t}=d(),n=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){let t=e.commands.filter(e=>!e._hidden),n=e._getHelpCommand();return n&&!n._hidden&&t.push(n),this.sortSubcommands&&t.sort((e,t)=>e.name().localeCompare(t.name())),t}compareOptions(e,t){let n=e=>e.short?e.short.replace(/^-/,``):e.long.replace(/^--/,``);return n(e).localeCompare(n(t))}visibleOptions(e){let t=e.options.filter(e=>!e.hidden),n=e._getHelpOption();if(n&&!n.hidden){let r=n.short&&e._findOption(n.short),i=n.long&&e._findOption(n.long);!r&&!i?t.push(n):n.long&&!i?t.push(e.createOption(n.long,n.description)):n.short&&!r&&t.push(e.createOption(n.short,n.description))}return this.sortOptions&&t.sort(this.compareOptions),t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let t=[];for(let n=e.parent;n;n=n.parent){let e=n.options.filter(e=>!e.hidden);t.push(...e)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(t=>{t.description=t.description||e._argsDescription[t.name()]||``}),e.registeredArguments.find(e=>e.description)?e.registeredArguments:[]}subcommandTerm(e){let n=e.registeredArguments.map(e=>t(e)).join(` `);return e._name+(e._aliases[0]?`|`+e._aliases[0]:``)+(e.options.length?` [options]`:``)+(n?` `+n:``)}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleSubcommandTerm(t.subcommandTerm(n)))),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleOptionTerm(t.optionTerm(n)))),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleOptionTerm(t.optionTerm(n)))),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleArgumentTerm(t.argumentTerm(n)))),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+`|`+e._aliases[0]);let n=``;for(let t=e.parent;t;t=t.parent)n=t.name()+` `+n;return n+t+` `+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(e=>JSON.stringify(e)).join(`, `)}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue==`boolean`)&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&t.push(`env: ${e.envVar}`),t.length>0){let n=`(${t.join(`, `)})`;return e.description?`${e.description} ${n}`:n}return e.description}argumentDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(e=>JSON.stringify(e)).join(`, `)}`),e.defaultValue!==void 0&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){let n=`(${t.join(`, `)})`;return e.description?`${e.description} ${n}`:n}return e.description}formatItemList(e,t,n){return t.length===0?[]:[n.styleTitle(e),...t,``]}groupItems(e,t,n){let r=new Map;return e.forEach(e=>{let t=n(e);r.has(t)||r.set(t,[])}),t.forEach(e=>{let t=n(e);r.has(t)||r.set(t,[]),r.get(t).push(e)}),r}formatHelp(e,t){let n=t.padWidth(e,t),r=t.helpWidth??80;function i(e,r){return t.formatItem(e,n,r,t)}let a=[`${t.styleTitle(`Usage:`)} ${t.styleUsage(t.commandUsage(e))}`,``],o=t.commandDescription(e);o.length>0&&(a=a.concat([t.boxWrap(t.styleCommandDescription(o),r),``]));let s=t.visibleArguments(e).map(e=>i(t.styleArgumentTerm(t.argumentTerm(e)),t.styleArgumentDescription(t.argumentDescription(e))));if(a=a.concat(this.formatItemList(`Arguments:`,s,t)),this.groupItems(e.options,t.visibleOptions(e),e=>e.helpGroupHeading??`Options:`).forEach((e,n)=>{let r=e.map(e=>i(t.styleOptionTerm(t.optionTerm(e)),t.styleOptionDescription(t.optionDescription(e))));a=a.concat(this.formatItemList(n,r,t))}),t.showGlobalOptions){let n=t.visibleGlobalOptions(e).map(e=>i(t.styleOptionTerm(t.optionTerm(e)),t.styleOptionDescription(t.optionDescription(e))));a=a.concat(this.formatItemList(`Global Options:`,n,t))}return this.groupItems(e.commands,t.visibleCommands(e),e=>e.helpGroup()||`Commands:`).forEach((e,n)=>{let r=e.map(e=>i(t.styleSubcommandTerm(t.subcommandTerm(e)),t.styleSubcommandDescription(t.subcommandDescription(e))));a=a.concat(this.formatItemList(n,r,t))}),a.join(`
3
+ `)}displayWidth(e){return r(e).length}styleTitle(e){return e}styleUsage(e){return e.split(` `).map(e=>e===`[options]`?this.styleOptionText(e):e===`[command]`?this.styleSubcommandText(e):e[0]===`[`||e[0]===`<`?this.styleArgumentText(e):this.styleCommandText(e)).join(` `)}styleCommandDescription(e){return this.styleDescriptionText(e)}styleOptionDescription(e){return this.styleDescriptionText(e)}styleSubcommandDescription(e){return this.styleDescriptionText(e)}styleArgumentDescription(e){return this.styleDescriptionText(e)}styleDescriptionText(e){return e}styleOptionTerm(e){return this.styleOptionText(e)}styleSubcommandTerm(e){return e.split(` `).map(e=>e===`[options]`?this.styleOptionText(e):e[0]===`[`||e[0]===`<`?this.styleArgumentText(e):this.styleSubcommandText(e)).join(` `)}styleArgumentTerm(e){return this.styleArgumentText(e)}styleOptionText(e){return e}styleArgumentText(e){return e}styleSubcommandText(e){return e}styleCommandText(e){return e}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}preformatted(e){return/\n[^\S\r\n]/.test(e)}formatItem(e,t,n,r){let i=` `.repeat(2);if(!n)return i+e;let a=e.padEnd(t+e.length-r.displayWidth(e)),o=(this.helpWidth??80)-t-2-2,s;return s=o<this.minWidthToWrap||r.preformatted(n)?n:r.boxWrap(n,o).replace(/\n/g,`
4
+ `+` `.repeat(t+2)),i+a+` `.repeat(2)+s.replace(/\n/g,`\n${i}`)}boxWrap(e,t){if(t<this.minWidthToWrap)return e;let n=e.split(/\r\n|\n/),r=/[\s]*[^\s]+/g,i=[];return n.forEach(e=>{let n=e.match(r);if(n===null){i.push(``);return}let a=[n.shift()],o=this.displayWidth(a[0]);n.forEach(e=>{let n=this.displayWidth(e);if(o+n<=t){a.push(e),o+=n;return}i.push(a.join(``));let r=e.trimStart();a=[r],o=this.displayWidth(r)}),i.push(a.join(``))}),i.join(`
5
+ `)}};function r(e){return e.replace(/\x1b\[\d*(;\d*)*m/g,``)}e.Help=n,e.stripColor=r})),p=e.m((e=>{var{InvalidArgumentError:t}=u(),n=class{constructor(e,t){this.flags=e,this.description=t||``,this.required=e.includes(`<`),this.optional=e.includes(`[`),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=a(e);this.short=n.shortFlag,this.long=n.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(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let t=e;return typeof e==`string`&&(t={[e]:!0}),this.implied=Object.assign(this.implied||{},t),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_collectValue(e,t){return t===this.defaultValue||!Array.isArray(t)?[e]:(t.push(e),t)}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,n)=>{if(!this.argChoices.includes(e))throw new t(`Allowed choices are ${this.argChoices.join(`, `)}.`);return this.variadic?this._collectValue(e,n):e},this}name(){return this.long?this.long.replace(/^--/,``):this.short.replace(/^-/,``)}attributeName(){return this.negate?i(this.name().replace(/^no-/,``)):i(this.name())}helpGroup(e){return this.helpGroupHeading=e,this}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},r=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(e=>{e.negate?this.negativeOptions.set(e.attributeName(),e):this.positiveOptions.set(e.attributeName(),e)}),this.negativeOptions.forEach((e,t)=>{this.positiveOptions.has(t)&&this.dualOptions.add(t)})}valueFromOption(e,t){let n=t.attributeName();if(!this.dualOptions.has(n))return!0;let r=this.negativeOptions.get(n).presetArg,i=r===void 0?!1:r;return t.negate===(i===e)}};function i(e){return e.split(`-`).reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}function a(e){let t,n,r=/^-[^-]$/,i=/^--[^-]/,a=e.split(/[ |,]+/).concat(`guard`);if(r.test(a[0])&&(t=a.shift()),i.test(a[0])&&(n=a.shift()),!t&&r.test(a[0])&&(t=a.shift()),!t&&i.test(a[0])&&(t=n,n=a.shift()),a[0].startsWith(`-`)){let t=a[0],n=`option creation failed due to '${t}' in option flags '${e}'`;throw/^-[^-][^-]/.test(t)?Error(`${n}
7
6
  - a short flag is a single dash and a single character
8
7
  - either use a single dash and a single character (for a short flag)
9
- - or use a double dash for a long option (and can have two, like '--ws, --workspace')`):c.test(F)?new Error(`${E}
10
- - too many short flags`):m.test(F)?new Error(`${E}
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?`
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
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
- 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.
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
- - if '${f}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
8
+ - or use a double dash for a long option (and can have two, like '--ws, --workspace')`):r.test(t)?Error(`${n}
9
+ - too many short flags`):i.test(t)?Error(`${n}
10
+ - too many long flags`):Error(`${n}
11
+ - unrecognised flag format`)}if(t===void 0&&n===void 0)throw Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:n}}e.Option=n,e.DualOptions=r})),m=e.m((e=>{var t=3;function n(e,n){if(Math.abs(e.length-n.length)>t)return Math.max(e.length,n.length);let r=[];for(let t=0;t<=e.length;t++)r[t]=[t];for(let e=0;e<=n.length;e++)r[0][e]=e;for(let t=1;t<=n.length;t++)for(let i=1;i<=e.length;i++){let a=1;a=e[i-1]===n[t-1]?0:1,r[i][t]=Math.min(r[i-1][t]+1,r[i][t-1]+1,r[i-1][t-1]+a),i>1&&t>1&&e[i-1]===n[t-2]&&e[i-2]===n[t-1]&&(r[i][t]=Math.min(r[i][t],r[i-2][t-2]+1))}return r[e.length][n.length]}function r(e,r){if(!r||r.length===0)return``;r=Array.from(new Set(r));let i=e.startsWith(`--`);i&&(e=e.slice(2),r=r.map(e=>e.slice(2)));let a=[],o=t;return r.forEach(t=>{if(t.length<=1)return;let r=n(e,t),i=Math.max(e.length,t.length);(i-r)/i>.4&&(r<o?(o=r,a=[t]):r===o&&a.push(t))}),a.sort((e,t)=>e.localeCompare(t)),i&&(a=a.map(e=>`--${e}`)),a.length>1?`\n(Did you mean one of ${a.join(`, `)}?)`:a.length===1?`\n(Did you mean ${a[0]}?)`:``}e.suggestSimilar=r})),h=e.m((e=>{var t=require("node:events").EventEmitter,n=require("node:child_process"),r=require("node:path"),i=require("node:fs"),a=require("node:process"),{Argument:o,humanReadableArgName:s}=d(),{CommanderError:c}=u(),{Help:l,stripColor:h}=f(),{Option:g,DualOptions:_}=p(),{suggestSimilar:v}=m(),y=class e extends t{constructor(e){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=e||``,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:e=>a.stdout.write(e),writeErr:e=>a.stderr.write(e),outputError:(e,t)=>t(e),getOutHelpWidth:()=>a.stdout.isTTY?a.stdout.columns:void 0,getErrHelpWidth:()=>a.stderr.isTTY?a.stderr.columns:void 0,getOutHasColors:()=>x()??(a.stdout.isTTY&&a.stdout.hasColors?.()),getErrHasColors:()=>x()??(a.stderr.isTTY&&a.stderr.hasColors?.()),stripColor:e=>h(e)},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(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let t=this;t;t=t.parent)e.push(t);return e}command(e,t,n){let r=t,i=n;typeof r==`object`&&r&&(i=r,r=null),i||={};let[,a,o]=e.match(/([^ ]+) *(.*)/),s=this.createCommand(a);return r&&(s.description(r),s._executableHandler=!0),i.isDefault&&(this._defaultCommandName=s._name),s._hidden=!!(i.noHelp||i.hidden),s._executableFile=i.executableFile||null,o&&s.arguments(o),this._registerCommand(s),s.parent=this,s.copyInheritedSettings(this),r?this:s}createCommand(t){return new e(t)}createHelp(){return Object.assign(new l,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...e},this)}showHelpAfterError(e=!0){return typeof e!=`string`&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,t){if(!e._name)throw Error(`Command passed to .addCommand() must have a name
12
+ - specify the name in Command constructor or using .name()`);return t||={},t.isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,t){return new o(e,t)}argument(e,t,n,r){let i=this.createArgument(e,t);return typeof n==`function`?i.default(r).argParser(n):i.default(n),this.addArgument(i),this}arguments(e){return e.trim().split(/ +/).forEach(e=>{this.argument(e)}),this}addArgument(e){let t=this.registeredArguments.slice(-1)[0];if(t?.variadic)throw Error(`only the last argument can be variadic '${t.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,t){if(typeof e==`boolean`)return this._addImplicitHelpCommand=e,e&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let[,n,r]=(e??`help [command]`).match(/([^ ]+) *(.*)/),i=t??`display help for command`,a=this.createCommand(n);return a.helpOption(!1),r&&a.arguments(r),i&&a.description(i),this._addImplicitHelpCommand=!0,this._helpCommand=a,(e||t)&&this._initCommandGroup(a),this}addHelpCommand(e,t){return typeof e==`object`?(this._addImplicitHelpCommand=!0,this._helpCommand=e,this._initCommandGroup(e),this):(this.helpCommand(e,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(e,t){let n=[`preSubcommand`,`preAction`,`postAction`];if(!n.includes(e))throw Error(`Unexpected value for event passed to hook : '${e}'.
13
+ Expecting one of '${n.join(`', '`)}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=e=>{if(e.code!==`commander.executeSubCommandAsync`)throw e},this}_exit(e,t,n){this._exitCallback&&this._exitCallback(new c(e,t,n)),a.exit(e)}action(e){let t=t=>{let n=this.registeredArguments.length,r=t.slice(0,n);return this._storeOptionsAsProperties?r[n]=this:r[n]=this.opts(),r.push(this),e.apply(this,r)};return this._actionHandler=t,this}createOption(e,t){return new g(e,t)}_callParseArg(e,t,n,r){try{return e.parseArg(t,n)}catch(e){if(e.code===`commander.invalidArgument`){let t=`${r} ${e.message}`;this.error(t,{exitCode:e.exitCode,code:e.code})}throw e}}_registerOption(e){let t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){let n=e.long&&this._findOption(e.long)?e.long:e.short;throw Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${n}'
14
+ - already used by option '${t.flags}'`)}this._initOptionGroup(e),this.options.push(e)}_registerCommand(e){let t=e=>[e.name()].concat(e.aliases()),n=t(e).find(e=>this._findCommand(e));if(n){let r=t(this._findCommand(n)).join(`|`),i=t(e).join(`|`);throw Error(`cannot add command '${i}' as already have command '${r}'`)}this._initCommandGroup(e),this.commands.push(e)}addOption(e){this._registerOption(e);let t=e.name(),n=e.attributeName();if(e.negate){let t=e.long.replace(/^--no-/,`--`);this._findOption(t)||this.setOptionValueWithSource(n,e.defaultValue===void 0?!0:e.defaultValue,`default`)}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,`default`);let r=(t,r,i)=>{t==null&&e.presetArg!==void 0&&(t=e.presetArg);let a=this.getOptionValue(n);t!==null&&e.parseArg?t=this._callParseArg(e,t,a,r):t!==null&&e.variadic&&(t=e._collectValue(t,a)),t??=e.negate?!1:e.isBoolean()||e.optional?!0:``,this.setOptionValueWithSource(n,t,i)};return this.on(`option:`+t,t=>{r(t,`error: option '${e.flags}' argument '${t}' is invalid.`,`cli`)}),e.envVar&&this.on(`optionEnv:`+t,t=>{r(t,`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`,`env`)}),this}_optionEx(e,t,n,r,i){if(typeof t==`object`&&t instanceof g)throw Error(`To add an Option object use addOption() instead of option() or requiredOption()`);let a=this.createOption(t,n);if(a.makeOptionMandatory(!!e.mandatory),typeof r==`function`)a.default(i).argParser(r);else if(r instanceof RegExp){let e=r;r=(t,n)=>{let r=e.exec(t);return r?r[0]:n},a.default(i).argParser(r)}else a.default(r);return this.addOption(a)}option(e,t,n,r){return this._optionEx({},e,t,n,r)}requiredOption(e,t,n,r){return this._optionEx({mandatory:!0},e,t,n,r)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw Error(`call .storeOptionsAsProperties() before adding options`);if(Object.keys(this._optionValues).length)throw Error(`call .storeOptionsAsProperties() before setting option values`);return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,void 0)}setOptionValueWithSource(e,t,n){return this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;return this._getCommandAndAncestors().forEach(n=>{n.getOptionValueSource(e)!==void 0&&(t=n.getOptionValueSource(e))}),t}_prepareUserArgs(e,t){if(e!==void 0&&!Array.isArray(e))throw Error(`first parameter to parse must be array or undefined`);if(t||={},e===void 0&&t.from===void 0){a.versions?.electron&&(t.from=`electron`);let e=a.execArgv??[];(e.includes(`-e`)||e.includes(`--eval`)||e.includes(`-p`)||e.includes(`--print`))&&(t.from=`eval`)}e===void 0&&(e=a.argv),this.rawArgs=e.slice();let n;switch(t.from){case void 0:case`node`:this._scriptPath=e[1],n=e.slice(2);break;case`electron`:a.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case`user`:n=e.slice(0);break;case`eval`:n=e.slice(1);break;default:throw Error(`unexpected parse option { from: '${t.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||`program`,n}parse(e,t){this._prepareForParse();let n=this._prepareUserArgs(e,t);return this._parseCommand([],n),this}async parseAsync(e,t){this._prepareForParse();let n=this._prepareUserArgs(e,t);return await this._parseCommand([],n),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 Error(`Can not call parse again when storeOptionsAsProperties is true.
15
+ - 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(e,t,n){if(i.existsSync(e))return;let r=`'${e}' does not exist
16
+ - if '${n}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
20
17
  - 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}
22
- `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
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}
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
- 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:Ci,createArgument:yi,createOption:vi,CommanderError:_i,InvalidArgumentError:Ai,InvalidOptionArgumentError:bi,Command:wi,Argument:Bi,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),Si=de.XDG_STATE_HOME||(ce?Fe.default.join(ce,".local","state"):void 0),Oi=de.XDG_CACHE_HOME||(ce?Fe.default.join(ce,".cache"):void 0),xi=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,Ti=$.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={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},At=2147483647,uu=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,tr=Symbol("stop"),rr=class{options;constructor(e){this.options=e}},nu=e=>new rr(e),iu={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},ou={next:!0},su={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},au=e=>{if(!e)return 0;if(e instanceof FormData){let r=0;for(const[n,l]of e)r+=uu,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))}}))},Du=(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})},lu=(e,r,n)=>{if(!e.body)return e;const l=au(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")}),cu=(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:cu(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},fu=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},hu=(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 pu(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 du(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 mu=(e,r)=>{const n={};for(const l in r)Object.hasOwn(r,l)&&!(l in su)&&!(l in iu)&&(!(l in e)||l in ou)&&(n[l]=r[l]);return n},Fu=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 gu(e){return e instanceof Ke||e?.name===Ke.name}function Eu(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),Du(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(ru))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:fu(n.method??this.#t.method??"GET"),prefixUrl:String(n.prefixUrl||""),retry:hu(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),Fu(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(Eu(r)&&!this.#e.retry.retryOnTimeout)throw r;if(gu(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 du(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=mu(this.request,this.#e);return this.#s=this.request,this.request=this.#s.clone(),this.#e.timeout===!1?this.#e.fetch(this.#s,r):pu(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:lu(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=nu,r},Cu=Qe(),yu=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
18
+ - ${t?`searched for local subcommand relative to directory '${t}'`:`no directory for search for local subcommand, use .executableDir() to supply a custom directory`}`;throw Error(r)}_executeSubCommand(e,t){t=t.slice();let o=!1,s=[`.js`,`.ts`,`.tsx`,`.mjs`,`.cjs`];function l(e,t){let n=r.resolve(e,t);if(i.existsSync(n))return n;if(s.includes(r.extname(t)))return;let a=s.find(e=>i.existsSync(`${n}${e}`));if(a)return`${n}${a}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let u=e._executableFile||`${this._name}-${e._name}`,d=this._executableDir||``;if(this._scriptPath){let e;try{e=i.realpathSync(this._scriptPath)}catch{e=this._scriptPath}d=r.resolve(r.dirname(e),d)}if(d){let t=l(d,u);if(!t&&!e._executableFile&&this._scriptPath){let n=r.basename(this._scriptPath,r.extname(this._scriptPath));n!==this._name&&(t=l(d,`${n}-${e._name}`))}u=t||u}o=s.includes(r.extname(u));let f;a.platform===`win32`?(this._checkForMissingExecutable(u,d,e._name),t.unshift(u),t=b(a.execArgv).concat(t),f=n.spawn(a.execPath,t,{stdio:`inherit`})):o?(t.unshift(u),t=b(a.execArgv).concat(t),f=n.spawn(a.argv[0],t,{stdio:`inherit`})):f=n.spawn(u,t,{stdio:`inherit`}),f.killed||[`SIGUSR1`,`SIGUSR2`,`SIGTERM`,`SIGINT`,`SIGHUP`].forEach(e=>{a.on(e,()=>{f.killed===!1&&f.exitCode===null&&f.kill(e)})});let p=this._exitCallback;f.on(`close`,e=>{e??=1,p?p(new c(e,`commander.executeSubCommandAsync`,`(close)`)):a.exit(e)}),f.on(`error`,t=>{if(t.code===`ENOENT`)this._checkForMissingExecutable(u,d,e._name);else if(t.code===`EACCES`)throw Error(`'${u}' not executable`);if(!p)a.exit(1);else{let e=new c(1,`commander.executeSubCommandAsync`,`(error)`);e.nestedError=t,p(e)}}),this.runningCommand=f}_dispatchSubcommand(e,t,n){let r=this._findCommand(e);r||this.help({error:!0}),r._prepareForParse();let i;return i=this._chainOrCallSubCommandHook(i,r,`preSubcommand`),i=this._chainOrCall(i,()=>{if(r._executableHandler)this._executeSubCommand(r,t.concat(n));else return r._parseCommand(t,n)}),i}_dispatchHelpCommand(e){e||this.help();let t=this._findCommand(e);return t&&!t._executableHandler&&t.help(),this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??`--help`])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,t)=>{e.required&&this.args[t]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(e,t,n)=>{let r=t;if(t!==null&&e.parseArg){let i=`error: command-argument value '${t}' is invalid for argument '${e.name()}'.`;r=this._callParseArg(e,t,n,i)}return r};this._checkNumberOfArguments();let t=[];this.registeredArguments.forEach((n,r)=>{let i=n.defaultValue;n.variadic?r<this.args.length?(i=this.args.slice(r),n.parseArg&&(i=i.reduce((t,r)=>e(n,r,t),n.defaultValue))):i===void 0&&(i=[]):r<this.args.length&&(i=this.args[r],n.parseArg&&(i=e(n,i,n.defaultValue))),t[r]=i}),this.processedArgs=t}_chainOrCall(e,t){return e?.then&&typeof e.then==`function`?e.then(()=>t()):t()}_chainOrCallHooks(e,t){let n=e,r=[];return this._getCommandAndAncestors().reverse().filter(e=>e._lifeCycleHooks[t]!==void 0).forEach(e=>{e._lifeCycleHooks[t].forEach(t=>{r.push({hookedCommand:e,callback:t})})}),t===`postAction`&&r.reverse(),r.forEach(e=>{n=this._chainOrCall(n,()=>e.callback(e.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,t,n){let r=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(e=>{r=this._chainOrCall(r,()=>e(this,t))}),r}_parseCommand(e,t){let n=this.parseOptions(t);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),t=n.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),t);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(t),this._dispatchSubcommand(this._defaultCommandName,e,t);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let r=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){r(),this._processArguments();let n;return n=this._chainOrCallHooks(n,`preAction`),n=this._chainOrCall(n,()=>this._actionHandler(this.processedArgs)),this.parent&&(n=this._chainOrCall(n,()=>{this.parent.emit(i,e,t)})),n=this._chainOrCallHooks(n,`postAction`),n}if(this.parent?.listenerCount(i))r(),this._processArguments(),this.parent.emit(i,e,t);else if(e.length){if(this._findCommand(`*`))return this._dispatchSubcommand(`*`,e,t);this.listenerCount(`command:*`)?this.emit(`command:*`,e,t):this.commands.length?this.unknownCommand():(r(),this._processArguments())}else this.commands.length?(r(),this.help({error:!0})):(r(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(t=>t._name===e||t._aliases.includes(e))}_findOption(e){return this.options.find(t=>t.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(t=>{t.mandatory&&e.getOptionValue(t.attributeName())===void 0&&e.missingMandatoryOptionValue(t)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(e=>{let t=e.attributeName();return this.getOptionValue(t)===void 0?!1:this.getOptionValueSource(t)!=="default"});e.filter(e=>e.conflictsWith.length>0).forEach(t=>{let n=e.find(e=>t.conflictsWith.includes(e.attributeName()));n&&this._conflictingOption(t,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let t=[],n=[],r=t;function i(e){return e.length>1&&e[0]===`-`}let a=e=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(e)?!this._getCommandAndAncestors().some(e=>e.options.map(e=>e.short).some(e=>/^-\d$/.test(e))):!1,o=null,s=null,c=0;for(;c<e.length||s;){let l=s??e[c++];if(s=null,l===`--`){r===n&&r.push(l),r.push(...e.slice(c));break}if(o&&(!i(l)||a(l))){this.emit(`option:${o.name()}`,l);continue}if(o=null,i(l)){let t=this._findOption(l);if(t){if(t.required){let n=e[c++];n===void 0&&this.optionMissingArgument(t),this.emit(`option:${t.name()}`,n)}else if(t.optional){let n=null;c<e.length&&(!i(e[c])||a(e[c]))&&(n=e[c++]),this.emit(`option:${t.name()}`,n)}else this.emit(`option:${t.name()}`);o=t.variadic?t:null;continue}}if(l.length>2&&l[0]===`-`&&l[1]!==`-`){let e=this._findOption(`-${l[1]}`);if(e){e.required||e.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${e.name()}`,l.slice(2)):(this.emit(`option:${e.name()}`),s=`-${l.slice(2)}`);continue}}if(/^--[^=]+=/.test(l)){let e=l.indexOf(`=`),t=this._findOption(l.slice(0,e));if(t&&(t.required||t.optional)){this.emit(`option:${t.name()}`,l.slice(e+1));continue}}if(r===t&&i(l)&&!(this.commands.length===0&&a(l))&&(r=n),(this._enablePositionalOptions||this._passThroughOptions)&&t.length===0&&n.length===0){if(this._findCommand(l)){t.push(l),n.push(...e.slice(c));break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){t.push(l,...e.slice(c));break}else if(this._defaultCommandName){n.push(l,...e.slice(c));break}}if(this._passThroughOptions){r.push(l,...e.slice(c));break}r.push(l)}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},t=this.options.length;for(let n=0;n<t;n++){let t=this.options[n].attributeName();e[t]=t===this._versionOptionName?this._version:this[t]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,t)=>Object.assign(e,t.opts()),{})}error(e,t){this._outputConfiguration.outputError(`${e}\n`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==`string`?this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
19
+ `),this.outputHelp({error:!0}));let n=t||{},r=n.exitCode||1,i=n.code||`commander.error`;this._exit(r,i,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in a.env){let t=e.attributeName();(this.getOptionValue(t)===void 0||[`default`,`config`,`env`].includes(this.getOptionValueSource(t)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,a.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new _(this.options),t=e=>this.getOptionValue(e)!==void 0&&![`default`,`implied`].includes(this.getOptionValueSource(e));this.options.filter(n=>n.implied!==void 0&&t(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(e=>{Object.keys(e.implied).filter(e=>!t(e)).forEach(t=>{this.setOptionValueWithSource(t,e.implied[t],`implied`)})})}missingArgument(e){let t=`error: missing required argument '${e}'`;this.error(t,{code:`commander.missingArgument`})}optionMissingArgument(e){let t=`error: option '${e.flags}' argument missing`;this.error(t,{code:`commander.optionMissingArgument`})}missingMandatoryOptionValue(e){let t=`error: required option '${e.flags}' not specified`;this.error(t,{code:`commander.missingMandatoryOptionValue`})}_conflictingOption(e,t){let n=e=>{let t=e.attributeName(),n=this.getOptionValue(t),r=this.options.find(e=>e.negate&&t===e.attributeName()),i=this.options.find(e=>!e.negate&&t===e.attributeName());return r&&(r.presetArg===void 0&&n===!1||r.presetArg!==void 0&&n===r.presetArg)?r:i||e},r=e=>{let t=n(e),r=t.attributeName();return this.getOptionValueSource(r)===`env`?`environment variable '${t.envVar}'`:`option '${t.flags}'`},i=`error: ${r(e)} cannot be used with ${r(t)}`;this.error(i,{code:`commander.conflictingOption`})}unknownOption(e){if(this._allowUnknownOption)return;let t=``;if(e.startsWith(`--`)&&this._showSuggestionAfterError){let n=[],r=this;do{let e=r.createHelp().visibleOptions(r).filter(e=>e.long).map(e=>e.long);n=n.concat(e),r=r.parent}while(r&&!r._enablePositionalOptions);t=v(e,n)}let n=`error: unknown option '${e}'${t}`;this.error(n,{code:`commander.unknownOption`})}_excessArguments(e){if(this._allowExcessArguments)return;let t=this.registeredArguments.length,n=t===1?``:`s`,r=`error: too many arguments${this.parent?` for '${this.name()}'`:``}. Expected ${t} argument${n} but got ${e.length}.`;this.error(r,{code:`commander.excessArguments`})}unknownCommand(){let e=this.args[0],t=``;if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(e=>{n.push(e.name()),e.alias()&&n.push(e.alias())}),t=v(e,n)}let n=`error: unknown command '${e}'${t}`;this.error(n,{code:`commander.unknownCommand`})}version(e,t,n){if(e===void 0)return this._version;this._version=e,t||=`-V, --version`,n||=`output the version number`;let r=this.createOption(t,n);return this._versionOptionName=r.attributeName(),this._registerOption(r),this.on(`option:`+r.name(),()=>{this._outputConfiguration.writeOut(`${e}\n`),this._exit(0,`commander.version`,e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw Error(`Command alias can't be the same as its name`);let n=this.parent?._findCommand(e);if(n){let t=[n.name()].concat(n.aliases()).join(`|`);throw Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${t}'`)}return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(e=>this.alias(e)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let e=this.registeredArguments.map(e=>s(e));return[].concat(this.options.length||this._helpOption!==null?`[options]`:[],this.commands.length?`[command]`:[],this.registeredArguments.length?e:[]).join(` `)}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}helpGroup(e){return e===void 0?this._helpGroupHeading??``:(this._helpGroupHeading=e,this)}commandsGroup(e){return e===void 0?this._defaultCommandGroup??``:(this._defaultCommandGroup=e,this)}optionsGroup(e){return e===void 0?this._defaultOptionGroup??``:(this._defaultOptionGroup=e,this)}_initOptionGroup(e){this._defaultOptionGroup&&!e.helpGroupHeading&&e.helpGroup(this._defaultOptionGroup)}_initCommandGroup(e){this._defaultCommandGroup&&!e.helpGroup()&&e.helpGroup(this._defaultCommandGroup)}nameFromFilename(e){return this._name=r.basename(e,r.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let t=this.createHelp(),n=this._getOutputContext(e);t.prepareContext({error:n.error,helpWidth:n.helpWidth,outputHasColors:n.hasColors});let r=t.formatHelp(this,t);return n.hasColors?r:this._outputConfiguration.stripColor(r)}_getOutputContext(e){e||={};let t=!!e.error,n,r,i;return t?(n=e=>this._outputConfiguration.writeErr(e),r=this._outputConfiguration.getErrHasColors(),i=this._outputConfiguration.getErrHelpWidth()):(n=e=>this._outputConfiguration.writeOut(e),r=this._outputConfiguration.getOutHasColors(),i=this._outputConfiguration.getOutHelpWidth()),{error:t,write:e=>(r||(e=this._outputConfiguration.stripColor(e)),n(e)),hasColors:r,helpWidth:i}}outputHelp(e){let t;typeof e==`function`&&(t=e,e=void 0);let n=this._getOutputContext(e),r={error:n.error,write:n.write,command:this};this._getCommandAndAncestors().reverse().forEach(e=>e.emit(`beforeAllHelp`,r)),this.emit(`beforeHelp`,r);let i=this.helpInformation({error:n.error});if(t&&(i=t(i),typeof i!=`string`&&!Buffer.isBuffer(i)))throw Error(`outputHelp callback must return a string or a Buffer`);n.write(i),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit(`afterHelp`,r),this._getCommandAndAncestors().forEach(e=>e.emit(`afterAllHelp`,r))}helpOption(e,t){return typeof e==`boolean`?(e?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(e??`-h, --help`,t??`display help for command`),(e||t)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this._initOptionGroup(e),this}help(e){this.outputHelp(e);let t=Number(a.exitCode??0);t===0&&e&&typeof e!=`function`&&e.error&&(t=1),this._exit(t,`commander.help`,`(outputHelp)`)}addHelpText(e,t){let n=[`beforeAll`,`before`,`after`,`afterAll`];if(!n.includes(e))throw Error(`Unexpected value for position to addHelpText.
20
+ Expecting one of '${n.join(`', '`)}'`);let r=`${e}Help`;return this.on(r,e=>{let n;n=typeof t==`function`?t({error:e.error,command:e.command}):t,n&&e.write(`${n}\n`)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(e=>t.is(e))&&(this.outputHelp(),this._exit(0,`commander.helpDisplayed`,`(outputHelp)`))}};function b(e){return e.map(e=>{if(!e.startsWith(`--inspect`))return e;let t,n=`127.0.0.1`,r=`9229`,i;return(i=e.match(/^(--inspect(-brk)?)$/))===null?(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))===null?(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=i[1],n=i[3],r=i[4]):(t=i[1],/^\d+$/.test(i[3])?r=i[3]:n=i[3]):t=i[1],t&&r!==`0`?`${t}=${n}:${parseInt(r)+1}`:e})}function x(){if(a.env.NO_COLOR||a.env.FORCE_COLOR===`0`||a.env.FORCE_COLOR===`false`)return!1;if(a.env.FORCE_COLOR||a.env.CLICOLOR_FORCE!==void 0)return!0}e.Command=y,e.useColor=x})),g=e.m((e=>{var{Argument:t}=d(),{Command:n}=h(),{CommanderError:r,InvalidArgumentError:i}=u(),{Help:a}=f(),{Option:o}=p();e.program=new n,e.createCommand=e=>new n(e),e.createOption=(e,t)=>new o(e,t),e.createArgument=(e,n)=>new t(e,n),e.Command=n,e.Option=o,e.Argument=t,e.Help=a,e.CommanderError=r,e.InvalidArgumentError=i,e.InvalidOptionArgumentError=i})),{program:_,createCommand:v,createArgument:y,createOption:b,CommanderError:x,InvalidArgumentError:S,InvalidOptionArgumentError:C,Command:ee,Argument:te,Option:w,Help:ne}=e.v(g(),1).default,T=e.m(((e,t)=>{var n=require("constants"),r=process.cwd,i=null,a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||=r.call(process),i};try{process.cwd()}catch{}if(typeof process.chdir==`function`){var o=process.chdir;process.chdir=function(e){i=null,o.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,o)}t.exports=s;function s(e){n.hasOwnProperty(`O_SYMLINK`)&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=c(e.chownSync),e.fchownSync=c(e.fchownSync),e.lchownSync=c(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=l(e.stat),e.fstat=l(e.fstat),e.lstat=l(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){}),a===`win32`&&(e.rename=typeof e.rename==`function`?(function(t){function n(n,r,i){var a=Date.now(),o=0;t(n,r,function s(c){if(c&&(c.code===`EACCES`||c.code===`EPERM`||c.code===`EBUSY`)&&Date.now()-a<6e4){setTimeout(function(){e.stat(r,function(e,a){e&&e.code===`ENOENT`?t(n,r,s):i(c)})},o),o<100&&(o+=10);return}i&&i(c)})}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.rename):e.rename),e.read=typeof e.read==`function`?(function(t){function n(n,r,i,a,o,s){var c;if(s&&typeof s==`function`){var l=0;c=function(u,d,f){if(u&&u.code===`EAGAIN`&&l<10)return l++,t.call(e,n,r,i,a,o,c);s.apply(this,arguments)}}return t.call(e,n,r,i,a,o,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.read):e.read,e.readSync=typeof e.readSync==`function`?(function(t){return function(n,r,i,a,o){for(var s=0;;)try{return t.call(e,n,r,i,a,o)}catch(e){if(e.code===`EAGAIN`&&s<10){s++;continue}throw e}}})(e.readSync):e.readSync;function t(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,function(t,n){if(t){i&&i(t);return}e.fchmod(n,r,function(t){e.close(n,function(e){i&&i(t||e)})})})},e.lchmodSync=function(t,r){var i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r),a=!0,o;try{o=e.fchmodSync(i,r),a=!1}finally{if(a)try{e.closeSync(i)}catch{}else e.closeSync(i)}return o}}function r(e){n.hasOwnProperty(`O_SYMLINK`)&&e.futimes?(e.lutimes=function(t,r,i,a){e.open(t,n.O_SYMLINK,function(t,n){if(t){a&&a(t);return}e.futimes(n,r,i,function(t){e.close(n,function(e){a&&a(t||e)})})})},e.lutimesSync=function(t,r,i){var a=e.openSync(t,n.O_SYMLINK),o,s=!0;try{o=e.futimesSync(a,r,i),s=!1}finally{if(s)try{e.closeSync(a)}catch{}else e.closeSync(a)}return o}):e.futimes&&(e.lutimes=function(e,t,n,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}function i(t){return t&&function(n,r,i){return t.call(e,n,r,function(e){d(e)&&(e=null),i&&i.apply(this,arguments)})}}function o(t){return t&&function(n,r){try{return t.call(e,n,r)}catch(e){if(!d(e))throw e}}}function s(t){return t&&function(n,r,i,a){return t.call(e,n,r,i,function(e){d(e)&&(e=null),a&&a.apply(this,arguments)})}}function c(t){return t&&function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!d(e))throw e}}}function l(t){return t&&function(n,r,i){typeof r==`function`&&(i=r,r=null);function a(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return r?t.call(e,n,r,a):t.call(e,n,a)}}function u(t){return t&&function(n,r){var i=r?t.call(e,n,r):t.call(e,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}}function d(e){return!e||e.code===`ENOSYS`||(!process.getuid||process.getuid()!==0)&&(e.code===`EINVAL`||e.code===`EPERM`)}}})),re=e.m(((e,t)=>{var n=require("stream").Stream;t.exports=r;function r(e){return{ReadStream:t,WriteStream:r};function t(r,i){if(!(this instanceof t))return new t(r,i);n.call(this);var a=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags=`r`,this.mode=438,this.bufferSize=64*1024,i||={};for(var o=Object.keys(i),s=0,c=o.length;s<c;s++){var l=o[s];this[l]=i[l]}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 Error(`start must be <= end`);this.pos=this.start}if(this.fd!==null){process.nextTick(function(){a._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){a.emit(`error`,e),a.readable=!1;return}a.fd=t,a.emit(`open`,t),a._read()})}function r(t,i){if(!(this instanceof r))return new r(t,i);n.call(this),this.path=t,this.fd=null,this.writable=!0,this.flags=`w`,this.encoding=`binary`,this.mode=438,this.bytesWritten=0,i||={};for(var a=Object.keys(i),o=0,s=a.length;o<s;o++){var c=a[o];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!=`number`)throw TypeError(`start must be a Number`);if(this.start<0)throw Error(`start must be >= zero`);this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}})),ie=e.m(((e,t)=>{t.exports=r;var n=Object.getPrototypeOf||function(e){return e.__proto__};function r(e){if(typeof e!=`object`||!e)return e;if(e instanceof Object)var t={__proto__:n(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}})),ae=e.m(((e,t)=>{var n=require("fs"),r=T(),i=re(),a=ie(),o=require("util"),s,c;typeof Symbol==`function`&&typeof Symbol.for==`function`?(s=Symbol.for(`graceful-fs.queue`),c=Symbol.for(`graceful-fs.previous`)):(s=`___graceful-fs.queue`,c=`___graceful-fs.previous`);function l(){}function u(e,t){Object.defineProperty(e,s,{get:function(){return t}})}var d=l;o.debuglog?d=o.debuglog(`gfs4`):/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&(d=function(){var e=o.format.apply(o,arguments);e=`GFS4: `+e.split(/\n/).join(`
21
+ GFS4: `),console.error(e)}),n[s]||(u(n,global[s]||[]),n.close=(function(e){function t(t,r){return e.call(n,t,function(e){e||h(),typeof r==`function`&&r.apply(this,arguments)})}return Object.defineProperty(t,c,{value:e}),t})(n.close),n.closeSync=(function(e){function t(t){e.apply(n,arguments),h()}return Object.defineProperty(t,c,{value:e}),t})(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&process.on(`exit`,function(){d(n[s]),require("assert").equal(n[s].length,0)})),global[s]||u(global,n[s]),t.exports=f(a(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(t.exports=f(n),n.__patched=!0);function f(e){r(e),e.gracefulify=f,e.createReadStream=te,e.createWriteStream=w;var t=e.readFile;e.readFile=n;function n(e,n,r){return typeof n==`function`&&(r=n,n=null),i(e,n,r);function i(e,n,r,a){return t(e,n,function(t){t&&(t.code===`EMFILE`||t.code===`ENFILE`)?p([i,[e,n,r],t,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var a=e.writeFile;e.writeFile=o;function o(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,o){return a(e,t,n,function(a){a&&(a.code===`EMFILE`||a.code===`ENFILE`)?p([i,[e,t,n,r],a,o||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=c);function c(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return s(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?p([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var l=e.copyFile;l&&(e.copyFile=u);function u(e,t,n,r){return typeof n==`function`&&(r=n,n=0),i(e,t,n,r);function i(e,t,n,r,a){return l(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?p([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var d=e.readdir;e.readdir=h;var m=/^v[0-5]\./;function h(e,t,n){typeof t==`function`&&(n=t,t=null);var r=m.test(process.version)?function(e,t,n,r){return d(e,i(e,t,n,r))}:function(e,t,n,r){return d(e,t,i(e,t,n,r))};return r(e,t,n);function i(e,t,n,i){return function(a,o){a&&(a.code===`EMFILE`||a.code===`ENFILE`)?p([r,[e,t,n],a,i||Date.now(),Date.now()]):(o&&o.sort&&o.sort(),typeof n==`function`&&n.call(this,a,o))}}}if(process.version.substr(0,4)===`v0.8`){var g=i(e);x=g.ReadStream,C=g.WriteStream}var _=e.ReadStream;_&&(x.prototype=Object.create(_.prototype),x.prototype.open=S);var v=e.WriteStream;v&&(C.prototype=Object.create(v.prototype),C.prototype.open=ee),Object.defineProperty(e,"ReadStream",{get:function(){return x},set:function(e){x=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return C},set:function(e){C=e},enumerable:!0,configurable:!0});var y=x;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var b=C;Object.defineProperty(e,"FileWriteStream",{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0});function x(e,t){return this instanceof x?(_.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function S(){var e=this;T(e.path,e.flags,e.mode,function(t,n){t?(e.autoClose&&e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n),e.read())})}function C(e,t){return this instanceof C?(v.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function ee(){var e=this;T(e.path,e.flags,e.mode,function(t,n){t?(e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n))})}function te(t,n){return new e.ReadStream(t,n)}function w(t,n){return new e.WriteStream(t,n)}var ne=e.open;e.open=T;function T(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return ne(e,t,n,function(o,s){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?p([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}return e}function p(e){d(`ENQUEUE`,e[0].name,e[1]),n[s].push(e),g()}var m;function h(){for(var e=Date.now(),t=0;t<n[s].length;++t)n[s][t].length>2&&(n[s][t][3]=e,n[s][t][4]=e);g()}function g(){if(clearTimeout(m),m=void 0,n[s].length!==0){var e=n[s].shift(),t=e[0],r=e[1],i=e[2],a=e[3],o=e[4];if(a===void 0)d(`RETRY`,t.name,r),t.apply(null,r);else if(Date.now()-a>=6e4){d(`TIMEOUT`,t.name,r);var c=r.pop();typeof c==`function`&&c.call(null,i)}else{var l=Date.now()-o,u=Math.max(o-a,1);l>=Math.min(u*1.2,100)?(d(`RETRY`,t.name,r),t.apply(null,r.concat([a]))):n[s].push(e)}m===void 0&&(m=setTimeout(g,0))}}})),oe=e.v(e.l(),1),E=e.v(ae(),1),D=n.default.homedir(),{env:O}=process,se=O.XDG_DATA_HOME||(D?t.default.join(D,`.local`,`share`):void 0),k=O.XDG_CONFIG_HOME||(D?t.default.join(D,`.config`):void 0);O.XDG_STATE_HOME||D&&t.default.join(D,`.local`,`state`),O.XDG_CACHE_HOME||D&&t.default.join(D,`.cache`),O.XDG_RUNTIME_DIR;var ce=(O.XDG_DATA_DIRS||`/usr/local/share/:/usr/share/`).split(`:`);se&&ce.unshift(se);var le=(O.XDG_CONFIG_DIRS||`/etc/xdg`).split(`:`);k&&le.unshift(k);var A=(e,t)=>{let{onError:n}=t;return function(...t){return e.apply(void 0,t).catch(n)}},j=(e,t)=>{let{onError:n}=t;return function(...t){try{return e.apply(void 0,t)}catch(e){return n(e)}}},M=(e,t)=>{let{isRetriable:n}=t;return function(t){let{timeout:r}=t,i=t.interval??250,a=Date.now()+r;return function t(...r){return e.apply(void 0,r).catch(e=>{if(!n(e)||Date.now()>=a)throw e;let o=Math.round(i*Math.random());return o>0?new Promise(e=>setTimeout(e,o)).then(()=>t.apply(void 0,r)):t.apply(void 0,r)})}}},N=(e,t)=>{let{isRetriable:n}=t;return function(t){let{timeout:r}=t,i=Date.now()+r;return function(...t){for(;;)try{return e.apply(void 0,t)}catch(e){if(!n(e)||Date.now()>=i)throw e;continue}}}},P={isChangeErrorOk:e=>{if(!P.isNodeError(e))return!1;let{code:t}=e;return t===`ENOSYS`||!ue&&(t===`EINVAL`||t===`EPERM`)},isNodeError:e=>e instanceof Error,isRetriableError:e=>{if(!P.isNodeError(e))return!1;let{code:t}=e;return t===`EMFILE`||t===`ENFILE`||t===`EAGAIN`||t===`EBUSY`||t===`EACCESS`||t===`EACCES`||t===`EACCS`||t===`EPERM`},onChangeError:e=>{if(!P.isNodeError(e)||!P.isChangeErrorOk(e))throw e}},F={onError:P.onChangeError},I={onError:()=>void 0},ue=r.default.getuid?!r.default.getuid():!1,L={isRetriable:P.isRetriableError},R={attempt:{chmod:A((0,s.promisify)(c.default.chmod),F),chown:A((0,s.promisify)(c.default.chown),F),close:A((0,s.promisify)(c.default.close),I),fsync:A((0,s.promisify)(c.default.fsync),I),mkdir:A((0,s.promisify)(c.default.mkdir),I),realpath:A((0,s.promisify)(c.default.realpath),I),stat:A((0,s.promisify)(c.default.stat),I),unlink:A((0,s.promisify)(c.default.unlink),I),chmodSync:j(c.default.chmodSync,F),chownSync:j(c.default.chownSync,F),closeSync:j(c.default.closeSync,I),existsSync:j(c.default.existsSync,I),fsyncSync:j(c.default.fsync,I),mkdirSync:j(c.default.mkdirSync,I),realpathSync:j(c.default.realpathSync,I),statSync:j(c.default.statSync,I),unlinkSync:j(c.default.unlinkSync,I)},retry:{close:M((0,s.promisify)(c.default.close),L),fsync:M((0,s.promisify)(c.default.fsync),L),open:M((0,s.promisify)(c.default.open),L),readFile:M((0,s.promisify)(c.default.readFile),L),rename:M((0,s.promisify)(c.default.rename),L),stat:M((0,s.promisify)(c.default.stat),L),write:M((0,s.promisify)(c.default.write),L),writeFile:M((0,s.promisify)(c.default.writeFile),L),closeSync:N(c.default.closeSync,L),fsyncSync:N(c.default.fsyncSync,L),openSync:N(c.default.openSync,L),readFileSync:N(c.default.readFileSync,L),renameSync:N(c.default.renameSync,L),statSync:N(c.default.statSync,L),writeSync:N(c.default.writeSync,L),writeFileSync:N(c.default.writeFileSync,L)}},de={},fe=r.default.geteuid?r.default.geteuid():-1,pe=r.default.getegid?r.default.getegid():-1,me=!!r.default.getuid;r.default.getuid&&r.default.getuid();var he=e=>e instanceof Error&&`code`in e,ge=e=>typeof e==`string`,_e=e=>e===void 0,ve=r.default.platform===`linux`,ye=r.default.platform===`win32`,be=[`SIGHUP`,`SIGINT`,`SIGTERM`];ye||be.push(`SIGALRM`,`SIGABRT`,`SIGVTALRM`,`SIGXCPU`,`SIGXFSZ`,`SIGUSR2`,`SIGTRAP`,`SIGSYS`,`SIGQUIT`,`SIGIOT`),ve&&be.push(`SIGIO`,`SIGPOLL`,`SIGPWR`,`SIGSTKFLT`);var xe=new class{constructor(){this.callbacks=new Set,this.exited=!1,this.exit=e=>{if(!this.exited){this.exited=!0;for(let e of this.callbacks)e();e&&(ye&&e!==`SIGINT`&&e!==`SIGTERM`&&e!==`SIGKILL`?r.default.kill(r.default.pid,`SIGTERM`):r.default.kill(r.default.pid,e))}},this.hook=()=>{r.default.once(`exit`,()=>this.exit());for(let e of be)try{r.default.once(e,()=>this.exit(e))}catch{}},this.register=e=>(this.callbacks.add(e),()=>{this.callbacks.delete(e)}),this.hook()}}().register,z={store:{},create:e=>{let t=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6);return`${e}${`.tmp-${Date.now().toString().slice(-10)}${t}`}`},get:(e,t,n=!0)=>{let r=z.truncate(t(e));return r in z.store?z.get(e,t,n):(z.store[r]=n,[r,()=>delete z.store[r]])},purge:e=>{z.store[e]&&(delete z.store[e],R.attempt.unlink(e))},purgeSync:e=>{z.store[e]&&(delete z.store[e],R.attempt.unlinkSync(e))},purgeSyncAll:()=>{for(let e in z.store)z.purgeSync(e)},truncate:e=>{let t=a.default.basename(e);if(t.length<=128)return e;let n=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!n)return e;let r=t.length-128;return`${e.slice(0,-t.length)}${n[1]}${n[2].slice(0,-r)}${n[3]}`}};xe(z.purgeSyncAll);function Se(e,t,n=de){if(ge(n))return Se(e,t,{encoding:n});let r={timeout:n.timeout??1e3},i=null,o=null,s=null;try{let c=R.attempt.realpathSync(e),l=!!c;e=c||e,[o,i]=z.get(e,n.tmpCreate||z.create,n.tmpPurge!==!1);let u=me&&_e(n.chown),d=_e(n.mode);if(l&&(u||d)){let t=R.attempt.statSync(e);t&&(n={...n},u&&(n.chown={uid:t.uid,gid:t.gid}),d&&(n.mode=t.mode))}if(!l){let t=a.default.dirname(e);R.attempt.mkdirSync(t,{mode:511,recursive:!0})}s=R.retry.openSync(r)(o,`w`,n.mode||438),n.tmpCreated&&n.tmpCreated(o),ge(t)?R.retry.writeSync(r)(s,t,0,n.encoding||`utf8`):_e(t)||R.retry.writeSync(r)(s,t,0,t.length,0),n.fsync!==!1&&(n.fsyncWait===!1?R.attempt.fsync(s):R.retry.fsyncSync(r)(s)),R.retry.closeSync(r)(s),s=null,n.chown&&(n.chown.uid!==fe||n.chown.gid!==pe)&&R.attempt.chownSync(o,n.chown.uid,n.chown.gid),n.mode&&n.mode!==438&&R.attempt.chmodSync(o,n.mode);try{R.retry.renameSync(r)(o,e)}catch(t){if(!he(t)||t.code!==`ENAMETOOLONG`)throw t;R.retry.renameSync(r)(o,z.truncate(e))}i(),o=null}finally{s&&R.attempt.closeSync(s),o&&z.purge(o)}}var B=e=>{let t=typeof e;return e!==null&&(t===`object`||t===`function`)},Ce=new Set([`__proto__`,`prototype`,`constructor`]),we=new Set(`0123456789`);function V(e){let t=[],n=``,r=`start`,i=!1;for(let a of e)switch(a){case`\\`:if(r===`index`)throw Error(`Invalid character in an index`);if(r===`indexEnd`)throw Error(`Invalid character after an index`);i&&(n+=a),r=`property`,i=!i;break;case`.`:if(r===`index`)throw Error(`Invalid character in an index`);if(r===`indexEnd`){r=`property`;break}if(i){i=!1,n+=a;break}if(Ce.has(n))return[];t.push(n),n=``,r=`property`;break;case`[`:if(r===`index`)throw Error(`Invalid character in an index`);if(r===`indexEnd`){r=`index`;break}if(i){i=!1,n+=a;break}if(r===`property`){if(Ce.has(n))return[];t.push(n),n=``}r=`index`;break;case`]`:if(r===`index`){t.push(Number.parseInt(n,10)),n=``,r=`indexEnd`;break}if(r===`indexEnd`)throw Error(`Invalid character after an index`);default:if(r===`index`&&!we.has(a))throw Error(`Invalid character in an index`);if(r===`indexEnd`)throw Error(`Invalid character after an index`);r===`start`&&(r=`property`),i&&(i=!1,n+=`\\`),n+=a}switch(i&&(n+=`\\`),r){case`property`:if(Ce.has(n))return[];t.push(n);break;case`index`:throw Error(`Index was not closed`);case`start`:t.push(``);break}return t}function Te(e,t){if(typeof t!=`number`&&Array.isArray(e)){let n=Number.parseInt(t,10);return Number.isInteger(n)&&e[n]===e[t]}return!1}function Ee(e,t){if(Te(e,t))throw Error(`Cannot use string index`)}function De(e,t,n){if(!B(e)||typeof t!=`string`)return n===void 0?e:n;let r=V(t);if(r.length===0)return n;for(let t=0;t<r.length;t++){let i=r[t];if(e=Te(e,i)?t===r.length-1?void 0:null:e[i],e==null){if(t!==r.length-1)return n;break}}return e===void 0?n:e}function Oe(e,t,n){if(!B(e)||typeof t!=`string`)return e;let r=e,i=V(t);for(let t=0;t<i.length;t++){let r=i[t];Ee(e,r),t===i.length-1?e[r]=n:B(e[r])||(e[r]=typeof i[t+1]==`number`?[]:{}),e=e[r]}return r}function ke(e,t){if(!B(e)||typeof t!=`string`)return!1;let n=V(t);for(let t=0;t<n.length;t++){let r=n[t];if(Ee(e,r),t===n.length-1)return delete e[r],!0;if(e=e[r],!B(e))return!1}}function Ae(e,t){if(!B(e)||typeof t!=`string`)return!1;let n=V(t);if(n.length===0)return!1;for(let t of n){if(!B(e)||!(t in e)||Te(e,t))return!1;e=e[t]}return!0}function je(e,t){let n=t?a.default.join(e,`config.json`):a.default.join(`configstore`,`${e}.json`),r=k??E.default.mkdtempSync(E.default.realpathSync(i.default.tmpdir())+a.default.sep);return a.default.join(r,n)}var Me=`You don't have access to this file.`,Ne={mode:448,recursive:!0},Pe={mode:384};function Fe(e){throw e.code===`EACCES`&&(e.message=`${e.message}\n${Me}\n`),e}var Ie=class{constructor(e,t,n={}){this._path=n.configPath??je(e,n.globalConfigPath),this._clearInvalidConfig=n.clearInvalidConfig??!0,t&&(this.all={...t,...this.all})}get all(){try{return JSON.parse(E.default.readFileSync(this._path,`utf8`))}catch(e){if(e.code===`ENOENT`)return{};if(e.name===`SyntaxError`){if(this._clearInvalidConfig)return Se(this._path,``,Pe),{};throw e}return Fe(e),{}}}set all(e){try{E.default.mkdirSync(a.default.dirname(this._path),Ne),Se(this._path,JSON.stringify(e,void 0,` `),Pe)}catch(e){Fe(e)}}get size(){return Object.keys(this.all||{}).length}get(e){return De(this.all,e)}set(e,t){let n=this.all;if(typeof e==`object`&&arguments.length===1)for(let t of Object.keys(e))Oe(n,t,e[t]);else Oe(n,e,t);this.all=n}has(e){return Ae(this.all,e)}delete(e){let t=this.all;ke(t,e),this.all=t}clear(){this.all={}}get path(){return this._path}},Le=e.v(e.d(),1),Re=e.v(e.u(),1),ze=class extends Error{response;request;options;constructor(e,t,n){let r=`${e.status||e.status===0?e.status:``} ${e.statusText??``}`.trim(),i=r?`status code ${r}`:`an unknown error`;super(`Request failed with ${i}: ${t.method} ${t.url}`),this.name=`HTTPError`,this.response=e,this.request=t,this.options=n}},Be=class extends Error{name=`NonError`;value;constructor(e){let t=`Non-error value was thrown`;try{typeof e==`string`?t=e:e&&typeof e==`object`&&`message`in e&&typeof e.message==`string`&&(t=e.message)}catch{}super(t),this.value=e}},Ve=class extends Error{name=`ForceRetryError`;customDelay;code;customRequest;constructor(e){let t=e?.cause?e.cause instanceof Error?e.cause:new Be(e.cause):void 0;super(e?.code?`Forced retry: ${e.code}`:`Forced retry`,t?{cause:t}:void 0),this.customDelay=e?.delay,this.code=e?.code,this.customRequest=e?.request}},He=(()=>{let e=!1,t=!1,n=typeof globalThis.ReadableStream==`function`,r=typeof globalThis.Request==`function`;if(n&&r)try{t=new globalThis.Request(`https://empty.invalid`,{body:new globalThis.ReadableStream,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`)}catch(e){if(e instanceof Error&&e.message===`unsupported BodyInit type`)return!1;throw e}return e&&!t})(),Ue=typeof globalThis.AbortController==`function`,We=typeof globalThis.AbortSignal==`function`&&typeof globalThis.AbortSignal.any==`function`,Ge=typeof globalThis.ReadableStream==`function`,Ke=typeof globalThis.FormData==`function`,qe=[`get`,`post`,`put`,`patch`,`head`,`delete`],Je={json:`application/json`,text:`text/*`,formData:`multipart/form-data`,arrayBuffer:`*/*`,blob:`*/*`,bytes:`*/*`},Ye=2147483647,Xe=new TextEncoder().encode(`------WebKitFormBoundaryaxpyiPgbbPti10Rw`).length,Ze=Symbol(`stop`),Qe=class{options;constructor(e){this.options=e}},$e=e=>new Qe(e),et={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},tt={next:!0},nt={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},rt=e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(let[n,r]of e)t+=Xe,t+=new TextEncoder().encode(`Content-Disposition: form-data; name="${n}"`).length,t+=typeof r==`string`?new TextEncoder().encode(r).length:r.size;return t}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)try{let t=JSON.stringify(e);return new TextEncoder().encode(t).length}catch{return 0}return 0},it=(e,t,n)=>{let r,i=0;return e.pipeThrough(new TransformStream({transform(e,a){if(a.enqueue(e),r){i+=r.byteLength;let e=t===0?0:i/t;e>=1&&(e=1-2**-52),n?.({percent:e,totalBytes:Math.max(t,i),transferredBytes:i},r)}r=e},flush(){r&&(i+=r.byteLength,n?.({percent:1,totalBytes:Math.max(t,i),transferredBytes:i},r))}}))},at=(e,t)=>{if(!e.body)return e;if(e.status===204)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});let n=Math.max(0,Number(e.headers.get(`content-length`))||0);return new Response(it(e.body,n,t),{status:e.status,statusText:e.statusText,headers:e.headers})},ot=(e,t,n)=>{if(!e.body)return e;let r=rt(n??e.body);return new Request(e,{duplex:`half`,body:it(e.body,r,t)})},H=e=>typeof e==`object`&&!!e,st=(...e)=>{for(let t of e)if((!H(t)||Array.isArray(t))&&t!==void 0)throw TypeError("The `options` argument must be an object");return ft({},...e)},ct=(e={},t={})=>{let n=new globalThis.Headers(e),r=t instanceof globalThis.Headers,i=new globalThis.Headers(t);for(let[e,t]of i.entries())r&&t===`undefined`||t===void 0?n.delete(e):n.set(e,t);return n};function lt(e,t,n){return Object.hasOwn(t,n)&&t[n]===void 0?[]:ft(e[n]??[],t[n]??[])}var ut=(e={},t={})=>({beforeRequest:lt(e,t,`beforeRequest`),beforeRetry:lt(e,t,`beforeRetry`),afterResponse:lt(e,t,`afterResponse`),beforeError:lt(e,t,`beforeError`)}),dt=(e,t)=>{let n=new URLSearchParams;for(let r of[e,t])if(r!==void 0)if(r instanceof URLSearchParams)for(let[e,t]of r.entries())n.append(e,t);else if(Array.isArray(r))for(let e of r){if(!Array.isArray(e)||e.length!==2)throw TypeError(`Array search parameters must be provided in [[key, value], ...] format`);n.append(String(e[0]),String(e[1]))}else if(H(r))for(let[e,t]of Object.entries(r))t!==void 0&&n.append(e,String(t));else{let e=new URLSearchParams(r);for(let[t,r]of e.entries())n.append(t,r)}return n},ft=(...e)=>{let t={},n={},r={},i,a=[];for(let o of e)if(Array.isArray(o))Array.isArray(t)||(t=[]),t=[...t,...o];else if(H(o)){for(let[e,n]of Object.entries(o)){if(e===`signal`&&n instanceof globalThis.AbortSignal){a.push(n);continue}if(e===`context`){if(n!=null&&(!H(n)||Array.isArray(n)))throw TypeError("The `context` option must be an object");t={...t,context:n==null?{}:{...t.context,...n}};continue}if(e===`searchParams`){i=n==null?void 0:i===void 0?n:dt(i,n);continue}H(n)&&e in t&&(n=ft(t[e],n)),t={...t,[e]:n}}H(o.hooks)&&(r=ut(r,o.hooks),t.hooks=r),H(o.headers)&&(n=ct(n,o.headers),t.headers=n)}return i!==void 0&&(t.searchParams=i),a.length>0&&(a.length===1?t.signal=a[0]:We?t.signal=AbortSignal.any(a):t.signal=a.at(-1)),t},pt=e=>qe.includes(e)?e.toUpperCase():e,mt={limit:2,methods:[`get`,`put`,`head`,`delete`,`options`,`trace`],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:1/0,backoffLimit:1/0,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},ht=(e={})=>{if(typeof e==`number`)return{...mt,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error(`retry.methods must be an array`);if(e.methods&&=e.methods.map(e=>e.toLowerCase()),e.statusCodes&&!Array.isArray(e.statusCodes))throw Error(`retry.statusCodes must be an array`);let t=Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0));return{...mt,...t}},gt=class extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name=`TimeoutError`,this.request=e}};async function _t(e,t,n,r){return new Promise((i,a)=>{let o=setTimeout(()=>{n&&n.abort(),a(new gt(e))},r.timeout);r.fetch(e,t).then(i).catch(a).then(()=>{clearTimeout(o)})})}async function vt(e,{signal:t}){return new Promise((n,r)=>{t&&(t.throwIfAborted(),t.addEventListener(`abort`,i,{once:!0}));function i(){clearTimeout(a),r(t.reason)}let a=setTimeout(()=>{t?.removeEventListener(`abort`,i),n()},e)})}var yt=(e,t)=>{let n={};for(let r in t)Object.hasOwn(t,r)&&!(r in nt)&&!(r in et)&&(!(r in e)||r in tt)&&(n[r]=t[r]);return n},bt=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 xt(e){return e instanceof ze||e?.name===ze.name}function St(e){return e instanceof gt||e?.name===gt.name}var Ct=class e{static create(t,n){let r=new e(t,n),i=r.#p(async()=>{if(typeof r.#i.timeout==`number`&&r.#i.timeout>2147483647)throw RangeError(`The \`timeout\` option cannot be greater than ${Ye}`);await Promise.resolve();let e=await r.#m();for(let t of r.#i.hooks.afterResponse){let n=r.#u(e.clone()),i;try{i=await t(r.request,r.#h(),n,{retryCount:r.#n})}catch(t){throw r.#f(n),r.#f(e),t}if(i instanceof Qe)throw r.#f(n),r.#f(e),new Ve(i.options);let a=i instanceof globalThis.Response?i:e;n!==a&&r.#f(n),e!==a&&r.#f(e),e=a}if(r.#u(e),!e.ok&&(typeof r.#i.throwHttpErrors==`function`?r.#i.throwHttpErrors(e.status):r.#i.throwHttpErrors)){let t=new ze(e,r.request,r.#h());for(let e of r.#i.hooks.beforeError)t=await e(t,{retryCount:r.#n});throw t}if(r.#i.onDownloadProgress){if(typeof r.#i.onDownloadProgress!=`function`)throw TypeError("The `onDownloadProgress` option must be a function");if(!Ge)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");let t=e.clone();return r.#f(e),at(t,r.#i.onDownloadProgress)}return e}).finally(()=>{let e=r.#a;r.#d(e?.body??void 0),r.#d(r.request.body??void 0)});for(let[e,t]of Object.entries(Je))e===`bytes`&&typeof globalThis.Response?.prototype?.bytes!=`function`||(i[e]=async()=>{r.request.headers.set(`accept`,r.request.headers.get(`accept`)||t);let a=await i;if(e===`json`){if(a.status===204)return``;let e=await a.text();return e===``?``:n.parseJson?n.parseJson(e):JSON.parse(e)}return a[e]()});return i}static#e(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!(e instanceof URLSearchParams)?Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)):e}request;#t;#n=0;#r;#i;#a;#o;#s;constructor(t,n={}){if(this.#r=t,this.#i={...n,headers:ct(this.#r.headers,n.headers),hooks:ut({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},n.hooks),method:pt(n.method??this.#r.method??`GET`),prefixUrl:String(n.prefixUrl||``),retry:ht(n.retry),throwHttpErrors:n.throwHttpErrors??!0,timeout:n.timeout??1e4,fetch:n.fetch??globalThis.fetch.bind(globalThis),context:n.context??{}},typeof this.#r!=`string`&&!(this.#r instanceof URL||this.#r instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(this.#i.prefixUrl&&typeof this.#r==`string`){if(this.#r.startsWith(`/`))throw Error("`input` must not begin with a slash when using `prefixUrl`");this.#i.prefixUrl.endsWith(`/`)||(this.#i.prefixUrl+=`/`),this.#r=this.#i.prefixUrl+this.#r}Ue&&We&&(this.#o=this.#i.signal??this.#r.signal,this.#t=new globalThis.AbortController,this.#i.signal=this.#o?AbortSignal.any([this.#o,this.#t.signal]):this.#t.signal),He&&(this.#i.duplex=`half`),this.#i.json!==void 0&&(this.#i.body=this.#i.stringifyJson?.(this.#i.json)??JSON.stringify(this.#i.json),this.#i.headers.set(`content-type`,this.#i.headers.get(`content-type`)??`application/json`));let r=n.headers&&new globalThis.Headers(n.headers).has(`content-type`);if(this.#r instanceof globalThis.Request&&(Ke&&this.#i.body instanceof globalThis.FormData||this.#i.body instanceof URLSearchParams)&&!r&&this.#i.headers.delete(`content-type`),this.request=new globalThis.Request(this.#r,this.#i),bt(this.#i.searchParams)){let t=`?`+(typeof this.#i.searchParams==`string`?this.#i.searchParams.replace(/^\?/,``):new URLSearchParams(e.#e(this.#i.searchParams)).toString()),n=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,t);this.request=new globalThis.Request(n,this.#i)}if(this.#i.onUploadProgress){if(typeof this.#i.onUploadProgress!=`function`)throw TypeError("The `onUploadProgress` option must be a function");if(!He)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#_(this.request,this.#i.body??void 0)}}#c(){let e=this.#i.retry.delay(this.#n),t=e;this.#i.retry.jitter===!0?t=Math.random()*e:typeof this.#i.retry.jitter==`function`&&(t=this.#i.retry.jitter(e),(!Number.isFinite(t)||t<0)&&(t=e));let n=this.#i.retry.backoffLimit??1/0;return Math.min(n,t)}async#l(e){if(this.#n++,this.#n>this.#i.retry.limit)throw e;let t=e instanceof Error?e:new Be(e);if(t instanceof Ve)return t.customDelay??this.#c();if(!this.#i.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(this.#i.retry.shouldRetry!==void 0){let n=await this.#i.retry.shouldRetry({error:t,retryCount:this.#n});if(n===!1)throw e;if(n===!0)return this.#c()}if(St(e)&&!this.#i.retry.retryOnTimeout)throw e;if(xt(e)){if(!this.#i.retry.statusCodes.includes(e.response.status))throw e;let t=e.response.headers.get(`Retry-After`)??e.response.headers.get(`RateLimit-Reset`)??e.response.headers.get(`X-RateLimit-Retry-After`)??e.response.headers.get(`X-RateLimit-Reset`)??e.response.headers.get(`X-Rate-Limit-Reset`);if(t&&this.#i.retry.afterStatusCodes.includes(e.response.status)){let e=Number(t)*1e3;Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse(`2024-01-01`)&&(e-=Date.now());let n=this.#i.retry.maxRetryAfter??e;return e<n?e:n}if(e.response.status===413)throw e}return this.#c()}#u(e){return this.#i.parseJson&&(e.json=async()=>this.#i.parseJson(await e.text())),e}#d(e){e&&e.cancel().catch(()=>void 0)}#f(e){this.#d(e.body??void 0)}async#p(e){try{return await e()}catch(t){let n=Math.min(await this.#l(t),Ye);if(this.#n<1)throw t;if(await vt(n,this.#o?{signal:this.#o}:{}),t instanceof Ve&&t.customRequest){let e=this.#i.signal?new globalThis.Request(t.customRequest,{signal:this.#i.signal}):new globalThis.Request(t.customRequest);this.#g(e)}for(let e of this.#i.hooks.beforeRetry){let n=await e({request:this.request,options:this.#h(),error:t,retryCount:this.#n});if(n instanceof globalThis.Request){this.#g(n);break}if(n instanceof globalThis.Response)return n;if(n===Ze)return}return this.#p(e)}}async#m(){this.#t?.signal.aborted&&(this.#t=new globalThis.AbortController,this.#i.signal=this.#o?AbortSignal.any([this.#o,this.#t.signal]):this.#t.signal,this.request=new globalThis.Request(this.request,{signal:this.#i.signal}));for(let e of this.#i.hooks.beforeRequest){let t=await e(this.request,this.#h(),{retryCount:this.#n});if(t instanceof Response)return t;if(t instanceof globalThis.Request){this.#g(t);break}}let e=yt(this.request,this.#i);return this.#a=this.request,this.request=this.#a.clone(),this.#i.timeout===!1?this.#i.fetch(this.#a,e):_t(this.#a,e,this.#t,this.#i)}#h(){if(!this.#s){let{hooks:e,...t}=this.#i;this.#s=Object.freeze(t)}return this.#s}#g(e){this.#s=void 0,this.request=this.#_(e)}#_(e,t){return!this.#i.onUploadProgress||!e.body?e:ot(e,this.#i.onUploadProgress,t??this.#i.body??void 0)}},wt=e=>{let t=(t,n)=>Ct.create(t,st(e,n));for(let n of qe)t[n]=(t,r)=>Ct.create(t,st(e,r,{method:n}));return t.create=e=>wt(st(e)),t.extend=t=>(typeof t==`function`&&(t=t(e??{})),wt(st(e,t))),t.stop=Ze,t.retry=$e,t},Tt=wt(),Et=e.m((e=>{e.parse=e.decode=i,e.stringify=e.encode=n,e.safe=o,e.unsafe=s;var t=typeof process<`u`&&process.platform===`win32`?`\r
31
22
  `:`
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}})),vu=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
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))}})),_u=T.__commonJSMin((e=>{var r=require("fs"),n=yu(),l=require("path"),i=vu(),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)}})),Au=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}})),bu=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}})),wu=T.__commonJSMin(((e,r)=>{var n=_u(),l=require("path").join,i=Au(),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=bu()(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]))}})),Bu=T.__toESM(wu(),1);function Su(e){const r=(0,Bu.default)("npm",{registry:"https://registry.npmjs.org/"}),n=r[`${e}:registry`]||r.config_registry||r.registry;return n.slice(-1)==="/"?n:`${n}/`}var Ou=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")}}})),xu=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())}}})),Tu=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}})),Ru=T.__commonJSMin(((e,r)=>{var n=require("fs"),l=Ou(),i=xu(),o=Tu(),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))}}})),$u=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(Ru());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})),Pu=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($u(),e)})),Iu=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}}})),Nu=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
23
+ `;function n(e,i){var a=[],s=``;typeof i==`string`?i={section:i,whitespace:!1}:(i||={},i.whitespace=i.whitespace===!0);var c=i.whitespace?` = `:`=`;return Object.keys(e).forEach(function(n,r,i){var l=e[n];l&&Array.isArray(l)?l.forEach(function(e){s+=o(n+`[]`)+c+o(e)+`
24
+ `}):l&&typeof l==`object`?a.push(n):s+=o(n)+c+o(l)+t}),i.section&&s.length&&(s=`[`+o(i.section)+`]`+t+s),a.forEach(function(a,o,c){var l=r(a).join(`\\.`),u=(i.section?i.section+`.`:``)+l,d=n(e[a],{section:u,whitespace:i.whitespace});s.length&&d.length&&(s+=t),s+=d}),s}function r(e){return e.replace(/\1/g,`LITERAL\\1LITERAL`).replace(/\\\./g,``).split(/\./).map(function(e){return e.replace(/\1/g,`\\.`).replace(/\2LITERAL\\1LITERAL\2/g,``)})}function i(e){var t={},n=t,i=null,a=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;return e.split(/[\r\n]+/g).forEach(function(e,r,o){if(!(!e||e.match(/^\s*[;#]/))){var c=e.match(a);if(c){if(c[1]!==void 0){if(i=s(c[1]),i===`__proto__`){n={};return}n=t[i]=t[i]||{};return}var l=s(c[2]);if(l!==`__proto__`){var u=c[3]?s(c[4]):!0;switch(u){case`true`:case`false`:case`null`:u=JSON.parse(u)}if(l.length>2&&l.slice(-2)===`[]`){if(l=l.substring(0,l.length-2),l===`__proto__`)return;n[l]?Array.isArray(n[l])||(n[l]=[n[l]]):n[l]=[]}Array.isArray(n[l])?n[l].push(u):n[l]=u}}}}),Object.keys(t).filter(function(e,n,i){if(!t[e]||typeof t[e]!=`object`||Array.isArray(t[e]))return!1;var a=r(e),o=t,s=a.pop(),c=s.replace(/\\\./g,`.`);return a.forEach(function(e,t,n){e!==`__proto__`&&((!o[e]||typeof o[e]!=`object`)&&(o[e]={}),o=o[e])}),o===t&&c===s?!1:(o[c]=t[e],!0)}).forEach(function(e,n,r){delete t[e]}),t}function a(e){return e.charAt(0)===`"`&&e.slice(-1)===`"`||e.charAt(0)===`'`&&e.slice(-1)===`'`}function o(e){return typeof e!=`string`||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&a(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,`\\;`).replace(/#/g,`\\#`)}function s(e,t){if(e=(e||``).trim(),a(e)){e.charAt(0)===`'`&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch{}}else{for(var n=!1,r=``,i=0,o=e.length;i<o;i++){var s=e.charAt(i);if(n)`\\;#`.indexOf(s)===-1?r+=`\\`+s:r+=s,n=!1;else if(`;#`.indexOf(s)!==-1)break;else s===`\\`?n=!0:r+=s}return n&&(r+=`\\`),r.trim()}return e}})),Dt=e.m(((e,t)=>{var n=1,r=2;function i(){return``}function a(e,t,n){return e.slice(t,n).replace(/\S/g,` `)}t.exports=function(e,t){t||={};for(var o,s,c=!1,l=!1,u=0,d=``,f=t.whitespace===!1?i:a,p=0;p<e.length;p++)if(o=e[p],s=e[p+1],!l&&o===`"`&&(e[p-1]===`\\`&&e[p-2]!==`\\`||(c=!c)),!c){if(!l&&o+s===`//`)d+=e.slice(u,p),u=p,l=n,p++;else if(l===n&&o+s===`\r
25
+ `){p++,l=!1,d+=f(e,u,p),u=p;continue}else if(l===n&&o===`
26
+ `)l=!1,d+=f(e,u,p),u=p;else if(!l&&o+s===`/*`){d+=e.slice(u,p),u=p,l=r,p++;continue}else if(l===r&&o+s===`*/`){p++,l=!1,d+=f(e,u,p+1),u=p+1;continue}}return d+(l?f(e.substr(u)):e.substr(u))}})),Ot=e.m((e=>{var t=require("fs"),n=Et(),r=require("path"),i=Dt(),a=e.parse=function(e){return/^\s*{/.test(e)?JSON.parse(i(e)):n.parse(e)},o=e.file=function(){var e=[].slice.call(arguments).filter(function(e){return e!=null});for(var n in e)if(typeof e[n]!=`string`)return;var i=r.join.apply(null,e);try{return t.readFileSync(i,`utf-8`)}catch{return}};e.json=function(){var e=o.apply(null,arguments);return e?a(e):null},e.env=function(e,t){t||=process.env;var n={},r=e.length;for(var i in t)if(i.toLowerCase().indexOf(e.toLowerCase())===0){for(var a=i.substring(r).split(`__`),o;(o=a.indexOf(``))>-1;)a.splice(o,1);var s=n;a.forEach(function(e,n){!e||typeof s!=`object`||(n===a.length-1&&(s[e]=t[i]),s[e]===void 0&&(s[e]={}),s=s[e])})}return n},e.find=function(){var e=r.join.apply(null,[].slice.call(arguments));function n(e,i){var a=r.join(e,i);try{return t.statSync(a),a}catch{if(r.dirname(e)!==e)return n(r.dirname(e),i)}}return n(process.cwd(),e)}})),kt=e.m(((e,t)=>{function n(e){return e instanceof Buffer||e instanceof Date||e instanceof RegExp}function r(e){if(e instanceof Buffer){var t=Buffer.alloc?Buffer.alloc(e.length):new Buffer(e.length);return e.copy(t),t}else if(e instanceof Date)return new Date(e.getTime());else if(e instanceof RegExp)return new RegExp(e);else throw Error(`Unexpected situation`)}function i(e){var t=[];return e.forEach(function(e,a){typeof e==`object`&&e?Array.isArray(e)?t[a]=i(e):n(e)?t[a]=r(e):t[a]=o({},e):t[a]=e}),t}function a(e,t){return t===`__proto__`?void 0:e[t]}var o=t.exports=function(){if(arguments.length<1||typeof arguments[0]!=`object`)return!1;if(arguments.length<2)return arguments[0];var e=arguments[0],t=Array.prototype.slice.call(arguments,1),s,c;return t.forEach(function(t){typeof t!=`object`||!t||Array.isArray(t)||Object.keys(t).forEach(function(l){if(c=a(e,l),s=a(t,l),s!==e)if(typeof s!=`object`||!s){e[l]=s;return}else if(Array.isArray(s)){e[l]=i(s);return}else if(n(s)){e[l]=r(s);return}else if(typeof c!=`object`||!c||Array.isArray(c)){e[l]=o({},s);return}else{e[l]=o(c,s);return}})}),e}})),At=e.m(((e,t)=>{function n(e,t){var n=e;return t.slice(0,-1).forEach(function(e){n=n[e]||{}}),t[t.length-1]in n}function r(e){return typeof e==`number`||/^0x[0-9a-f]+$/i.test(e)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function i(e,t){return t===`constructor`&&typeof e[t]==`function`||t===`__proto__`}t.exports=function(e,t){t||={};var a={bools:{},strings:{},unknownFn:null};typeof t.unknown==`function`&&(a.unknownFn=t.unknown),typeof t.boolean==`boolean`&&t.boolean?a.allBools=!0:[].concat(t.boolean).filter(Boolean).forEach(function(e){a.bools[e]=!0});var o={};function s(e){return o[e].some(function(e){return a.bools[e]})}Object.keys(t.alias||{}).forEach(function(e){o[e]=[].concat(t.alias[e]),o[e].forEach(function(t){o[t]=[e].concat(o[e].filter(function(e){return t!==e}))})}),[].concat(t.string).filter(Boolean).forEach(function(e){a.strings[e]=!0,o[e]&&[].concat(o[e]).forEach(function(e){a.strings[e]=!0})});var c=t.default||{},l={_:[]};function u(e,t){return a.allBools&&/^--[^=]+$/.test(t)||a.strings[e]||a.bools[e]||o[e]}function d(e,t,n){for(var r=e,o=0;o<t.length-1;o++){var s=t[o];if(i(r,s))return;r[s]===void 0&&(r[s]={}),(r[s]===Object.prototype||r[s]===Number.prototype||r[s]===String.prototype)&&(r[s]={}),r[s]===Array.prototype&&(r[s]=[]),r=r[s]}var c=t[t.length-1];i(r,c)||((r===Object.prototype||r===Number.prototype||r===String.prototype)&&(r={}),r===Array.prototype&&(r=[]),r[c]===void 0||a.bools[c]||typeof r[c]==`boolean`?r[c]=n:Array.isArray(r[c])?r[c].push(n):r[c]=[r[c],n])}function f(e,t,n){if(!(n&&a.unknownFn&&!u(e,n)&&a.unknownFn(n)===!1)){var i=!a.strings[e]&&r(t)?Number(t):t;d(l,e.split(`.`),i),(o[e]||[]).forEach(function(e){d(l,e.split(`.`),i)})}}Object.keys(a.bools).forEach(function(e){f(e,c[e]===void 0?!1:c[e])});var p=[];e.indexOf(`--`)!==-1&&(p=e.slice(e.indexOf(`--`)+1),e=e.slice(0,e.indexOf(`--`)));for(var m=0;m<e.length;m++){var h=e[m],g,_;if(/^--.+=/.test(h)){var v=h.match(/^--([^=]+)=([\s\S]*)$/);g=v[1];var y=v[2];a.bools[g]&&(y=y!==`false`),f(g,y,h)}else if(/^--no-.+/.test(h))g=h.match(/^--no-(.+)/)[1],f(g,!1,h);else if(/^--.+/.test(h))g=h.match(/^--(.+)/)[1],_=e[m+1],_!==void 0&&!/^(-|--)[^-]/.test(_)&&!a.bools[g]&&!a.allBools&&(!o[g]||!s(g))?(f(g,_,h),m+=1):/^(true|false)$/.test(_)?(f(g,_===`true`,h),m+=1):f(g,a.strings[g]?``:!0,h);else if(/^-[^-]+/.test(h)){for(var b=h.slice(1,-1).split(``),x=!1,S=0;S<b.length;S++){if(_=h.slice(S+2),_===`-`){f(b[S],_,h);continue}if(/[A-Za-z]/.test(b[S])&&_[0]===`=`){f(b[S],_.slice(1),h),x=!0;break}if(/[A-Za-z]/.test(b[S])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(_)){f(b[S],_,h),x=!0;break}if(b[S+1]&&b[S+1].match(/\W/)){f(b[S],h.slice(S+2),h),x=!0;break}else f(b[S],a.strings[b[S]]?``:!0,h)}g=h.slice(-1)[0],!x&&g!==`-`&&(e[m+1]&&!/^(-|--)[^-]/.test(e[m+1])&&!a.bools[g]&&(!o[g]||!s(g))?(f(g,e[m+1],h),m+=1):e[m+1]&&/^(true|false)$/.test(e[m+1])?(f(g,e[m+1]===`true`,h),m+=1):f(g,a.strings[g]?``:!0,h))}else if((!a.unknownFn||a.unknownFn(h)!==!1)&&l._.push(a.strings._||!r(h)?h:Number(h)),t.stopEarly){l._.push.apply(l._,e.slice(m+1));break}}return Object.keys(c).forEach(function(e){n(l,e.split(`.`))||(d(l,e.split(`.`),c[e]),(o[e]||[]).forEach(function(t){d(l,t.split(`.`),c[e])}))}),t[`--`]?l[`--`]=p.slice():p.forEach(function(e){l._.push(e)}),l}})),jt=e.m(((e,t)=>{var n=Ot(),r=require("path").join,i=kt(),a=`/etc`,o=process.platform===`win32`,s=o?process.env.USERPROFILE:process.env.HOME;t.exports=function(e,t,c,l){if(typeof e!=`string`)throw Error(`rc(name): name *must* be string`);c||=At()(process.argv.slice(2)),t=(typeof t==`string`?n.json(t):t)||{},l||=n.parse;var u=n.env(e+`_`),d=[t],f=[];function p(e){if(!(f.indexOf(e)>=0)){var t=n.file(e);t&&(d.push(l(t)),f.push(e))}}return o||[r(a,e,`config`),r(a,e+`rc`)].forEach(p),s&&[r(s,`.config`,e,`config`),r(s,`.config`,e),r(s,`.`+e,`config`),r(s,`.`+e+`rc`)].forEach(p),p(n.find(`.`+e+`rc`)),u.config&&p(u.config),c.config&&p(c.config),i.apply(null,d.concat([u,c,f.length?{configs:f,config:f[f.length-1]}:void 0]))}})),Mt=e.v(jt(),1);function Nt(e){let t=(0,Mt.default)(`npm`,{registry:`https://registry.npmjs.org/`}),n=t[`${e}:registry`]||t.config_registry||t.registry;return n.slice(-1)===`/`?n:`${n}/`}var Pt=e.m(((e,t)=>{var n=require("constants"),r=process.cwd,i=null,a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||=r.call(process),i};try{process.cwd()}catch{}if(typeof process.chdir==`function`){var o=process.chdir;process.chdir=function(e){i=null,o.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,o)}t.exports=s;function s(e){n.hasOwnProperty(`O_SYMLINK`)&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=c(e.chownSync),e.fchownSync=c(e.fchownSync),e.lchownSync=c(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=l(e.stat),e.fstat=l(e.fstat),e.lstat=l(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){}),a===`win32`&&(e.rename=typeof e.rename==`function`?(function(t){function n(n,r,i){var a=Date.now(),o=0;t(n,r,function s(c){if(c&&(c.code===`EACCES`||c.code===`EPERM`)&&Date.now()-a<6e4){setTimeout(function(){e.stat(r,function(e,a){e&&e.code===`ENOENT`?t(n,r,s):i(c)})},o),o<100&&(o+=10);return}i&&i(c)})}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.rename):e.rename),e.read=typeof e.read==`function`?(function(t){function n(n,r,i,a,o,s){var c;if(s&&typeof s==`function`){var l=0;c=function(u,d,f){if(u&&u.code===`EAGAIN`&&l<10)return l++,t.call(e,n,r,i,a,o,c);s.apply(this,arguments)}}return t.call(e,n,r,i,a,o,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.read):e.read,e.readSync=typeof e.readSync==`function`?(function(t){return function(n,r,i,a,o){for(var s=0;;)try{return t.call(e,n,r,i,a,o)}catch(e){if(e.code===`EAGAIN`&&s<10){s++;continue}throw e}}})(e.readSync):e.readSync;function t(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,function(t,n){if(t){i&&i(t);return}e.fchmod(n,r,function(t){e.close(n,function(e){i&&i(t||e)})})})},e.lchmodSync=function(t,r){var i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r),a=!0,o;try{o=e.fchmodSync(i,r),a=!1}finally{if(a)try{e.closeSync(i)}catch{}else e.closeSync(i)}return o}}function r(e){n.hasOwnProperty(`O_SYMLINK`)&&e.futimes?(e.lutimes=function(t,r,i,a){e.open(t,n.O_SYMLINK,function(t,n){if(t){a&&a(t);return}e.futimes(n,r,i,function(t){e.close(n,function(e){a&&a(t||e)})})})},e.lutimesSync=function(t,r,i){var a=e.openSync(t,n.O_SYMLINK),o,s=!0;try{o=e.futimesSync(a,r,i),s=!1}finally{if(s)try{e.closeSync(a)}catch{}else e.closeSync(a)}return o}):e.futimes&&(e.lutimes=function(e,t,n,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}function i(t){return t&&function(n,r,i){return t.call(e,n,r,function(e){d(e)&&(e=null),i&&i.apply(this,arguments)})}}function o(t){return t&&function(n,r){try{return t.call(e,n,r)}catch(e){if(!d(e))throw e}}}function s(t){return t&&function(n,r,i,a){return t.call(e,n,r,i,function(e){d(e)&&(e=null),a&&a.apply(this,arguments)})}}function c(t){return t&&function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!d(e))throw e}}}function l(t){return t&&function(n,r,i){typeof r==`function`&&(i=r,r=null);function a(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return r?t.call(e,n,r,a):t.call(e,n,a)}}function u(t){return t&&function(n,r){var i=r?t.call(e,n,r):t.call(e,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}}function d(e){return!e||e.code===`ENOSYS`||(!process.getuid||process.getuid()!==0)&&(e.code===`EINVAL`||e.code===`EPERM`)}}})),Ft=e.m(((e,t)=>{var n=require("stream").Stream;t.exports=r;function r(e){return{ReadStream:t,WriteStream:r};function t(r,i){if(!(this instanceof t))return new t(r,i);n.call(this);var a=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags=`r`,this.mode=438,this.bufferSize=64*1024,i||={};for(var o=Object.keys(i),s=0,c=o.length;s<c;s++){var l=o[s];this[l]=i[l]}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 Error(`start must be <= end`);this.pos=this.start}if(this.fd!==null){process.nextTick(function(){a._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){a.emit(`error`,e),a.readable=!1;return}a.fd=t,a.emit(`open`,t),a._read()})}function r(t,i){if(!(this instanceof r))return new r(t,i);n.call(this),this.path=t,this.fd=null,this.writable=!0,this.flags=`w`,this.encoding=`binary`,this.mode=438,this.bytesWritten=0,i||={};for(var a=Object.keys(i),o=0,s=a.length;o<s;o++){var c=a[o];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!=`number`)throw TypeError(`start must be a Number`);if(this.start<0)throw Error(`start must be >= zero`);this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}})),It=e.m(((e,t)=>{t.exports=r;var n=Object.getPrototypeOf||function(e){return e.__proto__};function r(e){if(typeof e!=`object`||!e)return e;if(e instanceof Object)var t={__proto__:n(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}})),Lt=e.m(((e,t)=>{var n=require("fs"),r=Pt(),i=Ft(),a=It(),o=require("util"),s,c;typeof Symbol==`function`&&typeof Symbol.for==`function`?(s=Symbol.for(`graceful-fs.queue`),c=Symbol.for(`graceful-fs.previous`)):(s=`___graceful-fs.queue`,c=`___graceful-fs.previous`);function l(){}function u(e,t){Object.defineProperty(e,s,{get:function(){return t}})}var d=l;o.debuglog?d=o.debuglog(`gfs4`):/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&(d=function(){var e=o.format.apply(o,arguments);e=`GFS4: `+e.split(/\n/).join(`
27
+ GFS4: `),console.error(e)}),n[s]||(u(n,global[s]||[]),n.close=(function(e){function t(t,r){return e.call(n,t,function(e){e||h(),typeof r==`function`&&r.apply(this,arguments)})}return Object.defineProperty(t,c,{value:e}),t})(n.close),n.closeSync=(function(e){function t(t){e.apply(n,arguments),h()}return Object.defineProperty(t,c,{value:e}),t})(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&process.on(`exit`,function(){d(n[s]),require("assert").equal(n[s].length,0)})),global[s]||u(global,n[s]),t.exports=f(a(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(t.exports=f(n),n.__patched=!0);function f(e){r(e),e.gracefulify=f,e.createReadStream=te,e.createWriteStream=w;var t=e.readFile;e.readFile=n;function n(e,n,r){return typeof n==`function`&&(r=n,n=null),i(e,n,r);function i(e,n,r,a){return t(e,n,function(t){t&&(t.code===`EMFILE`||t.code===`ENFILE`)?p([i,[e,n,r],t,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var a=e.writeFile;e.writeFile=o;function o(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,o){return a(e,t,n,function(a){a&&(a.code===`EMFILE`||a.code===`ENFILE`)?p([i,[e,t,n,r],a,o||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=c);function c(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return s(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?p([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var l=e.copyFile;l&&(e.copyFile=u);function u(e,t,n,r){return typeof n==`function`&&(r=n,n=0),i(e,t,n,r);function i(e,t,n,r,a){return l(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?p([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var d=e.readdir;e.readdir=h;var m=/^v[0-5]\./;function h(e,t,n){typeof t==`function`&&(n=t,t=null);var r=m.test(process.version)?function(e,t,n,r){return d(e,i(e,t,n,r))}:function(e,t,n,r){return d(e,t,i(e,t,n,r))};return r(e,t,n);function i(e,t,n,i){return function(a,o){a&&(a.code===`EMFILE`||a.code===`ENFILE`)?p([r,[e,t,n],a,i||Date.now(),Date.now()]):(o&&o.sort&&o.sort(),typeof n==`function`&&n.call(this,a,o))}}}if(process.version.substr(0,4)===`v0.8`){var g=i(e);x=g.ReadStream,C=g.WriteStream}var _=e.ReadStream;_&&(x.prototype=Object.create(_.prototype),x.prototype.open=S);var v=e.WriteStream;v&&(C.prototype=Object.create(v.prototype),C.prototype.open=ee),Object.defineProperty(e,"ReadStream",{get:function(){return x},set:function(e){x=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return C},set:function(e){C=e},enumerable:!0,configurable:!0});var y=x;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var b=C;Object.defineProperty(e,"FileWriteStream",{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0});function x(e,t){return this instanceof x?(_.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function S(){var e=this;T(e.path,e.flags,e.mode,function(t,n){t?(e.autoClose&&e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n),e.read())})}function C(e,t){return this instanceof C?(v.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function ee(){var e=this;T(e.path,e.flags,e.mode,function(t,n){t?(e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n))})}function te(t,n){return new e.ReadStream(t,n)}function w(t,n){return new e.WriteStream(t,n)}var ne=e.open;e.open=T;function T(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return ne(e,t,n,function(o,s){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?p([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}return e}function p(e){d(`ENQUEUE`,e[0].name,e[1]),n[s].push(e),g()}var m;function h(){for(var e=Date.now(),t=0;t<n[s].length;++t)n[s][t].length>2&&(n[s][t][3]=e,n[s][t][4]=e);g()}function g(){if(clearTimeout(m),m=void 0,n[s].length!==0){var e=n[s].shift(),t=e[0],r=e[1],i=e[2],a=e[3],o=e[4];if(a===void 0)d(`RETRY`,t.name,r),t.apply(null,r);else if(Date.now()-a>=6e4){d(`TIMEOUT`,t.name,r);var c=r.pop();typeof c==`function`&&c.call(null,i)}else{var l=Date.now()-o,u=Math.max(o-a,1);l>=Math.min(u*1.2,100)?(d(`RETRY`,t.name,r),t.apply(null,r.concat([a]))):n[s].push(e)}m===void 0&&(m=setTimeout(g,0))}}})),Rt=e.m((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.readCAFileSync=void 0;var n=t(Lt());function r(e){try{let t=n.default.readFileSync(e,`utf8`),r=`-----END CERTIFICATE-----`;return t.split(r).filter(e=>!!e.trim()).map(e=>`${e.trimLeft()}${r}`)}catch(e){if(e.code===`ENOENT`)return;throw e}}e.readCAFileSync=r})),zt=e.m((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Rt(),e)})),Bt=e.m(((e,t)=>{t.exports=r;function n(e,t){if(typeof Object.setPrototypeOf==`function`)return Object.setPrototypeOf(e,t);e.__proto__=t}function r(){this.list=[];var e=null;Object.defineProperty(this,"root",{get:function(){return e},set:function(t){e=t,this.list.length&&n(this.list[this.list.length-1],t)},enumerable:!0,configurable:!0})}r.prototype={get length(){return this.list.length},get keys(){var e=[];for(var t in this.list[0])e.push(t);return e},get snapshot(){var e={};return this.keys.forEach(function(t){e[t]=this.get(t)},this),e},get store(){return this.list[0]},push:function(e){return typeof e!=`object`&&(e={valueOf:e}),this.list.length>=1&&n(this.list[this.list.length-1],e),n(e,this.root),this.list.push(e)},pop:function(){return this.list.length>=2&&n(this.list[this.list.length-2],this.root),this.list.pop()},unshift:function(e){return n(e,this.list[0]||this.root),this.list.unshift(e)},shift:function(){return this.list.length===1&&n(this.list[0],this.root),this.list.shift()},get:function(e){return this.list[0][e]},set:function(e,t,n){return this.length||this.push({}),n&&this.list[0].hasOwnProperty(e)&&this.push({}),this.list[0][e]=t},forEach:function(e,t){for(var n in this.list[0])e.call(t,n,this.list[0][n])},slice:function(){return this.list.slice.apply(this.list,arguments)},splice:function(){for(var e=this.list.splice.apply(this.list,arguments),t=0,r=this.list.length;t<r;t++)n(this.list[t],this.list[t+1]||this.root);return e}}})),Vt=e.m((e=>{e.parse=e.decode=i,e.stringify=e.encode=n,e.safe=o,e.unsafe=s;var t=typeof process<`u`&&process.platform===`win32`?`\r
37
28
  `:`
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}})),ku=T.__commonJSMin(((c,r)=>{var n=Iu(),l=require("path"),i=require("fs"),o=Nu(),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)}})),ju=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}})),Lu=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}})),Mu=T.__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.envReplace=void 0;var r=Lu();Object.defineProperty(e,"envReplace",{enumerable:!0,get:function(){return r.envReplace}})})),qu=T.__commonJSMin((e=>{var r=require("fs"),n=require("path"),{envReplace:l}=Mu(),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})),Hu=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}})),Wu=T.__commonJSMin(((e,r)=>{var{readCAFileSync:n}=Pu(),l=require("fs"),i=require("path"),{ConfigChain:o}=ku(),D=ju(),s=qu(),u=class extends o{constructor(m,h){super(m),this.root=m,this._parseField=s.parseField.bind(null,h||Hu())}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(`
29
+ `;function n(e,i){var a=[],s=``;typeof i==`string`?i={section:i,whitespace:!1}:(i||={},i.whitespace=i.whitespace===!0);var c=i.whitespace?` = `:`=`;return Object.keys(e).forEach(function(n,r,i){var l=e[n];l&&Array.isArray(l)?l.forEach(function(e){s+=o(n+`[]`)+c+o(e)+`
30
+ `}):l&&typeof l==`object`?a.push(n):s+=o(n)+c+o(l)+t}),i.section&&s.length&&(s=`[`+o(i.section)+`]`+t+s),a.forEach(function(a,o,c){var l=r(a).join(`\\.`),u=(i.section?i.section+`.`:``)+l,d=n(e[a],{section:u,whitespace:i.whitespace});s.length&&d.length&&(s+=t),s+=d}),s}function r(e){return e.replace(/\1/g,`LITERAL\\1LITERAL`).replace(/\\\./g,``).split(/\./).map(function(e){return e.replace(/\1/g,`\\.`).replace(/\2LITERAL\\1LITERAL\2/g,``)})}function i(e){var t={},n=t,i=null,a=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;return e.split(/[\r\n]+/g).forEach(function(e,r,o){if(!(!e||e.match(/^\s*[;#]/))){var c=e.match(a);if(c){if(c[1]!==void 0){if(i=s(c[1]),i===`__proto__`){n={};return}n=t[i]=t[i]||{};return}var l=s(c[2]);if(l!==`__proto__`){var u=c[3]?s(c[4]):!0;switch(u){case`true`:case`false`:case`null`:u=JSON.parse(u)}if(l.length>2&&l.slice(-2)===`[]`){if(l=l.substring(0,l.length-2),l===`__proto__`)return;n[l]?Array.isArray(n[l])||(n[l]=[n[l]]):n[l]=[]}Array.isArray(n[l])?n[l].push(u):n[l]=u}}}}),Object.keys(t).filter(function(e,n,i){if(!t[e]||typeof t[e]!=`object`||Array.isArray(t[e]))return!1;var a=r(e),o=t,s=a.pop(),c=s.replace(/\\\./g,`.`);return a.forEach(function(e,t,n){e!==`__proto__`&&((!o[e]||typeof o[e]!=`object`)&&(o[e]={}),o=o[e])}),o===t&&c===s?!1:(o[c]=t[e],!0)}).forEach(function(e,n,r){delete t[e]}),t}function a(e){return e.charAt(0)===`"`&&e.slice(-1)===`"`||e.charAt(0)===`'`&&e.slice(-1)===`'`}function o(e){return typeof e!=`string`||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&a(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,`\\;`).replace(/#/g,`\\#`)}function s(e,t){if(e=(e||``).trim(),a(e)){e.charAt(0)===`'`&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch{}}else{for(var n=!1,r=``,i=0,o=e.length;i<o;i++){var s=e.charAt(i);if(n)`\\;#`.indexOf(s)===-1?r+=`\\`+s:r+=s,n=!1;else if(`;#`.indexOf(s)!==-1)break;else s===`\\`?n=!0:r+=s}return n&&(r+=`\\`),r.trim()}return e}})),Ht=e.m(((e,t)=>{var n=Bt(),r=require("path"),i=require("fs"),a=Vt(),o=require("events").EventEmitter,s=require("url"),c=require("http"),e=t.exports=function(){for(var e=[].slice.call(arguments),t=new d;e.length;){var n=e.shift();n&&t.push(typeof n==`string`?u(n):n)}return t};e.find=function(){var e=r.join.apply(null,[].slice.call(arguments));function t(e,n){var a=r.join(e,n);try{return i.statSync(a),a}catch{if(r.dirname(e)!==e)return t(r.dirname(e),n)}}return t(__dirname,e)};var l=e.parse=function(e,t,n){if(e=``+e,!n)try{return JSON.parse(e)}catch{return a.parse(e)}else if(n===`json`)if(this.emit)try{return JSON.parse(e)}catch(e){this.emit(`error`,e)}else return JSON.parse(e);else return a.parse(e)},u=e.json=function(){var e=[].slice.call(arguments).filter(function(e){return e!=null}),t=r.join.apply(null,e),n;try{n=i.readFileSync(t,`utf-8`)}catch{return}return l(n,t,`json`)};e.env=function(e,t){t||=process.env;var n={},r=e.length;for(var i in t)i.indexOf(e)===0&&(n[i.substring(r)]=t[i]);return n},e.ConfigChain=d;function d(){o.apply(this),n.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var f={constructor:{value:d}};Object.keys(o.prototype).forEach(function(e){f[e]=Object.getOwnPropertyDescriptor(o.prototype,e)}),d.prototype=Object.create(n.prototype,f),d.prototype.del=function(e,t){if(t){var n=this.sources[t];if(n&&=n.data,!n)return this.emit(`error`,Error(`not found `+t));delete n[e]}else for(var r=0,i=this.list.length;r<i;r++)delete this.list[r][e];return this},d.prototype.set=function(e,t,n){var r;if(n){if(r=this.sources[n],r&&=r.data,!r)return this.emit(`error`,Error(`not found `+n))}else if(r=this.list[0],!r)return this.emit(`error`,Error(`cannot set, no confs!`));return r[e]=t,this},d.prototype.get=function(e,t){return t?(t=this.sources[t],t&&=t.data,t&&Object.hasOwnProperty.call(t,e)?t[e]:void 0):this.list[0][e]},d.prototype.save=function(e,t,n){typeof t==`function`&&(n=t,t=null);var r=this.sources[e];if(!r||!(r.path||r.source)||!r.data)return this.emit(`error`,Error(`bad save target: `+e));if(r.source){var o=r.prefix||``;return Object.keys(r.data).forEach(function(e){r.source[o+e]=r.data[e]}),this}var t=t||r.type,s=r.data;return s=r.type===`json`?JSON.stringify(s):a.stringify(s),this._saving++,i.writeFile(r.path,s,`utf8`,function(e){if(this._saving--,e)return n?n(e):this.emit(`error`,e);this._saving===0&&(n&&n(),this.emit(`save`))}.bind(this)),this},d.prototype.addFile=function(e,t,n){n||=e;var r={__source__:n};return this.sources[n]={path:e,type:t},this.push(r),this._await(),i.readFile(e,`utf8`,function(n,i){n&&this.emit(`error`,n),this.addString(i,e,t,r)}.bind(this)),this},d.prototype.addEnv=function(t,n,r){r||=`env`;var i=e.env(t,n);return this.sources[r]={data:i,source:n,prefix:t},this.add(i,r)},d.prototype.addUrl=function(e,t,n){this._await();var r=s.format(e);n||=r;var i={__source__:n};return this.sources[n]={href:r,type:t},this.push(i),c.request(e,function(e){var n=[],a=e.headers[`content-type`];t||(t=a.indexOf(`json`)===-1?a.indexOf(`ini`)===-1?r.match(/\.json$/)?`json`:r.match(/\.ini$/)?`ini`:null:`ini`:`json`,i.type=t),e.on(`data`,n.push.bind(n)).on(`end`,function(){this.addString(Buffer.concat(n),r,t,i)}.bind(this)).on(`error`,this.emit.bind(this,`error`))}.bind(this)).on(`error`,this.emit.bind(this,`error`)).end(),this},d.prototype.addString=function(e,t,n,r){return e=this.parse(e,t,n),this.add(e,r),this},d.prototype.add=function(e,t){if(t&&typeof t==`object`){var n=this.list.indexOf(t);if(n===-1)return this.emit(`error`,Error(`bad marker`));this.splice(n,1,e),t=t.__source__,this.sources[t]=this.sources[t]||{},this.sources[t].data=e,this._resolve()}else typeof t==`string`&&(this.sources[t]=this.sources[t]||{},this.sources[t].data=e),this._await(),this.push(e),process.nextTick(this._resolve.bind(this));return this},d.prototype.parse=e.parse,d.prototype._await=function(){this._awaiting++},d.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit(`load`,this)}})),Ut=e.m(((e,t)=>{t.exports=function(e){let t=e.indexOf(`:`);return t===-1?n(e):`${e.substr(0,t)}:${n(e.substr(t+1))}`};function n(e){if(e=e.toLowerCase(),e===`_authtoken`)return`_authToken`;let t=e[0];for(let n=1;n<e.length;n++)t+=e[n]===`_`?`-`:e[n];return t}})),Wt=e.m((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.envReplace=void 0;var t=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;function n(e,n){return e.replace(t,r.bind(null,n))}e.envReplace=n;function r(e,t,n,r){if(n.length%2)return t.slice((n.length+1)/2);let i=a(e,r);if(i===void 0)throw Error(`Failed to replace env in config: ${t}`);return`${n.slice(n.length/2)}${i}`}var i=/([^:-]+)(:?)-(.+)/;function a(e,t){let n=t.match(i);if(!n)return e[t];let[,r,a,o]=n;return Object.prototype.hasOwnProperty.call(e,r)?!e[r]&&a?o:e[r]:o}})),Gt=e.m((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.envReplace=void 0;var t=Wt();Object.defineProperty(e,"envReplace",{enumerable:!0,get:function(){return t.envReplace}})})),Kt=e.m((e=>{var t=require("fs"),n=require("path"),{envReplace:r}=Gt();e.envReplace=r,e.findPrefix=e=>{e=n.resolve(e);let r=!1;for(;n.basename(e)===`node_modules`;)e=n.dirname(e),r=!0;if(r)return e;let i=(e,r)=>{if(e===`/`||process.platform===`win32`&&/^[a-zA-Z]:(\\|\/)?$/.test(e))return r;try{let a=t.readdirSync(e);if(a.includes(`node_modules`)||a.includes(`package.json`)||a.includes(`package.json5`)||a.includes(`package.yaml`)||a.includes(`pnpm-workspace.yaml`))return e;let o=n.dirname(e);return o===e?r:i(o,r)}catch(t){if(e===r){if(t.code===`ENOENT`)return r;throw t}return r}};return i(e,e)},e.parseField=(e,t,i)=>{if(typeof t!=`string`)return t;let a=[].concat(e[i]),o=a.indexOf(n)!==-1,s=a.indexOf(Boolean)!==-1,c=a.indexOf(String)!==-1,l=a.indexOf(Number)!==-1;if(t=`${t}`.trim(),/^".*"$/.test(t))try{t=JSON.parse(t)}catch{throw Error(`Failed parsing JSON config key ${i}: ${t}`)}if(s&&!c&&t===``)return!0;switch(t){case`true`:return!0;case`false`:return!1;case`null`:return null;case`undefined`:return}let u=r(t,process.env);if((i.endsWith(`:tokenHelper`)||i===`tokenHelper`)&&u!==t)throw Error(`It is not allowed to use environment variables in the value of the ${i} setting.`);return t=u,o&&((process.platform===`win32`?/^~(\/|\\)/:/^~\//).test(t)&&process.env.HOME&&(t=n.resolve(process.env.HOME,t.substr(2))),t=n.resolve(t)),l&&!isNaN(t)&&(t=Number(t)),t},e.parseKey=e=>typeof e==`string`?r(e,process.env):e})),qt=e.m((e=>{var t=require("path"),n=require("stream").Stream,r=require("url"),i=()=>{},a=()=>[],o=()=>{};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:t,cache:t,"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:t,"global-style":Boolean,group:[Number,String],"https-proxy":[null,r],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":t,"init-author-name":String,"init-author-email":String,"init-author-url":[``,r],"init-license":String,"init-version":o,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":a(),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,o],"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:t,production:Boolean,progress:Boolean,proxy:[null,!1,r],provenance:Boolean,"read-only":Boolean,"rebuild-bundle":Boolean,registry:[null,r],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:t,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:t,umask:i,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}})),Jt=e.m(((e,t)=>{var{readCAFileSync:n}=zt(),r=require("fs"),i=require("path"),{ConfigChain:a}=Ht(),o=Ut(),s=Kt(),c=class extends a{constructor(e,t){super(e),this.root=e,this._parseField=s.parseField.bind(null,t||qt())}add(e,t){try{for(let[t,n]of Object.entries(e)){let r=s.parseKey(t);r!==t&&delete e[t],e[r]=this._parseField(n,r)}}catch(e){throw e}return super.add(e,t)}addFile(e,t){t||=e;let n={__source__:t};this.sources[t]={path:e,type:`ini`},this.push(n),this._await();try{let t=r.readFileSync(e,`utf8`);this.addString(t,e,`ini`,n)}catch(t){if(t.code===`ENOENT`)this.add({},n);else if(t.code!==`EISDIR`)return`Issue while reading "${e}". ${t.message}`}}addEnv(e){e||=process.env;let t={};return Object.keys(e).filter(e=>/^npm_config_/i.test(e)).forEach(n=>{if(!e[n])return;let r=o(n.substr(11)),i=e[n];t[r]=l(r,i)}),super.addEnv(``,t,`env`)}loadPrefix(){let e=this.list[0];Object.defineProperty(this,"prefix",{enumerable:!0,set:e=>{let t=this.get(`global`);this[t?`globalPrefix`:`localPrefix`]=e},get:()=>this.get(`global`)?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,"globalPrefix",{enumerable:!0,set:e=>{this.set(`prefix`,e)},get:()=>i.resolve(this.get(`prefix`))});let t;if(Object.defineProperty(this,"localPrefix",{enumerable:!0,set:e=>{t=e},get:()=>t}),Object.prototype.hasOwnProperty.call(e,`prefix`))t=i.resolve(e.prefix);else try{t=s.findPrefix(process.cwd())}catch(e){throw e}return t}loadCAFile(e){if(!e)return;let t=n(e);t&&this.set(`ca`,t)}loadUser(){let e=this.root;if(this.get(`global`))return;if(process.env.SUDO_UID){e.user=Number(process.env.SUDO_UID);return}let t=i.resolve(this.get(`prefix`));try{e.user=r.statSync(t).uid}catch(e){if(e.code===`ENOENT`)return;throw e}}};function l(e,t){function n(e){return e.indexOf(`
40
31
 
41
- `)?E.split(`
32
+ `)?e.split(`
42
33
 
43
- `):E.split(",")}switch(m){case"hoist-pattern":case"public-hoist-pattern":return F(h)}return h}r.exports=u})),Vu=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)}})})),Uu=T.__commonJSMin(((e,r)=>{var n=require("path"),l=Wu(),i=Vu();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})})),Gu=T.__commonJSMin(((e,r)=>{var n=Uu(),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"}}})),Ju=T.__toESM(Gu(),1),Yu=class extends Error{constructor(e){super(`Package \`${e}\` could not be found`),this.name="PackageNotFoundError"}},Ku=class extends Error{constructor(e,r){super(`Version \`${r}\` for package \`${e}\` could not be found`),this.name="VersionNotFoundError"}};async function zu(e,r={}){let{version:n="latest"}=r;const{omitDeprecated:l=!0}=r,i=e.split("/")[0],o=r.registryUrl??Su(i),D=new URL(encodeURIComponent(e).replace(/^%40/,"@"),o),s=(0,Ju.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 Cu(D,{headers:u,keepalive:!0}).json()}catch(h){throw h?.response?.status===404?new Yu(e):h}if(r.allVersions)return c;const m=new Ku(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 Xu(e,r){const{version:n}=await zu(e.toLowerCase(),r);return n}var Qu=$.default.env.npm_package_json,$e=$.default.env.npm_config_user_agent,Zu=!!$e?.startsWith("npm")||!!Qu?.endsWith("package.json"),en=!!$e?.startsWith("yarn"),Ri=!!$e?.startsWith("pnpm"),$i=!!$e?.startsWith("bun"),tn=Zu||en,rn=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
34
+ `):e.split(`,`)}switch(e){case`hoist-pattern`:case`public-hoist-pattern`:return n(t)}return t}t.exports=c})),Yt=e.m((e=>{var t=require("os"),n=require("path"),r=t.tmpdir(),i=process.getuid?process.getuid():process.pid,a=()=>!0,o=process.platform===`win32`,s={editor:()=>process.env.EDITOR||process.env.VISUAL||(o?`notepad.exe`:`vi`),shell:()=>o?process.env.COMSPEC||`cmd.exe`:process.env.SHELL||`/bin/bash`},c={fromString:()=>process.umask()},l=t.homedir();l?process.env.HOME=l:l=n.resolve(r,`npm-`+i);var u=process.platform===`win32`?`npm-cache`:`.npm`,d=process.platform===`win32`&&process.env.APPDATA||l,f=n.resolve(d,u),p,m;Object.defineProperty(e,"defaults",{get:function(){return p||(process.env.PREFIX?m=process.env.PREFIX:process.platform===`win32`?m=n.dirname(process.execPath):(m=n.dirname(n.dirname(process.execPath)),process.env.DESTDIR&&(m=n.join(process.env.DESTDIR,m))),p={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(m,`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(l,`.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:m,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:r,unicode:a(),"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(l,`.npmrc`),umask:process.umask?process.umask():c.fromString(`022`),version:!1,versions:!1,viewer:process.platform===`win32`?`browser`:`man`,_exit:!0},p)}})})),Xt=e.m(((e,t)=>{var n=require("path"),r=Jt(),i=Yt();t.exports=(e,t,a)=>{let o=new r(Object.assign({},i.defaults,a),t);o.add(Object.assign({},e),`cli`);let s=[],c=!1;if(require.resolve.paths){let e=require.resolve.paths(`npm`),t;try{t=require.resolve(`npm`,{paths:e.slice(-1)})}catch{c=!0}t&&s.push(o.addFile(n.resolve(n.dirname(t),`..`,`npmrc`),`builtin`))}o.addEnv(),o.loadPrefix();let l=n.resolve(o.localPrefix,`.npmrc`),u=o.get(`userconfig`);if(!o.get(`global`)&&l!==u?s.push(o.addFile(l,`project`)):o.add({},`project`),o.get(`workspace-prefix`)&&o.get(`workspace-prefix`)!==l){let e=n.resolve(o.get(`workspace-prefix`),`.npmrc`);s.push(o.addFile(e,`workspace`))}if(s.push(o.addFile(o.get(`userconfig`),`user`)),o.get(`prefix`)){let e=n.resolve(o.get(`prefix`),`etc`);o.root.globalconfig=n.resolve(e,`npmrc`),o.root.globalignorefile=n.resolve(e,`npmignore`)}s.push(o.addFile(o.get(`globalconfig`),`global`)),o.loadUser();let d=o.get(`cafile`);return d&&o.loadCAFile(d),{config:o,warnings:s.filter(Boolean),failedToLoadBuiltInConfig:c}},Object.defineProperty(t.exports,"defaults",{get(){return i.defaults},enumerable:!0})})),Zt=e.m(((e,t)=>{var n=Xt(),r=`:_authToken`,i=`:_auth`,a=`:username`,o=`:_password`;t.exports=function(){let e,t;arguments.length>=2?(e=arguments[0],t=Object.assign({},arguments[1])):typeof arguments[0]==`string`?e=arguments[0]:t=Object.assign({},arguments[0]),t||={};let r=t.npmrc;return t.npmrc=(t.npmrc?{config:{get:e=>r[e]}}:n()).config,e=e||t.npmrc.get(`registry`)||n.defaults.registry,c(e,t)||l(t.npmrc)};function s(e,t){let n=new URL(t,new URL(e.startsWith(`//`)?`./${e}`:e,`resolve://`));if(n.protocol===`resolve:`){let{pathname:e,search:t,hash:r}=n;return e+t+r}return n.toString()}function c(e,t){let n=e instanceof URL?e:new URL(e.startsWith(`//`)?`http:${e}`:e),r;for(;r!==`/`&&n.pathname!==r;){r=n.pathname||`/`;let i=d(`//`+n.host+r.replace(/\/$/,``),t.npmrc);if(i)return i;if(!t.recursive)return/\/$/.test(e)?void 0:c(new URL(`./`,n),t);n.pathname=s(u(r),`..`)||`/`}}function l(e){if(e.get(`_auth`))return{token:f(e.get(`_auth`)),type:`Basic`}}function u(e){return e[e.length-1]===`/`?e:e+`/`}function d(e,t){let n=p(t.get(e+r)||t.get(e+`/:_authToken`));if(n)return n;let s=m(t.get(e+a)||t.get(e+`/:username`),t.get(e+o)||t.get(e+`/:_password`));if(s)return s;let c=h(t.get(e+i)||t.get(e+`/:_auth`));if(c)return c}function f(e){return e.replace(/^\$\{?([^}]*)\}?$/,function(e,t){return process.env[t]})}function p(e){if(e)return{token:f(e),type:`Bearer`}}function m(e,t){if(!e||!t)return;let n=Buffer.from(f(t),`base64`).toString(`utf8`);return{token:Buffer.from(e+`:`+n,`utf8`).toString(`base64`),type:`Basic`,password:n,username:e}}function h(e){if(e)return{token:f(e),type:`Basic`}}})),Qt=e.v(Zt(),1),$t=class extends Error{constructor(e){super(`Package \`${e}\` could not be found`),this.name=`PackageNotFoundError`}},en=class extends Error{constructor(e,t){super(`Version \`${t}\` for package \`${e}\` could not be found`),this.name=`VersionNotFoundError`}};async function tn(e,t={}){let{version:n=`latest`}=t,{omitDeprecated:r=!0}=t,i=e.split(`/`)[0],a=t.registryUrl??Nt(i),o=new URL(encodeURIComponent(e).replace(/^%40/,`@`),a),s=(0,Qt.default)(a.toString(),{recursive:!0}),c={accept:`application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*`};t.fullMetadata&&delete c.accept,s&&(c.authorization=`${s.type} ${s.token}`);let l;try{l=await Tt(o,{headers:c,keepalive:!0}).json()}catch(t){throw t?.response?.status===404?new $t(e):t}if(t.allVersions)return l;let u=new en(e,n);if(l[`dist-tags`][n]){let{time:e}=l;l=l.versions[l[`dist-tags`][n]],l.time=e}else if(n){let e=!!l.versions[n];if(r&&!e)for(let[e,t]of Object.entries(l.versions))t.deprecated&&delete l.versions[e];if(!e){let e=Object.keys(l.versions);if(n=oe.default.maxSatisfying(e,n),!n)throw u}let{time:t}=l;if(l=l.versions[n],l.time=t,!l)throw u}return l}async function nn(e,t){let{version:n}=await tn(e.toLowerCase(),t);return n}var rn=r.default.env.npm_package_json,an=r.default.env.npm_config_user_agent,on=!!an?.startsWith(`npm`)||!!rn?.endsWith(`package.json`),sn=!!an?.startsWith(`yarn`);an?.startsWith(`pnpm`),an?.startsWith(`bun`);var cn=on||sn,ln=e.m(((e,t)=>{var{hasOwnProperty:n}=Object.prototype,r=(e,t={})=>{typeof t==`string`&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<`u`&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let n=t.platform===`win32`?`\r
44
35
  `:`
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}})),un=T.__toESM(rn(),1),Ae=$.default.platform==="win32",Bt=e=>{try{return un.default.parse(j.default.readFileSync(e,"utf8")).prefix}catch{}},nn=()=>Object.keys($.default.env).reduce((e,r)=>/^npm_config_prefix$/i.test(r)?$.default.env[r]:e,void 0),on=()=>{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")}},sn=()=>{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))},an=()=>{const e=nn();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(on());return n||sn()},ye=V.default.resolve(an()),or=()=>{if(Ae&&$.default.env.LOCALAPPDATA){const e=V.default.join($.default.env.LOCALAPPDATA,"Yarn");if(j.default.existsSync(e))return e}return!1},Dn=()=>{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(Dn());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)),ln=(()=>{try{return St(Ot,ne.yarn.packages)||St(Ot,j.default.realpathSync(ne.npm.packages))}catch{return!1}})();function cn({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 fn=cn();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(fn,"")}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},hn=ct[0],pn=ct.at(-1),dn=ft[0],mn=ft.at(-1),Pi=Dr[0],Ii=Dr.at(-1),Ni=lr[0],ki=lr.at(-1),Fn=Pe[0],gn=Pe.at(-1),xt=19968,[En,Cn]=yn(Pe);function yn(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 vn=e=>e<hn||e>pn?!1:ht(ct,e),_n=e=>e<dn||e>mn?!1:ht(ft,e),An=e=>e>=En&&e<=Cn?!0:e<Fn||e>gn?!1:ht(Pe,e);function bn(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function wn(e,{ambiguousAsWide:r=!1}={}){return bn(e),_n(e)||An(e)||r&&vn(e)?2:1}var Bn=()=>/[#*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,Sn=new Intl.Segmenter,On=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 Sn.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)&&!On.test(D)){if(Bn().test(D)){i+=2;continue}i+=wn(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 xn=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,Tn=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}})),Rn=T.__commonJSMin(((e,r)=>{var n=(Tn(),T.__toCommonJS(xn).default);r.exports=n,r.exports.default=n})),$n=T.__toESM(Rn(),1),Pn=/[\p{Lu}]/u,In=/[\p{Ll}]/u,Tt=/^[\p{Lu}](?![\p{Lu}])/gu,hr=/([\p{Alpha}\p{N}_]|$)/u,pt=/[_.\- ]+/,Nn=new RegExp("^"+pt.source),Rt=new RegExp(pt.source+hr.source,"gu"),$t=new RegExp("\\d+"+hr.source,"gu"),kn=(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&&Pn.test(c)?(e=e.slice(0,u)+"-"+e.slice(u),i=!1,D=o,o=!0,u++):o&&D&&In.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},jn=(e,r)=>(Tt.lastIndex=0,e.replaceAll(Tt,n=>r(n))),Ln=(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 Mn(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=kn(e,n,l,r.preserveConsecutiveUppercase)),e=e.replace(Nn,""),e=r.preserveConsecutiveUppercase?jn(e,n):n(e),r.pascalCase&&(e=l(e.charAt(0))+e.slice(1)),Ln(e,l))}var qn=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")}})),Hn=T.__commonJSMin(((e,r)=>{var n=qn();r.exports=l=>typeof l=="string"?l.replace(n(),""):l})),Wn=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}})),Vn=T.__commonJSMin(((e,r)=>{var n=Hn(),l=W.require_is_fullwidth_code_point(),i=Wn(),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})),Un=T.__commonJSMin(((e,r)=>{var n=Vn();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(Un(),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]}},ji=Object.keys(G.modifier),Gn=Object.keys(G.color),Jn=Object.keys(G.bgColor),Li=[...Gn,...Jn];function Yn(){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 Kn=Yn(),Ie=new Set(["\x1B","›"]),zn=39,dt="\x07",pr="[",Xn="]",dr="m",xe=`${Xn}8;;`,jt=e=>`${Ie.values().next().value}${pr}${e}${dr}`,Lt=e=>`${Ie.values().next().value}${xe}${e}${dt}`,Qn=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())},Zn=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("")},ei=(e,r,n={})=>{if(n.trim!==!1&&e.trim()==="")return"";let l="",i,o;const D=Qn(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=>Zn(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===zn?void 0:v}else C.uri!==void 0&&(o=C.uri.length===0?void 0:C.uri)}const E=Kn.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
36
+ `,a=t.whitespace?` = `:`=`,o=[],c=t.sort?Object.keys(e).sort():Object.keys(e),l=0;t.align&&(l=s(c.filter(t=>e[t]===null||Array.isArray(e[t])||typeof e[t]!=`object`).map(t=>Array.isArray(e[t])?`${t}[]`:t).concat([``]).reduce((e,t)=>s(e).length>=s(t).length?e:t)).length);let u=``,d=t.bracketedArray?`[]`:``;for(let t of c){let r=e[t];if(r&&Array.isArray(r))for(let e of r)u+=s(`${t}${d}`).padEnd(l,` `)+a+s(e)+n;else r&&typeof r==`object`?o.push(t):u+=s(t).padEnd(l,` `)+a+s(r)+n}t.section&&u.length&&(u=`[`+s(t.section)+`]`+(t.newline?n+n:n)+u);for(let a of o){let o=i(a,`.`).join(`\\.`),s=(t.section?t.section+`.`:``)+o,c=r(e[a],{...t,section:s});u.length&&c.length&&(u+=n),u+=c}return u};function i(e,t){var n=0,r=0,i=0,a=[];do if(i=e.indexOf(t,n),i!==-1){if(n=i+t.length,i>0&&e[i-1]===`\\`)continue;a.push(e.slice(r,i)),r=i+t.length}while(i!==-1);return a.push(e.slice(r)),a}var a=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),a=r,o=null,s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,l=e.split(/[\r\n]+/g),u={};for(let e of l){if(!e||e.match(/^\s*[;#]/)||e.match(/^\s*$/))continue;let i=e.match(s);if(!i)continue;if(i[1]!==void 0){if(o=c(i[1]),o===`__proto__`){a=Object.create(null);continue}a=r[o]=r[o]||Object.create(null);continue}let l=c(i[2]),d;t.bracketedArray?d=l.length>2&&l.slice(-2)===`[]`:(u[l]=(u?.[l]||0)+1,d=u[l]>1);let f=d?l.slice(0,-2):l;if(f===`__proto__`)continue;let p=i[3]?c(i[4]):!0,m=p===`true`||p===`false`||p===`null`?JSON.parse(p):p;d&&(n.call(a,f)?Array.isArray(a[f])||(a[f]=[a[f]]):a[f]=[]),Array.isArray(a[f])?a[f].push(m):a[f]=m}let d=[];for(let e of Object.keys(r)){if(!n.call(r,e)||typeof r[e]!=`object`||Array.isArray(r[e]))continue;let t=i(e,`.`);a=r;let o=t.pop(),s=o.replace(/\\\./g,`.`);for(let e of t)e!==`__proto__`&&((!n.call(a,e)||typeof a[e]!=`object`)&&(a[e]=Object.create(null)),a=a[e]);a===r&&s===o||(a[s]=r[e],d.push(e))}for(let e of d)delete r[e];return r},o=e=>e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`),s=e=>typeof e!=`string`||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&o(e)||e!==e.trim()?JSON.stringify(e):e.split(`;`).join(`\\;`).split(`#`).join(`\\#`),c=(e,t)=>{if(e=(e||``).trim(),o(e)){e.charAt(0)===`'`&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let t=!1,n=``;for(let r=0,i=e.length;r<i;r++){let i=e.charAt(r);if(t)`\\;#`.indexOf(i)===-1?n+=`\\`+i:n+=i,t=!1;else if(`;#`.indexOf(i)!==-1)break;else i===`\\`?t=!0:n+=i}return t&&(n+=`\\`),n.trim()}return e};t.exports={parse:a,decode:a,stringify:r,encode:r,safe:s,unsafe:c}})),un=e.v(ln(),1),U=r.default.platform===`win32`,dn=e=>{try{return un.default.parse(c.default.readFileSync(e,`utf8`)).prefix}catch{}},W=a.default.resolve(Object.keys(r.default.env).reduce((e,t)=>/^npm_config_prefix$/i.test(t)?r.default.env[t]:e,void 0)||dn(a.default.join(i.default.homedir(),`.npmrc`))||(r.default.env.PREFIX?r.default.env.PREFIX:dn((()=>{if(U&&r.default.env.APPDATA)return a.default.join(r.default.env.APPDATA,`/npm/etc/npmrc`);if(r.default.execPath.includes(`/Cellar/node`)){let e=r.default.execPath.slice(0,r.default.execPath.indexOf(`/Cellar/node`));return a.default.join(e,`/lib/node_modules/npm/npmrc`)}if(r.default.execPath.endsWith(`/bin/node`)){let e=a.default.dirname(a.default.dirname(r.default.execPath));return a.default.join(e,`/etc/npmrc`)}})())||(()=>{if(U){let{APPDATA:e}=r.default.env;return e?a.default.join(e,`npm`):a.default.dirname(r.default.execPath)}return a.default.dirname(a.default.dirname(r.default.execPath))})())),fn=()=>{if(U&&r.default.env.LOCALAPPDATA){let e=a.default.join(r.default.env.LOCALAPPDATA,`Yarn`);if(c.default.existsSync(e))return e}return!1},pn=()=>{if(r.default.env.PREFIX)return r.default.env.PREFIX;let e=fn();if(e)return e;let t=a.default.join(i.default.homedir(),`.config/yarn`);if(c.default.existsSync(t))return t;let n=a.default.join(i.default.homedir(),`.yarn-config`);return c.default.existsSync(n)?n:W},G={};G.npm={},G.npm.prefix=W,G.npm.packages=a.default.join(W,U?`node_modules`:`lib/node_modules`),G.npm.binaries=U?W:a.default.join(W,`bin`);var mn=a.default.resolve(pn());G.yarn={},G.yarn.prefix=mn,G.yarn.packages=a.default.join(mn,fn()?`Data/global/node_modules`:`global/node_modules`),G.yarn.binaries=a.default.join(G.yarn.packages,`.bin`);function hn(e,t){let n=a.default.relative(t,e);return!!(n&&n!==`..`&&!n.startsWith(`..${a.default.sep}`)&&n!==a.default.resolve(e))}var gn=a.default.dirname((0,o.fileURLToPath)(require("url").pathToFileURL(__filename).href)),_n=(()=>{try{return hn(gn,G.yarn.packages)||hn(gn,c.default.realpathSync(G.npm.packages))}catch{return!1}})();function vn({onlyFirst:e=!1}={}){return 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 yn=vn();function bn(e){if(typeof e!=`string`)throw TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes(`\x1B`)&&!e.includes(`›`)?e:e.replace(yn,``)}var xn=[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],Sn=[12288,12288,65281,65376,65504,65510],Cn=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],wn=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],K=[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],Tn=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let i=Math.floor((n+r)/2),a=i*2;if(t<e[a])r=i-1;else if(t>e[a+1])n=i+1;else return!0}return!1},En=xn[0],Dn=xn.at(-1),On=Sn[0],kn=Sn.at(-1);Cn[0],Cn.at(-1),wn[0],wn.at(-1);var An=K[0],jn=K.at(-1),Mn=19968,[Nn,Pn]=Fn(K);function Fn(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],a=e[r+1];if(Mn>=i&&Mn<=a)return[i,a];a-i>n-t&&(t=i,n=a)}return[t,n]}var In=e=>e<En||e>Dn?!1:Tn(xn,e),Ln=e=>e<On||e>kn?!1:Tn(Sn,e),Rn=e=>e>=Nn&&e<=Pn?!0:e<An||e>jn?!1:Tn(K,e);function zn(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Bn(e,{ambiguousAsWide:t=!1}={}){return zn(e),Ln(e)||Rn(e)||t&&In(e)?2:1}var Vn=()=>/[#*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,Hn=new Intl.Segmenter,Un=/^\p{Default_Ignorable_Code_Point}$/u;function q(e,t={}){if(typeof e!=`string`||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t;if(r||(e=bn(e)),e.length===0)return 0;let i=0,a={ambiguousAsWide:!n};for(let{segment:t}of Hn.segment(e)){let e=t.codePointAt(0);if(!(e<=31||e>=127&&e<=159)&&!(e>=8203&&e<=8207||e===65279)&&!(e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071)&&!(e>=55296&&e<=57343)&&!(e>=65024&&e<=65039)&&!Un.test(t)){if(Vn().test(t)){i+=2;continue}i+=Bn(e,a)}}return i}function Wn(e){let t=0;for(let n of e.split(`
37
+ `))t=Math.max(t,q(n));return t}var Gn=e.g({arrow:()=>$n,bold:()=>Yn,classic:()=>Qn,default:()=>er,double:()=>qn,doubleSingle:()=>Zn,round:()=>Jn,single:()=>Kn,singleDouble:()=>Xn}),Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr=e.h((()=>{Kn={topLeft:`┌`,top:`─`,topRight:`┐`,right:`│`,bottomRight:`┘`,bottom:`─`,bottomLeft:`└`,left:`│`},qn={topLeft:`╔`,top:`═`,topRight:`╗`,right:`║`,bottomRight:`╝`,bottom:`═`,bottomLeft:`╚`,left:`║`},Jn={topLeft:`╭`,top:`─`,topRight:`╮`,right:`│`,bottomRight:`╯`,bottom:`─`,bottomLeft:`╰`,left:`│`},Yn={topLeft:`┏`,top:`━`,topRight:`┓`,right:`┃`,bottomRight:`┛`,bottom:`━`,bottomLeft:`┗`,left:`┃`},Xn={topLeft:`╓`,top:`─`,topRight:`╖`,right:`║`,bottomRight:`╜`,bottom:`─`,bottomLeft:`╙`,left:`║`},Zn={topLeft:`╒`,top:`═`,topRight:`╕`,right:`│`,bottomRight:`╛`,bottom:`═`,bottomLeft:`╘`,left:`│`},Qn={topLeft:`+`,top:`-`,topRight:`+`,right:`|`,bottomRight:`+`,bottom:`-`,bottomLeft:`+`,left:`|`},$n={topLeft:`↘`,top:`↓`,topRight:`↙`,right:`←`,bottomRight:`↖`,bottom:`↑`,bottomLeft:`↗`,left:`→`},er={single:Kn,double:qn,round:Jn,bold:Yn,singleDouble:Xn,doubleSingle:Zn,classic:Qn,arrow:$n}})),nr=e.m(((t,n)=>{var r=(tr(),e._(Gn).default);n.exports=r,n.exports.default=r})),rr=e.v(nr(),1),ir=/[\p{Lu}]/u,ar=/[\p{Ll}]/u,or=/^[\p{Lu}](?![\p{Lu}])/gu,sr=/([\p{Alpha}\p{N}_]|$)/u,cr=/[_.\- ]+/,lr=RegExp(`^`+cr.source),ur=new RegExp(cr.source+sr.source,`gu`),dr=RegExp(`\\d+`+sr.source,`gu`),fr=(e,t,n,r)=>{let i=!1,a=!1,o=!1,s=!1;for(let c=0;c<e.length;c++){let l=e[c];s=c>2?e[c-3]===`-`:!0,i&&ir.test(l)?(e=e.slice(0,c)+`-`+e.slice(c),i=!1,o=a,a=!0,c++):a&&o&&ar.test(l)&&(!s||r)?(e=e.slice(0,c-1)+`-`+e.slice(c-1),o=a,a=!1,i=!0):(i=t(l)===l&&n(l)!==l,o=a,a=n(l)===l&&t(l)!==l)}return e},pr=(e,t)=>(or.lastIndex=0,e.replaceAll(or,e=>t(e))),mr=(e,t)=>(ur.lastIndex=0,dr.lastIndex=0,e.replaceAll(dr,(n,r,i)=>[`_`,`-`].includes(e.charAt(i+n.length))?n:t(n)).replaceAll(ur,(e,n)=>t(n)));function hr(e,t){if(!(typeof e==`string`||Array.isArray(e)))throw TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,...t},e=Array.isArray(e)?e.map(e=>e.trim()).filter(e=>e.length).join(`-`):e.trim(),e.length===0)return``;let n=t.locale===!1?e=>e.toLowerCase():e=>e.toLocaleLowerCase(t.locale),r=t.locale===!1?e=>e.toUpperCase():e=>e.toLocaleUpperCase(t.locale);return e.length===1?cr.test(e)?``:t.pascalCase?r(e):n(e):(e!==n(e)&&(e=fr(e,n,r,t.preserveConsecutiveUppercase)),e=e.replace(lr,``),e=t.preserveConsecutiveUppercase?pr(e,n):n(e),t.pascalCase&&(e=r(e.charAt(0))+e.slice(1)),mr(e,r))}var gr=e.m(((e,t)=>{t.exports=({onlyFirst:e=!1}={})=>{let t=[`[\\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(t,e?void 0:`g`)}})),_r=e.m(((e,t)=>{var n=gr();t.exports=e=>typeof e==`string`?e.replace(n(),``):e})),vr=e.m(((e,t)=>{t.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}})),yr=e.m(((t,n)=>{var r=_r(),i=e.f(),a=vr(),o=e=>{if(typeof e!=`string`||e.length===0||(e=r(e),e.length===0))return 0;e=e.replace(a(),` `);let t=0;for(let n=0;n<e.length;n++){let r=e.codePointAt(n);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=i(r)?2:1)}return t};n.exports=o,n.exports.default=o})),br=e.m(((e,t)=>{var n=yr();function r(e,t){if(!e)return e;t||={};let r=t.align||`center`;if(r===`left`)return e;let o=t.split||`
38
+ `,s=t.pad||` `,c=r===`right`?a:i,l=!1;Array.isArray(e)||(l=!0,e=String(e).split(o));let u,d=0;return e=e.map(function(e){return e=String(e),u=n(e),d=Math.max(u,d),{str:e,width:u}}).map(function(e){return Array(c(d,e.width)+1).join(s)+e.str}),l?e.join(o):e}r.left=function(e){return r(e,{align:`left`})},r.center=function(e){return r(e,{align:`center`})},r.right=function(e){return r(e,{align:`right`})},t.exports=r;function i(e,t){return Math.floor((e-t)/2)}function a(e,t){return e-t}})),xr=e.v(br(),1),Sr=10,Cr=(e=0)=>t=>`\u001B[${t+e}m`,wr=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,Tr=(e=0)=>(t,n,r)=>`\u001B[${38+e};2;${t};${n};${r}m`,J={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]}};Object.keys(J.modifier);var Er=Object.keys(J.color),Dr=Object.keys(J.bgColor);[...Er,...Dr];function Or(){let e=new Map;for(let[t,n]of Object.entries(J)){for(let[t,r]of Object.entries(n))J[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},n[t]=J[t],e.set(r[0],r[1]);Object.defineProperty(J,t,{value:n,enumerable:!1})}return Object.defineProperty(J,"codes",{value:e,enumerable:!1}),J.color.close=`\x1B[39m`,J.bgColor.close=`\x1B[49m`,J.color.ansi=Cr(),J.color.ansi256=wr(),J.color.ansi16m=Tr(),J.bgColor.ansi=Cr(Sr),J.bgColor.ansi256=wr(Sr),J.bgColor.ansi16m=Tr(Sr),Object.defineProperties(J,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>J.rgbToAnsi256(...J.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>J.ansi256ToAnsi(J.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>J.ansi256ToAnsi(J.hexToAnsi256(e)),enumerable:!1}}),J}var kr=Or(),Y=new Set([`\x1B`,`›`]),Ar=39,jr=`\x07`,Mr=`[`,Nr=`]`,Pr=`m`,Fr=`${Nr}8;;`,Ir=e=>`${Y.values().next().value}${Mr}${e}${Pr}`,Lr=e=>`${Y.values().next().value}${Fr}${e}${jr}`,Rr=e=>e.split(` `).map(e=>q(e)),zr=(e,t,n)=>{let r=[...t],i=!1,a=!1,o=q(bn(e.at(-1)));for(let[t,s]of r.entries()){let c=q(s);if(o+c<=n?e[e.length-1]+=s:(e.push(s),o=0),Y.has(s)&&(i=!0,a=r.slice(t+1,t+1+Fr.length).join(``)===Fr),i){a?s===jr&&(i=!1,a=!1):s===Pr&&(i=!1);continue}o+=c,o===n&&t<r.length-1&&(e.push(``),o=0)}!o&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop())},Br=e=>{let t=e.split(` `),n=t.length;for(;n>0&&!(q(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(` `)+t.slice(n).join(``)},Vr=(e,t,n={})=>{if(n.trim!==!1&&e.trim()===``)return``;let r=``,i,a,o=Rr(e),s=[``];for(let[r,i]of e.split(` `).entries()){n.trim!==!1&&(s[s.length-1]=s.at(-1).trimStart());let e=q(s.at(-1));if(r!==0&&(e>=t&&(n.wordWrap===!1||n.trim===!1)&&(s.push(``),e=0),(e>0||n.trim===!1)&&(s[s.length-1]+=` `,e++)),n.hard&&o[r]>t){let n=t-e,a=1+Math.floor((o[r]-n-1)/t);Math.floor((o[r]-1)/t)<a&&s.push(``),zr(s,i,t);continue}if(e+o[r]>t&&e>0&&o[r]>0){if(n.wordWrap===!1&&e<t){zr(s,i,t);continue}s.push(``)}if(e+o[r]>t&&n.wordWrap===!1){zr(s,i,t);continue}s[s.length-1]+=i}n.trim!==!1&&(s=s.map(e=>Br(e)));let c=s.join(`
39
+ `),l=[...c],u=0;for(let[e,t]of l.entries()){if(r+=t,Y.has(t)){let{groups:e}=RegExp(`(?:\\${Mr}(?<code>\\d+)m|\\${Fr}(?<uri>.*)${jr})`).exec(c.slice(u))||{groups:{}};if(e.code!==void 0){let t=Number.parseFloat(e.code);i=t===Ar?void 0:t}else e.uri!==void 0&&(a=e.uri.length===0?void 0:e.uri)}let n=kr.codes.get(Number(i));l[e+1]===`
40
+ `?(a&&(r+=Lr(``)),i&&n&&(r+=Ir(n))):t===`
41
+ `&&(i&&n&&(r+=Ir(i)),a&&(r+=Lr(a))),u+=t.length}return r};function Hr(e,t,n){return String(e).normalize().replaceAll(`\r
51
42
  `,`
52
43
  `).split(`
53
- `).map(l=>ei(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,ti=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=$n.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},ri=(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},ui=(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)},ni=(e,r,n)=>{const l=m=>{const h=n.borderColor?si(n.borderColor)(m):m;return n.dimBorder?W.chalk.dim(h):h},i=m=>n.backgroundColor?ai(n.backgroundColor)(m):m,o=ti(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?ri(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},ii=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} `,oi=(e,r)=>{r=ii(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)),si=e=>mt(e)?W.chalk.hex(e):W.chalk[e],ai=e=>mt(e)?W.chalk.bgHex(e):W.chalk[Mn(["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=oi(e,r),e=ui(e,r),ni(e,r.width,r)}var Di=$.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 li(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 ci=class extends Error{constructor(e){super(`Missing a value for ${e?`the placeholder: ${e}`:"a placeholder"}`,e),this.name="MissingValueError",this.key=e}},fi=class extends Error{constructor(e){super(`Missing filter: ${e}`),this.name="MissingFilterError",this.filterName=e}};function hi(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 fi(f)}t!==void 0&&(t=d(t))}const a=l({value:t,key:v});if(a===void 0){if(n)return F;throw new ci(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)=>li(u(...F))),e=e.replace(h,u),e=e.replace(new RegExp(o,"g"),"{"),e=e.replace(new RegExp(D,"g"),"}"),e}var pi=V.default.dirname((0,Gt.fileURLToPath)(require("url").pathToFileURL(__filename).href)),di=1e3*60*60*24,mi=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:di,this.#t="NO_UPDATE_NOTIFIER"in $.default.env||$.default.env.NODE_ENV==="test"||$.default.argv.includes("--no-update-notifier")||Di,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"))+`
44
+ `).map(e=>Vr(e,t,n)).join(`
45
+ `)}var X=`
46
+ `,Z=` `,Q=`none`,Ur=()=>{let{env:e,stdout:t,stderr:n}=r.default;return t?.columns?t.columns:n?.columns?n.columns:e.COLUMNS?Number.parseInt(e.COLUMNS,10):80},Wr=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===Q?0:2,Gr=e=>{let t=[`topLeft`,`topRight`,`bottomRight`,`bottomLeft`,`left`,`right`,`top`,`bottom`],n;if(e===Q){e={};for(let n of t)e[n]=``}if(typeof e==`string`){if(n=rr.default[e],!n)throw 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(let n of t)if(e[n]===null||typeof e[n]!=`string`)throw TypeError(`Invalid border style: ${n}`);n=e}return n},Kr=(e,t,n)=>{let r=``,i=q(e);switch(n){case`left`:r=e+t.slice(i);break;case`right`:r=t.slice(i)+e;break;default:t=t.slice(i),t.length%2==1?(t=t.slice(Math.floor(t.length/2)),r=t.slice(1)+e+t):(t=t.slice(t.length/2),r=t+e+t);break}return r},qr=(e,{padding:t,width:n,textAlignment:r,height:i})=>{e=(0,xr.default)(e,{align:r});let a=e.split(X),o=Wn(e),s=n-t.left-t.right;if(o>s){let e=[];for(let t of a){let n=(0,xr.default)(Hr(t,s,{hard:!0}),{align:r}).split(`
47
+ `),i=Math.max(...n.map(e=>q(e)));for(let t of n){let n;switch(r){case`center`:n=Z.repeat((s-i)/2)+t;break;case`right`:n=Z.repeat(s-i)+t;break;default:n=t;break}e.push(n)}}a=e}r===`center`&&o<s?a=a.map(e=>Z.repeat((s-o)/2)+e):r===`right`&&o<s&&(a=a.map(e=>Z.repeat(s-o)+e));let c=Z.repeat(t.left),l=Z.repeat(t.right);return a=a.map(e=>{let t=c+e+l;return t+Z.repeat(n-q(t))}),t.top>0&&(a=[...Array.from({length:t.top}).fill(Z.repeat(n)),...a]),t.bottom>0&&(a=[...a,...Array.from({length:t.bottom}).fill(Z.repeat(n))]),i&&a.length>i?a=a.slice(0,i):i&&a.length<i&&(a=[...a,...Array.from({length:i-a.length}).fill(Z.repeat(n))]),a.join(X)},Jr=(t,n,r)=>{let i=t=>{let n=r.borderColor?ei(r.borderColor)(t):t;return r.dimBorder?e.c.dim(n):n},a=e=>r.backgroundColor?ti(r.backgroundColor)(e):e,o=Gr(r.borderStyle),s=Ur(),c=Z.repeat(r.margin.left);if(r.float===`center`){let e=Math.max((s-n-$(r.borderStyle))/2,0);c=Z.repeat(e)}else if(r.float===`right`){let e=Math.max(s-n-r.margin.right-$(r.borderStyle),0);c=Z.repeat(e)}let l=``;r.margin.top&&(l+=X.repeat(r.margin.top)),(r.borderStyle!==Q||r.title)&&(l+=i(c+o.topLeft+(r.title?Kr(r.title,o.top.repeat(n),r.titleAlignment):o.top.repeat(n))+o.topRight)+X);let u=t.split(X);return l+=u.map(e=>c+i(o.left)+a(e)+i(o.right)).join(X),r.borderStyle!==Q&&(l+=X+i(c+o.bottomLeft+o.bottom.repeat(n)+o.bottomRight)),r.margin.bottom&&(l+=X.repeat(r.margin.bottom)),l},Yr=e=>{if(e.fullscreen&&r.default?.stdout){let t=[r.default.stdout.columns,r.default.stdout.rows];typeof e.fullscreen==`function`&&(t=e.fullscreen(...t)),e.width||=t[0],e.height||=t[1]}return e.width&&=Math.max(1,e.width-$(e.borderStyle)),e.height&&=Math.max(1,e.height-$(e.borderStyle)),e},Xr=(e,t)=>t===Q?e:` ${e} `,Zr=(e,t)=>{t=Yr(t);let n=t.width!==void 0,r=Ur(),i=$(t.borderStyle),a=r-t.margin.left-t.margin.right-i,o=Wn(Hr(e,r-i,{hard:!0,trim:!1}))+t.padding.left+t.padding.right;if(t.title&&n?(t.title=t.title.slice(0,Math.max(0,t.width-2)),t.title&&=Xr(t.title,t.borderStyle)):t.title&&(t.title=t.title.slice(0,Math.max(0,a-2)),t.title&&(t.title=Xr(t.title,t.borderStyle),q(t.title)>o&&(t.width=q(t.title)))),t.width||=o,!n){if(t.margin.left&&t.margin.right&&t.width>a){let e=(r-t.width-i)/(t.margin.left+t.margin.right);t.margin.left=Math.max(0,Math.floor(t.margin.left*e)),t.margin.right=Math.max(0,Math.floor(t.margin.right*e))}t.width=Math.min(t.width,r-i-t.margin.left-t.margin.right)}return t.width-(t.padding.left+t.padding.right)<=0&&(t.padding.left=0,t.padding.right=0),t.height&&t.height-(t.padding.top+t.padding.bottom)<=0&&(t.padding.top=0,t.padding.bottom=0),t},Qr=e=>e.match(/^#(?:[0-f]{3}){1,2}$/i),$r=t=>typeof t==`string`&&(e.c[t]??Qr(t)),ei=t=>Qr(t)?e.c.hex(t):e.c[t],ti=t=>Qr(t)?e.c.bgHex(t):e.c[hr([`bg`,t])];function ni(e,t){if(t={padding:0,borderStyle:`single`,dimBorder:!1,textAlignment:`left`,float:`left`,titleAlignment:`left`,...t},t.align&&(t.textAlignment=t.align),t.borderColor&&!$r(t.borderColor))throw Error(`${t.borderColor} is not a valid borderColor`);if(t.backgroundColor&&!$r(t.backgroundColor))throw Error(`${t.backgroundColor} is not a valid backgroundColor`);return t.padding=Wr(t.padding),t.margin=Wr(t.margin),t=Zr(e,t),e=qr(e,t),Jr(e,t.width,t)}var ri=r.env.CI!==`0`&&r.env.CI!==`false`&&(`CI`in r.env||`CONTINUOUS_INTEGRATION`in r.env||Object.keys(r.env).some(e=>e.startsWith(`CI_`))),ii=e=>e.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`);function ai(e,...t){if(typeof e==`string`)return ii(e);let n=e[0];for(let[r,i]of t.entries())n=n+ii(String(i))+e[r+1];return n}var oi=class extends Error{constructor(e){super(`Missing a value for ${e?`the placeholder: ${e}`:`a placeholder`}`,e),this.name=`MissingValueError`,this.key=e}},si=class extends Error{constructor(e){super(`Missing filter: ${e}`),this.name=`MissingFilterError`,this.filterName=e}};function ci(e,t,{ignoreMissing:n=!1,transform:r=({value:e})=>e,filters:i={}}={}){if(typeof e!=`string`)throw TypeError(`Expected a \`string\` in the first argument, got \`${typeof e}\``);if(typeof t!=`object`)throw TypeError(`Expected an \`object\` or \`Array\` in the second argument, got \`${typeof t}\``);let a=``,o=``;e=e.replace(/\\{/g,a),e=e.replace(/\\}/g,o);let s=e=>{let t=[],n=``;for(let r=0;r<e.length;r++)e[r]===`\\`&&e[r+1]===`.`?(n+=`.`,r++):e[r]===`.`?(t.push(n),n=``):n+=e[r];return t.push(n),t},c=(e,a)=>{let o=a.split(`|`).map(e=>e.trim()),c=o[0],l=o.slice(1),u=s(c),d=t;for(let e of u)d&&=d[e];for(let t of l){let r=i[t];if(!r){if(n)return e;throw new si(t)}d!==void 0&&(d=r(d))}let f=r({value:d,key:c});if(f===void 0){if(n)return e;throw new oi(c)}return String(f)},l=`((\\d+|[a-z$_][\\w\\-.$\\\\]*)\\s*(?:\\|\\s*[a-z$_][\\w$]*\\s*)*)`,u=RegExp(`{{${l}}}`,`gi`),d=RegExp(`{${l}}`,`gi`);return e=e.replace(u,(...e)=>ai(c(...e))),e=e.replace(d,c),e=e.replace(RegExp(a,`g`),`{`),e=e.replace(RegExp(o,`g`),`}`),e}var li=a.default.dirname((0,o.fileURLToPath)(require("url").pathToFileURL(__filename).href)),ui=1e3*60*60*24,di=class{config;update;_packageName;_shouldNotifyInNpmScript;#e;#t;#n;#r;constructor(t={}){if(this.#e=t,t.pkg??={},t.distTag??=`latest`,t.pkg={name:t.pkg.name??t.packageName,version:t.pkg.version??t.packageVersion},!t.pkg.name||!t.pkg.version)throw Error(`pkg.name and pkg.version required`);if(this._packageName=t.pkg.name,this.#t=t.pkg.version,this.#n=typeof t.updateCheckInterval==`number`?t.updateCheckInterval:ui,this.#r=`NO_UPDATE_NOTIFIER`in r.default.env||r.default.env.NODE_ENV===`test`||r.default.argv.includes(`--no-update-notifier`)||ri,this._shouldNotifyInNpmScript=t.shouldNotifyInNpmScript,!this.#r)try{this.config=new Ie(`update-notifier-${this._packageName}`,{optOut:!1,lastUpdateCheck:Date.now()})}catch{let n=e.c.yellow((0,s.format)(` %s update check failed `,t.pkg.name))+(0,s.format)(`
48
+ Try running with %s or get access `,e.c.cyan(`sudo`))+`
58
49
  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(pi,"check.js"),JSON.stringify(this.#o)],{detached:!0,stdio:"ignore"}).unref())}async fetchInfo(){const{distTag:e}=this.#o,r=await Xu(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&&tn;if(!$.default.stdout.isTTY||r||!this.update||!(0,Qr.default)(this.update.latest,this.update.current))return this;e={isGlobal:ln,...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(hi(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 Fi(e){const r=new mi(e);return r.check(),r}var Ut="Output the version number of npm-check-updates.",gi=e=>e.replace(/`/g,""),Ei=(0,xr.default)();(async()=>{const e=Fi({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}")}
61
- Run ${a.cyan("{updateCommand}")} to update
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=`${gi(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=Ei(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})})();
66
-
50
+ `+e.c.cyan((0,s.format)(` sudo chown -R $USER:$(id -gn $USER) %s `,k));r.default.on(`exit`,()=>{console.error(ni(n,{textAlignment:`center`}))})}}check(){!this.config||this.config.get(`optOut`)||this.#r||(this.update=this.config.get(`update`),this.update&&(this.update.current=this.#t,this.config.delete(`update`)),!(Date.now()-this.config.get(`lastUpdateCheck`)<this.#n)&&(0,l.spawn)(r.default.execPath,[a.default.join(li,`check.js`),JSON.stringify(this.#e)],{detached:!0,stdio:`ignore`}).unref())}async fetchInfo(){let{distTag:e}=this.#e,t=await nn(this._packageName,{version:e});return{latest:t,current:this.#t,type:(0,Le.default)(this.#t,t)??e,name:this._packageName}}notify(t){let n=!this._shouldNotifyInNpmScript&&cn;if(!r.default.stdout.isTTY||n||!this.update||!(0,Re.default)(this.update.latest,this.update.current))return this;t={isGlobal:_n,...t};let i=t.isGlobal?`npm i -g ${this._packageName}`:`npm i ${this._packageName}`,a=`Update available `+e.c.dim(`{currentVersion}`)+e.c.reset(``)+e.c.green(`{latestVersion}`)+`
51
+ Run `+e.c.cyan(`{updateCommand}`)+` to update`,o=t.message||a;t.boxenOptions??={padding:1,margin:1,textAlignment:`center`,borderColor:`yellow`,borderStyle:`round`};let s=ni(ci(o,{packageName:this._packageName,currentVersion:this.update.current,latestVersion:this.update.latest,updateCommand:i}),t.boxenOptions);return t.defer===!1?console.error(s):r.default.on(`exit`,()=>{console.error(s)}),this}};function fi(e){let t=new di(e);return t.check(),t}var pi=`Output the version number of npm-check-updates.`,mi=e=>e.replace(/`/g,``);(async()=>{let t=fi({pkg:e.p});if(t.update&&t.update.latest!==e.p.version){let n=e.s(!0),r=oe.default.parse(t.update.current)?.major,i=oe.default.parse(t.update.latest)?.major,a=(r&&i&&i>=r?Array(i-r).fill(0).map((e,t)=>r+t+1):[]).map(t=>`${e.p.homepage??``}/releases/tag/v${t}.0.0`),o=`${e.p.homepage??``}/compare/v${t.update.current}...v${t.update.latest}`;t.notify({defer:!1,isGlobal:!0,message:`Update available ${n.dim(`{currentVersion}`)}${n.reset(``)}${t.update.type===`major`?n.red(`{latestVersion}`):t.update.type===`minor`?n.yellow(`{latestVersion}`):n.green(`{latestVersion}`)}
52
+ Run ${n.cyan(`{updateCommand}`)} to update
53
+ ${n.dim.underline(t.update.type===`major`?a.map(e=>n.dim.underline(e)).join(`
54
+ `):o)}`})}let n=process.argv.slice(2),r=n.findIndex(e=>e===`--help`||e===`-h`);if(r!==-1&&n[r+1]){let t=n[r+1].replace(/^-*/,``);if(t===`help`||t===`h`)console.info(`Would you like some help with your help?`);else{await e.o();let t=[...n.slice(0,r),...n.slice(r+1)];for(let n of t){let t=n.replace(/^-*/,``),r=e.i.find(e=>t===e.long||t===e.short||t===`no-${e.long}`&&e.type===`boolean`);console.info(r?e.a(r)+`
55
+ `:t===`version`||t===`v`||t===`V`?e.a({long:`version`,short:`v`,description:pi,type:`string`})+`
56
+ `:`Unknown option: ${n}`)}}process.exit(0)}let i=new Set(e.i.filter(e=>e.cli===!1).map(e=>`--${e.long}`));_.description(`[filter] is a list or regex of package names to check (all others will be ignored).`).usage(`[options] [filter]`).configureHelp({optionTerm:e=>e.long&&i.has(e.long)?e.long.replace(`--`,``)+`*`:e.long===`--version`?`-v, -V, --version`:e.flags.replace(`[bool]`,``),optionDescription:e=>e.long===`--version`?pi:e.long===`--help`?`You're lookin' at it. Run "ncu --help <option>" for a specific option.`:ne.prototype.optionDescription(e)}).addOption(new w(`-v, --versionAlias`).hideHelp()).on(`option:versionAlias`,()=>{console.info(e.p.version),process.exit(0)});for(let{long:t,short:n,arg:r,description:i,default:a,help:o,parse:s,type:c}of e.i){let e=`${n?`-${n}, `:``}--${t}${r?` <${r}>`:``}`,l=`${mi(i)}${o?` Run "ncu --help ${t}" for details.`:``}`;_.option(e,l,s||a,s?a:void 0),c===`boolean`&&_.addOption(new w(`--no-${t}`).default(!1).hideHelp())}_.version(e.p.version);let a=structuredClone(_._optionValues);_.allowExcessArguments(!0),_.parse(process.argv);let o=_.opts(),s=process.argv.slice(2),{color:c,configFileName:l,configFilePath:u,global:d,packageFile:f,mergeConfig:p}=o;await e.o(c);let m=!process.env.NCU_TESTS||u||p?await e.n({configFileName:l,configFilePath:u,global:d,packageFile:f,options:{...o,cli:!0}}):null,h=(m?.args||[]).filter((e,t,n)=>(typeof e!=`string`||!e.startsWith(`-`)||!s.includes(e))&&(typeof n[t-1]!=`string`||!n[t-1].startsWith(`-`)||!s.includes(n[t-1]))),g=[...process.argv.slice(0,2),...h,...s],v={},y=g.slice(2);for(let t=0;t<y.length;t++){let n=y[t];if(typeof n!=`string`||!n.startsWith(`-`))continue;let r=e.r[n.replace(/^--?(no-)?/,``)];if(r){let e=r.long;r.arg?(v[e]=t+1<y.length?y[t+1]:!0,t++):r.type===`boolean`?v[e]=!n.startsWith(`--no-`):v[e]=!0}}_._optionValues=a,_.parse(g);let b=_.opts();e.default({...m&&Object.keys(m.config).length>0?{rcConfigPath:m.filePath}:null,...e.t(_.opts(),e=>e!==void 0),args:_.args,raw:v,...b.filter?{filter:b.filter}:null,...b.reject?{reject:b.reject}:null},{cli:!0})})();
67
57
  //# sourceMappingURL=cli.cjs.map