@xframework-ca-test/cli 1.0.18 → 1.0.20
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/index.bundle.js +23 -23
- package/package.json +1 -2
package/index.bundle.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ke=h(Pr=>{var yt=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}},Lr=class extends yt{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Pr.CommanderError=yt;Pr.InvalidArgumentError=Lr});var bt=h(kr=>{var{InvalidArgumentError:
|
|
2
|
+
"use strict";var jl=Object.create;var wi=Object.defineProperty;var $l=Object.getOwnPropertyDescriptor;var Ul=Object.getOwnPropertyNames;var Vl=Object.getPrototypeOf,Hl=Object.prototype.hasOwnProperty;var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Wl=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ul(e))!Hl.call(t,i)&&i!==r&&wi(t,i,{get:()=>e[i],enumerable:!(n=$l(e,i))||n.enumerable});return t};var Gl=(t,e,r)=>(r=t!=null?jl(Vl(t)):{},Wl(e||!t||!t.__esModule?wi(r,"default",{value:t,enumerable:!0}):r,t));var Ke=h(Pr=>{var yt=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}},Lr=class extends yt{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Pr.CommanderError=yt;Pr.InvalidArgumentError=Lr});var bt=h(kr=>{var{InvalidArgumentError:zl}=Ke(),Dr=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 zl(`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 Yl(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}kr.Argument=Dr;kr.humanReadableArgName=Yl});var qr=h(Ei=>{var{humanReadableArgName:Kl}=bt(),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(/([^ ]+) *(.*)/),s=e.createCommand(n).helpOption(!1);s.description(e._helpCommandDescription),i&&s.arguments(i),r.push(s)}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(s=>!s.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let s;n?i?s=e.createOption(e._helpFlags,e._helpDescription):s=e.createOption(e._helpShortFlag,e._helpDescription):s=e.createOption(e._helpLongFlag,e._helpDescription),r.push(s)}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(s=>!s.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=>Kl(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,s=2,o=2;function a(g,d){if(d){let m=`${g.padEnd(n+o)}${d}`;return r.wrap(m,i-s,n+o)}return g}function l(g){return g.join(`
|
|
3
3
|
`).replace(/^/gm," ".repeat(s))}let u=[`Usage: ${r.commandUsage(e)}`,""],f=r.commandDescription(e);f.length>0&&(u=u.concat([r.wrap(f,i,0),""]));let c=r.visibleArguments(e).map(g=>a(r.argumentTerm(g),r.argumentDescription(g)));c.length>0&&(u=u.concat(["Arguments:",l(c),""]));let p=r.visibleOptions(e).map(g=>a(r.optionTerm(g),r.optionDescription(g)));if(p.length>0&&(u=u.concat(["Options:",l(p),""])),this.showGlobalOptions){let g=r.visibleGlobalOptions(e).map(d=>a(r.optionTerm(d),r.optionDescription(d)));g.length>0&&(u=u.concat(["Global Options:",l(g),""]))}let _=r.visibleCommands(e).map(g=>a(r.subcommandTerm(g),r.subcommandDescription(g)));return _.length>0&&(u=u.concat(["Commands:",l(_),""])),u.join(`
|
|
4
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 s=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",o=new RegExp(`[\\n][${s}]+`);if(e.match(o))return e;let a=r-n;if(a<i)return e;let l=e.slice(0,n),u=e.slice(n).replace(`\r
|
|
5
5
|
`,`
|
|
6
6
|
`),f=" ".repeat(n),p="\\s\u200B",_=new RegExp(`
|
|
7
7
|
|.{1,${a-1}}([${p}]|$)|[^${p}]+?([${p}]|$)`,"g"),g=u.match(_)||[];return l+g.map((d,m)=>d===`
|
|
8
8
|
`?"":(m>0?f:"")+d.trimEnd()).join(`
|
|
9
|
-
`)}};
|
|
9
|
+
`)}};Ei.Help=Mr});var jr=h(xt=>{var{InvalidArgumentError:Jl}=Ke(),Nr=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=Si(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 Jl(`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 Xl(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Br=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,s=i!==void 0?i:!1;return r.negate===(s===e)}};function Xl(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function Si(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}}xt.Option=Nr;xt.splitOptionFlags=Si;xt.DualOptions=Br});var Ai=h(Ci=>{function Zl(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 s=1;t[i-1]===e[n-1]?s=0:s=1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+s),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 Ql(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(o=>o.slice(2)));let n=[],i=3,s=.4;return e.forEach(o=>{if(o.length<=1)return;let a=Zl(t,o),l=Math.max(t.length,o.length);(l-a)/l>s&&(a<i?(i=a,n=[o]):a===i&&n.push(o))}),n.sort((o,a)=>o.localeCompare(a)),r&&(n=n.map(o=>`--${o}`)),n.length>1?`
|
|
10
10
|
(Did you mean one of ${n.join(", ")}?)`:n.length===1?`
|
|
11
|
-
(Did you mean ${n[0]}?)`:""}
|
|
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
|
|
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 Vr(e,r,n)),R.exit(e)}action(e){let r=n=>{let i=this.registeredArguments.length,s=n.slice(0,i);return this._storeOptionsAsProperties?s[i]=this:s[i]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=r,this}createOption(e,r){return new
|
|
11
|
+
(Did you mean ${n[0]}?)`:""}Ci.suggestSimilar=Ql});var Li=h(Ti=>{var eu=require("events").EventEmitter,$r=require("child_process"),X=require("path"),Ur=require("fs"),R=require("process"),{Argument:tu,humanReadableArgName:ru}=bt(),{CommanderError:Vr}=Ke(),{Help:nu}=qr(),{Option:Oi,splitOptionFlags:iu,DualOptions:su}=jr(),{suggestSimilar:Ri}=Ai(),Hr=class t extends eu{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=>R.stdout.write(r),writeErr:r=>R.stderr.write(r),getOutHelpWidth:()=>R.stdout.isTTY?R.stdout.columns:void 0,getErrHelpWidth:()=>R.stderr.isTTY?R.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,s=n;typeof i=="object"&&i!==null&&(s=i,i=null),s=s||{};let[,o,a]=e.match(/([^ ]+) *(.*)/),l=this.createCommand(o);return i&&(l.description(i),l._executableHandler=!0),s.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(s.noHelp||s.hidden),l._executableFile=s.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 nu,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 tu(e,r)}argument(e,r,n,i){let s=this.createArgument(e,r);return typeof n=="function"?s.default(i).argParser(n):s.default(n),this.addArgument(s),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 Vr(e,r,n)),R.exit(e)}action(e){let r=n=>{let i=this.registeredArguments.length,s=n.slice(0,i);return this._storeOptionsAsProperties?s[i]=this:s[i]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=r,this}createOption(e,r){return new Oi(e,r)}_callParseArg(e,r,n,i){try{return e.parseArg(r,n)}catch(s){if(s.code==="commander.invalidArgument"){let o=`${i} ${s.message}`;this.error(o,{exitCode:s.exitCode,code:s.code})}throw s}}addOption(e){let r=e.name(),n=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||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=(s,o,a)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let l=this.getOptionValue(n);s!==null&&e.parseArg?s=this._callParseArg(e,s,l,o):s!==null&&e.variadic&&(s=e._concatValue(s,l)),s==null&&(e.negate?s=!1:e.isBoolean()||e.optional?s=!0:s=""),this.setOptionValueWithSource(n,s,a)};return this.on("option:"+r,s=>{let o=`error: option '${e.flags}' argument '${s}' is invalid.`;i(s,o,"cli")}),e.envVar&&this.on("optionEnv:"+r,s=>{let o=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;i(s,o,"env")}),this}_optionEx(e,r,n,i,s){if(typeof r=="object"&&r instanceof Oi)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(r,n);if(o.makeOptionMandatory(!!e.mandatory),typeof i=="function")o.default(s).argParser(i);else if(i instanceof RegExp){let a=i;i=(l,u)=>{let f=a.exec(l);return f?f[0]:u},o.default(s).argParser(i)}else o.default(i);return this.addOption(o)}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=R.argv,R.versions&&R.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":R.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 s(f,c){let p=X.resolve(f,c);if(Ur.existsSync(p))return p;if(i.includes(X.extname(c)))return;let _=i.find(g=>Ur.existsSync(`${p}${g}`));if(_)return`${p}${_}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let f;try{f=Ur.realpathSync(this._scriptPath)}catch{f=this._scriptPath}a=X.resolve(X.dirname(f),a)}if(a){let f=s(a,o);if(!f&&!e._executableFile&&this._scriptPath){let c=X.basename(this._scriptPath,X.extname(this._scriptPath));c!==this._name&&(f=s(a,`${c}-${e._name}`))}o=f||o}n=i.includes(X.extname(o));let l;R.platform!=="win32"?n?(r.unshift(o),r=Ii(R.execArgv).concat(r),l=$r.spawn(R.argv[0],r,{stdio:"inherit"})):l=$r.spawn(o,r,{stdio:"inherit"}):(r.unshift(o),r=Ii(R.execArgv).concat(r),l=$r.spawn(R.execPath,r,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(c=>{R.on(c,()=>{l.killed===!1&&l.exitCode===null&&l.kill(c)})});let u=this._exitCallback;u?l.on("close",()=>{u(new Vr(R.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):l.on("close",R.exit.bind(R)),l.on("error",f=>{if(f.code==="ENOENT"){let c=a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",p=`'${o}' 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
|
-
- ${c}`;throw new Error(p)}else if(f.code==="EACCES")throw new Error(`'${o}' not executable`);if(!u)R.exit(1);else{let c=new Vr(1,"commander.executeSubCommandAsync","(error)");c.nestedError=f,u(c)}}),this.runningCommand=l}_dispatchSubcommand(e,r,n){let i=this._findCommand(e);i||this.help({error:!0});let s;return s=this._chainOrCallSubCommandHook(s,i,"preSubcommand"),s=this._chainOrCall(s,()=>{if(i._executableHandler)this._executeSubCommand(i,r.concat(n));else return i._parseCommand(r,n)}),s}_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,s)=>{let o=i;if(i!==null&&n.parseArg){let a=`error: command-argument value '${i}' is invalid for argument '${n.name()}'.`;o=this._callParseArg(n,i,s,a)}return o};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((n,i)=>{let s=n.defaultValue;n.variadic?i<this.args.length?(s=this.args.slice(i),n.parseArg&&(s=s.reduce((o,a)=>e(n,a,o),n.defaultValue))):s===void 0&&(s=[]):i<this.args.length&&(s=this.args[i],n.parseArg&&(s=e(n,s,n.defaultValue))),r[i]=s}),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(s=>s._lifeCycleHooks[r]!==void 0).forEach(s=>{s._lifeCycleHooks[r].forEach(o=>{i.push({hookedCommand:s,callback:o})})}),r==="postAction"&&i.reverse(),i.forEach(s=>{n=this._chainOrCall(n,()=>s.callback(s.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,r,n){let i=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(s=>{i=this._chainOrCall(i,()=>s(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
|
|
16
|
+
- ${c}`;throw new Error(p)}else if(f.code==="EACCES")throw new Error(`'${o}' not executable`);if(!u)R.exit(1);else{let c=new Vr(1,"commander.executeSubCommandAsync","(error)");c.nestedError=f,u(c)}}),this.runningCommand=l}_dispatchSubcommand(e,r,n){let i=this._findCommand(e);i||this.help({error:!0});let s;return s=this._chainOrCallSubCommandHook(s,i,"preSubcommand"),s=this._chainOrCall(s,()=>{if(i._executableHandler)this._executeSubCommand(i,r.concat(n));else return i._parseCommand(r,n)}),s}_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,s)=>{let o=i;if(i!==null&&n.parseArg){let a=`error: command-argument value '${i}' is invalid for argument '${n.name()}'.`;o=this._callParseArg(n,i,s,a)}return o};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((n,i)=>{let s=n.defaultValue;n.variadic?i<this.args.length?(s=this.args.slice(i),n.parseArg&&(s=s.reduce((o,a)=>e(n,a,o),n.defaultValue))):s===void 0&&(s=[]):i<this.args.length&&(s=this.args[i],n.parseArg&&(s=e(n,s,n.defaultValue))),r[i]=s}),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(s=>s._lifeCycleHooks[r]!==void 0).forEach(s=>{s._lifeCycleHooks[r].forEach(o=>{i.push({hookedCommand:s,callback:o})})}),r==="postAction"&&i.reverse(),i.forEach(s=>{n=this._chainOrCall(n,()=>s.callback(s.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,r,n){let i=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(s=>{i=this._chainOrCall(i,()=>s(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 Fi(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),Fi(this,n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},s=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(s,e,r)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(s))i(),this._processArguments(),this.parent.emit(s,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(s=>n.conflictsWith.includes(s.attributeName()));i&&this._conflictingOption(n,i)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let r=[],n=[],i=r,s=e.slice();function o(l){return l.length>1&&l[0]==="-"}let a=null;for(;s.length;){let l=s.shift();if(l==="--"){i===n&&i.push(l),i.push(...s);break}if(a&&!o(l)){this.emit(`option:${a.name()}`,l);continue}if(a=null,o(l)){let u=this._findOption(l);if(u){if(u.required){let f=s.shift();f===void 0&&this.optionMissingArgument(u),this.emit(`option:${u.name()}`,f)}else if(u.optional){let f=null;s.length>0&&!o(s[0])&&(f=s.shift()),this.emit(`option:${u.name()}`,f)}else this.emit(`option:${u.name()}`);a=u.variadic?u:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let u=this._findOption(`-${l[1]}`);if(u){u.required||u.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${u.name()}`,l.slice(2)):(this.emit(`option:${u.name()}`),s.unshift(`-${l.slice(2)}`));continue}}if(/^--[^=]+=/.test(l)){let u=l.indexOf("="),f=this._findOption(l.slice(0,u));if(f&&(f.required||f.optional)){this.emit(`option:${f.name()}`,l.slice(u+1));continue}}if(o(l)&&(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(l)){r.push(l),s.length>0&&n.push(...s);break}else if(l===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(l),s.length>0&&r.push(...s);break}else if(this._defaultCommandName){n.push(l),s.length>0&&n.push(...s);break}}if(this._passThroughOptions){i.push(l),s.length>0&&i.push(...s);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,s=n.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in R.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()}`,R.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new
|
|
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=>
|
|
19
|
+
`),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,s=n.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in R.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()}`,R.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new su(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=o=>{let a=o.attributeName(),l=this.getOptionValue(a),u=this.options.find(c=>c.negate&&a===c.attributeName()),f=this.options.find(c=>!c.negate&&a===c.attributeName());return u&&(u.presetArg===void 0&&l===!1||u.presetArg!==void 0&&l===u.presetArg)?u:f||o},i=o=>{let a=n(o),l=a.attributeName();return this.getOptionValueSource(l)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},s=`error: ${i(e)} cannot be used with ${i(r)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],s=this;do{let o=s.createHelp().visibleOptions(s).filter(a=>a.long).map(a=>a.long);i=i.concat(o),s=s.parent}while(s&&!s._enablePositionalOptions);r=Ri(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",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(s=>{i.push(s.name()),s.alias()&&i.push(s.alias())}),r=Ri(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=>ru(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=X.basename(e,X.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(s=>s.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(s=>s.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=iu(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e);let r=R.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,s=>{let o;typeof r=="function"?o=r({error:s.error,command:s.command}):o=r,o&&s.write(`${o}
|
|
22
|
-
`)}),this}};function Ri(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Fi(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?i=s[3]:n=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],n=s[3],i=s[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}Ii.Command=Hr});var ki=h((V,Di)=>{var{Argument:Zl}=bt(),{Command:Li}=Ti(),{CommanderError:Ql,InvalidArgumentError:Pi}=Ke(),{Help:eu}=qr(),{Option:tu}=jr();V=Di.exports=new Li;V.program=V;V.Command=Li;V.Option=tu;V.Argument=Zl;V.Help=eu;V.CommanderError=Ql;V.InvalidArgumentError=Pi;V.InvalidOptionArgumentError=Pi});var Mi=h((d0,ru)=>{ru.exports={name:"@xframework-ca-test/cli",version:"1.0.18",description:"xFramework \u2014 one command to run your portal locally",main:"index.bundle.js",bin:{"xframework-cli":"./index.bundle.js"},scripts:{start:"node index.js start",build:"npx esbuild index.js --bundle --platform=node --minify --external:embedded-postgres --external:*.node --outfile=index.bundle.js",prepack:"node scripts/prepack.js",prepublishOnly:"npm run build","build:aws":"node scripts/build-aws.js"},dependencies:{chalk:"^4.1.2",commander:"^11.0.0",crypto:"^1.0.1",dotenv:"^16.4.5","embedded-postgres":"^18.3.0-beta.16","extract-zip":"^2.0.1",open:"^8.4.2",ora:"^5.4.1"},devDependencies:{"adm-zip":"^0.5.17",esbuild:"^0.20.0"},engines:{node:">=18.0.0"},optionalDependencies:{"@embedded-postgres/win32-x64":"*"}}});var Ni=h((h0,qi)=>{"use strict";qi.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Wr=h((p0,ji)=>{var Je=Ni(),Bi={};for(let t of Object.keys(Je))Bi[Je[t]]=t;var y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};ji.exports=y;for(let t of Object.keys(y)){if(!("channels"in y[t]))throw new Error("missing channels property: "+t);if(!("labels"in y[t]))throw new Error("missing channel labels property: "+t);if(y[t].labels.length!==y[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=y[t];delete y[t].channels,delete y[t].labels,Object.defineProperty(y[t],"channels",{value:e}),Object.defineProperty(y[t],"labels",{value:r})}y.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,l;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let u=(i+s)/2;return s===i?l=0:u<=.5?l=o/(s+i):l=o/(2-s-i),[a,l*100,u*100]};y.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,l=t[2]/255,u=Math.max(o,a,l),f=u-Math.min(o,a,l),c=function(p){return(u-p)/6/f+1/2};return f===0?(i=0,s=0):(s=f/u,e=c(o),r=c(a),n=c(l),o===u?i=n-r:a===u?i=1/3+e-n:l===u&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,u*100]};y.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=y.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};y.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function nu(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}y.rgb.keyword=function(t){let e=Bi[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(Je)){let s=Je[i],o=nu(t,s);o<r&&(r=o,n=i)}return n};y.keyword.rgb=function(t){return Je[t]};y.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};y.rgb.lab=function(t){let e=y.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};y.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,l=[0,0,0];for(let u=0;u<3;u++)s=e+1/3*-(u-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,l[u]=o*255;return l};y.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};y.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),l=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,l,o];case 1:return[a,n,o];case 2:return[o,n,l];case 3:return[o,a,n];case 4:return[l,o,n];case 5:return[n,o,a]}};y.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};y.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,o&1&&(s=1-s);let l=r+s*(a-r),u,f,c;switch(o){default:case 6:case 0:u=a,f=l,c=r;break;case 1:u=l,f=a,c=r;break;case 2:u=r,f=a,c=l;break;case 3:u=r,f=l,c=a;break;case 4:u=l,f=r,c=a;break;case 5:u=a,f=r,c=l;break}return[u*255,f*255,c*255]};y.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};y.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};y.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};y.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,l=i**3,u=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};y.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};y.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};y.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?y.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};y.hsv.ansi16=function(t){return y.rgb.ansi16(y.hsv.rgb(t),t[2])};y.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];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)};y.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};y.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};y.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};y.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};y.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,l;return o<1?a=s/(1-o):a=0,o<=0?l=0:i===e?l=(r-n)/o%6:i===r?l=2+(n-e)/o:l=4+(e-r)/o,l/=6,l%=1,[l*360,o*100,a*100]};y.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};y.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};y.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,l=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-r)*n,[(r*i[0]+l)*255,(r*i[1]+l)*255,(r*i[2]+l)*255]};y.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};y.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};y.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};y.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};y.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};y.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};y.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};y.gray.hsl=function(t){return[0,0,t[0]]};y.gray.hsv=y.gray.hsl;y.gray.hwb=function(t){return[0,100,t[0]]};y.gray.cmyk=function(t){return[0,0,0,t[0]]};y.gray.lab=function(t){return[t[0],0,0]};y.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};y.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var Ui=h((g0,$i)=>{var vt=Wr();function iu(){let t={},e=Object.keys(vt);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function su(t){let e=iu(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(vt[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],l=e[a];l.distance===-1&&(l.distance=e[n].distance+1,l.parent=n,r.unshift(a))}}return e}function ou(t,e){return function(r){return e(t(r))}}function au(t,e){let r=[e[t].parent,t],n=vt[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=ou(vt[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}$i.exports=function(t){let e=su(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=au(o,e))}return r}});var Hi=h((m0,Vi)=>{var Gr=Wr(),lu=Ui(),Ce={},uu=Object.keys(Gr);function fu(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function cu(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}uu.forEach(t=>{Ce[t]={},Object.defineProperty(Ce[t],"channels",{value:Gr[t].channels}),Object.defineProperty(Ce[t],"labels",{value:Gr[t].labels});let e=lu(t);Object.keys(e).forEach(n=>{let i=e[n];Ce[t][n]=cu(i),Ce[t][n].raw=fu(i)})});Vi.exports=Ce});var Ji=h((_0,Ki)=>{"use strict";var Wi=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,Gi=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},zi=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},wt=t=>t,Yi=(t,e,r)=>[t,e,r],Ae=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},zr,Oe=(t,e,r,n)=>{zr===void 0&&(zr=Hi());let i=n?10:0,s={};for(let[o,a]of Object.entries(zr)){let l=o==="ansi16"?"ansi":o;o===e?s[l]=t(r,i):typeof a=="object"&&(s[l]=t(a[e],i))}return s};function du(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",Ae(e.color,"ansi",()=>Oe(Wi,"ansi16",wt,!1)),Ae(e.color,"ansi256",()=>Oe(Gi,"ansi256",wt,!1)),Ae(e.color,"ansi16m",()=>Oe(zi,"rgb",Yi,!1)),Ae(e.bgColor,"ansi",()=>Oe(Wi,"ansi16",wt,!0)),Ae(e.bgColor,"ansi256",()=>Oe(Gi,"ansi256",wt,!0)),Ae(e.bgColor,"ansi16m",()=>Oe(zi,"rgb",Yi,!0)),e}Object.defineProperty(Ki,"exports",{enumerable:!0,get:du})});var Zi=h((y0,Xi)=>{"use strict";Xi.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var Jr=h((b0,es)=>{"use strict";var hu=require("os"),Qi=require("tty"),j=Zi(),{env:L}=process,re;j("no-color")||j("no-colors")||j("color=false")||j("color=never")?re=0:(j("color")||j("colors")||j("color=true")||j("color=always"))&&(re=1);"FORCE_COLOR"in L&&(L.FORCE_COLOR==="true"?re=1:L.FORCE_COLOR==="false"?re=0:re=L.FORCE_COLOR.length===0?1:Math.min(parseInt(L.FORCE_COLOR,10),3));function Yr(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Kr(t,e){if(re===0)return 0;if(j("color=16m")||j("color=full")||j("color=truecolor"))return 3;if(j("color=256"))return 2;if(t&&!e&&re===void 0)return 0;let r=re||0;if(L.TERM==="dumb")return r;if(process.platform==="win32"){let n=hu.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in L)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in L)||L.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in L)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(L.TEAMCITY_VERSION)?1:0;if(L.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in L){let n=parseInt((L.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(L.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(L.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(L.TERM)||"COLORTERM"in L?1:r}function pu(t){let e=Kr(t,t&&t.isTTY);return Yr(e)}es.exports={supportsColor:pu,stdout:Yr(Kr(!0,Qi.isatty(1))),stderr:Yr(Kr(!0,Qi.isatty(2)))}});var rs=h((x0,ts)=>{"use strict";var gu=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},mu=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
|
|
22
|
+
`)}),this}};function Fi(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Ii(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?i=s[3]:n=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],n=s[3],i=s[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}Ti.Command=Hr});var Mi=h((V,ki)=>{var{Argument:ou}=bt(),{Command:Pi}=Li(),{CommanderError:au,InvalidArgumentError:Di}=Ke(),{Help:lu}=qr(),{Option:uu}=jr();V=ki.exports=new Pi;V.program=V;V.Command=Pi;V.Option=uu;V.Argument=ou;V.Help=lu;V.CommanderError=au;V.InvalidArgumentError=Di;V.InvalidOptionArgumentError=Di});var qi=h((b0,fu)=>{fu.exports={name:"@xframework-ca-test/cli",version:"1.0.20",description:"xFramework \u2014 one command to run your portal locally",main:"index.bundle.js",bin:{"xframework-cli":"./index.bundle.js"},scripts:{start:"node index.js start",build:"npx esbuild index.js --bundle --platform=node --minify --external:embedded-postgres --external:*.node --outfile=index.bundle.js",prepack:"node scripts/prepack.js",prepublishOnly:"npm run build","build:aws":"node scripts/build-aws.js"},dependencies:{chalk:"^4.1.2",commander:"^11.0.0",dotenv:"^16.4.5","embedded-postgres":"^18.3.0-beta.16","extract-zip":"^2.0.1",open:"^8.4.2",ora:"^5.4.1"},devDependencies:{"adm-zip":"^0.5.17",esbuild:"^0.20.0"},engines:{node:">=18.0.0"},optionalDependencies:{"@embedded-postgres/win32-x64":"*"}}});var Bi=h((x0,Ni)=>{"use strict";Ni.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Wr=h((v0,$i)=>{var Je=Bi(),ji={};for(let t of Object.keys(Je))ji[Je[t]]=t;var y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};$i.exports=y;for(let t of Object.keys(y)){if(!("channels"in y[t]))throw new Error("missing channels property: "+t);if(!("labels"in y[t]))throw new Error("missing channel labels property: "+t);if(y[t].labels.length!==y[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=y[t];delete y[t].channels,delete y[t].labels,Object.defineProperty(y[t],"channels",{value:e}),Object.defineProperty(y[t],"labels",{value:r})}y.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,l;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let u=(i+s)/2;return s===i?l=0:u<=.5?l=o/(s+i):l=o/(2-s-i),[a,l*100,u*100]};y.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,l=t[2]/255,u=Math.max(o,a,l),f=u-Math.min(o,a,l),c=function(p){return(u-p)/6/f+1/2};return f===0?(i=0,s=0):(s=f/u,e=c(o),r=c(a),n=c(l),o===u?i=n-r:a===u?i=1/3+e-n:l===u&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,u*100]};y.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=y.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};y.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function cu(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}y.rgb.keyword=function(t){let e=ji[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(Je)){let s=Je[i],o=cu(t,s);o<r&&(r=o,n=i)}return n};y.keyword.rgb=function(t){return Je[t]};y.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};y.rgb.lab=function(t){let e=y.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};y.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,l=[0,0,0];for(let u=0;u<3;u++)s=e+1/3*-(u-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,l[u]=o*255;return l};y.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};y.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),l=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,l,o];case 1:return[a,n,o];case 2:return[o,n,l];case 3:return[o,a,n];case 4:return[l,o,n];case 5:return[n,o,a]}};y.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};y.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,o&1&&(s=1-s);let l=r+s*(a-r),u,f,c;switch(o){default:case 6:case 0:u=a,f=l,c=r;break;case 1:u=l,f=a,c=r;break;case 2:u=r,f=a,c=l;break;case 3:u=r,f=l,c=a;break;case 4:u=l,f=r,c=a;break;case 5:u=a,f=r,c=l;break}return[u*255,f*255,c*255]};y.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};y.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};y.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};y.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,l=i**3,u=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};y.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};y.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};y.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?y.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};y.hsv.ansi16=function(t){return y.rgb.ansi16(y.hsv.rgb(t),t[2])};y.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];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)};y.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};y.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};y.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};y.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};y.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,l;return o<1?a=s/(1-o):a=0,o<=0?l=0:i===e?l=(r-n)/o%6:i===r?l=2+(n-e)/o:l=4+(e-r)/o,l/=6,l%=1,[l*360,o*100,a*100]};y.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};y.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};y.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,l=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-r)*n,[(r*i[0]+l)*255,(r*i[1]+l)*255,(r*i[2]+l)*255]};y.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};y.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};y.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};y.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};y.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};y.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};y.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};y.gray.hsl=function(t){return[0,0,t[0]]};y.gray.hsv=y.gray.hsl;y.gray.hwb=function(t){return[0,100,t[0]]};y.gray.cmyk=function(t){return[0,0,0,t[0]]};y.gray.lab=function(t){return[t[0],0,0]};y.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};y.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var Vi=h((w0,Ui)=>{var vt=Wr();function du(){let t={},e=Object.keys(vt);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function hu(t){let e=du(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(vt[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],l=e[a];l.distance===-1&&(l.distance=e[n].distance+1,l.parent=n,r.unshift(a))}}return e}function pu(t,e){return function(r){return e(t(r))}}function gu(t,e){let r=[e[t].parent,t],n=vt[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=pu(vt[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}Ui.exports=function(t){let e=hu(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=gu(o,e))}return r}});var Wi=h((E0,Hi)=>{var Gr=Wr(),mu=Vi(),Ce={},_u=Object.keys(Gr);function yu(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function bu(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}_u.forEach(t=>{Ce[t]={},Object.defineProperty(Ce[t],"channels",{value:Gr[t].channels}),Object.defineProperty(Ce[t],"labels",{value:Gr[t].labels});let e=mu(t);Object.keys(e).forEach(n=>{let i=e[n];Ce[t][n]=bu(i),Ce[t][n].raw=yu(i)})});Hi.exports=Ce});var Xi=h((S0,Ji)=>{"use strict";var Gi=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,zi=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},Yi=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},wt=t=>t,Ki=(t,e,r)=>[t,e,r],Ae=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},zr,Oe=(t,e,r,n)=>{zr===void 0&&(zr=Wi());let i=n?10:0,s={};for(let[o,a]of Object.entries(zr)){let l=o==="ansi16"?"ansi":o;o===e?s[l]=t(r,i):typeof a=="object"&&(s[l]=t(a[e],i))}return s};function xu(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",Ae(e.color,"ansi",()=>Oe(Gi,"ansi16",wt,!1)),Ae(e.color,"ansi256",()=>Oe(zi,"ansi256",wt,!1)),Ae(e.color,"ansi16m",()=>Oe(Yi,"rgb",Ki,!1)),Ae(e.bgColor,"ansi",()=>Oe(Gi,"ansi16",wt,!0)),Ae(e.bgColor,"ansi256",()=>Oe(zi,"ansi256",wt,!0)),Ae(e.bgColor,"ansi16m",()=>Oe(Yi,"rgb",Ki,!0)),e}Object.defineProperty(Ji,"exports",{enumerable:!0,get:xu})});var Qi=h((C0,Zi)=>{"use strict";Zi.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var Jr=h((A0,ts)=>{"use strict";var vu=require("os"),es=require("tty"),j=Qi(),{env:L}=process,re;j("no-color")||j("no-colors")||j("color=false")||j("color=never")?re=0:(j("color")||j("colors")||j("color=true")||j("color=always"))&&(re=1);"FORCE_COLOR"in L&&(L.FORCE_COLOR==="true"?re=1:L.FORCE_COLOR==="false"?re=0:re=L.FORCE_COLOR.length===0?1:Math.min(parseInt(L.FORCE_COLOR,10),3));function Yr(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Kr(t,e){if(re===0)return 0;if(j("color=16m")||j("color=full")||j("color=truecolor"))return 3;if(j("color=256"))return 2;if(t&&!e&&re===void 0)return 0;let r=re||0;if(L.TERM==="dumb")return r;if(process.platform==="win32"){let n=vu.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in L)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in L)||L.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in L)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(L.TEAMCITY_VERSION)?1:0;if(L.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in L){let n=parseInt((L.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(L.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(L.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(L.TERM)||"COLORTERM"in L?1:r}function wu(t){let e=Kr(t,t&&t.isTTY);return Yr(e)}ts.exports={supportsColor:wu,stdout:Yr(Kr(!0,es.isatty(1))),stderr:Yr(Kr(!0,es.isatty(2)))}});var ns=h((O0,rs)=>{"use strict";var Eu=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},Su=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
|
|
23
23
|
`:`
|
|
24
24
|
`)+r,i=n+1,n=t.indexOf(`
|
|
25
|
-
`,i)}while(n!==-1);return s+=t.substr(i),s};
|
|
26
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function
|
|
27
|
-
`);return s!==-1&&(e=Su(e,i,n,s)),n+e+i},Xr,ds=(t,...e)=>{let[r]=e;if(!Et(r)||!Et(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Xr===void 0&&(Xr=as()),Xr(t,i.join(""))};Object.defineProperties(St.prototype,Re);var At=St();At.supportsColor=Zr;At.stderr=St({level:Qr?Qr.level:0});At.stderr.supportsColor=Qr;hs.exports=At});var gs=h((E0,rn)=>{"use strict";var ps=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};rn.exports=ps;rn.exports.default=ps});var _s=h((S0,Rt)=>{"use strict";var Ou=gs(),Ot=new WeakMap,ms=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Ot.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Ou(s,t),Ot.set(s,n),s};Rt.exports=ms;Rt.exports.default=ms;Rt.exports.callCount=t=>{if(!Ot.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ot.get(t)}});var ys=h((C0,Ft)=>{Ft.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ft.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ft.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Es=h((A0,Te)=>{var F=global.process,pe=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"};pe(F)?(bs=require("assert"),Fe=ys(),xs=/^win/i.test(F.platform),Ze=require("events"),typeof Ze!="function"&&(Ze=Ze.EventEmitter),F.__signal_exit_emitter__?P=F.__signal_exit_emitter__:(P=F.__signal_exit_emitter__=new Ze,P.count=0,P.emitted={}),P.infinite||(P.setMaxListeners(1/0),P.infinite=!0),Te.exports=function(t,e){if(!pe(global.process))return function(){};bs.equal(typeof t,"function","a callback must be provided for exit handler"),Ie===!1&&nn();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){P.removeListener(r,t),P.listeners("exit").length===0&&P.listeners("afterexit").length===0&&It()};return P.on(r,t),n},It=function(){!Ie||!pe(global.process)||(Ie=!1,Fe.forEach(function(e){try{F.removeListener(e,Tt[e])}catch{}}),F.emit=Lt,F.reallyExit=sn,P.count-=1)},Te.exports.unload=It,ge=function(e,r,n){P.emitted[e]||(P.emitted[e]=!0,P.emit(e,r,n))},Tt={},Fe.forEach(function(t){Tt[t]=function(){if(pe(global.process)){var r=F.listeners(t);r.length===P.count&&(It(),ge("exit",null,t),ge("afterexit",null,t),xs&&t==="SIGHUP"&&(t="SIGINT"),F.kill(F.pid,t))}}}),Te.exports.signals=function(){return Fe},Ie=!1,nn=function(){Ie||!pe(global.process)||(Ie=!0,P.count+=1,Fe=Fe.filter(function(e){try{return F.on(e,Tt[e]),!0}catch{return!1}}),F.emit=ws,F.reallyExit=vs)},Te.exports.load=nn,sn=F.reallyExit,vs=function(e){pe(global.process)&&(F.exitCode=e||0,ge("exit",F.exitCode,null),ge("afterexit",F.exitCode,null),sn.call(F,F.exitCode))},Lt=F.emit,ws=function(e,r){if(e==="exit"&&pe(global.process)){r!==void 0&&(F.exitCode=r);var n=Lt.apply(this,arguments);return ge("exit",F.exitCode,null),ge("afterexit",F.exitCode,null),n}else return Lt.apply(this,arguments)}):Te.exports=function(){return function(){}};var bs,Fe,xs,Ze,P,It,ge,Tt,Ie,nn,sn,vs,Lt,ws});var Cs=h((O0,Ss)=>{"use strict";var Ru=_s(),Fu=Es();Ss.exports=Ru(()=>{Fu(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var As=h(Le=>{"use strict";var Iu=Cs(),Pt=!1;Le.show=(t=process.stderr)=>{t.isTTY&&(Pt=!1,t.write("\x1B[?25h"))};Le.hide=(t=process.stderr)=>{t.isTTY&&(Iu(),Pt=!0,t.write("\x1B[?25l"))};Le.toggle=(t,e)=>{t!==void 0&&(Pt=t),Pt?Le.show(e):Le.hide(e)}});var Os=h((F0,Tu)=>{Tu.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 Is=h((I0,Fs)=>{"use strict";var Dt=Object.assign({},Os()),Rs=Object.keys(Dt);Object.defineProperty(Dt,"random",{get(){let t=Math.floor(Math.random()*Rs.length),e=Rs[t];return Dt[e]}});Fs.exports=Dt});var on=h((T0,Ts)=>{"use strict";Ts.exports=()=>process.platform!=="win32"?!0:!!process.env.CI||!!process.env.WT_SESSION||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"});var Ps=h((L0,Ls)=>{"use strict";var ne=Z(),Lu=on(),Pu={info:ne.blue("\u2139"),success:ne.green("\u2714"),warning:ne.yellow("\u26A0"),error:ne.red("\u2716")},Du={info:ne.blue("i"),success:ne.green("\u221A"),warning:ne.yellow("\u203C"),error:ne.red("\xD7")};Ls.exports=Lu()?Pu:Du});var ks=h((P0,Ds)=>{"use strict";Ds.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var qs=h((D0,Ms)=>{"use strict";var ku=ks();Ms.exports=t=>typeof t=="string"?t.replace(ku(),""):t});var Ns=h((k0,kt)=>{var Mu=function(){"use strict";function t(o,a,l,u){var f;typeof a=="object"&&(l=a.depth,u=a.prototype,f=a.filter,a=a.circular);var c=[],p=[],_=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function g(d,m){if(d===null)return null;if(m==0)return d;var x,A;if(typeof d!="object")return d;if(t.__isArray(d))x=[];else if(t.__isRegExp(d))x=new RegExp(d.source,s(d)),d.lastIndex&&(x.lastIndex=d.lastIndex);else if(t.__isDate(d))x=new Date(d.getTime());else{if(_&&Buffer.isBuffer(d))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(d.length):x=new Buffer(d.length),d.copy(x),x;typeof u>"u"?(A=Object.getPrototypeOf(d),x=Object.create(A)):(x=Object.create(u),A=u)}if(a){var T=c.indexOf(d);if(T!=-1)return p[T];c.push(d),p.push(x)}for(var M in d){var B;A&&(B=Object.getOwnPropertyDescriptor(A,M)),!(B&&B.set==null)&&(x[M]=g(d[M],m-1))}return x}return g(o,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof kt=="object"&&kt.exports&&(kt.exports=Mu)});var js=h((M0,Bs)=>{var qu=Ns();Bs.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=qu(e[r]))}),t}});var Us=h((q0,$s)=>{$s.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Gs=h((N0,an)=>{"use strict";var Nu=js(),Qe=Us(),Hs={nul:0,control:0};an.exports=function(e){return Ws(e,Hs)};an.exports.config=function(t){return t=Nu(t||{},Hs),function(r){return Ws(r,t)}};function Ws(t,e){if(typeof t!="string")return Vs(t,e);for(var r=0,n=0;n<t.length;n++){var i=Vs(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function Vs(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:Bu(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function Bu(t){var e=0,r=Qe.length-1,n;if(t<Qe[0][0]||t>Qe[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>Qe[n][1])e=n+1;else if(t<Qe[n][0])r=n-1;else return!0;return!1}});var Ys=h((B0,zs)=>{"use strict";zs.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var ln=h((j0,Ks)=>{Ks.exports=require("stream")});var to=h(($0,eo)=>{"use strict";function Js(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 Xs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Js(Object(r),!0).forEach(function(n){ju(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Js(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ju(t,e,r){return e=Qs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zs(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,Qs(n.key),n)}}function Uu(t,e,r){return e&&Zs(t.prototype,e),r&&Zs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qs(t){var e=Vu(t,"string");return typeof e=="symbol"?e:String(e)}function Vu(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 Hu=require("buffer"),Mt=Hu.Buffer,Wu=require("util"),un=Wu.inspect,Gu=un&&un.custom||"inspect";function zu(t,e,r){Mt.prototype.copy.call(t,e,r)}eo.exports=function(){function t(){$u(this,t),this.head=null,this.tail=null,this.length=0}return Uu(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 Mt.alloc(0);for(var n=Mt.allocUnsafe(r>>>0),i=this.head,s=0;i;)zu(i.data,n,s),s+=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,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=Mt.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:Gu,value:function(r,n){return un(this,Xs(Xs({},n),{},{depth:0,customInspect:!1}))}}]),t}()});var cn=h((U0,no)=>{"use strict";function Yu(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(fn,this,t)):process.nextTick(fn,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(qt,r):(r._writableState.errorEmitted=!0,process.nextTick(ro,r,s)):process.nextTick(ro,r,s):e?(process.nextTick(qt,r),e(s)):process.nextTick(qt,r)}),this)}function ro(t,e){fn(t,e),qt(t)}function qt(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Ku(){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 fn(t,e){t.emit("error",e)}function Ju(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}no.exports={destroy:Yu,undestroy:Ku,errorOrDestroy:Ju}});var ie=h((V0,oo)=>{"use strict";var so={};function $(t,e,r){r||(r=Error);function n(s,o,a){return typeof e=="string"?e:e(s,o,a)}class i extends r{constructor(o,a,l){super(n(o,a,l))}}i.prototype.name=r.name,i.prototype.code=t,so[t]=i}function io(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 Xu(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function Zu(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function Qu(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}$("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);$("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&Xu(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(Zu(t," argument"))i=`The ${t} ${n} ${io(e,"type")}`;else{let s=Qu(t,".")?"property":"argument";i=`The "${t}" ${s} ${n} ${io(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);$("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");$("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});$("ERR_STREAM_PREMATURE_CLOSE","Premature close");$("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});$("ERR_MULTIPLE_CALLBACK","Callback called multiple times");$("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");$("ERR_STREAM_WRITE_AFTER_END","write after end");$("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);$("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);$("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");oo.exports.codes=so});var dn=h((H0,ao)=>{"use strict";var ef=ie().codes.ERR_INVALID_OPT_VALUE;function tf(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function rf(t,e,r,n){var i=tf(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new ef(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}ao.exports={getHighWaterMark:rf}});var lo=h((W0,hn)=>{typeof Object.create=="function"?hn.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:hn.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 me=h((G0,gn)=>{try{if(pn=require("util"),typeof pn.inherits!="function")throw"";gn.exports=pn.inherits}catch{gn.exports=lo()}var pn});var fo=h((z0,uo)=>{uo.exports=require("util").deprecate});var yn=h((Y0,_o)=>{"use strict";_o.exports=I;function ho(t){var e=this;this.next=null,this.entry=null,this.finish=function(){If(e,t)}}var Pe;I.WritableState=tt;var nf={deprecate:fo()},po=ln(),Bt=require("buffer").Buffer,sf=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function of(t){return Bt.from(t)}function af(t){return Bt.isBuffer(t)||t instanceof sf}var _n=cn(),lf=dn(),uf=lf.getHighWaterMark,se=ie().codes,ff=se.ERR_INVALID_ARG_TYPE,cf=se.ERR_METHOD_NOT_IMPLEMENTED,df=se.ERR_MULTIPLE_CALLBACK,hf=se.ERR_STREAM_CANNOT_PIPE,pf=se.ERR_STREAM_DESTROYED,gf=se.ERR_STREAM_NULL_VALUES,mf=se.ERR_STREAM_WRITE_AFTER_END,_f=se.ERR_UNKNOWN_ENCODING,De=_n.errorOrDestroy;me()(I,po);function yf(){}function tt(t,e,r){Pe=Pe||_e(),t=t||{},typeof r!="boolean"&&(r=e instanceof Pe),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=uf(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){Cf(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 ho(this)}tt.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(tt.prototype,"buffer",{get:nf.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Nt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Nt=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(e){return Nt.call(this,e)?!0:this!==I?!1:e&&e._writableState instanceof tt}})):Nt=function(e){return e instanceof this};function I(t){Pe=Pe||_e();var e=this instanceof Pe;if(!e&&!Nt.call(I,this))return new I(t);this._writableState=new tt(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)),po.call(this)}I.prototype.pipe=function(){De(this,new hf)};function bf(t,e){var r=new mf;De(t,r),process.nextTick(e,r)}function xf(t,e,r,n){var i;return r===null?i=new gf:typeof r!="string"&&!e.objectMode&&(i=new ff("chunk",["string","Buffer"],r)),i?(De(t,i),process.nextTick(n,i),!1):!0}I.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&af(t);return s&&!Bt.isBuffer(t)&&(t=of(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=yf),n.ending?bf(this,r):(s||xf(this,n,t,r))&&(n.pendingcb++,i=wf(this,n,s,t,e,r)),i};I.prototype.cork=function(){this._writableState.corked++};I.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&go(this,t))};I.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 _f(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function vf(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Bt.from(e,r)),e}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function wf(t,e,r,n,i,s){if(!r){var o=vf(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}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 u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else mn(t,e,!1,a,n,i,s);return l}function mn(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new pf("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function Ef(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(et,t,e),t._writableState.errorEmitted=!0,De(t,n)):(i(n),t._writableState.errorEmitted=!0,De(t,n),et(t,e))}function Sf(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Cf(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new df;if(Sf(r),e)Ef(t,r,n,e,i);else{var s=mo(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&go(t,r),n?process.nextTick(co,t,r,s,i):co(t,r,s,i)}}function co(t,e,r,n){r||Af(t,e),e.pendingcb--,n(),et(t,e)}function Af(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function go(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,mn(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new ho(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,c=e.objectMode?1:l.length;if(mn(t,e,!1,c,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}I.prototype._write=function(t,e,r){r(new cf("_write()"))};I.prototype._writev=null;I.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||Ff(this,n,r),this};Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function mo(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Of(t,e){t._final(function(r){e.pendingcb--,r&&De(t,r),e.prefinished=!0,t.emit("prefinish"),et(t,e)})}function Rf(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Of,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function et(t,e){var r=mo(e);if(r&&(Rf(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 Ff(t,e,r){e.ending=!0,et(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function If(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(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});I.prototype.destroy=_n.destroy;I.prototype._undestroy=_n.undestroy;I.prototype._destroy=function(t,e){e(t)}});var _e=h((K0,bo)=>{"use strict";var Tf=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};bo.exports=z;var yo=vn(),xn=yn();me()(z,yo);for(bn=Tf(xn.prototype),jt=0;jt<bn.length;jt++)$t=bn[jt],z.prototype[$t]||(z.prototype[$t]=xn.prototype[$t]);var bn,$t,jt;function z(t){if(!(this instanceof z))return new z(t);yo.call(this,t),xn.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",Lf)))}Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Lf(){this._writableState.ended||process.nextTick(Pf,this)}function Pf(t){t.end()}Object.defineProperty(z.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 wo=h((wn,vo)=>{var Ut=require("buffer"),Y=Ut.Buffer;function xo(t,e){for(var r in t)e[r]=t[r]}Y.from&&Y.alloc&&Y.allocUnsafe&&Y.allocUnsafeSlow?vo.exports=Ut:(xo(Ut,wn),wn.Buffer=ye);function ye(t,e,r){return Y(t,e,r)}ye.prototype=Object.create(Y.prototype);xo(Y,ye);ye.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Y(t,e,r)};ye.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Y(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};ye.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Y(t)};ye.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ut.SlowBuffer(t)}});var Cn=h(So=>{"use strict";var Sn=wo().Buffer,Eo=Sn.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 Df(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 kf(t){var e=Df(t);if(typeof e!="string"&&(Sn.isEncoding===Eo||!Eo(t)))throw new Error("Unknown encoding: "+t);return e||t}So.StringDecoder=rt;function rt(t){this.encoding=kf(t);var e;switch(this.encoding){case"utf16le":this.text=$f,this.end=Uf,e=4;break;case"utf8":this.fillLast=Nf,e=4;break;case"base64":this.text=Vf,this.end=Hf,e=3;break;default:this.write=Wf,this.end=Gf;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Sn.allocUnsafe(e)}rt.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||""};rt.prototype.end=jf;rt.prototype.text=Bf;rt.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 En(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Mf(t,e,r){var n=e.length-1;if(n<r)return 0;var i=En(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=En(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=En(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function qf(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 Nf(t){var e=this.lastTotal-this.lastNeed,r=qf(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 Bf(t,e){var r=Mf(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 jf(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function $f(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 Uf(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 Vf(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 Hf(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Wf(t){return t.toString(this.encoding)}function Gf(t){return t&&t.length?this.write(t):""}});var Vt=h((X0,Oo)=>{"use strict";var Co=ie().codes.ERR_STREAM_PREMATURE_CLOSE;function zf(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 Yf(){}function Kf(t){return t.setHeader&&typeof t.abort=="function"}function Ao(t,e,r){if(typeof e=="function")return Ao(t,null,e);e||(e={}),r=zf(r||Yf);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){i=!1,o=!0,n||r.call(t)},l=t._readableState&&t._readableState.endEmitted,u=function(){n=!1,l=!0,i||r.call(t)},f=function(g){r.call(t,g)},c=function(){var g;if(n&&!l)return(!t._readableState||!t._readableState.ended)&&(g=new Co),r.call(t,g);if(i&&!o)return(!t._writableState||!t._writableState.ended)&&(g=new Co),r.call(t,g)},p=function(){t.req.on("finish",a)};return Kf(t)?(t.on("complete",a),t.on("abort",c),t.req?p():t.on("request",p)):i&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",u),t.on("finish",a),e.error!==!1&&t.on("error",f),t.on("close",c),function(){t.removeListener("complete",a),t.removeListener("abort",c),t.removeListener("request",p),t.req&&t.req.removeListener("finish",a),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",a),t.removeListener("end",u),t.removeListener("error",f),t.removeListener("close",c)}}Oo.exports=Ao});var Fo=h((Z0,Ro)=>{"use strict";var Ht;function oe(t,e,r){return e=Jf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jf(t){var e=Xf(t,"string");return typeof e=="symbol"?e:String(e)}function Xf(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 Zf=Vt(),ae=Symbol("lastResolve"),be=Symbol("lastReject"),nt=Symbol("error"),Wt=Symbol("ended"),xe=Symbol("lastPromise"),An=Symbol("handlePromise"),ve=Symbol("stream");function le(t,e){return{value:t,done:e}}function Qf(t){var e=t[ae];if(e!==null){var r=t[ve].read();r!==null&&(t[xe]=null,t[ae]=null,t[be]=null,e(le(r,!1)))}}function ec(t){process.nextTick(Qf,t)}function tc(t,e){return function(r,n){t.then(function(){if(e[Wt]){r(le(void 0,!0));return}e[An](r,n)},n)}}var rc=Object.getPrototypeOf(function(){}),nc=Object.setPrototypeOf((Ht={get stream(){return this[ve]},next:function(){var e=this,r=this[nt];if(r!==null)return Promise.reject(r);if(this[Wt])return Promise.resolve(le(void 0,!0));if(this[ve].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[nt]?a(e[nt]):o(le(void 0,!0))})});var n=this[xe],i;if(n)i=new Promise(tc(n,this));else{var s=this[ve].read();if(s!==null)return Promise.resolve(le(s,!1));i=new Promise(this[An])}return this[xe]=i,i}},oe(Ht,Symbol.asyncIterator,function(){return this}),oe(Ht,"return",function(){var e=this;return new Promise(function(r,n){e[ve].destroy(null,function(i){if(i){n(i);return}r(le(void 0,!0))})})}),Ht),rc),ic=function(e){var r,n=Object.create(nc,(r={},oe(r,ve,{value:e,writable:!0}),oe(r,ae,{value:null,writable:!0}),oe(r,be,{value:null,writable:!0}),oe(r,nt,{value:null,writable:!0}),oe(r,Wt,{value:e._readableState.endEmitted,writable:!0}),oe(r,An,{value:function(s,o){var a=n[ve].read();a?(n[xe]=null,n[ae]=null,n[be]=null,s(le(a,!1))):(n[ae]=s,n[be]=o)},writable:!0}),r));return n[xe]=null,Zf(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[be];s!==null&&(n[xe]=null,n[ae]=null,n[be]=null,s(i)),n[nt]=i;return}var o=n[ae];o!==null&&(n[xe]=null,n[ae]=null,n[be]=null,o(le(void 0,!0))),n[Wt]=!0}),e.on("readable",ec.bind(null,n)),n};Ro.exports=ic});var Po=h((Q0,Lo)=>{"use strict";function Io(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(n,i)}function sc(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function o(l){Io(s,n,i,o,a,"next",l)}function a(l){Io(s,n,i,o,a,"throw",l)}o(void 0)})}}function To(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 oc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?To(Object(r),!0).forEach(function(n){ac(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):To(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ac(t,e,r){return e=lc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lc(t){var e=uc(t,"string");return typeof e=="symbol"?e:String(e)}function uc(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 fc=ie().codes.ERR_INVALID_ARG_TYPE;function cc(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 fc("iterable",["Iterable"],e);var i=new t(oc({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=sc(function*(){try{var l=yield n.next(),u=l.value,f=l.done;f?i.push(null):i.push(yield u)?o():s=!1}catch(c){i.destroy(c)}}),a.apply(this,arguments)}return i}Lo.exports=cc});var vn=h((tp,Vo)=>{"use strict";Vo.exports=S;var ke;S.ReadableState=qo;var ep=require("events").EventEmitter,Mo=function(e,r){return e.listeners(r).length},st=ln(),Gt=require("buffer").Buffer,dc=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function hc(t){return Gt.from(t)}function pc(t){return Gt.isBuffer(t)||t instanceof dc}var On=require("util"),E;On&&On.debuglog?E=On.debuglog("stream"):E=function(){};var gc=to(),Dn=cn(),mc=dn(),_c=mc.getHighWaterMark,zt=ie().codes,yc=zt.ERR_INVALID_ARG_TYPE,bc=zt.ERR_STREAM_PUSH_AFTER_EOF,xc=zt.ERR_METHOD_NOT_IMPLEMENTED,vc=zt.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Me,Rn,Fn;me()(S,st);var it=Dn.errorOrDestroy,In=["error","close","destroy","pause","resume"];function wc(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){ke=ke||_e(),t=t||{},typeof r!="boolean"&&(r=e instanceof ke),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=_c(this,t,"readableHighWaterMark",r),this.buffer=new gc,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&&(Me||(Me=Cn().StringDecoder),this.decoder=new Me(t.encoding),this.encoding=t.encoding)}function S(t){if(ke=ke||_e(),!(this instanceof S))return new S(t);var e=this instanceof ke;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)),st.call(this)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});S.prototype.destroy=Dn.destroy;S.prototype._undestroy=Dn.undestroy;S.prototype._destroy=function(t,e){e(t)};S.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=Gt.from(t,e),e=""),n=!0),No(this,t,e,!1,n)};S.prototype.unshift=function(t){return No(this,t,null,!0,!1)};function No(t,e,r,n,i){E("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,Cc(t,s);else{var o;if(i||(o=Ec(s,e)),o)it(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Gt.prototype&&(e=hc(e)),n)s.endEmitted?it(t,new vc):Tn(t,s,e,!0);else if(s.ended)it(t,new bc);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?Tn(t,s,e,!1):Pn(t,s)):Tn(t,s,e,!1)}else n||(s.reading=!1,Pn(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Tn(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&&Yt(t)),Pn(t,e)}function Ec(t,e){var r;return!pc(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new yc("chunk",["string","Buffer","Uint8Array"],e)),r}S.prototype.isPaused=function(){return this._readableState.flowing===!1};S.prototype.setEncoding=function(t){Me||(Me=Cn().StringDecoder);var e=new Me(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 Do=1073741824;function Sc(t){return t>=Do?t=Do:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function ko(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=Sc(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}S.prototype.read=function(t){E("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 E("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Ln(this):Yt(this),null;if(t=ko(t,e),t===0&&e.ended)return e.length===0&&Ln(this),null;var n=e.needReadable;E("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,E("length less than watermark",n)),e.ended||e.reading?(n=!1,E("reading or ended",n)):n&&(E("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=ko(r,e)));var i;return t>0?i=$o(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&&Ln(this)),i!==null&&this.emit("data",i),i};function Cc(t,e){if(E("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?Yt(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Bo(t)))}}function Yt(t){var e=t._readableState;E("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(E("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Bo,t))}function Bo(t){var e=t._readableState;E("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 Pn(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(Ac,t,e))}function Ac(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(E("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}S.prototype._read=function(t){it(this,new xc("_read()"))};S.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,E("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?a:d;n.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(m,x){E("onunpipe"),m===r&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,f())}function a(){E("onend"),t.end()}var l=Oc(r);t.on("drain",l);var u=!1;function f(){E("cleanup"),t.removeListener("close",_),t.removeListener("finish",g),t.removeListener("drain",l),t.removeListener("error",p),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",d),r.removeListener("data",c),u=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",c);function c(m){E("ondata");var x=t.write(m);E("dest.write",x),x===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&Uo(n.pipes,t)!==-1)&&!u&&(E("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(m){E("onerror",m),d(),t.removeListener("error",p),Mo(t,"error")===0&&it(t,m)}wc(t,"error",p);function _(){t.removeListener("finish",g),d()}t.once("close",_);function g(){E("onfinish"),t.removeListener("close",_),d()}t.once("finish",g);function d(){E("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(E("pipe resume"),r.resume()),t};function Oc(t){return function(){var r=t._readableState;E("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Mo(t,"data")&&(r.flowing=!0,kn(t))}}S.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 s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Uo(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};S.prototype.on=function(t,e){var r=st.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,E("on readable",n.length,n.reading),n.length?Yt(this):n.reading||process.nextTick(Rc,this)),r};S.prototype.addListener=S.prototype.on;S.prototype.removeListener=function(t,e){var r=st.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(jo,this),r};S.prototype.removeAllListeners=function(t){var e=st.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(jo,this),e};function jo(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 Rc(t){E("readable nexttick read 0"),t.read(0)}S.prototype.resume=function(){var t=this._readableState;return t.flowing||(E("resume"),t.flowing=!t.readableListening,Fc(this,t)),t.paused=!1,this};function Fc(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Ic,t,e))}function Ic(t,e){E("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),kn(t),e.flowing&&!e.reading&&t.read(0)}S.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function kn(t){var e=t._readableState;for(E("flow",e.flowing);e.flowing&&t.read()!==null;);}S.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(E("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(E("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);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 s=0;s<In.length;s++)t.on(In[s],this.emit.bind(this,In[s]));return this._read=function(o){E("wrapped _read",o),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(S.prototype[Symbol.asyncIterator]=function(){return Rn===void 0&&(Rn=Fo()),Rn(this)});Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});S._fromList=$o;Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function $o(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 Ln(t){var e=t._readableState;E("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Tc,e,t))}function Tc(t,e){if(E("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"&&(S.from=function(t,e){return Fn===void 0&&(Fn=Po()),Fn(S,t,e)});function Uo(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var Mn=h((rp,Wo)=>{"use strict";Wo.exports=Q;var Kt=ie().codes,Lc=Kt.ERR_METHOD_NOT_IMPLEMENTED,Pc=Kt.ERR_MULTIPLE_CALLBACK,Dc=Kt.ERR_TRANSFORM_ALREADY_TRANSFORMING,kc=Kt.ERR_TRANSFORM_WITH_LENGTH_0,Jt=_e();me()(Q,Jt);function Mc(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Pc);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 Q(t){if(!(this instanceof Q))return new Q(t);Jt.call(this,t),this._transformState={afterTransform:Mc.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",qc)}function qc(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Ho(t,e,r)}):Ho(this,null,null)}Q.prototype.push=function(t,e){return this._transformState.needTransform=!1,Jt.prototype.push.call(this,t,e)};Q.prototype._transform=function(t,e,r){r(new Lc("_transform()"))};Q.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)}};Q.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};Q.prototype._destroy=function(t,e){Jt.prototype._destroy.call(this,t,function(r){e(r)})};function Ho(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new kc;if(t._transformState.transforming)throw new Dc;return t.push(null)}});var Yo=h((np,zo)=>{"use strict";zo.exports=ot;var Go=Mn();me()(ot,Go);function ot(t){if(!(this instanceof ot))return new ot(t);Go.call(this,t)}ot.prototype._transform=function(t,e,r){r(null,t)}});var Qo=h((ip,Zo)=>{"use strict";var qn;function Nc(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Xo=ie().codes,Bc=Xo.ERR_MISSING_ARGS,jc=Xo.ERR_STREAM_DESTROYED;function Ko(t){if(t)throw t}function $c(t){return t.setHeader&&typeof t.abort=="function"}function Uc(t,e,r,n){n=Nc(n);var i=!1;t.on("close",function(){i=!0}),qn===void 0&&(qn=Vt()),qn(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,$c(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(o||new jc("pipe"))}}}function Jo(t){t()}function Vc(t,e){return t.pipe(e)}function Hc(t){return!t.length||typeof t[t.length-1]!="function"?Ko:t.pop()}function Wc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Hc(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Bc("streams");var i,s=e.map(function(o,a){var l=a<e.length-1,u=a>0;return Uc(o,l,u,function(f){i||(i=f),f&&s.forEach(Jo),!l&&(s.forEach(Jo),n(i))})});return e.reduce(Vc)}Zo.exports=Wc});var ea=h((U,lt)=>{var at=require("stream");process.env.READABLE_STREAM==="disable"&&at?(lt.exports=at.Readable,Object.assign(lt.exports,at),lt.exports.Stream=at):(U=lt.exports=vn(),U.Stream=at||U,U.Readable=U,U.Writable=yn(),U.Duplex=_e(),U.Transform=Mn(),U.PassThrough=Yo(),U.finished=Vt(),U.pipeline=Qo())});var na=h((sp,ra)=>{"use strict";var{Buffer:H}=require("buffer"),ta=Symbol.for("BufferList");function O(t){if(!(this instanceof O))return new O(t);O._init.call(this,t)}O._init=function(e){Object.defineProperty(this,ta,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};O.prototype._new=function(e){return new O(e)};O.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}};O.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};O.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};O.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)};O.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||H.alloc(0);let s=!!e,o=this._offset(n),a=i-n,l=a,u=s&&r||0,f=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:H.concat(this._bufs,this.length);for(let c=0;c<this._bufs.length;c++)this._bufs[c].copy(e,u),u+=this._bufs[c].length;return e}if(l<=this._bufs[o[0]].length-f)return s?this._bufs[o[0]].copy(e,r,f,f+l):this._bufs[o[0]].slice(f,f+l);s||(e=H.allocUnsafe(a));for(let c=o[0];c<this._bufs.length;c++){let p=this._bufs[c].length-f;if(l>p)this._bufs[c].copy(e,u,f),u+=p;else{this._bufs[c].copy(e,u,f,f+l),u+=p;break}l-=p,f&&(f=0)}return e.length>u?e.slice(0,u):e};O.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),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};O.prototype.toString=function(e,r,n){return this.slice(r,n).toString(e)};O.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};O.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};O.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(H.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(H.from(e));return this};O.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};O.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=H.from([t]):typeof t=="string"?t=H.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=H.from(t.buffer,t.byteOffset,t.byteLength):H.isBuffer(t)||(t=H.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],s=n[1];for(;i<this._bufs.length;i++){let o=this._bufs[i];for(;s<o.length;)if(o.length-s>=t.length){let l=o.indexOf(t,s);if(l!==-1)return this._reverseOffset([i,l]);s=o.length-t.length+1}else{let l=this._reverseOffset([i,s]);if(this._match(l,t))return l;s++}s=0}return-1};O.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?O.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:O.prototype[r]=function(n=0){return this.slice(n,n+t[r])[r](0)}})(e)})();O.prototype._isBufferList=function(e){return e instanceof O||O.isBufferList(e)};O.isBufferList=function(e){return e!=null&&e[ta]};ra.exports=O});var ia=h((op,Xt)=>{"use strict";var Nn=ea().Duplex,Gc=me(),ut=na();function k(t){if(!(this instanceof k))return new k(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}ut._init.call(this,t),Nn.call(this)}Gc(k,Nn);Object.assign(k.prototype,ut.prototype);k.prototype._new=function(e){return new k(e)};k.prototype._write=function(e,r,n){this._appendBuffer(e),typeof n=="function"&&n()};k.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)};k.prototype.end=function(e){Nn.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};k.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};k.prototype._isBufferList=function(e){return e instanceof k||e instanceof ut||k.isBufferList(e)};k.isBufferList=ut.isBufferList;Xt.exports=k;Xt.exports.BufferListStream=k;Xt.exports.BufferList=ut});var oa=h((ap,Un)=>{"use strict";var zc=require("readline"),Yc=Z(),sa=As(),Zt=Is(),Qt=Ps(),Kc=qs(),Jc=Gs(),Xc=Ys(),Zc=on(),{BufferListStream:Qc}=ia(),Bn=Symbol("text"),jn=Symbol("prefixText"),ed=3,$n=class{constructor(){this.requests=0,this.mutedStream=new Qc,this.mutedStream.pipe(process.stdout);let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(ed)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=zc.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},er,tr=class{constructor(e){er||(er=new $n),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:Xc({stream:this.stream}),this.isSilent=typeof this.options.isSilent=="boolean"?this.options.isSilent:!1,this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}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._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(!Zc())this._spinner=Zt.line;else if(e===void 0)this._spinner=Zt.dots;else if(e!=="default"&&Zt[e])this._spinner=Zt[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.`);this._updateInterval(this._spinner.interval)}get text(){return this[Bn]}set text(e){this[Bn]=e,this.updateLineCount()}get prefixText(){return this[jn]}set prefixText(e){this[jn]=e,this.updateLineCount()}get isSpinning(){return this.id!==void 0}getFullPrefixText(e=this[jn],r=" "){return typeof e=="string"?e+r:typeof e=="function"?e()+r:""}updateLineCount(){let e=this.stream.columns||80,r=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(let n of Kc(r+"--"+this[Bn]).split(`
|
|
28
|
-
`))this.lineCount+=Math.max(1,Math.ceil(
|
|
29
|
-
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&
|
|
30
|
-
`),this}},
|
|
25
|
+
`,i)}while(n!==-1);return s+=t.substr(i),s};rs.exports={stringReplaceAll:Eu,stringEncaseCRLFWithFirstIndex:Su}});var ls=h((R0,as)=>{"use strict";var Cu=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,is=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Au=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Ou=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Ru=new Map([["n",`
|
|
26
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function os(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):Ru.get(t)||t}function Fu(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(Au))r.push(i[2].replace(Ou,(a,l,u)=>l?os(l):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function Iu(t){is.lastIndex=0;let e=[],r;for(;(r=is.exec(t))!==null;){let n=r[1];if(r[2]){let i=Fu(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function ss(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}as.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Cu,(s,o,a,l,u,f)=>{if(o)i.push(os(o));else if(l){let c=i.join("");i=[],n.push(r.length===0?c:ss(t,r)(c)),r.push({inverse:a,styles:Iu(l)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(ss(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Z=h((F0,ps)=>{"use strict";var Xe=Xi(),{stdout:Zr,stderr:Qr}=Jr(),{stringReplaceAll:Tu,stringEncaseCRLFWithFirstIndex:Lu}=ns(),{isArray:Et}=Array,fs=["ansi","ansi","ansi256","ansi16m"],Re=Object.create(null),Pu=(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=Zr?Zr.level:0;t.level=e.level===void 0?r:e.level},en=class{constructor(e){return cs(e)}},cs=t=>{let e={};return Pu(e,t),e.template=(...r)=>hs(e.template,...r),Object.setPrototypeOf(e,St.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=en,e.template};function St(t){return cs(t)}for(let[t,e]of Object.entries(Xe))Re[t]={get(){let r=Ct(this,tn(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Re.visible={get(){let t=Ct(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var ds=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of ds)Re[t]={get(){let{level:e}=this;return function(...r){let n=tn(Xe.color[fs[e]][t](...r),Xe.color.close,this._styler);return Ct(this,n,this._isEmpty)}}};for(let t of ds){let e="bg"+t[0].toUpperCase()+t.slice(1);Re[e]={get(){let{level:r}=this;return function(...n){let i=tn(Xe.bgColor[fs[r]][t](...n),Xe.bgColor.close,this._styler);return Ct(this,i,this._isEmpty)}}}}var Du=Object.defineProperties(()=>{},{...Re,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),tn=(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}},Ct=(t,e,r)=>{let n=(...i)=>Et(i[0])&&Et(i[0].raw)?us(n,hs(n,...i)):us(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Du),n._generator=t,n._styler=e,n._isEmpty=r,n},us=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=Tu(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
|
|
27
|
+
`);return s!==-1&&(e=Lu(e,i,n,s)),n+e+i},Xr,hs=(t,...e)=>{let[r]=e;if(!Et(r)||!Et(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Xr===void 0&&(Xr=ls()),Xr(t,i.join(""))};Object.defineProperties(St.prototype,Re);var At=St();At.supportsColor=Zr;At.stderr=St({level:Qr?Qr.level:0});At.stderr.supportsColor=Qr;ps.exports=At});var ms=h((I0,rn)=>{"use strict";var gs=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};rn.exports=gs;rn.exports.default=gs});var ys=h((T0,Rt)=>{"use strict";var ku=ms(),Ot=new WeakMap,_s=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Ot.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return ku(s,t),Ot.set(s,n),s};Rt.exports=_s;Rt.exports.default=_s;Rt.exports.callCount=t=>{if(!Ot.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ot.get(t)}});var bs=h((L0,Ft)=>{Ft.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ft.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ft.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Ss=h((P0,Te)=>{var F=global.process,pe=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"};pe(F)?(xs=require("assert"),Fe=bs(),vs=/^win/i.test(F.platform),Ze=require("events"),typeof Ze!="function"&&(Ze=Ze.EventEmitter),F.__signal_exit_emitter__?P=F.__signal_exit_emitter__:(P=F.__signal_exit_emitter__=new Ze,P.count=0,P.emitted={}),P.infinite||(P.setMaxListeners(1/0),P.infinite=!0),Te.exports=function(t,e){if(!pe(global.process))return function(){};xs.equal(typeof t,"function","a callback must be provided for exit handler"),Ie===!1&&nn();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){P.removeListener(r,t),P.listeners("exit").length===0&&P.listeners("afterexit").length===0&&It()};return P.on(r,t),n},It=function(){!Ie||!pe(global.process)||(Ie=!1,Fe.forEach(function(e){try{F.removeListener(e,Tt[e])}catch{}}),F.emit=Lt,F.reallyExit=sn,P.count-=1)},Te.exports.unload=It,ge=function(e,r,n){P.emitted[e]||(P.emitted[e]=!0,P.emit(e,r,n))},Tt={},Fe.forEach(function(t){Tt[t]=function(){if(pe(global.process)){var r=F.listeners(t);r.length===P.count&&(It(),ge("exit",null,t),ge("afterexit",null,t),vs&&t==="SIGHUP"&&(t="SIGINT"),F.kill(F.pid,t))}}}),Te.exports.signals=function(){return Fe},Ie=!1,nn=function(){Ie||!pe(global.process)||(Ie=!0,P.count+=1,Fe=Fe.filter(function(e){try{return F.on(e,Tt[e]),!0}catch{return!1}}),F.emit=Es,F.reallyExit=ws)},Te.exports.load=nn,sn=F.reallyExit,ws=function(e){pe(global.process)&&(F.exitCode=e||0,ge("exit",F.exitCode,null),ge("afterexit",F.exitCode,null),sn.call(F,F.exitCode))},Lt=F.emit,Es=function(e,r){if(e==="exit"&&pe(global.process)){r!==void 0&&(F.exitCode=r);var n=Lt.apply(this,arguments);return ge("exit",F.exitCode,null),ge("afterexit",F.exitCode,null),n}else return Lt.apply(this,arguments)}):Te.exports=function(){return function(){}};var xs,Fe,vs,Ze,P,It,ge,Tt,Ie,nn,sn,ws,Lt,Es});var As=h((D0,Cs)=>{"use strict";var Mu=ys(),qu=Ss();Cs.exports=Mu(()=>{qu(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var Os=h(Le=>{"use strict";var Nu=As(),Pt=!1;Le.show=(t=process.stderr)=>{t.isTTY&&(Pt=!1,t.write("\x1B[?25h"))};Le.hide=(t=process.stderr)=>{t.isTTY&&(Nu(),Pt=!0,t.write("\x1B[?25l"))};Le.toggle=(t,e)=>{t!==void 0&&(Pt=t),Pt?Le.show(e):Le.hide(e)}});var Rs=h((M0,Bu)=>{Bu.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 Ts=h((q0,Is)=>{"use strict";var Dt=Object.assign({},Rs()),Fs=Object.keys(Dt);Object.defineProperty(Dt,"random",{get(){let t=Math.floor(Math.random()*Fs.length),e=Fs[t];return Dt[e]}});Is.exports=Dt});var on=h((N0,Ls)=>{"use strict";Ls.exports=()=>process.platform!=="win32"?!0:!!process.env.CI||!!process.env.WT_SESSION||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"});var Ds=h((B0,Ps)=>{"use strict";var ne=Z(),ju=on(),$u={info:ne.blue("\u2139"),success:ne.green("\u2714"),warning:ne.yellow("\u26A0"),error:ne.red("\u2716")},Uu={info:ne.blue("i"),success:ne.green("\u221A"),warning:ne.yellow("\u203C"),error:ne.red("\xD7")};Ps.exports=ju()?$u:Uu});var Ms=h((j0,ks)=>{"use strict";ks.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var Ns=h(($0,qs)=>{"use strict";var Vu=Ms();qs.exports=t=>typeof t=="string"?t.replace(Vu(),""):t});var Bs=h((U0,kt)=>{var Hu=function(){"use strict";function t(o,a,l,u){var f;typeof a=="object"&&(l=a.depth,u=a.prototype,f=a.filter,a=a.circular);var c=[],p=[],_=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function g(d,m){if(d===null)return null;if(m==0)return d;var x,A;if(typeof d!="object")return d;if(t.__isArray(d))x=[];else if(t.__isRegExp(d))x=new RegExp(d.source,s(d)),d.lastIndex&&(x.lastIndex=d.lastIndex);else if(t.__isDate(d))x=new Date(d.getTime());else{if(_&&Buffer.isBuffer(d))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(d.length):x=new Buffer(d.length),d.copy(x),x;typeof u>"u"?(A=Object.getPrototypeOf(d),x=Object.create(A)):(x=Object.create(u),A=u)}if(a){var T=c.indexOf(d);if(T!=-1)return p[T];c.push(d),p.push(x)}for(var M in d){var B;A&&(B=Object.getOwnPropertyDescriptor(A,M)),!(B&&B.set==null)&&(x[M]=g(d[M],m-1))}return x}return g(o,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof kt=="object"&&kt.exports&&(kt.exports=Hu)});var $s=h((V0,js)=>{var Wu=Bs();js.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=Wu(e[r]))}),t}});var Vs=h((H0,Us)=>{Us.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var zs=h((W0,an)=>{"use strict";var Gu=$s(),Qe=Vs(),Ws={nul:0,control:0};an.exports=function(e){return Gs(e,Ws)};an.exports.config=function(t){return t=Gu(t||{},Ws),function(r){return Gs(r,t)}};function Gs(t,e){if(typeof t!="string")return Hs(t,e);for(var r=0,n=0;n<t.length;n++){var i=Hs(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function Hs(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:zu(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function zu(t){var e=0,r=Qe.length-1,n;if(t<Qe[0][0]||t>Qe[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>Qe[n][1])e=n+1;else if(t<Qe[n][0])r=n-1;else return!0;return!1}});var Ks=h((G0,Ys)=>{"use strict";Ys.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var ln=h((z0,Js)=>{Js.exports=require("stream")});var ro=h((Y0,to)=>{"use strict";function Xs(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 Zs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Xs(Object(r),!0).forEach(function(n){Yu(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xs(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Yu(t,e,r){return e=eo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ku(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qs(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,eo(n.key),n)}}function Ju(t,e,r){return e&&Qs(t.prototype,e),r&&Qs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function eo(t){var e=Xu(t,"string");return typeof e=="symbol"?e:String(e)}function Xu(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 Zu=require("buffer"),Mt=Zu.Buffer,Qu=require("util"),un=Qu.inspect,ef=un&&un.custom||"inspect";function tf(t,e,r){Mt.prototype.copy.call(t,e,r)}to.exports=function(){function t(){Ku(this,t),this.head=null,this.tail=null,this.length=0}return Ju(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 Mt.alloc(0);for(var n=Mt.allocUnsafe(r>>>0),i=this.head,s=0;i;)tf(i.data,n,s),s+=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,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=Mt.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:ef,value:function(r,n){return un(this,Zs(Zs({},n),{},{depth:0,customInspect:!1}))}}]),t}()});var cn=h((K0,io)=>{"use strict";function rf(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(fn,this,t)):process.nextTick(fn,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(qt,r):(r._writableState.errorEmitted=!0,process.nextTick(no,r,s)):process.nextTick(no,r,s):e?(process.nextTick(qt,r),e(s)):process.nextTick(qt,r)}),this)}function no(t,e){fn(t,e),qt(t)}function qt(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function nf(){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 fn(t,e){t.emit("error",e)}function sf(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}io.exports={destroy:rf,undestroy:nf,errorOrDestroy:sf}});var ie=h((J0,ao)=>{"use strict";var oo={};function $(t,e,r){r||(r=Error);function n(s,o,a){return typeof e=="string"?e:e(s,o,a)}class i extends r{constructor(o,a,l){super(n(o,a,l))}}i.prototype.name=r.name,i.prototype.code=t,oo[t]=i}function so(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 of(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function af(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function lf(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}$("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);$("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&of(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(af(t," argument"))i=`The ${t} ${n} ${so(e,"type")}`;else{let s=lf(t,".")?"property":"argument";i=`The "${t}" ${s} ${n} ${so(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);$("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");$("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});$("ERR_STREAM_PREMATURE_CLOSE","Premature close");$("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});$("ERR_MULTIPLE_CALLBACK","Callback called multiple times");$("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");$("ERR_STREAM_WRITE_AFTER_END","write after end");$("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);$("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);$("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ao.exports.codes=oo});var dn=h((X0,lo)=>{"use strict";var uf=ie().codes.ERR_INVALID_OPT_VALUE;function ff(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function cf(t,e,r,n){var i=ff(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new uf(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}lo.exports={getHighWaterMark:cf}});var uo=h((Z0,hn)=>{typeof Object.create=="function"?hn.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:hn.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 me=h((Q0,gn)=>{try{if(pn=require("util"),typeof pn.inherits!="function")throw"";gn.exports=pn.inherits}catch{gn.exports=uo()}var pn});var co=h((ep,fo)=>{fo.exports=require("util").deprecate});var yn=h((tp,yo)=>{"use strict";yo.exports=I;function po(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Nf(e,t)}}var Pe;I.WritableState=tt;var df={deprecate:co()},go=ln(),Bt=require("buffer").Buffer,hf=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function pf(t){return Bt.from(t)}function gf(t){return Bt.isBuffer(t)||t instanceof hf}var _n=cn(),mf=dn(),_f=mf.getHighWaterMark,se=ie().codes,yf=se.ERR_INVALID_ARG_TYPE,bf=se.ERR_METHOD_NOT_IMPLEMENTED,xf=se.ERR_MULTIPLE_CALLBACK,vf=se.ERR_STREAM_CANNOT_PIPE,wf=se.ERR_STREAM_DESTROYED,Ef=se.ERR_STREAM_NULL_VALUES,Sf=se.ERR_STREAM_WRITE_AFTER_END,Cf=se.ERR_UNKNOWN_ENCODING,De=_n.errorOrDestroy;me()(I,go);function Af(){}function tt(t,e,r){Pe=Pe||_e(),t=t||{},typeof r!="boolean"&&(r=e instanceof Pe),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=_f(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){Pf(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 po(this)}tt.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(tt.prototype,"buffer",{get:df.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Nt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Nt=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(e){return Nt.call(this,e)?!0:this!==I?!1:e&&e._writableState instanceof tt}})):Nt=function(e){return e instanceof this};function I(t){Pe=Pe||_e();var e=this instanceof Pe;if(!e&&!Nt.call(I,this))return new I(t);this._writableState=new tt(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)),go.call(this)}I.prototype.pipe=function(){De(this,new vf)};function Of(t,e){var r=new Sf;De(t,r),process.nextTick(e,r)}function Rf(t,e,r,n){var i;return r===null?i=new Ef:typeof r!="string"&&!e.objectMode&&(i=new yf("chunk",["string","Buffer"],r)),i?(De(t,i),process.nextTick(n,i),!1):!0}I.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&gf(t);return s&&!Bt.isBuffer(t)&&(t=pf(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=Af),n.ending?Of(this,r):(s||Rf(this,n,t,r))&&(n.pendingcb++,i=If(this,n,s,t,e,r)),i};I.prototype.cork=function(){this._writableState.corked++};I.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&mo(this,t))};I.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 Cf(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Ff(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Bt.from(e,r)),e}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function If(t,e,r,n,i,s){if(!r){var o=Ff(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}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 u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else mn(t,e,!1,a,n,i,s);return l}function mn(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new wf("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function Tf(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(et,t,e),t._writableState.errorEmitted=!0,De(t,n)):(i(n),t._writableState.errorEmitted=!0,De(t,n),et(t,e))}function Lf(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Pf(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new xf;if(Lf(r),e)Tf(t,r,n,e,i);else{var s=_o(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&mo(t,r),n?process.nextTick(ho,t,r,s,i):ho(t,r,s,i)}}function ho(t,e,r,n){r||Df(t,e),e.pendingcb--,n(),et(t,e)}function Df(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function mo(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,mn(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new po(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,c=e.objectMode?1:l.length;if(mn(t,e,!1,c,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}I.prototype._write=function(t,e,r){r(new bf("_write()"))};I.prototype._writev=null;I.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||qf(this,n,r),this};Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function _o(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function kf(t,e){t._final(function(r){e.pendingcb--,r&&De(t,r),e.prefinished=!0,t.emit("prefinish"),et(t,e)})}function Mf(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(kf,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function et(t,e){var r=_o(e);if(r&&(Mf(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 qf(t,e,r){e.ending=!0,et(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Nf(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(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});I.prototype.destroy=_n.destroy;I.prototype._undestroy=_n.undestroy;I.prototype._destroy=function(t,e){e(t)}});var _e=h((rp,xo)=>{"use strict";var Bf=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};xo.exports=z;var bo=vn(),xn=yn();me()(z,bo);for(bn=Bf(xn.prototype),jt=0;jt<bn.length;jt++)$t=bn[jt],z.prototype[$t]||(z.prototype[$t]=xn.prototype[$t]);var bn,$t,jt;function z(t){if(!(this instanceof z))return new z(t);bo.call(this,t),xn.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",jf)))}Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function jf(){this._writableState.ended||process.nextTick($f,this)}function $f(t){t.end()}Object.defineProperty(z.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 Eo=h((wn,wo)=>{var Ut=require("buffer"),Y=Ut.Buffer;function vo(t,e){for(var r in t)e[r]=t[r]}Y.from&&Y.alloc&&Y.allocUnsafe&&Y.allocUnsafeSlow?wo.exports=Ut:(vo(Ut,wn),wn.Buffer=ye);function ye(t,e,r){return Y(t,e,r)}ye.prototype=Object.create(Y.prototype);vo(Y,ye);ye.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Y(t,e,r)};ye.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Y(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};ye.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Y(t)};ye.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ut.SlowBuffer(t)}});var Cn=h(Co=>{"use strict";var Sn=Eo().Buffer,So=Sn.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 Uf(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 Vf(t){var e=Uf(t);if(typeof e!="string"&&(Sn.isEncoding===So||!So(t)))throw new Error("Unknown encoding: "+t);return e||t}Co.StringDecoder=rt;function rt(t){this.encoding=Vf(t);var e;switch(this.encoding){case"utf16le":this.text=Kf,this.end=Jf,e=4;break;case"utf8":this.fillLast=Gf,e=4;break;case"base64":this.text=Xf,this.end=Zf,e=3;break;default:this.write=Qf,this.end=ec;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Sn.allocUnsafe(e)}rt.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||""};rt.prototype.end=Yf;rt.prototype.text=zf;rt.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 En(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Hf(t,e,r){var n=e.length-1;if(n<r)return 0;var i=En(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=En(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=En(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function Wf(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 Gf(t){var e=this.lastTotal-this.lastNeed,r=Wf(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 zf(t,e){var r=Hf(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 Yf(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Kf(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 Jf(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 Xf(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 Zf(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Qf(t){return t.toString(this.encoding)}function ec(t){return t&&t.length?this.write(t):""}});var Vt=h((ip,Ro)=>{"use strict";var Ao=ie().codes.ERR_STREAM_PREMATURE_CLOSE;function tc(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 rc(){}function nc(t){return t.setHeader&&typeof t.abort=="function"}function Oo(t,e,r){if(typeof e=="function")return Oo(t,null,e);e||(e={}),r=tc(r||rc);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){i=!1,o=!0,n||r.call(t)},l=t._readableState&&t._readableState.endEmitted,u=function(){n=!1,l=!0,i||r.call(t)},f=function(g){r.call(t,g)},c=function(){var g;if(n&&!l)return(!t._readableState||!t._readableState.ended)&&(g=new Ao),r.call(t,g);if(i&&!o)return(!t._writableState||!t._writableState.ended)&&(g=new Ao),r.call(t,g)},p=function(){t.req.on("finish",a)};return nc(t)?(t.on("complete",a),t.on("abort",c),t.req?p():t.on("request",p)):i&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",u),t.on("finish",a),e.error!==!1&&t.on("error",f),t.on("close",c),function(){t.removeListener("complete",a),t.removeListener("abort",c),t.removeListener("request",p),t.req&&t.req.removeListener("finish",a),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",a),t.removeListener("end",u),t.removeListener("error",f),t.removeListener("close",c)}}Ro.exports=Oo});var Io=h((sp,Fo)=>{"use strict";var Ht;function oe(t,e,r){return e=ic(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ic(t){var e=sc(t,"string");return typeof e=="symbol"?e:String(e)}function sc(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 oc=Vt(),ae=Symbol("lastResolve"),be=Symbol("lastReject"),nt=Symbol("error"),Wt=Symbol("ended"),xe=Symbol("lastPromise"),An=Symbol("handlePromise"),ve=Symbol("stream");function le(t,e){return{value:t,done:e}}function ac(t){var e=t[ae];if(e!==null){var r=t[ve].read();r!==null&&(t[xe]=null,t[ae]=null,t[be]=null,e(le(r,!1)))}}function lc(t){process.nextTick(ac,t)}function uc(t,e){return function(r,n){t.then(function(){if(e[Wt]){r(le(void 0,!0));return}e[An](r,n)},n)}}var fc=Object.getPrototypeOf(function(){}),cc=Object.setPrototypeOf((Ht={get stream(){return this[ve]},next:function(){var e=this,r=this[nt];if(r!==null)return Promise.reject(r);if(this[Wt])return Promise.resolve(le(void 0,!0));if(this[ve].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[nt]?a(e[nt]):o(le(void 0,!0))})});var n=this[xe],i;if(n)i=new Promise(uc(n,this));else{var s=this[ve].read();if(s!==null)return Promise.resolve(le(s,!1));i=new Promise(this[An])}return this[xe]=i,i}},oe(Ht,Symbol.asyncIterator,function(){return this}),oe(Ht,"return",function(){var e=this;return new Promise(function(r,n){e[ve].destroy(null,function(i){if(i){n(i);return}r(le(void 0,!0))})})}),Ht),fc),dc=function(e){var r,n=Object.create(cc,(r={},oe(r,ve,{value:e,writable:!0}),oe(r,ae,{value:null,writable:!0}),oe(r,be,{value:null,writable:!0}),oe(r,nt,{value:null,writable:!0}),oe(r,Wt,{value:e._readableState.endEmitted,writable:!0}),oe(r,An,{value:function(s,o){var a=n[ve].read();a?(n[xe]=null,n[ae]=null,n[be]=null,s(le(a,!1))):(n[ae]=s,n[be]=o)},writable:!0}),r));return n[xe]=null,oc(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[be];s!==null&&(n[xe]=null,n[ae]=null,n[be]=null,s(i)),n[nt]=i;return}var o=n[ae];o!==null&&(n[xe]=null,n[ae]=null,n[be]=null,o(le(void 0,!0))),n[Wt]=!0}),e.on("readable",lc.bind(null,n)),n};Fo.exports=dc});var Do=h((op,Po)=>{"use strict";function To(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(n,i)}function hc(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function o(l){To(s,n,i,o,a,"next",l)}function a(l){To(s,n,i,o,a,"throw",l)}o(void 0)})}}function Lo(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 pc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Lo(Object(r),!0).forEach(function(n){gc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function gc(t,e,r){return e=mc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mc(t){var e=_c(t,"string");return typeof e=="symbol"?e:String(e)}function _c(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 yc=ie().codes.ERR_INVALID_ARG_TYPE;function bc(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 yc("iterable",["Iterable"],e);var i=new t(pc({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=hc(function*(){try{var l=yield n.next(),u=l.value,f=l.done;f?i.push(null):i.push(yield u)?o():s=!1}catch(c){i.destroy(c)}}),a.apply(this,arguments)}return i}Po.exports=bc});var vn=h((lp,Ho)=>{"use strict";Ho.exports=S;var ke;S.ReadableState=No;var ap=require("events").EventEmitter,qo=function(e,r){return e.listeners(r).length},st=ln(),Gt=require("buffer").Buffer,xc=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function vc(t){return Gt.from(t)}function wc(t){return Gt.isBuffer(t)||t instanceof xc}var On=require("util"),E;On&&On.debuglog?E=On.debuglog("stream"):E=function(){};var Ec=ro(),Dn=cn(),Sc=dn(),Cc=Sc.getHighWaterMark,zt=ie().codes,Ac=zt.ERR_INVALID_ARG_TYPE,Oc=zt.ERR_STREAM_PUSH_AFTER_EOF,Rc=zt.ERR_METHOD_NOT_IMPLEMENTED,Fc=zt.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Me,Rn,Fn;me()(S,st);var it=Dn.errorOrDestroy,In=["error","close","destroy","pause","resume"];function Ic(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 No(t,e,r){ke=ke||_e(),t=t||{},typeof r!="boolean"&&(r=e instanceof ke),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Cc(this,t,"readableHighWaterMark",r),this.buffer=new Ec,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&&(Me||(Me=Cn().StringDecoder),this.decoder=new Me(t.encoding),this.encoding=t.encoding)}function S(t){if(ke=ke||_e(),!(this instanceof S))return new S(t);var e=this instanceof ke;this._readableState=new No(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),st.call(this)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});S.prototype.destroy=Dn.destroy;S.prototype._undestroy=Dn.undestroy;S.prototype._destroy=function(t,e){e(t)};S.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=Gt.from(t,e),e=""),n=!0),Bo(this,t,e,!1,n)};S.prototype.unshift=function(t){return Bo(this,t,null,!0,!1)};function Bo(t,e,r,n,i){E("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,Pc(t,s);else{var o;if(i||(o=Tc(s,e)),o)it(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Gt.prototype&&(e=vc(e)),n)s.endEmitted?it(t,new Fc):Tn(t,s,e,!0);else if(s.ended)it(t,new Oc);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?Tn(t,s,e,!1):Pn(t,s)):Tn(t,s,e,!1)}else n||(s.reading=!1,Pn(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Tn(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&&Yt(t)),Pn(t,e)}function Tc(t,e){var r;return!wc(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new Ac("chunk",["string","Buffer","Uint8Array"],e)),r}S.prototype.isPaused=function(){return this._readableState.flowing===!1};S.prototype.setEncoding=function(t){Me||(Me=Cn().StringDecoder);var e=new Me(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 Lc(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 Mo(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=Lc(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}S.prototype.read=function(t){E("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 E("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Ln(this):Yt(this),null;if(t=Mo(t,e),t===0&&e.ended)return e.length===0&&Ln(this),null;var n=e.needReadable;E("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,E("length less than watermark",n)),e.ended||e.reading?(n=!1,E("reading or ended",n)):n&&(E("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Mo(r,e)));var i;return t>0?i=Uo(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&&Ln(this)),i!==null&&this.emit("data",i),i};function Pc(t,e){if(E("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?Yt(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,jo(t)))}}function Yt(t){var e=t._readableState;E("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(E("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(jo,t))}function jo(t){var e=t._readableState;E("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 Pn(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(Dc,t,e))}function Dc(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(E("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}S.prototype._read=function(t){it(this,new Rc("_read()"))};S.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,E("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?a:d;n.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(m,x){E("onunpipe"),m===r&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,f())}function a(){E("onend"),t.end()}var l=kc(r);t.on("drain",l);var u=!1;function f(){E("cleanup"),t.removeListener("close",_),t.removeListener("finish",g),t.removeListener("drain",l),t.removeListener("error",p),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",d),r.removeListener("data",c),u=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",c);function c(m){E("ondata");var x=t.write(m);E("dest.write",x),x===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&Vo(n.pipes,t)!==-1)&&!u&&(E("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(m){E("onerror",m),d(),t.removeListener("error",p),qo(t,"error")===0&&it(t,m)}Ic(t,"error",p);function _(){t.removeListener("finish",g),d()}t.once("close",_);function g(){E("onfinish"),t.removeListener("close",_),d()}t.once("finish",g);function d(){E("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(E("pipe resume"),r.resume()),t};function kc(t){return function(){var r=t._readableState;E("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&qo(t,"data")&&(r.flowing=!0,kn(t))}}S.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 s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Vo(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};S.prototype.on=function(t,e){var r=st.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,E("on readable",n.length,n.reading),n.length?Yt(this):n.reading||process.nextTick(Mc,this)),r};S.prototype.addListener=S.prototype.on;S.prototype.removeListener=function(t,e){var r=st.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick($o,this),r};S.prototype.removeAllListeners=function(t){var e=st.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick($o,this),e};function $o(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 Mc(t){E("readable nexttick read 0"),t.read(0)}S.prototype.resume=function(){var t=this._readableState;return t.flowing||(E("resume"),t.flowing=!t.readableListening,qc(this,t)),t.paused=!1,this};function qc(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Nc,t,e))}function Nc(t,e){E("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),kn(t),e.flowing&&!e.reading&&t.read(0)}S.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function kn(t){var e=t._readableState;for(E("flow",e.flowing);e.flowing&&t.read()!==null;);}S.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(E("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(E("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);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 s=0;s<In.length;s++)t.on(In[s],this.emit.bind(this,In[s]));return this._read=function(o){E("wrapped _read",o),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(S.prototype[Symbol.asyncIterator]=function(){return Rn===void 0&&(Rn=Io()),Rn(this)});Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});S._fromList=Uo;Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Uo(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 Ln(t){var e=t._readableState;E("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Bc,e,t))}function Bc(t,e){if(E("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"&&(S.from=function(t,e){return Fn===void 0&&(Fn=Do()),Fn(S,t,e)});function Vo(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var Mn=h((up,Go)=>{"use strict";Go.exports=Q;var Kt=ie().codes,jc=Kt.ERR_METHOD_NOT_IMPLEMENTED,$c=Kt.ERR_MULTIPLE_CALLBACK,Uc=Kt.ERR_TRANSFORM_ALREADY_TRANSFORMING,Vc=Kt.ERR_TRANSFORM_WITH_LENGTH_0,Jt=_e();me()(Q,Jt);function Hc(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new $c);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 Q(t){if(!(this instanceof Q))return new Q(t);Jt.call(this,t),this._transformState={afterTransform:Hc.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",Wc)}function Wc(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Wo(t,e,r)}):Wo(this,null,null)}Q.prototype.push=function(t,e){return this._transformState.needTransform=!1,Jt.prototype.push.call(this,t,e)};Q.prototype._transform=function(t,e,r){r(new jc("_transform()"))};Q.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)}};Q.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};Q.prototype._destroy=function(t,e){Jt.prototype._destroy.call(this,t,function(r){e(r)})};function Wo(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Vc;if(t._transformState.transforming)throw new Uc;return t.push(null)}});var Ko=h((fp,Yo)=>{"use strict";Yo.exports=ot;var zo=Mn();me()(ot,zo);function ot(t){if(!(this instanceof ot))return new ot(t);zo.call(this,t)}ot.prototype._transform=function(t,e,r){r(null,t)}});var ea=h((cp,Qo)=>{"use strict";var qn;function Gc(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Zo=ie().codes,zc=Zo.ERR_MISSING_ARGS,Yc=Zo.ERR_STREAM_DESTROYED;function Jo(t){if(t)throw t}function Kc(t){return t.setHeader&&typeof t.abort=="function"}function Jc(t,e,r,n){n=Gc(n);var i=!1;t.on("close",function(){i=!0}),qn===void 0&&(qn=Vt()),qn(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,Kc(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(o||new Yc("pipe"))}}}function Xo(t){t()}function Xc(t,e){return t.pipe(e)}function Zc(t){return!t.length||typeof t[t.length-1]!="function"?Jo:t.pop()}function Qc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Zc(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new zc("streams");var i,s=e.map(function(o,a){var l=a<e.length-1,u=a>0;return Jc(o,l,u,function(f){i||(i=f),f&&s.forEach(Xo),!l&&(s.forEach(Xo),n(i))})});return e.reduce(Xc)}Qo.exports=Qc});var ta=h((U,lt)=>{var at=require("stream");process.env.READABLE_STREAM==="disable"&&at?(lt.exports=at.Readable,Object.assign(lt.exports,at),lt.exports.Stream=at):(U=lt.exports=vn(),U.Stream=at||U,U.Readable=U,U.Writable=yn(),U.Duplex=_e(),U.Transform=Mn(),U.PassThrough=Ko(),U.finished=Vt(),U.pipeline=ea())});var ia=h((dp,na)=>{"use strict";var{Buffer:H}=require("buffer"),ra=Symbol.for("BufferList");function O(t){if(!(this instanceof O))return new O(t);O._init.call(this,t)}O._init=function(e){Object.defineProperty(this,ra,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};O.prototype._new=function(e){return new O(e)};O.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}};O.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};O.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};O.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)};O.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||H.alloc(0);let s=!!e,o=this._offset(n),a=i-n,l=a,u=s&&r||0,f=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:H.concat(this._bufs,this.length);for(let c=0;c<this._bufs.length;c++)this._bufs[c].copy(e,u),u+=this._bufs[c].length;return e}if(l<=this._bufs[o[0]].length-f)return s?this._bufs[o[0]].copy(e,r,f,f+l):this._bufs[o[0]].slice(f,f+l);s||(e=H.allocUnsafe(a));for(let c=o[0];c<this._bufs.length;c++){let p=this._bufs[c].length-f;if(l>p)this._bufs[c].copy(e,u,f),u+=p;else{this._bufs[c].copy(e,u,f,f+l),u+=p;break}l-=p,f&&(f=0)}return e.length>u?e.slice(0,u):e};O.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),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};O.prototype.toString=function(e,r,n){return this.slice(r,n).toString(e)};O.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};O.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};O.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(H.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(H.from(e));return this};O.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};O.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=H.from([t]):typeof t=="string"?t=H.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=H.from(t.buffer,t.byteOffset,t.byteLength):H.isBuffer(t)||(t=H.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],s=n[1];for(;i<this._bufs.length;i++){let o=this._bufs[i];for(;s<o.length;)if(o.length-s>=t.length){let l=o.indexOf(t,s);if(l!==-1)return this._reverseOffset([i,l]);s=o.length-t.length+1}else{let l=this._reverseOffset([i,s]);if(this._match(l,t))return l;s++}s=0}return-1};O.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?O.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:O.prototype[r]=function(n=0){return this.slice(n,n+t[r])[r](0)}})(e)})();O.prototype._isBufferList=function(e){return e instanceof O||O.isBufferList(e)};O.isBufferList=function(e){return e!=null&&e[ra]};na.exports=O});var sa=h((hp,Xt)=>{"use strict";var Nn=ta().Duplex,ed=me(),ut=ia();function k(t){if(!(this instanceof k))return new k(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}ut._init.call(this,t),Nn.call(this)}ed(k,Nn);Object.assign(k.prototype,ut.prototype);k.prototype._new=function(e){return new k(e)};k.prototype._write=function(e,r,n){this._appendBuffer(e),typeof n=="function"&&n()};k.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)};k.prototype.end=function(e){Nn.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};k.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};k.prototype._isBufferList=function(e){return e instanceof k||e instanceof ut||k.isBufferList(e)};k.isBufferList=ut.isBufferList;Xt.exports=k;Xt.exports.BufferListStream=k;Xt.exports.BufferList=ut});var aa=h((pp,Un)=>{"use strict";var td=require("readline"),rd=Z(),oa=Os(),Zt=Ts(),Qt=Ds(),nd=Ns(),id=zs(),sd=Ks(),od=on(),{BufferListStream:ad}=sa(),Bn=Symbol("text"),jn=Symbol("prefixText"),ld=3,$n=class{constructor(){this.requests=0,this.mutedStream=new ad,this.mutedStream.pipe(process.stdout);let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(ld)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=td.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},er,tr=class{constructor(e){er||(er=new $n),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:sd({stream:this.stream}),this.isSilent=typeof this.options.isSilent=="boolean"?this.options.isSilent:!1,this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}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._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(!od())this._spinner=Zt.line;else if(e===void 0)this._spinner=Zt.dots;else if(e!=="default"&&Zt[e])this._spinner=Zt[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.`);this._updateInterval(this._spinner.interval)}get text(){return this[Bn]}set text(e){this[Bn]=e,this.updateLineCount()}get prefixText(){return this[jn]}set prefixText(e){this[jn]=e,this.updateLineCount()}get isSpinning(){return this.id!==void 0}getFullPrefixText(e=this[jn],r=" "){return typeof e=="string"?e+r:typeof e=="function"?e()+r:""}updateLineCount(){let e=this.stream.columns||80,r=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(let n of nd(r+"--"+this[Bn]).split(`
|
|
28
|
+
`))this.lineCount+=Math.max(1,Math.ceil(id(n)/e))}get isEnabled(){return this._isEnabled&&!this.isSilent}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this._isEnabled=e}get isSilent(){return this._isSilent}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this._isSilent=e}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=rd[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e<this.linesToClear;e++)e>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.isSilent?this:(this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this)}start(e){return e&&(this.text=e),this.isSilent?this:this.isEnabled?this.isSpinning?this:(this.hideCursor&&oa.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,er.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
|
29
|
+
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&oa.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(er.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Qt.success,text:e})}fail(e){return this.stopAndPersist({symbol:Qt.error,text:e})}warn(e){return this.stopAndPersist({symbol:Qt.warning,text:e})}info(e){return this.stopAndPersist({symbol:Qt.info,text:e})}stopAndPersist(e={}){if(this.isSilent)return this;let r=e.prefixText||this.prefixText,n=e.text||this.text,i=typeof n=="string"?" "+n:"";return this.stop(),this.stream.write(`${this.getFullPrefixText(r," ")}${e.symbol||" "}${i}
|
|
30
|
+
`),this}},ud=function(t){return new tr(t)};Un.exports=ud;Un.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new tr(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var Hn=h((gp,ua)=>{"use strict";var la=require("fs"),Vn;function fd(){try{return la.statSync("/.dockerenv"),!0}catch{return!1}}function cd(){try{return la.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}ua.exports=()=>(Vn===void 0&&(Vn=fd()||cd()),Vn)});var da=h((mp,Wn)=>{"use strict";var dd=require("os"),hd=require("fs"),fa=Hn(),ca=()=>{if(process.platform!=="linux")return!1;if(dd.release().toLowerCase().includes("microsoft"))return!fa();try{return hd.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!fa():!1}catch{return!1}};process.env.__IS_WSL_TEST__?Wn.exports=ca:Wn.exports=ca()});var pa=h((_p,ha)=>{"use strict";ha.exports=(t,e,r)=>{let n=i=>Object.defineProperty(t,e,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get(){let i=r();return n(i),i},set(i){n(i)}}),t}});var va=h((yp,xa)=>{var pd=require("path"),gd=require("child_process"),{promises:nr,constants:ba}=require("fs"),rr=da(),md=Hn(),zn=pa(),ga=pd.join(__dirname,"xdg-open"),{platform:qe,arch:ma}=process,_d=()=>{try{return nr.statSync("/run/.containerenv"),!0}catch{return!1}},Gn;function yd(){return Gn===void 0&&(Gn=_d()||md()),Gn}var bd=(()=>{let t="/mnt/",e;return async function(){if(e)return e;let r="/etc/wsl.conf",n=!1;try{await nr.access(r,ba.F_OK),n=!0}catch{}if(!n)return t;let i=await nr.readFile(r,{encoding:"utf8"}),s=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return s?(e=s.groups.mountPoint.trim(),e=e.endsWith("/")?e:`${e}/`,e):t}})(),_a=async(t,e)=>{let r;for(let n of t)try{return await e(n)}catch(i){r=i}throw r},ir=async t=>{if(t={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...t},Array.isArray(t.app))return _a(t.app,a=>ir({...t,app:a}));let{name:e,arguments:r=[]}=t.app||{};if(r=[...r],Array.isArray(e))return _a(e,a=>ir({...t,app:{name:a,arguments:r}}));let n,i=[],s={};if(qe==="darwin")n="open",t.wait&&i.push("--wait-apps"),t.background&&i.push("--background"),t.newInstance&&i.push("--new"),e&&i.push("-a",e);else if(qe==="win32"||rr&&!yd()&&!e){let a=await bd();n=rr?`${a}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),rr||(s.windowsVerbatimArguments=!0);let l=["Start"];t.wait&&l.push("-Wait"),e?(l.push(`"\`"${e}\`""`,"-ArgumentList"),t.target&&r.unshift(t.target)):t.target&&l.push(`"${t.target}"`),r.length>0&&(r=r.map(u=>`"\`"${u}\`""`),l.push(r.join(","))),t.target=Buffer.from(l.join(" "),"utf16le").toString("base64")}else{if(e)n=e;else{let a=!__dirname||__dirname==="/",l=!1;try{await nr.access(ga,ba.X_OK),l=!0}catch{}n=process.versions.electron||qe==="android"||a||!l?"xdg-open":ga}r.length>0&&i.push(...r),t.wait||(s.stdio="ignore",s.detached=!0)}t.target&&i.push(t.target),qe==="darwin"&&r.length>0&&i.push("--args",...r);let o=gd.spawn(n,i,s);return t.wait?new Promise((a,l)=>{o.once("error",l),o.once("close",u=>{if(!t.allowNonzeroExitCode&&u>0){l(new Error(`Exited with code ${u}`));return}a(o)})}):(o.unref(),o)},Yn=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `target`");return ir({...e,target:t})},xd=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `name`");let{arguments:r=[]}=e||{};if(r!=null&&!Array.isArray(r))throw new TypeError("Expected `appArguments` as Array type");return ir({...e,app:{name:t,arguments:r}})};function ya(t){if(typeof t=="string"||Array.isArray(t))return t;let{[ma]:e}=t;if(!e)throw new Error(`${ma} is not supported`);return e}function Kn({[qe]:t},{wsl:e}){if(e&&rr)return ya(e);if(!t)throw new Error(`${qe} is not supported`);return ya(t)}var sr={};zn(sr,"chrome",()=>Kn({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));zn(sr,"firefox",()=>Kn({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));zn(sr,"edge",()=>Kn({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));Yn.apps=sr;Yn.openApp=xd;xa.exports=Yn});var Jn=h((bp,Ca)=>{"use strict";var ft=require("fs"),Ea=require("path"),vd=require("crypto"),wd=require("os"),Ed=Ea.join(wd.homedir(),".xFramework","instances","default"),Ne=Ea.join(Ed,"license.key"),Sd=`-----BEGIN PUBLIC KEY-----
|
|
31
31
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA50dyGcO0PnH7gsE5U7jd
|
|
32
32
|
gfYyPF0iC1bPtQF4Kitagv0dWNrsD+APPBzCOCTE/2gZ3e3es7YthRt/rvd5/40R
|
|
33
33
|
I5l206XU8DlX3CKgKPEydNUhgPUWHZOVjl+BjYP0p77E/MRucTl3qHjyZd+1nlVj
|
|
@@ -35,13 +35,13 @@ BC8n5TsJENetqqmUORIWbyYkJ7wy0mtzXxe/yX3b9exUeZWt9PqrwIvax19WjyhR
|
|
|
35
35
|
Hw6HyxZRvQ4TFWGRaEHh/GuLDQ+yNVBhhsphIqJAoMPZ4bSewyxlzM6qULuG35NY
|
|
36
36
|
QKmi3vKOGAxG733mOS4aarZdL288bcOAV0QWjdQnRUxZNo7+t8+lS1Wo1LwZRsK2
|
|
37
37
|
vwIDAQAB
|
|
38
|
-
-----END PUBLIC KEY-----`;function
|
|
38
|
+
-----END PUBLIC KEY-----`;function wa(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r=e+"==".slice(0,(4-e.length%4)%4);return Buffer.from(r,"base64")}function Sa(t){let e=t.trim().split(".");if(e.length!==3)throw new Error("Invalid license key format");let[r,n,i]=e,s=`${r}.${n}`,o=wa(i),a=vd.createVerify("SHA256");if(a.update(s),!a.verify(Sd,o))throw new Error("License key signature is invalid");return JSON.parse(wa(n).toString("utf8"))}function Cd(){if(!ft.existsSync(Ne))return{valid:!0,type:"community",company:null,email:null,expiresAt:null,daysRemaining:null,features:[],isLicensed:!1};try{let t=ft.readFileSync(Ne,"utf8").trim(),e=Sa(t),r=Math.floor(Date.now()/1e3);if(e.exp&&e.exp<r)return{valid:!1,type:"expired",company:e.company||null,email:e.sub||null,expiresAt:new Date(e.exp*1e3),daysRemaining:0,features:[],isLicensed:!1};let n=e.exp?new Date(e.exp*1e3):null,i=n?Math.ceil((n-new Date)/(1e3*60*60*24)):null;return{valid:!0,type:e.type||"professional",company:e.company||null,email:e.sub||null,expiresAt:n,daysRemaining:i,features:e.features||["*"],isLicensed:!0}}catch(t){return{valid:!1,type:"invalid",company:null,email:null,expiresAt:null,daysRemaining:null,features:[],isLicensed:!1,error:t.message}}}function Ad(t){if(!t||typeof t!="string")throw new Error("No license key provided");let e=Sa(t.trim()),r=Math.floor(Date.now()/1e3);if(e.exp&&e.exp<r)throw new Error("This license key has already expired");return ft.writeFileSync(Ne,t.trim(),"utf8"),e}function Od(){return ft.existsSync(Ne)?(ft.unlinkSync(Ne),!0):!1}Ca.exports={readLicense:Cd,saveLicense:Ad,removeLicense:Od,LICENSE_FILE:Ne}});var Oa=h((xp,Aa)=>{var Be=1e3,je=Be*60,$e=je*60,we=$e*24,Rd=we*7,Fd=we*365.25;Aa.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Id(t);if(r==="number"&&isFinite(t))return e.long?Ld(t):Td(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Id(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Fd;case"weeks":case"week":case"w":return r*Rd;case"days":case"day":case"d":return r*we;case"hours":case"hour":case"hrs":case"hr":case"h":return r*$e;case"minutes":case"minute":case"mins":case"min":case"m":return r*je;case"seconds":case"second":case"secs":case"sec":case"s":return r*Be;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Td(t){var e=Math.abs(t);return e>=we?Math.round(t/we)+"d":e>=$e?Math.round(t/$e)+"h":e>=je?Math.round(t/je)+"m":e>=Be?Math.round(t/Be)+"s":t+"ms"}function Ld(t){var e=Math.abs(t);return e>=we?or(t,e,we,"day"):e>=$e?or(t,e,$e,"hour"):e>=je?or(t,e,je,"minute"):e>=Be?or(t,e,Be,"second"):t+" ms"}function or(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Xn=h((vp,Ra)=>{function Pd(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=i,r.enabled=a,r.humanize=Oa(),r.destroy=u,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let c=0;for(let p=0;p<f.length;p++)c=(c<<5)-c+f.charCodeAt(p),c|=0;return r.colors[Math.abs(c)%r.colors.length]}r.selectColor=e;function r(f){let c,p=null,_,g;function d(...m){if(!d.enabled)return;let x=d,A=Number(new Date),T=A-(c||A);x.diff=T,x.prev=c,x.curr=A,c=A,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let M=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(ze,he)=>{if(ze==="%%")return"%";M++;let Ye=r.formatters[he];if(typeof Ye=="function"){let Bl=m[M];ze=Ye.call(x,Bl),m.splice(M,1),M--}return ze}),r.formatArgs.call(x,m),(x.log||r.log).apply(x,m)}return d.namespace=f,d.useColors=r.useColors(),d.color=r.selectColor(f),d.extend=n,d.destroy=r.destroy,Object.defineProperty(d,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(_!==r.namespaces&&(_=r.namespaces,g=r.enabled(f)),g),set:m=>{p=m}}),typeof r.init=="function"&&r.init(d),d}function n(f,c){let p=r(this.namespace+(typeof c>"u"?":":c)+f);return p.log=this.log,p}function i(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let c=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let p of c)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}function s(f,c){let p=0,_=0,g=-1,d=0;for(;p<f.length;)if(_<c.length&&(c[_]===f[p]||c[_]==="*"))c[_]==="*"?(g=_,d=p,_++):(p++,_++);else if(g!==-1)_=g+1,d++,p=d;else return!1;for(;_<c.length&&c[_]==="*";)_++;return _===c.length}function o(){let f=[...r.names,...r.skips.map(c=>"-"+c)].join(",");return r.enable(""),f}function a(f){for(let c of r.skips)if(s(f,c))return!1;for(let c of r.names)if(s(f,c))return!0;return!1}function l(f){return f instanceof Error?f.stack||f.message:f}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Ra.exports=Pd});var Fa=h((q,ar)=>{q.formatArgs=kd;q.save=Md;q.load=qd;q.useColors=Dd;q.storage=Nd();q.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();q.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Dd(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function kd(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+ar.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}q.log=console.debug||console.log||(()=>{});function Md(t){try{t?q.storage.setItem("debug",t):q.storage.removeItem("debug")}catch{}}function qd(){let t;try{t=q.storage.getItem("debug")||q.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Nd(){try{return localStorage}catch{}}ar.exports=Xn()(q);var{formatters:Bd}=ar.exports;Bd.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Ta=h((D,ur)=>{var jd=require("tty"),lr=require("util");D.init=zd;D.log=Hd;D.formatArgs=Ud;D.save=Wd;D.load=Gd;D.useColors=$d;D.destroy=lr.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");D.colors=[6,2,3,4,5,1];try{let t=Jr();t&&(t.stderr||t).level>=2&&(D.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}D.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function $d(){return"colors"in D.inspectOpts?!!D.inspectOpts.colors:jd.isatty(process.stderr.fd)}function Ud(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
|
|
39
39
|
`).join(`
|
|
40
|
-
`+s),t.push(i+"m+"+ur.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=
|
|
41
|
-
`)}function
|
|
42
|
-
`).map(e=>e.trim()).join(" ")};Fa.O=function(t){return this.inspectOpts.colors=this.useColors,lr.inspect(t,this.inspectOpts)}});var Ta=h((gp,Zn)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Zn.exports=Ra():Zn.exports=Ia()});var Da=h((mp,Pa)=>{Pa.exports=La;function La(t,e){if(t&&e)return La(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var ei=h((_p,Qn)=>{var ka=Da();Qn.exports=ka(fr);Qn.exports.strict=ka(Ma);fr.proto=fr(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return fr(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Ma(this)},configurable:!0})});function fr(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function Ma(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var Ba=h((yp,Na)=>{var jd=ei(),$d=function(){},Ud=global.Bare?queueMicrotask:process.nextTick.bind(process),Vd=function(t){return t.setHeader&&typeof t.abort=="function"},Hd=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},qa=function(t,e,r){if(typeof e=="function")return qa(t,null,e);e||(e={}),r=jd(r||$d);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,a=!1,l=function(){t.writable||u()},u=function(){o=!1,s||r.call(t)},f=function(){s=!1,o||r.call(t)},c=function(m){r.call(t,m?new Error("exited with error code: "+m):null)},p=function(m){r.call(t,m)},_=function(){Ud(g)},g=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},d=function(){t.req.on("finish",u)};return Vd(t)?(t.on("complete",u),t.on("abort",_),t.req?d():t.on("request",d)):o&&!n&&(t.on("end",l),t.on("close",l)),Hd(t)&&t.on("exit",c),t.on("end",f),t.on("finish",u),e.error!==!1&&t.on("error",p),t.on("close",_),function(){a=!0,t.removeListener("complete",u),t.removeListener("abort",_),t.removeListener("request",d),t.req&&t.req.removeListener("finish",u),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",u),t.removeListener("exit",c),t.removeListener("end",f),t.removeListener("error",p),t.removeListener("close",_)}};Na.exports=qa});var Ua=h((bp,$a)=>{var Wd=ei(),Gd=Ba(),cr;try{cr=require("fs")}catch{}var ct=function(){},zd=typeof process>"u"?!1:/^v?\.0/.test(process.version),dr=function(t){return typeof t=="function"},Yd=function(t){return!zd||!cr?!1:(t instanceof(cr.ReadStream||ct)||t instanceof(cr.WriteStream||ct))&&dr(t.close)},Kd=function(t){return t.setHeader&&dr(t.abort)},Jd=function(t,e,r,n){n=Wd(n);var i=!1;t.on("close",function(){i=!0}),Gd(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,Yd(t))return t.close(ct);if(Kd(t))return t.abort();if(dr(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},ja=function(t){t()},Xd=function(t,e){return t.pipe(e)},Zd=function(){var t=Array.prototype.slice.call(arguments),e=dr(t[t.length-1]||ct)&&t.pop()||ct;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,a=s>0;return Jd(i,o,a,function(l){r||(r=l),l&&n.forEach(ja),!o&&(n.forEach(ja),e(r))})});return t.reduce(Xd)};$a.exports=Zd});var Ha=h((xp,Va)=>{"use strict";var{PassThrough:Qd}=require("stream");Va.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new Qd({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",l=>{a.push(l),i?o=a.length:o+=l.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var Wa=h((vp,Ue)=>{"use strict";var{constants:eh}=require("buffer"),th=Ua(),rh=Ha(),hr=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function pr(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=eh.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=th(t,rh(e),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new hr)})}),n.getBufferedValue()}Ue.exports=pr;Ue.exports.default=pr;Ue.exports.buffer=(t,e)=>pr(t,{...e,encoding:"buffer"});Ue.exports.array=(t,e)=>pr(t,{...e,array:!0});Ue.exports.MaxBufferError=hr});var Ka=h((wp,Ya)=>{Ya.exports=gr;function gr(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}gr.prototype.go=function(t){this.pending<this.max?za(this,t):this.waiting.push(t)};gr.prototype.wait=function(t){this.pending===0?t(this.error):this.listeners.push(t)};gr.prototype.hold=function(){return Ga(this)};function Ga(t){t.pending+=1;var e=!1;return r;function r(i){if(e)throw new Error("callback called twice");if(e=!0,t.error=t.error||i,t.pending-=1,t.waiting.length>0&&t.pending<t.max)za(t,t.waiting.shift());else if(t.pending===0){var s=t.listeners;t.listeners=[],s.forEach(n)}}function n(i){i(t.error)}}function za(t,e){e(Ga(t))}});var Xa=h(ht=>{var dt=require("fs"),mr=require("util"),ti=require("stream"),Ja=ti.Readable,ri=ti.Writable,nh=ti.PassThrough,ih=Ka(),_r=require("events").EventEmitter;ht.createFromBuffer=sh;ht.createFromFd=oh;ht.BufferSlicer=te;ht.FdSlicer=ee;mr.inherits(ee,_r);function ee(t,e){e=e||{},_r.call(this),this.fd=t,this.pend=new ih,this.pend.max=1,this.refCount=0,this.autoClose=!!e.autoClose}ee.prototype.read=function(t,e,r,n,i){var s=this;s.pend.go(function(o){dt.read(s.fd,t,e,r,n,function(a,l,u){o(),i(a,l,u)})})};ee.prototype.write=function(t,e,r,n,i){var s=this;s.pend.go(function(o){dt.write(s.fd,t,e,r,n,function(a,l,u){o(),i(a,l,u)})})};ee.prototype.createReadStream=function(t){return new yr(this,t)};ee.prototype.createWriteStream=function(t){return new br(this,t)};ee.prototype.ref=function(){this.refCount+=1};ee.prototype.unref=function(){var t=this;if(t.refCount-=1,t.refCount>0)return;if(t.refCount<0)throw new Error("invalid unref");t.autoClose&&dt.close(t.fd,e);function e(r){r?t.emit("error",r):t.emit("close")}};mr.inherits(yr,Ja);function yr(t,e){e=e||{},Ja.call(this,e),this.context=t,this.context.ref(),this.start=e.start||0,this.endOffset=e.end,this.pos=this.start,this.destroyed=!1}yr.prototype._read=function(t){var e=this;if(!e.destroyed){var r=Math.min(e._readableState.highWaterMark,t);if(e.endOffset!=null&&(r=Math.min(r,e.endOffset-e.pos)),r<=0){e.destroyed=!0,e.push(null),e.context.unref();return}e.context.pend.go(function(n){if(e.destroyed)return n();var i=new Buffer(r);dt.read(e.context.fd,i,0,r,e.pos,function(s,o){s?e.destroy(s):o===0?(e.destroyed=!0,e.push(null),e.context.unref()):(e.pos+=o,e.push(i.slice(0,o))),n()})})}};yr.prototype.destroy=function(t){this.destroyed||(t=t||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",t),this.context.unref())};mr.inherits(br,ri);function br(t,e){e=e||{},ri.call(this,e),this.context=t,this.context.ref(),this.start=e.start||0,this.endOffset=e.end==null?1/0:+e.end,this.bytesWritten=0,this.pos=this.start,this.destroyed=!1,this.on("finish",this.destroy.bind(this))}br.prototype._write=function(t,e,r){var n=this;if(!n.destroyed){if(n.pos+t.length>n.endOffset){var i=new Error("maximum file length exceeded");i.code="ETOOBIG",n.destroy(),r(i);return}n.context.pend.go(function(s){if(n.destroyed)return s();dt.write(n.context.fd,t,0,t.length,n.pos,function(o,a){o?(n.destroy(),s(),r(o)):(n.bytesWritten+=a,n.pos+=a,n.emit("progress"),s(),r())})})}};br.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())};mr.inherits(te,_r);function te(t,e){_r.call(this),e=e||{},this.refCount=0,this.buffer=t,this.maxChunkSize=e.maxChunkSize||Number.MAX_SAFE_INTEGER}te.prototype.read=function(t,e,r,n,i){var s=n+r,o=s-this.buffer.length,a=o>0?o:r;this.buffer.copy(t,e,n,s),setImmediate(function(){i(null,a)})};te.prototype.write=function(t,e,r,n,i){t.copy(this.buffer,n,e,e+r),setImmediate(function(){i(null,r,t)})};te.prototype.createReadStream=function(t){t=t||{};var e=new nh(t);e.destroyed=!1,e.start=t.start||0,e.endOffset=t.end,e.pos=e.endOffset||this.buffer.length;for(var r=this.buffer.slice(e.start,e.pos),n=0;;){var i=n+this.maxChunkSize;if(i>=r.length){n<r.length&&e.write(r.slice(n,r.length));break}e.write(r.slice(n,i)),n=i}return e.end(),e.destroy=function(){e.destroyed=!0},e};te.prototype.createWriteStream=function(t){var e=this;t=t||{};var r=new ri(t);return r.start=t.start||0,r.endOffset=t.end==null?this.buffer.length:+t.end,r.bytesWritten=0,r.pos=r.start,r.destroyed=!1,r._write=function(n,i,s){if(!r.destroyed){var o=r.pos+n.length;if(o>r.endOffset){var a=new Error("maximum file length exceeded");a.code="ETOOBIG",r.destroyed=!0,s(a);return}n.copy(e.buffer,r.pos,0,n.length),r.bytesWritten+=n.length,r.pos=o,r.emit("progress"),s()}},r.destroy=function(){r.destroyed=!0},r};te.prototype.ref=function(){this.refCount+=1};te.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")};function sh(t,e){return new te(t,e)}function oh(t,e){return new ee(t,e)}});var el=h((Sp,Qa)=>{var ue=require("buffer").Buffer,ni=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(ni=new Int32Array(ni));function Za(t){if(ue.isBuffer(t))return t;var e=typeof ue.alloc=="function"&&typeof ue.from=="function";if(typeof t=="number")return e?ue.alloc(t):new ue(t);if(typeof t=="string")return e?ue.from(t):new ue(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function ah(t){var e=Za(4);return e.writeInt32BE(t,0),e}function ii(t,e){t=Za(t),ue.isBuffer(e)&&(e=e.readUInt32BE(0));for(var r=~~e^-1,n=0;n<t.length;n++)r=ni[(r^t[n])&255]^r>>>8;return r^-1}function si(){return ah(ii.apply(null,arguments))}si.signed=function(){return ii.apply(null,arguments)};si.unsigned=function(){return ii.apply(null,arguments)>>>0};Qa.exports=si});var al=h(J=>{var oi=require("fs"),lh=require("zlib"),tl=Xa(),uh=el(),wr=require("util"),Er=require("events").EventEmitter,rl=require("stream").Transform,ai=require("stream").PassThrough,fh=require("stream").Writable;J.open=ch;J.fromFd=nl;J.fromBuffer=dh;J.fromRandomAccessReader=li;J.dosDateTimeToDate=sl;J.validateFileName=ol;J.ZipFile=fe;J.Entry=pt;J.RandomAccessReader=ce;function ch(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose==null&&(e.autoClose=!0),e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1),r==null&&(r=vr),oi.open(t,"r",function(n,i){if(n)return r(n);nl(i,e,function(s,o){s&&oi.close(i,vr),r(s,o)})})}function nl(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose==null&&(e.autoClose=!1),e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1),r==null&&(r=vr),oi.fstat(t,function(n,i){if(n)return r(n);var s=tl.createFromFd(t,{autoClose:!0});li(s,i.size,e,r)})}function dh(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose=!1,e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1);var n=tl.createFromBuffer(t,{maxChunkSize:65536});li(n,t.length,e,r)}function li(t,e,r,n){typeof r=="function"&&(n=r,r=null),r==null&&(r={}),r.autoClose==null&&(r.autoClose=!0),r.lazyEntries==null&&(r.lazyEntries=!1),r.decodeStrings==null&&(r.decodeStrings=!0);var i=!!r.decodeStrings;if(r.validateEntrySizes==null&&(r.validateEntrySizes=!0),r.strictFileNames==null&&(r.strictFileNames=!1),n==null&&(n=vr),typeof e!="number")throw new Error("expected totalSize parameter to be a number");if(e>Number.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");t.ref();var s=22,o=65535,a=Math.min(s+o,e),l=K(a),u=e-l.length;Ve(t,l,0,a,u,function(f){if(f)return n(f);for(var c=a-s;c>=0;c-=1)if(l.readUInt32LE(c)===101010256){var p=l.slice(c),_=p.readUInt16LE(4);if(_!==0)return n(new Error("multi-disk zip files are not supported: found disk number: "+_));var g=p.readUInt16LE(10),d=p.readUInt32LE(16),m=p.readUInt16LE(20),x=p.length-s;if(m!==x)return n(new Error("invalid comment length. expected: "+x+". found: "+m));var A=i?xr(p,22,p.length,!1):p.slice(22);if(!(g===65535||d===4294967295))return n(null,new fe(t,d,e,g,A,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames));var T=K(20),M=u+c-T.length;Ve(t,T,0,T.length,M,function(B){if(B)return n(B);if(T.readUInt32LE(0)!==117853008)return n(new Error("invalid zip64 end of central directory locator signature"));var ze=He(T,8),he=K(56);Ve(t,he,0,he.length,ze,function(Ye){return Ye?n(Ye):he.readUInt32LE(0)!==101075792?n(new Error("invalid zip64 end of central directory record signature")):(g=He(he,32),d=He(he,48),n(null,new fe(t,d,e,g,A,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames)))})});return}n(new Error("end of central directory record signature not found"))})}wr.inherits(fe,Er);function fe(t,e,r,n,i,s,o,a,l,u){var f=this;Er.call(f),f.reader=t,f.reader.on("error",function(c){il(f,c)}),f.reader.once("close",function(){f.emit("close")}),f.readEntryCursor=e,f.fileSize=r,f.entryCount=n,f.comment=i,f.entriesRead=0,f.autoClose=!!s,f.lazyEntries=!!o,f.decodeStrings=!!a,f.validateEntrySizes=!!l,f.strictFileNames=!!u,f.isOpen=!0,f.emittedError=!1,f.lazyEntries||f._readEntry()}fe.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.reader.unref())};function W(t,e){t.autoClose&&t.close(),il(t,e)}function il(t,e){t.emittedError||(t.emittedError=!0,t.emit("error",e))}fe.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()};fe.prototype._readEntry=function(){var t=this;if(t.entryCount===t.entriesRead){setImmediate(function(){t.autoClose&&t.close(),!t.emittedError&&t.emit("end")});return}if(!t.emittedError){var e=K(46);Ve(t.reader,e,0,e.length,t.readEntryCursor,function(r){if(r)return W(t,r);if(!t.emittedError){var n=new pt,i=e.readUInt32LE(0);if(i!==33639248)return W(t,new Error("invalid central directory file header signature: 0x"+i.toString(16)));if(n.versionMadeBy=e.readUInt16LE(4),n.versionNeededToExtract=e.readUInt16LE(6),n.generalPurposeBitFlag=e.readUInt16LE(8),n.compressionMethod=e.readUInt16LE(10),n.lastModFileTime=e.readUInt16LE(12),n.lastModFileDate=e.readUInt16LE(14),n.crc32=e.readUInt32LE(16),n.compressedSize=e.readUInt32LE(20),n.uncompressedSize=e.readUInt32LE(24),n.fileNameLength=e.readUInt16LE(28),n.extraFieldLength=e.readUInt16LE(30),n.fileCommentLength=e.readUInt16LE(32),n.internalFileAttributes=e.readUInt16LE(36),n.externalFileAttributes=e.readUInt32LE(38),n.relativeOffsetOfLocalHeader=e.readUInt32LE(42),n.generalPurposeBitFlag&64)return W(t,new Error("strong encryption is not supported"));t.readEntryCursor+=46,e=K(n.fileNameLength+n.extraFieldLength+n.fileCommentLength),Ve(t.reader,e,0,e.length,t.readEntryCursor,function(s){if(s)return W(t,s);if(!t.emittedError){var o=(n.generalPurposeBitFlag&2048)!==0;n.fileName=t.decodeStrings?xr(e,0,n.fileNameLength,o):e.slice(0,n.fileNameLength);var a=n.fileNameLength+n.extraFieldLength,l=e.slice(n.fileNameLength,a);n.extraFields=[];for(var u=0;u<l.length-3;){var f=l.readUInt16LE(u+0),c=l.readUInt16LE(u+2),p=u+4,_=p+c;if(_>l.length)return W(t,new Error("extra field length exceeds extra field buffer size"));var g=K(c);l.copy(g,0,p,_),n.extraFields.push({id:f,data:g}),u=_}if(n.fileComment=t.decodeStrings?xr(e,a,a+n.fileCommentLength,o):e.slice(a,a+n.fileCommentLength),n.comment=n.fileComment,t.readEntryCursor+=e.length,t.entriesRead+=1,n.uncompressedSize===4294967295||n.compressedSize===4294967295||n.relativeOffsetOfLocalHeader===4294967295){for(var d=null,u=0;u<n.extraFields.length;u++){var m=n.extraFields[u];if(m.id===1){d=m.data;break}}if(d==null)return W(t,new Error("expected zip64 extended information extra field"));var x=0;if(n.uncompressedSize===4294967295){if(x+8>d.length)return W(t,new Error("zip64 extended information extra field does not include uncompressed size"));n.uncompressedSize=He(d,x),x+=8}if(n.compressedSize===4294967295){if(x+8>d.length)return W(t,new Error("zip64 extended information extra field does not include compressed size"));n.compressedSize=He(d,x),x+=8}if(n.relativeOffsetOfLocalHeader===4294967295){if(x+8>d.length)return W(t,new Error("zip64 extended information extra field does not include relative header offset"));n.relativeOffsetOfLocalHeader=He(d,x),x+=8}}if(t.decodeStrings)for(var u=0;u<n.extraFields.length;u++){var m=n.extraFields[u];if(m.id===28789){if(m.data.length<6||m.data.readUInt8(0)!==1)continue;var A=m.data.readUInt32LE(1);if(uh.unsigned(e.slice(0,n.fileNameLength))!==A)continue;n.fileName=xr(m.data,5,m.data.length,!0);break}}if(t.validateEntrySizes&&n.compressionMethod===0){var T=n.uncompressedSize;if(n.isEncrypted()&&(T+=12),n.compressedSize!==T){var M="compressed/uncompressed size mismatch for stored file: "+n.compressedSize+" != "+n.uncompressedSize;return W(t,new Error(M))}}if(t.decodeStrings){t.strictFileNames||(n.fileName=n.fileName.replace(/\\/g,"/"));var B=ol(n.fileName,t.validateFileNameOptions);if(B!=null)return W(t,new Error(B))}t.emit("entry",n),t.lazyEntries||t._readEntry()}})}})}};fe.prototype.openReadStream=function(t,e,r){var n=this,i=0,s=t.compressedSize;if(r==null)r=e,e={};else{if(e.decrypt!=null){if(!t.isEncrypted())throw new Error("options.decrypt can only be specified for encrypted entries");if(e.decrypt!==!1)throw new Error("invalid options.decrypt value: "+e.decrypt);if(t.isCompressed()&&e.decompress!==!1)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}if(e.decompress!=null){if(!t.isCompressed())throw new Error("options.decompress can only be specified for compressed entries");if(!(e.decompress===!1||e.decompress===!0))throw new Error("invalid options.decompress value: "+e.decompress)}if(e.start!=null||e.end!=null){if(t.isCompressed()&&e.decompress!==!1)throw new Error("start/end range not allowed for compressed entry without options.decompress === false");if(t.isEncrypted()&&e.decrypt!==!1)throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}if(e.start!=null){if(i=e.start,i<0)throw new Error("options.start < 0");if(i>t.compressedSize)throw new Error("options.start > entry.compressedSize")}if(e.end!=null){if(s=e.end,s<0)throw new Error("options.end < 0");if(s>t.compressedSize)throw new Error("options.end > entry.compressedSize");if(s<i)throw new Error("options.end < options.start")}}if(!n.isOpen)return r(new Error("closed"));if(t.isEncrypted()&&e.decrypt!==!1)return r(new Error("entry is encrypted, and options.decrypt !== false"));n.reader.ref();var o=K(30);Ve(n.reader,o,0,o.length,t.relativeOffsetOfLocalHeader,function(a){try{if(a)return r(a);var l=o.readUInt32LE(0);if(l!==67324752)return r(new Error("invalid local file header signature: 0x"+l.toString(16)));var u=o.readUInt16LE(26),f=o.readUInt16LE(28),c=t.relativeOffsetOfLocalHeader+o.length+u+f,p;if(t.compressionMethod===0)p=!1;else if(t.compressionMethod===8)p=e.decompress!=null?e.decompress:!0;else return r(new Error("unsupported compression method: "+t.compressionMethod));var _=c,g=_+t.compressedSize;if(t.compressedSize!==0&&g>n.fileSize)return r(new Error("file data overflows file bounds: "+_+" + "+t.compressedSize+" > "+n.fileSize));var d=n.reader.createReadStream({start:_+i,end:_+s}),m=d;if(p){var x=!1,A=lh.createInflateRaw();d.on("error",function(T){setImmediate(function(){x||A.emit("error",T)})}),d.pipe(A),n.validateEntrySizes?(m=new gt(t.uncompressedSize),A.on("error",function(T){setImmediate(function(){x||m.emit("error",T)})}),A.pipe(m)):m=A,m.destroy=function(){x=!0,A!==m&&A.unpipe(m),d.unpipe(A),d.destroy()}}r(null,m)}finally{n.reader.unref()}})};function pt(){}pt.prototype.getLastModDate=function(){return sl(this.lastModFileDate,this.lastModFileTime)};pt.prototype.isEncrypted=function(){return(this.generalPurposeBitFlag&1)!==0};pt.prototype.isCompressed=function(){return this.compressionMethod===8};function sl(t,e){var r=t&31,n=(t>>5&15)-1,i=(t>>9&127)+1980,s=0,o=(e&31)*2,a=e>>5&63,l=e>>11&31;return new Date(i,n,r,l,a,o,s)}function ol(t){return t.indexOf("\\")!==-1?"invalid characters in fileName: "+t:/^[a-zA-Z]:/.test(t)||/^\//.test(t)?"absolute path: "+t:t.split("/").indexOf("..")!==-1?"invalid relative path: "+t:null}function Ve(t,e,r,n,i,s){if(n===0)return setImmediate(function(){s(null,K(0))});t.read(e,r,n,i,function(o,a){if(o)return s(o);if(a<n)return s(new Error("unexpected EOF"));s()})}wr.inherits(gt,rl);function gt(t){rl.call(this),this.actualByteCount=0,this.expectedByteCount=t}gt.prototype._transform=function(t,e,r){if(this.actualByteCount+=t.length,this.actualByteCount>this.expectedByteCount){var n="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return r(new Error(n))}r(null,t)};gt.prototype._flush=function(t){if(this.actualByteCount<this.expectedByteCount){var e="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return t(new Error(e))}t()};wr.inherits(ce,Er);function ce(){Er.call(this),this.refCount=0}ce.prototype.ref=function(){this.refCount+=1};ce.prototype.unref=function(){var t=this;if(t.refCount-=1,t.refCount>0)return;if(t.refCount<0)throw new Error("invalid unref");t.close(e);function e(r){if(r)return t.emit("error",r);t.emit("close")}};ce.prototype.createReadStream=function(t){var e=t.start,r=t.end;if(e===r){var n=new ai;return setImmediate(function(){n.end()}),n}var i=this._readStreamForRange(e,r),s=!1,o=new Sr(this);i.on("error",function(l){setImmediate(function(){s||o.emit("error",l)})}),o.destroy=function(){i.unpipe(o),o.unref(),i.destroy()};var a=new gt(r-e);return o.on("error",function(l){setImmediate(function(){s||a.emit("error",l)})}),a.destroy=function(){s=!0,o.unpipe(a),o.destroy()},i.pipe(o).pipe(a)};ce.prototype._readStreamForRange=function(t,e){throw new Error("not implemented")};ce.prototype.read=function(t,e,r,n,i){var s=this.createReadStream({start:n,end:n+r}),o=new fh,a=0;o._write=function(l,u,f){l.copy(t,e+a,0,l.length),a+=l.length,f()},o.on("finish",i),s.on("error",function(l){i(l)}),s.pipe(o)};ce.prototype.close=function(t){setImmediate(t)};wr.inherits(Sr,ai);function Sr(t){ai.call(this),this.context=t,this.context.ref(),this.unreffedYet=!1}Sr.prototype._flush=function(t){this.unref(),t()};Sr.prototype.unref=function(t){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var hh="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0";function xr(t,e,r,n){if(n)return t.toString("utf8",e,r);for(var i="",s=e;s<r;s++)i+=hh[t[s]];return i}function He(t,e){var r=t.readUInt32LE(e),n=t.readUInt32LE(e+4);return n*4294967296+r}var K;typeof Buffer.allocUnsafe=="function"?K=function(t){return Buffer.allocUnsafe(t)}:K=function(t){return new Buffer(t)};function vr(t){if(t)throw t}});var ul=h((Ap,ll)=>{var G=Ta()("extract-zip"),{createWriteStream:ph,promises:We}=require("fs"),gh=Wa(),Ee=require("path"),{promisify:fi}=require("util"),mh=require("stream"),_h=al(),yh=fi(_h.open),bh=fi(mh.pipeline),ui=class{constructor(e,r){this.zipPath=e,this.opts=r}async extract(){return G("opening",this.zipPath,"with opts",this.opts),this.zipfile=await yh(this.zipPath,{lazyEntries:!0}),this.canceled=!1,new Promise((e,r)=>{this.zipfile.on("error",n=>{this.canceled=!0,r(n)}),this.zipfile.readEntry(),this.zipfile.on("close",()=>{this.canceled||(G("zip extraction complete"),e())}),this.zipfile.on("entry",async n=>{if(this.canceled){G("skipping entry",n.fileName,{cancelled:this.canceled});return}if(G("zipfile entry",n.fileName),n.fileName.startsWith("__MACOSX/")){this.zipfile.readEntry();return}let i=Ee.dirname(Ee.join(this.opts.dir,n.fileName));try{await We.mkdir(i,{recursive:!0});let s=await We.realpath(i);if(Ee.relative(this.opts.dir,s).split(Ee.sep).includes(".."))throw new Error(`Out of bound path "${s}" found while processing file ${n.fileName}`);await this.extractEntry(n),G("finished processing",n.fileName),this.zipfile.readEntry()}catch(s){this.canceled=!0,this.zipfile.close(),r(s)}})})}async extractEntry(e){if(this.canceled){G("skipping entry extraction",e.fileName,{cancelled:this.canceled});return}this.opts.onEntry&&this.opts.onEntry(e,this.zipfile);let r=Ee.join(this.opts.dir,e.fileName),n=e.externalFileAttributes>>16&65535,i=61440,s=16384,a=(n&i)===40960,l=(n&i)===s;!l&&e.fileName.endsWith("/")&&(l=!0);let u=e.versionMadeBy>>8;l||(l=u===0&&e.externalFileAttributes===16),G("extracting entry",{filename:e.fileName,isDir:l,isSymlink:a});let f=this.getExtractedMode(n,l)&511,c=l?r:Ee.dirname(r),p={recursive:!0};if(l&&(p.mode=f),G("mkdir",{dir:c,...p}),await We.mkdir(c,p),l)return;G("opening read stream",r);let _=await fi(this.zipfile.openReadStream.bind(this.zipfile))(e);if(a){let g=await gh(_);G("creating symlink",g,r),await We.symlink(g,r)}else await bh(_,ph(r,{mode:f}))}getExtractedMode(e,r){let n=e;return n===0&&(r?(this.opts.defaultDirMode&&(n=parseInt(this.opts.defaultDirMode,10)),n||(n=493)):(this.opts.defaultFileMode&&(n=parseInt(this.opts.defaultFileMode,10)),n||(n=420))),n}};ll.exports=async function(t,e){if(G("creating target directory",e.dir),!Ee.isAbsolute(e.dir))throw new Error("Target directory is expected to be absolute");return await We.mkdir(e.dir,{recursive:!0}),e.dir=await We.realpath(e.dir),new ui(t,e).extract()}});var gi=h((Rp,bl)=>{"use strict";var C=require("path"),w=require("fs"),ci=require("os"),{spawn:xh}=require("child_process"),{default:vh}=require("embedded-postgres"),v=Z(),wh=oa(),Eh=xa(),di=require("crypto"),hl=require("http"),hi=require("https"),{readLicense:Sh}=Jn(),Ch="http://localhost:5271";function pl(t){try{let e=JSON.parse(Buffer.from(t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),"base64").toString("utf8"));return Array.isArray(e.domains)&&e.domains.length>0?e.domains.filter(Boolean):e.domain?[e.domain]:[]}catch{return[]}}function fl(t){let r=pl(t)[0]||null;return new Promise(n=>{try{let i=new URL("/api/licenses/verify",Ch),s=JSON.stringify({token:t,domain:r}),a=(i.protocol==="https:"?hi:hl).request({hostname:i.hostname,port:i.port||(i.protocol==="https:"?443:80),path:i.pathname,method:"POST",headers:{"Content-Type":"application/json","Content-Length":Buffer.byteLength(s)}},l=>{let u="";l.on("data",f=>{u+=f}),l.on("end",()=>{try{n(JSON.parse(u))}catch{n(null)}})});a.setTimeout(5e3,()=>{a.destroy(),n(null)}),a.on("error",()=>n(null)),a.write(s),a.end()}catch{n(null)}})}function Ah(t){return new Promise(e=>{hl.get(`http://127.0.0.1:${t}/api/v1.0/setup/status`,r=>{let n="";r.on("data",i=>{n+=i}),r.on("end",()=>{try{e(JSON.parse(n))}catch{e({isInstalled:!0})}})}).on("error",()=>e({isInstalled:!0}))})}function Oh(t,e){let r=t.database||{};return r.provider==="sqlserver"?`Server=${r.host},${r.port||1433};Database=${r.database};User Id=${r.username};Password=${r.password};TrustServerCertificate=True;MultipleActiveResultSets=True;`:r.provider==="postgresql"&&!r.embedded?`Host=${r.host};Port=${r.port||5432};Database=${r.database};Username=${r.username};Password=${r.password};SSL Mode=Prefer;`:`Host=127.0.0.1;Port=${Or};Database=${ml};Username=${gl};Password=${e.pgPassword};SSL Mode=Disable;Persist Security Info=true;`}var N=C.join(ci.homedir(),".xFramework","instances","default"),Se=C.join(N,"db"),Cr=C.join(N,"logs"),cl=C.join(N,"data"),Ar=C.join(N,"secrets"),pi=C.join(N,".env"),mt=C.join(N,"config.json"),Rh=C.join(N,".pid"),Or=54329,gl="contentactive",ml="contentactive",_l=C.resolve(__dirname,w.existsSync(C.join(__dirname,"dist"))?".":".."),Op=C.join(_l,"dist","api"),yl=C.join(_l,"dist","ui");function Fh(){[N,Se,Cr,cl,C.join(cl,"backups"),Ar].forEach(t=>{w.existsSync(t)||w.mkdirSync(t,{recursive:!0})})}function Ih(){if(w.existsSync(C.join(Ar,"master.key"))||w.writeFileSync(C.join(Ar,"master.key"),di.randomBytes(32).toString("hex"),"utf8"),!w.existsSync(pi)){let t=di.randomBytes(32).toString("hex");w.writeFileSync(pi,`# xFramework environment
|
|
40
|
+
`+s),t.push(i+"m+"+ur.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Vd()+e+" "+t[0]}function Vd(){return D.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Hd(...t){return process.stderr.write(lr.formatWithOptions(D.inspectOpts,...t)+`
|
|
41
|
+
`)}function Wd(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Gd(){return process.env.DEBUG}function zd(t){t.inspectOpts={};let e=Object.keys(D.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=D.inspectOpts[e[r]]}ur.exports=Xn()(D);var{formatters:Ia}=ur.exports;Ia.o=function(t){return this.inspectOpts.colors=this.useColors,lr.inspect(t,this.inspectOpts).split(`
|
|
42
|
+
`).map(e=>e.trim()).join(" ")};Ia.O=function(t){return this.inspectOpts.colors=this.useColors,lr.inspect(t,this.inspectOpts)}});var La=h((wp,Zn)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Zn.exports=Fa():Zn.exports=Ta()});var ka=h((Ep,Da)=>{Da.exports=Pa;function Pa(t,e){if(t&&e)return Pa(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var ei=h((Sp,Qn)=>{var Ma=ka();Qn.exports=Ma(fr);Qn.exports.strict=Ma(qa);fr.proto=fr(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return fr(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return qa(this)},configurable:!0})});function fr(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function qa(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var ja=h((Cp,Ba)=>{var Yd=ei(),Kd=function(){},Jd=global.Bare?queueMicrotask:process.nextTick.bind(process),Xd=function(t){return t.setHeader&&typeof t.abort=="function"},Zd=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},Na=function(t,e,r){if(typeof e=="function")return Na(t,null,e);e||(e={}),r=Yd(r||Kd);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,a=!1,l=function(){t.writable||u()},u=function(){o=!1,s||r.call(t)},f=function(){s=!1,o||r.call(t)},c=function(m){r.call(t,m?new Error("exited with error code: "+m):null)},p=function(m){r.call(t,m)},_=function(){Jd(g)},g=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},d=function(){t.req.on("finish",u)};return Xd(t)?(t.on("complete",u),t.on("abort",_),t.req?d():t.on("request",d)):o&&!n&&(t.on("end",l),t.on("close",l)),Zd(t)&&t.on("exit",c),t.on("end",f),t.on("finish",u),e.error!==!1&&t.on("error",p),t.on("close",_),function(){a=!0,t.removeListener("complete",u),t.removeListener("abort",_),t.removeListener("request",d),t.req&&t.req.removeListener("finish",u),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",u),t.removeListener("exit",c),t.removeListener("end",f),t.removeListener("error",p),t.removeListener("close",_)}};Ba.exports=Na});var Va=h((Ap,Ua)=>{var Qd=ei(),eh=ja(),cr;try{cr=require("fs")}catch{}var ct=function(){},th=typeof process>"u"?!1:/^v?\.0/.test(process.version),dr=function(t){return typeof t=="function"},rh=function(t){return!th||!cr?!1:(t instanceof(cr.ReadStream||ct)||t instanceof(cr.WriteStream||ct))&&dr(t.close)},nh=function(t){return t.setHeader&&dr(t.abort)},ih=function(t,e,r,n){n=Qd(n);var i=!1;t.on("close",function(){i=!0}),eh(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,rh(t))return t.close(ct);if(nh(t))return t.abort();if(dr(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},$a=function(t){t()},sh=function(t,e){return t.pipe(e)},oh=function(){var t=Array.prototype.slice.call(arguments),e=dr(t[t.length-1]||ct)&&t.pop()||ct;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,a=s>0;return ih(i,o,a,function(l){r||(r=l),l&&n.forEach($a),!o&&(n.forEach($a),e(r))})});return t.reduce(sh)};Ua.exports=oh});var Wa=h((Op,Ha)=>{"use strict";var{PassThrough:ah}=require("stream");Ha.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new ah({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",l=>{a.push(l),i?o=a.length:o+=l.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var Ga=h((Rp,Ue)=>{"use strict";var{constants:lh}=require("buffer"),uh=Va(),fh=Wa(),hr=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function pr(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=lh.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=uh(t,fh(e),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new hr)})}),n.getBufferedValue()}Ue.exports=pr;Ue.exports.default=pr;Ue.exports.buffer=(t,e)=>pr(t,{...e,encoding:"buffer"});Ue.exports.array=(t,e)=>pr(t,{...e,array:!0});Ue.exports.MaxBufferError=hr});var Ja=h((Fp,Ka)=>{Ka.exports=gr;function gr(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}gr.prototype.go=function(t){this.pending<this.max?Ya(this,t):this.waiting.push(t)};gr.prototype.wait=function(t){this.pending===0?t(this.error):this.listeners.push(t)};gr.prototype.hold=function(){return za(this)};function za(t){t.pending+=1;var e=!1;return r;function r(i){if(e)throw new Error("callback called twice");if(e=!0,t.error=t.error||i,t.pending-=1,t.waiting.length>0&&t.pending<t.max)Ya(t,t.waiting.shift());else if(t.pending===0){var s=t.listeners;t.listeners=[],s.forEach(n)}}function n(i){i(t.error)}}function Ya(t,e){e(za(t))}});var Za=h(ht=>{var dt=require("fs"),mr=require("util"),ti=require("stream"),Xa=ti.Readable,ri=ti.Writable,ch=ti.PassThrough,dh=Ja(),_r=require("events").EventEmitter;ht.createFromBuffer=hh;ht.createFromFd=ph;ht.BufferSlicer=te;ht.FdSlicer=ee;mr.inherits(ee,_r);function ee(t,e){e=e||{},_r.call(this),this.fd=t,this.pend=new dh,this.pend.max=1,this.refCount=0,this.autoClose=!!e.autoClose}ee.prototype.read=function(t,e,r,n,i){var s=this;s.pend.go(function(o){dt.read(s.fd,t,e,r,n,function(a,l,u){o(),i(a,l,u)})})};ee.prototype.write=function(t,e,r,n,i){var s=this;s.pend.go(function(o){dt.write(s.fd,t,e,r,n,function(a,l,u){o(),i(a,l,u)})})};ee.prototype.createReadStream=function(t){return new yr(this,t)};ee.prototype.createWriteStream=function(t){return new br(this,t)};ee.prototype.ref=function(){this.refCount+=1};ee.prototype.unref=function(){var t=this;if(t.refCount-=1,t.refCount>0)return;if(t.refCount<0)throw new Error("invalid unref");t.autoClose&&dt.close(t.fd,e);function e(r){r?t.emit("error",r):t.emit("close")}};mr.inherits(yr,Xa);function yr(t,e){e=e||{},Xa.call(this,e),this.context=t,this.context.ref(),this.start=e.start||0,this.endOffset=e.end,this.pos=this.start,this.destroyed=!1}yr.prototype._read=function(t){var e=this;if(!e.destroyed){var r=Math.min(e._readableState.highWaterMark,t);if(e.endOffset!=null&&(r=Math.min(r,e.endOffset-e.pos)),r<=0){e.destroyed=!0,e.push(null),e.context.unref();return}e.context.pend.go(function(n){if(e.destroyed)return n();var i=new Buffer(r);dt.read(e.context.fd,i,0,r,e.pos,function(s,o){s?e.destroy(s):o===0?(e.destroyed=!0,e.push(null),e.context.unref()):(e.pos+=o,e.push(i.slice(0,o))),n()})})}};yr.prototype.destroy=function(t){this.destroyed||(t=t||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",t),this.context.unref())};mr.inherits(br,ri);function br(t,e){e=e||{},ri.call(this,e),this.context=t,this.context.ref(),this.start=e.start||0,this.endOffset=e.end==null?1/0:+e.end,this.bytesWritten=0,this.pos=this.start,this.destroyed=!1,this.on("finish",this.destroy.bind(this))}br.prototype._write=function(t,e,r){var n=this;if(!n.destroyed){if(n.pos+t.length>n.endOffset){var i=new Error("maximum file length exceeded");i.code="ETOOBIG",n.destroy(),r(i);return}n.context.pend.go(function(s){if(n.destroyed)return s();dt.write(n.context.fd,t,0,t.length,n.pos,function(o,a){o?(n.destroy(),s(),r(o)):(n.bytesWritten+=a,n.pos+=a,n.emit("progress"),s(),r())})})}};br.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())};mr.inherits(te,_r);function te(t,e){_r.call(this),e=e||{},this.refCount=0,this.buffer=t,this.maxChunkSize=e.maxChunkSize||Number.MAX_SAFE_INTEGER}te.prototype.read=function(t,e,r,n,i){var s=n+r,o=s-this.buffer.length,a=o>0?o:r;this.buffer.copy(t,e,n,s),setImmediate(function(){i(null,a)})};te.prototype.write=function(t,e,r,n,i){t.copy(this.buffer,n,e,e+r),setImmediate(function(){i(null,r,t)})};te.prototype.createReadStream=function(t){t=t||{};var e=new ch(t);e.destroyed=!1,e.start=t.start||0,e.endOffset=t.end,e.pos=e.endOffset||this.buffer.length;for(var r=this.buffer.slice(e.start,e.pos),n=0;;){var i=n+this.maxChunkSize;if(i>=r.length){n<r.length&&e.write(r.slice(n,r.length));break}e.write(r.slice(n,i)),n=i}return e.end(),e.destroy=function(){e.destroyed=!0},e};te.prototype.createWriteStream=function(t){var e=this;t=t||{};var r=new ri(t);return r.start=t.start||0,r.endOffset=t.end==null?this.buffer.length:+t.end,r.bytesWritten=0,r.pos=r.start,r.destroyed=!1,r._write=function(n,i,s){if(!r.destroyed){var o=r.pos+n.length;if(o>r.endOffset){var a=new Error("maximum file length exceeded");a.code="ETOOBIG",r.destroyed=!0,s(a);return}n.copy(e.buffer,r.pos,0,n.length),r.bytesWritten+=n.length,r.pos=o,r.emit("progress"),s()}},r.destroy=function(){r.destroyed=!0},r};te.prototype.ref=function(){this.refCount+=1};te.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")};function hh(t,e){return new te(t,e)}function ph(t,e){return new ee(t,e)}});var tl=h((Tp,el)=>{var ue=require("buffer").Buffer,ni=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(ni=new Int32Array(ni));function Qa(t){if(ue.isBuffer(t))return t;var e=typeof ue.alloc=="function"&&typeof ue.from=="function";if(typeof t=="number")return e?ue.alloc(t):new ue(t);if(typeof t=="string")return e?ue.from(t):new ue(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function gh(t){var e=Qa(4);return e.writeInt32BE(t,0),e}function ii(t,e){t=Qa(t),ue.isBuffer(e)&&(e=e.readUInt32BE(0));for(var r=~~e^-1,n=0;n<t.length;n++)r=ni[(r^t[n])&255]^r>>>8;return r^-1}function si(){return gh(ii.apply(null,arguments))}si.signed=function(){return ii.apply(null,arguments)};si.unsigned=function(){return ii.apply(null,arguments)>>>0};el.exports=si});var ll=h(J=>{var oi=require("fs"),mh=require("zlib"),rl=Za(),_h=tl(),wr=require("util"),Er=require("events").EventEmitter,nl=require("stream").Transform,ai=require("stream").PassThrough,yh=require("stream").Writable;J.open=bh;J.fromFd=il;J.fromBuffer=xh;J.fromRandomAccessReader=li;J.dosDateTimeToDate=ol;J.validateFileName=al;J.ZipFile=fe;J.Entry=pt;J.RandomAccessReader=ce;function bh(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose==null&&(e.autoClose=!0),e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1),r==null&&(r=vr),oi.open(t,"r",function(n,i){if(n)return r(n);il(i,e,function(s,o){s&&oi.close(i,vr),r(s,o)})})}function il(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose==null&&(e.autoClose=!1),e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1),r==null&&(r=vr),oi.fstat(t,function(n,i){if(n)return r(n);var s=rl.createFromFd(t,{autoClose:!0});li(s,i.size,e,r)})}function xh(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose=!1,e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1);var n=rl.createFromBuffer(t,{maxChunkSize:65536});li(n,t.length,e,r)}function li(t,e,r,n){typeof r=="function"&&(n=r,r=null),r==null&&(r={}),r.autoClose==null&&(r.autoClose=!0),r.lazyEntries==null&&(r.lazyEntries=!1),r.decodeStrings==null&&(r.decodeStrings=!0);var i=!!r.decodeStrings;if(r.validateEntrySizes==null&&(r.validateEntrySizes=!0),r.strictFileNames==null&&(r.strictFileNames=!1),n==null&&(n=vr),typeof e!="number")throw new Error("expected totalSize parameter to be a number");if(e>Number.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");t.ref();var s=22,o=65535,a=Math.min(s+o,e),l=K(a),u=e-l.length;Ve(t,l,0,a,u,function(f){if(f)return n(f);for(var c=a-s;c>=0;c-=1)if(l.readUInt32LE(c)===101010256){var p=l.slice(c),_=p.readUInt16LE(4);if(_!==0)return n(new Error("multi-disk zip files are not supported: found disk number: "+_));var g=p.readUInt16LE(10),d=p.readUInt32LE(16),m=p.readUInt16LE(20),x=p.length-s;if(m!==x)return n(new Error("invalid comment length. expected: "+x+". found: "+m));var A=i?xr(p,22,p.length,!1):p.slice(22);if(!(g===65535||d===4294967295))return n(null,new fe(t,d,e,g,A,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames));var T=K(20),M=u+c-T.length;Ve(t,T,0,T.length,M,function(B){if(B)return n(B);if(T.readUInt32LE(0)!==117853008)return n(new Error("invalid zip64 end of central directory locator signature"));var ze=He(T,8),he=K(56);Ve(t,he,0,he.length,ze,function(Ye){return Ye?n(Ye):he.readUInt32LE(0)!==101075792?n(new Error("invalid zip64 end of central directory record signature")):(g=He(he,32),d=He(he,48),n(null,new fe(t,d,e,g,A,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames)))})});return}n(new Error("end of central directory record signature not found"))})}wr.inherits(fe,Er);function fe(t,e,r,n,i,s,o,a,l,u){var f=this;Er.call(f),f.reader=t,f.reader.on("error",function(c){sl(f,c)}),f.reader.once("close",function(){f.emit("close")}),f.readEntryCursor=e,f.fileSize=r,f.entryCount=n,f.comment=i,f.entriesRead=0,f.autoClose=!!s,f.lazyEntries=!!o,f.decodeStrings=!!a,f.validateEntrySizes=!!l,f.strictFileNames=!!u,f.isOpen=!0,f.emittedError=!1,f.lazyEntries||f._readEntry()}fe.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.reader.unref())};function W(t,e){t.autoClose&&t.close(),sl(t,e)}function sl(t,e){t.emittedError||(t.emittedError=!0,t.emit("error",e))}fe.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()};fe.prototype._readEntry=function(){var t=this;if(t.entryCount===t.entriesRead){setImmediate(function(){t.autoClose&&t.close(),!t.emittedError&&t.emit("end")});return}if(!t.emittedError){var e=K(46);Ve(t.reader,e,0,e.length,t.readEntryCursor,function(r){if(r)return W(t,r);if(!t.emittedError){var n=new pt,i=e.readUInt32LE(0);if(i!==33639248)return W(t,new Error("invalid central directory file header signature: 0x"+i.toString(16)));if(n.versionMadeBy=e.readUInt16LE(4),n.versionNeededToExtract=e.readUInt16LE(6),n.generalPurposeBitFlag=e.readUInt16LE(8),n.compressionMethod=e.readUInt16LE(10),n.lastModFileTime=e.readUInt16LE(12),n.lastModFileDate=e.readUInt16LE(14),n.crc32=e.readUInt32LE(16),n.compressedSize=e.readUInt32LE(20),n.uncompressedSize=e.readUInt32LE(24),n.fileNameLength=e.readUInt16LE(28),n.extraFieldLength=e.readUInt16LE(30),n.fileCommentLength=e.readUInt16LE(32),n.internalFileAttributes=e.readUInt16LE(36),n.externalFileAttributes=e.readUInt32LE(38),n.relativeOffsetOfLocalHeader=e.readUInt32LE(42),n.generalPurposeBitFlag&64)return W(t,new Error("strong encryption is not supported"));t.readEntryCursor+=46,e=K(n.fileNameLength+n.extraFieldLength+n.fileCommentLength),Ve(t.reader,e,0,e.length,t.readEntryCursor,function(s){if(s)return W(t,s);if(!t.emittedError){var o=(n.generalPurposeBitFlag&2048)!==0;n.fileName=t.decodeStrings?xr(e,0,n.fileNameLength,o):e.slice(0,n.fileNameLength);var a=n.fileNameLength+n.extraFieldLength,l=e.slice(n.fileNameLength,a);n.extraFields=[];for(var u=0;u<l.length-3;){var f=l.readUInt16LE(u+0),c=l.readUInt16LE(u+2),p=u+4,_=p+c;if(_>l.length)return W(t,new Error("extra field length exceeds extra field buffer size"));var g=K(c);l.copy(g,0,p,_),n.extraFields.push({id:f,data:g}),u=_}if(n.fileComment=t.decodeStrings?xr(e,a,a+n.fileCommentLength,o):e.slice(a,a+n.fileCommentLength),n.comment=n.fileComment,t.readEntryCursor+=e.length,t.entriesRead+=1,n.uncompressedSize===4294967295||n.compressedSize===4294967295||n.relativeOffsetOfLocalHeader===4294967295){for(var d=null,u=0;u<n.extraFields.length;u++){var m=n.extraFields[u];if(m.id===1){d=m.data;break}}if(d==null)return W(t,new Error("expected zip64 extended information extra field"));var x=0;if(n.uncompressedSize===4294967295){if(x+8>d.length)return W(t,new Error("zip64 extended information extra field does not include uncompressed size"));n.uncompressedSize=He(d,x),x+=8}if(n.compressedSize===4294967295){if(x+8>d.length)return W(t,new Error("zip64 extended information extra field does not include compressed size"));n.compressedSize=He(d,x),x+=8}if(n.relativeOffsetOfLocalHeader===4294967295){if(x+8>d.length)return W(t,new Error("zip64 extended information extra field does not include relative header offset"));n.relativeOffsetOfLocalHeader=He(d,x),x+=8}}if(t.decodeStrings)for(var u=0;u<n.extraFields.length;u++){var m=n.extraFields[u];if(m.id===28789){if(m.data.length<6||m.data.readUInt8(0)!==1)continue;var A=m.data.readUInt32LE(1);if(_h.unsigned(e.slice(0,n.fileNameLength))!==A)continue;n.fileName=xr(m.data,5,m.data.length,!0);break}}if(t.validateEntrySizes&&n.compressionMethod===0){var T=n.uncompressedSize;if(n.isEncrypted()&&(T+=12),n.compressedSize!==T){var M="compressed/uncompressed size mismatch for stored file: "+n.compressedSize+" != "+n.uncompressedSize;return W(t,new Error(M))}}if(t.decodeStrings){t.strictFileNames||(n.fileName=n.fileName.replace(/\\/g,"/"));var B=al(n.fileName,t.validateFileNameOptions);if(B!=null)return W(t,new Error(B))}t.emit("entry",n),t.lazyEntries||t._readEntry()}})}})}};fe.prototype.openReadStream=function(t,e,r){var n=this,i=0,s=t.compressedSize;if(r==null)r=e,e={};else{if(e.decrypt!=null){if(!t.isEncrypted())throw new Error("options.decrypt can only be specified for encrypted entries");if(e.decrypt!==!1)throw new Error("invalid options.decrypt value: "+e.decrypt);if(t.isCompressed()&&e.decompress!==!1)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}if(e.decompress!=null){if(!t.isCompressed())throw new Error("options.decompress can only be specified for compressed entries");if(!(e.decompress===!1||e.decompress===!0))throw new Error("invalid options.decompress value: "+e.decompress)}if(e.start!=null||e.end!=null){if(t.isCompressed()&&e.decompress!==!1)throw new Error("start/end range not allowed for compressed entry without options.decompress === false");if(t.isEncrypted()&&e.decrypt!==!1)throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}if(e.start!=null){if(i=e.start,i<0)throw new Error("options.start < 0");if(i>t.compressedSize)throw new Error("options.start > entry.compressedSize")}if(e.end!=null){if(s=e.end,s<0)throw new Error("options.end < 0");if(s>t.compressedSize)throw new Error("options.end > entry.compressedSize");if(s<i)throw new Error("options.end < options.start")}}if(!n.isOpen)return r(new Error("closed"));if(t.isEncrypted()&&e.decrypt!==!1)return r(new Error("entry is encrypted, and options.decrypt !== false"));n.reader.ref();var o=K(30);Ve(n.reader,o,0,o.length,t.relativeOffsetOfLocalHeader,function(a){try{if(a)return r(a);var l=o.readUInt32LE(0);if(l!==67324752)return r(new Error("invalid local file header signature: 0x"+l.toString(16)));var u=o.readUInt16LE(26),f=o.readUInt16LE(28),c=t.relativeOffsetOfLocalHeader+o.length+u+f,p;if(t.compressionMethod===0)p=!1;else if(t.compressionMethod===8)p=e.decompress!=null?e.decompress:!0;else return r(new Error("unsupported compression method: "+t.compressionMethod));var _=c,g=_+t.compressedSize;if(t.compressedSize!==0&&g>n.fileSize)return r(new Error("file data overflows file bounds: "+_+" + "+t.compressedSize+" > "+n.fileSize));var d=n.reader.createReadStream({start:_+i,end:_+s}),m=d;if(p){var x=!1,A=mh.createInflateRaw();d.on("error",function(T){setImmediate(function(){x||A.emit("error",T)})}),d.pipe(A),n.validateEntrySizes?(m=new gt(t.uncompressedSize),A.on("error",function(T){setImmediate(function(){x||m.emit("error",T)})}),A.pipe(m)):m=A,m.destroy=function(){x=!0,A!==m&&A.unpipe(m),d.unpipe(A),d.destroy()}}r(null,m)}finally{n.reader.unref()}})};function pt(){}pt.prototype.getLastModDate=function(){return ol(this.lastModFileDate,this.lastModFileTime)};pt.prototype.isEncrypted=function(){return(this.generalPurposeBitFlag&1)!==0};pt.prototype.isCompressed=function(){return this.compressionMethod===8};function ol(t,e){var r=t&31,n=(t>>5&15)-1,i=(t>>9&127)+1980,s=0,o=(e&31)*2,a=e>>5&63,l=e>>11&31;return new Date(i,n,r,l,a,o,s)}function al(t){return t.indexOf("\\")!==-1?"invalid characters in fileName: "+t:/^[a-zA-Z]:/.test(t)||/^\//.test(t)?"absolute path: "+t:t.split("/").indexOf("..")!==-1?"invalid relative path: "+t:null}function Ve(t,e,r,n,i,s){if(n===0)return setImmediate(function(){s(null,K(0))});t.read(e,r,n,i,function(o,a){if(o)return s(o);if(a<n)return s(new Error("unexpected EOF"));s()})}wr.inherits(gt,nl);function gt(t){nl.call(this),this.actualByteCount=0,this.expectedByteCount=t}gt.prototype._transform=function(t,e,r){if(this.actualByteCount+=t.length,this.actualByteCount>this.expectedByteCount){var n="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return r(new Error(n))}r(null,t)};gt.prototype._flush=function(t){if(this.actualByteCount<this.expectedByteCount){var e="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return t(new Error(e))}t()};wr.inherits(ce,Er);function ce(){Er.call(this),this.refCount=0}ce.prototype.ref=function(){this.refCount+=1};ce.prototype.unref=function(){var t=this;if(t.refCount-=1,t.refCount>0)return;if(t.refCount<0)throw new Error("invalid unref");t.close(e);function e(r){if(r)return t.emit("error",r);t.emit("close")}};ce.prototype.createReadStream=function(t){var e=t.start,r=t.end;if(e===r){var n=new ai;return setImmediate(function(){n.end()}),n}var i=this._readStreamForRange(e,r),s=!1,o=new Sr(this);i.on("error",function(l){setImmediate(function(){s||o.emit("error",l)})}),o.destroy=function(){i.unpipe(o),o.unref(),i.destroy()};var a=new gt(r-e);return o.on("error",function(l){setImmediate(function(){s||a.emit("error",l)})}),a.destroy=function(){s=!0,o.unpipe(a),o.destroy()},i.pipe(o).pipe(a)};ce.prototype._readStreamForRange=function(t,e){throw new Error("not implemented")};ce.prototype.read=function(t,e,r,n,i){var s=this.createReadStream({start:n,end:n+r}),o=new yh,a=0;o._write=function(l,u,f){l.copy(t,e+a,0,l.length),a+=l.length,f()},o.on("finish",i),s.on("error",function(l){i(l)}),s.pipe(o)};ce.prototype.close=function(t){setImmediate(t)};wr.inherits(Sr,ai);function Sr(t){ai.call(this),this.context=t,this.context.ref(),this.unreffedYet=!1}Sr.prototype._flush=function(t){this.unref(),t()};Sr.prototype.unref=function(t){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var vh="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0";function xr(t,e,r,n){if(n)return t.toString("utf8",e,r);for(var i="",s=e;s<r;s++)i+=vh[t[s]];return i}function He(t,e){var r=t.readUInt32LE(e),n=t.readUInt32LE(e+4);return n*4294967296+r}var K;typeof Buffer.allocUnsafe=="function"?K=function(t){return Buffer.allocUnsafe(t)}:K=function(t){return new Buffer(t)};function vr(t){if(t)throw t}});var fl=h((Pp,ul)=>{var G=La()("extract-zip"),{createWriteStream:wh,promises:We}=require("fs"),Eh=Ga(),Ee=require("path"),{promisify:fi}=require("util"),Sh=require("stream"),Ch=ll(),Ah=fi(Ch.open),Oh=fi(Sh.pipeline),ui=class{constructor(e,r){this.zipPath=e,this.opts=r}async extract(){return G("opening",this.zipPath,"with opts",this.opts),this.zipfile=await Ah(this.zipPath,{lazyEntries:!0}),this.canceled=!1,new Promise((e,r)=>{this.zipfile.on("error",n=>{this.canceled=!0,r(n)}),this.zipfile.readEntry(),this.zipfile.on("close",()=>{this.canceled||(G("zip extraction complete"),e())}),this.zipfile.on("entry",async n=>{if(this.canceled){G("skipping entry",n.fileName,{cancelled:this.canceled});return}if(G("zipfile entry",n.fileName),n.fileName.startsWith("__MACOSX/")){this.zipfile.readEntry();return}let i=Ee.dirname(Ee.join(this.opts.dir,n.fileName));try{await We.mkdir(i,{recursive:!0});let s=await We.realpath(i);if(Ee.relative(this.opts.dir,s).split(Ee.sep).includes(".."))throw new Error(`Out of bound path "${s}" found while processing file ${n.fileName}`);await this.extractEntry(n),G("finished processing",n.fileName),this.zipfile.readEntry()}catch(s){this.canceled=!0,this.zipfile.close(),r(s)}})})}async extractEntry(e){if(this.canceled){G("skipping entry extraction",e.fileName,{cancelled:this.canceled});return}this.opts.onEntry&&this.opts.onEntry(e,this.zipfile);let r=Ee.join(this.opts.dir,e.fileName),n=e.externalFileAttributes>>16&65535,i=61440,s=16384,a=(n&i)===40960,l=(n&i)===s;!l&&e.fileName.endsWith("/")&&(l=!0);let u=e.versionMadeBy>>8;l||(l=u===0&&e.externalFileAttributes===16),G("extracting entry",{filename:e.fileName,isDir:l,isSymlink:a});let f=this.getExtractedMode(n,l)&511,c=l?r:Ee.dirname(r),p={recursive:!0};if(l&&(p.mode=f),G("mkdir",{dir:c,...p}),await We.mkdir(c,p),l)return;G("opening read stream",r);let _=await fi(this.zipfile.openReadStream.bind(this.zipfile))(e);if(a){let g=await Eh(_);G("creating symlink",g,r),await We.symlink(g,r)}else await Oh(_,wh(r,{mode:f}))}getExtractedMode(e,r){let n=e;return n===0&&(r?(this.opts.defaultDirMode&&(n=parseInt(this.opts.defaultDirMode,10)),n||(n=493)):(this.opts.defaultFileMode&&(n=parseInt(this.opts.defaultFileMode,10)),n||(n=420))),n}};ul.exports=async function(t,e){if(G("creating target directory",e.dir),!Ee.isAbsolute(e.dir))throw new Error("Target directory is expected to be absolute");return await We.mkdir(e.dir,{recursive:!0}),e.dir=await We.realpath(e.dir),new ui(t,e).extract()}});var gi=h((kp,xl)=>{"use strict";var C=require("path"),w=require("fs"),ci=require("os"),{spawn:Rh}=require("child_process"),v=Z(),Fh=aa(),Ih=va(),di=require("crypto"),pl=require("http"),hi=require("https"),{readLicense:Th}=Jn(),Lh="http://localhost:5271";function gl(t){try{let e=JSON.parse(Buffer.from(t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),"base64").toString("utf8"));return Array.isArray(e.domains)&&e.domains.length>0?e.domains.filter(Boolean):e.domain?[e.domain]:[]}catch{return[]}}function cl(t){let r=gl(t)[0]||null;return new Promise(n=>{try{let i=new URL("/api/licenses/verify",Lh),s=JSON.stringify({token:t,domain:r}),a=(i.protocol==="https:"?hi:pl).request({hostname:i.hostname,port:i.port||(i.protocol==="https:"?443:80),path:i.pathname,method:"POST",headers:{"Content-Type":"application/json","Content-Length":Buffer.byteLength(s)}},l=>{let u="";l.on("data",f=>{u+=f}),l.on("end",()=>{try{n(JSON.parse(u))}catch{n(null)}})});a.setTimeout(5e3,()=>{a.destroy(),n(null)}),a.on("error",()=>n(null)),a.write(s),a.end()}catch{n(null)}})}function Ph(t){return new Promise(e=>{pl.get(`http://127.0.0.1:${t}/api/v1.0/setup/status`,r=>{let n="";r.on("data",i=>{n+=i}),r.on("end",()=>{try{e(JSON.parse(n))}catch{e({isInstalled:!0})}})}).on("error",()=>e({isInstalled:!0}))})}function Dh(t,e){let r=t.database||{};return r.provider==="sqlserver"?`Server=${r.host},${r.port||1433};Database=${r.database};User Id=${r.username};Password=${r.password};TrustServerCertificate=True;MultipleActiveResultSets=True;`:r.provider==="postgresql"&&!r.embedded?`Host=${r.host};Port=${r.port||5432};Database=${r.database};Username=${r.username};Password=${r.password};SSL Mode=Prefer;`:`Host=127.0.0.1;Port=${Or};Database=${_l};Username=${ml};Password=${e.pgPassword};SSL Mode=Disable;Persist Security Info=true;`}var N=C.join(ci.homedir(),".xFramework","instances","default"),Se=C.join(N,"db"),Cr=C.join(N,"logs"),dl=C.join(N,"data"),Ar=C.join(N,"secrets"),pi=C.join(N,".env"),mt=C.join(N,"config.json"),kh=C.join(N,".pid"),Or=54329,ml="contentactive",_l="contentactive",yl=C.resolve(__dirname,w.existsSync(C.join(__dirname,"dist"))?".":".."),Dp=C.join(yl,"dist","api"),bl=C.join(yl,"dist","ui");function Mh(){[N,Se,Cr,dl,C.join(dl,"backups"),Ar].forEach(t=>{w.existsSync(t)||w.mkdirSync(t,{recursive:!0})})}function qh(){if(w.existsSync(C.join(Ar,"master.key"))||w.writeFileSync(C.join(Ar,"master.key"),di.randomBytes(32).toString("hex"),"utf8"),!w.existsSync(pi)){let t=di.randomBytes(32).toString("hex");w.writeFileSync(pi,`# xFramework environment
|
|
43
43
|
CA_JWT_SECRET=${t}
|
|
44
|
-
`,"utf8")}}function
|
|
44
|
+
`,"utf8")}}function Nh(){let t=w.readFileSync(C.join(Ar,"master.key"),"utf8").trim(),r=w.readFileSync(pi,"utf8").match(/CA_JWT_SECRET=(.+)/);return{masterKey:t,pgPassword:t.slice(0,32),jwtSecret:r?r[1].trim():di.randomBytes(32).toString("hex")}}function Bh(t){if(!w.existsSync(mt)){let e={app:{companyName:"My Company",primaryColor:"#FF5733",timezone:"America/New_York"},server:{port:parseInt(t),host:"127.0.0.1"},database:{provider:"postgresql",embedded:!0},integrations:{googleClientId:"",microsoftClientId:"",microsoftLogin:"",googleMapsApiKey:"",auth0Domain:"",auth0ClientId:"",aiVisionBaseUrl:"",brainServiceKey:"",cmsPageId:"",cmsSiteId:""},features:{crm:!0,cms:!0,events:!0,training:!0,timesheets:!0,reports:!0,supportTickets:!0},backup:{enabled:!0,intervalMinutes:60,retentionDays:30}};w.writeFileSync(mt,JSON.stringify(e,null,2),"utf8")}return JSON.parse(w.readFileSync(mt,"utf8"))}function hl(t,e){let r=C.join(bl,"config.js");if(!w.existsSync(r))return;let n=t||{type:"community",company:"",isLicensed:!1},i=n.expiresAt?n.expiresAt.toISOString():"",s=e?.integrations||{},o=[];if(n.isLicensed)try{let l=w.readFileSync(C.join(N,"license.key"),"utf8").trim();o=gl(l)}catch{}let a=`window.RUNTIME_CONFIG = {
|
|
45
45
|
VITE_APP_BASE: "Embedded",
|
|
46
46
|
VITE_API_BASE_URL: "",
|
|
47
47
|
VITE_SETUP_MODE: "manager",
|
|
@@ -61,11 +61,11 @@ CA_JWT_SECRET=${t}
|
|
|
61
61
|
VITE_LICENSE_DAYS_REMAINING: "${n.daysRemaining!=null?n.daysRemaining:""}",
|
|
62
62
|
VITE_LICENSE_DOMAINS: ${JSON.stringify(o)},
|
|
63
63
|
};
|
|
64
|
-
`;w.writeFileSync(r,a,"utf8")}async function
|
|
64
|
+
`;w.writeFileSync(r,a,"utf8")}async function jh(t,e){t.text="Starting database...";let r=await import("embedded-postgres"),n=r.default||r,i=new n({databaseDir:Se,user:ml,password:e,port:Or,persistent:!0});if(w.existsSync(C.join(Se,"PG_VERSION"))||(w.existsSync(Se)&&(w.rmSync(Se,{recursive:!0,force:!0}),w.mkdirSync(Se,{recursive:!0})),await i.initialise()),!await new Promise(a=>{let u=require("net").createConnection({host:"127.0.0.1",port:Or});u.setTimeout(3e3),u.once("connect",()=>{u.destroy(),a(!0)}),u.once("error",()=>{u.destroy(),a(!1)}),u.once("timeout",()=>{u.destroy(),a(!1)})})){let a=C.join(Se,"postmaster.pid");w.existsSync(a)&&w.unlinkSync(a),await Promise.race([i.start(),new Promise((l,u)=>setTimeout(()=>u(new Error("PostgreSQL did not start within 60 seconds")),6e4))])}try{await i.createDatabase(_l)}catch{}return i}async function $h(t){let e=C.join(N,"bin");w.existsSync(e)||w.mkdirSync(e,{recursive:!0});let r=ci.platform(),n=ci.arch();r==="darwin"&&(n="x64");let i="";r==="win32"?i="win":r==="darwin"?i="mac":i="linux";let s=`api-${i}-${n}.zip`,o=r==="win32"?".exe":"",a=C.join(e,`XFramework.Api${o}`);if(w.existsSync(a))return a;t.start(`Downloading xFramework Core for ${i} ${n}...`);let l="latest";try{let p=C.join(__dirname,"package.json"),_=C.join(__dirname,"..","package.json");w.existsSync(p)?l="v"+JSON.parse(w.readFileSync(p,"utf8")).version:w.existsSync(_)&&(l="v"+JSON.parse(w.readFileSync(_,"utf8")).version)}catch{}let u=`https://xframework-builds.s3.us-west-2.amazonaws.com/releases/${l}/${s}`,f=C.join(e,s);return await new Promise((p,_)=>{hi.get(u,g=>{g.statusCode>=300&&g.statusCode<400&&g.headers.location?hi.get(g.headers.location,d).on("error",m=>{w.unlink(f,()=>{}),_(m)}):g.statusCode!==200?_(new Error(`HTTP ${g.statusCode} - ${g.statusMessage}
|
|
65
65
|
URL: ${u}
|
|
66
|
-
Ensure you have uploaded the build for this version.`)):d(g);function d(m){let x=w.createWriteStream(f),A=0,T=parseInt(m.headers["content-length"],10)||0;m.on("data",M=>{if(A+=M.length,T>0){let B=Math.round(A/T*100);t.text=`Downloading xFramework Core... ${B}%`}}),m.pipe(x),x.on("finish",()=>{x.close(),p()})}}).on("error",g=>{w.unlink(f,()=>{}),_(g)})}),t.text="Extracting core files...",await
|
|
66
|
+
Ensure you have uploaded the build for this version.`)):d(g);function d(m){let x=w.createWriteStream(f),A=0,T=parseInt(m.headers["content-length"],10)||0;m.on("data",M=>{if(A+=M.length,T>0){let B=Math.round(A/T*100);t.text=`Downloading xFramework Core... ${B}%`}}),m.pipe(x),x.on("finish",()=>{x.close(),p()})}}).on("error",g=>{w.unlink(f,()=>{}),_(g)})}),t.text="Extracting core files...",await fl()(f,{dir:e}),w.unlinkSync(f),r!=="win32"&&w.chmodSync(a,493),a}function Uh(t,e,r,n,i){n.text="Starting portal...";let s=Dh(t,e),o=t.database?.provider||"postgresql",a=t.server?.port||7125,l=w.createWriteStream(C.join(Cr,"api.log"),{flags:"a"}),u=C.dirname(i),f=Rh(i,[],{env:Object.assign(Object.fromEntries(Object.entries(process.env).filter(([c])=>!c.toUpperCase().startsWith("APPSETUP__"))),{DOTNET_ROLL_FORWARD:"Major",ASPNETCORE_ENVIRONMENT:"Production",ASPNETCORE_URLS:`http://127.0.0.1:${a}`,ConnectionStrings__DefaultConnection:s,ConnectionStrings__ReportingConnection:s,ConnectionStrings__ReadOnlyConnection:s,CA_AUTO_MIGRATE:"true",AppSetup__AutoMigrate:"true",AppSetup__AppInstallRequired:"false",AppSetup__Username:"support@contentactive.com",AppSetup__Password:"Sa1234TT!",AppSetup__Role:"System Admin",CA_JWT_SECRET:e.jwtSecret,CA_COMPANY_NAME:t.app?.companyName||"xFramework",CA_PRIMARY_COLOR:t.app?.primaryColor||"#FF5733",CA_UI_PATH:bl,CA_LICENSE_TYPE:r.type,CA_LICENSE_COMPANY:r.company||"",CA_LICENSE_EMAIL:r.email||"",CA_LICENSE_EXPIRES:r.expiresAt?r.expiresAt.toISOString():"",CA_LICENSE_VALID:r.isLicensed?"true":"false",License__Enabled:"true",CA_DB_PROVIDER:o,CA_LICENSE_TOKEN:r.isLicensed?(()=>{try{return w.readFileSync(C.join(N,"license.key"),"utf8").trim()}catch{return""}})():""}),cwd:u});return f.stdout.pipe(l),f.stderr.pipe(l),f.on("error",c=>{n.fail(v.red("Failed to start portal: "+c.message)),process.exit(1)}),w.writeFileSync(kh,String(f.pid),"utf8"),f}function Vh(t,e=3e4){return new Promise((r,n)=>{let i=require("http"),s=Date.now(),o=()=>{i.get(`http://127.0.0.1:${t}/health`,a=>{a.statusCode<500?r():setTimeout(o,500)}).on("error",()=>{Date.now()-s>e?n(new Error("Portal did not start in time")):setTimeout(o,500)})};o()})}xl.exports=async function(e){let r=e.port||"7125";console.log(""),console.log(v.bold.white(" xFramework")),console.log(v.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));let n=Fh({text:"Initializing...",color:"cyan"}).start();try{Mh(),qh();let i=!w.existsSync(mt),s=Bh(r),o=Nh();s.database||(s.database={provider:"postgresql",embedded:!0},w.writeFileSync(mt,JSON.stringify(s,null,2),"utf8"));let a=Th();if(n.succeed(v.green("Ready")+v.gray(" \u2014 data directory initialized")),a.isLicensed){n.start("Verifying license...");let d=w.readFileSync(C.join(N,"license.key"),"utf8").trim(),m=await cl(d);m===null?n.warn(v.yellow("License server unreachable \u2014 running offline")):m.valid?n.succeed(v.green("License")+v.gray(` \u2014 ${a.type} \xB7 ${a.company}`)):(n.fail(v.red(`License ${m.reason||"invalid"} \u2014 contact support@contentactive.com`)),a={valid:!1,type:m.reason==="revoked"?"revoked":m.reason==="domain_mismatch"?"domain_mismatch":"expired",company:a.company,email:a.email,expiresAt:a.expiresAt,daysRemaining:0,features:[],isLicensed:!1})}if(hl(a,s),s.database?.embedded!==!1&&s.database?.provider!=="sqlserver")n.start("Starting database..."),await jh(n,o.pgPassword),n.succeed(v.green("Database")+v.gray(` \u2014 PostgreSQL running on port ${Or}`));else{let d=s.database?.provider==="sqlserver"?"SQL Server":"PostgreSQL";n.succeed(v.green("Database")+v.gray(` \u2014 using external ${d} at ${s.database?.host}`))}let u;try{u=await $h(n)}catch(d){n.fail(v.red("Failed to get core binaries: ")+d.message),process.exit(1)}n.start("Starting portal...");let f=Uh(s,o,a,n,u);await Vh(s.server?.port||7125,3e5),n.succeed(v.green("Portal")+v.gray(` \u2014 running on http://localhost:${s.server?.port||7125}`));let c=await Ph(s.server?.port||7125),p=c.isInstalled?`http://localhost:${s.server?.port||7125}`:`http://localhost:${s.server?.port||7125}/setup`;console.log(""),console.log(v.bold.green(" \u2713 xFramework is running!")),console.log(""),console.log(v.white(" URL: ")+v.cyan(`http://localhost:${s.server?.port||7125}`)),c&&!c.isInstalled&&(console.log(v.white(" Setup: ")+v.cyan(`http://localhost:${s.server?.port||7125}/setup`)),console.log(v.gray(" Complete the setup wizard to create your admin account."))),console.log(v.white(" Data: ")+v.gray(N));let _=s.database?.provider==="sqlserver"?"SQL Server":s.database?.embedded!==!1?"PostgreSQL (embedded)":`PostgreSQL (${s.database?.host})`;if(console.log(v.white(" Database: ")+v.gray(_)),a.isLicensed){let d=a.expiresAt?v.gray(` \u2014 expires ${a.expiresAt.toDateString()} (${a.daysRemaining}d)`):"";console.log(v.white(" License: ")+v.green(`${a.type} \u2014 ${a.company}`)+d)}else a.type==="revoked"?console.log(v.white(" License: ")+v.red("Revoked \u2014 contact support@contentactive.com")):a.type==="domain_mismatch"?console.log(v.white(" License: ")+v.red("Domain mismatch \u2014 this key is not licensed for this domain")):a.type==="expired"?console.log(v.white(" License: ")+v.red("Expired \u2014 run: xFramework-cli license <key>")):console.log(v.white(" License: ")+v.yellow("Community Edition \u2014 run: xFramework-cli license <key>"));console.log(""),console.log(v.gray(" Press Ctrl+C to stop")),console.log(""),await Ih(p);let g=30*60*1e3;if(a.isLicensed){let d=setInterval(async()=>{try{let m=w.readFileSync(C.join(N,"license.key"),"utf8").trim(),x=await cl(m);if(x===null)return;if(!x.valid){clearInterval(d);let A={...a,isLicensed:!1,type:x.reason==="revoked"?"revoked":"expired"};hl(A,s),console.log(""),console.log(v.bold.red(` \u26A0 License ${x.reason||"invalid"}.`)),console.log(v.gray(" Banner updated in the portal. Contact support@contentactive.com.")),console.log("")}}catch{}},g);process.on("exit",()=>clearInterval(d))}process.on("SIGINT",async()=>{console.log(""),n.start("Stopping portal..."),f.kill(),n.succeed("Portal stopped"),process.exit(0)}),f.on("exit",d=>{d!==0&&d!==null&&console.log(v.red(`
|
|
67
67
|
Portal exited with code ${d}. Check logs: ${C.join(Cr,"api.log")}`)),process.exit(d||0)})}catch(i){n.fail(v.red("Startup failed: ")+(i?.message||String(i))),console.log(v.gray(`
|
|
68
|
-
Check logs: ${C.join(Cr,"api.log")}`)),process.exit(1)}}});var
|
|
68
|
+
Check logs: ${C.join(Cr,"api.log")}`)),process.exit(1)}}});var El=h((Mp,wl)=>{"use strict";var Rr=require("fs"),vl=require("path"),Hh=require("os"),mi=Z(),Wh=vl.join(Hh.homedir(),".xFramework","instances","default"),Fr=vl.join(Wh,".pid");wl.exports=function(){if(!Rr.existsSync(Fr)){console.log(mi.yellow(" Portal is not running."));return}let e=parseInt(Rr.readFileSync(Fr,"utf8").trim());try{process.kill(e,"SIGTERM"),Rr.unlinkSync(Fr),console.log(mi.green(" \u2713 Portal stopped."))}catch{Rr.unlinkSync(Fr),console.log(mi.yellow(" Portal was not running."))}}});var Rl=h((qp,Ol)=>{"use strict";var Ir=require("fs"),_i=require("path"),Gh=require("os"),zh=require("http"),Ge=Z(),Al=_i.join(Gh.homedir(),".xFramework","instances","default"),Sl=_i.join(Al,".pid"),Cl=_i.join(Al,"config.json");Ol.exports=function(){let e=Ir.existsSync(Sl),n=(Ir.existsSync(Cl)?JSON.parse(Ir.readFileSync(Cl,"utf8")):{}).server?.port||7125;if(!e){console.log(Ge.yellow(" \u25CF Portal is stopped"));return}let i=parseInt(Ir.readFileSync(Sl,"utf8").trim());zh.get(`http://localhost:${n}/health`,s=>{s.statusCode<500?(console.log(Ge.green(" \u25CF Portal is running")),console.log(Ge.gray(` URL: http://localhost:${n}`)),console.log(Ge.gray(` PID: ${i}`))):console.log(Ge.yellow(" \u25CF Portal is starting..."))}).on("error",()=>{console.log(Ge.yellow(" \u25CF Portal process exists but not responding yet"))})}});var Tl=h((Np,Il)=>{"use strict";var Fl=require("fs"),bi=require("path"),Yh=require("os"),{execSync:Kh}=require("child_process"),Tr=Z(),Jh=bi.join(Yh.homedir(),".xFramework","instances","default"),yi=bi.join(Jh,"data","backups"),Xh=54329,Zh="contentactive",Qh="contentactive";Il.exports=function(){Fl.existsSync(yi)||Fl.mkdirSync(yi,{recursive:!0});let e=new Date().toISOString().replace(/[:.]/g,"-"),r=bi.join(yi,`backup-${e}.sql`);console.log(Tr.cyan(" Creating backup..."));try{Kh(`pg_dump -h localhost -p ${Xh} -U ${Zh} -d ${Qh} -f "${r}"`,{env:{...process.env,PGPASSWORD:"contentactive_local"}}),console.log(Tr.green(` \u2713 Backup saved: ${r}`))}catch(n){console.log(Tr.red(" Backup failed: ")+n.message),console.log(Tr.gray(" Make sure the portal is running first."))}}});var Dl=h((Bp,Pl)=>{"use strict";var Ll=require("fs"),vi=require("path"),e0=require("os"),{execSync:t0}=require("child_process"),_t=Z(),r0=vi.join(e0.homedir(),".xFramework","instances","default"),xi=vi.join(r0,"data","backups"),n0=54329,i0="contentactive",s0="contentactive";Pl.exports=function(){if(!Ll.existsSync(xi)){console.log(_t.yellow(" No backups found."));return}let e=Ll.readdirSync(xi).filter(n=>n.endsWith(".sql")).sort().reverse();if(e.length===0){console.log(_t.yellow(" No backups found."));return}let r=vi.join(xi,e[0]);console.log(_t.cyan(` Restoring from: ${e[0]}`));try{t0(`psql -h localhost -p ${n0} -U ${i0} -d ${s0} -f "${r}"`,{env:{...process.env,PGPASSWORD:"contentactive_local"}}),console.log(_t.green(" \u2713 Restore complete."))}catch(n){console.log(_t.red(" Restore failed: ")+n.message)}}});var Nl=h((jp,ql)=>{"use strict";var b=Z(),{readLicense:o0,saveLicense:a0,removeLicense:l0}=Jn();function Ml(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}function kl(){let t=o0();if(console.log(""),console.log(b.bold.white(" xFramework \u2014 License Status")),console.log(b.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log(""),t.type==="community")console.log(b.white(" Status: ")+b.yellow("Community Edition (Unlicensed)")),console.log(""),console.log(b.gray(" To activate a license:")),console.log(b.gray(" xFramework-cli license <your-key>"));else if(t.type==="expired")console.log(b.white(" Status: ")+b.red("Expired")),console.log(b.white(" Company: ")+b.cyan(t.company||"\u2014")),console.log(b.white(" Email: ")+b.cyan(t.email||"\u2014")),console.log(b.white(" Expired: ")+b.red(t.expiresAt.toDateString())),console.log(""),console.log(b.gray(" Renew at contentactive.com/renew"));else if(t.type==="invalid")console.log(b.white(" Status: ")+b.red("Invalid License Key")),console.log(b.red(" Error: ")+b.white(t.error||"Unknown error")),console.log(""),console.log(b.gray(" The license file may be corrupted. Re-activate with your key:")),console.log(b.gray(" xFramework-cli license <your-key>"));else if(console.log(b.white(" Status: ")+b.green("Licensed \u2713")),console.log(b.white(" Type: ")+b.cyan(Ml(t.type))),console.log(b.white(" Company: ")+b.cyan(t.company||"\u2014")),console.log(b.white(" Email: ")+b.cyan(t.email||"\u2014")),t.expiresAt){let e=t.expiresAt.toDateString(),r=t.daysRemaining<30?b.yellow:b.cyan;console.log(b.white(" Expires: ")+r(`${e} (${t.daysRemaining} days remaining)`))}else console.log(b.white(" Expires: ")+b.cyan("Never"));console.log("")}function u0(t){console.log(""),console.log(b.bold.white(" xFramework \u2014 License Activation")),console.log(b.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log("");try{let e=a0(t),r=e.exp?new Date(e.exp*1e3):null,n=r?Math.ceil((r-new Date)/(1e3*60*60*24)):null;console.log(b.bold.green(" \u2713 License activated successfully!")),console.log(""),console.log(b.white(" Company: ")+b.cyan(e.company||"\u2014")),console.log(b.white(" Email: ")+b.cyan(e.sub||"\u2014")),console.log(b.white(" Type: ")+b.cyan(Ml(e.type||"professional"))),console.log(r?b.white(" Expires: ")+b.cyan(`${r.toDateString()} (${n} days)`):b.white(" Expires: ")+b.cyan("Never")),console.log(""),console.log(b.gray(" Restart the portal to apply: xFramework-cli start"))}catch(e){console.log(b.bold.red(" \u2717 Activation failed")),console.log(b.white(" Reason: ")+b.red(e.message)),console.log(""),console.log(b.gray(" Please check your license key and try again.")),console.log(b.gray(" Contact support@contentactive.com if the issue persists."))}console.log("")}function f0(){console.log("");let t=l0();console.log(t?b.green(" \u2713 License removed. Running in Community Edition."):b.gray(" No active license found.")),console.log("")}ql.exports=function(e,r){if(r&&r.status){kl();return}if(r&&r.remove){f0();return}if(e){u0(e);return}kl()}});var{program:de}=Mi(),c0=qi();de.name("xFramework-cli").description("xFramework \u2014 run your portal locally with one command").version(c0.version);de.command("start").description("Start the xFramework").option("--port <port>","Port to run on","7125").action(t=>{gi()(t)});de.command("stop").description("Stop the xFramework").action(()=>{El()()});de.command("status").description("Check if the portal is running").action(()=>{Rl()()});de.command("backup").description("Create a manual database backup").action(()=>{Tl()()});de.command("restore").description("Restore database from a backup").action(()=>{Dl()()});de.command("license [key]").description("Activate or check your xFramework license").option("--status","Show current license status").option("--remove","Remove the current license (revert to Community Edition)").action((t,e)=>{Nl()(t,e)});de.parse(process.argv);process.argv.slice(2).length||gi()({port:"7125"});
|
|
69
69
|
/*! Bundled license information:
|
|
70
70
|
|
|
71
71
|
safe-buffer/index.js:
|