chvm 1.1.12 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.cjs CHANGED
@@ -1,36 +1,36 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var Yu=Object.create;var Di=Object.defineProperty;var Ku=Object.getOwnPropertyDescriptor;var Xu=Object.getOwnPropertyNames;var Ju=Object.getPrototypeOf,Qu=Object.prototype.hasOwnProperty;var ea=(t,e)=>()=>(t&&(e=t(t=0)),e);var S=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ta=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Xu(e))!Qu.call(t,i)&&i!==r&&Di(t,i,{get:()=>e[i],enumerable:!(n=Ku(e,i))||n.enumerable});return t};var V=(t,e,r)=>(r=t!=null?Yu(Ju(t)):{},ta(e||!t||!t.__esModule?Di(r,"default",{value:t,enumerable:!0}):r,t));var D=ea(()=>{"use strict"});var mt=S(Rr=>{"use strict";D();var Ht=class extends Error{constructor(e,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},Ir=class extends Ht{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Rr.CommanderError=Ht;Rr.InvalidArgumentError=Ir});var jt=S(Nr=>{"use strict";D();var{InvalidArgumentError:ra}=mt(),Lr=class{constructor(e,r){switch(this.description=r||"",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.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new ra(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function na(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}Nr.Argument=Lr;Nr.humanReadableArgName=na});var Pr=S(di=>{"use strict";D();var{humanReadableArgName:ia}=jt(),Mr=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),o=e.createCommand(n).helpOption(!1);o.description(e._helpCommandDescription),i&&o.arguments(i),r.push(o)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(e,r){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(e).localeCompare(n(r))}visibleOptions(e){let r=e.options.filter(o=>!o.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let o;n?i?o=e.createOption(e._helpFlags,e._helpDescription):o=e.createOption(e._helpShortFlag,e._helpDescription):o=e.createOption(e._helpLongFlag,e._helpDescription),r.push(o)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let n=e.parent;n;n=n.parent){let i=n.options.filter(o=>!o.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e.registeredArguments.find(r=>r.description)?e.registeredArguments:[]}subcommandTerm(e){let r=e.registeredArguments.map(n=>ia(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let i=e.parent;i;i=i.parent)n=i.name()+" "+n;return n+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),i=r.helpWidth||80,o=2,s=2;function a(c,g){if(g){let p=`${c.padEnd(n+s)}${g}`;return r.wrap(p,i-o,n+s)}return c}function f(c){return c.join(`
3
- `).replace(/^/gm," ".repeat(o))}let d=[`Usage: ${r.commandUsage(e)}`,""],h=r.commandDescription(e);h.length>0&&(d=d.concat([r.wrap(h,i,0),""]));let F=r.visibleArguments(e).map(c=>a(r.argumentTerm(c),r.argumentDescription(c)));F.length>0&&(d=d.concat(["Arguments:",f(F),""]));let y=r.visibleOptions(e).map(c=>a(r.optionTerm(c),r.optionDescription(c)));if(y.length>0&&(d=d.concat(["Options:",f(y),""])),this.showGlobalOptions){let c=r.visibleGlobalOptions(e).map(g=>a(r.optionTerm(g),r.optionDescription(g)));c.length>0&&(d=d.concat(["Global Options:",f(c),""]))}let l=r.visibleCommands(e).map(c=>a(r.subcommandTerm(c),r.subcommandDescription(c)));return l.length>0&&(d=d.concat(["Commands:",f(l),""])),d.join(`
4
- `)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestGlobalOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,n,i=40){let o=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",s=new RegExp(`[\\n][${o}]+`);if(e.match(s))return e;let a=r-n;if(a<i)return e;let f=e.slice(0,n),d=e.slice(n).replace(`\r
2
+ "use strict";var Qu=Object.create;var gi=Object.defineProperty;var ea=Object.getOwnPropertyDescriptor;var ta=Object.getOwnPropertyNames;var ra=Object.getPrototypeOf,na=Object.prototype.hasOwnProperty;var ia=(t,e)=>()=>(t&&(e=t(t=0)),e);var A=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var oa=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ta(e))!na.call(t,i)&&i!==r&&gi(t,i,{get:()=>e[i],enumerable:!(n=ea(e,i))||n.enumerable});return t};var V=(t,e,r)=>(r=t!=null?Qu(ra(t)):{},oa(e||!t||!t.__esModule?gi(r,"default",{value:t,enumerable:!0}):r,t));var D=ia(()=>{"use strict"});var Et=A(Pr=>{"use strict";D();var Vt=class extends Error{constructor(e,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},Nr=class extends Vt{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Pr.CommanderError=Vt;Pr.InvalidArgumentError=Nr});var $t=A(Ur=>{"use strict";D();var{InvalidArgumentError:sa}=Et(),Mr=class{constructor(e,r){switch(this.description=r||"",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.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new sa(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function ua(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}Ur.Argument=Mr;Ur.humanReadableArgName=ua});var Hr=A(Ei=>{"use strict";D();var{humanReadableArgName:aa}=$t(),kr=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),o=e.createCommand(n).helpOption(!1);o.description(e._helpCommandDescription),i&&o.arguments(i),r.push(o)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(e,r){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(e).localeCompare(n(r))}visibleOptions(e){let r=e.options.filter(o=>!o.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let o;n?i?o=e.createOption(e._helpFlags,e._helpDescription):o=e.createOption(e._helpShortFlag,e._helpDescription):o=e.createOption(e._helpLongFlag,e._helpDescription),r.push(o)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let n=e.parent;n;n=n.parent){let i=n.options.filter(o=>!o.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e.registeredArguments.find(r=>r.description)?e.registeredArguments:[]}subcommandTerm(e){let r=e.registeredArguments.map(n=>aa(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let i=e.parent;i;i=i.parent)n=i.name()+" "+n;return n+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),i=r.helpWidth||80,o=2,s=2;function a(h,m){if(m){let p=`${h.padEnd(n+s)}${m}`;return r.wrap(p,i-o,n+s)}return h}function l(h){return h.join(`
3
+ `).replace(/^/gm," ".repeat(o))}let d=[`Usage: ${r.commandUsage(e)}`,""],c=r.commandDescription(e);c.length>0&&(d=d.concat([r.wrap(c,i,0),""]));let F=r.visibleArguments(e).map(h=>a(r.argumentTerm(h),r.argumentDescription(h)));F.length>0&&(d=d.concat(["Arguments:",l(F),""]));let y=r.visibleOptions(e).map(h=>a(r.optionTerm(h),r.optionDescription(h)));if(y.length>0&&(d=d.concat(["Options:",l(y),""])),this.showGlobalOptions){let h=r.visibleGlobalOptions(e).map(m=>a(r.optionTerm(m),r.optionDescription(m)));h.length>0&&(d=d.concat(["Global Options:",l(h),""]))}let f=r.visibleCommands(e).map(h=>a(r.subcommandTerm(h),r.subcommandDescription(h)));return f.length>0&&(d=d.concat(["Commands:",l(f),""])),d.join(`
4
+ `)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestGlobalOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,n,i=40){let o=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",s=new RegExp(`[\\n][${o}]+`);if(e.match(s))return e;let a=r-n;if(a<i)return e;let l=e.slice(0,n),d=e.slice(n).replace(`\r
5
5
  `,`
6
- `),h=" ".repeat(n),y="\\s\u200B",l=new RegExp(`
7
- |.{1,${a-1}}([${y}]|$)|[^${y}]+?([${y}]|$)`,"g"),c=d.match(l)||[];return f+c.map((g,p)=>g===`
8
- `?"":(p>0?h:"")+g.trimEnd()).join(`
9
- `)}};di.Help=Mr});var Hr=S(Vt=>{"use strict";D();var{InvalidArgumentError:oa}=mt(),Ur=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=pi(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}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;return typeof e=="string"&&(r={[e]:!0}),this.implied=Object.assign(this.implied||{},r),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}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new oa(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return sa(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},kr=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,n)=>{this.positiveOptions.has(n)&&this.dualOptions.add(n)})}valueFromOption(e,r){let n=r.attributeName();if(!this.dualOptions.has(n))return!0;let i=this.negativeOptions.get(n).presetArg,o=i!==void 0?i:!1;return r.negate===(o===e)}};function sa(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function pi(t){let e,r,n=t.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),r=n.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}Vt.Option=Ur;Vt.splitOptionFlags=pi;Vt.DualOptions=kr});var gi=S(mi=>{"use strict";D();function ua(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let n=0;n<=t.length;n++)r[n]=[n];for(let n=0;n<=e.length;n++)r[0][n]=n;for(let n=1;n<=e.length;n++)for(let i=1;i<=t.length;i++){let o=1;t[i-1]===e[n-1]?o=0:o=1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+o),i>1&&n>1&&t[i-1]===e[n-2]&&t[i-2]===e[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[t.length][e.length]}function aa(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(s=>s.slice(2)));let n=[],i=3,o=.4;return e.forEach(s=>{if(s.length<=1)return;let a=ua(t,s),f=Math.max(t.length,s.length);(f-a)/f>o&&(a<i?(i=a,n=[s]):a===i&&n.push(s))}),n.sort((s,a)=>s.localeCompare(a)),r&&(n=n.map(s=>`--${s}`)),n.length>1?`
6
+ `),c=" ".repeat(n),y="\\s\u200B",f=new RegExp(`
7
+ |.{1,${a-1}}([${y}]|$)|[^${y}]+?([${y}]|$)`,"g"),h=d.match(f)||[];return l+h.map((m,p)=>m===`
8
+ `?"":(p>0?c:"")+m.trimEnd()).join(`
9
+ `)}};Ei.Help=kr});var $r=A(qt=>{"use strict";D();var{InvalidArgumentError:la}=Et(),jr=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=Fi(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}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;return typeof e=="string"&&(r={[e]:!0}),this.implied=Object.assign(this.implied||{},r),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}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new la(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return fa(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Vr=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,n)=>{this.positiveOptions.has(n)&&this.dualOptions.add(n)})}valueFromOption(e,r){let n=r.attributeName();if(!this.dualOptions.has(n))return!0;let i=this.negativeOptions.get(n).presetArg,o=i!==void 0?i:!1;return r.negate===(o===e)}};function fa(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function Fi(t){let e,r,n=t.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),r=n.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}qt.Option=jr;qt.splitOptionFlags=Fi;qt.DualOptions=Vr});var Ci=A(_i=>{"use strict";D();function ca(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let n=0;n<=t.length;n++)r[n]=[n];for(let n=0;n<=e.length;n++)r[0][n]=n;for(let n=1;n<=e.length;n++)for(let i=1;i<=t.length;i++){let o=1;t[i-1]===e[n-1]?o=0:o=1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+o),i>1&&n>1&&t[i-1]===e[n-2]&&t[i-2]===e[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[t.length][e.length]}function ha(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(s=>s.slice(2)));let n=[],i=3,o=.4;return e.forEach(s=>{if(s.length<=1)return;let a=ca(t,s),l=Math.max(t.length,s.length);(l-a)/l>o&&(a<i?(i=a,n=[s]):a===i&&n.push(s))}),n.sort((s,a)=>s.localeCompare(a)),r&&(n=n.map(s=>`--${s}`)),n.length>1?`
10
10
  (Did you mean one of ${n.join(", ")}?)`:n.length===1?`
11
- (Did you mean ${n[0]}?)`:""}mi.suggestSimilar=aa});var xi=S(yi=>{"use strict";D();var la=require("events").EventEmitter,jr=require("child_process"),ve=require("path"),Vr=require("fs"),q=require("process"),{Argument:fa,humanReadableArgName:ca}=jt(),{CommanderError:$r}=mt(),{Help:ha}=Pr(),{Option:Ei,splitOptionFlags:Da,DualOptions:da}=Hr(),{suggestSimilar:Fi}=gi(),qr=class t extends la{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=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._outputConfiguration={writeOut:r=>q.stdout.write(r),writeErr:r=>q.stderr.write(r),getOutHelpWidth:()=>q.stdout.isTTY?q.stdout.columns:void 0,getErrHelpWidth:()=>q.stderr.isTTY?q.stderr.columns:void 0,outputError:(r,n)=>n(r)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._hasHelpOption=e._hasHelpOption,this._helpFlags=e._helpFlags,this._helpDescription=e._helpDescription,this._helpShortFlag=e._helpShortFlag,this._helpLongFlag=e._helpLongFlag,this._helpCommandName=e._helpCommandName,this._helpCommandnameAndArgs=e._helpCommandnameAndArgs,this._helpCommandDescription=e._helpCommandDescription,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 r=this;r;r=r.parent)e.push(r);return e}command(e,r,n){let i=r,o=n;typeof i=="object"&&i!==null&&(o=i,i=null),o=o||{};let[,s,a]=e.match(/([^ ]+) *(.*)/),f=this.createCommand(s);return i&&(f.description(i),f._executableHandler=!0),o.isDefault&&(this._defaultCommandName=f._name),f._hidden=!!(o.noHelp||o.hidden),f._executableFile=o.executableFile||null,a&&f.arguments(a),this.commands.push(f),f.parent=this,f.copyInheritedSettings(this),i?this:f}createCommand(e){return new t(e)}createHelp(){return Object.assign(new ha,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(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,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
12
- - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}createArgument(e,r){return new fa(e,r)}argument(e,r,n,i){let o=this.createArgument(e,r);return typeof n=="function"?o.default(i).argParser(n):o.default(n),this.addArgument(o),this}arguments(e){return e.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}addHelpCommand(e,r){return e===!1?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=r||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return this._addImplicitHelpCommand===void 0?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(e,r){let n=["preSubcommand","preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
13
- Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,n){this._exitCallback&&this._exitCallback(new $r(e,r,n)),q.exit(e)}action(e){let r=n=>{let i=this.registeredArguments.length,o=n.slice(0,i);return this._storeOptionsAsProperties?o[i]=this:o[i]=this.opts(),o.push(this),e.apply(this,o)};return this._actionHandler=r,this}createOption(e,r){return new Ei(e,r)}_callParseArg(e,r,n,i){try{return e.parseArg(r,n)}catch(o){if(o.code==="commander.invalidArgument"){let s=`${i} ${o.message}`;this.error(s,{exitCode:o.exitCode,code:o.code})}throw o}}addOption(e){let r=e.name(),n=e.attributeName();if(e.negate){let o=e.long.replace(/^--no-/,"--");this._findOption(o)||this.setOptionValueWithSource(n,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,"default");this.options.push(e);let i=(o,s,a)=>{o==null&&e.presetArg!==void 0&&(o=e.presetArg);let f=this.getOptionValue(n);o!==null&&e.parseArg?o=this._callParseArg(e,o,f,s):o!==null&&e.variadic&&(o=e._concatValue(o,f)),o==null&&(e.negate?o=!1:e.isBoolean()||e.optional?o=!0:o=""),this.setOptionValueWithSource(n,o,a)};return this.on("option:"+r,o=>{let s=`error: option '${e.flags}' argument '${o}' is invalid.`;i(o,s,"cli")}),e.envVar&&this.on("optionEnv:"+r,o=>{let s=`error: option '${e.flags}' value '${o}' from env '${e.envVar}' is invalid.`;i(o,s,"env")}),this}_optionEx(e,r,n,i,o){if(typeof r=="object"&&r instanceof Ei)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let s=this.createOption(r,n);if(s.makeOptionMandatory(!!e.mandatory),typeof i=="function")s.default(o).argParser(i);else if(i instanceof RegExp){let a=i;i=(f,d)=>{let h=a.exec(f);return h?h[0]:d},s.default(o).argParser(i)}else s.default(i);return this.addOption(s)}option(e,r,n,i){return this._optionEx({},e,r,n,i)}requiredOption(e,r,n,i){return this._optionEx({mandatory:!0},e,r,n,i)}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){if(this._passThroughOptions=!!e,this.parent&&e&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,n){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return this._getCommandAndAncestors().forEach(n=>{n.getOptionValueSource(e)!==void 0&&(r=n.getOptionValueSource(e))}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");r=r||{},e===void 0&&(e=q.argv,q.versions&&q.versions.electron&&(r.from="electron")),this.rawArgs=e.slice();let n;switch(r.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":q.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,r){let n=this._prepareUserArgs(e,r);return this._parseCommand([],n),this}async parseAsync(e,r){let n=this._prepareUserArgs(e,r);return await this._parseCommand([],n),this}_executeSubCommand(e,r){r=r.slice();let n=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function o(h,F){let y=ve.resolve(h,F);if(Vr.existsSync(y))return y;if(i.includes(ve.extname(F)))return;let l=i.find(c=>Vr.existsSync(`${y}${c}`));if(l)return`${y}${l}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let s=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let h;try{h=Vr.realpathSync(this._scriptPath)}catch{h=this._scriptPath}a=ve.resolve(ve.dirname(h),a)}if(a){let h=o(a,s);if(!h&&!e._executableFile&&this._scriptPath){let F=ve.basename(this._scriptPath,ve.extname(this._scriptPath));F!==this._name&&(h=o(a,`${F}-${e._name}`))}s=h||s}n=i.includes(ve.extname(s));let f;q.platform!=="win32"?n?(r.unshift(s),r=Ci(q.execArgv).concat(r),f=jr.spawn(q.argv[0],r,{stdio:"inherit"})):f=jr.spawn(s,r,{stdio:"inherit"}):(r.unshift(s),r=Ci(q.execArgv).concat(r),f=jr.spawn(q.execPath,r,{stdio:"inherit"})),f.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(F=>{q.on(F,()=>{f.killed===!1&&f.exitCode===null&&f.kill(F)})});let d=this._exitCallback;d?f.on("close",()=>{d(new $r(q.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):f.on("close",q.exit.bind(q)),f.on("error",h=>{if(h.code==="ENOENT"){let F=a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",y=`'${s}' does not exist
11
+ (Did you mean ${n[0]}?)`:""}_i.suggestSimilar=ha});var Si=A(bi=>{"use strict";D();var Da=require("events").EventEmitter,qr=require("child_process"),Se=require("path"),Wr=require("fs"),q=require("process"),{Argument:da,humanReadableArgName:pa}=$t(),{CommanderError:Gr}=Et(),{Help:ma}=Hr(),{Option:yi,splitOptionFlags:ga,DualOptions:Ea}=$r(),{suggestSimilar:xi}=Ci(),zr=class t extends Da{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=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._outputConfiguration={writeOut:r=>q.stdout.write(r),writeErr:r=>q.stderr.write(r),getOutHelpWidth:()=>q.stdout.isTTY?q.stdout.columns:void 0,getErrHelpWidth:()=>q.stderr.isTTY?q.stderr.columns:void 0,outputError:(r,n)=>n(r)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._hasHelpOption=e._hasHelpOption,this._helpFlags=e._helpFlags,this._helpDescription=e._helpDescription,this._helpShortFlag=e._helpShortFlag,this._helpLongFlag=e._helpLongFlag,this._helpCommandName=e._helpCommandName,this._helpCommandnameAndArgs=e._helpCommandnameAndArgs,this._helpCommandDescription=e._helpCommandDescription,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 r=this;r;r=r.parent)e.push(r);return e}command(e,r,n){let i=r,o=n;typeof i=="object"&&i!==null&&(o=i,i=null),o=o||{};let[,s,a]=e.match(/([^ ]+) *(.*)/),l=this.createCommand(s);return i&&(l.description(i),l._executableHandler=!0),o.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(o.noHelp||o.hidden),l._executableFile=o.executableFile||null,a&&l.arguments(a),this.commands.push(l),l.parent=this,l.copyInheritedSettings(this),i?this:l}createCommand(e){return new t(e)}createHelp(){return Object.assign(new ma,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(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,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
12
+ - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}createArgument(e,r){return new da(e,r)}argument(e,r,n,i){let o=this.createArgument(e,r);return typeof n=="function"?o.default(i).argParser(n):o.default(n),this.addArgument(o),this}arguments(e){return e.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}addHelpCommand(e,r){return e===!1?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=r||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return this._addImplicitHelpCommand===void 0?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(e,r){let n=["preSubcommand","preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
13
+ Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,n){this._exitCallback&&this._exitCallback(new Gr(e,r,n)),q.exit(e)}action(e){let r=n=>{let i=this.registeredArguments.length,o=n.slice(0,i);return this._storeOptionsAsProperties?o[i]=this:o[i]=this.opts(),o.push(this),e.apply(this,o)};return this._actionHandler=r,this}createOption(e,r){return new yi(e,r)}_callParseArg(e,r,n,i){try{return e.parseArg(r,n)}catch(o){if(o.code==="commander.invalidArgument"){let s=`${i} ${o.message}`;this.error(s,{exitCode:o.exitCode,code:o.code})}throw o}}addOption(e){let r=e.name(),n=e.attributeName();if(e.negate){let o=e.long.replace(/^--no-/,"--");this._findOption(o)||this.setOptionValueWithSource(n,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,"default");this.options.push(e);let i=(o,s,a)=>{o==null&&e.presetArg!==void 0&&(o=e.presetArg);let l=this.getOptionValue(n);o!==null&&e.parseArg?o=this._callParseArg(e,o,l,s):o!==null&&e.variadic&&(o=e._concatValue(o,l)),o==null&&(e.negate?o=!1:e.isBoolean()||e.optional?o=!0:o=""),this.setOptionValueWithSource(n,o,a)};return this.on("option:"+r,o=>{let s=`error: option '${e.flags}' argument '${o}' is invalid.`;i(o,s,"cli")}),e.envVar&&this.on("optionEnv:"+r,o=>{let s=`error: option '${e.flags}' value '${o}' from env '${e.envVar}' is invalid.`;i(o,s,"env")}),this}_optionEx(e,r,n,i,o){if(typeof r=="object"&&r instanceof yi)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let s=this.createOption(r,n);if(s.makeOptionMandatory(!!e.mandatory),typeof i=="function")s.default(o).argParser(i);else if(i instanceof RegExp){let a=i;i=(l,d)=>{let c=a.exec(l);return c?c[0]:d},s.default(o).argParser(i)}else s.default(i);return this.addOption(s)}option(e,r,n,i){return this._optionEx({},e,r,n,i)}requiredOption(e,r,n,i){return this._optionEx({mandatory:!0},e,r,n,i)}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){if(this._passThroughOptions=!!e,this.parent&&e&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,n){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return this._getCommandAndAncestors().forEach(n=>{n.getOptionValueSource(e)!==void 0&&(r=n.getOptionValueSource(e))}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");r=r||{},e===void 0&&(e=q.argv,q.versions&&q.versions.electron&&(r.from="electron")),this.rawArgs=e.slice();let n;switch(r.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":q.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,r){let n=this._prepareUserArgs(e,r);return this._parseCommand([],n),this}async parseAsync(e,r){let n=this._prepareUserArgs(e,r);return await this._parseCommand([],n),this}_executeSubCommand(e,r){r=r.slice();let n=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function o(c,F){let y=Se.resolve(c,F);if(Wr.existsSync(y))return y;if(i.includes(Se.extname(F)))return;let f=i.find(h=>Wr.existsSync(`${y}${h}`));if(f)return`${y}${f}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let s=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let c;try{c=Wr.realpathSync(this._scriptPath)}catch{c=this._scriptPath}a=Se.resolve(Se.dirname(c),a)}if(a){let c=o(a,s);if(!c&&!e._executableFile&&this._scriptPath){let F=Se.basename(this._scriptPath,Se.extname(this._scriptPath));F!==this._name&&(c=o(a,`${F}-${e._name}`))}s=c||s}n=i.includes(Se.extname(s));let l;q.platform!=="win32"?n?(r.unshift(s),r=wi(q.execArgv).concat(r),l=qr.spawn(q.argv[0],r,{stdio:"inherit"})):l=qr.spawn(s,r,{stdio:"inherit"}):(r.unshift(s),r=wi(q.execArgv).concat(r),l=qr.spawn(q.execPath,r,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(F=>{q.on(F,()=>{l.killed===!1&&l.exitCode===null&&l.kill(F)})});let d=this._exitCallback;d?l.on("close",()=>{d(new Gr(q.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):l.on("close",q.exit.bind(q)),l.on("error",c=>{if(c.code==="ENOENT"){let F=a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",y=`'${s}' does not exist
14
14
  - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
15
15
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
16
- - ${F}`;throw new Error(y)}else if(h.code==="EACCES")throw new Error(`'${s}' not executable`);if(!d)q.exit(1);else{let F=new $r(1,"commander.executeSubCommandAsync","(error)");F.nestedError=h,d(F)}}),this.runningCommand=f}_dispatchSubcommand(e,r,n){let i=this._findCommand(e);i||this.help({error:!0});let o;return o=this._chainOrCallSubCommandHook(o,i,"preSubcommand"),o=this._chainOrCall(o,()=>{if(i._executableHandler)this._executeSubCommand(i,r.concat(n));else return i._parseCommand(r,n)}),o}_dispatchHelpCommand(e){e||this.help();let r=this._findCommand(e);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(e,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,r)=>{e.required&&this.args[r]==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=(n,i,o)=>{let s=i;if(i!==null&&n.parseArg){let a=`error: command-argument value '${i}' is invalid for argument '${n.name()}'.`;s=this._callParseArg(n,i,o,a)}return s};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((n,i)=>{let o=n.defaultValue;n.variadic?i<this.args.length?(o=this.args.slice(i),n.parseArg&&(o=o.reduce((s,a)=>e(n,a,s),n.defaultValue))):o===void 0&&(o=[]):i<this.args.length&&(o=this.args[i],n.parseArg&&(o=e(n,o,n.defaultValue))),r[i]=o}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let n=e,i=[];return this._getCommandAndAncestors().reverse().filter(o=>o._lifeCycleHooks[r]!==void 0).forEach(o=>{o._lifeCycleHooks[r].forEach(s=>{i.push({hookedCommand:o,callback:s})})}),r==="postAction"&&i.reverse(),i.forEach(o=>{n=this._chainOrCall(n,()=>o.callback(o.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,r,n){let i=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(o=>{i=this._chainOrCall(i,()=>o(this,r))}),i}_parseCommand(e,r){let n=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),r=n.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName)return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return _i(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),_i(this,n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},o=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let s;return s=this._chainOrCallHooks(s,"preAction"),s=this._chainOrCall(s,()=>this._actionHandler(this.processedArgs)),this.parent&&(s=this._chainOrCall(s,()=>{this.parent.emit(o,e,r)})),s=this._chainOrCallHooks(s,"postAction"),s}if(this.parent&&this.parent.listenerCount(o))i(),this._processArguments(),this.parent.emit(o,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);this.listenerCount("command:*")?this.emit("command:*",e,r):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(r=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find(r=>r.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(n=>{let i=n.attributeName();return this.getOptionValue(i)===void 0?!1:this.getOptionValueSource(i)!=="default"});e.filter(n=>n.conflictsWith.length>0).forEach(n=>{let i=e.find(o=>n.conflictsWith.includes(o.attributeName()));i&&this._conflictingOption(n,i)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let r=[],n=[],i=r,o=e.slice();function s(f){return f.length>1&&f[0]==="-"}let a=null;for(;o.length;){let f=o.shift();if(f==="--"){i===n&&i.push(f),i.push(...o);break}if(a&&!s(f)){this.emit(`option:${a.name()}`,f);continue}if(a=null,s(f)){let d=this._findOption(f);if(d){if(d.required){let h=o.shift();h===void 0&&this.optionMissingArgument(d),this.emit(`option:${d.name()}`,h)}else if(d.optional){let h=null;o.length>0&&!s(o[0])&&(h=o.shift()),this.emit(`option:${d.name()}`,h)}else this.emit(`option:${d.name()}`);a=d.variadic?d:null;continue}}if(f.length>2&&f[0]==="-"&&f[1]!=="-"){let d=this._findOption(`-${f[1]}`);if(d){d.required||d.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${d.name()}`,f.slice(2)):(this.emit(`option:${d.name()}`),o.unshift(`-${f.slice(2)}`));continue}}if(/^--[^=]+=/.test(f)){let d=f.indexOf("="),h=this._findOption(f.slice(0,d));if(h&&(h.required||h.optional)){this.emit(`option:${h.name()}`,f.slice(d+1));continue}}if(s(f)&&(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(f)){r.push(f),o.length>0&&n.push(...o);break}else if(f===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(f),o.length>0&&r.push(...o);break}else if(this._defaultCommandName){n.push(f),o.length>0&&n.push(...o);break}}if(this._passThroughOptions){i.push(f),o.length>0&&i.push(...o);break}i.push(f)}return{operands:r,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let n=0;n<r;n++){let i=this.options[n].attributeName();e[i]=i===this._versionOptionName?this._version:this[i]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
16
+ - ${F}`;throw new Error(y)}else if(c.code==="EACCES")throw new Error(`'${s}' not executable`);if(!d)q.exit(1);else{let F=new Gr(1,"commander.executeSubCommandAsync","(error)");F.nestedError=c,d(F)}}),this.runningCommand=l}_dispatchSubcommand(e,r,n){let i=this._findCommand(e);i||this.help({error:!0});let o;return o=this._chainOrCallSubCommandHook(o,i,"preSubcommand"),o=this._chainOrCall(o,()=>{if(i._executableHandler)this._executeSubCommand(i,r.concat(n));else return i._parseCommand(r,n)}),o}_dispatchHelpCommand(e){e||this.help();let r=this._findCommand(e);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(e,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,r)=>{e.required&&this.args[r]==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=(n,i,o)=>{let s=i;if(i!==null&&n.parseArg){let a=`error: command-argument value '${i}' is invalid for argument '${n.name()}'.`;s=this._callParseArg(n,i,o,a)}return s};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((n,i)=>{let o=n.defaultValue;n.variadic?i<this.args.length?(o=this.args.slice(i),n.parseArg&&(o=o.reduce((s,a)=>e(n,a,s),n.defaultValue))):o===void 0&&(o=[]):i<this.args.length&&(o=this.args[i],n.parseArg&&(o=e(n,o,n.defaultValue))),r[i]=o}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let n=e,i=[];return this._getCommandAndAncestors().reverse().filter(o=>o._lifeCycleHooks[r]!==void 0).forEach(o=>{o._lifeCycleHooks[r].forEach(s=>{i.push({hookedCommand:o,callback:s})})}),r==="postAction"&&i.reverse(),i.forEach(o=>{n=this._chainOrCall(n,()=>o.callback(o.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,r,n){let i=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(o=>{i=this._chainOrCall(i,()=>o(this,r))}),i}_parseCommand(e,r){let n=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),r=n.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName)return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return vi(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),vi(this,n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},o=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let s;return s=this._chainOrCallHooks(s,"preAction"),s=this._chainOrCall(s,()=>this._actionHandler(this.processedArgs)),this.parent&&(s=this._chainOrCall(s,()=>{this.parent.emit(o,e,r)})),s=this._chainOrCallHooks(s,"postAction"),s}if(this.parent&&this.parent.listenerCount(o))i(),this._processArguments(),this.parent.emit(o,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);this.listenerCount("command:*")?this.emit("command:*",e,r):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(r=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find(r=>r.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(n=>{let i=n.attributeName();return this.getOptionValue(i)===void 0?!1:this.getOptionValueSource(i)!=="default"});e.filter(n=>n.conflictsWith.length>0).forEach(n=>{let i=e.find(o=>n.conflictsWith.includes(o.attributeName()));i&&this._conflictingOption(n,i)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let r=[],n=[],i=r,o=e.slice();function s(l){return l.length>1&&l[0]==="-"}let a=null;for(;o.length;){let l=o.shift();if(l==="--"){i===n&&i.push(l),i.push(...o);break}if(a&&!s(l)){this.emit(`option:${a.name()}`,l);continue}if(a=null,s(l)){let d=this._findOption(l);if(d){if(d.required){let c=o.shift();c===void 0&&this.optionMissingArgument(d),this.emit(`option:${d.name()}`,c)}else if(d.optional){let c=null;o.length>0&&!s(o[0])&&(c=o.shift()),this.emit(`option:${d.name()}`,c)}else this.emit(`option:${d.name()}`);a=d.variadic?d:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let d=this._findOption(`-${l[1]}`);if(d){d.required||d.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${d.name()}`,l.slice(2)):(this.emit(`option:${d.name()}`),o.unshift(`-${l.slice(2)}`));continue}}if(/^--[^=]+=/.test(l)){let d=l.indexOf("="),c=this._findOption(l.slice(0,d));if(c&&(c.required||c.optional)){this.emit(`option:${c.name()}`,l.slice(d+1));continue}}if(s(l)&&(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(l)){r.push(l),o.length>0&&n.push(...o);break}else if(l===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(l),o.length>0&&r.push(...o);break}else if(this._defaultCommandName){n.push(l),o.length>0&&n.push(...o);break}}if(this._passThroughOptions){i.push(l),o.length>0&&i.push(...o);break}i.push(l)}return{operands:r,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let n=0;n<r;n++){let i=this.options[n].attributeName();e[i]=i===this._versionOptionName?this._version:this[i]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
17
17
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
18
18
  `):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
19
- `),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,o=n.code||"commander.error";this._exit(i,o,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in q.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,q.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new da(this.options),r=n=>this.getOptionValue(n)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(n));this.options.filter(n=>n.implied!==void 0&&r(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(n=>{Object.keys(n.implied).filter(i=>!r(i)).forEach(i=>{this.setOptionValueWithSource(i,n.implied[i],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let n=s=>{let a=s.attributeName(),f=this.getOptionValue(a),d=this.options.find(F=>F.negate&&a===F.attributeName()),h=this.options.find(F=>!F.negate&&a===F.attributeName());return d&&(d.presetArg===void 0&&f===!1||d.presetArg!==void 0&&f===d.presetArg)?d:h||s},i=s=>{let a=n(s),f=a.attributeName();return this.getOptionValueSource(f)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},o=`error: ${i(e)} cannot be used with ${i(r)}`;this.error(o,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],o=this;do{let s=o.createHelp().visibleOptions(o).filter(a=>a.long).map(a=>a.long);i=i.concat(s),o=o.parent}while(o&&!o._enablePositionalOptions);r=Fi(e,i)}let n=`error: unknown option '${e}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,n=r===1?"":"s",o=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(o,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(o=>{i.push(o.name()),o.alias()&&i.push(o.alias())}),r=Fi(e,i)}let n=`error: unknown command '${e}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(e,r,n){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",n=n||"output the version number";let i=this.createOption(r,n);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
20
- `),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(n=>ca(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=ve.basename(e,ve.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(e){e=e||{};let r={error:!!e.error},n;return r.error?n=i=>this._outputConfiguration.writeErr(i):n=i=>this._outputConfiguration.writeOut(i),r.write=e.write||n,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let n=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(o=>o.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation(n);if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this._helpLongFlag&&this.emit(this._helpLongFlag),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(o=>o.emit("afterAllHelp",n))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let n=Da(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e);let r=q.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.
19
+ `),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,o=n.code||"commander.error";this._exit(i,o,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in q.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,q.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new Ea(this.options),r=n=>this.getOptionValue(n)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(n));this.options.filter(n=>n.implied!==void 0&&r(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(n=>{Object.keys(n.implied).filter(i=>!r(i)).forEach(i=>{this.setOptionValueWithSource(i,n.implied[i],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let n=s=>{let a=s.attributeName(),l=this.getOptionValue(a),d=this.options.find(F=>F.negate&&a===F.attributeName()),c=this.options.find(F=>!F.negate&&a===F.attributeName());return d&&(d.presetArg===void 0&&l===!1||d.presetArg!==void 0&&l===d.presetArg)?d:c||s},i=s=>{let a=n(s),l=a.attributeName();return this.getOptionValueSource(l)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},o=`error: ${i(e)} cannot be used with ${i(r)}`;this.error(o,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],o=this;do{let s=o.createHelp().visibleOptions(o).filter(a=>a.long).map(a=>a.long);i=i.concat(s),o=o.parent}while(o&&!o._enablePositionalOptions);r=xi(e,i)}let n=`error: unknown option '${e}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,n=r===1?"":"s",o=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(o,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(o=>{i.push(o.name()),o.alias()&&i.push(o.alias())}),r=xi(e,i)}let n=`error: unknown command '${e}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(e,r,n){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",n=n||"output the version number";let i=this.createOption(r,n);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
20
+ `),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(n=>pa(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=Se.basename(e,Se.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(e){e=e||{};let r={error:!!e.error},n;return r.error?n=i=>this._outputConfiguration.writeErr(i):n=i=>this._outputConfiguration.writeOut(i),r.write=e.write||n,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let n=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(o=>o.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation(n);if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this._helpLongFlag&&this.emit(this._helpLongFlag),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(o=>o.emit("afterAllHelp",n))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let n=ga(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e);let r=q.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.
21
21
  Expecting one of '${n.join("', '")}'`);let i=`${e}Help`;return this.on(i,o=>{let s;typeof r=="function"?s=r({error:o.error,command:o.command}):s=r,s&&o.write(`${s}
22
- `)}),this}};function _i(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Ci(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",o;return(o=e.match(/^(--inspect(-brk)?)$/))!==null?r=o[1]:(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=o[1],/^\d+$/.test(o[3])?i=o[3]:n=o[3]):(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=o[1],n=o[3],i=o[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}yi.Command=qr});var Si=S((pe,bi)=>{"use strict";D();var{Argument:pa}=jt(),{Command:vi}=xi(),{CommanderError:ma,InvalidArgumentError:wi}=mt(),{Help:ga}=Pr(),{Option:Ea}=Hr();pe=bi.exports=new vi;pe.program=pe;pe.Command=vi;pe.Option=Ea;pe.Argument=pa;pe.Help=ga;pe.CommanderError=ma;pe.InvalidArgumentError=wi;pe.InvalidOptionArgumentError=wi});var Gi=S((Kh,Xr)=>{"use strict";D();var Wi=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Xr.exports=Wi;Xr.exports.default=Wi});var Zi=S((Jh,zt)=>{"use strict";D();var La=Gi(),Gt=new WeakMap,zi=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",o=function(...s){if(Gt.set(o,++n),n===1)r=t.apply(this,s),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return La(o,t),Gt.set(o,n),o};zt.exports=zi;zt.exports.default=zi;zt.exports.callCount=t=>{if(!Gt.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Gt.get(t)}});var Yi=S((eD,Zt)=>{"use strict";D();Zt.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Zt.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Zt.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var en=S((rD,it)=>{"use strict";D();var z=global.process,He=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};He(z)?(Ki=require("assert"),rt=Yi(),Xi=/^win/i.test(z.platform),_t=require("events"),typeof _t!="function"&&(_t=_t.EventEmitter),z.__signal_exit_emitter__?ne=z.__signal_exit_emitter__:(ne=z.__signal_exit_emitter__=new _t,ne.count=0,ne.emitted={}),ne.infinite||(ne.setMaxListeners(1/0),ne.infinite=!0),it.exports=function(t,e){if(!He(global.process))return function(){};Ki.equal(typeof t,"function","a callback must be provided for exit handler"),nt===!1&&Jr();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){ne.removeListener(r,t),ne.listeners("exit").length===0&&ne.listeners("afterexit").length===0&&Yt()};return ne.on(r,t),n},Yt=function(){!nt||!He(global.process)||(nt=!1,rt.forEach(function(e){try{z.removeListener(e,Kt[e])}catch{}}),z.emit=Xt,z.reallyExit=Qr,ne.count-=1)},it.exports.unload=Yt,je=function(e,r,n){ne.emitted[e]||(ne.emitted[e]=!0,ne.emit(e,r,n))},Kt={},rt.forEach(function(t){Kt[t]=function(){if(He(global.process)){var r=z.listeners(t);r.length===ne.count&&(Yt(),je("exit",null,t),je("afterexit",null,t),Xi&&t==="SIGHUP"&&(t="SIGINT"),z.kill(z.pid,t))}}}),it.exports.signals=function(){return rt},nt=!1,Jr=function(){nt||!He(global.process)||(nt=!0,ne.count+=1,rt=rt.filter(function(e){try{return z.on(e,Kt[e]),!0}catch{return!1}}),z.emit=Qi,z.reallyExit=Ji)},it.exports.load=Jr,Qr=z.reallyExit,Ji=function(e){He(global.process)&&(z.exitCode=e||0,je("exit",z.exitCode,null),je("afterexit",z.exitCode,null),Qr.call(z,z.exitCode))},Xt=z.emit,Qi=function(e,r){if(e==="exit"&&He(global.process)){r!==void 0&&(z.exitCode=r);var n=Xt.apply(this,arguments);return je("exit",z.exitCode,null),je("afterexit",z.exitCode,null),n}else return Xt.apply(this,arguments)}):it.exports=function(){return function(){}};var Ki,rt,Xi,_t,ne,Yt,je,Kt,nt,Jr,Qr,Ji,Xt,Qi});var io=S((lD,Ma)=>{Ma.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var nn=S((fD,so)=>{"use strict";D();var Qt=Object.assign({},io()),oo=Object.keys(Qt);Object.defineProperty(Qt,"random",{get(){let t=Math.floor(Math.random()*oo.length),e=oo[t];return Qt[e]}});so.exports=Qt});var ao=S((xD,sn)=>{"use strict";D();var Te={};typeof sn>"u"?window.eastasianwidth=Te:sn.exports=Te;Te.eastAsianWidth=function(t){var e=t.charCodeAt(0),r=t.length==2?t.charCodeAt(1):0,n=e;return 55296<=e&&e<=56319&&56320<=r&&r<=57343&&(e&=1023,r&=1023,n=e<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":n==8361||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||n==172||n==175||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":n==161||n==164||167<=n&&n<=168||n==170||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||n==198||n==208||215<=n&&n<=216||222<=n&&n<=225||n==230||232<=n&&n<=234||236<=n&&n<=237||n==240||242<=n&&n<=243||247<=n&&n<=250||n==252||n==254||n==257||n==273||n==275||n==283||294<=n&&n<=295||n==299||305<=n&&n<=307||n==312||319<=n&&n<=322||n==324||328<=n&&n<=331||n==333||338<=n&&n<=339||358<=n&&n<=359||n==363||n==462||n==464||n==466||n==468||n==470||n==472||n==474||n==476||n==593||n==609||n==708||n==711||713<=n&&n<=715||n==717||n==720||728<=n&&n<=731||n==733||n==735||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||n==1025||1040<=n&&n<=1103||n==1105||n==8208||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||n==8240||8242<=n&&n<=8243||n==8245||n==8251||n==8254||n==8308||n==8319||8321<=n&&n<=8324||n==8364||n==8451||n==8453||n==8457||n==8467||n==8470||8481<=n&&n<=8482||n==8486||n==8491||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||n==8585||8592<=n&&n<=8601||8632<=n&&n<=8633||n==8658||n==8660||n==8679||n==8704||8706<=n&&n<=8707||8711<=n&&n<=8712||n==8715||n==8719||n==8721||n==8725||n==8730||8733<=n&&n<=8736||n==8739||n==8741||8743<=n&&n<=8748||n==8750||8756<=n&&n<=8759||8764<=n&&n<=8765||n==8776||n==8780||n==8786||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||n==8853||n==8857||n==8869||n==8895||n==8978||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||n==9675||9678<=n&&n<=9681||9698<=n&&n<=9701||n==9711||9733<=n&&n<=9734||n==9737||9742<=n&&n<=9743||9748<=n&&n<=9749||n==9756||n==9758||n==9792||n==9794||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||n==9839||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||n==9955||9960<=n&&n<=9983||n==10045||n==10071||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||n==65533||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"};Te.characterLength=function(t){var e=this.eastAsianWidth(t);return e=="F"||e=="W"||e=="A"?2:1};function uo(t){return t.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}Te.length=function(t){for(var e=uo(t),r=0,n=0;n<e.length;n++)r=r+this.characterLength(e[n]);return r};Te.slice=function(t,e,r){textLen=Te.length(t),e=e||0,r=r||1,e<0&&(e=textLen+e),r<0&&(r=textLen+r);for(var n="",i=0,o=uo(t),s=0;s<o.length;s++){var a=o[s],f=Te.length(a);if(i>=e-(f==2?1:0))if(i+f<=r)n+=a;else break;i+=f}return n}});var ln=S((RD,co)=>{"use strict";D();co.exports=require("stream")});var Eo=S((ND,go)=>{"use strict";D();function ho(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Do(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ho(Object(r),!0).forEach(function(n){ja(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ho(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ja(t,e,r){return e=mo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Va(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function po(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mo(n.key),n)}}function $a(t,e,r){return e&&po(t.prototype,e),r&&po(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function mo(t){var e=qa(t,"string");return typeof e=="symbol"?e:String(e)}function qa(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Wa=require("buffer"),er=Wa.Buffer,Ga=require("util"),fn=Ga.inspect,za=fn&&fn.custom||"inspect";function Za(t,e,r){er.prototype.copy.call(t,e,r)}go.exports=(function(){function t(){Va(this,t),this.head=null,this.tail=null,this.length=0}return $a(t,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return er.alloc(0);for(var n=er.allocUnsafe(r>>>0),i=this.head,o=0;i;)Za(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,o=n.data;for(r-=o.length;n=n.next;){var s=n.data,a=r>s.length?s.length:r;if(a===s.length?o+=s:o+=s.slice(0,r),r-=a,r===0){a===s.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(a));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(r){var n=er.allocUnsafe(r),i=this.head,o=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var s=i.data,a=r>s.length?s.length:r;if(s.copy(n,n.length-r,0,a),r-=a,r===0){a===s.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(a));break}++o}return this.length-=o,n}},{key:za,value:function(r,n){return fn(this,Do(Do({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var hn=S((PD,_o)=>{"use strict";D();function Ya(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(cn,this,t)):process.nextTick(cn,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(o){!e&&o?r._writableState?r._writableState.errorEmitted?process.nextTick(tr,r):(r._writableState.errorEmitted=!0,process.nextTick(Fo,r,o)):process.nextTick(Fo,r,o):e?(process.nextTick(tr,r),e(o)):process.nextTick(tr,r)}),this)}function Fo(t,e){cn(t,e),tr(t)}function tr(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Ka(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function cn(t,e){t.emit("error",e)}function Xa(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}_o.exports={destroy:Ya,undestroy:Ka,errorOrDestroy:Xa}});var Be=S((kD,xo)=>{"use strict";D();var yo={};function ce(t,e,r){r||(r=Error);function n(o,s,a){return typeof e=="string"?e:e(o,s,a)}class i extends r{constructor(s,a,f){super(n(s,a,f))}}i.prototype.name=r.name,i.prototype.code=t,yo[t]=i}function Co(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(n=>String(n)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function Ja(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function Qa(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function el(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}ce("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);ce("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&Ja(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(Qa(t," argument"))i=`The ${t} ${n} ${Co(e,"type")}`;else{let o=el(t,".")?"property":"argument";i=`The "${t}" ${o} ${n} ${Co(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);ce("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");ce("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});ce("ERR_STREAM_PREMATURE_CLOSE","Premature close");ce("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});ce("ERR_MULTIPLE_CALLBACK","Callback called multiple times");ce("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");ce("ERR_STREAM_WRITE_AFTER_END","write after end");ce("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ce("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);ce("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");xo.exports.codes=yo});var Dn=S((jD,vo)=>{"use strict";D();var tl=Be().codes.ERR_INVALID_OPT_VALUE;function rl(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function nl(t,e,r,n){var i=rl(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?r:"highWaterMark";throw new tl(o,i)}return Math.floor(i)}return t.objectMode?16:16*1024}vo.exports={getHighWaterMark:nl}});var wo=S(($D,dn)=>{"use strict";D();typeof Object.create=="function"?dn.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:dn.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Ve=S((WD,mn)=>{"use strict";D();try{if(pn=require("util"),typeof pn.inherits!="function")throw"";mn.exports=pn.inherits}catch{mn.exports=wo()}var pn});var So=S((zD,bo)=>{"use strict";D();bo.exports=require("util").deprecate});var Fn=S((YD,Ro)=>{"use strict";D();Ro.exports=J;function Oo(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Tl(e,t)}}var st;J.WritableState=wt;var il={deprecate:So()},To=ln(),nr=require("buffer").Buffer,ol=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function sl(t){return nr.from(t)}function ul(t){return nr.isBuffer(t)||t instanceof ol}var En=hn(),al=Dn(),ll=al.getHighWaterMark,Ie=Be().codes,fl=Ie.ERR_INVALID_ARG_TYPE,cl=Ie.ERR_METHOD_NOT_IMPLEMENTED,hl=Ie.ERR_MULTIPLE_CALLBACK,Dl=Ie.ERR_STREAM_CANNOT_PIPE,dl=Ie.ERR_STREAM_DESTROYED,pl=Ie.ERR_STREAM_NULL_VALUES,ml=Ie.ERR_STREAM_WRITE_AFTER_END,gl=Ie.ERR_UNKNOWN_ENCODING,ut=En.errorOrDestroy;Ve()(J,To);function El(){}function wt(t,e,r){st=st||$e(),t=t||{},typeof r!="boolean"&&(r=e instanceof st),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=ll(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){wl(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Oo(this)}wt.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(wt.prototype,"buffer",{get:il.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var rr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(rr=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(e){return rr.call(this,e)?!0:this!==J?!1:e&&e._writableState instanceof wt}})):rr=function(e){return e instanceof this};function J(t){st=st||$e();var e=this instanceof st;if(!e&&!rr.call(J,this))return new J(t);this._writableState=new wt(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),To.call(this)}J.prototype.pipe=function(){ut(this,new Dl)};function Fl(t,e){var r=new ml;ut(t,r),process.nextTick(e,r)}function _l(t,e,r,n){var i;return r===null?i=new pl:typeof r!="string"&&!e.objectMode&&(i=new fl("chunk",["string","Buffer"],r)),i?(ut(t,i),process.nextTick(n,i),!1):!0}J.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=!n.objectMode&&ul(t);return o&&!nr.isBuffer(t)&&(t=sl(t)),typeof e=="function"&&(r=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=El),n.ending?Fl(this,r):(o||_l(this,n,t,r))&&(n.pendingcb++,i=yl(this,n,o,t,e,r)),i};J.prototype.cork=function(){this._writableState.corked++};J.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Bo(this,t))};J.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new gl(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Cl(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=nr.from(e,r)),e}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function yl(t,e,r,n,i,o){if(!r){var s=Cl(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var f=e.length<e.highWaterMark;if(f||(e.needDrain=!0),e.writing||e.corked){var d=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},d?d.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else gn(t,e,!1,a,n,i,o);return f}function gn(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new dl("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function xl(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(vt,t,e),t._writableState.errorEmitted=!0,ut(t,n)):(i(n),t._writableState.errorEmitted=!0,ut(t,n),vt(t,e))}function vl(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function wl(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new hl;if(vl(r),e)xl(t,r,n,e,i);else{var o=Io(r)||t.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Bo(t,r),n?process.nextTick(Ao,t,r,o,i):Ao(t,r,o,i)}}function Ao(t,e,r,n){r||bl(t,e),e.pendingcb--,n(),vt(t,e)}function bl(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Bo(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,a=!0;r;)i[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;i.allBuffers=a,gn(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new Oo(e),e.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,d=r.encoding,h=r.callback,F=e.objectMode?1:f.length;if(gn(t,e,!1,F,f,d,h),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}J.prototype._write=function(t,e,r){r(new cl("_write()"))};J.prototype._writev=null;J.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||Ol(this,n,r),this};Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Io(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Sl(t,e){t._final(function(r){e.pendingcb--,r&&ut(t,r),e.prefinished=!0,t.emit("prefinish"),vt(t,e)})}function Al(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Sl,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function vt(t,e){var r=Io(e);if(r&&(Al(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function Ol(t,e,r){e.ending=!0,vt(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Tl(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});J.prototype.destroy=En.destroy;J.prototype._undestroy=En.undestroy;J.prototype._destroy=function(t,e){e(t)}});var $e=S((XD,No)=>{"use strict";D();var Bl=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};No.exports=Ce;var Lo=yn(),Cn=Fn();Ve()(Ce,Lo);for(_n=Bl(Cn.prototype),ir=0;ir<_n.length;ir++)or=_n[ir],Ce.prototype[or]||(Ce.prototype[or]=Cn.prototype[or]);var _n,or,ir;function Ce(t){if(!(this instanceof Ce))return new Ce(t);Lo.call(this,t),Cn.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Il)))}Object.defineProperty(Ce.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Ce.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Ce.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Il(){this._writableState.ended||process.nextTick(Rl,this)}function Rl(t){t.end()}Object.defineProperty(Ce.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var Uo=S((xn,Po)=>{"use strict";D();var sr=require("buffer"),ye=sr.Buffer;function Mo(t,e){for(var r in t)e[r]=t[r]}ye.from&&ye.alloc&&ye.allocUnsafe&&ye.allocUnsafeSlow?Po.exports=sr:(Mo(sr,xn),xn.Buffer=qe);function qe(t,e,r){return ye(t,e,r)}qe.prototype=Object.create(ye.prototype);Mo(ye,qe);qe.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ye(t,e,r)};qe.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=ye(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};qe.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ye(t)};qe.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return sr.SlowBuffer(t)}});var bn=S(Ho=>{"use strict";D();var wn=Uo().Buffer,ko=wn.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Ll(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function Nl(t){var e=Ll(t);if(typeof e!="string"&&(wn.isEncoding===ko||!ko(t)))throw new Error("Unknown encoding: "+t);return e||t}Ho.StringDecoder=bt;function bt(t){this.encoding=Nl(t);var e;switch(this.encoding){case"utf16le":this.text=jl,this.end=Vl,e=4;break;case"utf8":this.fillLast=Ul,e=4;break;case"base64":this.text=$l,this.end=ql,e=3;break;default:this.write=Wl,this.end=Gl;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=wn.allocUnsafe(e)}bt.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};bt.prototype.end=Hl;bt.prototype.text=kl;bt.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function vn(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Ml(t,e,r){var n=e.length-1;if(n<r)return 0;var i=vn(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=vn(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=vn(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function Pl(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function Ul(t){var e=this.lastTotal-this.lastNeed,r=Pl(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function kl(t,e){var r=Ml(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function Hl(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function jl(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Vl(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function $l(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function ql(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Wl(t){return t.toString(this.encoding)}function Gl(t){return t&&t.length?this.write(t):""}});var ur=S((rd,$o)=>{"use strict";D();var jo=Be().codes.ERR_STREAM_PREMATURE_CLOSE;function zl(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function Zl(){}function Yl(t){return t.setHeader&&typeof t.abort=="function"}function Vo(t,e,r){if(typeof e=="function")return Vo(t,null,e);e||(e={}),r=zl(r||Zl);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,o=function(){t.writable||a()},s=t._writableState&&t._writableState.finished,a=function(){i=!1,s=!0,n||r.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){n=!1,f=!0,i||r.call(t)},h=function(c){r.call(t,c)},F=function(){var c;if(n&&!f)return(!t._readableState||!t._readableState.ended)&&(c=new jo),r.call(t,c);if(i&&!s)return(!t._writableState||!t._writableState.ended)&&(c=new jo),r.call(t,c)},y=function(){t.req.on("finish",a)};return Yl(t)?(t.on("complete",a),t.on("abort",F),t.req?y():t.on("request",y)):i&&!t._writableState&&(t.on("end",o),t.on("close",o)),t.on("end",d),t.on("finish",a),e.error!==!1&&t.on("error",h),t.on("close",F),function(){t.removeListener("complete",a),t.removeListener("abort",F),t.removeListener("request",y),t.req&&t.req.removeListener("finish",a),t.removeListener("end",o),t.removeListener("close",o),t.removeListener("finish",a),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",F)}}$o.exports=Vo});var Wo=S((id,qo)=>{"use strict";D();var ar;function Re(t,e,r){return e=Kl(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kl(t){var e=Xl(t,"string");return typeof e=="symbol"?e:String(e)}function Xl(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Jl=ur(),Le=Symbol("lastResolve"),We=Symbol("lastReject"),St=Symbol("error"),lr=Symbol("ended"),Ge=Symbol("lastPromise"),Sn=Symbol("handlePromise"),ze=Symbol("stream");function Ne(t,e){return{value:t,done:e}}function Ql(t){var e=t[Le];if(e!==null){var r=t[ze].read();r!==null&&(t[Ge]=null,t[Le]=null,t[We]=null,e(Ne(r,!1)))}}function ef(t){process.nextTick(Ql,t)}function tf(t,e){return function(r,n){t.then(function(){if(e[lr]){r(Ne(void 0,!0));return}e[Sn](r,n)},n)}}var rf=Object.getPrototypeOf(function(){}),nf=Object.setPrototypeOf((ar={get stream(){return this[ze]},next:function(){var e=this,r=this[St];if(r!==null)return Promise.reject(r);if(this[lr])return Promise.resolve(Ne(void 0,!0));if(this[ze].destroyed)return new Promise(function(s,a){process.nextTick(function(){e[St]?a(e[St]):s(Ne(void 0,!0))})});var n=this[Ge],i;if(n)i=new Promise(tf(n,this));else{var o=this[ze].read();if(o!==null)return Promise.resolve(Ne(o,!1));i=new Promise(this[Sn])}return this[Ge]=i,i}},Re(ar,Symbol.asyncIterator,function(){return this}),Re(ar,"return",function(){var e=this;return new Promise(function(r,n){e[ze].destroy(null,function(i){if(i){n(i);return}r(Ne(void 0,!0))})})}),ar),rf),of=function(e){var r,n=Object.create(nf,(r={},Re(r,ze,{value:e,writable:!0}),Re(r,Le,{value:null,writable:!0}),Re(r,We,{value:null,writable:!0}),Re(r,St,{value:null,writable:!0}),Re(r,lr,{value:e._readableState.endEmitted,writable:!0}),Re(r,Sn,{value:function(o,s){var a=n[ze].read();a?(n[Ge]=null,n[Le]=null,n[We]=null,o(Ne(a,!1))):(n[Le]=o,n[We]=s)},writable:!0}),r));return n[Ge]=null,Jl(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[We];o!==null&&(n[Ge]=null,n[Le]=null,n[We]=null,o(i)),n[St]=i;return}var s=n[Le];s!==null&&(n[Ge]=null,n[Le]=null,n[We]=null,s(Ne(void 0,!0))),n[lr]=!0}),e.on("readable",ef.bind(null,n)),n};qo.exports=of});var Yo=S((sd,Zo)=>{"use strict";D();function Go(t,e,r,n,i,o,s){try{var a=t[o](s),f=a.value}catch(d){r(d);return}a.done?e(f):Promise.resolve(f).then(n,i)}function sf(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function s(f){Go(o,n,i,s,a,"next",f)}function a(f){Go(o,n,i,s,a,"throw",f)}s(void 0)})}}function zo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function uf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zo(Object(r),!0).forEach(function(n){af(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function af(t,e,r){return e=lf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lf(t){var e=ff(t,"string");return typeof e=="symbol"?e:String(e)}function ff(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var cf=Be().codes.ERR_INVALID_ARG_TYPE;function hf(t,e,r){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new cf("iterable",["Iterable"],e);var i=new t(uf({objectMode:!0},r)),o=!1;i._read=function(){o||(o=!0,s())};function s(){return a.apply(this,arguments)}function a(){return a=sf(function*(){try{var f=yield n.next(),d=f.value,h=f.done;h?i.push(null):i.push(yield d)?s():o=!1}catch(F){i.destroy(F)}}),a.apply(this,arguments)}return i}Zo.exports=hf});var yn=S((ld,os)=>{"use strict";D();os.exports=L;var at;L.ReadableState=Qo;var ad=require("events").EventEmitter,Jo=function(e,r){return e.listeners(r).length},Ot=ln(),fr=require("buffer").Buffer,Df=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function df(t){return fr.from(t)}function pf(t){return fr.isBuffer(t)||t instanceof Df}var An=require("util"),B;An&&An.debuglog?B=An.debuglog("stream"):B=function(){};var mf=Eo(),Nn=hn(),gf=Dn(),Ef=gf.getHighWaterMark,cr=Be().codes,Ff=cr.ERR_INVALID_ARG_TYPE,_f=cr.ERR_STREAM_PUSH_AFTER_EOF,Cf=cr.ERR_METHOD_NOT_IMPLEMENTED,yf=cr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,lt,On,Tn;Ve()(L,Ot);var At=Nn.errorOrDestroy,Bn=["error","close","destroy","pause","resume"];function xf(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Qo(t,e,r){at=at||$e(),t=t||{},typeof r!="boolean"&&(r=e instanceof at),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Ef(this,t,"readableHighWaterMark",r),this.buffer=new mf,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(lt||(lt=bn().StringDecoder),this.decoder=new lt(t.encoding),this.encoding=t.encoding)}function L(t){if(at=at||$e(),!(this instanceof L))return new L(t);var e=this instanceof at;this._readableState=new Qo(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Ot.call(this)}Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});L.prototype.destroy=Nn.destroy;L.prototype._undestroy=Nn.undestroy;L.prototype._destroy=function(t,e){e(t)};L.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=fr.from(t,e),e=""),n=!0),es(this,t,e,!1,n)};L.prototype.unshift=function(t){return es(this,t,null,!0,!1)};function es(t,e,r,n,i){B("readableAddChunk",e);var o=t._readableState;if(e===null)o.reading=!1,bf(t,o);else{var s;if(i||(s=vf(o,e)),s)At(t,s);else if(o.objectMode||e&&e.length>0)if(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==fr.prototype&&(e=df(e)),n)o.endEmitted?At(t,new yf):In(t,o,e,!0);else if(o.ended)At(t,new _f);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||e.length!==0?In(t,o,e,!1):Ln(t,o)):In(t,o,e,!1)}else n||(o.reading=!1,Ln(t,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function In(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&hr(t)),Ln(t,e)}function vf(t,e){var r;return!pf(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new Ff("chunk",["string","Buffer","Uint8Array"],e)),r}L.prototype.isPaused=function(){return this._readableState.flowing===!1};L.prototype.setEncoding=function(t){lt||(lt=bn().StringDecoder);var e=new lt(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Ko=1073741824;function wf(t){return t>=Ko?t=Ko:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Xo(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=wf(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}L.prototype.read=function(t){B("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return B("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Rn(this):hr(this),null;if(t=Xo(t,e),t===0&&e.ended)return e.length===0&&Rn(this),null;var n=e.needReadable;B("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,B("length less than watermark",n)),e.ended||e.reading?(n=!1,B("reading or ended",n)):n&&(B("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Xo(r,e)));var i;return t>0?i=ns(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Rn(this)),i!==null&&this.emit("data",i),i};function bf(t,e){if(B("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?hr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,ts(t)))}}function hr(t){var e=t._readableState;B("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(B("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(ts,t))}function ts(t){var e=t._readableState;B("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Mn(t)}function Ln(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(Sf,t,e))}function Sf(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(B("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}L.prototype._read=function(t){At(this,new Cf("_read()"))};L.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,B("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,o=i?a:g;n.endEmitted?process.nextTick(o):r.once("end",o),t.on("unpipe",s);function s(p,m){B("onunpipe"),p===r&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,h())}function a(){B("onend"),t.end()}var f=Af(r);t.on("drain",f);var d=!1;function h(){B("cleanup"),t.removeListener("close",l),t.removeListener("finish",c),t.removeListener("drain",f),t.removeListener("error",y),t.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",g),r.removeListener("data",F),d=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&f()}r.on("data",F);function F(p){B("ondata");var m=t.write(p);B("dest.write",m),m===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&is(n.pipes,t)!==-1)&&!d&&(B("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function y(p){B("onerror",p),g(),t.removeListener("error",y),Jo(t,"error")===0&&At(t,p)}xf(t,"error",y);function l(){t.removeListener("finish",c),g()}t.once("close",l);function c(){B("onfinish"),t.removeListener("close",l),g()}t.once("finish",c);function g(){B("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(B("pipe resume"),r.resume()),t};function Af(t){return function(){var r=t._readableState;B("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Jo(t,"data")&&(r.flowing=!0,Mn(t))}}L.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=is(e.pipes,t);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};L.prototype.on=function(t,e){var r=Ot.prototype.on.call(this,t,e),n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,B("on readable",n.length,n.reading),n.length?hr(this):n.reading||process.nextTick(Of,this)),r};L.prototype.addListener=L.prototype.on;L.prototype.removeListener=function(t,e){var r=Ot.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(rs,this),r};L.prototype.removeAllListeners=function(t){var e=Ot.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(rs,this),e};function rs(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function Of(t){B("readable nexttick read 0"),t.read(0)}L.prototype.resume=function(){var t=this._readableState;return t.flowing||(B("resume"),t.flowing=!t.readableListening,Tf(this,t)),t.paused=!1,this};function Tf(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Bf,t,e))}function Bf(t,e){B("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Mn(t),e.flowing&&!e.reading&&t.read(0)}L.prototype.pause=function(){return B("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(B("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Mn(t){var e=t._readableState;for(B("flow",e.flowing);e.flowing&&t.read()!==null;);}L.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(B("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(B("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var a=e.push(s);a||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=(function(a){return function(){return t[a].apply(t,arguments)}})(i));for(var o=0;o<Bn.length;o++)t.on(Bn[o],this.emit.bind(this,Bn[o]));return this._read=function(s){B("wrapped _read",s),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(L.prototype[Symbol.asyncIterator]=function(){return On===void 0&&(On=Wo()),On(this)});Object.defineProperty(L.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(L.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(L.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});L._fromList=ns;Object.defineProperty(L.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ns(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Rn(t){var e=t._readableState;B("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(If,e,t))}function If(t,e){if(B("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(L.from=function(t,e){return Tn===void 0&&(Tn=Yo()),Tn(L,t,e)});function is(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var Pn=S((cd,us)=>{"use strict";D();us.exports=be;var Dr=Be().codes,Rf=Dr.ERR_METHOD_NOT_IMPLEMENTED,Lf=Dr.ERR_MULTIPLE_CALLBACK,Nf=Dr.ERR_TRANSFORM_ALREADY_TRANSFORMING,Mf=Dr.ERR_TRANSFORM_WITH_LENGTH_0,dr=$e();Ve()(be,dr);function Pf(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Lf);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function be(t){if(!(this instanceof be))return new be(t);dr.call(this,t),this._transformState={afterTransform:Pf.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Uf)}function Uf(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){ss(t,e,r)}):ss(this,null,null)}be.prototype.push=function(t,e){return this._transformState.needTransform=!1,dr.prototype.push.call(this,t,e)};be.prototype._transform=function(t,e,r){r(new Rf("_transform()"))};be.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};be.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};be.prototype._destroy=function(t,e){dr.prototype._destroy.call(this,t,function(r){e(r)})};function ss(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Mf;if(t._transformState.transforming)throw new Nf;return t.push(null)}});var fs=S((Dd,ls)=>{"use strict";D();ls.exports=Tt;var as=Pn();Ve()(Tt,as);function Tt(t){if(!(this instanceof Tt))return new Tt(t);as.call(this,t)}Tt.prototype._transform=function(t,e,r){r(null,t)}});var ps=S((pd,ds)=>{"use strict";D();var Un;function kf(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Ds=Be().codes,Hf=Ds.ERR_MISSING_ARGS,jf=Ds.ERR_STREAM_DESTROYED;function cs(t){if(t)throw t}function Vf(t){return t.setHeader&&typeof t.abort=="function"}function $f(t,e,r,n){n=kf(n);var i=!1;t.on("close",function(){i=!0}),Un===void 0&&(Un=ur()),Un(t,{readable:e,writable:r},function(s){if(s)return n(s);i=!0,n()});var o=!1;return function(s){if(!i&&!o){if(o=!0,Vf(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(s||new jf("pipe"))}}}function hs(t){t()}function qf(t,e){return t.pipe(e)}function Wf(t){return!t.length||typeof t[t.length-1]!="function"?cs:t.pop()}function Gf(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Wf(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Hf("streams");var i,o=e.map(function(s,a){var f=a<e.length-1,d=a>0;return $f(s,f,d,function(h){i||(i=h),h&&o.forEach(hs),!f&&(o.forEach(hs),n(i))})});return e.reduce(qf)}ds.exports=Gf});var ms=S((he,It)=>{"use strict";D();var Bt=require("stream");process.env.READABLE_STREAM==="disable"&&Bt?(It.exports=Bt.Readable,Object.assign(It.exports,Bt),It.exports.Stream=Bt):(he=It.exports=yn(),he.Stream=Bt||he,he.Readable=he,he.Writable=Fn(),he.Duplex=$e(),he.Transform=Pn(),he.PassThrough=fs(),he.finished=ur(),he.pipeline=ps())});var Fs=S((Ed,Es)=>{"use strict";D();var{Buffer:Ee}=require("buffer"),gs=Symbol.for("BufferList");function j(t){if(!(this instanceof j))return new j(t);j._init.call(this,t)}j._init=function(e){Object.defineProperty(this,gs,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};j.prototype._new=function(e){return new j(e)};j.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(e<i||n===this._bufs.length-1)return[n,e-r];r=i}};j.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let n=0;n<e;n++)r+=this._bufs[n].length;return r};j.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};j.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};j.prototype.copy=function(e,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return e||Ee.alloc(0);let o=!!e,s=this._offset(n),a=i-n,f=a,d=o&&r||0,h=s[1];if(n===0&&i===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:Ee.concat(this._bufs,this.length);for(let F=0;F<this._bufs.length;F++)this._bufs[F].copy(e,d),d+=this._bufs[F].length;return e}if(f<=this._bufs[s[0]].length-h)return o?this._bufs[s[0]].copy(e,r,h,h+f):this._bufs[s[0]].slice(h,h+f);o||(e=Ee.allocUnsafe(a));for(let F=s[0];F<this._bufs.length;F++){let y=this._bufs[F].length-h;if(f>y)this._bufs[F].copy(e,d,h),d+=y;else{this._bufs[F].copy(e,d,h,h+f),d+=y;break}f-=y,h&&(h=0)}return e.length>d?e.slice(0,d):e};j.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let n=this._offset(e),i=this._offset(r),o=this._bufs.slice(n[0],i[0]+1);return i[1]===0?o.pop():o[o.length-1]=o[o.length-1].slice(0,i[1]),n[1]!==0&&(o[0]=o[0].slice(n[1])),this._new(o)};j.prototype.toString=function(e,r,n){return this.slice(r,n).toString(e)};j.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};j.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};j.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(Ee.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let r=0;r<e.length;r++)this.append(e[r]);else if(this._isBufferList(e))for(let r=0;r<e._bufs.length;r++)this.append(e._bufs[r]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(Ee.from(e));return this};j.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};j.prototype.indexOf=function(t,e,r){if(r===void 0&&typeof e=="string"&&(r=e,e=void 0),typeof t=="function"||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof t=="number"?t=Ee.from([t]):typeof t=="string"?t=Ee.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=Ee.from(t.buffer,t.byteOffset,t.byteLength):Ee.isBuffer(t)||(t=Ee.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),t.length===0)return e>this.length?this.length:e;let n=this._offset(e),i=n[0],o=n[1];for(;i<this._bufs.length;i++){let s=this._bufs[i];for(;o<s.length;)if(s.length-o>=t.length){let f=s.indexOf(t,o);if(f!==-1)return this._reverseOffset([i,f]);o=s.length-t.length+1}else{let f=this._reverseOffset([i,o]);if(this._match(f,t))return f;o++}o=0}return-1};j.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0};(function(){let t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in t)(function(r){t[r]===null?j.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:j.prototype[r]=function(n=0){return this.slice(n,n+t[r])[r](0)}})(e)})();j.prototype._isBufferList=function(e){return e instanceof j||j.isBufferList(e)};j.isBufferList=function(e){return e!=null&&e[gs]};Es.exports=j});var _s=S((_d,pr)=>{"use strict";D();var kn=ms().Duplex,zf=Ve(),Rt=Fs();function ue(t){if(!(this instanceof ue))return new ue(t);if(typeof t=="function"){this._callback=t;let e=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",e)}),this.on("unpipe",function(n){n.removeListener("error",e)}),t=null}Rt._init.call(this,t),kn.call(this)}zf(ue,kn);Object.assign(ue.prototype,Rt.prototype);ue.prototype._new=function(e){return new ue(e)};ue.prototype._write=function(e,r,n){this._appendBuffer(e),typeof n=="function"&&n()};ue.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};ue.prototype.end=function(e){kn.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};ue.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};ue.prototype._isBufferList=function(e){return e instanceof ue||e instanceof Rt||ue.isBufferList(e)};ue.isBufferList=Rt.isBufferList;pr.exports=ue;pr.exports.BufferListStream=ue;pr.exports.BufferList=Rt});var Gn=S((Wd,As)=>{"use strict";D();As.exports={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24}});var gr=S(Ts=>{"use strict";D();var Os={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",DESCRIPTOR_NOT_EXIST:"No descriptor present",DESCRIPTOR_UNKNOWN:"Unknown descriptor format",DESCRIPTOR_FAULTY:"Descriptor data is malformed",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed {0}",FILE_IN_THE_WAY:"There is a file in the way: {0}",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",DISK_ENTRY_TOO_LARGE:"Number of disk entries is too large",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:'File not found: "{0}"',NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found",INVALID_PASS_PARAM:"Incompatible password parameter",WRONG_PASSWORD:"Wrong Password",COMMENT_TOO_LONG:"Comment is too long",EXTRA_FIELD_PARSE_ERROR:"Extra field parsing error"};function ec(t){return function(...e){return e.length&&(t=t.replace(/\{(\d)\}/g,(r,n)=>e[n]||"")),new Error("ADM-ZIP: "+t)}}for(let t of Object.keys(Os))Ts[t]=ec(Os[t])});var Ns=S((Yd,Ls)=>{"use strict";D();var tc=require("fs"),re=require("path"),Bs=Gn(),rc=gr(),nc=typeof process=="object"&&process.platform==="win32",Is=t=>typeof t=="object"&&t!==null,Rs=new Uint32Array(256).map((t,e)=>{for(let r=0;r<8;r++)(e&1)!==0?e=3988292384^e>>>1:e>>>=1;return e>>>0});function Q(t){this.sep=re.sep,this.fs=tc,Is(t)&&Is(t.fs)&&typeof t.fs.statSync=="function"&&(this.fs=t.fs)}Ls.exports=Q;Q.prototype.makeDir=function(t){let e=this;function r(n){let i=n.split(e.sep)[0];n.split(e.sep).forEach(function(o){if(!(!o||o.substr(-1,1)===":")){i+=e.sep+o;var s;try{s=e.fs.statSync(i)}catch{e.fs.mkdirSync(i)}if(s&&s.isFile())throw rc.FILE_IN_THE_WAY(`"${i}"`)}})}r(t)};Q.prototype.writeFileTo=function(t,e,r,n){let i=this;if(i.fs.existsSync(t)){if(!r)return!1;var o=i.fs.statSync(t);if(o.isDirectory())return!1}var s=re.dirname(t);i.fs.existsSync(s)||i.makeDir(s);var a;try{a=i.fs.openSync(t,"w",438)}catch{i.fs.chmodSync(t,438),a=i.fs.openSync(t,"w",438)}if(a)try{i.fs.writeSync(a,e,0,e.length,0)}finally{i.fs.closeSync(a)}return i.fs.chmodSync(t,n||438),!0};Q.prototype.writeFileToAsync=function(t,e,r,n,i){typeof n=="function"&&(i=n,n=void 0);let o=this;o.fs.exists(t,function(s){if(s&&!r)return i(!1);o.fs.stat(t,function(a,f){if(s&&f.isDirectory())return i(!1);var d=re.dirname(t);o.fs.exists(d,function(h){h||o.makeDir(d),o.fs.open(t,"w",438,function(F,y){F?o.fs.chmod(t,438,function(){o.fs.open(t,"w",438,function(l,c){o.fs.write(c,e,0,e.length,0,function(){o.fs.close(c,function(){o.fs.chmod(t,n||438,function(){i(!0)})})})})}):y?o.fs.write(y,e,0,e.length,0,function(){o.fs.close(y,function(){o.fs.chmod(t,n||438,function(){i(!0)})})}):o.fs.chmod(t,n||438,function(){i(!0)})})})})})};Q.prototype.findFiles=function(t){let e=this;function r(n,i,o){typeof i=="boolean"&&(o=i,i=void 0);let s=[];return e.fs.readdirSync(n).forEach(function(a){let f=re.join(n,a),d=e.fs.statSync(f);(!i||i.test(f))&&s.push(re.normalize(f)+(d.isDirectory()?e.sep:"")),d.isDirectory()&&o&&(s=s.concat(r(f,i,o)))}),s}return r(t,void 0,!0)};Q.prototype.findFilesAsync=function(t,e){let r=this,n=[];r.fs.readdir(t,function(i,o){if(i)return e(i);let s=o.length;if(!s)return e(null,n);o.forEach(function(a){a=re.join(t,a),r.fs.stat(a,function(f,d){if(f)return e(f);d&&(n.push(re.normalize(a)+(d.isDirectory()?r.sep:"")),d.isDirectory()?r.findFilesAsync(a,function(h,F){if(h)return e(h);n=n.concat(F),--s||e(null,n)}):--s||e(null,n))})})})};Q.prototype.getAttributes=function(){};Q.prototype.setAttributes=function(){};Q.crc32update=function(t,e){return Rs[(t^e)&255]^t>>>8};Q.crc32=function(t){typeof t=="string"&&(t=Buffer.from(t,"utf8"));let e=t.length,r=-1;for(let n=0;n<e;)r=Q.crc32update(r,t[n++]);return~r>>>0};Q.methodToString=function(t){switch(t){case Bs.STORED:return"STORED ("+t+")";case Bs.DEFLATED:return"DEFLATED ("+t+")";default:return"UNSUPPORTED ("+t+")"}};Q.canonical=function(t){if(!t)return"";let e=re.posix.normalize("/"+t.split("\\").join("/"));return re.join(".",e)};Q.zipnamefix=function(t){if(!t)return"";let e=re.posix.normalize("/"+t.split("\\").join("/"));return re.posix.join(".",e)};Q.findLast=function(t,e){if(!Array.isArray(t))throw new TypeError("arr is not array");let r=t.length>>>0;for(let n=r-1;n>=0;n--)if(e(t[n],n,t))return t[n]};Q.sanitize=function(t,e){t=re.resolve(re.normalize(t));for(var r=e.split("/"),n=0,i=r.length;n<i;n++){var o=re.normalize(re.join(t,r.slice(n,i).join(re.sep)));if(o.indexOf(t)===0)return o}return re.normalize(re.join(t,re.basename(e)))};Q.toBuffer=function(e,r){return Buffer.isBuffer(e)?e:e instanceof Uint8Array?Buffer.from(e):typeof e=="string"?r(e):Buffer.alloc(0)};Q.readBigUInt64LE=function(t,e){var r=Buffer.from(t.slice(e,e+8));return r.swap64(),parseInt(`0x${r.toString("hex")}`)};Q.fromDOS2Date=function(t){return new Date((t>>25&127)+1980,Math.max((t>>21&15)-1,0),Math.max(t>>16&31,1),t>>11&31,t>>5&63,(t&31)<<1)};Q.fromDate2DOS=function(t){let e=0,r=0;return t.getFullYear()>1979&&(e=(t.getFullYear()-1980&127)<<9|t.getMonth()+1<<5|t.getDate(),r=t.getHours()<<11|t.getMinutes()<<5|t.getSeconds()>>1),e<<16|r};Q.isWin=nc;Q.crcTable=Rs});var Ps=S((Xd,Ms)=>{"use strict";D();var ic=require("path");Ms.exports=function(t,{fs:e}){var r=t||"",n=o(),i=null;function o(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}return r&&e.existsSync(r)?(i=e.statSync(r),n.directory=i.isDirectory(),n.mtime=i.mtime,n.atime=i.atime,n.executable=(73&i.mode)!==0,n.readonly=(128&i.mode)===0,n.hidden=ic.basename(r)[0]==="."):console.warn("Invalid path: "+r),{get directory(){return n.directory},get readOnly(){return n.readonly},get hidden(){return n.hidden},get mtime(){return n.mtime},get atime(){return n.atime},get executable(){return n.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:r,isDirectory:n.directory,isReadOnly:n.readonly,isHidden:n.hidden,isExecutable:n.executable,mTime:n.mtime,aTime:n.atime}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}}});var ks=S((Qd,Us)=>{"use strict";D();Us.exports={efs:!0,encode:t=>Buffer.from(t,"utf8"),decode:t=>t.toString("utf8")}});var ht=S((t0,ct)=>{"use strict";D();ct.exports=Ns();ct.exports.Constants=Gn();ct.exports.Errors=gr();ct.exports.FileAttr=Ps();ct.exports.decoder=ks()});var js=S((n0,Hs)=>{"use strict";D();var Me=ht(),b=Me.Constants;Hs.exports=function(){var t=20,e=10,r=0,n=0,i=0,o=0,s=0,a=0,f=0,d=0,h=0,F=0,y=0,l=0,c=0;t|=Me.isWin?2560:768,r|=b.FLG_EFS;let g={extraLen:0},p=u=>Math.max(0,u)>>>0,m=u=>Math.max(0,u)&65535,C=u=>Math.max(0,u)&255;return i=Me.fromDate2DOS(new Date),{get made(){return t},set made(u){t=u},get version(){return e},set version(u){e=u},get flags(){return r},set flags(u){r=u},get flags_efs(){return(r&b.FLG_EFS)>0},set flags_efs(u){u?r|=b.FLG_EFS:r&=~b.FLG_EFS},get flags_desc(){return(r&b.FLG_DESC)>0},set flags_desc(u){u?r|=b.FLG_DESC:r&=~b.FLG_DESC},get method(){return n},set method(u){switch(u){case b.STORED:this.version=10;case b.DEFLATED:default:this.version=20}n=u},get time(){return Me.fromDOS2Date(this.timeval)},set time(u){this.timeval=Me.fromDate2DOS(u)},get timeval(){return i},set timeval(u){i=p(u)},get timeHighByte(){return C(i>>>8)},get crc(){return o},set crc(u){o=p(u)},get compressedSize(){return s},set compressedSize(u){s=p(u)},get size(){return a},set size(u){a=p(u)},get fileNameLength(){return f},set fileNameLength(u){f=u},get extraLength(){return d},set extraLength(u){d=u},get extraLocalLength(){return g.extraLen},set extraLocalLength(u){g.extraLen=u},get commentLength(){return h},set commentLength(u){h=u},get diskNumStart(){return F},set diskNumStart(u){F=p(u)},get inAttr(){return y},set inAttr(u){y=p(u)},get attr(){return l},set attr(u){l=p(u)},get fileAttr(){return(l||0)>>16&4095},get offset(){return c},set offset(u){c=p(u)},get encrypted(){return(r&b.FLG_ENC)===b.FLG_ENC},get centralHeaderSize(){return b.CENHDR+f+d+h},get realDataOffset(){return c+b.LOCHDR+g.fnameLen+g.extraLen},get localHeader(){return g},loadLocalHeaderFromBinary:function(u){var E=u.slice(c,c+b.LOCHDR);if(E.readUInt32LE(0)!==b.LOCSIG)throw Me.Errors.INVALID_LOC();g.version=E.readUInt16LE(b.LOCVER),g.flags=E.readUInt16LE(b.LOCFLG),g.method=E.readUInt16LE(b.LOCHOW),g.time=E.readUInt32LE(b.LOCTIM),g.crc=E.readUInt32LE(b.LOCCRC),g.compressedSize=E.readUInt32LE(b.LOCSIZ),g.size=E.readUInt32LE(b.LOCLEN),g.fnameLen=E.readUInt16LE(b.LOCNAM),g.extraLen=E.readUInt16LE(b.LOCEXT);let _=c+b.LOCHDR+g.fnameLen,A=_+g.extraLen;return u.slice(_,A)},loadFromBinary:function(u){if(u.length!==b.CENHDR||u.readUInt32LE(0)!==b.CENSIG)throw Me.Errors.INVALID_CEN();t=u.readUInt16LE(b.CENVEM),e=u.readUInt16LE(b.CENVER),r=u.readUInt16LE(b.CENFLG),n=u.readUInt16LE(b.CENHOW),i=u.readUInt32LE(b.CENTIM),o=u.readUInt32LE(b.CENCRC),s=u.readUInt32LE(b.CENSIZ),a=u.readUInt32LE(b.CENLEN),f=u.readUInt16LE(b.CENNAM),d=u.readUInt16LE(b.CENEXT),h=u.readUInt16LE(b.CENCOM),F=u.readUInt16LE(b.CENDSK),y=u.readUInt16LE(b.CENATT),l=u.readUInt32LE(b.CENATX),c=u.readUInt32LE(b.CENOFF)},localHeaderToBinary:function(){var u=Buffer.alloc(b.LOCHDR);return u.writeUInt32LE(b.LOCSIG,0),u.writeUInt16LE(e,b.LOCVER),u.writeUInt16LE(r,b.LOCFLG),u.writeUInt16LE(n,b.LOCHOW),u.writeUInt32LE(i,b.LOCTIM),u.writeUInt32LE(o,b.LOCCRC),u.writeUInt32LE(s,b.LOCSIZ),u.writeUInt32LE(a,b.LOCLEN),u.writeUInt16LE(f,b.LOCNAM),u.writeUInt16LE(g.extraLen,b.LOCEXT),u},centralHeaderToBinary:function(){var u=Buffer.alloc(b.CENHDR+f+d+h);return u.writeUInt32LE(b.CENSIG,0),u.writeUInt16LE(t,b.CENVEM),u.writeUInt16LE(e,b.CENVER),u.writeUInt16LE(r,b.CENFLG),u.writeUInt16LE(n,b.CENHOW),u.writeUInt32LE(i,b.CENTIM),u.writeUInt32LE(o,b.CENCRC),u.writeUInt32LE(s,b.CENSIZ),u.writeUInt32LE(a,b.CENLEN),u.writeUInt16LE(f,b.CENNAM),u.writeUInt16LE(d,b.CENEXT),u.writeUInt16LE(h,b.CENCOM),u.writeUInt16LE(F,b.CENDSK),u.writeUInt16LE(y,b.CENATT),u.writeUInt32LE(l,b.CENATX),u.writeUInt32LE(c,b.CENOFF),u},toJSON:function(){let u=function(E){return E+" bytes"};return{made:t,version:e,flags:r,method:Me.methodToString(n),time:this.time,crc:"0x"+o.toString(16).toUpperCase(),compressedSize:u(s),size:u(a),fileNameLength:u(f),extraLength:u(d),commentLength:u(h),diskNumStart:F,inAttr:y,attr:l,offset:c,centralHeaderSize:u(b.CENHDR+f+d+h)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}}});var $s=S((o0,Vs)=>{"use strict";D();var Dt=ht(),Y=Dt.Constants;Vs.exports=function(){var t=0,e=0,r=0,n=0,i=0;return{get diskEntries(){return t},set diskEntries(o){t=e=o},get totalEntries(){return e},set totalEntries(o){e=t=o},get size(){return r},set size(o){r=o},get offset(){return n},set offset(o){n=o},get commentLength(){return i},set commentLength(o){i=o},get mainHeaderSize(){return Y.ENDHDR+i},loadFromBinary:function(o){if((o.length!==Y.ENDHDR||o.readUInt32LE(0)!==Y.ENDSIG)&&(o.length<Y.ZIP64HDR||o.readUInt32LE(0)!==Y.ZIP64SIG))throw Dt.Errors.INVALID_END();o.readUInt32LE(0)===Y.ENDSIG?(t=o.readUInt16LE(Y.ENDSUB),e=o.readUInt16LE(Y.ENDTOT),r=o.readUInt32LE(Y.ENDSIZ),n=o.readUInt32LE(Y.ENDOFF),i=o.readUInt16LE(Y.ENDCOM)):(t=Dt.readBigUInt64LE(o,Y.ZIP64SUB),e=Dt.readBigUInt64LE(o,Y.ZIP64TOT),r=Dt.readBigUInt64LE(o,Y.ZIP64SIZE),n=Dt.readBigUInt64LE(o,Y.ZIP64OFF),i=0)},toBinary:function(){var o=Buffer.alloc(Y.ENDHDR+i);return o.writeUInt32LE(Y.ENDSIG,0),o.writeUInt32LE(0,4),o.writeUInt16LE(t,Y.ENDSUB),o.writeUInt16LE(e,Y.ENDTOT),o.writeUInt32LE(r,Y.ENDSIZ),o.writeUInt32LE(n,Y.ENDOFF),o.writeUInt16LE(i,Y.ENDCOM),o.fill(" ",Y.ENDHDR),o},toJSON:function(){let o=function(s,a){let f=s.toString(16).toUpperCase();for(;f.length<a;)f="0"+f;return"0x"+f};return{diskEntries:t,totalEntries:e,size:r+" bytes",offset:o(n,4),commentLength:i}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}}});var Zn=S(zn=>{"use strict";D();zn.EntryHeader=js();zn.MainHeader=$s()});var Ws=S((l0,qs)=>{"use strict";D();qs.exports=function(t){var e=require("zlib"),r={chunkSize:(parseInt(t.length/1024)+1)*1024};return{deflate:function(){return e.deflateRawSync(t,r)},deflateAsync:function(n){var i=e.createDeflateRaw(r),o=[],s=0;i.on("data",function(a){o.push(a),s+=a.length}),i.on("end",function(){var a=Buffer.alloc(s),f=0;a.fill(0);for(var d=0;d<o.length;d++){var h=o[d];h.copy(a,f),f+=h.length}n&&n(a)}),i.end(t)}}}});var zs=S((c0,Gs)=>{"use strict";D();var oc=+(process.versions?process.versions.node:"").split(".")[0]||0;Gs.exports=function(t,e){var r=require("zlib");let n=oc>=15&&e>0?{maxOutputLength:e}:{};return{inflate:function(){return r.inflateRawSync(t,n)},inflateAsync:function(i){var o=r.createInflateRaw(n),s=[],a=0;o.on("data",function(f){s.push(f),a+=f.length}),o.on("end",function(){var f=Buffer.alloc(a),d=0;f.fill(0);for(var h=0;h<s.length;h++){var F=s[h];F.copy(f,d),d+=F.length}i&&i(f)}),o.end(t)}}}});var Js=S((D0,Xs)=>{"use strict";D();var{randomFillSync:Zs}=require("crypto"),sc=gr(),uc=new Uint32Array(256).map((t,e)=>{for(let r=0;r<8;r++)(e&1)!==0?e=e>>>1^3988292384:e>>>=1;return e>>>0}),Ks=(t,e)=>Math.imul(t,e)>>>0,Ys=(t,e)=>uc[(t^e)&255]^t>>>8,Mt=()=>typeof Zs=="function"?Zs(Buffer.alloc(12)):Mt.node();Mt.node=()=>{let t=Buffer.alloc(12),e=t.length;for(let r=0;r<e;r++)t[r]=Math.random()*256&255;return t};var Er={genSalt:Mt};function Fr(t){let e=Buffer.isBuffer(t)?t:Buffer.from(t);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let r=0;r<e.length;r++)this.updateKeys(e[r])}Fr.prototype.updateKeys=function(t){let e=this.keys;return e[0]=Ys(e[0],t),e[1]+=e[0]&255,e[1]=Ks(e[1],134775813)+1,e[2]=Ys(e[2],e[1]>>>24),t};Fr.prototype.next=function(){let t=(this.keys[2]|2)>>>0;return Ks(t,t^1)>>8&255};function ac(t){let e=new Fr(t);return function(r){let n=Buffer.alloc(r.length),i=0;for(let o of r)n[i++]=e.updateKeys(o^e.next());return n}}function lc(t){let e=new Fr(t);return function(r,n,i=0){n||(n=Buffer.alloc(r.length));for(let o of r){let s=e.next();n[i++]=o^s,e.updateKeys(o)}return n}}function fc(t,e,r){if(!t||!Buffer.isBuffer(t)||t.length<12)return Buffer.alloc(0);let n=ac(r),i=n(t.slice(0,12)),o=(e.flags&8)===8?e.timeHighByte:e.crc>>>24;if(i[11]!==o)throw sc.WRONG_PASSWORD();return n(t.slice(12))}function cc(t){Buffer.isBuffer(t)&&t.length>=12?Er.genSalt=function(){return t.slice(0,12)}:t==="node"?Er.genSalt=Mt.node:Er.genSalt=Mt}function hc(t,e,r,n=!1){t==null&&(t=Buffer.alloc(0)),Buffer.isBuffer(t)||(t=Buffer.from(t.toString()));let i=lc(r),o=Er.genSalt();o[11]=e.crc>>>24&255,n&&(o[10]=e.crc>>>16&255);let s=Buffer.alloc(t.length+12);return i(o,s),i(t,s,12)}Xs.exports={decrypt:fc,encrypt:hc,_salter:cc}});var Qs=S(_r=>{"use strict";D();_r.Deflater=Ws();_r.Inflater=zs();_r.ZipCrypto=Js()});var Kn=S((g0,eu)=>{"use strict";D();var M=ht(),Dc=Zn(),ee=M.Constants,Yn=Qs();eu.exports=function(t,e){var r=new Dc.EntryHeader,n=Buffer.alloc(0),i=Buffer.alloc(0),o=!1,s=null,a=Buffer.alloc(0),f=Buffer.alloc(0),d=!0;let h=t,F=typeof h.decoder=="object"?h.decoder:M.decoder;d=F.hasOwnProperty("efs")?F.efs:!1;function y(){return!e||!(e instanceof Uint8Array)?Buffer.alloc(0):(f=r.loadLocalHeaderFromBinary(e),e.slice(r.realDataOffset,r.realDataOffset+r.compressedSize))}function l(u){if(r.flags_desc){let E={},_=r.realDataOffset+r.compressedSize;if(e.readUInt32LE(_)==ee.LOCSIG||e.readUInt32LE(_)==ee.CENSIG)throw M.Errors.DESCRIPTOR_NOT_EXIST();if(e.readUInt32LE(_)==ee.EXTSIG)E.crc=e.readUInt32LE(_+ee.EXTCRC),E.compressedSize=e.readUInt32LE(_+ee.EXTSIZ),E.size=e.readUInt32LE(_+ee.EXTLEN);else if(e.readUInt16LE(_+12)===19280)E.crc=e.readUInt32LE(_+ee.EXTCRC-4),E.compressedSize=e.readUInt32LE(_+ee.EXTSIZ-4),E.size=e.readUInt32LE(_+ee.EXTLEN-4);else throw M.Errors.DESCRIPTOR_UNKNOWN();if(E.compressedSize!==r.compressedSize||E.size!==r.size||E.crc!==r.crc)throw M.Errors.DESCRIPTOR_FAULTY();if(M.crc32(u)!==E.crc)return!1}else if(M.crc32(u)!==r.localHeader.crc)return!1;return!0}function c(u,E,_){if(typeof E>"u"&&typeof u=="string"&&(_=u,u=void 0),o)return u&&E&&E(Buffer.alloc(0),M.Errors.DIRECTORY_CONTENT_ERROR()),Buffer.alloc(0);var A=y();if(A.length===0)return u&&E&&E(A),A;if(r.encrypted){if(typeof _!="string"&&!Buffer.isBuffer(_))throw M.Errors.INVALID_PASS_PARAM();A=Yn.ZipCrypto.decrypt(A,r,_)}var w=Buffer.alloc(r.size);switch(r.method){case M.Constants.STORED:if(A.copy(w),l(w))return u&&E&&E(w),w;throw u&&E&&E(w,M.Errors.BAD_CRC()),M.Errors.BAD_CRC();case M.Constants.DEFLATED:var R=new Yn.Inflater(A,r.size);if(u)R.inflateAsync(function(v){v.copy(v,0),E&&(l(v)?E(v):E(v,M.Errors.BAD_CRC()))});else{if(R.inflate(w).copy(w,0),!l(w))throw M.Errors.BAD_CRC(`"${F.decode(n)}"`);return w}break;default:throw u&&E&&E(Buffer.alloc(0),M.Errors.UNKNOWN_METHOD()),M.Errors.UNKNOWN_METHOD()}}function g(u,E){if((!s||!s.length)&&Buffer.isBuffer(e))return u&&E&&E(y()),y();if(s.length&&!o){var _;switch(r.method){case M.Constants.STORED:return r.compressedSize=r.size,_=Buffer.alloc(s.length),s.copy(_),u&&E&&E(_),_;default:case M.Constants.DEFLATED:var A=new Yn.Deflater(s);if(u)A.deflateAsync(function(R){_=Buffer.alloc(R.length),r.compressedSize=R.length,R.copy(_),E&&E(_)});else{var w=A.deflate();return r.compressedSize=w.length,w}A=null;break}}else if(u&&E)E(Buffer.alloc(0));else return Buffer.alloc(0)}function p(u,E){return(u.readUInt32LE(E+4)<<4)+u.readUInt32LE(E)}function m(u){try{for(var E=0,_,A,w;E+4<u.length;)_=u.readUInt16LE(E),E+=2,A=u.readUInt16LE(E),E+=2,w=u.slice(E,E+A),E+=A,ee.ID_ZIP64===_&&C(w)}catch{throw M.Errors.EXTRA_FIELD_PARSE_ERROR()}}function C(u){var E,_,A,w;u.length>=ee.EF_ZIP64_SCOMP&&(E=p(u,ee.EF_ZIP64_SUNCOMP),r.size===ee.EF_ZIP64_OR_32&&(r.size=E)),u.length>=ee.EF_ZIP64_RHO&&(_=p(u,ee.EF_ZIP64_SCOMP),r.compressedSize===ee.EF_ZIP64_OR_32&&(r.compressedSize=_)),u.length>=ee.EF_ZIP64_DSN&&(A=p(u,ee.EF_ZIP64_RHO),r.offset===ee.EF_ZIP64_OR_32&&(r.offset=A)),u.length>=ee.EF_ZIP64_DSN+4&&(w=u.readUInt32LE(ee.EF_ZIP64_DSN),r.diskNumStart===ee.EF_ZIP64_OR_16&&(r.diskNumStart=w))}return{get entryName(){return F.decode(n)},get rawEntryName(){return n},set entryName(u){n=M.toBuffer(u,F.encode);var E=n[n.length-1];o=E===47||E===92,r.fileNameLength=n.length},get efs(){return typeof d=="function"?d(this.entryName):d},get extra(){return a},set extra(u){a=u,r.extraLength=u.length,m(u)},get comment(){return F.decode(i)},set comment(u){if(i=M.toBuffer(u,F.encode),r.commentLength=i.length,i.length>65535)throw M.Errors.COMMENT_TOO_LONG()},get name(){var u=F.decode(n);return o?u.substr(u.length-1).split("/").pop():u.split("/").pop()},get isDirectory(){return o},getCompressedData:function(){return g(!1,null)},getCompressedDataAsync:function(u){g(!0,u)},setData:function(u){s=M.toBuffer(u,M.decoder.encode),!o&&s.length?(r.size=s.length,r.method=M.Constants.DEFLATED,r.crc=M.crc32(u),r.changed=!0):r.method=M.Constants.STORED},getData:function(u){return r.changed?s:c(!1,null,u)},getDataAsync:function(u,E){r.changed?u(s):c(!0,u,E)},set attr(u){r.attr=u},get attr(){return r.attr},set header(u){r.loadFromBinary(u)},get header(){return r},packCentralHeader:function(){r.flags_efs=this.efs,r.extraLength=a.length;var u=r.centralHeaderToBinary(),E=M.Constants.CENHDR;return n.copy(u,E),E+=n.length,a.copy(u,E),E+=r.extraLength,i.copy(u,E),u},packLocalHeader:function(){let u=0;r.flags_efs=this.efs,r.extraLocalLength=f.length;let E=r.localHeaderToBinary(),_=Buffer.alloc(E.length+n.length+r.extraLocalLength);return E.copy(_,u),u+=E.length,n.copy(_,u),u+=n.length,f.copy(_,u),u+=f.length,_},toJSON:function(){let u=function(E){return"<"+(E&&E.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:r.toJSON(),compressedData:u(e),data:u(s)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}}});var nu=S((F0,ru)=>{"use strict";D();var tu=Kn(),dc=Zn(),oe=ht();ru.exports=function(t,e){var r=[],n={},i=Buffer.alloc(0),o=new dc.MainHeader,s=!1,a=null;let f=new Set,d=e,{noSort:h,decoder:F}=d;t?c(d.readEntries):s=!0;function y(){let p=new Set;for(let m of Object.keys(n)){let C=m.split("/");if(C.pop(),!!C.length)for(let u=0;u<C.length;u++){let E=C.slice(0,u+1).join("/")+"/";p.add(E)}}for(let m of p)if(!(m in n)){let C=new tu(d);C.entryName=m,C.attr=16,C.temporary=!0,r.push(C),n[C.entryName]=C,f.add(C)}}function l(){if(s=!0,n={},o.diskEntries>(t.length-o.offset)/oe.Constants.CENHDR)throw oe.Errors.DISK_ENTRY_TOO_LARGE();r=new Array(o.diskEntries);for(var p=o.offset,m=0;m<r.length;m++){var C=p,u=new tu(d,t);u.header=t.slice(C,C+=oe.Constants.CENHDR),u.entryName=t.slice(C,C+=u.header.fileNameLength),u.header.extraLength&&(u.extra=t.slice(C,C+=u.header.extraLength)),u.header.commentLength&&(u.comment=t.slice(C,C+u.header.commentLength)),p+=u.header.centralHeaderSize,r[m]=u,n[u.entryName]=u}f.clear(),y()}function c(p){var m=t.length-oe.Constants.ENDHDR,C=Math.max(0,m-65535),u=C,E=t.length,_=-1,A=0;for(typeof d.trailingSpace=="boolean"&&d.trailingSpace&&(C=0),m;m>=u;m--)if(t[m]===80){if(t.readUInt32LE(m)===oe.Constants.ENDSIG){_=m,A=m,E=m+oe.Constants.ENDHDR,u=m-oe.Constants.END64HDR;continue}if(t.readUInt32LE(m)===oe.Constants.END64SIG){u=C;continue}if(t.readUInt32LE(m)===oe.Constants.ZIP64SIG){_=m,E=m+oe.readBigUInt64LE(t,m+oe.Constants.ZIP64SIZE)+oe.Constants.ZIP64LEAD;break}}if(_==-1)throw oe.Errors.INVALID_FORMAT();o.loadFromBinary(t.slice(_,E)),o.commentLength&&(i=t.slice(A+oe.Constants.ENDHDR)),p&&l()}function g(){r.length>1&&!h&&r.sort((p,m)=>p.entryName.toLowerCase().localeCompare(m.entryName.toLowerCase()))}return{get entries(){return s||l(),r.filter(p=>!f.has(p))},get comment(){return F.decode(i)},set comment(p){i=oe.toBuffer(p,F.encode),o.commentLength=i.length},getEntryCount:function(){return s?r.length:o.diskEntries},forEach:function(p){this.entries.forEach(p)},getEntry:function(p){return s||l(),n[p]||null},setEntry:function(p){s||l(),r.push(p),n[p.entryName]=p,o.totalEntries=r.length},deleteFile:function(p,m=!0){s||l();let C=n[p];this.getEntryChildren(C,m).map(E=>E.entryName).forEach(this.deleteEntry)},deleteEntry:function(p){s||l();let m=n[p],C=r.indexOf(m);C>=0&&(r.splice(C,1),delete n[p],o.totalEntries=r.length)},getEntryChildren:function(p,m=!0){if(s||l(),typeof p=="object")if(p.isDirectory&&m){let C=[],u=p.entryName;for(let E of r)E.entryName.startsWith(u)&&C.push(E);return C}else return[p];return[]},getChildCount:function(p){if(p&&p.isDirectory){let m=this.getEntryChildren(p);return m.includes(p)?m.length-1:m.length}return 0},compressToBuffer:function(){s||l(),g();let p=[],m=[],C=0,u=0;o.size=0,o.offset=0;let E=0;for(let w of this.entries){let R=w.getCompressedData();w.header.offset=u;let v=w.packLocalHeader(),T=v.length+R.length;u+=T,p.push(v),p.push(R);let O=w.packCentralHeader();m.push(O),o.size+=O.length,C+=T+O.length,E++}C+=o.mainHeaderSize,o.offset=u,o.totalEntries=E,u=0;let _=Buffer.alloc(C);for(let w of p)w.copy(_,u),u+=w.length;for(let w of m)w.copy(_,u),u+=w.length;let A=o.toBinary();return i&&i.copy(A,oe.Constants.ENDHDR),A.copy(_,u),t=_,s=!1,_},toAsyncBuffer:function(p,m,C,u){try{s||l(),g();let E=[],_=[],A=0,w=0,R=0;o.size=0,o.offset=0;let v=function(T){if(T.length>0){let O=T.shift(),P=O.entryName+O.extra.toString();C&&C(P),O.getCompressedDataAsync(function(N){u&&u(P),O.header.offset=w;let Z=O.packLocalHeader(),U=Z.length+N.length;w+=U,E.push(Z),E.push(N);let k=O.packCentralHeader();_.push(k),o.size+=k.length,A+=U+k.length,R++,v(T)})}else{A+=o.mainHeaderSize,o.offset=w,o.totalEntries=R,w=0;let O=Buffer.alloc(A);E.forEach(function(N){N.copy(O,w),w+=N.length}),_.forEach(function(N){N.copy(O,w),w+=N.length});let P=o.toBinary();i&&i.copy(P,oe.Constants.ENDHDR),P.copy(O,w),t=O,s=!1,p(O)}};v(Array.from(this.entries))}catch(E){m(E)}}}}});var su=S((C0,ou)=>{"use strict";D();var K=ht(),te=require("path"),pc=Kn(),mc=nu(),Ke=(...t)=>K.findLast(t,e=>typeof e=="boolean"),iu=(...t)=>K.findLast(t,e=>typeof e=="string"),gc=(...t)=>K.findLast(t,e=>typeof e=="function"),Ec={noSort:!1,readEntries:!1,method:K.Constants.NONE,fs:null};ou.exports=function(t,e){let r=null,n=Object.assign(Object.create(null),Ec);t&&typeof t=="object"&&(t instanceof Uint8Array||(Object.assign(n,t),t=n.input?n.input:void 0,n.input&&delete n.input),Buffer.isBuffer(t)&&(r=t,n.method=K.Constants.BUFFER,t=void 0)),Object.assign(n,e);let i=new K(n);if((typeof n.decoder!="object"||typeof n.decoder.encode!="function"||typeof n.decoder.decode!="function")&&(n.decoder=K.decoder),t&&typeof t=="string")if(i.fs.existsSync(t))n.method=K.Constants.FILE,n.filename=t,r=i.fs.readFileSync(t);else throw K.Errors.INVALID_FILENAME();let o=new mc(r,n),{canonical:s,sanitize:a,zipnamefix:f}=K;function d(l){if(l&&o){var c;if(typeof l=="string"&&(c=o.getEntry(te.posix.normalize(l))),typeof l=="object"&&typeof l.entryName<"u"&&typeof l.header<"u"&&(c=o.getEntry(l.entryName)),c)return c}return null}function h(l){let{join:c,normalize:g,sep:p}=te.posix;return c(".",g(p+l.split("\\").join(p)+p))}function F(l){return l instanceof RegExp?(function(c){return function(g){return c.test(g)}})(l):typeof l!="function"?()=>!0:l}let y=(l,c)=>{let g=c.slice(-1);return g=g===i.sep?i.sep:"",te.relative(l,c)+g};return{readFile:function(l,c){var g=d(l);return g&&g.getData(c)||null},childCount:function(l){let c=d(l);if(c)return o.getChildCount(c)},readFileAsync:function(l,c){var g=d(l);g?g.getDataAsync(c):c(null,"getEntry failed for:"+l)},readAsText:function(l,c){var g=d(l);if(g){var p=g.getData();if(p&&p.length)return p.toString(c||"utf8")}return""},readAsTextAsync:function(l,c,g){var p=d(l);p?p.getDataAsync(function(m,C){if(C){c(m,C);return}m&&m.length?c(m.toString(g||"utf8")):c("")}):c("")},deleteFile:function(l,c=!0){var g=d(l);g&&o.deleteFile(g.entryName,c)},deleteEntry:function(l){var c=d(l);c&&o.deleteEntry(c.entryName)},addZipComment:function(l){o.comment=l},getZipComment:function(){return o.comment||""},addZipEntryComment:function(l,c){var g=d(l);g&&(g.comment=c)},getZipEntryComment:function(l){var c=d(l);return c&&c.comment||""},updateFile:function(l,c){var g=d(l);g&&g.setData(c)},addLocalFile:function(l,c,g,p){if(i.fs.existsSync(l)){c=c?h(c):"";let m=te.win32.basename(te.win32.normalize(l));c+=g||m;let C=i.fs.statSync(l),u=C.isFile()?i.fs.readFileSync(l):Buffer.alloc(0);C.isDirectory()&&(c+=i.sep),this.addFile(c,u,p,C)}else throw K.Errors.FILE_NOT_FOUND(l)},addLocalFileAsync:function(l,c){l=typeof l=="object"?l:{localPath:l};let g=te.resolve(l.localPath),{comment:p}=l,{zipPath:m,zipName:C}=l,u=this;i.fs.stat(g,function(E,_){if(E)return c(E,!1);m=m?h(m):"";let A=te.win32.basename(te.win32.normalize(g));if(m+=C||A,_.isFile())i.fs.readFile(g,function(w,R){return w?c(w,!1):(u.addFile(m,R,p,_),setImmediate(c,void 0,!0))});else if(_.isDirectory())return m+=i.sep,u.addFile(m,Buffer.alloc(0),p,_),setImmediate(c,void 0,!0)})},addLocalFolder:function(l,c,g){if(g=F(g),c=c?h(c):"",l=te.normalize(l),i.fs.existsSync(l)){let p=i.findFiles(l),m=this;if(p.length)for(let C of p){let u=te.join(c,y(l,C));g(u)&&m.addLocalFile(C,te.dirname(u))}}else throw K.Errors.FILE_NOT_FOUND(l)},addLocalFolderAsync:function(l,c,g,p){p=F(p),g=g?h(g):"",l=te.normalize(l);var m=this;i.fs.open(l,"r",function(C){if(C&&C.code==="ENOENT")c(void 0,K.Errors.FILE_NOT_FOUND(l));else if(C)c(void 0,C);else{var u=i.findFiles(l),E=-1,_=function(){if(E+=1,E<u.length){var A=u[E],w=y(l,A).split("\\").join("/");w=w.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),p(w)?i.fs.stat(A,function(R,v){R&&c(void 0,R),v.isFile()?i.fs.readFile(A,function(T,O){T?c(void 0,T):(m.addFile(g+w,O,"",v),_())}):(m.addFile(g+w+"/",Buffer.alloc(0),"",v),_())}):process.nextTick(()=>{_()})}else c(!0,void 0)};_()}})},addLocalFolderAsync2:function(l,c){let g=this;l=typeof l=="object"?l:{localPath:l},localPath=te.resolve(h(l.localPath));let{zipPath:p,filter:m,namefix:C}=l;m instanceof RegExp?m=(function(_){return function(A){return _.test(A)}})(m):typeof m!="function"&&(m=function(){return!0}),p=p?h(p):"",C=="latin1"&&(C=_=>_.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,"")),typeof C!="function"&&(C=_=>_);let u=_=>te.join(p,C(y(localPath,_))),E=_=>te.win32.basename(te.win32.normalize(C(_)));i.fs.open(localPath,"r",function(_){_&&_.code==="ENOENT"?c(void 0,K.Errors.FILE_NOT_FOUND(localPath)):_?c(void 0,_):i.findFilesAsync(localPath,function(A,w){if(A)return c(A);w=w.filter(R=>m(u(R))),w.length||c(void 0,!1),setImmediate(w.reverse().reduce(function(R,v){return function(T,O){if(T||O===!1)return setImmediate(R,T,!1);g.addLocalFileAsync({localPath:v,zipPath:te.dirname(u(v)),zipName:E(v)},R)}},c))})})},addLocalFolderPromise:function(l,c){return new Promise((g,p)=>{this.addLocalFolderAsync2(Object.assign({localPath:l},c),(m,C)=>{m&&p(m),C&&g(this)})})},addFile:function(l,c,g,p){l=f(l);let m=d(l),C=m!=null;C||(m=new pc(n),m.entryName=l),m.comment=g||"";let u=typeof p=="object"&&p instanceof i.fs.Stats;u&&(m.header.time=p.mtime);var E=m.isDirectory?16:0;let _=m.isDirectory?16384:32768;return u?_|=4095&p.mode:typeof p=="number"?_|=4095&p:_|=m.isDirectory?493:420,E=(E|_<<16)>>>0,m.attr=E,m.setData(c),C||o.setEntry(m),m},getEntries:function(l){return o.password=l,o?o.entries:[]},getEntry:function(l){return d(l)},getEntryCount:function(){return o.getEntryCount()},forEach:function(l){return o.forEach(l)},extractEntryTo:function(l,c,g,p,m,C){p=Ke(!1,p),m=Ke(!1,m),g=Ke(!0,g),C=iu(m,C);var u=d(l);if(!u)throw K.Errors.NO_ENTRY();var E=s(u.entryName),_=a(c,C&&!u.isDirectory?C:g?E:te.basename(E));if(u.isDirectory){var A=o.getEntryChildren(u);return A.forEach(function(v){if(v.isDirectory)return;var T=v.getData();if(!T)throw K.Errors.CANT_EXTRACT_FILE();var O=s(v.entryName),P=a(c,g?O:te.basename(O));let N=m?v.header.fileAttr:void 0;i.writeFileTo(P,T,p,N)}),!0}var w=u.getData(o.password);if(!w)throw K.Errors.CANT_EXTRACT_FILE();if(i.fs.existsSync(_)&&!p)throw K.Errors.CANT_OVERRIDE();let R=m?l.header.fileAttr:void 0;return i.writeFileTo(_,w,p,R),!0},test:function(l){if(!o)return!1;for(var c in o.entries)try{if(c.isDirectory)continue;var g=o.entries[c].getData(l);if(!g)return!1}catch{return!1}return!0},extractAllTo:function(l,c,g,p){if(g=Ke(!1,g),p=iu(g,p),c=Ke(!1,c),!o)throw K.Errors.NO_ZIP();o.entries.forEach(function(m){var C=a(l,s(m.entryName));if(m.isDirectory){i.makeDir(C);return}var u=m.getData(p);if(!u)throw K.Errors.CANT_EXTRACT_FILE();let E=g?m.header.fileAttr:void 0;i.writeFileTo(C,u,c,E);try{i.fs.utimesSync(C,m.header.time,m.header.time)}catch{throw K.Errors.CANT_EXTRACT_FILE()}})},extractAllToAsync:function(l,c,g,p){if(p=gc(c,g,p),g=Ke(!1,g),c=Ke(!1,c),!p)return new Promise((_,A)=>{this.extractAllToAsync(l,c,g,function(w){w?A(w):_(this)})});if(!o){p(K.Errors.NO_ZIP());return}l=te.resolve(l);let m=_=>a(l,te.normalize(s(_.entryName))),C=(_,A)=>new Error(_+': "'+A+'"'),u=[],E=[];o.entries.forEach(_=>{_.isDirectory?u.push(_):E.push(_)});for(let _ of u){let A=m(_),w=g?_.header.fileAttr:void 0;try{i.makeDir(A),w&&i.fs.chmodSync(A,w),i.fs.utimesSync(A,_.header.time,_.header.time)}catch{p(C("Unable to create folder",A))}}E.reverse().reduce(function(_,A){return function(w){if(w)_(w);else{let R=te.normalize(s(A.entryName)),v=a(l,R);A.getDataAsync(function(T,O){if(O)_(O);else if(!T)_(K.Errors.CANT_EXTRACT_FILE());else{let P=g?A.header.fileAttr:void 0;i.writeFileToAsync(v,T,c,P,function(N){N||_(C("Unable to write file",v)),i.fs.utimes(v,A.header.time,A.header.time,function(Z){Z?_(C("Unable to set times",v)):_()})})}})}}},p)()},writeZip:function(l,c){if(arguments.length===1&&typeof l=="function"&&(c=l,l=""),!l&&n.filename&&(l=n.filename),!!l){var g=o.compressToBuffer();if(g){var p=i.writeFileTo(l,g,!0);typeof c=="function"&&c(p?null:new Error("failed"),"")}}},writeZipPromise:function(l,c){let{overwrite:g,perm:p}=Object.assign({overwrite:!0},c);return new Promise((m,C)=>{!l&&n.filename&&(l=n.filename),l||C("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(u=>{let E=_=>_?m(_):C("ADM-ZIP: Wasn't able to write zip file");i.writeFileToAsync(l,u,g,p,E)},C)})},toBufferPromise:function(){return new Promise((l,c)=>{o.toAsyncBuffer(l,c)})},toBuffer:function(l,c,g,p){return typeof l=="function"?(o.toAsyncBuffer(l,c,g,p),null):o.compressToBuffer()}}}});var pu=S((w0,du)=>{"use strict";D();var Pe=require("constants"),_c=process.cwd,Cr=null,Cc=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Cr||(Cr=_c.call(process)),Cr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Xn=process.chdir,process.chdir=function(t){Cr=null,Xn.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Xn));var Xn;du.exports=yc;function yc(t){Pe.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=o(t.chown),t.fchown=o(t.fchown),t.lchown=o(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=s(t.chownSync),t.fchownSync=s(t.fchownSync),t.lchownSync=s(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=f(t.statSync),t.fstatSync=f(t.fstatSync),t.lstatSync=f(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(h,F,y){y&&process.nextTick(y)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(h,F,y,l){l&&process.nextTick(l)},t.lchownSync=function(){}),Cc==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(h){function F(y,l,c){var g=Date.now(),p=0;h(y,l,function m(C){if(C&&(C.code==="EACCES"||C.code==="EPERM"||C.code==="EBUSY")&&Date.now()-g<6e4){setTimeout(function(){t.stat(l,function(u,E){u&&u.code==="ENOENT"?h(y,l,m):c(C)})},p),p<100&&(p+=10);return}c&&c(C)})}return Object.setPrototypeOf&&Object.setPrototypeOf(F,h),F})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(h){function F(y,l,c,g,p,m){var C;if(m&&typeof m=="function"){var u=0;C=function(E,_,A){if(E&&E.code==="EAGAIN"&&u<10)return u++,h.call(t,y,l,c,g,p,C);m.apply(this,arguments)}}return h.call(t,y,l,c,g,p,C)}return Object.setPrototypeOf&&Object.setPrototypeOf(F,h),F})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(h){return function(F,y,l,c,g){for(var p=0;;)try{return h.call(t,F,y,l,c,g)}catch(m){if(m.code==="EAGAIN"&&p<10){p++;continue}throw m}}})(t.readSync);function e(h){h.lchmod=function(F,y,l){h.open(F,Pe.O_WRONLY|Pe.O_SYMLINK,y,function(c,g){if(c){l&&l(c);return}h.fchmod(g,y,function(p){h.close(g,function(m){l&&l(p||m)})})})},h.lchmodSync=function(F,y){var l=h.openSync(F,Pe.O_WRONLY|Pe.O_SYMLINK,y),c=!0,g;try{g=h.fchmodSync(l,y),c=!1}finally{if(c)try{h.closeSync(l)}catch{}else h.closeSync(l)}return g}}function r(h){Pe.hasOwnProperty("O_SYMLINK")&&h.futimes?(h.lutimes=function(F,y,l,c){h.open(F,Pe.O_SYMLINK,function(g,p){if(g){c&&c(g);return}h.futimes(p,y,l,function(m){h.close(p,function(C){c&&c(m||C)})})})},h.lutimesSync=function(F,y,l){var c=h.openSync(F,Pe.O_SYMLINK),g,p=!0;try{g=h.futimesSync(c,y,l),p=!1}finally{if(p)try{h.closeSync(c)}catch{}else h.closeSync(c)}return g}):h.futimes&&(h.lutimes=function(F,y,l,c){c&&process.nextTick(c)},h.lutimesSync=function(){})}function n(h){return h&&function(F,y,l){return h.call(t,F,y,function(c){d(c)&&(c=null),l&&l.apply(this,arguments)})}}function i(h){return h&&function(F,y){try{return h.call(t,F,y)}catch(l){if(!d(l))throw l}}}function o(h){return h&&function(F,y,l,c){return h.call(t,F,y,l,function(g){d(g)&&(g=null),c&&c.apply(this,arguments)})}}function s(h){return h&&function(F,y,l){try{return h.call(t,F,y,l)}catch(c){if(!d(c))throw c}}}function a(h){return h&&function(F,y,l){typeof y=="function"&&(l=y,y=null);function c(g,p){p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),l&&l.apply(this,arguments)}return y?h.call(t,F,y,c):h.call(t,F,c)}}function f(h){return h&&function(F,y){var l=y?h.call(t,F,y):h.call(t,F);return l&&(l.uid<0&&(l.uid+=4294967296),l.gid<0&&(l.gid+=4294967296)),l}}function d(h){if(!h||h.code==="ENOSYS")return!0;var F=!process.getuid||process.getuid()!==0;return!!(F&&(h.code==="EINVAL"||h.code==="EPERM"))}}});var Eu=S((S0,gu)=>{"use strict";D();var mu=require("stream").Stream;gu.exports=xc;function xc(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);mu.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var s=Object.keys(i),a=0,f=s.length;a<f;a++){var d=s[a];this[d]=i[d]}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(){o._read()});return}t.open(this.path,this.flags,this.mode,function(h,F){if(h){o.emit("error",h),o.readable=!1;return}o.fd=F,o.emit("open",F),o._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);mu.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,a=o.length;s<a;s++){var f=o[s];this[f]=i[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=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var _u=S((O0,Fu)=>{"use strict";D();Fu.exports=wc;var vc=Object.getPrototypeOf||function(t){return t.__proto__};function wc(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:vc(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var ti=S((B0,ei)=>{"use strict";D();var X=require("fs"),bc=pu(),Sc=Eu(),Ac=_u(),yr=require("util"),se,vr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(se=Symbol.for("graceful-fs.queue"),vr=Symbol.for("graceful-fs.previous")):(se="___graceful-fs.queue",vr="___graceful-fs.previous");function Oc(){}function xu(t,e){Object.defineProperty(t,se,{get:function(){return e}})}var Je=Oc;yr.debuglog?Je=yr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Je=function(){var t=yr.format.apply(yr,arguments);t="GFS4: "+t.split(/\n/).join(`
23
- GFS4: `),console.error(t)});X[se]||(Cu=global[se]||[],xu(X,Cu),X.close=(function(t){function e(r,n){return t.call(X,r,function(i){i||yu(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,vr,{value:t}),e})(X.close),X.closeSync=(function(t){function e(r){t.apply(X,arguments),yu()}return Object.defineProperty(e,vr,{value:t}),e})(X.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Je(X[se]),require("assert").equal(X[se].length,0)}));var Cu;global[se]||xu(global,X[se]);ei.exports=Jn(Ac(X));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!X.__patched&&(ei.exports=Jn(X),X.__patched=!0);function Jn(t){bc(t),t.gracefulify=Jn,t.createReadStream=_,t.createWriteStream=A;var e=t.readFile;t.readFile=r;function r(v,T,O){return typeof T=="function"&&(O=T,T=null),P(v,T,O);function P(N,Z,U,k){return e(N,Z,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?dt([P,[N,Z,U],H,k||Date.now(),Date.now()]):typeof U=="function"&&U.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(v,T,O,P){return typeof O=="function"&&(P=O,O=null),N(v,T,O,P);function N(Z,U,k,H,ie){return n(Z,U,k,function($){$&&($.code==="EMFILE"||$.code==="ENFILE")?dt([N,[Z,U,k,H],$,ie||Date.now(),Date.now()]):typeof H=="function"&&H.apply(this,arguments)})}}var o=t.appendFile;o&&(t.appendFile=s);function s(v,T,O,P){return typeof O=="function"&&(P=O,O=null),N(v,T,O,P);function N(Z,U,k,H,ie){return o(Z,U,k,function($){$&&($.code==="EMFILE"||$.code==="ENFILE")?dt([N,[Z,U,k,H],$,ie||Date.now(),Date.now()]):typeof H=="function"&&H.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=f);function f(v,T,O,P){return typeof O=="function"&&(P=O,O=0),N(v,T,O,P);function N(Z,U,k,H,ie){return a(Z,U,k,function($){$&&($.code==="EMFILE"||$.code==="ENFILE")?dt([N,[Z,U,k,H],$,ie||Date.now(),Date.now()]):typeof H=="function"&&H.apply(this,arguments)})}}var d=t.readdir;t.readdir=F;var h=/^v[0-5]\./;function F(v,T,O){typeof T=="function"&&(O=T,T=null);var P=h.test(process.version)?function(U,k,H,ie){return d(U,N(U,k,H,ie))}:function(U,k,H,ie){return d(U,k,N(U,k,H,ie))};return P(v,T,O);function N(Z,U,k,H){return function(ie,$){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?dt([P,[Z,U,k],ie,H||Date.now(),Date.now()]):($&&$.sort&&$.sort(),typeof k=="function"&&k.call(this,ie,$))}}}if(process.version.substr(0,4)==="v0.8"){var y=Sc(t);m=y.ReadStream,u=y.WriteStream}var l=t.ReadStream;l&&(m.prototype=Object.create(l.prototype),m.prototype.open=C);var c=t.WriteStream;c&&(u.prototype=Object.create(c.prototype),u.prototype.open=E),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(v){m=v},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return u},set:function(v){u=v},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});var p=u;Object.defineProperty(t,"FileWriteStream",{get:function(){return p},set:function(v){p=v},enumerable:!0,configurable:!0});function m(v,T){return this instanceof m?(l.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var v=this;R(v.path,v.flags,v.mode,function(T,O){T?(v.autoClose&&v.destroy(),v.emit("error",T)):(v.fd=O,v.emit("open",O),v.read())})}function u(v,T){return this instanceof u?(c.apply(this,arguments),this):u.apply(Object.create(u.prototype),arguments)}function E(){var v=this;R(v.path,v.flags,v.mode,function(T,O){T?(v.destroy(),v.emit("error",T)):(v.fd=O,v.emit("open",O))})}function _(v,T){return new t.ReadStream(v,T)}function A(v,T){return new t.WriteStream(v,T)}var w=t.open;t.open=R;function R(v,T,O,P){return typeof O=="function"&&(P=O,O=null),N(v,T,O,P);function N(Z,U,k,H,ie){return w(Z,U,k,function($,rh){$&&($.code==="EMFILE"||$.code==="ENFILE")?dt([N,[Z,U,k,H],$,ie||Date.now(),Date.now()]):typeof H=="function"&&H.apply(this,arguments)})}}return t}function dt(t){Je("ENQUEUE",t[0].name,t[1]),X[se].push(t),Qn()}var xr;function yu(){for(var t=Date.now(),e=0;e<X[se].length;++e)X[se][e].length>2&&(X[se][e][3]=t,X[se][e][4]=t);Qn()}function Qn(){if(clearTimeout(xr),xr=void 0,X[se].length!==0){var t=X[se].shift(),e=t[0],r=t[1],n=t[2],i=t[3],o=t[4];if(i===void 0)Je("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){Je("TIMEOUT",e.name,r);var s=r.pop();typeof s=="function"&&s.call(null,n)}else{var a=Date.now()-o,f=Math.max(o-i,1),d=Math.min(f*1.2,100);a>=d?(Je("RETRY",e.name,r),e.apply(null,r.concat([i]))):X[se].push(t)}xr===void 0&&(xr=setTimeout(Qn,0))}}});var wu=S((R0,vu)=>{"use strict";D();function de(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}vu.exports=de;de.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};de.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};de.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift();else return!1;var n=this,i=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r);return this._options.unref&&i.unref(),!0};de.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};de.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};de.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};de.prototype.start=de.prototype.try;de.prototype.errors=function(){return this._errors};de.prototype.attempts=function(){return this._attempts};de.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],o=i.message,s=(t[o]||0)+1;t[o]=s,s>=r&&(e=i,r=s)}return e}});var bu=S(Qe=>{"use strict";D();var Tc=wu();Qe.operation=function(t){var e=Qe.timeouts(t);return new Tc(e,{forever:t&&t.forever,unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Qe.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(o,s){return o-s}),n};Qe.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*e.minTimeout*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};Qe.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var o=r[i],s=t[o];t[o]=function(f){var d=Qe.operation(e),h=Array.prototype.slice.call(arguments,1),F=h.pop();h.push(function(y){d.retry(y)||(y&&(arguments[0]=d.mainError()),F.apply(this,arguments))}),d.attempt(function(){f.apply(t,h)})}.bind(t,s),t[o].options=e}}});var Au=S((P0,Su)=>{"use strict";D();Su.exports=bu()});var Tu=S((k0,ri)=>{"use strict";D();var Ou=Symbol();function Bc(t,e,r){let n=e[Ou];if(n)return e.stat(t,(o,s)=>{if(o)return r(o);r(null,s.mtime,n)});let i=new Date(Math.ceil(Date.now()/1e3)*1e3+5);e.utimes(t,i,i,o=>{if(o)return r(o);e.stat(t,(s,a)=>{if(s)return r(s);let f=a.mtime.getTime()%1e3===0?"s":"ms";Object.defineProperty(e,Ou,{value:f}),r(null,a.mtime,f)})})}function Ic(t){let e=Date.now();return t==="s"&&(e=Math.ceil(e/1e3)*1e3),new Date(e)}ri.exports.probe=Bc;ri.exports.getMtime=Ic});var Nu=S((j0,Ut)=>{"use strict";D();var Rc=require("path"),oi=ti(),Lc=Au(),Nc=en(),Bu=Tu(),Ae={};function Pt(t,e){return e.lockfilePath||`${t}.lock`}function si(t,e,r){if(!e.realpath)return r(null,Rc.resolve(t));e.fs.realpath(t,r)}function ii(t,e,r){let n=Pt(t,e);e.fs.mkdir(n,i=>{if(!i)return Bu.probe(n,e.fs,(o,s,a)=>{if(o)return e.fs.rmdir(n,()=>{}),r(o);r(null,s,a)});if(i.code!=="EEXIST")return r(i);if(e.stale<=0)return r(Object.assign(new Error("Lock file is already being held"),{code:"ELOCKED",file:t}));e.fs.stat(n,(o,s)=>{if(o)return o.code==="ENOENT"?ii(t,{...e,stale:0},r):r(o);if(!Iu(s,e))return r(Object.assign(new Error("Lock file is already being held"),{code:"ELOCKED",file:t}));Ru(t,e,a=>{if(a)return r(a);ii(t,{...e,stale:0},r)})})})}function Iu(t,e){return t.mtime.getTime()<Date.now()-e.stale}function Ru(t,e,r){e.fs.rmdir(Pt(t,e),n=>{if(n&&n.code!=="ENOENT")return r(n);r()})}function wr(t,e){let r=Ae[t];r.updateTimeout||(r.updateDelay=r.updateDelay||e.update,r.updateTimeout=setTimeout(()=>{r.updateTimeout=null,e.fs.stat(r.lockfilePath,(n,i)=>{let o=r.lastUpdate+e.stale<Date.now();if(n)return n.code==="ENOENT"||o?ni(t,r,Object.assign(n,{code:"ECOMPROMISED"})):(r.updateDelay=1e3,wr(t,e));if(!(r.mtime.getTime()===i.mtime.getTime()))return ni(t,r,Object.assign(new Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let a=Bu.getMtime(r.mtimePrecision);e.fs.utimes(r.lockfilePath,a,a,f=>{let d=r.lastUpdate+e.stale<Date.now();if(!r.released){if(f)return f.code==="ENOENT"||d?ni(t,r,Object.assign(f,{code:"ECOMPROMISED"})):(r.updateDelay=1e3,wr(t,e));r.mtime=a,r.lastUpdate=Date.now(),r.updateDelay=null,wr(t,e)}})})},r.updateDelay),r.updateTimeout.unref&&r.updateTimeout.unref())}function ni(t,e,r){e.released=!0,e.updateTimeout&&clearTimeout(e.updateTimeout),Ae[t]===e&&delete Ae[t],e.options.onCompromised(r)}function Mc(t,e,r){e={stale:1e4,update:null,realpath:!0,retries:0,fs:oi,onCompromised:n=>{throw n},...e},e.retries=e.retries||0,e.retries=typeof e.retries=="number"?{retries:e.retries}:e.retries,e.stale=Math.max(e.stale||0,2e3),e.update=e.update==null?e.stale/2:e.update||0,e.update=Math.max(Math.min(e.update,e.stale/2),1e3),si(t,e,(n,i)=>{if(n)return r(n);let o=Lc.operation(e.retries);o.attempt(()=>{ii(i,e,(s,a,f)=>{if(o.retry(s))return;if(s)return r(o.mainError());let d=Ae[i]={lockfilePath:Pt(i,e),mtime:a,mtimePrecision:f,options:e,lastUpdate:Date.now()};wr(i,e),r(null,h=>{if(d.released)return h&&h(Object.assign(new Error("Lock is already released"),{code:"ERELEASED"}));Lu(i,{...e,realpath:!1},h)})})})})}function Lu(t,e,r){e={fs:oi,realpath:!0,...e},si(t,e,(n,i)=>{if(n)return r(n);let o=Ae[i];if(!o)return r(Object.assign(new Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));o.updateTimeout&&clearTimeout(o.updateTimeout),o.released=!0,delete Ae[i],Ru(i,e,r)})}function Pc(t,e,r){e={stale:1e4,realpath:!0,fs:oi,...e},e.stale=Math.max(e.stale||0,2e3),si(t,e,(n,i)=>{if(n)return r(n);e.fs.stat(Pt(i,e),(o,s)=>o?o.code==="ENOENT"?r(null,!1):r(o):r(null,!Iu(s,e)))})}function Uc(){return Ae}Nc(()=>{for(let t in Ae){let e=Ae[t].options;try{e.fs.rmdirSync(Pt(t,e))}catch{}}});Ut.exports.lock=Mc;Ut.exports.unlock=Lu;Ut.exports.check=Pc;Ut.exports.getLocks=Uc});var Pu=S(($0,Mu)=>{"use strict";D();var kc=ti();function Hc(t){let e=["mkdir","realpath","stat","rmdir","utimes"],r={...t};return e.forEach(n=>{r[n]=(...i)=>{let o=i.pop(),s;try{s=t[`${n}Sync`](...i)}catch(a){return o(a)}o(null,s)}}),r}function jc(t){return(...e)=>new Promise((r,n)=>{e.push((i,o)=>{i?n(i):r(o)}),t(...e)})}function Vc(t){return(...e)=>{let r,n;if(e.push((i,o)=>{r=i,n=o}),t(...e),r)throw r;return n}}function $c(t){if(t={...t},t.fs=Hc(t.fs||kc),typeof t.retries=="number"&&t.retries>0||t.retries&&typeof t.retries.retries=="number"&&t.retries.retries>0)throw Object.assign(new Error("Cannot use retries with the sync api"),{code:"ESYNC"});return t}Mu.exports={toPromise:jc,toSync:Vc,toSyncOptions:$c}});var ku=S((W0,Ue)=>{"use strict";D();var pt=Nu(),{toPromise:br,toSync:Sr,toSyncOptions:ui}=Pu();async function Uu(t,e){let r=await br(pt.lock)(t,e);return br(r)}function qc(t,e){let r=Sr(pt.lock)(t,ui(e));return Sr(r)}function Wc(t,e){return br(pt.unlock)(t,e)}function Gc(t,e){return Sr(pt.unlock)(t,ui(e))}function zc(t,e){return br(pt.check)(t,e)}function Zc(t,e){return Sr(pt.check)(t,ui(e))}Ue.exports=Uu;Ue.exports.lock=Uu;Ue.exports.unlock=Wc;Ue.exports.lockSync=qc;Ue.exports.unlockSync=Gc;Ue.exports.check=zc;Ue.exports.checkSync=Zc});D();D();var Ai=V(Si(),1),{program:Eh,createCommand:Fh,createArgument:_h,createOption:Ch,CommanderError:yh,InvalidArgumentError:xh,InvalidOptionArgumentError:vh,Command:Oi,Argument:wh,Option:bh,Help:Sh}=Ai.default;D();D();D();D();var Ti=(t=0)=>e=>`\x1B[${e+t}m`,Bi=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Ii=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,W={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]}},Th=Object.keys(W.modifier),Fa=Object.keys(W.color),_a=Object.keys(W.bgColor),Bh=[...Fa,..._a];function Ca(){let t=new Map;for(let[e,r]of Object.entries(W)){for(let[n,i]of Object.entries(r))W[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=W[n],t.set(i[0],i[1]);Object.defineProperty(W,e,{value:r,enumerable:!1})}return Object.defineProperty(W,"codes",{value:t,enumerable:!1}),W.color.close="\x1B[39m",W.bgColor.close="\x1B[49m",W.color.ansi=Ti(),W.color.ansi256=Bi(),W.color.ansi16m=Ii(),W.bgColor.ansi=Ti(10),W.bgColor.ansi256=Bi(10),W.bgColor.ansi16m=Ii(10),Object.defineProperties(W,{rgbToAnsi256:{value(e,r,n){return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:e=>W.rgbToAnsi256(...W.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let a=e%36;r=Math.floor(e/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let s=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>W.ansi256ToAnsi(W.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>W.ansi256ToAnsi(W.hexToAnsi256(e)),enumerable:!1}}),W}var ya=Ca(),me=ya;D();var qt=V(require("process"),1),Li=V(require("os"),1),Wr=V(require("tty"),1);function le(t,e=globalThis.Deno?globalThis.Deno.args:qt.default.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:G}=qt.default,$t;le("no-color")||le("no-colors")||le("color=false")||le("color=never")?$t=0:(le("color")||le("colors")||le("color=true")||le("color=always"))&&($t=1);function xa(){if("FORCE_COLOR"in G)return G.FORCE_COLOR==="true"?1:G.FORCE_COLOR==="false"?0:G.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(G.FORCE_COLOR,10),3)}function va(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function wa(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=xa();n!==void 0&&($t=n);let i=r?$t:n;if(i===0)return 0;if(r){if(le("color=16m")||le("color=full")||le("color=truecolor"))return 3;if(le("color=256"))return 2}if("TF_BUILD"in G&&"AGENT_NAME"in G)return 1;if(t&&!e&&i===void 0)return 0;let o=i||0;if(G.TERM==="dumb")return o;if(qt.default.platform==="win32"){let s=Li.default.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in G)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(s=>s in G)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in G)||G.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in G)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(G.TEAMCITY_VERSION)?1:0;if(G.COLORTERM==="truecolor"||G.TERM==="xterm-kitty"||G.TERM==="xterm-ghostty"||G.TERM==="wezterm")return 3;if("TERM_PROGRAM"in G){let s=Number.parseInt((G.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(G.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(G.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(G.TERM)||"COLORTERM"in G?1:o}function Ri(t,e={}){let r=wa(t,{streamIsTTY:t&&t.isTTY,...e});return va(r)}var ba={stdout:Ri({isTTY:Wr.default.isatty(1)}),stderr:Ri({isTTY:Wr.default.isatty(2)})},Ni=ba;D();function Mi(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let i=e.length,o=0,s="";do s+=t.slice(o,n)+e+r,o=n+i,n=t.indexOf(e,o);while(n!==-1);return s+=t.slice(o),s}function Pi(t,e,r,n){let i=0,o="";do{let s=t[n-1]==="\r";o+=t.slice(i,s?n-1:n)+e+(s?`\r
22
+ `)}),this}};function vi(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function wi(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",o;return(o=e.match(/^(--inspect(-brk)?)$/))!==null?r=o[1]:(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=o[1],/^\d+$/.test(o[3])?i=o[3]:n=o[3]):(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=o[1],n=o[3],i=o[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}bi.Command=zr});var Bi=A((ge,Ti)=>{"use strict";D();var{Argument:Fa}=$t(),{Command:Ai}=Si(),{CommanderError:_a,InvalidArgumentError:Oi}=Et(),{Help:Ca}=Hr(),{Option:ya}=$r();ge=Ti.exports=new Ai;ge.program=ge;ge.Command=Ai;ge.Option=ya;ge.Argument=Fa;ge.Help=Ca;ge.CommanderError=_a;ge.InvalidArgumentError=Oi;ge.InvalidOptionArgumentError=Oi});var Ki=A((eD,en)=>{"use strict";D();var Yi=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};en.exports=Yi;en.exports.default=Yi});var Ji=A((rD,Yt)=>{"use strict";D();var Ua=Ki(),Zt=new WeakMap,Xi=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",o=function(...s){if(Zt.set(o,++n),n===1)r=t.apply(this,s),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Ua(o,t),Zt.set(o,n),o};Yt.exports=Xi;Yt.exports.default=Xi;Yt.exports.callCount=t=>{if(!Zt.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Zt.get(t)}});var Qi=A((iD,Kt)=>{"use strict";D();Kt.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Kt.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Kt.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var nn=A((sD,st)=>{"use strict";D();var z=global.process,$e=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};$e(z)?(eo=require("assert"),it=Qi(),to=/^win/i.test(z.platform),yt=require("events"),typeof yt!="function"&&(yt=yt.EventEmitter),z.__signal_exit_emitter__?ne=z.__signal_exit_emitter__:(ne=z.__signal_exit_emitter__=new yt,ne.count=0,ne.emitted={}),ne.infinite||(ne.setMaxListeners(1/0),ne.infinite=!0),st.exports=function(t,e){if(!$e(global.process))return function(){};eo.equal(typeof t,"function","a callback must be provided for exit handler"),ot===!1&&tn();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){ne.removeListener(r,t),ne.listeners("exit").length===0&&ne.listeners("afterexit").length===0&&Xt()};return ne.on(r,t),n},Xt=function(){!ot||!$e(global.process)||(ot=!1,it.forEach(function(e){try{z.removeListener(e,Jt[e])}catch{}}),z.emit=Qt,z.reallyExit=rn,ne.count-=1)},st.exports.unload=Xt,qe=function(e,r,n){ne.emitted[e]||(ne.emitted[e]=!0,ne.emit(e,r,n))},Jt={},it.forEach(function(t){Jt[t]=function(){if($e(global.process)){var r=z.listeners(t);r.length===ne.count&&(Xt(),qe("exit",null,t),qe("afterexit",null,t),to&&t==="SIGHUP"&&(t="SIGINT"),z.kill(z.pid,t))}}}),st.exports.signals=function(){return it},ot=!1,tn=function(){ot||!$e(global.process)||(ot=!0,ne.count+=1,it=it.filter(function(e){try{return z.on(e,Jt[e]),!0}catch{return!1}}),z.emit=no,z.reallyExit=ro)},st.exports.load=tn,rn=z.reallyExit,ro=function(e){$e(global.process)&&(z.exitCode=e||0,qe("exit",z.exitCode,null),qe("afterexit",z.exitCode,null),rn.call(z,z.exitCode))},Qt=z.emit,no=function(e,r){if(e==="exit"&&$e(global.process)){r!==void 0&&(z.exitCode=r);var n=Qt.apply(this,arguments);return qe("exit",z.exitCode,null),qe("afterexit",z.exitCode,null),n}else return Qt.apply(this,arguments)}):st.exports=function(){return function(){}};var eo,it,to,yt,ne,Xt,qe,Jt,ot,tn,rn,ro,Qt,no});var ao=A((DD,Ha)=>{Ha.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var un=A((dD,fo)=>{"use strict";D();var tr=Object.assign({},ao()),lo=Object.keys(tr);Object.defineProperty(tr,"random",{get(){let t=Math.floor(Math.random()*lo.length),e=lo[t];return tr[e]}});fo.exports=tr});var ho=A((SD,ln)=>{"use strict";D();var Re={};typeof ln>"u"?window.eastasianwidth=Re:ln.exports=Re;Re.eastAsianWidth=function(t){var e=t.charCodeAt(0),r=t.length==2?t.charCodeAt(1):0,n=e;return 55296<=e&&e<=56319&&56320<=r&&r<=57343&&(e&=1023,r&=1023,n=e<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":n==8361||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||n==172||n==175||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":n==161||n==164||167<=n&&n<=168||n==170||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||n==198||n==208||215<=n&&n<=216||222<=n&&n<=225||n==230||232<=n&&n<=234||236<=n&&n<=237||n==240||242<=n&&n<=243||247<=n&&n<=250||n==252||n==254||n==257||n==273||n==275||n==283||294<=n&&n<=295||n==299||305<=n&&n<=307||n==312||319<=n&&n<=322||n==324||328<=n&&n<=331||n==333||338<=n&&n<=339||358<=n&&n<=359||n==363||n==462||n==464||n==466||n==468||n==470||n==472||n==474||n==476||n==593||n==609||n==708||n==711||713<=n&&n<=715||n==717||n==720||728<=n&&n<=731||n==733||n==735||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||n==1025||1040<=n&&n<=1103||n==1105||n==8208||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||n==8240||8242<=n&&n<=8243||n==8245||n==8251||n==8254||n==8308||n==8319||8321<=n&&n<=8324||n==8364||n==8451||n==8453||n==8457||n==8467||n==8470||8481<=n&&n<=8482||n==8486||n==8491||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||n==8585||8592<=n&&n<=8601||8632<=n&&n<=8633||n==8658||n==8660||n==8679||n==8704||8706<=n&&n<=8707||8711<=n&&n<=8712||n==8715||n==8719||n==8721||n==8725||n==8730||8733<=n&&n<=8736||n==8739||n==8741||8743<=n&&n<=8748||n==8750||8756<=n&&n<=8759||8764<=n&&n<=8765||n==8776||n==8780||n==8786||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||n==8853||n==8857||n==8869||n==8895||n==8978||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||n==9675||9678<=n&&n<=9681||9698<=n&&n<=9701||n==9711||9733<=n&&n<=9734||n==9737||9742<=n&&n<=9743||9748<=n&&n<=9749||n==9756||n==9758||n==9792||n==9794||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||n==9839||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||n==9955||9960<=n&&n<=9983||n==10045||n==10071||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||n==65533||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"};Re.characterLength=function(t){var e=this.eastAsianWidth(t);return e=="F"||e=="W"||e=="A"?2:1};function co(t){return t.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}Re.length=function(t){for(var e=co(t),r=0,n=0;n<e.length;n++)r=r+this.characterLength(e[n]);return r};Re.slice=function(t,e,r){textLen=Re.length(t),e=e||0,r=r||1,e<0&&(e=textLen+e),r<0&&(r=textLen+r);for(var n="",i=0,o=co(t),s=0;s<o.length;s++){var a=o[s],l=Re.length(a);if(i>=e-(l==2?1:0))if(i+l<=r)n+=a;else break;i+=l}return n}});var hn=A((MD,mo)=>{"use strict";D();mo.exports=require("stream")});var yo=A((kD,Co)=>{"use strict";D();function go(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Eo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?go(Object(r),!0).forEach(function(n){Wa(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):go(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Wa(t,e,r){return e=_o(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ga(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fo(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_o(n.key),n)}}function za(t,e,r){return e&&Fo(t.prototype,e),r&&Fo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function _o(t){var e=Za(t,"string");return typeof e=="symbol"?e:String(e)}function Za(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ya=require("buffer"),rr=Ya.Buffer,Ka=require("util"),Dn=Ka.inspect,Xa=Dn&&Dn.custom||"inspect";function Ja(t,e,r){rr.prototype.copy.call(t,e,r)}Co.exports=(function(){function t(){Ga(this,t),this.head=null,this.tail=null,this.length=0}return za(t,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return rr.alloc(0);for(var n=rr.allocUnsafe(r>>>0),i=this.head,o=0;i;)Ja(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,o=n.data;for(r-=o.length;n=n.next;){var s=n.data,a=r>s.length?s.length:r;if(a===s.length?o+=s:o+=s.slice(0,r),r-=a,r===0){a===s.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(a));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(r){var n=rr.allocUnsafe(r),i=this.head,o=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var s=i.data,a=r>s.length?s.length:r;if(s.copy(n,n.length-r,0,a),r-=a,r===0){a===s.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(a));break}++o}return this.length-=o,n}},{key:Xa,value:function(r,n){return Dn(this,Eo(Eo({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var pn=A((jD,vo)=>{"use strict";D();function Qa(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(dn,this,t)):process.nextTick(dn,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(o){!e&&o?r._writableState?r._writableState.errorEmitted?process.nextTick(nr,r):(r._writableState.errorEmitted=!0,process.nextTick(xo,r,o)):process.nextTick(xo,r,o):e?(process.nextTick(nr,r),e(o)):process.nextTick(nr,r)}),this)}function xo(t,e){dn(t,e),nr(t)}function nr(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function el(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function dn(t,e){t.emit("error",e)}function tl(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}vo.exports={destroy:Qa,undestroy:el,errorOrDestroy:tl}});var Le=A(($D,So)=>{"use strict";D();var bo={};function he(t,e,r){r||(r=Error);function n(o,s,a){return typeof e=="string"?e:e(o,s,a)}class i extends r{constructor(s,a,l){super(n(s,a,l))}}i.prototype.name=r.name,i.prototype.code=t,bo[t]=i}function wo(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(n=>String(n)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function rl(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function nl(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function il(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}he("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);he("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&rl(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(nl(t," argument"))i=`The ${t} ${n} ${wo(e,"type")}`;else{let o=il(t,".")?"property":"argument";i=`The "${t}" ${o} ${n} ${wo(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);he("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");he("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});he("ERR_STREAM_PREMATURE_CLOSE","Premature close");he("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});he("ERR_MULTIPLE_CALLBACK","Callback called multiple times");he("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");he("ERR_STREAM_WRITE_AFTER_END","write after end");he("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);he("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);he("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");So.exports.codes=bo});var mn=A((WD,Ao)=>{"use strict";D();var ol=Le().codes.ERR_INVALID_OPT_VALUE;function sl(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function ul(t,e,r,n){var i=sl(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?r:"highWaterMark";throw new ol(o,i)}return Math.floor(i)}return t.objectMode?16:16*1024}Ao.exports={getHighWaterMark:ul}});var Oo=A((zD,gn)=>{"use strict";D();typeof Object.create=="function"?gn.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:gn.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var We=A((YD,Fn)=>{"use strict";D();try{if(En=require("util"),typeof En.inherits!="function")throw"";Fn.exports=En.inherits}catch{Fn.exports=Oo()}var En});var Bo=A((XD,To)=>{"use strict";D();To.exports=require("util").deprecate});var yn=A((QD,Mo)=>{"use strict";D();Mo.exports=J;function Ro(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Ll(e,t)}}var at;J.WritableState=St;var al={deprecate:Bo()},Lo=hn(),or=require("buffer").Buffer,ll=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function fl(t){return or.from(t)}function cl(t){return or.isBuffer(t)||t instanceof ll}var Cn=pn(),hl=mn(),Dl=hl.getHighWaterMark,Ne=Le().codes,dl=Ne.ERR_INVALID_ARG_TYPE,pl=Ne.ERR_METHOD_NOT_IMPLEMENTED,ml=Ne.ERR_MULTIPLE_CALLBACK,gl=Ne.ERR_STREAM_CANNOT_PIPE,El=Ne.ERR_STREAM_DESTROYED,Fl=Ne.ERR_STREAM_NULL_VALUES,_l=Ne.ERR_STREAM_WRITE_AFTER_END,Cl=Ne.ERR_UNKNOWN_ENCODING,lt=Cn.errorOrDestroy;We()(J,Lo);function yl(){}function St(t,e,r){at=at||Ge(),t=t||{},typeof r!="boolean"&&(r=e instanceof at),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Dl(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Ol(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ro(this)}St.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(St.prototype,"buffer",{get:al.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ir;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ir=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(e){return ir.call(this,e)?!0:this!==J?!1:e&&e._writableState instanceof St}})):ir=function(e){return e instanceof this};function J(t){at=at||Ge();var e=this instanceof at;if(!e&&!ir.call(J,this))return new J(t);this._writableState=new St(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Lo.call(this)}J.prototype.pipe=function(){lt(this,new gl)};function xl(t,e){var r=new _l;lt(t,r),process.nextTick(e,r)}function vl(t,e,r,n){var i;return r===null?i=new Fl:typeof r!="string"&&!e.objectMode&&(i=new dl("chunk",["string","Buffer"],r)),i?(lt(t,i),process.nextTick(n,i),!1):!0}J.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=!n.objectMode&&cl(t);return o&&!or.isBuffer(t)&&(t=fl(t)),typeof e=="function"&&(r=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=yl),n.ending?xl(this,r):(o||vl(this,n,t,r))&&(n.pendingcb++,i=bl(this,n,o,t,e,r)),i};J.prototype.cork=function(){this._writableState.corked++};J.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&No(this,t))};J.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Cl(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function wl(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=or.from(e,r)),e}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function bl(t,e,r,n,i,o){if(!r){var s=wl(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var d=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},d?d.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else _n(t,e,!1,a,n,i,o);return l}function _n(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new El("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function Sl(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(bt,t,e),t._writableState.errorEmitted=!0,lt(t,n)):(i(n),t._writableState.errorEmitted=!0,lt(t,n),bt(t,e))}function Al(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Ol(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new ml;if(Al(r),e)Sl(t,r,n,e,i);else{var o=Po(r)||t.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&No(t,r),n?process.nextTick(Io,t,r,o,i):Io(t,r,o,i)}}function Io(t,e,r,n){r||Tl(t,e),e.pendingcb--,n(),bt(t,e)}function Tl(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function No(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,a=!0;r;)i[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;i.allBuffers=a,_n(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new Ro(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,d=r.encoding,c=r.callback,F=e.objectMode?1:l.length;if(_n(t,e,!1,F,l,d,c),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}J.prototype._write=function(t,e,r){r(new pl("_write()"))};J.prototype._writev=null;J.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||Rl(this,n,r),this};Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Po(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Bl(t,e){t._final(function(r){e.pendingcb--,r&&lt(t,r),e.prefinished=!0,t.emit("prefinish"),bt(t,e)})}function Il(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Bl,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function bt(t,e){var r=Po(e);if(r&&(Il(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function Rl(t,e,r){e.ending=!0,bt(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Ll(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});J.prototype.destroy=Cn.destroy;J.prototype._undestroy=Cn.undestroy;J.prototype._destroy=function(t,e){e(t)}});var Ge=A((td,ko)=>{"use strict";D();var Nl=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};ko.exports=xe;var Uo=wn(),vn=yn();We()(xe,Uo);for(xn=Nl(vn.prototype),sr=0;sr<xn.length;sr++)ur=xn[sr],xe.prototype[ur]||(xe.prototype[ur]=vn.prototype[ur]);var xn,ur,sr;function xe(t){if(!(this instanceof xe))return new xe(t);Uo.call(this,t),vn.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Pl)))}Object.defineProperty(xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(xe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(xe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Pl(){this._writableState.ended||process.nextTick(Ml,this)}function Ml(t){t.end()}Object.defineProperty(xe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var Vo=A((bn,jo)=>{"use strict";D();var ar=require("buffer"),ve=ar.Buffer;function Ho(t,e){for(var r in t)e[r]=t[r]}ve.from&&ve.alloc&&ve.allocUnsafe&&ve.allocUnsafeSlow?jo.exports=ar:(Ho(ar,bn),bn.Buffer=ze);function ze(t,e,r){return ve(t,e,r)}ze.prototype=Object.create(ve.prototype);Ho(ve,ze);ze.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ve(t,e,r)};ze.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=ve(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};ze.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ve(t)};ze.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ar.SlowBuffer(t)}});var On=A(qo=>{"use strict";D();var An=Vo().Buffer,$o=An.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Ul(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function kl(t){var e=Ul(t);if(typeof e!="string"&&(An.isEncoding===$o||!$o(t)))throw new Error("Unknown encoding: "+t);return e||t}qo.StringDecoder=At;function At(t){this.encoding=kl(t);var e;switch(this.encoding){case"utf16le":this.text=Wl,this.end=Gl,e=4;break;case"utf8":this.fillLast=Vl,e=4;break;case"base64":this.text=zl,this.end=Zl,e=3;break;default:this.write=Yl,this.end=Kl;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=An.allocUnsafe(e)}At.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};At.prototype.end=ql;At.prototype.text=$l;At.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Sn(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Hl(t,e,r){var n=e.length-1;if(n<r)return 0;var i=Sn(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=Sn(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=Sn(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function jl(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function Vl(t){var e=this.lastTotal-this.lastNeed,r=jl(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function $l(t,e){var r=Hl(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function ql(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Wl(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Gl(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function zl(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function Zl(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Yl(t){return t.toString(this.encoding)}function Kl(t){return t&&t.length?this.write(t):""}});var lr=A((sd,zo)=>{"use strict";D();var Wo=Le().codes.ERR_STREAM_PREMATURE_CLOSE;function Xl(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function Jl(){}function Ql(t){return t.setHeader&&typeof t.abort=="function"}function Go(t,e,r){if(typeof e=="function")return Go(t,null,e);e||(e={}),r=Xl(r||Jl);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,o=function(){t.writable||a()},s=t._writableState&&t._writableState.finished,a=function(){i=!1,s=!0,n||r.call(t)},l=t._readableState&&t._readableState.endEmitted,d=function(){n=!1,l=!0,i||r.call(t)},c=function(h){r.call(t,h)},F=function(){var h;if(n&&!l)return(!t._readableState||!t._readableState.ended)&&(h=new Wo),r.call(t,h);if(i&&!s)return(!t._writableState||!t._writableState.ended)&&(h=new Wo),r.call(t,h)},y=function(){t.req.on("finish",a)};return Ql(t)?(t.on("complete",a),t.on("abort",F),t.req?y():t.on("request",y)):i&&!t._writableState&&(t.on("end",o),t.on("close",o)),t.on("end",d),t.on("finish",a),e.error!==!1&&t.on("error",c),t.on("close",F),function(){t.removeListener("complete",a),t.removeListener("abort",F),t.removeListener("request",y),t.req&&t.req.removeListener("finish",a),t.removeListener("end",o),t.removeListener("close",o),t.removeListener("finish",a),t.removeListener("end",d),t.removeListener("error",c),t.removeListener("close",F)}}zo.exports=Go});var Yo=A((ad,Zo)=>{"use strict";D();var fr;function Pe(t,e,r){return e=ef(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ef(t){var e=tf(t,"string");return typeof e=="symbol"?e:String(e)}function tf(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var rf=lr(),Me=Symbol("lastResolve"),Ze=Symbol("lastReject"),Ot=Symbol("error"),cr=Symbol("ended"),Ye=Symbol("lastPromise"),Tn=Symbol("handlePromise"),Ke=Symbol("stream");function Ue(t,e){return{value:t,done:e}}function nf(t){var e=t[Me];if(e!==null){var r=t[Ke].read();r!==null&&(t[Ye]=null,t[Me]=null,t[Ze]=null,e(Ue(r,!1)))}}function of(t){process.nextTick(nf,t)}function sf(t,e){return function(r,n){t.then(function(){if(e[cr]){r(Ue(void 0,!0));return}e[Tn](r,n)},n)}}var uf=Object.getPrototypeOf(function(){}),af=Object.setPrototypeOf((fr={get stream(){return this[Ke]},next:function(){var e=this,r=this[Ot];if(r!==null)return Promise.reject(r);if(this[cr])return Promise.resolve(Ue(void 0,!0));if(this[Ke].destroyed)return new Promise(function(s,a){process.nextTick(function(){e[Ot]?a(e[Ot]):s(Ue(void 0,!0))})});var n=this[Ye],i;if(n)i=new Promise(sf(n,this));else{var o=this[Ke].read();if(o!==null)return Promise.resolve(Ue(o,!1));i=new Promise(this[Tn])}return this[Ye]=i,i}},Pe(fr,Symbol.asyncIterator,function(){return this}),Pe(fr,"return",function(){var e=this;return new Promise(function(r,n){e[Ke].destroy(null,function(i){if(i){n(i);return}r(Ue(void 0,!0))})})}),fr),uf),lf=function(e){var r,n=Object.create(af,(r={},Pe(r,Ke,{value:e,writable:!0}),Pe(r,Me,{value:null,writable:!0}),Pe(r,Ze,{value:null,writable:!0}),Pe(r,Ot,{value:null,writable:!0}),Pe(r,cr,{value:e._readableState.endEmitted,writable:!0}),Pe(r,Tn,{value:function(o,s){var a=n[Ke].read();a?(n[Ye]=null,n[Me]=null,n[Ze]=null,o(Ue(a,!1))):(n[Me]=o,n[Ze]=s)},writable:!0}),r));return n[Ye]=null,rf(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[Ze];o!==null&&(n[Ye]=null,n[Me]=null,n[Ze]=null,o(i)),n[Ot]=i;return}var s=n[Me];s!==null&&(n[Ye]=null,n[Me]=null,n[Ze]=null,s(Ue(void 0,!0))),n[cr]=!0}),e.on("readable",of.bind(null,n)),n};Zo.exports=lf});var Qo=A((fd,Jo)=>{"use strict";D();function Ko(t,e,r,n,i,o,s){try{var a=t[o](s),l=a.value}catch(d){r(d);return}a.done?e(l):Promise.resolve(l).then(n,i)}function ff(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function s(l){Ko(o,n,i,s,a,"next",l)}function a(l){Ko(o,n,i,s,a,"throw",l)}s(void 0)})}}function Xo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function cf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Xo(Object(r),!0).forEach(function(n){hf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function hf(t,e,r){return e=Df(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Df(t){var e=df(t,"string");return typeof e=="symbol"?e:String(e)}function df(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var pf=Le().codes.ERR_INVALID_ARG_TYPE;function mf(t,e,r){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new pf("iterable",["Iterable"],e);var i=new t(cf({objectMode:!0},r)),o=!1;i._read=function(){o||(o=!0,s())};function s(){return a.apply(this,arguments)}function a(){return a=ff(function*(){try{var l=yield n.next(),d=l.value,c=l.done;c?i.push(null):i.push(yield d)?s():o=!1}catch(F){i.destroy(F)}}),a.apply(this,arguments)}return i}Jo.exports=mf});var wn=A((Dd,ls)=>{"use strict";D();ls.exports=L;var ft;L.ReadableState=ns;var hd=require("events").EventEmitter,rs=function(e,r){return e.listeners(r).length},Bt=hn(),hr=require("buffer").Buffer,gf=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Ef(t){return hr.from(t)}function Ff(t){return hr.isBuffer(t)||t instanceof gf}var Bn=require("util"),B;Bn&&Bn.debuglog?B=Bn.debuglog("stream"):B=function(){};var _f=yo(),Un=pn(),Cf=mn(),yf=Cf.getHighWaterMark,Dr=Le().codes,xf=Dr.ERR_INVALID_ARG_TYPE,vf=Dr.ERR_STREAM_PUSH_AFTER_EOF,wf=Dr.ERR_METHOD_NOT_IMPLEMENTED,bf=Dr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ct,In,Rn;We()(L,Bt);var Tt=Un.errorOrDestroy,Ln=["error","close","destroy","pause","resume"];function Sf(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function ns(t,e,r){ft=ft||Ge(),t=t||{},typeof r!="boolean"&&(r=e instanceof ft),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=yf(this,t,"readableHighWaterMark",r),this.buffer=new _f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(ct||(ct=On().StringDecoder),this.decoder=new ct(t.encoding),this.encoding=t.encoding)}function L(t){if(ft=ft||Ge(),!(this instanceof L))return new L(t);var e=this instanceof ft;this._readableState=new ns(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Bt.call(this)}Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});L.prototype.destroy=Un.destroy;L.prototype._undestroy=Un.undestroy;L.prototype._destroy=function(t,e){e(t)};L.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=hr.from(t,e),e=""),n=!0),is(this,t,e,!1,n)};L.prototype.unshift=function(t){return is(this,t,null,!0,!1)};function is(t,e,r,n,i){B("readableAddChunk",e);var o=t._readableState;if(e===null)o.reading=!1,Tf(t,o);else{var s;if(i||(s=Af(o,e)),s)Tt(t,s);else if(o.objectMode||e&&e.length>0)if(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==hr.prototype&&(e=Ef(e)),n)o.endEmitted?Tt(t,new bf):Nn(t,o,e,!0);else if(o.ended)Tt(t,new vf);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||e.length!==0?Nn(t,o,e,!1):Mn(t,o)):Nn(t,o,e,!1)}else n||(o.reading=!1,Mn(t,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function Nn(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&dr(t)),Mn(t,e)}function Af(t,e){var r;return!Ff(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new xf("chunk",["string","Buffer","Uint8Array"],e)),r}L.prototype.isPaused=function(){return this._readableState.flowing===!1};L.prototype.setEncoding=function(t){ct||(ct=On().StringDecoder);var e=new ct(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var es=1073741824;function Of(t){return t>=es?t=es:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function ts(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=Of(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}L.prototype.read=function(t){B("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return B("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Pn(this):dr(this),null;if(t=ts(t,e),t===0&&e.ended)return e.length===0&&Pn(this),null;var n=e.needReadable;B("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,B("length less than watermark",n)),e.ended||e.reading?(n=!1,B("reading or ended",n)):n&&(B("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=ts(r,e)));var i;return t>0?i=us(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Pn(this)),i!==null&&this.emit("data",i),i};function Tf(t,e){if(B("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?dr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,os(t)))}}function dr(t){var e=t._readableState;B("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(B("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(os,t))}function os(t){var e=t._readableState;B("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,kn(t)}function Mn(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(Bf,t,e))}function Bf(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(B("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}L.prototype._read=function(t){Tt(this,new wf("_read()"))};L.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,B("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,o=i?a:m;n.endEmitted?process.nextTick(o):r.once("end",o),t.on("unpipe",s);function s(p,g){B("onunpipe"),p===r&&g&&g.hasUnpiped===!1&&(g.hasUnpiped=!0,c())}function a(){B("onend"),t.end()}var l=If(r);t.on("drain",l);var d=!1;function c(){B("cleanup"),t.removeListener("close",f),t.removeListener("finish",h),t.removeListener("drain",l),t.removeListener("error",y),t.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",m),r.removeListener("data",F),d=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",F);function F(p){B("ondata");var g=t.write(p);B("dest.write",g),g===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&as(n.pipes,t)!==-1)&&!d&&(B("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function y(p){B("onerror",p),m(),t.removeListener("error",y),rs(t,"error")===0&&Tt(t,p)}Sf(t,"error",y);function f(){t.removeListener("finish",h),m()}t.once("close",f);function h(){B("onfinish"),t.removeListener("close",f),m()}t.once("finish",h);function m(){B("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(B("pipe resume"),r.resume()),t};function If(t){return function(){var r=t._readableState;B("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&rs(t,"data")&&(r.flowing=!0,kn(t))}}L.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=as(e.pipes,t);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};L.prototype.on=function(t,e){var r=Bt.prototype.on.call(this,t,e),n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,B("on readable",n.length,n.reading),n.length?dr(this):n.reading||process.nextTick(Rf,this)),r};L.prototype.addListener=L.prototype.on;L.prototype.removeListener=function(t,e){var r=Bt.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(ss,this),r};L.prototype.removeAllListeners=function(t){var e=Bt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(ss,this),e};function ss(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function Rf(t){B("readable nexttick read 0"),t.read(0)}L.prototype.resume=function(){var t=this._readableState;return t.flowing||(B("resume"),t.flowing=!t.readableListening,Lf(this,t)),t.paused=!1,this};function Lf(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Nf,t,e))}function Nf(t,e){B("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),kn(t),e.flowing&&!e.reading&&t.read(0)}L.prototype.pause=function(){return B("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(B("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function kn(t){var e=t._readableState;for(B("flow",e.flowing);e.flowing&&t.read()!==null;);}L.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(B("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(B("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var a=e.push(s);a||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=(function(a){return function(){return t[a].apply(t,arguments)}})(i));for(var o=0;o<Ln.length;o++)t.on(Ln[o],this.emit.bind(this,Ln[o]));return this._read=function(s){B("wrapped _read",s),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(L.prototype[Symbol.asyncIterator]=function(){return In===void 0&&(In=Yo()),In(this)});Object.defineProperty(L.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(L.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(L.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});L._fromList=us;Object.defineProperty(L.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function us(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Pn(t){var e=t._readableState;B("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Pf,e,t))}function Pf(t,e){if(B("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(L.from=function(t,e){return Rn===void 0&&(Rn=Qo()),Rn(L,t,e)});function as(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var Hn=A((pd,cs)=>{"use strict";D();cs.exports=Oe;var pr=Le().codes,Mf=pr.ERR_METHOD_NOT_IMPLEMENTED,Uf=pr.ERR_MULTIPLE_CALLBACK,kf=pr.ERR_TRANSFORM_ALREADY_TRANSFORMING,Hf=pr.ERR_TRANSFORM_WITH_LENGTH_0,mr=Ge();We()(Oe,mr);function jf(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Uf);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function Oe(t){if(!(this instanceof Oe))return new Oe(t);mr.call(this,t),this._transformState={afterTransform:jf.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Vf)}function Vf(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){fs(t,e,r)}):fs(this,null,null)}Oe.prototype.push=function(t,e){return this._transformState.needTransform=!1,mr.prototype.push.call(this,t,e)};Oe.prototype._transform=function(t,e,r){r(new Mf("_transform()"))};Oe.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Oe.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Oe.prototype._destroy=function(t,e){mr.prototype._destroy.call(this,t,function(r){e(r)})};function fs(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Hf;if(t._transformState.transforming)throw new kf;return t.push(null)}});var ds=A((gd,Ds)=>{"use strict";D();Ds.exports=It;var hs=Hn();We()(It,hs);function It(t){if(!(this instanceof It))return new It(t);hs.call(this,t)}It.prototype._transform=function(t,e,r){r(null,t)}});var Fs=A((Fd,Es)=>{"use strict";D();var jn;function $f(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var gs=Le().codes,qf=gs.ERR_MISSING_ARGS,Wf=gs.ERR_STREAM_DESTROYED;function ps(t){if(t)throw t}function Gf(t){return t.setHeader&&typeof t.abort=="function"}function zf(t,e,r,n){n=$f(n);var i=!1;t.on("close",function(){i=!0}),jn===void 0&&(jn=lr()),jn(t,{readable:e,writable:r},function(s){if(s)return n(s);i=!0,n()});var o=!1;return function(s){if(!i&&!o){if(o=!0,Gf(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(s||new Wf("pipe"))}}}function ms(t){t()}function Zf(t,e){return t.pipe(e)}function Yf(t){return!t.length||typeof t[t.length-1]!="function"?ps:t.pop()}function Kf(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Yf(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new qf("streams");var i,o=e.map(function(s,a){var l=a<e.length-1,d=a>0;return zf(s,l,d,function(c){i||(i=c),c&&o.forEach(ms),!l&&(o.forEach(ms),n(i))})});return e.reduce(Zf)}Es.exports=Kf});var _s=A((De,Lt)=>{"use strict";D();var Rt=require("stream");process.env.READABLE_STREAM==="disable"&&Rt?(Lt.exports=Rt.Readable,Object.assign(Lt.exports,Rt),Lt.exports.Stream=Rt):(De=Lt.exports=wn(),De.Stream=Rt||De,De.Readable=De,De.Writable=yn(),De.Duplex=Ge(),De.Transform=Hn(),De.PassThrough=ds(),De.finished=lr(),De.pipeline=Fs())});var xs=A((yd,ys)=>{"use strict";D();var{Buffer:_e}=require("buffer"),Cs=Symbol.for("BufferList");function j(t){if(!(this instanceof j))return new j(t);j._init.call(this,t)}j._init=function(e){Object.defineProperty(this,Cs,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};j.prototype._new=function(e){return new j(e)};j.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(e<i||n===this._bufs.length-1)return[n,e-r];r=i}};j.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let n=0;n<e;n++)r+=this._bufs[n].length;return r};j.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};j.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};j.prototype.copy=function(e,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return e||_e.alloc(0);let o=!!e,s=this._offset(n),a=i-n,l=a,d=o&&r||0,c=s[1];if(n===0&&i===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:_e.concat(this._bufs,this.length);for(let F=0;F<this._bufs.length;F++)this._bufs[F].copy(e,d),d+=this._bufs[F].length;return e}if(l<=this._bufs[s[0]].length-c)return o?this._bufs[s[0]].copy(e,r,c,c+l):this._bufs[s[0]].slice(c,c+l);o||(e=_e.allocUnsafe(a));for(let F=s[0];F<this._bufs.length;F++){let y=this._bufs[F].length-c;if(l>y)this._bufs[F].copy(e,d,c),d+=y;else{this._bufs[F].copy(e,d,c,c+l),d+=y;break}l-=y,c&&(c=0)}return e.length>d?e.slice(0,d):e};j.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let n=this._offset(e),i=this._offset(r),o=this._bufs.slice(n[0],i[0]+1);return i[1]===0?o.pop():o[o.length-1]=o[o.length-1].slice(0,i[1]),n[1]!==0&&(o[0]=o[0].slice(n[1])),this._new(o)};j.prototype.toString=function(e,r,n){return this.slice(r,n).toString(e)};j.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};j.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};j.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(_e.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let r=0;r<e.length;r++)this.append(e[r]);else if(this._isBufferList(e))for(let r=0;r<e._bufs.length;r++)this.append(e._bufs[r]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(_e.from(e));return this};j.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};j.prototype.indexOf=function(t,e,r){if(r===void 0&&typeof e=="string"&&(r=e,e=void 0),typeof t=="function"||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof t=="number"?t=_e.from([t]):typeof t=="string"?t=_e.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=_e.from(t.buffer,t.byteOffset,t.byteLength):_e.isBuffer(t)||(t=_e.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),t.length===0)return e>this.length?this.length:e;let n=this._offset(e),i=n[0],o=n[1];for(;i<this._bufs.length;i++){let s=this._bufs[i];for(;o<s.length;)if(s.length-o>=t.length){let l=s.indexOf(t,o);if(l!==-1)return this._reverseOffset([i,l]);o=s.length-t.length+1}else{let l=this._reverseOffset([i,o]);if(this._match(l,t))return l;o++}o=0}return-1};j.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0};(function(){let t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in t)(function(r){t[r]===null?j.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:j.prototype[r]=function(n=0){return this.slice(n,n+t[r])[r](0)}})(e)})();j.prototype._isBufferList=function(e){return e instanceof j||j.isBufferList(e)};j.isBufferList=function(e){return e!=null&&e[Cs]};ys.exports=j});var vs=A((vd,gr)=>{"use strict";D();var Vn=_s().Duplex,Xf=We(),Nt=xs();function ue(t){if(!(this instanceof ue))return new ue(t);if(typeof t=="function"){this._callback=t;let e=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",e)}),this.on("unpipe",function(n){n.removeListener("error",e)}),t=null}Nt._init.call(this,t),Vn.call(this)}Xf(ue,Vn);Object.assign(ue.prototype,Nt.prototype);ue.prototype._new=function(e){return new ue(e)};ue.prototype._write=function(e,r,n){this._appendBuffer(e),typeof n=="function"&&n()};ue.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};ue.prototype.end=function(e){Vn.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};ue.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};ue.prototype._isBufferList=function(e){return e instanceof ue||e instanceof Nt||ue.isBufferList(e)};ue.isBufferList=Nt.isBufferList;gr.exports=ue;gr.exports.BufferListStream=ue;gr.exports.BufferList=Nt});var Yn=A((Jd,Rs)=>{"use strict";D();Rs.exports={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24}});var Fr=A(Ns=>{"use strict";D();var Ls={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",DESCRIPTOR_NOT_EXIST:"No descriptor present",DESCRIPTOR_UNKNOWN:"Unknown descriptor format",DESCRIPTOR_FAULTY:"Descriptor data is malformed",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed {0}",FILE_IN_THE_WAY:"There is a file in the way: {0}",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",DISK_ENTRY_TOO_LARGE:"Number of disk entries is too large",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:'File not found: "{0}"',NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found",INVALID_PASS_PARAM:"Incompatible password parameter",WRONG_PASSWORD:"Wrong Password",COMMENT_TOO_LONG:"Comment is too long",EXTRA_FIELD_PARSE_ERROR:"Extra field parsing error"};function ic(t){return function(...e){return e.length&&(t=t.replace(/\{(\d)\}/g,(r,n)=>e[n]||"")),new Error("ADM-ZIP: "+t)}}for(let t of Object.keys(Ls))Ns[t]=ic(Ls[t])});var Hs=A((rp,ks)=>{"use strict";D();var oc=require("fs"),re=require("path"),Ps=Yn(),sc=Fr(),uc=typeof process=="object"&&process.platform==="win32",Ms=t=>typeof t=="object"&&t!==null,Us=new Uint32Array(256).map((t,e)=>{for(let r=0;r<8;r++)(e&1)!==0?e=3988292384^e>>>1:e>>>=1;return e>>>0});function Q(t){this.sep=re.sep,this.fs=oc,Ms(t)&&Ms(t.fs)&&typeof t.fs.statSync=="function"&&(this.fs=t.fs)}ks.exports=Q;Q.prototype.makeDir=function(t){let e=this;function r(n){let i=n.split(e.sep)[0];n.split(e.sep).forEach(function(o){if(!(!o||o.substr(-1,1)===":")){i+=e.sep+o;var s;try{s=e.fs.statSync(i)}catch{e.fs.mkdirSync(i)}if(s&&s.isFile())throw sc.FILE_IN_THE_WAY(`"${i}"`)}})}r(t)};Q.prototype.writeFileTo=function(t,e,r,n){let i=this;if(i.fs.existsSync(t)){if(!r)return!1;var o=i.fs.statSync(t);if(o.isDirectory())return!1}var s=re.dirname(t);i.fs.existsSync(s)||i.makeDir(s);var a;try{a=i.fs.openSync(t,"w",438)}catch{i.fs.chmodSync(t,438),a=i.fs.openSync(t,"w",438)}if(a)try{i.fs.writeSync(a,e,0,e.length,0)}finally{i.fs.closeSync(a)}return i.fs.chmodSync(t,n||438),!0};Q.prototype.writeFileToAsync=function(t,e,r,n,i){typeof n=="function"&&(i=n,n=void 0);let o=this;o.fs.exists(t,function(s){if(s&&!r)return i(!1);o.fs.stat(t,function(a,l){if(s&&l.isDirectory())return i(!1);var d=re.dirname(t);o.fs.exists(d,function(c){c||o.makeDir(d),o.fs.open(t,"w",438,function(F,y){F?o.fs.chmod(t,438,function(){o.fs.open(t,"w",438,function(f,h){o.fs.write(h,e,0,e.length,0,function(){o.fs.close(h,function(){o.fs.chmod(t,n||438,function(){i(!0)})})})})}):y?o.fs.write(y,e,0,e.length,0,function(){o.fs.close(y,function(){o.fs.chmod(t,n||438,function(){i(!0)})})}):o.fs.chmod(t,n||438,function(){i(!0)})})})})})};Q.prototype.findFiles=function(t){let e=this;function r(n,i,o){typeof i=="boolean"&&(o=i,i=void 0);let s=[];return e.fs.readdirSync(n).forEach(function(a){let l=re.join(n,a),d=e.fs.statSync(l);(!i||i.test(l))&&s.push(re.normalize(l)+(d.isDirectory()?e.sep:"")),d.isDirectory()&&o&&(s=s.concat(r(l,i,o)))}),s}return r(t,void 0,!0)};Q.prototype.findFilesAsync=function(t,e){let r=this,n=[];r.fs.readdir(t,function(i,o){if(i)return e(i);let s=o.length;if(!s)return e(null,n);o.forEach(function(a){a=re.join(t,a),r.fs.stat(a,function(l,d){if(l)return e(l);d&&(n.push(re.normalize(a)+(d.isDirectory()?r.sep:"")),d.isDirectory()?r.findFilesAsync(a,function(c,F){if(c)return e(c);n=n.concat(F),--s||e(null,n)}):--s||e(null,n))})})})};Q.prototype.getAttributes=function(){};Q.prototype.setAttributes=function(){};Q.crc32update=function(t,e){return Us[(t^e)&255]^t>>>8};Q.crc32=function(t){typeof t=="string"&&(t=Buffer.from(t,"utf8"));let e=t.length,r=-1;for(let n=0;n<e;)r=Q.crc32update(r,t[n++]);return~r>>>0};Q.methodToString=function(t){switch(t){case Ps.STORED:return"STORED ("+t+")";case Ps.DEFLATED:return"DEFLATED ("+t+")";default:return"UNSUPPORTED ("+t+")"}};Q.canonical=function(t){if(!t)return"";let e=re.posix.normalize("/"+t.split("\\").join("/"));return re.join(".",e)};Q.zipnamefix=function(t){if(!t)return"";let e=re.posix.normalize("/"+t.split("\\").join("/"));return re.posix.join(".",e)};Q.findLast=function(t,e){if(!Array.isArray(t))throw new TypeError("arr is not array");let r=t.length>>>0;for(let n=r-1;n>=0;n--)if(e(t[n],n,t))return t[n]};Q.sanitize=function(t,e){t=re.resolve(re.normalize(t));for(var r=e.split("/"),n=0,i=r.length;n<i;n++){var o=re.normalize(re.join(t,r.slice(n,i).join(re.sep)));if(o.indexOf(t)===0)return o}return re.normalize(re.join(t,re.basename(e)))};Q.toBuffer=function(e,r){return Buffer.isBuffer(e)?e:e instanceof Uint8Array?Buffer.from(e):typeof e=="string"?r(e):Buffer.alloc(0)};Q.readBigUInt64LE=function(t,e){var r=Buffer.from(t.slice(e,e+8));return r.swap64(),parseInt(`0x${r.toString("hex")}`)};Q.fromDOS2Date=function(t){return new Date((t>>25&127)+1980,Math.max((t>>21&15)-1,0),Math.max(t>>16&31,1),t>>11&31,t>>5&63,(t&31)<<1)};Q.fromDate2DOS=function(t){let e=0,r=0;return t.getFullYear()>1979&&(e=(t.getFullYear()-1980&127)<<9|t.getMonth()+1<<5|t.getDate(),r=t.getHours()<<11|t.getMinutes()<<5|t.getSeconds()>>1),e<<16|r};Q.isWin=uc;Q.crcTable=Us});var Vs=A((ip,js)=>{"use strict";D();var ac=require("path");js.exports=function(t,{fs:e}){var r=t||"",n=o(),i=null;function o(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}return r&&e.existsSync(r)?(i=e.statSync(r),n.directory=i.isDirectory(),n.mtime=i.mtime,n.atime=i.atime,n.executable=(73&i.mode)!==0,n.readonly=(128&i.mode)===0,n.hidden=ac.basename(r)[0]==="."):console.warn("Invalid path: "+r),{get directory(){return n.directory},get readOnly(){return n.readonly},get hidden(){return n.hidden},get mtime(){return n.mtime},get atime(){return n.atime},get executable(){return n.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:r,isDirectory:n.directory,isReadOnly:n.readonly,isHidden:n.hidden,isExecutable:n.executable,mTime:n.mtime,aTime:n.atime}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}}});var qs=A((sp,$s)=>{"use strict";D();$s.exports={efs:!0,encode:t=>Buffer.from(t,"utf8"),decode:t=>t.toString("utf8")}});var dt=A((ap,Dt)=>{"use strict";D();Dt.exports=Hs();Dt.exports.Constants=Yn();Dt.exports.Errors=Fr();Dt.exports.FileAttr=Vs();Dt.exports.decoder=qs()});var Gs=A((fp,Ws)=>{"use strict";D();var He=dt(),w=He.Constants;Ws.exports=function(){var t=20,e=10,r=0,n=0,i=0,o=0,s=0,a=0,l=0,d=0,c=0,F=0,y=0,f=0,h=0;t|=He.isWin?2560:768,r|=w.FLG_EFS;let m={extraLen:0},p=u=>Math.max(0,u)>>>0,g=u=>Math.max(0,u)&65535,C=u=>Math.max(0,u)&255;return i=He.fromDate2DOS(new Date),{get made(){return t},set made(u){t=u},get version(){return e},set version(u){e=u},get flags(){return r},set flags(u){r=u},get flags_efs(){return(r&w.FLG_EFS)>0},set flags_efs(u){u?r|=w.FLG_EFS:r&=~w.FLG_EFS},get flags_desc(){return(r&w.FLG_DESC)>0},set flags_desc(u){u?r|=w.FLG_DESC:r&=~w.FLG_DESC},get method(){return n},set method(u){switch(u){case w.STORED:this.version=10;case w.DEFLATED:default:this.version=20}n=u},get time(){return He.fromDOS2Date(this.timeval)},set time(u){this.timeval=He.fromDate2DOS(u)},get timeval(){return i},set timeval(u){i=p(u)},get timeHighByte(){return C(i>>>8)},get crc(){return o},set crc(u){o=p(u)},get compressedSize(){return s},set compressedSize(u){s=p(u)},get size(){return a},set size(u){a=p(u)},get fileNameLength(){return l},set fileNameLength(u){l=u},get extraLength(){return d},set extraLength(u){d=u},get extraLocalLength(){return m.extraLen},set extraLocalLength(u){m.extraLen=u},get commentLength(){return c},set commentLength(u){c=u},get diskNumStart(){return F},set diskNumStart(u){F=p(u)},get inAttr(){return y},set inAttr(u){y=p(u)},get attr(){return f},set attr(u){f=p(u)},get fileAttr(){return(f||0)>>16&4095},get offset(){return h},set offset(u){h=p(u)},get encrypted(){return(r&w.FLG_ENC)===w.FLG_ENC},get centralHeaderSize(){return w.CENHDR+l+d+c},get realDataOffset(){return h+w.LOCHDR+m.fnameLen+m.extraLen},get localHeader(){return m},loadLocalHeaderFromBinary:function(u){var E=u.slice(h,h+w.LOCHDR);if(E.readUInt32LE(0)!==w.LOCSIG)throw He.Errors.INVALID_LOC();m.version=E.readUInt16LE(w.LOCVER),m.flags=E.readUInt16LE(w.LOCFLG),m.method=E.readUInt16LE(w.LOCHOW),m.time=E.readUInt32LE(w.LOCTIM),m.crc=E.readUInt32LE(w.LOCCRC),m.compressedSize=E.readUInt32LE(w.LOCSIZ),m.size=E.readUInt32LE(w.LOCLEN),m.fnameLen=E.readUInt16LE(w.LOCNAM),m.extraLen=E.readUInt16LE(w.LOCEXT);let _=h+w.LOCHDR+m.fnameLen,b=_+m.extraLen;return u.slice(_,b)},loadFromBinary:function(u){if(u.length!==w.CENHDR||u.readUInt32LE(0)!==w.CENSIG)throw He.Errors.INVALID_CEN();t=u.readUInt16LE(w.CENVEM),e=u.readUInt16LE(w.CENVER),r=u.readUInt16LE(w.CENFLG),n=u.readUInt16LE(w.CENHOW),i=u.readUInt32LE(w.CENTIM),o=u.readUInt32LE(w.CENCRC),s=u.readUInt32LE(w.CENSIZ),a=u.readUInt32LE(w.CENLEN),l=u.readUInt16LE(w.CENNAM),d=u.readUInt16LE(w.CENEXT),c=u.readUInt16LE(w.CENCOM),F=u.readUInt16LE(w.CENDSK),y=u.readUInt16LE(w.CENATT),f=u.readUInt32LE(w.CENATX),h=u.readUInt32LE(w.CENOFF)},localHeaderToBinary:function(){var u=Buffer.alloc(w.LOCHDR);return u.writeUInt32LE(w.LOCSIG,0),u.writeUInt16LE(e,w.LOCVER),u.writeUInt16LE(r,w.LOCFLG),u.writeUInt16LE(n,w.LOCHOW),u.writeUInt32LE(i,w.LOCTIM),u.writeUInt32LE(o,w.LOCCRC),u.writeUInt32LE(s,w.LOCSIZ),u.writeUInt32LE(a,w.LOCLEN),u.writeUInt16LE(l,w.LOCNAM),u.writeUInt16LE(m.extraLen,w.LOCEXT),u},centralHeaderToBinary:function(){var u=Buffer.alloc(w.CENHDR+l+d+c);return u.writeUInt32LE(w.CENSIG,0),u.writeUInt16LE(t,w.CENVEM),u.writeUInt16LE(e,w.CENVER),u.writeUInt16LE(r,w.CENFLG),u.writeUInt16LE(n,w.CENHOW),u.writeUInt32LE(i,w.CENTIM),u.writeUInt32LE(o,w.CENCRC),u.writeUInt32LE(s,w.CENSIZ),u.writeUInt32LE(a,w.CENLEN),u.writeUInt16LE(l,w.CENNAM),u.writeUInt16LE(d,w.CENEXT),u.writeUInt16LE(c,w.CENCOM),u.writeUInt16LE(F,w.CENDSK),u.writeUInt16LE(y,w.CENATT),u.writeUInt32LE(f,w.CENATX),u.writeUInt32LE(h,w.CENOFF),u},toJSON:function(){let u=function(E){return E+" bytes"};return{made:t,version:e,flags:r,method:He.methodToString(n),time:this.time,crc:"0x"+o.toString(16).toUpperCase(),compressedSize:u(s),size:u(a),fileNameLength:u(l),extraLength:u(d),commentLength:u(c),diskNumStart:F,inAttr:y,attr:f,offset:h,centralHeaderSize:u(w.CENHDR+l+d+c)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}}});var Zs=A((hp,zs)=>{"use strict";D();var pt=dt(),Y=pt.Constants;zs.exports=function(){var t=0,e=0,r=0,n=0,i=0;return{get diskEntries(){return t},set diskEntries(o){t=e=o},get totalEntries(){return e},set totalEntries(o){e=t=o},get size(){return r},set size(o){r=o},get offset(){return n},set offset(o){n=o},get commentLength(){return i},set commentLength(o){i=o},get mainHeaderSize(){return Y.ENDHDR+i},loadFromBinary:function(o){if((o.length!==Y.ENDHDR||o.readUInt32LE(0)!==Y.ENDSIG)&&(o.length<Y.ZIP64HDR||o.readUInt32LE(0)!==Y.ZIP64SIG))throw pt.Errors.INVALID_END();o.readUInt32LE(0)===Y.ENDSIG?(t=o.readUInt16LE(Y.ENDSUB),e=o.readUInt16LE(Y.ENDTOT),r=o.readUInt32LE(Y.ENDSIZ),n=o.readUInt32LE(Y.ENDOFF),i=o.readUInt16LE(Y.ENDCOM)):(t=pt.readBigUInt64LE(o,Y.ZIP64SUB),e=pt.readBigUInt64LE(o,Y.ZIP64TOT),r=pt.readBigUInt64LE(o,Y.ZIP64SIZE),n=pt.readBigUInt64LE(o,Y.ZIP64OFF),i=0)},toBinary:function(){var o=Buffer.alloc(Y.ENDHDR+i);return o.writeUInt32LE(Y.ENDSIG,0),o.writeUInt32LE(0,4),o.writeUInt16LE(t,Y.ENDSUB),o.writeUInt16LE(e,Y.ENDTOT),o.writeUInt32LE(r,Y.ENDSIZ),o.writeUInt32LE(n,Y.ENDOFF),o.writeUInt16LE(i,Y.ENDCOM),o.fill(" ",Y.ENDHDR),o},toJSON:function(){let o=function(s,a){let l=s.toString(16).toUpperCase();for(;l.length<a;)l="0"+l;return"0x"+l};return{diskEntries:t,totalEntries:e,size:r+" bytes",offset:o(n,4),commentLength:i}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}}});var Xn=A(Kn=>{"use strict";D();Kn.EntryHeader=Gs();Kn.MainHeader=Zs()});var Ks=A((mp,Ys)=>{"use strict";D();Ys.exports=function(t){var e=require("zlib"),r={chunkSize:(parseInt(t.length/1024)+1)*1024};return{deflate:function(){return e.deflateRawSync(t,r)},deflateAsync:function(n){var i=e.createDeflateRaw(r),o=[],s=0;i.on("data",function(a){o.push(a),s+=a.length}),i.on("end",function(){var a=Buffer.alloc(s),l=0;a.fill(0);for(var d=0;d<o.length;d++){var c=o[d];c.copy(a,l),l+=c.length}n&&n(a)}),i.end(t)}}}});var Js=A((Ep,Xs)=>{"use strict";D();var lc=+(process.versions?process.versions.node:"").split(".")[0]||0;Xs.exports=function(t,e){var r=require("zlib");let n=lc>=15&&e>0?{maxOutputLength:e}:{};return{inflate:function(){return r.inflateRawSync(t,n)},inflateAsync:function(i){var o=r.createInflateRaw(n),s=[],a=0;o.on("data",function(l){s.push(l),a+=l.length}),o.on("end",function(){var l=Buffer.alloc(a),d=0;l.fill(0);for(var c=0;c<s.length;c++){var F=s[c];F.copy(l,d),d+=F.length}i&&i(l)}),o.end(t)}}}});var nu=A((_p,ru)=>{"use strict";D();var{randomFillSync:Qs}=require("crypto"),fc=Fr(),cc=new Uint32Array(256).map((t,e)=>{for(let r=0;r<8;r++)(e&1)!==0?e=e>>>1^3988292384:e>>>=1;return e>>>0}),tu=(t,e)=>Math.imul(t,e)>>>0,eu=(t,e)=>cc[(t^e)&255]^t>>>8,Ut=()=>typeof Qs=="function"?Qs(Buffer.alloc(12)):Ut.node();Ut.node=()=>{let t=Buffer.alloc(12),e=t.length;for(let r=0;r<e;r++)t[r]=Math.random()*256&255;return t};var _r={genSalt:Ut};function Cr(t){let e=Buffer.isBuffer(t)?t:Buffer.from(t);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let r=0;r<e.length;r++)this.updateKeys(e[r])}Cr.prototype.updateKeys=function(t){let e=this.keys;return e[0]=eu(e[0],t),e[1]+=e[0]&255,e[1]=tu(e[1],134775813)+1,e[2]=eu(e[2],e[1]>>>24),t};Cr.prototype.next=function(){let t=(this.keys[2]|2)>>>0;return tu(t,t^1)>>8&255};function hc(t){let e=new Cr(t);return function(r){let n=Buffer.alloc(r.length),i=0;for(let o of r)n[i++]=e.updateKeys(o^e.next());return n}}function Dc(t){let e=new Cr(t);return function(r,n,i=0){n||(n=Buffer.alloc(r.length));for(let o of r){let s=e.next();n[i++]=o^s,e.updateKeys(o)}return n}}function dc(t,e,r){if(!t||!Buffer.isBuffer(t)||t.length<12)return Buffer.alloc(0);let n=hc(r),i=n(t.slice(0,12)),o=(e.flags&8)===8?e.timeHighByte:e.crc>>>24;if(i[11]!==o)throw fc.WRONG_PASSWORD();return n(t.slice(12))}function pc(t){Buffer.isBuffer(t)&&t.length>=12?_r.genSalt=function(){return t.slice(0,12)}:t==="node"?_r.genSalt=Ut.node:_r.genSalt=Ut}function mc(t,e,r,n=!1){t==null&&(t=Buffer.alloc(0)),Buffer.isBuffer(t)||(t=Buffer.from(t.toString()));let i=Dc(r),o=_r.genSalt();o[11]=e.crc>>>24&255,n&&(o[10]=e.crc>>>16&255);let s=Buffer.alloc(t.length+12);return i(o,s),i(t,s,12)}ru.exports={decrypt:dc,encrypt:mc,_salter:pc}});var iu=A(yr=>{"use strict";D();yr.Deflater=Ks();yr.Inflater=Js();yr.ZipCrypto=nu()});var Qn=A((vp,ou)=>{"use strict";D();var P=dt(),gc=Xn(),ee=P.Constants,Jn=iu();ou.exports=function(t,e){var r=new gc.EntryHeader,n=Buffer.alloc(0),i=Buffer.alloc(0),o=!1,s=null,a=Buffer.alloc(0),l=Buffer.alloc(0),d=!0;let c=t,F=typeof c.decoder=="object"?c.decoder:P.decoder;d=F.hasOwnProperty("efs")?F.efs:!1;function y(){return!e||!(e instanceof Uint8Array)?Buffer.alloc(0):(l=r.loadLocalHeaderFromBinary(e),e.slice(r.realDataOffset,r.realDataOffset+r.compressedSize))}function f(u){if(r.flags_desc){let E={},_=r.realDataOffset+r.compressedSize;if(e.readUInt32LE(_)==ee.LOCSIG||e.readUInt32LE(_)==ee.CENSIG)throw P.Errors.DESCRIPTOR_NOT_EXIST();if(e.readUInt32LE(_)==ee.EXTSIG)E.crc=e.readUInt32LE(_+ee.EXTCRC),E.compressedSize=e.readUInt32LE(_+ee.EXTSIZ),E.size=e.readUInt32LE(_+ee.EXTLEN);else if(e.readUInt16LE(_+12)===19280)E.crc=e.readUInt32LE(_+ee.EXTCRC-4),E.compressedSize=e.readUInt32LE(_+ee.EXTSIZ-4),E.size=e.readUInt32LE(_+ee.EXTLEN-4);else throw P.Errors.DESCRIPTOR_UNKNOWN();if(E.compressedSize!==r.compressedSize||E.size!==r.size||E.crc!==r.crc)throw P.Errors.DESCRIPTOR_FAULTY();if(P.crc32(u)!==E.crc)return!1}else if(P.crc32(u)!==r.localHeader.crc)return!1;return!0}function h(u,E,_){if(typeof E>"u"&&typeof u=="string"&&(_=u,u=void 0),o)return u&&E&&E(Buffer.alloc(0),P.Errors.DIRECTORY_CONTENT_ERROR()),Buffer.alloc(0);var b=y();if(b.length===0)return u&&E&&E(b),b;if(r.encrypted){if(typeof _!="string"&&!Buffer.isBuffer(_))throw P.Errors.INVALID_PASS_PARAM();b=Jn.ZipCrypto.decrypt(b,r,_)}var S=Buffer.alloc(r.size);switch(r.method){case P.Constants.STORED:if(b.copy(S),f(S))return u&&E&&E(S),S;throw u&&E&&E(S,P.Errors.BAD_CRC()),P.Errors.BAD_CRC();case P.Constants.DEFLATED:var R=new Jn.Inflater(b,r.size);if(u)R.inflateAsync(function(v){v.copy(v,0),E&&(f(v)?E(v):E(v,P.Errors.BAD_CRC()))});else{if(R.inflate(S).copy(S,0),!f(S))throw P.Errors.BAD_CRC(`"${F.decode(n)}"`);return S}break;default:throw u&&E&&E(Buffer.alloc(0),P.Errors.UNKNOWN_METHOD()),P.Errors.UNKNOWN_METHOD()}}function m(u,E){if((!s||!s.length)&&Buffer.isBuffer(e))return u&&E&&E(y()),y();if(s.length&&!o){var _;switch(r.method){case P.Constants.STORED:return r.compressedSize=r.size,_=Buffer.alloc(s.length),s.copy(_),u&&E&&E(_),_;default:case P.Constants.DEFLATED:var b=new Jn.Deflater(s);if(u)b.deflateAsync(function(R){_=Buffer.alloc(R.length),r.compressedSize=R.length,R.copy(_),E&&E(_)});else{var S=b.deflate();return r.compressedSize=S.length,S}b=null;break}}else if(u&&E)E(Buffer.alloc(0));else return Buffer.alloc(0)}function p(u,E){return(u.readUInt32LE(E+4)<<4)+u.readUInt32LE(E)}function g(u){try{for(var E=0,_,b,S;E+4<u.length;)_=u.readUInt16LE(E),E+=2,b=u.readUInt16LE(E),E+=2,S=u.slice(E,E+b),E+=b,ee.ID_ZIP64===_&&C(S)}catch{throw P.Errors.EXTRA_FIELD_PARSE_ERROR()}}function C(u){var E,_,b,S;u.length>=ee.EF_ZIP64_SCOMP&&(E=p(u,ee.EF_ZIP64_SUNCOMP),r.size===ee.EF_ZIP64_OR_32&&(r.size=E)),u.length>=ee.EF_ZIP64_RHO&&(_=p(u,ee.EF_ZIP64_SCOMP),r.compressedSize===ee.EF_ZIP64_OR_32&&(r.compressedSize=_)),u.length>=ee.EF_ZIP64_DSN&&(b=p(u,ee.EF_ZIP64_RHO),r.offset===ee.EF_ZIP64_OR_32&&(r.offset=b)),u.length>=ee.EF_ZIP64_DSN+4&&(S=u.readUInt32LE(ee.EF_ZIP64_DSN),r.diskNumStart===ee.EF_ZIP64_OR_16&&(r.diskNumStart=S))}return{get entryName(){return F.decode(n)},get rawEntryName(){return n},set entryName(u){n=P.toBuffer(u,F.encode);var E=n[n.length-1];o=E===47||E===92,r.fileNameLength=n.length},get efs(){return typeof d=="function"?d(this.entryName):d},get extra(){return a},set extra(u){a=u,r.extraLength=u.length,g(u)},get comment(){return F.decode(i)},set comment(u){if(i=P.toBuffer(u,F.encode),r.commentLength=i.length,i.length>65535)throw P.Errors.COMMENT_TOO_LONG()},get name(){var u=F.decode(n);return o?u.substr(u.length-1).split("/").pop():u.split("/").pop()},get isDirectory(){return o},getCompressedData:function(){return m(!1,null)},getCompressedDataAsync:function(u){m(!0,u)},setData:function(u){s=P.toBuffer(u,P.decoder.encode),!o&&s.length?(r.size=s.length,r.method=P.Constants.DEFLATED,r.crc=P.crc32(u),r.changed=!0):r.method=P.Constants.STORED},getData:function(u){return r.changed?s:h(!1,null,u)},getDataAsync:function(u,E){r.changed?u(s):h(!0,u,E)},set attr(u){r.attr=u},get attr(){return r.attr},set header(u){r.loadFromBinary(u)},get header(){return r},packCentralHeader:function(){r.flags_efs=this.efs,r.extraLength=a.length;var u=r.centralHeaderToBinary(),E=P.Constants.CENHDR;return n.copy(u,E),E+=n.length,a.copy(u,E),E+=r.extraLength,i.copy(u,E),u},packLocalHeader:function(){let u=0;r.flags_efs=this.efs,r.extraLocalLength=l.length;let E=r.localHeaderToBinary(),_=Buffer.alloc(E.length+n.length+r.extraLocalLength);return E.copy(_,u),u+=E.length,n.copy(_,u),u+=n.length,l.copy(_,u),u+=l.length,_},toJSON:function(){let u=function(E){return"<"+(E&&E.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:r.toJSON(),compressedData:u(e),data:u(s)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}}});var au=A((bp,uu)=>{"use strict";D();var su=Qn(),Ec=Xn(),oe=dt();uu.exports=function(t,e){var r=[],n={},i=Buffer.alloc(0),o=new Ec.MainHeader,s=!1,a=null;let l=new Set,d=e,{noSort:c,decoder:F}=d;t?h(d.readEntries):s=!0;function y(){let p=new Set;for(let g of Object.keys(n)){let C=g.split("/");if(C.pop(),!!C.length)for(let u=0;u<C.length;u++){let E=C.slice(0,u+1).join("/")+"/";p.add(E)}}for(let g of p)if(!(g in n)){let C=new su(d);C.entryName=g,C.attr=16,C.temporary=!0,r.push(C),n[C.entryName]=C,l.add(C)}}function f(){if(s=!0,n={},o.diskEntries>(t.length-o.offset)/oe.Constants.CENHDR)throw oe.Errors.DISK_ENTRY_TOO_LARGE();r=new Array(o.diskEntries);for(var p=o.offset,g=0;g<r.length;g++){var C=p,u=new su(d,t);u.header=t.slice(C,C+=oe.Constants.CENHDR),u.entryName=t.slice(C,C+=u.header.fileNameLength),u.header.extraLength&&(u.extra=t.slice(C,C+=u.header.extraLength)),u.header.commentLength&&(u.comment=t.slice(C,C+u.header.commentLength)),p+=u.header.centralHeaderSize,r[g]=u,n[u.entryName]=u}l.clear(),y()}function h(p){var g=t.length-oe.Constants.ENDHDR,C=Math.max(0,g-65535),u=C,E=t.length,_=-1,b=0;for(typeof d.trailingSpace=="boolean"&&d.trailingSpace&&(C=0),g;g>=u;g--)if(t[g]===80){if(t.readUInt32LE(g)===oe.Constants.ENDSIG){_=g,b=g,E=g+oe.Constants.ENDHDR,u=g-oe.Constants.END64HDR;continue}if(t.readUInt32LE(g)===oe.Constants.END64SIG){u=C;continue}if(t.readUInt32LE(g)===oe.Constants.ZIP64SIG){_=g,E=g+oe.readBigUInt64LE(t,g+oe.Constants.ZIP64SIZE)+oe.Constants.ZIP64LEAD;break}}if(_==-1)throw oe.Errors.INVALID_FORMAT();o.loadFromBinary(t.slice(_,E)),o.commentLength&&(i=t.slice(b+oe.Constants.ENDHDR)),p&&f()}function m(){r.length>1&&!c&&r.sort((p,g)=>p.entryName.toLowerCase().localeCompare(g.entryName.toLowerCase()))}return{get entries(){return s||f(),r.filter(p=>!l.has(p))},get comment(){return F.decode(i)},set comment(p){i=oe.toBuffer(p,F.encode),o.commentLength=i.length},getEntryCount:function(){return s?r.length:o.diskEntries},forEach:function(p){this.entries.forEach(p)},getEntry:function(p){return s||f(),n[p]||null},setEntry:function(p){s||f(),r.push(p),n[p.entryName]=p,o.totalEntries=r.length},deleteFile:function(p,g=!0){s||f();let C=n[p];this.getEntryChildren(C,g).map(E=>E.entryName).forEach(this.deleteEntry)},deleteEntry:function(p){s||f();let g=n[p],C=r.indexOf(g);C>=0&&(r.splice(C,1),delete n[p],o.totalEntries=r.length)},getEntryChildren:function(p,g=!0){if(s||f(),typeof p=="object")if(p.isDirectory&&g){let C=[],u=p.entryName;for(let E of r)E.entryName.startsWith(u)&&C.push(E);return C}else return[p];return[]},getChildCount:function(p){if(p&&p.isDirectory){let g=this.getEntryChildren(p);return g.includes(p)?g.length-1:g.length}return 0},compressToBuffer:function(){s||f(),m();let p=[],g=[],C=0,u=0;o.size=0,o.offset=0;let E=0;for(let S of this.entries){let R=S.getCompressedData();S.header.offset=u;let v=S.packLocalHeader(),T=v.length+R.length;u+=T,p.push(v),p.push(R);let O=S.packCentralHeader();g.push(O),o.size+=O.length,C+=T+O.length,E++}C+=o.mainHeaderSize,o.offset=u,o.totalEntries=E,u=0;let _=Buffer.alloc(C);for(let S of p)S.copy(_,u),u+=S.length;for(let S of g)S.copy(_,u),u+=S.length;let b=o.toBinary();return i&&i.copy(b,oe.Constants.ENDHDR),b.copy(_,u),t=_,s=!1,_},toAsyncBuffer:function(p,g,C,u){try{s||f(),m();let E=[],_=[],b=0,S=0,R=0;o.size=0,o.offset=0;let v=function(T){if(T.length>0){let O=T.shift(),M=O.entryName+O.extra.toString();C&&C(M),O.getCompressedDataAsync(function(N){u&&u(M),O.header.offset=S;let Z=O.packLocalHeader(),U=Z.length+N.length;S+=U,E.push(Z),E.push(N);let k=O.packCentralHeader();_.push(k),o.size+=k.length,b+=U+k.length,R++,v(T)})}else{b+=o.mainHeaderSize,o.offset=S,o.totalEntries=R,S=0;let O=Buffer.alloc(b);E.forEach(function(N){N.copy(O,S),S+=N.length}),_.forEach(function(N){N.copy(O,S),S+=N.length});let M=o.toBinary();i&&i.copy(M,oe.Constants.ENDHDR),M.copy(O,S),t=O,s=!1,p(O)}};v(Array.from(this.entries))}catch(E){g(E)}}}}});var cu=A((Ap,fu)=>{"use strict";D();var K=dt(),te=require("path"),Fc=Qn(),_c=au(),Qe=(...t)=>K.findLast(t,e=>typeof e=="boolean"),lu=(...t)=>K.findLast(t,e=>typeof e=="string"),Cc=(...t)=>K.findLast(t,e=>typeof e=="function"),yc={noSort:!1,readEntries:!1,method:K.Constants.NONE,fs:null};fu.exports=function(t,e){let r=null,n=Object.assign(Object.create(null),yc);t&&typeof t=="object"&&(t instanceof Uint8Array||(Object.assign(n,t),t=n.input?n.input:void 0,n.input&&delete n.input),Buffer.isBuffer(t)&&(r=t,n.method=K.Constants.BUFFER,t=void 0)),Object.assign(n,e);let i=new K(n);if((typeof n.decoder!="object"||typeof n.decoder.encode!="function"||typeof n.decoder.decode!="function")&&(n.decoder=K.decoder),t&&typeof t=="string")if(i.fs.existsSync(t))n.method=K.Constants.FILE,n.filename=t,r=i.fs.readFileSync(t);else throw K.Errors.INVALID_FILENAME();let o=new _c(r,n),{canonical:s,sanitize:a,zipnamefix:l}=K;function d(f){if(f&&o){var h;if(typeof f=="string"&&(h=o.getEntry(te.posix.normalize(f))),typeof f=="object"&&typeof f.entryName<"u"&&typeof f.header<"u"&&(h=o.getEntry(f.entryName)),h)return h}return null}function c(f){let{join:h,normalize:m,sep:p}=te.posix;return h(".",m(p+f.split("\\").join(p)+p))}function F(f){return f instanceof RegExp?(function(h){return function(m){return h.test(m)}})(f):typeof f!="function"?()=>!0:f}let y=(f,h)=>{let m=h.slice(-1);return m=m===i.sep?i.sep:"",te.relative(f,h)+m};return{readFile:function(f,h){var m=d(f);return m&&m.getData(h)||null},childCount:function(f){let h=d(f);if(h)return o.getChildCount(h)},readFileAsync:function(f,h){var m=d(f);m?m.getDataAsync(h):h(null,"getEntry failed for:"+f)},readAsText:function(f,h){var m=d(f);if(m){var p=m.getData();if(p&&p.length)return p.toString(h||"utf8")}return""},readAsTextAsync:function(f,h,m){var p=d(f);p?p.getDataAsync(function(g,C){if(C){h(g,C);return}g&&g.length?h(g.toString(m||"utf8")):h("")}):h("")},deleteFile:function(f,h=!0){var m=d(f);m&&o.deleteFile(m.entryName,h)},deleteEntry:function(f){var h=d(f);h&&o.deleteEntry(h.entryName)},addZipComment:function(f){o.comment=f},getZipComment:function(){return o.comment||""},addZipEntryComment:function(f,h){var m=d(f);m&&(m.comment=h)},getZipEntryComment:function(f){var h=d(f);return h&&h.comment||""},updateFile:function(f,h){var m=d(f);m&&m.setData(h)},addLocalFile:function(f,h,m,p){if(i.fs.existsSync(f)){h=h?c(h):"";let g=te.win32.basename(te.win32.normalize(f));h+=m||g;let C=i.fs.statSync(f),u=C.isFile()?i.fs.readFileSync(f):Buffer.alloc(0);C.isDirectory()&&(h+=i.sep),this.addFile(h,u,p,C)}else throw K.Errors.FILE_NOT_FOUND(f)},addLocalFileAsync:function(f,h){f=typeof f=="object"?f:{localPath:f};let m=te.resolve(f.localPath),{comment:p}=f,{zipPath:g,zipName:C}=f,u=this;i.fs.stat(m,function(E,_){if(E)return h(E,!1);g=g?c(g):"";let b=te.win32.basename(te.win32.normalize(m));if(g+=C||b,_.isFile())i.fs.readFile(m,function(S,R){return S?h(S,!1):(u.addFile(g,R,p,_),setImmediate(h,void 0,!0))});else if(_.isDirectory())return g+=i.sep,u.addFile(g,Buffer.alloc(0),p,_),setImmediate(h,void 0,!0)})},addLocalFolder:function(f,h,m){if(m=F(m),h=h?c(h):"",f=te.normalize(f),i.fs.existsSync(f)){let p=i.findFiles(f),g=this;if(p.length)for(let C of p){let u=te.join(h,y(f,C));m(u)&&g.addLocalFile(C,te.dirname(u))}}else throw K.Errors.FILE_NOT_FOUND(f)},addLocalFolderAsync:function(f,h,m,p){p=F(p),m=m?c(m):"",f=te.normalize(f);var g=this;i.fs.open(f,"r",function(C){if(C&&C.code==="ENOENT")h(void 0,K.Errors.FILE_NOT_FOUND(f));else if(C)h(void 0,C);else{var u=i.findFiles(f),E=-1,_=function(){if(E+=1,E<u.length){var b=u[E],S=y(f,b).split("\\").join("/");S=S.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),p(S)?i.fs.stat(b,function(R,v){R&&h(void 0,R),v.isFile()?i.fs.readFile(b,function(T,O){T?h(void 0,T):(g.addFile(m+S,O,"",v),_())}):(g.addFile(m+S+"/",Buffer.alloc(0),"",v),_())}):process.nextTick(()=>{_()})}else h(!0,void 0)};_()}})},addLocalFolderAsync2:function(f,h){let m=this;f=typeof f=="object"?f:{localPath:f},localPath=te.resolve(c(f.localPath));let{zipPath:p,filter:g,namefix:C}=f;g instanceof RegExp?g=(function(_){return function(b){return _.test(b)}})(g):typeof g!="function"&&(g=function(){return!0}),p=p?c(p):"",C=="latin1"&&(C=_=>_.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,"")),typeof C!="function"&&(C=_=>_);let u=_=>te.join(p,C(y(localPath,_))),E=_=>te.win32.basename(te.win32.normalize(C(_)));i.fs.open(localPath,"r",function(_){_&&_.code==="ENOENT"?h(void 0,K.Errors.FILE_NOT_FOUND(localPath)):_?h(void 0,_):i.findFilesAsync(localPath,function(b,S){if(b)return h(b);S=S.filter(R=>g(u(R))),S.length||h(void 0,!1),setImmediate(S.reverse().reduce(function(R,v){return function(T,O){if(T||O===!1)return setImmediate(R,T,!1);m.addLocalFileAsync({localPath:v,zipPath:te.dirname(u(v)),zipName:E(v)},R)}},h))})})},addLocalFolderPromise:function(f,h){return new Promise((m,p)=>{this.addLocalFolderAsync2(Object.assign({localPath:f},h),(g,C)=>{g&&p(g),C&&m(this)})})},addFile:function(f,h,m,p){f=l(f);let g=d(f),C=g!=null;C||(g=new Fc(n),g.entryName=f),g.comment=m||"";let u=typeof p=="object"&&p instanceof i.fs.Stats;u&&(g.header.time=p.mtime);var E=g.isDirectory?16:0;let _=g.isDirectory?16384:32768;return u?_|=4095&p.mode:typeof p=="number"?_|=4095&p:_|=g.isDirectory?493:420,E=(E|_<<16)>>>0,g.attr=E,g.setData(h),C||o.setEntry(g),g},getEntries:function(f){return o.password=f,o?o.entries:[]},getEntry:function(f){return d(f)},getEntryCount:function(){return o.getEntryCount()},forEach:function(f){return o.forEach(f)},extractEntryTo:function(f,h,m,p,g,C){p=Qe(!1,p),g=Qe(!1,g),m=Qe(!0,m),C=lu(g,C);var u=d(f);if(!u)throw K.Errors.NO_ENTRY();var E=s(u.entryName),_=a(h,C&&!u.isDirectory?C:m?E:te.basename(E));if(u.isDirectory){var b=o.getEntryChildren(u);return b.forEach(function(v){if(v.isDirectory)return;var T=v.getData();if(!T)throw K.Errors.CANT_EXTRACT_FILE();var O=s(v.entryName),M=a(h,m?O:te.basename(O));let N=g?v.header.fileAttr:void 0;i.writeFileTo(M,T,p,N)}),!0}var S=u.getData(o.password);if(!S)throw K.Errors.CANT_EXTRACT_FILE();if(i.fs.existsSync(_)&&!p)throw K.Errors.CANT_OVERRIDE();let R=g?f.header.fileAttr:void 0;return i.writeFileTo(_,S,p,R),!0},test:function(f){if(!o)return!1;for(var h in o.entries)try{if(h.isDirectory)continue;var m=o.entries[h].getData(f);if(!m)return!1}catch{return!1}return!0},extractAllTo:function(f,h,m,p){if(m=Qe(!1,m),p=lu(m,p),h=Qe(!1,h),!o)throw K.Errors.NO_ZIP();o.entries.forEach(function(g){var C=a(f,s(g.entryName));if(g.isDirectory){i.makeDir(C);return}var u=g.getData(p);if(!u)throw K.Errors.CANT_EXTRACT_FILE();let E=m?g.header.fileAttr:void 0;i.writeFileTo(C,u,h,E);try{i.fs.utimesSync(C,g.header.time,g.header.time)}catch{throw K.Errors.CANT_EXTRACT_FILE()}})},extractAllToAsync:function(f,h,m,p){if(p=Cc(h,m,p),m=Qe(!1,m),h=Qe(!1,h),!p)return new Promise((_,b)=>{this.extractAllToAsync(f,h,m,function(S){S?b(S):_(this)})});if(!o){p(K.Errors.NO_ZIP());return}f=te.resolve(f);let g=_=>a(f,te.normalize(s(_.entryName))),C=(_,b)=>new Error(_+': "'+b+'"'),u=[],E=[];o.entries.forEach(_=>{_.isDirectory?u.push(_):E.push(_)});for(let _ of u){let b=g(_),S=m?_.header.fileAttr:void 0;try{i.makeDir(b),S&&i.fs.chmodSync(b,S),i.fs.utimesSync(b,_.header.time,_.header.time)}catch{p(C("Unable to create folder",b))}}E.reverse().reduce(function(_,b){return function(S){if(S)_(S);else{let R=te.normalize(s(b.entryName)),v=a(f,R);b.getDataAsync(function(T,O){if(O)_(O);else if(!T)_(K.Errors.CANT_EXTRACT_FILE());else{let M=m?b.header.fileAttr:void 0;i.writeFileToAsync(v,T,h,M,function(N){N||_(C("Unable to write file",v)),i.fs.utimes(v,b.header.time,b.header.time,function(Z){Z?_(C("Unable to set times",v)):_()})})}})}}},p)()},writeZip:function(f,h){if(arguments.length===1&&typeof f=="function"&&(h=f,f=""),!f&&n.filename&&(f=n.filename),!!f){var m=o.compressToBuffer();if(m){var p=i.writeFileTo(f,m,!0);typeof h=="function"&&h(p?null:new Error("failed"),"")}}},writeZipPromise:function(f,h){let{overwrite:m,perm:p}=Object.assign({overwrite:!0},h);return new Promise((g,C)=>{!f&&n.filename&&(f=n.filename),f||C("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(u=>{let E=_=>_?g(_):C("ADM-ZIP: Wasn't able to write zip file");i.writeFileToAsync(f,u,m,p,E)},C)})},toBufferPromise:function(){return new Promise((f,h)=>{o.toAsyncBuffer(f,h)})},toBuffer:function(f,h,m,p){return typeof f=="function"?(o.toAsyncBuffer(f,h,m,p),null):o.compressToBuffer()}}}});var _u=A((Rp,Fu)=>{"use strict";D();var je=require("constants"),vc=process.cwd,xr=null,wc=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return xr||(xr=vc.call(process)),xr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(ti=process.chdir,process.chdir=function(t){xr=null,ti.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,ti));var ti;Fu.exports=bc;function bc(t){je.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=o(t.chown),t.fchown=o(t.fchown),t.lchown=o(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=s(t.chownSync),t.fchownSync=s(t.fchownSync),t.lchownSync=s(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,F,y){y&&process.nextTick(y)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,F,y,f){f&&process.nextTick(f)},t.lchownSync=function(){}),wc==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(c){function F(y,f,h){var m=Date.now(),p=0;c(y,f,function g(C){if(C&&(C.code==="EACCES"||C.code==="EPERM"||C.code==="EBUSY")&&Date.now()-m<6e4){setTimeout(function(){t.stat(f,function(u,E){u&&u.code==="ENOENT"?c(y,f,g):h(C)})},p),p<100&&(p+=10);return}h&&h(C)})}return Object.setPrototypeOf&&Object.setPrototypeOf(F,c),F})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(c){function F(y,f,h,m,p,g){var C;if(g&&typeof g=="function"){var u=0;C=function(E,_,b){if(E&&E.code==="EAGAIN"&&u<10)return u++,c.call(t,y,f,h,m,p,C);g.apply(this,arguments)}}return c.call(t,y,f,h,m,p,C)}return Object.setPrototypeOf&&Object.setPrototypeOf(F,c),F})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(c){return function(F,y,f,h,m){for(var p=0;;)try{return c.call(t,F,y,f,h,m)}catch(g){if(g.code==="EAGAIN"&&p<10){p++;continue}throw g}}})(t.readSync);function e(c){c.lchmod=function(F,y,f){c.open(F,je.O_WRONLY|je.O_SYMLINK,y,function(h,m){if(h){f&&f(h);return}c.fchmod(m,y,function(p){c.close(m,function(g){f&&f(p||g)})})})},c.lchmodSync=function(F,y){var f=c.openSync(F,je.O_WRONLY|je.O_SYMLINK,y),h=!0,m;try{m=c.fchmodSync(f,y),h=!1}finally{if(h)try{c.closeSync(f)}catch{}else c.closeSync(f)}return m}}function r(c){je.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(F,y,f,h){c.open(F,je.O_SYMLINK,function(m,p){if(m){h&&h(m);return}c.futimes(p,y,f,function(g){c.close(p,function(C){h&&h(g||C)})})})},c.lutimesSync=function(F,y,f){var h=c.openSync(F,je.O_SYMLINK),m,p=!0;try{m=c.futimesSync(h,y,f),p=!1}finally{if(p)try{c.closeSync(h)}catch{}else c.closeSync(h)}return m}):c.futimes&&(c.lutimes=function(F,y,f,h){h&&process.nextTick(h)},c.lutimesSync=function(){})}function n(c){return c&&function(F,y,f){return c.call(t,F,y,function(h){d(h)&&(h=null),f&&f.apply(this,arguments)})}}function i(c){return c&&function(F,y){try{return c.call(t,F,y)}catch(f){if(!d(f))throw f}}}function o(c){return c&&function(F,y,f,h){return c.call(t,F,y,f,function(m){d(m)&&(m=null),h&&h.apply(this,arguments)})}}function s(c){return c&&function(F,y,f){try{return c.call(t,F,y,f)}catch(h){if(!d(h))throw h}}}function a(c){return c&&function(F,y,f){typeof y=="function"&&(f=y,y=null);function h(m,p){p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),f&&f.apply(this,arguments)}return y?c.call(t,F,y,h):c.call(t,F,h)}}function l(c){return c&&function(F,y){var f=y?c.call(t,F,y):c.call(t,F);return f&&(f.uid<0&&(f.uid+=4294967296),f.gid<0&&(f.gid+=4294967296)),f}}function d(c){if(!c||c.code==="ENOSYS")return!0;var F=!process.getuid||process.getuid()!==0;return!!(F&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var xu=A((Np,yu)=>{"use strict";D();var Cu=require("stream").Stream;yu.exports=Sc;function Sc(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);Cu.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var s=Object.keys(i),a=0,l=s.length;a<l;a++){var d=s[a];this[d]=i[d]}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(){o._read()});return}t.open(this.path,this.flags,this.mode,function(c,F){if(c){o.emit("error",c),o.readable=!1;return}o.fd=F,o.emit("open",F),o._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Cu.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,a=o.length;s<a;s++){var l=o[s];this[l]=i[l]}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=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var wu=A((Mp,vu)=>{"use strict";D();vu.exports=Oc;var Ac=Object.getPrototypeOf||function(t){return t.__proto__};function Oc(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Ac(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var oi=A((kp,ii)=>{"use strict";D();var X=require("fs"),Tc=_u(),Bc=xu(),Ic=wu(),vr=require("util"),se,br;typeof Symbol=="function"&&typeof Symbol.for=="function"?(se=Symbol.for("graceful-fs.queue"),br=Symbol.for("graceful-fs.previous")):(se="___graceful-fs.queue",br="___graceful-fs.previous");function Rc(){}function Au(t,e){Object.defineProperty(t,se,{get:function(){return e}})}var et=Rc;vr.debuglog?et=vr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(et=function(){var t=vr.format.apply(vr,arguments);t="GFS4: "+t.split(/\n/).join(`
23
+ GFS4: `),console.error(t)});X[se]||(bu=global[se]||[],Au(X,bu),X.close=(function(t){function e(r,n){return t.call(X,r,function(i){i||Su(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,br,{value:t}),e})(X.close),X.closeSync=(function(t){function e(r){t.apply(X,arguments),Su()}return Object.defineProperty(e,br,{value:t}),e})(X.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){et(X[se]),require("assert").equal(X[se].length,0)}));var bu;global[se]||Au(global,X[se]);ii.exports=ri(Ic(X));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!X.__patched&&(ii.exports=ri(X),X.__patched=!0);function ri(t){Tc(t),t.gracefulify=ri,t.createReadStream=_,t.createWriteStream=b;var e=t.readFile;t.readFile=r;function r(v,T,O){return typeof T=="function"&&(O=T,T=null),M(v,T,O);function M(N,Z,U,k){return e(N,Z,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?mt([M,[N,Z,U],H,k||Date.now(),Date.now()]):typeof U=="function"&&U.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(v,T,O,M){return typeof O=="function"&&(M=O,O=null),N(v,T,O,M);function N(Z,U,k,H,ie){return n(Z,U,k,function($){$&&($.code==="EMFILE"||$.code==="ENFILE")?mt([N,[Z,U,k,H],$,ie||Date.now(),Date.now()]):typeof H=="function"&&H.apply(this,arguments)})}}var o=t.appendFile;o&&(t.appendFile=s);function s(v,T,O,M){return typeof O=="function"&&(M=O,O=null),N(v,T,O,M);function N(Z,U,k,H,ie){return o(Z,U,k,function($){$&&($.code==="EMFILE"||$.code==="ENFILE")?mt([N,[Z,U,k,H],$,ie||Date.now(),Date.now()]):typeof H=="function"&&H.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(v,T,O,M){return typeof O=="function"&&(M=O,O=0),N(v,T,O,M);function N(Z,U,k,H,ie){return a(Z,U,k,function($){$&&($.code==="EMFILE"||$.code==="ENFILE")?mt([N,[Z,U,k,H],$,ie||Date.now(),Date.now()]):typeof H=="function"&&H.apply(this,arguments)})}}var d=t.readdir;t.readdir=F;var c=/^v[0-5]\./;function F(v,T,O){typeof T=="function"&&(O=T,T=null);var M=c.test(process.version)?function(U,k,H,ie){return d(U,N(U,k,H,ie))}:function(U,k,H,ie){return d(U,k,N(U,k,H,ie))};return M(v,T,O);function N(Z,U,k,H){return function(ie,$){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?mt([M,[Z,U,k],ie,H||Date.now(),Date.now()]):($&&$.sort&&$.sort(),typeof k=="function"&&k.call(this,ie,$))}}}if(process.version.substr(0,4)==="v0.8"){var y=Bc(t);g=y.ReadStream,u=y.WriteStream}var f=t.ReadStream;f&&(g.prototype=Object.create(f.prototype),g.prototype.open=C);var h=t.WriteStream;h&&(u.prototype=Object.create(h.prototype),u.prototype.open=E),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return u},set:function(v){u=v},enumerable:!0,configurable:!0});var m=g;Object.defineProperty(t,"FileReadStream",{get:function(){return m},set:function(v){m=v},enumerable:!0,configurable:!0});var p=u;Object.defineProperty(t,"FileWriteStream",{get:function(){return p},set:function(v){p=v},enumerable:!0,configurable:!0});function g(v,T){return this instanceof g?(f.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function C(){var v=this;R(v.path,v.flags,v.mode,function(T,O){T?(v.autoClose&&v.destroy(),v.emit("error",T)):(v.fd=O,v.emit("open",O),v.read())})}function u(v,T){return this instanceof u?(h.apply(this,arguments),this):u.apply(Object.create(u.prototype),arguments)}function E(){var v=this;R(v.path,v.flags,v.mode,function(T,O){T?(v.destroy(),v.emit("error",T)):(v.fd=O,v.emit("open",O))})}function _(v,T){return new t.ReadStream(v,T)}function b(v,T){return new t.WriteStream(v,T)}var S=t.open;t.open=R;function R(v,T,O,M){return typeof O=="function"&&(M=O,O=null),N(v,T,O,M);function N(Z,U,k,H,ie){return S(Z,U,k,function($,sh){$&&($.code==="EMFILE"||$.code==="ENFILE")?mt([N,[Z,U,k,H],$,ie||Date.now(),Date.now()]):typeof H=="function"&&H.apply(this,arguments)})}}return t}function mt(t){et("ENQUEUE",t[0].name,t[1]),X[se].push(t),ni()}var wr;function Su(){for(var t=Date.now(),e=0;e<X[se].length;++e)X[se][e].length>2&&(X[se][e][3]=t,X[se][e][4]=t);ni()}function ni(){if(clearTimeout(wr),wr=void 0,X[se].length!==0){var t=X[se].shift(),e=t[0],r=t[1],n=t[2],i=t[3],o=t[4];if(i===void 0)et("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){et("TIMEOUT",e.name,r);var s=r.pop();typeof s=="function"&&s.call(null,n)}else{var a=Date.now()-o,l=Math.max(o-i,1),d=Math.min(l*1.2,100);a>=d?(et("RETRY",e.name,r),e.apply(null,r.concat([i]))):X[se].push(t)}wr===void 0&&(wr=setTimeout(ni,0))}}});var Tu=A((jp,Ou)=>{"use strict";D();function me(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}Ou.exports=me;me.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};me.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};me.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift();else return!1;var n=this,i=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r);return this._options.unref&&i.unref(),!0};me.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};me.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};me.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};me.prototype.start=me.prototype.try;me.prototype.errors=function(){return this._errors};me.prototype.attempts=function(){return this._attempts};me.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],o=i.message,s=(t[o]||0)+1;t[o]=s,s>=r&&(e=i,r=s)}return e}});var Bu=A(tt=>{"use strict";D();var Lc=Tu();tt.operation=function(t){var e=tt.timeouts(t);return new Lc(e,{forever:t&&t.forever,unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};tt.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(o,s){return o-s}),n};tt.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*e.minTimeout*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};tt.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var o=r[i],s=t[o];t[o]=function(l){var d=tt.operation(e),c=Array.prototype.slice.call(arguments,1),F=c.pop();c.push(function(y){d.retry(y)||(y&&(arguments[0]=d.mainError()),F.apply(this,arguments))}),d.attempt(function(){l.apply(t,c)})}.bind(t,s),t[o].options=e}}});var Ru=A((Wp,Iu)=>{"use strict";D();Iu.exports=Bu()});var Nu=A((zp,si)=>{"use strict";D();var Lu=Symbol();function Nc(t,e,r){let n=e[Lu];if(n)return e.stat(t,(o,s)=>{if(o)return r(o);r(null,s.mtime,n)});let i=new Date(Math.ceil(Date.now()/1e3)*1e3+5);e.utimes(t,i,i,o=>{if(o)return r(o);e.stat(t,(s,a)=>{if(s)return r(s);let l=a.mtime.getTime()%1e3===0?"s":"ms";Object.defineProperty(e,Lu,{value:l}),r(null,a.mtime,l)})})}function Pc(t){let e=Date.now();return t==="s"&&(e=Math.ceil(e/1e3)*1e3),new Date(e)}si.exports.probe=Nc;si.exports.getMtime=Pc});var Hu=A((Yp,Ht)=>{"use strict";D();var Mc=require("path"),li=oi(),Uc=Ru(),kc=nn(),Pu=Nu(),Te={};function kt(t,e){return e.lockfilePath||`${t}.lock`}function fi(t,e,r){if(!e.realpath)return r(null,Mc.resolve(t));e.fs.realpath(t,r)}function ai(t,e,r){let n=kt(t,e);e.fs.mkdir(n,i=>{if(!i)return Pu.probe(n,e.fs,(o,s,a)=>{if(o)return e.fs.rmdir(n,()=>{}),r(o);r(null,s,a)});if(i.code!=="EEXIST")return r(i);if(e.stale<=0)return r(Object.assign(new Error("Lock file is already being held"),{code:"ELOCKED",file:t}));e.fs.stat(n,(o,s)=>{if(o)return o.code==="ENOENT"?ai(t,{...e,stale:0},r):r(o);if(!Mu(s,e))return r(Object.assign(new Error("Lock file is already being held"),{code:"ELOCKED",file:t}));Uu(t,e,a=>{if(a)return r(a);ai(t,{...e,stale:0},r)})})})}function Mu(t,e){return t.mtime.getTime()<Date.now()-e.stale}function Uu(t,e,r){e.fs.rmdir(kt(t,e),n=>{if(n&&n.code!=="ENOENT")return r(n);r()})}function Sr(t,e){let r=Te[t];r.updateTimeout||(r.updateDelay=r.updateDelay||e.update,r.updateTimeout=setTimeout(()=>{r.updateTimeout=null,e.fs.stat(r.lockfilePath,(n,i)=>{let o=r.lastUpdate+e.stale<Date.now();if(n)return n.code==="ENOENT"||o?ui(t,r,Object.assign(n,{code:"ECOMPROMISED"})):(r.updateDelay=1e3,Sr(t,e));if(!(r.mtime.getTime()===i.mtime.getTime()))return ui(t,r,Object.assign(new Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let a=Pu.getMtime(r.mtimePrecision);e.fs.utimes(r.lockfilePath,a,a,l=>{let d=r.lastUpdate+e.stale<Date.now();if(!r.released){if(l)return l.code==="ENOENT"||d?ui(t,r,Object.assign(l,{code:"ECOMPROMISED"})):(r.updateDelay=1e3,Sr(t,e));r.mtime=a,r.lastUpdate=Date.now(),r.updateDelay=null,Sr(t,e)}})})},r.updateDelay),r.updateTimeout.unref&&r.updateTimeout.unref())}function ui(t,e,r){e.released=!0,e.updateTimeout&&clearTimeout(e.updateTimeout),Te[t]===e&&delete Te[t],e.options.onCompromised(r)}function Hc(t,e,r){e={stale:1e4,update:null,realpath:!0,retries:0,fs:li,onCompromised:n=>{throw n},...e},e.retries=e.retries||0,e.retries=typeof e.retries=="number"?{retries:e.retries}:e.retries,e.stale=Math.max(e.stale||0,2e3),e.update=e.update==null?e.stale/2:e.update||0,e.update=Math.max(Math.min(e.update,e.stale/2),1e3),fi(t,e,(n,i)=>{if(n)return r(n);let o=Uc.operation(e.retries);o.attempt(()=>{ai(i,e,(s,a,l)=>{if(o.retry(s))return;if(s)return r(o.mainError());let d=Te[i]={lockfilePath:kt(i,e),mtime:a,mtimePrecision:l,options:e,lastUpdate:Date.now()};Sr(i,e),r(null,c=>{if(d.released)return c&&c(Object.assign(new Error("Lock is already released"),{code:"ERELEASED"}));ku(i,{...e,realpath:!1},c)})})})})}function ku(t,e,r){e={fs:li,realpath:!0,...e},fi(t,e,(n,i)=>{if(n)return r(n);let o=Te[i];if(!o)return r(Object.assign(new Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));o.updateTimeout&&clearTimeout(o.updateTimeout),o.released=!0,delete Te[i],Uu(i,e,r)})}function jc(t,e,r){e={stale:1e4,realpath:!0,fs:li,...e},e.stale=Math.max(e.stale||0,2e3),fi(t,e,(n,i)=>{if(n)return r(n);e.fs.stat(kt(i,e),(o,s)=>o?o.code==="ENOENT"?r(null,!1):r(o):r(null,!Mu(s,e)))})}function Vc(){return Te}kc(()=>{for(let t in Te){let e=Te[t].options;try{e.fs.rmdirSync(kt(t,e))}catch{}}});Ht.exports.lock=Hc;Ht.exports.unlock=ku;Ht.exports.check=jc;Ht.exports.getLocks=Vc});var Vu=A((Xp,ju)=>{"use strict";D();var $c=oi();function qc(t){let e=["mkdir","realpath","stat","rmdir","utimes"],r={...t};return e.forEach(n=>{r[n]=(...i)=>{let o=i.pop(),s;try{s=t[`${n}Sync`](...i)}catch(a){return o(a)}o(null,s)}}),r}function Wc(t){return(...e)=>new Promise((r,n)=>{e.push((i,o)=>{i?n(i):r(o)}),t(...e)})}function Gc(t){return(...e)=>{let r,n;if(e.push((i,o)=>{r=i,n=o}),t(...e),r)throw r;return n}}function zc(t){if(t={...t},t.fs=qc(t.fs||$c),typeof t.retries=="number"&&t.retries>0||t.retries&&typeof t.retries.retries=="number"&&t.retries.retries>0)throw Object.assign(new Error("Cannot use retries with the sync api"),{code:"ESYNC"});return t}ju.exports={toPromise:Wc,toSync:Gc,toSyncOptions:zc}});var qu=A((Qp,Ve)=>{"use strict";D();var gt=Hu(),{toPromise:Ar,toSync:Or,toSyncOptions:ci}=Vu();async function $u(t,e){let r=await Ar(gt.lock)(t,e);return Ar(r)}function Zc(t,e){let r=Or(gt.lock)(t,ci(e));return Or(r)}function Yc(t,e){return Ar(gt.unlock)(t,e)}function Kc(t,e){return Or(gt.unlock)(t,ci(e))}function Xc(t,e){return Ar(gt.check)(t,e)}function Jc(t,e){return Or(gt.check)(t,ci(e))}Ve.exports=$u;Ve.exports.lock=$u;Ve.exports.unlock=Yc;Ve.exports.lockSync=Zc;Ve.exports.unlockSync=Kc;Ve.exports.check=Xc;Ve.exports.checkSync=Jc});D();D();var Ii=V(Bi(),1),{program:yh,createCommand:xh,createArgument:vh,createOption:wh,CommanderError:bh,InvalidArgumentError:Sh,InvalidOptionArgumentError:Ah,Command:Ri,Argument:Oh,Option:Th,Help:Bh}=Ii.default;D();D();D();D();var Li=(t=0)=>e=>`\x1B[${e+t}m`,Ni=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Pi=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,W={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]}},Lh=Object.keys(W.modifier),xa=Object.keys(W.color),va=Object.keys(W.bgColor),Nh=[...xa,...va];function wa(){let t=new Map;for(let[e,r]of Object.entries(W)){for(let[n,i]of Object.entries(r))W[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=W[n],t.set(i[0],i[1]);Object.defineProperty(W,e,{value:r,enumerable:!1})}return Object.defineProperty(W,"codes",{value:t,enumerable:!1}),W.color.close="\x1B[39m",W.bgColor.close="\x1B[49m",W.color.ansi=Li(),W.color.ansi256=Ni(),W.color.ansi16m=Pi(),W.bgColor.ansi=Li(10),W.bgColor.ansi256=Ni(10),W.bgColor.ansi16m=Pi(10),Object.defineProperties(W,{rgbToAnsi256:{value(e,r,n){return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:e=>W.rgbToAnsi256(...W.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let a=e%36;r=Math.floor(e/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let s=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>W.ansi256ToAnsi(W.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>W.ansi256ToAnsi(W.hexToAnsi256(e)),enumerable:!1}}),W}var ba=wa(),Ee=ba;D();var Gt=V(require("process"),1),Ui=V(require("os"),1),Zr=V(require("tty"),1);function fe(t,e=globalThis.Deno?globalThis.Deno.args:Gt.default.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:G}=Gt.default,Wt;fe("no-color")||fe("no-colors")||fe("color=false")||fe("color=never")?Wt=0:(fe("color")||fe("colors")||fe("color=true")||fe("color=always"))&&(Wt=1);function Sa(){if("FORCE_COLOR"in G)return G.FORCE_COLOR==="true"?1:G.FORCE_COLOR==="false"?0:G.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(G.FORCE_COLOR,10),3)}function Aa(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Oa(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=Sa();n!==void 0&&(Wt=n);let i=r?Wt:n;if(i===0)return 0;if(r){if(fe("color=16m")||fe("color=full")||fe("color=truecolor"))return 3;if(fe("color=256"))return 2}if("TF_BUILD"in G&&"AGENT_NAME"in G)return 1;if(t&&!e&&i===void 0)return 0;let o=i||0;if(G.TERM==="dumb")return o;if(Gt.default.platform==="win32"){let s=Ui.default.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in G)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(s=>s in G)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in G)||G.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in G)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(G.TEAMCITY_VERSION)?1:0;if(G.COLORTERM==="truecolor"||G.TERM==="xterm-kitty"||G.TERM==="xterm-ghostty"||G.TERM==="wezterm")return 3;if("TERM_PROGRAM"in G){let s=Number.parseInt((G.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(G.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(G.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(G.TERM)||"COLORTERM"in G?1:o}function Mi(t,e={}){let r=Oa(t,{streamIsTTY:t&&t.isTTY,...e});return Aa(r)}var Ta={stdout:Mi({isTTY:Zr.default.isatty(1)}),stderr:Mi({isTTY:Zr.default.isatty(2)})},ki=Ta;D();function Hi(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let i=e.length,o=0,s="";do s+=t.slice(o,n)+e+r,o=n+i,n=t.indexOf(e,o);while(n!==-1);return s+=t.slice(o),s}function ji(t,e,r,n){let i=0,o="";do{let s=t[n-1]==="\r";o+=t.slice(i,s?n-1:n)+e+(s?`\r
24
24
  `:`
25
25
  `)+r,i=n+1,n=t.indexOf(`
26
- `,i)}while(n!==-1);return o+=t.slice(i),o}var{stdout:Ui,stderr:ki}=Ni,Gr=Symbol("GENERATOR"),et=Symbol("STYLER"),gt=Symbol("IS_EMPTY"),Hi=["ansi","ansi","ansi256","ansi16m"],tt=Object.create(null),Sa=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Ui?Ui.level:0;t.level=e.level===void 0?r:e.level};var Aa=t=>{let e=(...r)=>r.join(" ");return Sa(e,t),Object.setPrototypeOf(e,Et.prototype),e};function Et(t){return Aa(t)}Object.setPrototypeOf(Et.prototype,Function.prototype);for(let[t,e]of Object.entries(me))tt[t]={get(){let r=Wt(this,Zr(e.open,e.close,this[et]),this[gt]);return Object.defineProperty(this,t,{value:r}),r}};tt.visible={get(){let t=Wt(this,this[et],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var zr=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?me[r].ansi16m(...n):e==="ansi256"?me[r].ansi256(me.rgbToAnsi256(...n)):me[r].ansi(me.rgbToAnsi(...n)):t==="hex"?zr("rgb",e,r,...me.hexToRgb(...n)):me[r][t](...n),Oa=["rgb","hex","ansi256"];for(let t of Oa){tt[t]={get(){let{level:r}=this;return function(...n){let i=Zr(zr(t,Hi[r],"color",...n),me.color.close,this[et]);return Wt(this,i,this[gt])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);tt[e]={get(){let{level:r}=this;return function(...n){let i=Zr(zr(t,Hi[r],"bgColor",...n),me.bgColor.close,this[et]);return Wt(this,i,this[gt])}}}}var Ta=Object.defineProperties(()=>{},{...tt,level:{enumerable:!0,get(){return this[Gr].level},set(t){this[Gr].level=t}}}),Zr=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Wt=(t,e,r)=>{let n=(...i)=>Ba(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Ta),n[Gr]=t,n[et]=e,n[gt]=r,n},Ba=(t,e)=>{if(t.level<=0||!e)return t[gt]?"":e;let r=t[et];if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=Mi(e,r.close,r.open),r=r.parent;let o=e.indexOf(`
27
- `);return o!==-1&&(e=Pi(e,i,n,o)),n+e+i};Object.defineProperties(Et.prototype,tt);var Ia=Et(),jh=Et({level:ki?ki.level:0});var I=Ia;D();var ji=require("os"),we=require("path"),Ft=V(require("fs/promises"),1),Yr=require("fs");function Fe(){return process.env.CHVM_HOME||(0,we.join)((0,ji.homedir)(),".chvm")}async function _e(t){let e=[t,(0,we.join)(t,"installs"),(0,we.join)(t,"profiles"),(0,we.join)(t,"tmp"),(0,we.join)(t,"logs")];for(let r of e)await Ft.default.mkdir(r,{recursive:!0})}async function Oe(t){let e=(0,we.join)(t,"available.json");if(!(0,Yr.existsSync)(e))return[];let r=await Ft.default.readFile(e,"utf8");return JSON.parse(r)}async function ge(t){let e=(0,we.join)(t,"installed.json");if(!(0,Yr.existsSync)(e))return{};let r=await Ft.default.readFile(e,"utf8");return JSON.parse(r)}async function Vi(t,e){let r=(0,we.join)(t,"installed.json");await Ft.default.writeFile(r,JSON.stringify(e,null,2),"utf8")}async function $i(t,e){let r=await ge(t);r[e.version]={revision:e.revision,path:e.path,installedAt:new Date().toISOString(),size:e.size},await Vi(t,r)}async function qi(t,e){let r=await ge(t);delete r[e],await Vi(t,r)}async function Ra(t){try{let e=Fe();await _e(e);let r=await Oe(e),n=await ge(e);if(t.json)console.log(JSON.stringify({available:r,installed:n},null,2));else{if(r.length===0){console.log(I.yellow('No versions available. Run "chvm update" first.'));return}console.log(I.bold(`
26
+ `,i)}while(n!==-1);return o+=t.slice(i),o}var{stdout:Vi,stderr:$i}=ki,Yr=Symbol("GENERATOR"),rt=Symbol("STYLER"),Ft=Symbol("IS_EMPTY"),qi=["ansi","ansi","ansi256","ansi16m"],nt=Object.create(null),Ba=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Vi?Vi.level:0;t.level=e.level===void 0?r:e.level};var Ia=t=>{let e=(...r)=>r.join(" ");return Ba(e,t),Object.setPrototypeOf(e,_t.prototype),e};function _t(t){return Ia(t)}Object.setPrototypeOf(_t.prototype,Function.prototype);for(let[t,e]of Object.entries(Ee))nt[t]={get(){let r=zt(this,Xr(e.open,e.close,this[rt]),this[Ft]);return Object.defineProperty(this,t,{value:r}),r}};nt.visible={get(){let t=zt(this,this[rt],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Kr=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?Ee[r].ansi16m(...n):e==="ansi256"?Ee[r].ansi256(Ee.rgbToAnsi256(...n)):Ee[r].ansi(Ee.rgbToAnsi(...n)):t==="hex"?Kr("rgb",e,r,...Ee.hexToRgb(...n)):Ee[r][t](...n),Ra=["rgb","hex","ansi256"];for(let t of Ra){nt[t]={get(){let{level:r}=this;return function(...n){let i=Xr(Kr(t,qi[r],"color",...n),Ee.color.close,this[rt]);return zt(this,i,this[Ft])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);nt[e]={get(){let{level:r}=this;return function(...n){let i=Xr(Kr(t,qi[r],"bgColor",...n),Ee.bgColor.close,this[rt]);return zt(this,i,this[Ft])}}}}var La=Object.defineProperties(()=>{},{...nt,level:{enumerable:!0,get(){return this[Yr].level},set(t){this[Yr].level=t}}}),Xr=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},zt=(t,e,r)=>{let n=(...i)=>Na(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,La),n[Yr]=t,n[rt]=e,n[Ft]=r,n},Na=(t,e)=>{if(t.level<=0||!e)return t[Ft]?"":e;let r=t[rt];if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=Hi(e,r.close,r.open),r=r.parent;let o=e.indexOf(`
27
+ `);return o!==-1&&(e=ji(e,i,n,o)),n+e+i};Object.defineProperties(_t.prototype,nt);var Pa=_t(),Wh=_t({level:$i?$i.level:0});var I=Pa;D();var Wi=require("os"),Ae=require("path"),Ct=V(require("fs/promises"),1),Jr=require("fs");function Ce(){return process.env.CHVM_HOME||(0,Ae.join)((0,Wi.homedir)(),".chvm")}async function ye(t){let e=[t,(0,Ae.join)(t,"installs"),(0,Ae.join)(t,"profiles"),(0,Ae.join)(t,"tmp"),(0,Ae.join)(t,"logs")];for(let r of e)await Ct.default.mkdir(r,{recursive:!0})}async function Ie(t){let e=(0,Ae.join)(t,"available.json");if(!(0,Jr.existsSync)(e))return[];let r=await Ct.default.readFile(e,"utf8");return JSON.parse(r)}async function Fe(t){let e=(0,Ae.join)(t,"installed.json");if(!(0,Jr.existsSync)(e))return{};let r=await Ct.default.readFile(e,"utf8");return JSON.parse(r)}async function Gi(t,e){let r=(0,Ae.join)(t,"installed.json");await Ct.default.writeFile(r,JSON.stringify(e,null,2),"utf8")}async function zi(t,e){let r=await Fe(t);r[e.version]={revision:e.revision,path:e.path,installedAt:new Date().toISOString(),size:e.size},await Gi(t,r)}async function Zi(t,e){let r=await Fe(t);delete r[e],await Gi(t,r)}async function Ma(t){try{let e=Ce();await ye(e);let r=await Ie(e),n=await Fe(e);if(t.json)console.log(JSON.stringify({available:r,installed:n},null,2));else{if(r.length===0){console.log(I.yellow('No versions available. Run "chvm update" first.'));return}console.log(I.bold(`
28
28
  Available Chromium Versions:
29
- `)),console.log(I.gray("VERSION CHANNEL STATUS")),console.log(I.gray("\u2500".repeat(60)));for(let i of r){let s=n[i.version]?I.green("* installed"):"";console.log(`${i.version.split(".")[0]} ${i.channel} ${s}`)}console.log()}}catch(e){console.error(I.red(`Error: ${e.message}`)),process.exit(1)}}function Kr(t){t.command("ls").description("List available and installed Chromium versions").option("--json","Output in JSON format").action(Ra)}D();D();var Lt=V(require("process"),1);D();var tn=V(require("process"),1);D();var eo=V(require("process"),1),to=V(Zi(),1),ro=V(en(),1),Na=(0,to.default)(()=>{(0,ro.default)(()=>{eo.default.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),no=Na;var Jt=!1,ot={};ot.show=(t=tn.default.stderr)=>{t.isTTY&&(Jt=!1,t.write("\x1B[?25h"))};ot.hide=(t=tn.default.stderr)=>{t.isTTY&&(no(),Jt=!0,t.write("\x1B[?25l"))};ot.toggle=(t,e)=>{t!==void 0&&(Jt=t),Jt?ot.show(e):ot.hide(e)};var rn=ot;var Nt=V(nn(),1);D();D();var fe=V(require("process"),1);function Ct(){return fe.default.platform!=="win32"?fe.default.env.TERM!=="linux":!!fe.default.env.CI||!!fe.default.env.WT_SESSION||!!fe.default.env.TERMINUS_SUBLIME||fe.default.env.ConEmuTask==="{cmd::Cmder}"||fe.default.env.TERM_PROGRAM==="Terminus-Sublime"||fe.default.env.TERM_PROGRAM==="vscode"||fe.default.env.TERM==="xterm-256color"||fe.default.env.TERM==="alacritty"||fe.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Pa={info:I.blue("\u2139"),success:I.green("\u2714"),warning:I.yellow("\u26A0"),error:I.red("\u2716")},Ua={info:I.blue("i"),success:I.green("\u221A"),warning:I.yellow("\u203C"),error:I.red("\xD7")},ka=Ct()?Pa:Ua,yt=ka;D();D();function on({onlyFirst:t=!1}={}){let i="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(i,t?void 0:"g")}var Ha=on();function xt(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(Ha,"")}D();var fo=V(ao(),1);D();var lo=()=>/[#*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;function un(t,e){if(typeof t!="string"||t.length===0||(e={ambiguousIsNarrow:!0,countAnsiEscapeCodes:!1,...e},e.countAnsiEscapeCodes||(t=xt(t)),t.length===0))return 0;let r=e.ambiguousIsNarrow?1:2,n=0;for(let{segment:i}of new Intl.Segmenter().segment(t)){let o=i.codePointAt(0);if(o<=31||o>=127&&o<=159||o>=768&&o<=879)continue;if(lo().test(i)){n+=2;continue}switch(fo.default.eastAsianWidth(i)){case"F":case"W":{n+=2;break}case"A":{n+=r;break}default:n+=1}}return n}D();function an({stream:t=process.stdout}={}){return!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}D();var De=V(require("process"),1),Cs=V(require("readline"),1),ys=V(_s(),1),Zf=3,Hn=class{#r=0;#c=new ys.BufferListStream;#i;#n;constructor(){this.#c.pipe(De.default.stdout);let e=this;this.#i=function(r,n,...i){let{stdin:o}=De.default;if(e.#r>0||o.emit===e.#i){if(r==="keypress")return;r==="data"&&n.includes(Zf)&&De.default.emit("SIGINT"),Reflect.apply(e.#i,this,[r,n,...i])}else Reflect.apply(De.default.stdin.emit,this,[r,n,...i])}}start(){this.#r++,this.#r===1&&this._realStart()}stop(){if(this.#r<=0)throw new Error("`stop` called more times than `start`");this.#r--,this.#r===0&&this._realStop()}_realStart(){De.default.platform!=="win32"&&(this.#n=Cs.default.createInterface({input:De.default.stdin,output:this.#c}),this.#n.on("SIGINT",()=>{De.default.listenerCount("SIGINT")===0?De.default.emit("SIGINT"):(this.#n.close(),De.default.kill(De.default.pid,"SIGINT"))}))}_realStop(){De.default.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}},Yf=new Hn,jn=Yf;var Kf=V(nn(),1),Vn=class{#r=0;#c=!1;#i=0;#n=0;#e;#u;#t;#h;#d;#a;#l;#f;#p;#o;#s;color;constructor(e){typeof e=="string"&&(e={text:e}),this.#e={color:"cyan",stream:Lt.default.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#e.color,this.spinner=this.#e.spinner,this.#d=this.#e.interval,this.#t=this.#e.stream,this.#a=typeof this.#e.isEnabled=="boolean"?this.#e.isEnabled:an({stream:this.#t}),this.#l=typeof this.#e.isSilent=="boolean"?this.#e.isSilent:!1,this.text=this.#e.text,this.prefixText=this.#e.prefixText,this.suffixText=this.#e.suffixText,this.indent=this.#e.indent,Lt.default.env.NODE_ENV==="test"&&(this._stream=this.#t,this._isEnabled=this.#a,Object.defineProperty(this,"_linesToClear",{get(){return this.#r},set(r){this.#r=r}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#n}}),Object.defineProperty(this,"_lineCount",{get(){return this.#i}}))}get indent(){return this.#f}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#f=e,this.#D()}get interval(){return this.#d??this.#u.interval??100}get spinner(){return this.#u}set spinner(e){if(this.#n=0,this.#d=void 0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#u=e}else if(!Ct())this.#u=Nt.default.line;else if(e===void 0)this.#u=Nt.default.dots;else if(e!=="default"&&Nt.default[e])this.#u=Nt.default[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#p}set text(e=""){this.#p=e,this.#D()}get prefixText(){return this.#o}set prefixText(e=""){this.#o=e,this.#D()}get suffixText(){return this.#s}set suffixText(e=""){this.#s=e,this.#D()}get isSpinning(){return this.#h!==void 0}#m(e=this.#o,r=" "){return typeof e=="string"&&e!==""?e+r:typeof e=="function"?e()+r:""}#g(e=this.#s,r=" "){return typeof e=="string"&&e!==""?r+e:typeof e=="function"?r+e():""}#D(){let e=this.#t.columns??80,r=this.#m(this.#o,"-"),n=this.#g(this.#s,"-"),i=" ".repeat(this.#f)+r+"--"+this.#p+"--"+n;this.#i=0;for(let o of xt(i).split(`
30
- `))this.#i+=Math.max(1,Math.ceil(un(o,{countAnsiEscapeCodes:!0})/e))}get isEnabled(){return this.#a&&!this.#l}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#a=e}get isSilent(){return this.#l}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#l=e}frame(){let{frames:e}=this.#u,r=e[this.#n];this.color&&(r=I[this.color](r)),this.#n=++this.#n%e.length;let n=typeof this.#o=="string"&&this.#o!==""?this.#o+" ":"",i=typeof this.text=="string"?" "+this.text:"",o=typeof this.#s=="string"&&this.#s!==""?" "+this.#s:"";return n+r+i+o}clear(){if(!this.#a||!this.#t.isTTY)return this;this.#t.cursorTo(0);for(let e=0;e<this.#r;e++)e>0&&this.#t.moveCursor(0,-1),this.#t.clearLine(1);return(this.#f||this.lastIndent!==this.#f)&&this.#t.cursorTo(this.#f),this.lastIndent=this.#f,this.#r=0,this}render(){return this.#l?this:(this.clear(),this.#t.write(this.frame()),this.#r=this.#i,this)}start(e){return e&&(this.text=e),this.#l?this:this.#a?this.isSpinning?this:(this.#e.hideCursor&&rn.hide(this.#t),this.#e.discardStdin&&Lt.default.stdin.isTTY&&(this.#c=!0,jn.start()),this.render(),this.#h=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#t.write(`- ${this.text}
31
- `),this)}stop(){return this.#a?(clearInterval(this.#h),this.#h=void 0,this.#n=0,this.clear(),this.#e.hideCursor&&rn.show(this.#t),this.#e.discardStdin&&Lt.default.stdin.isTTY&&this.#c&&(jn.stop(),this.#c=!1),this):this}succeed(e){return this.stopAndPersist({symbol:yt.success,text:e})}fail(e){return this.stopAndPersist({symbol:yt.error,text:e})}warn(e){return this.stopAndPersist({symbol:yt.warning,text:e})}info(e){return this.stopAndPersist({symbol:yt.info,text:e})}stopAndPersist(e={}){if(this.#l)return this;let r=e.prefixText??this.#o,n=this.#m(r," "),i=e.symbol??" ",o=e.text??this.text,s=typeof o=="string"?" "+o:"",a=e.suffixText??this.#s,f=this.#g(a," "),d=n+i+s+f+`
32
- `;return this.stop(),this.#t.write(d),this}};function Ze(t){return new Vn(t)}var xs=V(require("fs"),1),vs=require("path");function Xf(){let t=process.platform,e=process.arch;if(t==="linux")return e==="x64"?"linux_x64":e==="arm"||e==="arm64"?"linux_arm":"linux";if(t==="darwin")return e==="arm64"?"mac_arm":"mac";if(t==="win32")return e==="x64"?"win_x64":e==="arm64"?"win_arm64":e==="ia32"?"win32":"win";throw new Error(`Your platform is not supported yet: ${t} ${e}`)}async function Jf(t){try{let e=Fe();await _e(e);let r=Ze("Fetching available Chromium versions...").start();fetch(`https://raw.githubusercontent.com/amirkabiri/chvm/refs/heads/main/public/manifest/${Xf()}.json`).then(n=>n.json()).then(n=>{let i=(0,vs.join)(e,"available.json");xs.default.writeFileSync(i,JSON.stringify(n,null,2)),r.succeed(I.green(`Updated! ${n.length} versions available.`))}).catch(n=>{throw r.fail(I.red(`Failed to update: ${n.message}`)),n})}catch(e){console.error(I.red(`Error: ${e.message}`)),process.exit(1)}}function $n(t){t.command("update").description("Update the list of available Chromium versions").option("--force","Force update, bypass cache").action(Jf)}D();var kt=V(require("fs/promises"),1),qu=require("fs"),ke=require("path");D();var Ye=require("fs"),Wn=require("path"),qn={debug:0,info:1,warn:2,error:3};function ws(t){let{chvmHome:e,level:r="info"}=t,n=qn[r]||qn.info,i=(0,Wn.join)(e,"logs"),o=(0,Wn.join)(i,"chvm.log");(0,Ye.existsSync)(i)||(0,Ye.mkdirSync)(i,{recursive:!0});let s=(a,f)=>{if(qn[a]<n)return;let d=Qf(a,f);try{(0,Ye.appendFileSync)(o,d+`
33
- `,"utf8")}catch{}};return{debug:a=>s("debug",a),info:a=>s("info",a),warn:a=>s("warn",a),error:a=>s("error",a)}}function Qf(t,e){return`${new Date().toISOString()} [${t.toLowerCase()}] ${e}`}D();function ft(t,e){if(!e||e.length===0)return null;if(t==="latest")return e[0];if(t==="oldest")return e[e.length-1];let r=e.find(n=>n.version===t);return r||(r=e.find(n=>n.version&&n.version.startsWith(t)),r)?r:null}D();var mr=require("fs");async function bs(t){let e=`https://www.googleapis.com/storage/v1/b/chromium-browser-snapshots/o?delimiter=/&prefix=Mac_Arm/${t}/&fields=items(kind,mediaLink,metadata,name,size,updated),kind,prefixes,nextPageToken`,r=await fetch(e);if(!r.ok)throw new Error(`Failed to fetch metadata for revision ${t}: ${r.statusText}`);let n=await r.json();if(!n.items||n.items.length===0)throw new Error(`No files found for revision ${t}`);return n}async function Ss(t,e,r){let n=await fetch(t);if(!n.ok)throw new Error(`Failed to download: ${n.statusText}`);let i=parseInt(n.headers.get("content-length")||"0",10),o=0,s=(0,mr.createWriteStream)(e);if(!n.body)throw new Error("Response body is null");let a=n.body.getReader();try{for(;;){let{done:f,value:d}=await a.read();if(f)break;if(s.write(d),o+=d.length,r&&i>0){let h={downloaded:o,total:i,percentage:Math.round(o/i*100)};r(h)}}s.end(),await new Promise((f,d)=>{s.on("finish",()=>f()),s.on("error",d)})}catch(f){throw s.close(),f}}D();var ae=V(require("fs/promises"),1),Xe=require("fs"),Se=require("path"),au=require("crypto"),lu=V(su(),1);async function fu(t,e,r){await ae.default.mkdir(e,{recursive:!0});try{let i=new lu.default(t).getEntries(),o=0;for(let s of i){let a=(0,Se.join)(e,s.entryName);if(s.isDirectory)await ae.default.mkdir(a,{recursive:!0});else{await ae.default.mkdir((0,Se.dirname)(a),{recursive:!0});let f=s.getData();await ae.default.writeFile(a,f);let d=s.attr>>16&65535;d!==0&&await ae.default.chmod(a,d),o++,r&&r({extractedFiles:o})}}r&&o===0&&r({extractedFiles:0})}catch(n){throw new Error(`Failed to extract zip: ${n.message}`)}}async function cu(t,e,r){let n=(0,Se.join)(r,"tmp",`install-${(0,au.randomBytes)(8).toString("hex")}`);try{await ae.default.mkdir(n,{recursive:!0});let i=await t(n);await Fc(i,e),await uu(n)}catch(i){throw(0,Xe.existsSync)(n)&&await uu(n),i}}async function hu(t){if(!(0,Xe.existsSync)(t))return!1;let e=(0,Se.join)(t,"Contents"),r=(0,Se.join)(e,"MacOS");if(!(0,Xe.existsSync)(e)||!(0,Xe.existsSync)(r))return!1;try{let n=await ae.default.readdir(r);for(let i of n){let o=(0,Se.join)(r,i);(await ae.default.stat(o)).isFile()&&await ae.default.chmod(o,493)}}catch{}return!0}async function Du(t){if(!(0,Xe.existsSync)(t))throw new Error(`Directory does not exist: ${t}`);let e=0;async function r(n){let i=await ae.default.stat(n);if(i.isDirectory()){let o=await ae.default.readdir(n);for(let s of o)await r((0,Se.join)(n,s))}else e+=i.size}return await r(t),e}async function Fc(t,e){try{await ae.default.rename(t,e)}catch{await ae.default.cp(t,e,{recursive:!0}),await ae.default.rm(t,{recursive:!0,force:!0})}}async function uu(t){(0,Xe.existsSync)(t)&&await ae.default.rm(t,{recursive:!0,force:!0})}D();var Hu=V(ku(),1),ju=require("path"),Vu=require("fs"),$u=V(require("fs/promises"),1);async function Yc(t,e={}){let{timeout:r=5e3,staleTimeout:n=6e4}=e,i=(0,ju.join)(t,"chvm.lock");(0,Vu.existsSync)(i)||await $u.default.writeFile(i,JSON.stringify({pid:process.pid,timestamp:Date.now()}),"utf8");try{return await Hu.default.lock(i,{retries:{retries:Math.floor(r/100),minTimeout:100,maxTimeout:1e3},stale:n,realpath:!1})}catch(o){throw new Error(`Failed to acquire lock: ${o.message}`)}}async function Kc(t){typeof t=="function"&&await t()}async function Ar(t,e,r={}){let n=await Yc(t,r);try{return await e()}finally{await Kc(n)}}async function Xc(t,e){try{let r=Fe();await _e(r);let n=ws({chvmHome:r,level:e.quiet?"error":"info"});await Ar(r,async()=>{let i=await Oe(r);if(i.length===0)throw new Error('No versions available. Please run "chvm update" first.');let o=ft(t,i);if(!o)throw new Error(`Version "${t}" not found. Run "chvm ls" to see available versions.`);let s=String(o.chromium_main_branch_position),a=o.version||`Revision ${s}`;console.log(I.blue(`Resolving '${t}' -> ${a} (revision: ${s})`));let f=await ge(r),d=o.version||s;if(f[d]){console.log(I.yellow(`Version ${a} is already installed.`));return}let h=Ze("Fetching revision metadata...").start(),y=(await bs(s)).items.find(m=>m.name.includes("chrome-mac.zip"));if(!y)throw new Error("chrome-mac.zip not found in revision");h.text=`Downloading Chromium ${a}...`;let l=(0,ke.join)(r,"tmp",`chrome-${s}.zip`);await kt.default.mkdir((0,ke.join)(r,"tmp"),{recursive:!0}),await Ss(y.mediaLink,l,m=>{h.text=`Downloading: ${m.percentage}% (${Math.round(m.downloaded/1024/1024)}MB / ${Math.round(m.total/1024/1024)}MB)`}),h.text="Extracting...";let c=(0,ke.join)(r,"installs",`${d}.app`);if(await cu(async m=>{let C=(0,ke.join)(m,"extracted");h.text="Extracting zip...",await fu(l,C,_=>{h.text=`Extracting: ${_.extractedFiles} files...`}),h.text="Looking for app bundle...";let u=await kt.default.readdir(C);console.log("Extracted files:",u.slice(0,10).join(", "));let E=u.find(_=>_.endsWith(".app"));if(!E){let _=(0,ke.join)(C,"chrome-mac");if((0,qu.existsSync)(_)){let w=(await kt.default.readdir(_)).find(R=>R.endsWith(".app"));if(w)return(0,ke.join)(_,w)}throw new Error("App bundle not found in extracted files")}return(0,ke.join)(C,E)},c,r),await kt.default.unlink(l).catch(()=>{}),h.text="Verifying installation...",!await hu(c))throw new Error("Installation verification failed: Invalid app bundle structure");let p=await Du(c);await $i(r,{version:d,revision:s,path:c,size:p}),h.succeed(I.green(`Installed ${a} to ${c}`)),n.info(`Installed version ${a}`)},{timeout:6e5})}catch(r){console.error(I.red(`Error: ${r.message}`)),process.exit(1)}}function ai(t){t.command("install <version>").alias("i").description("Install a specific Chromium version").option("--no-cache","Skip cache and download fresh").option("--quiet","Minimal output").action(Xc)}D();var li=require("child_process"),Wu=require("util"),Gu=V(require("fs/promises"),1),zu=require("fs"),Or=require("path");var Jc=(0,Wu.promisify)(li.exec);async function Qc(t,e){try{let r=Fe();await _e(r);let n=await ge(r),i=await Oe(r),o=null;if(n[t])o={version:t,...n[t]};else{let F=ft(t,i);if(!F)throw new Error(`Version "${t}" not found. Run "chvm ls" to see available versions.`);let y=String(F.chromium_main_branch_position),l=F.version;if(n[l])o={version:l,...n[l]};else{console.log(I.blue(`${F.version} not installed. Installing...`)),await Jc(`node ${process.argv[1]} install ${y}`);let c=await ge(r);o={version:l,...c[l]}}}if(!o)throw new Error("Failed to prepare version for opening");e.disableCors&&console.log(I.yellow("\u26A0\uFE0F WARNING: Running with --disable-web-security. This is insecure and should only be used for development."));let s=(0,Or.join)(r,"profiles",o.version);await Gu.default.mkdir(s,{recursive:!0});let a=o.path,f=(0,Or.join)(a,"Contents","MacOS","Chromium");if(!(0,zu.existsSync)(f))throw new Error(`Chromium executable not found at ${f}`);let d=[`--user-data-dir=${s}`];e.disableCors&&(d.push("--disable-web-security"),d.push(`--user-data-dir=${(0,Or.join)(r,"tmp",o.version)}`)),console.log(I.green(`Opening Chromium ${o.version}...`));let h=`open -a "${a}" --args ${d.join(" ")}`;(0,li.exec)(h,F=>{F&&(console.error(I.red(`Failed to open: ${F.message}`)),process.exit(1))})}catch(r){console.error(I.red(`Error: ${r.message}`)),process.exit(1)}}function fi(t){t.command("open <version>").description("Open a specific Chromium version").option("--disable-cors","Disable CORS (useful for development)").action(Qc)}D();var Tr=V(require("fs/promises"),1),Br=require("fs"),ci=require("path");async function eh(t,e){try{let r=Fe();await _e(r),await Ar(r,async()=>{let n=await ge(r),i=await Oe(r),o=t;if(!n[t]){let h=ft(t,i);if(h&&h.version&&n[h.version])o=h.version;else throw new Error(`Version "${t}" is not installed.`)}let s=n[o],a=Ze(`Uninstalling ${o}...`).start();(0,Br.existsSync)(s.path)&&(await Tr.default.rm(s.path,{recursive:!0,force:!0}),a.text="Removed app bundle...");let f=(0,ci.join)(r,"profiles",o);(0,Br.existsSync)(f)&&(await Tr.default.rm(f,{recursive:!0,force:!0}),a.text="Removed profile...");let d=(0,ci.join)(r,"tmp",o);(0,Br.existsSync)(d)&&await Tr.default.rm(d,{recursive:!0,force:!0}),await qi(r,o),a.succeed(I.green(`Uninstalled ${o}`))})}catch(r){console.error(I.red(`Error: ${r.message}`)),process.exit(1)}}function hi(t){t.command("uninstall <version>").description("Uninstall a specific Chromium version").option("--force","Force uninstall even if running").action(eh)}var Zu={name:"chvm",version:"1.1.12",description:"Chromium Version Manager - Manage and run multiple Chromium versions on macOS ARM",type:"module",main:"./dist/cli.cjs",bin:{chvm:"./dist/cli.cjs"},scripts:{"manifest:fetch-versions":"bun ./src/manifest/fetch-versions.ts",build:"tsup","build:watch":"tsup --watch",clean:"rm -rf dist",prebuild:"npm run clean",prepublishOnly:"npm run build",test:"NODE_OPTIONS=--experimental-vm-modules jest","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch","test:e2e":"NODE_OPTIONS=--experimental-vm-modules jest --testMatch='**/tests/e2e/**/*.test.ts'","test:unit":"NODE_OPTIONS=--experimental-vm-modules jest --testMatch='**/tests/unit/**/*.test.ts'","test:coverage":"NODE_OPTIONS=--experimental-vm-modules jest --coverage","semantic-release":"semantic-release"},keywords:["chrome","chromium","version-manager","macos","arm","cli"],author:"Amir Kabiri <akabiridev@gmail.com>",repository:{type:"git",url:"https://github.com/amirkabiri/chvm.git"},license:"MIT",engines:{node:">=20.0.0"},files:["dist/cli.cjs","README.md","package.json","CHANGELOG.md"],devDependencies:{"@jest/globals":"^29.7.0","@semantic-release/changelog":"^6.0.3","@semantic-release/commit-analyzer":"^13.0.1","@semantic-release/git":"^10.0.1","@semantic-release/github":"^12.0.1","@semantic-release/npm":"^13.1.1","@types/adm-zip":"^0.5.7","@types/node":"^20.0.0","@types/proper-lockfile":"^4.1.4","adm-zip":"^0.5.16",chalk:"^5.3.0","cli-progress":"^3.12.0",commander:"^11.1.0","conventional-changelog-conventionalcommits":"^9.1.0",jest:"^29.7.0",ora:"^7.0.1",prettier:"^3.6.2","proper-lockfile":"^4.1.2","semantic-release":"^25.0.2","ts-jest":"^29.1.0",tsup:"^8.5.1",typescript:"^5.3.0"}};var xe=new Oi;xe.name("chvm").description("Chromium Version Manager - Manage multiple Chromium versions on macOS ARM").version(Zu.version);xe.command("help",{isDefault:!1}).description("Show help information").action(()=>{xe.outputHelp()});Kr(xe);$n(xe);ai(xe);fi(xe);hi(xe);process.argv.length===2&&(xe.outputHelp(),process.exit(0));xe.parse();
29
+ `)),console.log(I.gray("VERSION CHANNEL STATUS")),console.log(I.gray("\u2500".repeat(60)));for(let i of r){let s=n[i.version]?I.green("* installed"):"";console.log(`${i.version.split(".")[0]} ${i.channel} ${s}`)}console.log()}}catch(e){console.error(I.red(`Error: ${e.message}`)),process.exit(1)}}function Qr(t){t.command("ls").description("List available and installed Chromium versions").option("--json","Output in JSON format").action(Ma)}D();D();var Pt=V(require("process"),1);D();var on=V(require("process"),1);D();var io=V(require("process"),1),oo=V(Ji(),1),so=V(nn(),1),ka=(0,oo.default)(()=>{(0,so.default)(()=>{io.default.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),uo=ka;var er=!1,ut={};ut.show=(t=on.default.stderr)=>{t.isTTY&&(er=!1,t.write("\x1B[?25h"))};ut.hide=(t=on.default.stderr)=>{t.isTTY&&(uo(),er=!0,t.write("\x1B[?25l"))};ut.toggle=(t,e)=>{t!==void 0&&(er=t),er?ut.show(e):ut.hide(e)};var sn=ut;var Mt=V(un(),1);D();D();var ce=V(require("process"),1);function xt(){return ce.default.platform!=="win32"?ce.default.env.TERM!=="linux":!!ce.default.env.CI||!!ce.default.env.WT_SESSION||!!ce.default.env.TERMINUS_SUBLIME||ce.default.env.ConEmuTask==="{cmd::Cmder}"||ce.default.env.TERM_PROGRAM==="Terminus-Sublime"||ce.default.env.TERM_PROGRAM==="vscode"||ce.default.env.TERM==="xterm-256color"||ce.default.env.TERM==="alacritty"||ce.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var ja={info:I.blue("\u2139"),success:I.green("\u2714"),warning:I.yellow("\u26A0"),error:I.red("\u2716")},Va={info:I.blue("i"),success:I.green("\u221A"),warning:I.yellow("\u203C"),error:I.red("\xD7")},$a=xt()?ja:Va,vt=$a;D();D();function an({onlyFirst:t=!1}={}){let i="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(i,t?void 0:"g")}var qa=an();function wt(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(qa,"")}D();var po=V(ho(),1);D();var Do=()=>/[#*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;function fn(t,e){if(typeof t!="string"||t.length===0||(e={ambiguousIsNarrow:!0,countAnsiEscapeCodes:!1,...e},e.countAnsiEscapeCodes||(t=wt(t)),t.length===0))return 0;let r=e.ambiguousIsNarrow?1:2,n=0;for(let{segment:i}of new Intl.Segmenter().segment(t)){let o=i.codePointAt(0);if(o<=31||o>=127&&o<=159||o>=768&&o<=879)continue;if(Do().test(i)){n+=2;continue}switch(po.default.eastAsianWidth(i)){case"F":case"W":{n+=2;break}case"A":{n+=r;break}default:n+=1}}return n}D();function cn({stream:t=process.stdout}={}){return!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}D();var de=V(require("process"),1),ws=V(require("readline"),1),bs=V(vs(),1),Jf=3,$n=class{#r=0;#c=new bs.BufferListStream;#i;#n;constructor(){this.#c.pipe(de.default.stdout);let e=this;this.#i=function(r,n,...i){let{stdin:o}=de.default;if(e.#r>0||o.emit===e.#i){if(r==="keypress")return;r==="data"&&n.includes(Jf)&&de.default.emit("SIGINT"),Reflect.apply(e.#i,this,[r,n,...i])}else Reflect.apply(de.default.stdin.emit,this,[r,n,...i])}}start(){this.#r++,this.#r===1&&this._realStart()}stop(){if(this.#r<=0)throw new Error("`stop` called more times than `start`");this.#r--,this.#r===0&&this._realStop()}_realStart(){de.default.platform!=="win32"&&(this.#n=ws.default.createInterface({input:de.default.stdin,output:this.#c}),this.#n.on("SIGINT",()=>{de.default.listenerCount("SIGINT")===0?de.default.emit("SIGINT"):(this.#n.close(),de.default.kill(de.default.pid,"SIGINT"))}))}_realStop(){de.default.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}},Qf=new $n,qn=Qf;var ec=V(un(),1),Wn=class{#r=0;#c=!1;#i=0;#n=0;#e;#u;#t;#h;#d;#a;#l;#f;#p;#o;#s;color;constructor(e){typeof e=="string"&&(e={text:e}),this.#e={color:"cyan",stream:Pt.default.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#e.color,this.spinner=this.#e.spinner,this.#d=this.#e.interval,this.#t=this.#e.stream,this.#a=typeof this.#e.isEnabled=="boolean"?this.#e.isEnabled:cn({stream:this.#t}),this.#l=typeof this.#e.isSilent=="boolean"?this.#e.isSilent:!1,this.text=this.#e.text,this.prefixText=this.#e.prefixText,this.suffixText=this.#e.suffixText,this.indent=this.#e.indent,Pt.default.env.NODE_ENV==="test"&&(this._stream=this.#t,this._isEnabled=this.#a,Object.defineProperty(this,"_linesToClear",{get(){return this.#r},set(r){this.#r=r}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#n}}),Object.defineProperty(this,"_lineCount",{get(){return this.#i}}))}get indent(){return this.#f}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#f=e,this.#D()}get interval(){return this.#d??this.#u.interval??100}get spinner(){return this.#u}set spinner(e){if(this.#n=0,this.#d=void 0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#u=e}else if(!xt())this.#u=Mt.default.line;else if(e===void 0)this.#u=Mt.default.dots;else if(e!=="default"&&Mt.default[e])this.#u=Mt.default[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#p}set text(e=""){this.#p=e,this.#D()}get prefixText(){return this.#o}set prefixText(e=""){this.#o=e,this.#D()}get suffixText(){return this.#s}set suffixText(e=""){this.#s=e,this.#D()}get isSpinning(){return this.#h!==void 0}#m(e=this.#o,r=" "){return typeof e=="string"&&e!==""?e+r:typeof e=="function"?e()+r:""}#g(e=this.#s,r=" "){return typeof e=="string"&&e!==""?r+e:typeof e=="function"?r+e():""}#D(){let e=this.#t.columns??80,r=this.#m(this.#o,"-"),n=this.#g(this.#s,"-"),i=" ".repeat(this.#f)+r+"--"+this.#p+"--"+n;this.#i=0;for(let o of wt(i).split(`
30
+ `))this.#i+=Math.max(1,Math.ceil(fn(o,{countAnsiEscapeCodes:!0})/e))}get isEnabled(){return this.#a&&!this.#l}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#a=e}get isSilent(){return this.#l}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#l=e}frame(){let{frames:e}=this.#u,r=e[this.#n];this.color&&(r=I[this.color](r)),this.#n=++this.#n%e.length;let n=typeof this.#o=="string"&&this.#o!==""?this.#o+" ":"",i=typeof this.text=="string"?" "+this.text:"",o=typeof this.#s=="string"&&this.#s!==""?" "+this.#s:"";return n+r+i+o}clear(){if(!this.#a||!this.#t.isTTY)return this;this.#t.cursorTo(0);for(let e=0;e<this.#r;e++)e>0&&this.#t.moveCursor(0,-1),this.#t.clearLine(1);return(this.#f||this.lastIndent!==this.#f)&&this.#t.cursorTo(this.#f),this.lastIndent=this.#f,this.#r=0,this}render(){return this.#l?this:(this.clear(),this.#t.write(this.frame()),this.#r=this.#i,this)}start(e){return e&&(this.text=e),this.#l?this:this.#a?this.isSpinning?this:(this.#e.hideCursor&&sn.hide(this.#t),this.#e.discardStdin&&Pt.default.stdin.isTTY&&(this.#c=!0,qn.start()),this.render(),this.#h=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#t.write(`- ${this.text}
31
+ `),this)}stop(){return this.#a?(clearInterval(this.#h),this.#h=void 0,this.#n=0,this.clear(),this.#e.hideCursor&&sn.show(this.#t),this.#e.discardStdin&&Pt.default.stdin.isTTY&&this.#c&&(qn.stop(),this.#c=!1),this):this}succeed(e){return this.stopAndPersist({symbol:vt.success,text:e})}fail(e){return this.stopAndPersist({symbol:vt.error,text:e})}warn(e){return this.stopAndPersist({symbol:vt.warning,text:e})}info(e){return this.stopAndPersist({symbol:vt.info,text:e})}stopAndPersist(e={}){if(this.#l)return this;let r=e.prefixText??this.#o,n=this.#m(r," "),i=e.symbol??" ",o=e.text??this.text,s=typeof o=="string"?" "+o:"",a=e.suffixText??this.#s,l=this.#g(a," "),d=n+i+s+l+`
32
+ `;return this.stop(),this.#t.write(d),this}};function Xe(t){return new Wn(t)}var Ss=V(require("fs"),1),As=require("path");function tc(){let t=process.platform,e=process.arch;if(t==="linux")return e==="x64"?"linux_x64":e==="arm"||e==="arm64"?"linux_arm":"linux";if(t==="darwin")return e==="arm64"?"mac_arm":"mac";if(t==="win32")return e==="x64"?"win_x64":e==="arm64"?"win_arm64":e==="ia32"?"win32":"win";throw new Error(`Your platform is not supported yet: ${t} ${e}`)}async function rc(t){try{let e=Ce();await ye(e);let r=Xe("Fetching available Chromium versions...").start();fetch(`https://raw.githubusercontent.com/amirkabiri/chvm/refs/heads/main/public/manifest/${tc()}.json`).then(n=>n.json()).then(n=>{let i=(0,As.join)(e,"available.json");Ss.default.writeFileSync(i,JSON.stringify(n,null,2)),r.succeed(I.green(`Updated! ${n.length} versions available.`))}).catch(n=>{throw r.fail(I.red(`Failed to update: ${n.message}`)),n})}catch(e){console.error(I.red(`Error: ${e.message}`)),process.exit(1)}}function Gn(t){t.command("update").description("Update the list of available Chromium versions").option("--force","Force update, bypass cache").action(rc)}D();var jt=V(require("fs/promises"),1),Yu=require("fs"),Be=require("path");D();var Je=require("fs"),Zn=require("path"),zn={debug:0,info:1,warn:2,error:3};function Os(t){let{chvmHome:e,level:r="info"}=t,n=zn[r]||zn.info,i=(0,Zn.join)(e,"logs"),o=(0,Zn.join)(i,"chvm.log");(0,Je.existsSync)(i)||(0,Je.mkdirSync)(i,{recursive:!0});let s=(a,l)=>{if(zn[a]<n)return;let d=nc(a,l);try{(0,Je.appendFileSync)(o,d+`
33
+ `,"utf8")}catch{}};return{debug:a=>s("debug",a),info:a=>s("info",a),warn:a=>s("warn",a),error:a=>s("error",a)}}function nc(t,e){return`${new Date().toISOString()} [${t.toLowerCase()}] ${e}`}D();function ht(t,e){if(!e||e.length===0)return null;if(t==="latest")return e[0];if(t==="oldest")return e[e.length-1];let r=e.find(n=>n.version===t);return r||(r=e.find(n=>n.version&&n.version.startsWith(t)),r)?r:null}D();var Er=require("fs");D();function ke(){return process.platform==="darwin"&&process.arch==="arm64"}function we(){return process.platform==="win32"&&process.arch==="x64"}function Ts(){if(ke())return"Mac_Arm";if(we())return"Win_x64";throw new Error(`Unsupported platform: ${process.platform} ${process.arch}`)}async function Bs(t){let e=Ts(),r=new URL("https://www.googleapis.com/storage/v1/b/chromium-browser-snapshots/o");r.searchParams.set("delimiter","/"),r.searchParams.set("prefix",`${e}/${t}/`),r.searchParams.set("fields","items(kind,mediaLink,metadata,name,size,updated),kind,prefixes,nextPageToken");let n=await fetch(r.toString());if(!n.ok)throw new Error(`Failed to fetch metadata for revision ${t}: ${n.statusText} (${n.status})`);let i=await n.json();if(!i.items||i.items.length===0)throw new Error(`No files found for revision ${t}`);return i}async function Is(t,e,r){let n=await fetch(t);if(!n.ok)throw new Error(`Failed to download: ${n.statusText}`);let i=parseInt(n.headers.get("content-length")||"0",10),o=0,s=(0,Er.createWriteStream)(e);if(!n.body)throw new Error("Response body is null");let a=n.body.getReader();try{for(;;){let{done:l,value:d}=await a.read();if(l)break;if(s.write(d),o+=d.length,r&&i>0){let c={downloaded:o,total:i,percentage:Math.round(o/i*100)};r(c)}}s.end(),await new Promise((l,d)=>{s.on("finish",()=>l()),s.on("error",d)})}catch(l){throw s.close(),l}}D();var ae=V(require("fs/promises"),1),Du=V(cu(),1),pe=require("fs"),le=require("path"),du=require("crypto");async function pu(t,e,r){await ae.default.mkdir(e,{recursive:!0});try{let i=new Du.default(t).getEntries(),o=0;for(let s of i){let a=(0,le.join)(e,s.entryName);if(s.isDirectory)await ae.default.mkdir(a,{recursive:!0});else{await ae.default.mkdir((0,le.dirname)(a),{recursive:!0});let l=s.getData();await ae.default.writeFile(a,l);let d=s.attr>>16&65535;d!==0&&await ae.default.chmod(a,d),o++,r&&r({extractedFiles:o})}}r&&o===0&&r({extractedFiles:0})}catch(n){throw new Error(`Failed to extract zip: ${n.message}`)}}async function mu(t,e,r){let n=(0,le.join)(r,"tmp",`install-${(0,du.randomBytes)(8).toString("hex")}`);try{await ae.default.mkdir(n,{recursive:!0});let i=await t(n);we()&&(i=ei(i)),await xc(i,e),await hu(n)}catch(i){throw(0,pe.existsSync)(n)&&await hu(n),i}}async function gu(t){if(!(0,pe.existsSync)(t))return!1;if(ke()){let e=(0,le.join)(t,"Contents"),r=(0,le.join)(e,"MacOS");if(!(0,pe.existsSync)(e)||!(0,pe.existsSync)(r))return!1;try{let n=await ae.default.readdir(r);for(let i of n){let o=(0,le.join)(r,i);(await ae.default.stat(o)).isFile()&&await ae.default.chmod(o,493)}}catch(n){console.log("Error setting permissions:",n)}return!0}if(we()){let e=(0,le.join)(t,"chrome.exe"),r=(0,le.join)(t,"chrome-headless-shell.exe"),n=(0,le.join)(t,"chrome-win","chrome.exe");return!!((0,pe.existsSync)(e)||(0,pe.existsSync)(r)||(0,pe.existsSync)(n))}return!1}async function Eu(t){if(!(0,pe.existsSync)(t))throw new Error(`Directory does not exist: ${t}`);let e=0;async function r(n){let i=await ae.default.stat(n);if(i.isDirectory()){let o=await ae.default.readdir(n);for(let s of o)await r((0,le.join)(n,s))}else e+=i.size}return await r(t),e}async function xc(t,e){try{await ae.default.rename(t,e)}catch{await ae.default.cp(t,e,{recursive:!0}),await ae.default.rm(t,{recursive:!0,force:!0})}}async function hu(t){(0,pe.existsSync)(t)&&await ae.default.rm(t,{recursive:!0,force:!0})}function ei(t){let e=(0,le.join)(t,"chrome.exe"),r=(0,le.join)(t,"chrome-win","chrome.exe");return(0,pe.existsSync)(e)?t:(0,pe.existsSync)(r)?(0,le.join)(t,"chrome-win"):t}D();var Wu=V(qu(),1),Gu=require("path"),zu=require("fs"),Zu=V(require("fs/promises"),1);async function Qc(t,e={}){let{timeout:r=5e3,staleTimeout:n=6e4}=e,i=(0,Gu.join)(t,"chvm.lock");(0,zu.existsSync)(i)||await Zu.default.writeFile(i,JSON.stringify({pid:process.pid,timestamp:Date.now()}),"utf8");try{return await Wu.default.lock(i,{retries:{retries:Math.floor(r/100),minTimeout:100,maxTimeout:1e3},stale:n,realpath:!1})}catch(o){throw new Error(`Failed to acquire lock: ${o.message}`)}}async function eh(t){typeof t=="function"&&await t()}async function Tr(t,e,r={}){let n=await Qc(t,r);try{return await e()}finally{await eh(n)}}async function th(t,e){try{let r=Ce();await ye(r);let n=Os({chvmHome:r,level:e.quiet?"error":"info"});await Tr(r,async()=>{let i=await Ie(r);if(i.length===0)throw new Error('No versions available. Please run "chvm update" first.');let o=ht(t,i);if(!o)throw new Error(`Version "${t}" not found. Run "chvm ls" to see available versions.`);let s=String(o.chromium_main_branch_position),a=o.version||`Revision ${s}`;console.log(I.blue(`Resolving '${t}' -> ${a} (revision: ${s})`));let l=await Fe(r),d=o.version||s;if(l[d]){console.log(I.yellow(`Version ${a} is already installed.`));return}let c=Xe("Fetching revision metadata...").start(),F=await Bs(s),y="";if(we())y="chrome-win.zip";else if(ke())y="chrome-mac.zip";else throw new Error("Unsupported platform");let f=F.items.find(C=>C.name.includes(y));if(!f)throw new Error(`${y} not found in revision`);c.text=`Downloading Chromium ${a}...`;let h=(0,Be.join)(r,"tmp",`chrome-${s}.zip`);await jt.default.mkdir((0,Be.join)(r,"tmp"),{recursive:!0}),await Is(f.mediaLink,h,C=>{c.text=`Downloading: ${C.percentage}% (${Math.round(C.downloaded/1024/1024)}MB / ${Math.round(C.total/1024/1024)}MB)`}),c.text="Extracting...";let m=(0,Be.join)(r,"installs",we()?d:`${d}.app`);if(await mu(async C=>{let u=(0,Be.join)(C,"extracted");c.text="Extracting zip...",await pu(h,u,_=>{c.text=`Extracting: ${_.extractedFiles} files...`}),c.text="Looking for executable/bundle...";let E=await jt.default.readdir(u);if(console.log("Extracted files:",E.slice(0,10).join(", ")),we()){let _=E.find(b=>b==="chrome-win"||b.includes("chrome-win"));if(_)return(0,Be.join)(u,_);if(E.includes("chrome.exe"))return u;throw new Error("chrome.exe or chrome-win folder not found")}else if(ke()){let _=E.find(b=>b.endsWith(".app"));if(!_){let b=(0,Be.join)(u,"chrome-mac");if((0,Yu.existsSync)(b)){let R=(await jt.default.readdir(b)).find(v=>v.endsWith(".app"));if(R)return(0,Be.join)(b,R)}throw new Error("App bundle not found in extracted files")}return(0,Be.join)(u,_)}throw new Error("Unsupported platform")},m,r),await jt.default.unlink(h).catch(()=>{}),c.text="Verifying installation...",!await gu(m))throw new Error("Installation verification failed: Invalid app bundle structure");let g=await Eu(m);await zi(r,{version:d,revision:s,path:m,size:g}),c.succeed(I.green(`Installed ${a} to ${m}`)),n.info(`Installed version ${a}`)},{timeout:6e5})}catch(r){console.error(I.red(`Error: ${r.message}`)),process.exit(1)}}function hi(t){t.command("install <version>").alias("i").description("Install a specific Chromium version").option("--no-cache","Skip cache and download fresh").option("--quiet","Minimal output").action(th)}D();var Ir=require("child_process"),Ku=require("util"),Xu=V(require("fs/promises"),1),Di=require("fs"),Br=require("path");var rh=(0,Ku.promisify)(Ir.exec);async function nh(t,e){try{let r=Ce();await ye(r);let n=await Fe(r),i=await Ie(r),o=null;if(n[t])o={version:t,...n[t]};else{let l=ht(t,i);if(!l)throw new Error(`Version "${t}" not found. Run "chvm ls" to see available versions.`);let d=String(l.chromium_main_branch_position),c=l.version;if(n[c])o={version:c,...n[c]};else{console.log(I.blue(`${l.version} not installed. Installing...`)),await rh(`node ${process.argv[1]} install ${d}`);let F=await Fe(r);o={version:c,...F[c]}}}if(!o)throw new Error("Failed to prepare version for opening");e.disableCors&&console.log(I.yellow("\u26A0\uFE0F WARNING: Running with --disable-web-security. This is insecure and should only be used for development."));let s=(0,Br.join)(r,"profiles",o.version);await Xu.default.mkdir(s,{recursive:!0});let a=[`--user-data-dir=${s}`];if(e.disableCors&&a.push("--disable-web-security"),console.log(I.green(`Opening Chromium ${o.version}...`)),ke()){let l=(0,Br.join)(o.path,"Contents","MacOS","Chromium");if(!(0,Di.existsSync)(l))throw new Error(`Chromium executable not found at ${l}`);let d=`open -a "${o.path}" --args ${a.join(" ")}`;(0,Ir.exec)(d,c=>{c&&(console.error(I.red(`Failed to open: ${c.message}`)),process.exit(1))});return}if(we()){let l=ei(o.path),d=(0,Br.join)(l,"chrome.exe");if(!(0,Di.existsSync)(d))throw new Error(`chrome.exe not found at ${d}`);let c=`"${d}" ${a.join(" ")}`;(0,Ir.exec)(c,F=>{F&&console.error(I.red(`Failed to open: ${F.message}`))});return}throw new Error("Unsupported platform")}catch(r){console.error(I.red(`Error: ${r.message}`)),process.exit(1)}}function di(t){t.command("open <version>").description("Open a specific Chromium version").option("--disable-cors","Disable CORS (useful for development)").action(nh)}D();var Rr=V(require("fs/promises"),1),Lr=require("fs"),pi=require("path");async function ih(t,e){try{let r=Ce();await ye(r),await Tr(r,async()=>{let n=await Fe(r),i=await Ie(r),o=t;if(!n[t]){let c=ht(t,i);if(c&&c.version&&n[c.version])o=c.version;else throw new Error(`Version "${t}" is not installed.`)}let s=n[o],a=Xe(`Uninstalling ${o}...`).start();(0,Lr.existsSync)(s.path)&&(await Rr.default.rm(s.path,{recursive:!0,force:!0}),a.text="Removed app bundle...");let l=(0,pi.join)(r,"profiles",o);(0,Lr.existsSync)(l)&&(await Rr.default.rm(l,{recursive:!0,force:!0}),a.text="Removed profile...");let d=(0,pi.join)(r,"tmp",o);(0,Lr.existsSync)(d)&&await Rr.default.rm(d,{recursive:!0,force:!0}),await Zi(r,o),a.succeed(I.green(`Uninstalled ${o}`))})}catch(r){console.error(I.red(`Error: ${r.message}`)),process.exit(1)}}function mi(t){t.command("uninstall <version>").description("Uninstall a specific Chromium version").option("--force","Force uninstall even if running").action(ih)}var Ju={name:"chvm",version:"1.2.1",description:"Chromium Version Manager - Manage and run multiple Chromium versions on macOS ARM",type:"module",main:"./dist/cli.cjs",bin:{chvm:"./dist/cli.cjs"},scripts:{"manifest:fetch-versions":"tsx ./src/manifest/fetch-versions.ts",build:"tsup","build:watch":"tsup --watch",clean:"rimraf dist",prebuild:"npm run clean",prepublishOnly:"npm run build",test:"cross-env NODE_OPTIONS=--experimental-vm-modules jest","test:watch":"cross-env NODE_OPTIONS=--experimental-vm-modules jest --watch","test:e2e":"cross-env NODE_OPTIONS=--experimental-vm-modules jest --testMatch='**/tests/e2e/**/*.test.ts'","test:unit":"cross-env NODE_OPTIONS=--experimental-vm-modules jest --testMatch='**/tests/unit/**/*.test.ts'","test:coverage":"cross-env NODE_OPTIONS=--experimental-vm-modules jest --coverage","semantic-release":"semantic-release"},keywords:["chrome","chromium","version-manager","macos","arm","cli"],author:"Amir Kabiri <akabiridev@gmail.com>",repository:{type:"git",url:"https://github.com/amirkabiri/chvm.git"},license:"MIT",engines:{node:">=20.0.0"},files:["dist/cli.cjs","README.md","package.json","CHANGELOG.md"],devDependencies:{"@jest/globals":"^29.7.0","@semantic-release/changelog":"^6.0.3","@semantic-release/commit-analyzer":"^13.0.1","@semantic-release/git":"^10.0.1","@semantic-release/github":"^12.0.1","@semantic-release/npm":"^13.1.1","@types/adm-zip":"^0.5.7","@types/node":"^20.0.0","@types/proper-lockfile":"^4.1.4","adm-zip":"^0.5.16",chalk:"^5.3.0","cli-progress":"^3.12.0",commander:"^11.1.0","conventional-changelog-conventionalcommits":"^9.1.0","cross-env":"^10.1.0",jest:"^29.7.0",ora:"^7.0.1",prettier:"^3.6.2","proper-lockfile":"^4.1.2",rimraf:"^6.1.2","semantic-release":"^25.0.2","ts-jest":"^29.1.0",tsup:"^8.5.1",tsx:"^4.21.0",typescript:"^5.3.0"}};var be=new Ri;be.name("chvm").description("Chromium Version Manager - Manage multiple Chromium versions on macOS ARM").version(Ju.version);be.command("help",{isDefault:!1}).description("Show help information").action(()=>{be.outputHelp()});Qr(be);Gn(be);hi(be);di(be);mi(be);process.argv.length===2&&(be.outputHelp(),process.exit(0));be.parse();
34
34
  /*! Bundled license information:
35
35
 
36
36
  safe-buffer/index.js: