-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.cjs
63 lines (60 loc) · 185 KB
/
build.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
var zf=Object.create;var gs=Object.defineProperty;var Gf=Object.getOwnPropertyDescriptor;var Yf=Object.getOwnPropertyNames;var Kf=Object.getPrototypeOf,Jf=Object.prototype.hasOwnProperty;var Zf=(t,e)=>()=>(t&&(e=t(t=0)),e);var d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Qf=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Yf(e))!Jf.call(t,i)&&i!==r&&gs(t,i,{get:()=>e[i],enumerable:!(n=Gf(e,i))||n.enumerable});return t};var ht=(t,e,r)=>(r=t!=null?zf(Kf(t)):{},Qf(e||!t||!t.__esModule?gs(r,"default",{value:t,enumerable:!0}):r,t));var h,u=Zf(()=>{h=require("url").pathToFileURL(__filename)});var dt=d(cn=>{u();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}},fn=class extends Yt{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};cn.CommanderError=Yt;cn.InvalidArgumentError=fn});var Kt=d(dn=>{u();var{InvalidArgumentError:Xf}=dt(),hn=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 Xf(`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 ec(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}dn.Argument=hn;dn.humanReadableArgName=ec});var gn=d(ms=>{u();var{humanReadableArgName:tc}=Kt(),pn=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(i=>!i._hidden),n=e._getHelpCommand();return n&&!n._hidden&&r.push(n),this.sortSubcommands&&r.sort((i,s)=>i.name().localeCompare(s.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(i=>!i.hidden),n=e._getHelpOption();if(n&&!n.hidden){let i=n.short&&e._findOption(n.short),s=n.long&&e._findOption(n.long);!i&&!s?r.push(n):n.long&&!s?r.push(e.createOption(n.long,n.description)):n.short&&!i&&r.push(e.createOption(n.short,n.description))}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=>tc(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,a=2;function o(b,y){if(y){let E=`${b.padEnd(n+a)}${y}`;return r.wrap(E,i-s,n+a)}return b}function l(b){return b.join(`
`).replace(/^/gm," ".repeat(s))}let f=[`Usage: ${r.commandUsage(e)}`,""],p=r.commandDescription(e);p.length>0&&(f=f.concat([r.wrap(p,i,0),""]));let v=r.visibleArguments(e).map(b=>o(r.argumentTerm(b),r.argumentDescription(b)));v.length>0&&(f=f.concat(["Arguments:",l(v),""]));let g=r.visibleOptions(e).map(b=>o(r.optionTerm(b),r.optionDescription(b)));if(g.length>0&&(f=f.concat(["Options:",l(g),""])),this.showGlobalOptions){let b=r.visibleGlobalOptions(e).map(y=>o(r.optionTerm(y),r.optionDescription(y)));b.length>0&&(f=f.concat(["Global Options:",l(b),""]))}let c=r.visibleCommands(e).map(b=>o(r.subcommandTerm(b),r.subcommandDescription(b)));return c.length>0&&(f=f.concat(["Commands:",l(c),""])),f.join(`
`)}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",a=new RegExp(`[\\n][${s}]+`);if(e.match(a))return e;let o=r-n;if(o<i)return e;let l=e.slice(0,n),f=e.slice(n).replace(`\r
`,`
`),p=" ".repeat(n),g="\\s\u200B",c=new RegExp(`
|.{1,${o-1}}([${g}]|$)|[^${g}]+?([${g}]|$)`,"g"),b=f.match(c)||[];return l+b.map((y,E)=>y===`
`?"":(E>0?p:"")+y.trimEnd()).join(`
`)}};ms.Help=pn});var yn=d(bn=>{u();var{InvalidArgumentError:rc}=dt(),mn=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=ic(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 rc(`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 nc(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},vn=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 nc(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function ic(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}}bn.Option=mn;bn.DualOptions=vn});var bs=d(vs=>{u();function sc(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 ac(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(a=>a.slice(2)));let n=[],i=3,s=.4;return e.forEach(a=>{if(a.length<=1)return;let o=sc(t,a),l=Math.max(t.length,a.length);(l-o)/l>s&&(o<i?(i=o,n=[a]):o===i&&n.push(a))}),n.sort((a,o)=>a.localeCompare(o)),r&&(n=n.map(a=>`--${a}`)),n.length>1?`
(Did you mean one of ${n.join(", ")}?)`:n.length===1?`
(Did you mean ${n[0]}?)`:""}vs.suggestSimilar=ac});var Ss=d(Es=>{u();var oc=require("events").EventEmitter,_n=require("child_process"),ye=require("path"),wn=require("fs"),j=require("process"),{Argument:uc,humanReadableArgName:lc}=Kt(),{CommanderError:En}=dt(),{Help:fc}=gn(),{Option:ys,DualOptions:cc}=yn(),{suggestSimilar:_s}=bs(),Sn=class t extends oc{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=>j.stdout.write(r),writeErr:r=>j.stderr.write(r),getOutHelpWidth:()=>j.stdout.isTTY?j.stdout.columns:void 0,getErrHelpWidth:()=>j.stderr.isTTY?j.stderr.columns:void 0,outputError:(r,n)=>n(r)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let 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[,a,o]=e.match(/([^ ]+) *(.*)/),l=this.createCommand(a);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,o&&l.arguments(o),this._registerCommand(l),l.parent=this,l.copyInheritedSettings(this),i?this:l}createCommand(e){return new t(e)}createHelp(){return Object.assign(new fc,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
- 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._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,r){return new uc(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}helpCommand(e,r){if(typeof e=="boolean")return this._addImplicitHelpCommand=e,this;e=e??"help [command]";let[,n,i]=e.match(/([^ ]+) *(.*)/),s=r??"display help for command",a=this.createCommand(n);return a.helpOption(!1),i&&a.arguments(i),s&&a.description(s),this._addImplicitHelpCommand=!0,this._helpCommand=a,this}addHelpCommand(e,r){return typeof e!="object"?(this.helpCommand(e,r),this):(this._addImplicitHelpCommand=!0,this._helpCommand=e,this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,r){let n=["preSubcommand","preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
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 En(e,r,n)),j.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 ys(e,r)}_callParseArg(e,r,n,i){try{return e.parseArg(r,n)}catch(s){if(s.code==="commander.invalidArgument"){let a=`${i} ${s.message}`;this.error(a,{exitCode:s.exitCode,code:s.code})}throw s}}_registerOption(e){let r=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(r){let n=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${n}'
- already used by option '${r.flags}'`)}this.options.push(e)}_registerCommand(e){let r=i=>[i.name()].concat(i.aliases()),n=r(e).find(i=>this._findCommand(i));if(n){let i=r(this._findCommand(n)).join("|"),s=r(e).join("|");throw new Error(`cannot add command '${s}' as already have command '${i}'`)}this.commands.push(e)}addOption(e){this._registerOption(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");let i=(s,a,o)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let l=this.getOptionValue(n);s!==null&&e.parseArg?s=this._callParseArg(e,s,l,a):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,o)};return this.on("option:"+r,s=>{let a=`error: option '${e.flags}' argument '${s}' is invalid.`;i(s,a,"cli")}),e.envVar&&this.on("optionEnv:"+r,s=>{let a=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;i(s,a,"env")}),this}_optionEx(e,r,n,i,s){if(typeof r=="object"&&r instanceof ys)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let a=this.createOption(r,n);if(a.makeOptionMandatory(!!e.mandatory),typeof i=="function")a.default(s).argParser(i);else if(i instanceof RegExp){let o=i;i=(l,f)=>{let p=o.exec(l);return p?p[0]:f},a.default(s).argParser(i)}else a.default(i);return this.addOption(a)}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){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!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=j.argv,j.versions&&j.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":j.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(p,v){let g=ye.resolve(p,v);if(wn.existsSync(g))return g;if(i.includes(ye.extname(v)))return;let c=i.find(b=>wn.existsSync(`${g}${b}`));if(c)return`${g}${c}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=e._executableFile||`${this._name}-${e._name}`,o=this._executableDir||"";if(this._scriptPath){let p;try{p=wn.realpathSync(this._scriptPath)}catch{p=this._scriptPath}o=ye.resolve(ye.dirname(p),o)}if(o){let p=s(o,a);if(!p&&!e._executableFile&&this._scriptPath){let v=ye.basename(this._scriptPath,ye.extname(this._scriptPath));v!==this._name&&(p=s(o,`${v}-${e._name}`))}a=p||a}n=i.includes(ye.extname(a));let l;j.platform!=="win32"?n?(r.unshift(a),r=ws(j.execArgv).concat(r),l=_n.spawn(j.argv[0],r,{stdio:"inherit"})):l=_n.spawn(a,r,{stdio:"inherit"}):(r.unshift(a),r=ws(j.execArgv).concat(r),l=_n.spawn(j.execPath,r,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(v=>{j.on(v,()=>{l.killed===!1&&l.exitCode===null&&l.kill(v)})});let f=this._exitCallback;l.on("close",(p,v)=>{p=p??1,f?f(new En(p,"commander.executeSubCommandAsync","(close)")):j.exit(p)}),l.on("error",p=>{if(p.code==="ENOENT"){let v=o?`searched for local subcommand relative to directory '${o}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",g=`'${a}' does not exist
- if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
- ${v}`;throw new Error(g)}else if(p.code==="EACCES")throw new Error(`'${a}' not executable`);if(!f)j.exit(1);else{let v=new En(1,"commander.executeSubCommandAsync","(error)");v.nestedError=p,f(v)}}),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._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_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 a=i;if(i!==null&&n.parseArg){let o=`error: command-argument value '${i}' is invalid for argument '${n.name()}'.`;a=this._callParseArg(n,i,s,o)}return a};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((a,o)=>e(n,o,a),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(a=>{i.push({hookedCommand:s,callback:a})})}),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._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(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 a;return a=this._chainOrCallHooks(a,"preAction"),a=this._chainOrCall(a,()=>this._actionHandler(this.processedArgs)),this.parent&&(a=this._chainOrCall(a,()=>{this.parent.emit(s,e,r)})),a=this._chainOrCallHooks(a,"postAction"),a}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 a(l){return l.length>1&&l[0]==="-"}let o=null;for(;s.length;){let l=s.shift();if(l==="--"){i===n&&i.push(l),i.push(...s);break}if(o&&!a(l)){this.emit(`option:${o.name()}`,l);continue}if(o=null,a(l)){let f=this._findOption(l);if(f){if(f.required){let p=s.shift();p===void 0&&this.optionMissingArgument(f),this.emit(`option:${f.name()}`,p)}else if(f.optional){let p=null;s.length>0&&!a(s[0])&&(p=s.shift()),this.emit(`option:${f.name()}`,p)}else this.emit(`option:${f.name()}`);o=f.variadic?f:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let f=this._findOption(`-${l[1]}`);if(f){f.required||f.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${f.name()}`,l.slice(2)):(this.emit(`option:${f.name()}`),s.unshift(`-${l.slice(2)}`));continue}}if(/^--[^=]+=/.test(l)){let f=l.indexOf("="),p=this._findOption(l.slice(0,f));if(p&&(p.required||p.optional)){this.emit(`option:${p.name()}`,l.slice(f+1));continue}}if(a(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(this._getHelpCommand()&&l===this._getHelpCommand().name()){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}
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
`),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 j.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()}`,j.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new cc(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=a=>{let o=a.attributeName(),l=this.getOptionValue(o),f=this.options.find(v=>v.negate&&o===v.attributeName()),p=this.options.find(v=>!v.negate&&o===v.attributeName());return f&&(f.presetArg===void 0&&l===!1||f.presetArg!==void 0&&l===f.presetArg)?f:p||a},i=a=>{let o=n(a),l=o.attributeName();return this.getOptionValueSource(l)==="env"?`environment variable '${o.envVar}'`:`option '${o.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 a=s.createHelp().visibleOptions(s).filter(o=>o.long).map(o=>o.long);i=i.concat(a),s=s.parent}while(s&&!s._enablePositionalOptions);r=_s(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=_s(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._registerOption(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
`),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");let n=this.parent?._findCommand(e);if(n){let i=[n.name()].concat(n.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${i}'`)}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=>lc(n));return[].concat(this.options.length||this._helpOption!==null?"[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=ye.basename(e,ye.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._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",n))}helpOption(e,r){return typeof e=="boolean"?(e?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(e=e??"-h, --help",r=r??"display help for command",this._helpOption=this.createOption(e,r),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this}help(e){this.outputHelp(e);let r=j.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.
Expecting one of '${n.join("', '")}'`);let i=`${e}Help`;return this.on(i,s=>{let a;typeof r=="function"?a=r({error:s.error,command:s.command}):a=r,a&&s.write(`${a}
`)}),this}_outputHelpIfRequested(e){let r=this._getHelpOption();r&&e.find(i=>r.is(i))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function ws(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})}Es.Command=Sn});var Ms=d(se=>{u();var{Argument:Os}=Kt(),{Command:On}=Ss(),{CommanderError:hc,InvalidArgumentError:xs}=dt(),{Help:dc}=gn(),{Option:As}=yn();se.program=new On;se.createCommand=t=>new On(t);se.createOption=(t,e)=>new As(t,e);se.createArgument=(t,e)=>new Os(t,e);se.Command=On;se.Option=As;se.Argument=Os;se.Help=dc;se.CommanderError=hc;se.InvalidArgumentError=xs;se.InvalidOptionArgumentError=xs});var Z=d((sv,Ts)=>{"use strict";u();var xn=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
Found: ${e.toString().split(`
`)[0]}
`),Error.captureStackTrace(this,t)}};Ts.exports=t=>{if(t.length>2)throw new xn(t);function e(n={}){this.options=n}e.prototype.transform=t;function r(n){return new e(n)}return r.Format=e,r}});var Ns=d((ov,Ls)=>{u();var Ps={};Ls.exports=Ps;var $s={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys($s).forEach(function(t){var e=$s[t],r=Ps[t]=[];r.open="\x1B["+e[0]+"m",r.close="\x1B["+e[1]+"m"})});var Ds=d((lv,js)=>{"use strict";u();js.exports=function(t,e){e=e||process.argv||[];var r=e.indexOf("--"),n=/^-{1,2}/.test(t)?"":"--",i=e.indexOf(n+t);return i!==-1&&(r===-1?!0:i<r)}});var Is=d((cv,ks)=>{"use strict";u();var pc=require("os"),le=Ds(),Y=process.env,ze=void 0;le("no-color")||le("no-colors")||le("color=false")?ze=!1:(le("color")||le("colors")||le("color=true")||le("color=always"))&&(ze=!0);"FORCE_COLOR"in Y&&(ze=Y.FORCE_COLOR.length===0||parseInt(Y.FORCE_COLOR,10)!==0);function gc(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function mc(t){if(ze===!1)return 0;if(le("color=16m")||le("color=full")||le("color=truecolor"))return 3;if(le("color=256"))return 2;if(t&&!t.isTTY&&ze!==!0)return 0;var e=ze?1:0;if(process.platform==="win32"){var r=pc.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in Y)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(i){return i in Y})||Y.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Y)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Y.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in Y){var n=parseInt((Y.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Y.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Y.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(Y.TERM)||"COLORTERM"in Y?1:(Y.TERM==="dumb",e)}function An(t){var e=mc(t);return gc(e)}ks.exports={supportsColor:An,stdout:An(process.stdout),stderr:An(process.stderr)}});var Hs=d((dv,Fs)=>{u();Fs.exports=function(e,r){var n="";e=e||"Run the trap, drop the bass",e=e.split("");var i={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(s){s=s.toLowerCase();var a=i[s]||[" "],o=Math.floor(Math.random()*a.length);typeof i[s]<"u"?n+=i[s][o]:n+=s}),n}});var Ws=d((gv,Vs)=>{u();Vs.exports=function(e,r){e=e||" he is here ";var n={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},i=[].concat(n.up,n.down,n.mid);function s(l){var f=Math.floor(Math.random()*l);return f}function a(l){var f=!1;return i.filter(function(p){f=p===l}),f}function o(l,f){var p="",v,g;f=f||{},f.up=typeof f.up<"u"?f.up:!0,f.mid=typeof f.mid<"u"?f.mid:!0,f.down=typeof f.down<"u"?f.down:!0,f.size=typeof f.size<"u"?f.size:"maxi",l=l.split("");for(g in l)if(!a(g)){switch(p=p+l[g],v={up:0,down:0,mid:0},f.size){case"mini":v.up=s(8),v.mid=s(2),v.down=s(8);break;case"maxi":v.up=s(16)+3,v.mid=s(4)+1,v.down=s(64)+3;break;default:v.up=s(8)+1,v.mid=s(6)/2,v.down=s(8)+1;break}var c=["up","mid","down"];for(var b in c)for(var y=c[b],E=0;E<=v[y];E++)f[y]&&(p=p+n[y][s(n[y].length)])}return p}return o(e,r)}});var Bs=d((vv,Us)=>{u();Us.exports=function(t){return function(e,r,n){if(e===" ")return e;switch(r%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var Gs=d((yv,zs)=>{u();zs.exports=function(t){return function(e,r,n){return r%2===0?e:t.inverse(e)}}});var Ks=d((wv,Ys)=>{u();Ys.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(r,n,i){return r===" "?r:t[e[n++%e.length]](r)}}});var Zs=d((Sv,Js)=>{u();Js.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,i){return r===" "?r:t[e[Math.round(Math.random()*(e.length-2))]](r)}}});var na=d((Av,ra)=>{u();var q={};ra.exports=q;q.themes={};var vc=require("util"),$e=q.styles=Ns(),Xs=Object.defineProperties,bc=new RegExp(/[\r\n]+/g);q.supportsColor=Is().supportsColor;typeof q.enabled>"u"&&(q.enabled=q.supportsColor()!==!1);q.enable=function(){q.enabled=!0};q.disable=function(){q.enabled=!1};q.stripColors=q.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var xv=q.stylize=function(e,r){if(!q.enabled)return e+"";var n=$e[r];return!n&&r in q?q[r](e):n.open+e+n.close},yc=/[|\\{}()[\]^$+*?.]/g,_c=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(yc,"\\$&")};function ea(t){var e=function r(){return Ec.apply(r,arguments)};return e._styles=t,e.__proto__=wc,e}var ta=function(){var t={};return $e.grey=$e.gray,Object.keys($e).forEach(function(e){$e[e].closeRe=new RegExp(_c($e[e].close),"g"),t[e]={get:function(){return ea(this._styles.concat(e))}}}),t}(),wc=Xs(function(){},ta);function Ec(){var t=Array.prototype.slice.call(arguments),e=t.map(function(a){return a!=null&&a.constructor===String?a:vc.inspect(a)}).join(" ");if(!q.enabled||!e)return e;for(var r=e.indexOf(`
`)!=-1,n=this._styles,i=n.length;i--;){var s=$e[n[i]];e=s.open+e.replace(s.closeRe,s.open)+s.close,r&&(e=e.replace(bc,function(a){return s.close+a+s.open}))}return e}q.setTheme=function(t){if(typeof t=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in t)(function(r){q[r]=function(n){if(typeof t[r]=="object"){var i=n;for(var s in t[r])i=q[t[r][s]](i);return i}return q[t[r]](n)}})(e)};function Sc(){var t={};return Object.keys(ta).forEach(function(e){t[e]={get:function(){return ea([e])}}}),t}var Oc=function(e,r){var n=r.split("");return n=n.map(e),n.join("")};q.trap=Hs();q.zalgo=Ws();q.maps={};q.maps.america=Bs()(q);q.maps.zebra=Gs()(q);q.maps.rainbow=Ks()(q);q.maps.random=Zs()(q);for(Qs in q.maps)(function(t){q[t]=function(e){return Oc(q.maps[t],e)}})(Qs);var Qs;Xs(q,Sc())});var Mn=d((qv,ia)=>{u();var xc=na();ia.exports=xc});var sa=d(qn=>{"use strict";u();qn.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};qn.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var aa=d(Rn=>{"use strict";u();Rn.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Rn.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var oa=d(Cn=>{"use strict";u();Cn.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};Cn.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var ua=d(Jt=>{"use strict";u();Object.defineProperty(Jt,"cli",{value:sa()});Object.defineProperty(Jt,"npm",{value:aa()});Object.defineProperty(Jt,"syslog",{value:oa()})});var F=d(pt=>{"use strict";u();Object.defineProperty(pt,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(pt,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(pt,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(pt,"configs",{value:ua()})});var Xt=d((Fv,Qt)=>{"use strict";u();var Pn=Mn(),{LEVEL:Tn,MESSAGE:$n}=F();Pn.enabled=!0;var la=/\s+/,Zt=class t{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let r=Object.keys(e).reduce((n,i)=>(n[i]=la.test(e[i])?e[i].split(la):e[i],n),{});return t.allColors=Object.assign({},t.allColors||{},r),t.allColors}addColors(e){return t.addColors(e)}colorize(e,r,n){if(typeof n>"u"&&(n=r),!Array.isArray(t.allColors[e]))return Pn[t.allColors[e]](n);for(let i=0,s=t.allColors[e].length;i<s;i++)n=Pn[t.allColors[e][i]](n);return n}transform(e,r){return r.all&&typeof e[$n]=="string"&&(e[$n]=this.colorize(e[Tn],e.level,e[$n])),(r.level||r.all||!r.message)&&(e.level=this.colorize(e[Tn],e.level)),(r.all||r.message)&&(e.message=this.colorize(e[Tn],e.level,e.message)),e}};Qt.exports=t=>new Zt(t);Qt.exports.Colorizer=Qt.exports.Format=Zt});var ca=d((Vv,fa)=>{"use strict";u();var{Colorizer:Ac}=Xt();fa.exports=t=>(Ac.addColors(t.colors||t),t)});var da=d((Uv,ha)=>{"use strict";u();var Mc=Z();ha.exports=Mc(t=>(t.message=` ${t.message}`,t))});var ma=d((zv,ga)=>{"use strict";u();var qc=Z(),{LEVEL:pa,MESSAGE:Ln}=F();ga.exports=qc((t,{stack:e,cause:r})=>{if(t instanceof Error){let i=Object.assign({},t,{level:t.level,[pa]:t[pa]||t.level,message:t.message,[Ln]:t[Ln]||t.message});return e&&(i.stack=t.stack),r&&(i.cause=t.cause),i}if(!(t.message instanceof Error))return t;let n=t.message;return Object.assign(t,n),t.message=n.message,t[Ln]=n.message,e&&(t.stack=n.stack),r&&(t.cause=n.cause),t})});var jn=d((Yv,tr)=>{"use strict";u();var{configs:Rc,LEVEL:va,MESSAGE:Nn}=F(),er=class t{constructor(e={levels:Rc.npm.levels}){this.paddings=t.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let r=Object.keys(e).map(n=>n.length);return Math.max(...r)}static paddingForLevel(e,r,n){let i=n+1-e.length,s=Math.floor(i/r.length);return`${r}${r.repeat(s)}`.slice(0,i)}static paddingForLevels(e,r=" "){let n=t.getLongestLevel(e);return Object.keys(e).reduce((i,s)=>(i[s]=t.paddingForLevel(s,r,n),i),{})}transform(e,r){return e.message=`${this.paddings[e[va]]}${e.message}`,e[Nn]&&(e[Nn]=`${this.paddings[e[va]]}${e[Nn]}`),e}};tr.exports=t=>new er(t);tr.exports.Padder=tr.exports.Format=er});var ba=d((Jv,Dn)=>{"use strict";u();var{Colorizer:Cc}=Xt(),{Padder:Tc}=jn(),{configs:$c,MESSAGE:Pc}=F(),rr=class{constructor(e={}){e.levels||(e.levels=$c.cli.levels),this.colorizer=new Cc(e),this.padder=new Tc(e),this.options=e}transform(e,r){return this.colorizer.transform(this.padder.transform(e,r),r),e[Pc]=`${e.level}:${e.message}`,e}};Dn.exports=t=>new rr(t);Dn.exports.Format=rr});var _a=d((Qv,kn)=>{"use strict";u();var Lc=Z();function ya(t){if(t.every(Nc))return e=>{let r=e;for(let n=0;n<t.length;n++)if(r=t[n].transform(r,t[n].options),!r)return!1;return r}}function Nc(t){if(typeof t.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
`));return!0}kn.exports=(...t)=>{let e=Lc(ya(t)),r=e();return r.Format=e.Format,r};kn.exports.cascade=ya});var gt=d((Vn,Oa)=>{"use strict";u();var{hasOwnProperty:nr}=Object.prototype,Le=Hn();Le.configure=Hn;Le.stringify=Le;Le.default=Le;Vn.stringify=Le;Vn.configure=Hn;Oa.exports=Le;var jc=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function Ee(t){return t.length<5e3&&!jc.test(t)?`"${t}"`:JSON.stringify(t)}function In(t){if(t.length>200)return t.sort();for(let e=1;e<t.length;e++){let r=t[e],n=e;for(;n!==0&&t[n-1]>r;)t[n]=t[n-1],n--;t[n]=r}return t}var Dc=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Fn(t){return Dc.call(t)!==void 0&&t.length!==0}function wa(t,e,r){t.length<r&&(r=t.length);let n=e===","?"":" ",i=`"0":${n}${t[0]}`;for(let s=1;s<r;s++)i+=`${e}"${s}":${n}${t[s]}`;return i}function kc(t){if(nr.call(t,"circularValue")){let e=t.circularValue;if(typeof e=="string")return`"${e}"`;if(e==null)return e;if(e===Error||e===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function Ea(t,e){let r;if(nr.call(t,e)&&(r=t[e],typeof r!="boolean"))throw new TypeError(`The "${e}" argument must be of type boolean`);return r===void 0?!0:r}function Sa(t,e){let r;if(nr.call(t,e)){if(r=t[e],typeof r!="number")throw new TypeError(`The "${e}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${e}" argument must be an integer`);if(r<1)throw new RangeError(`The "${e}" argument must be >= 1`)}return r===void 0?1/0:r}function Pe(t){return t===1?"1 item":`${t} items`}function Ic(t){let e=new Set;for(let r of t)(typeof r=="string"||typeof r=="number")&&e.add(String(r));return e}function Fc(t){if(nr.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return r=>{let n=`Object can not safely be stringified. Received type ${typeof r}`;throw typeof r!="function"&&(n+=` (${r.toString()})`),new Error(n)}}}function Hn(t){t={...t};let e=Fc(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let r=kc(t),n=Ea(t,"bigint"),i=Ea(t,"deterministic"),s=Sa(t,"maximumDepth"),a=Sa(t,"maximumBreadth");function o(g,c,b,y,E,A){let S=c[g];switch(typeof S=="object"&&S!==null&&typeof S.toJSON=="function"&&(S=S.toJSON(g)),S=y.call(c,g,S),typeof S){case"string":return Ee(S);case"object":{if(S===null)return"null";if(b.indexOf(S)!==-1)return r;let O="",T=",",P=A;if(Array.isArray(S)){if(S.length===0)return"[]";if(s<b.length+1)return'"[Array]"';b.push(S),E!==""&&(A+=E,O+=`
${A}`,T=`,
${A}`);let H=Math.min(S.length,a),ee=0;for(;ee<H-1;ee++){let Ce=o(String(ee),S,b,y,E,A);O+=Ce!==void 0?Ce:"null",O+=T}let te=o(String(ee),S,b,y,E,A);if(O+=te!==void 0?te:"null",S.length-1>a){let Ce=S.length-a-1;O+=`${T}"... ${Pe(Ce)} not stringified"`}return E!==""&&(O+=`
${P}`),b.pop(),`[${O}]`}let N=Object.keys(S),I=N.length;if(I===0)return"{}";if(s<b.length+1)return'"[Object]"';let C="",W="";E!==""&&(A+=E,T=`,
${A}`,C=" ");let X=Math.min(I,a);i&&!Fn(S)&&(N=In(N)),b.push(S);for(let H=0;H<X;H++){let ee=N[H],te=o(ee,S,b,y,E,A);te!==void 0&&(O+=`${W}${Ee(ee)}:${C}${te}`,W=T)}if(I>a){let H=I-a;O+=`${W}"...":${C}"${Pe(H)} not stringified"`,W=T}return E!==""&&W.length>1&&(O=`
${A}${O}
${P}`),b.pop(),`{${O}}`}case"number":return isFinite(S)?String(S):e?e(S):"null";case"boolean":return S===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(S);default:return e?e(S):void 0}}function l(g,c,b,y,E,A){switch(typeof c=="object"&&c!==null&&typeof c.toJSON=="function"&&(c=c.toJSON(g)),typeof c){case"string":return Ee(c);case"object":{if(c===null)return"null";if(b.indexOf(c)!==-1)return r;let S=A,O="",T=",";if(Array.isArray(c)){if(c.length===0)return"[]";if(s<b.length+1)return'"[Array]"';b.push(c),E!==""&&(A+=E,O+=`
${A}`,T=`,
${A}`);let I=Math.min(c.length,a),C=0;for(;C<I-1;C++){let X=l(String(C),c[C],b,y,E,A);O+=X!==void 0?X:"null",O+=T}let W=l(String(C),c[C],b,y,E,A);if(O+=W!==void 0?W:"null",c.length-1>a){let X=c.length-a-1;O+=`${T}"... ${Pe(X)} not stringified"`}return E!==""&&(O+=`
${S}`),b.pop(),`[${O}]`}b.push(c);let P="";E!==""&&(A+=E,T=`,
${A}`,P=" ");let N="";for(let I of y){let C=l(I,c[I],b,y,E,A);C!==void 0&&(O+=`${N}${Ee(I)}:${P}${C}`,N=T)}return E!==""&&N.length>1&&(O=`
${A}${O}
${S}`),b.pop(),`{${O}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function f(g,c,b,y,E){switch(typeof c){case"string":return Ee(c);case"object":{if(c===null)return"null";if(typeof c.toJSON=="function"){if(c=c.toJSON(g),typeof c!="object")return f(g,c,b,y,E);if(c===null)return"null"}if(b.indexOf(c)!==-1)return r;let A=E;if(Array.isArray(c)){if(c.length===0)return"[]";if(s<b.length+1)return'"[Array]"';b.push(c),E+=y;let C=`
${E}`,W=`,
${E}`,X=Math.min(c.length,a),H=0;for(;H<X-1;H++){let te=f(String(H),c[H],b,y,E);C+=te!==void 0?te:"null",C+=W}let ee=f(String(H),c[H],b,y,E);if(C+=ee!==void 0?ee:"null",c.length-1>a){let te=c.length-a-1;C+=`${W}"... ${Pe(te)} not stringified"`}return C+=`
${A}`,b.pop(),`[${C}]`}let S=Object.keys(c),O=S.length;if(O===0)return"{}";if(s<b.length+1)return'"[Object]"';E+=y;let T=`,
${E}`,P="",N="",I=Math.min(O,a);Fn(c)&&(P+=wa(c,T,a),S=S.slice(c.length),I-=c.length,N=T),i&&(S=In(S)),b.push(c);for(let C=0;C<I;C++){let W=S[C],X=f(W,c[W],b,y,E);X!==void 0&&(P+=`${N}${Ee(W)}: ${X}`,N=T)}if(O>a){let C=O-a;P+=`${N}"...": "${Pe(C)} not stringified"`,N=T}return N!==""&&(P=`
${E}${P}
${A}`),b.pop(),`{${P}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function p(g,c,b){switch(typeof c){case"string":return Ee(c);case"object":{if(c===null)return"null";if(typeof c.toJSON=="function"){if(c=c.toJSON(g),typeof c!="object")return p(g,c,b);if(c===null)return"null"}if(b.indexOf(c)!==-1)return r;let y="";if(Array.isArray(c)){if(c.length===0)return"[]";if(s<b.length+1)return'"[Array]"';b.push(c);let T=Math.min(c.length,a),P=0;for(;P<T-1;P++){let I=p(String(P),c[P],b);y+=I!==void 0?I:"null",y+=","}let N=p(String(P),c[P],b);if(y+=N!==void 0?N:"null",c.length-1>a){let I=c.length-a-1;y+=`,"... ${Pe(I)} not stringified"`}return b.pop(),`[${y}]`}let E=Object.keys(c),A=E.length;if(A===0)return"{}";if(s<b.length+1)return'"[Object]"';let S="",O=Math.min(A,a);Fn(c)&&(y+=wa(c,",",a),E=E.slice(c.length),O-=c.length,S=","),i&&(E=In(E)),b.push(c);for(let T=0;T<O;T++){let P=E[T],N=p(P,c[P],b);N!==void 0&&(y+=`${S}${Ee(P)}:${N}`,S=",")}if(A>a){let T=A-a;y+=`${S}"...":"${Pe(T)} not stringified"`}return b.pop(),`{${y}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function v(g,c,b){if(arguments.length>1){let y="";if(typeof b=="number"?y=" ".repeat(Math.min(b,10)):typeof b=="string"&&(y=b.slice(0,10)),c!=null){if(typeof c=="function")return o("",{"":g},[],c,y,"");if(Array.isArray(c))return l("",g,[],Ic(c),y,"")}if(y.length!==0)return f("",g,[],y,"")}return p("",g,[])}return v}});var Wn=d((t1,xa)=>{"use strict";u();var Hc=Z(),{MESSAGE:Vc}=F(),Wc=gt();function Uc(t,e){return typeof e=="bigint"?e.toString():e}xa.exports=Hc((t,e)=>{let r=Wc.configure(e);return t[Vc]=r(t,e.replacer||Uc,e.space),t})});var Ma=d((n1,Aa)=>{"use strict";u();var Bc=Z();Aa.exports=Bc((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var Ra=d((s1,qa)=>{"use strict";u();var zc=Z(),{MESSAGE:Gc}=F(),Yc=gt();qa.exports=zc(t=>{let e={};return t.message&&(e["@message"]=t.message,delete t.message),t.timestamp&&(e["@timestamp"]=t.timestamp,delete t.timestamp),e["@fields"]=t,t[Gc]=Yc(e),t})});var Ta=d((o1,Ca)=>{"use strict";u();var Kc=Z();function Jc(t,e,r){let n=e.reduce((s,a)=>(s[a]=t[a],delete t[a],s),{}),i=Object.keys(t).reduce((s,a)=>(s[a]=t[a],delete t[a],s),{});return Object.assign(t,n,{[r]:i}),t}function Zc(t,e,r){return t[r]=e.reduce((n,i)=>(n[i]=t[i],delete t[i],n),{}),t}Ca.exports=Kc((t,e={})=>{let r="metadata";e.key&&(r=e.key);let n=[];return!e.fillExcept&&!e.fillWith&&(n.push("level"),n.push("message")),e.fillExcept&&(n=e.fillExcept),n.length>0?Jc(t,n,r):e.fillWith?Zc(t,e.fillWith,r):t})});var Pa=d((l1,$a)=>{u();var Ge=1e3,Ye=Ge*60,Ke=Ye*60,Ne=Ke*24,Qc=Ne*7,Xc=Ne*365.25;$a.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return eh(t);if(r==="number"&&isFinite(t))return e.long?rh(t):th(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function eh(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*Xc;case"weeks":case"week":case"w":return r*Qc;case"days":case"day":case"d":return r*Ne;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ke;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ye;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ge;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function th(t){var e=Math.abs(t);return e>=Ne?Math.round(t/Ne)+"d":e>=Ke?Math.round(t/Ke)+"h":e>=Ye?Math.round(t/Ye)+"m":e>=Ge?Math.round(t/Ge)+"s":t+"ms"}function rh(t){var e=Math.abs(t);return e>=Ne?ir(t,e,Ne,"day"):e>=Ke?ir(t,e,Ke,"hour"):e>=Ye?ir(t,e,Ye,"minute"):e>=Ge?ir(t,e,Ge,"second"):t+" ms"}function ir(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Na=d((mt,La)=>{"use strict";u();var nh=Z(),ih=Pa();La.exports=nh(t=>{let e=+new Date;return mt.diff=e-(mt.prevTime||e),mt.prevTime=e,t.ms=`+${ih(mt.diff)}`,t})});var ka=d((h1,Da)=>{"use strict";u();var sh=require("util").inspect,ah=Z(),{LEVEL:oh,MESSAGE:ja,SPLAT:uh}=F();Da.exports=ah((t,e={})=>{let r=Object.assign({},t);return delete r[oh],delete r[ja],delete r[uh],t[ja]=sh(r,!1,e.depth||null,e.colorize),t})});var Ia=d((p1,ar)=>{"use strict";u();var{MESSAGE:lh}=F(),sr=class{constructor(e){this.template=e}transform(e){return e[lh]=this.template(e),e}};ar.exports=t=>new sr(t);ar.exports.Printf=ar.exports.Format=sr});var Va=d((m1,Ha)=>{"use strict";u();var fh=Z(),{MESSAGE:Fa}=F(),ch=gt();Ha.exports=fh(t=>{let e=ch(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),r=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[Fa]=`${t.level}:${r} ${t.message} ${e}`:t[Fa]=`${t.level}:${r} ${t.message}`,t})});var Ba=d((b1,Ua)=>{"use strict";u();var hh=require("util"),{SPLAT:Wa}=F(),dh=/%[scdjifoO%]/g,ph=/%%/g,Un=class{constructor(e){this.options=e}_splat(e,r){let n=e.message,i=e[Wa]||e.splat||[],s=n.match(ph),a=s&&s.length||0,l=r.length-a-i.length,f=l<0?i.splice(l,-1*l):[],p=f.length;if(p)for(let v=0;v<p;v++)Object.assign(e,f[v]);return e.message=hh.format(n,...i),e}transform(e){let r=e.message,n=e[Wa]||e.splat;if(!n||!n.length)return e;let i=r&&r.match&&r.match(dh);if(!i&&(n||n.length)){let s=n.length>1?n.splice(0):n,a=s.length;if(a)for(let o=0;o<a;o++)Object.assign(e,s[o]);return e}return i?this._splat(e,i):e}};Ua.exports=t=>new Un(t)});var Ga=d((or,za)=>{u();(function(t,e){typeof or=="object"&&typeof za<"u"?e(or):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(or,function(t){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,r="\\d\\d?",n="\\d\\d",i="\\d{3}",s="\\d{4}",a="[^\\s]+",o=/\[([^]*?)\]/gm;function l(m,_){for(var L=[],J=0,x=m.length;J<x;J++)L.push(m[J].substr(0,_));return L}var f=function(m){return function(_,L){var J=L[m].map(function(de){return de.toLowerCase()}),x=J.indexOf(_.toLowerCase());return x>-1?x:null}};function p(m){for(var _=[],L=1;L<arguments.length;L++)_[L-1]=arguments[L];for(var J=0,x=_;J<x.length;J++){var de=x[J];for(var Te in de)m[Te]=de[Te]}return m}var v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],g=["January","February","March","April","May","June","July","August","September","October","November","December"],c=l(g,3),b=l(v,3),y={dayNamesShort:b,dayNames:v,monthNamesShort:c,monthNames:g,amPm:["am","pm"],DoFn:function(m){return m+["th","st","nd","rd"][m%10>3?0:(m-m%10!==10?1:0)*m%10]}},E=p({},y),A=function(m){return E=p(E,m)},S=function(m){return m.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},O=function(m,_){for(_===void 0&&(_=2),m=String(m);m.length<_;)m="0"+m;return m},T={D:function(m){return String(m.getDate())},DD:function(m){return O(m.getDate())},Do:function(m,_){return _.DoFn(m.getDate())},d:function(m){return String(m.getDay())},dd:function(m){return O(m.getDay())},ddd:function(m,_){return _.dayNamesShort[m.getDay()]},dddd:function(m,_){return _.dayNames[m.getDay()]},M:function(m){return String(m.getMonth()+1)},MM:function(m){return O(m.getMonth()+1)},MMM:function(m,_){return _.monthNamesShort[m.getMonth()]},MMMM:function(m,_){return _.monthNames[m.getMonth()]},YY:function(m){return O(String(m.getFullYear()),4).substr(2)},YYYY:function(m){return O(m.getFullYear(),4)},h:function(m){return String(m.getHours()%12||12)},hh:function(m){return O(m.getHours()%12||12)},H:function(m){return String(m.getHours())},HH:function(m){return O(m.getHours())},m:function(m){return String(m.getMinutes())},mm:function(m){return O(m.getMinutes())},s:function(m){return String(m.getSeconds())},ss:function(m){return O(m.getSeconds())},S:function(m){return String(Math.round(m.getMilliseconds()/100))},SS:function(m){return O(Math.round(m.getMilliseconds()/10),2)},SSS:function(m){return O(m.getMilliseconds(),3)},a:function(m,_){return m.getHours()<12?_.amPm[0]:_.amPm[1]},A:function(m,_){return m.getHours()<12?_.amPm[0].toUpperCase():_.amPm[1].toUpperCase()},ZZ:function(m){var _=m.getTimezoneOffset();return(_>0?"-":"+")+O(Math.floor(Math.abs(_)/60)*100+Math.abs(_)%60,4)},Z:function(m){var _=m.getTimezoneOffset();return(_>0?"-":"+")+O(Math.floor(Math.abs(_)/60),2)+":"+O(Math.abs(_)%60,2)}},P=function(m){return+m-1},N=[null,r],I=[null,a],C=["isPm",a,function(m,_){var L=m.toLowerCase();return L===_.amPm[0]?0:L===_.amPm[1]?1:null}],W=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(m){var _=(m+"").match(/([+-]|\d\d)/gi);if(_){var L=+_[1]*60+parseInt(_[2],10);return _[0]==="+"?L:-L}return 0}],X={D:["day",r],DD:["day",n],Do:["day",r+a,function(m){return parseInt(m,10)}],M:["month",r,P],MM:["month",n,P],YY:["year",n,function(m){var _=new Date,L=+(""+_.getFullYear()).substr(0,2);return+(""+(+m>68?L-1:L)+m)}],h:["hour",r,void 0,"isPm"],hh:["hour",n,void 0,"isPm"],H:["hour",r],HH:["hour",n],m:["minute",r],mm:["minute",n],s:["second",r],ss:["second",n],YYYY:["year",s],S:["millisecond","\\d",function(m){return+m*100}],SS:["millisecond",n,function(m){return+m*10}],SSS:["millisecond",i],d:N,dd:N,ddd:I,dddd:I,MMM:["month",a,f("monthNamesShort")],MMMM:["month",a,f("monthNames")],a:C,A:C,ZZ:W,Z:W},H={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},ee=function(m){return p(H,m)},te=function(m,_,L){if(_===void 0&&(_=H.default),L===void 0&&(L={}),typeof m=="number"&&(m=new Date(m)),Object.prototype.toString.call(m)!=="[object Date]"||isNaN(m.getTime()))throw new Error("Invalid Date pass to format");_=H[_]||_;var J=[];_=_.replace(o,function(de,Te){return J.push(Te),"@@@"});var x=p(p({},E),L);return _=_.replace(e,function(de){return T[de](m,x)}),_.replace(/@@@/g,function(){return J.shift()})};function Ce(m,_,L){if(L===void 0&&(L={}),typeof _!="string")throw new Error("Invalid format in fecha parse");if(_=H[_]||_,m.length>1e3)return null;var J=new Date,x={year:J.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},de=[],Te=[],ft=_.replace(o,function(ct,Be){return Te.push(S(Be)),"@@@"}),Ut={},fs={};ft=S(ft).replace(e,function(ct){var Be=X[ct],ln=Be[0],Bf=Be[1],ps=Be[3];if(Ut[ln])throw new Error("Invalid format. "+ln+" specified twice in format");return Ut[ln]=!0,ps&&(fs[ps]=!0),de.push(Be),"("+Bf+")"}),Object.keys(fs).forEach(function(ct){if(!Ut[ct])throw new Error("Invalid format. "+ct+" is required in specified format")}),ft=ft.replace(/@@@/g,function(){return Te.shift()});var Bt=m.match(new RegExp(ft,"i"));if(!Bt)return null;for(var Vf=p(p({},E),L),ue=1;ue<Bt.length;ue++){var cs=de[ue-1],Wf=cs[0],hs=cs[2],ds=hs?hs(Bt[ue],Vf):+Bt[ue];if(ds==null)return null;x[Wf]=ds}x.isPm===1&&x.hour!=null&&+x.hour!=12?x.hour=+x.hour+12:x.isPm===0&&+x.hour==12&&(x.hour=0);var zt;if(x.timezoneOffset==null){zt=new Date(x.year,x.month,x.day,x.hour,x.minute,x.second,x.millisecond);for(var Gt=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],ue=0,Uf=Gt.length;ue<Uf;ue++)if(Ut[Gt[ue][0]]&&x[Gt[ue][0]]!==zt[Gt[ue][1]]())return null}else if(zt=new Date(Date.UTC(x.year,x.month,x.day,x.hour,x.minute-x.timezoneOffset,x.second,x.millisecond)),x.month>11||x.month<0||x.day>31||x.day<1||x.hour>23||x.hour<0||x.minute>59||x.minute<0||x.second>59||x.second<0)return null;return zt}var Hf={format:te,parse:Ce,defaultI18n:y,setGlobalDateI18n:A,setGlobalDateMasks:ee};t.assign=p,t.default=Hf,t.format=te,t.parse=Ce,t.defaultI18n=y,t.setGlobalDateI18n=A,t.setGlobalDateMasks=ee,Object.defineProperty(t,"__esModule",{value:!0})})});var Ka=d((w1,Ya)=>{"use strict";u();var gh=Ga(),mh=Z();Ya.exports=mh((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():gh.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var Za=d((S1,Ja)=>{"use strict";u();var Bn=Mn(),vh=Z(),{MESSAGE:zn}=F();Ja.exports=vh((t,e)=>(e.level!==!1&&(t.level=Bn.strip(t.level)),e.message!==!1&&(t.message=Bn.strip(String(t.message))),e.raw!==!1&&t[zn]&&(t[zn]=Bn.strip(String(t[zn]))),t))});var Yn=d(Gn=>{"use strict";u();var bh=Gn.format=Z();Gn.levels=ca();function B(t,e){Object.defineProperty(bh,t,{get(){return e()},configurable:!0})}B("align",function(){return da()});B("errors",function(){return ma()});B("cli",function(){return ba()});B("combine",function(){return _a()});B("colorize",function(){return Xt()});B("json",function(){return Wn()});B("label",function(){return Ma()});B("logstash",function(){return Ra()});B("metadata",function(){return Ta()});B("ms",function(){return Na()});B("padLevels",function(){return jn()});B("prettyPrint",function(){return ka()});B("printf",function(){return Ia()});B("simple",function(){return Va()});B("splat",function(){return Ba()});B("timestamp",function(){return Ka()});B("uncolorize",function(){return Za()})});var Kn=d(ur=>{"use strict";u();var{format:Qa}=require("util");ur.warn={deprecated(t){return()=>{throw new Error(Qa("{ %s } was removed in [email protected].",t))}},useFormat(t){return()=>{throw new Error([Qa("{ %s } was removed in [email protected].",t),"Use a custom winston.format = winston.format(function) instead."].join(`
`))}},forFunctions(t,e,r){r.forEach(n=>{t[n]=ur.warn[e](n)})},forProperties(t,e,r){r.forEach(n=>{let i=ur.warn[e](n);Object.defineProperty(t,n,{get:i,set:i})})}}});var Xa=d((R1,yh)=>{yh.exports={name:"winston",description:"A logger for just about everything.",version:"3.13.0",author:"Charlie Robbins <[email protected]>",maintainers:["David Hyde <[email protected]>"],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{"@dabh/diagnostics":"^2.0.2","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.4.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.7.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^5.0.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^15.1.0",rimraf:"^5.0.5",split2:"^4.1.0","std-mocks":"^2.0.0",through2:"^4.0.2","winston-compat":"^0.1.5"},main:"./lib/winston.js",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"rimraf test/fixtures/logs/* && mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var to=d((C1,eo)=>{u();eo.exports=require("util").deprecate});var Jn=d(($1,ro)=>{u();ro.exports=require("stream")});var Qn=d((L1,io)=>{"use strict";u();function _h(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(Zn,this,t)):process.nextTick(Zn,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(lr,r):(r._writableState.errorEmitted=!0,process.nextTick(no,r,s)):process.nextTick(no,r,s):e?(process.nextTick(lr,r),e(s)):process.nextTick(lr,r)}),this)}function no(t,e){Zn(t,e),lr(t)}function lr(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function wh(){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 Zn(t,e){t.emit("error",e)}function Eh(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:_h,undestroy:wh,errorOrDestroy:Eh}});var Se=d((j1,oo)=>{"use strict";u();var ao={};function ae(t,e,r){r||(r=Error);function n(s,a,o){return typeof e=="string"?e:e(s,a,o)}class i extends r{constructor(a,o,l){super(n(a,o,l))}}i.prototype.name=r.name,i.prototype.code=t,ao[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 Sh(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function Oh(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function xh(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}ae("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);ae("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&Sh(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(Oh(t," argument"))i=`The ${t} ${n} ${so(e,"type")}`;else{let s=xh(t,".")?"property":"argument";i=`The "${t}" ${s} ${n} ${so(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);ae("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");ae("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});ae("ERR_STREAM_PREMATURE_CLOSE","Premature close");ae("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});ae("ERR_MULTIPLE_CALLBACK","Callback called multiple times");ae("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");ae("ERR_STREAM_WRITE_AFTER_END","write after end");ae("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ae("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);ae("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");oo.exports.codes=ao});var Xn=d((k1,uo)=>{"use strict";u();var Ah=Se().codes.ERR_INVALID_OPT_VALUE;function Mh(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function qh(t,e,r,n){var i=Mh(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new Ah(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}uo.exports={getHighWaterMark:qh}});var lo=d((F1,ei)=>{u();typeof Object.create=="function"?ei.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:ei.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 Je=d((V1,ri)=>{u();try{if(ti=require("util"),typeof ti.inherits!="function")throw"";ri.exports=ti.inherits}catch{ri.exports=lo()}var ti});var mo=d((U1,go)=>{"use strict";u();function fo(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 co(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fo(Object(r),!0).forEach(function(n){Rh(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Rh(t,e,r){return e=po(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ch(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ho(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,po(n.key),n)}}function Th(t,e,r){return e&&ho(t.prototype,e),r&&ho(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function po(t){var e=$h(t,"string");return typeof e=="symbol"?e:String(e)}function $h(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 Ph=require("buffer"),fr=Ph.Buffer,Lh=require("util"),ni=Lh.inspect,Nh=ni&&ni.custom||"inspect";function jh(t,e,r){fr.prototype.copy.call(t,e,r)}go.exports=function(){function t(){Ch(this,t),this.head=null,this.tail=null,this.length=0}return Th(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 fr.alloc(0);for(var n=fr.allocUnsafe(r>>>0),i=this.head,s=0;i;)jh(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 a=n.data,o=r>a.length?a.length:r;if(o===a.length?s+=a:s+=a.slice(0,r),r-=o,r===0){o===a.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(o));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=fr.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var a=i.data,o=r>a.length?a.length:r;if(a.copy(n,n.length-r,0,o),r-=o,r===0){o===a.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(o));break}++s}return this.length-=s,n}},{key:Nh,value:function(r,n){return ni(this,co(co({},n),{},{depth:0,customInspect:!1}))}}]),t}()});var yo=d((ii,bo)=>{u();var cr=require("buffer"),pe=cr.Buffer;function vo(t,e){for(var r in t)e[r]=t[r]}pe.from&&pe.alloc&&pe.allocUnsafe&&pe.allocUnsafeSlow?bo.exports=cr:(vo(cr,ii),ii.Buffer=je);function je(t,e,r){return pe(t,e,r)}je.prototype=Object.create(pe.prototype);vo(pe,je);je.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return pe(t,e,r)};je.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=pe(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};je.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return pe(t)};je.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return cr.SlowBuffer(t)}});var oi=d(wo=>{"use strict";u();var ai=yo().Buffer,_o=ai.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 Dh(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 kh(t){var e=Dh(t);if(typeof e!="string"&&(ai.isEncoding===_o||!_o(t)))throw new Error("Unknown encoding: "+t);return e||t}wo.StringDecoder=vt;function vt(t){this.encoding=kh(t);var e;switch(this.encoding){case"utf16le":this.text=Uh,this.end=Bh,e=4;break;case"utf8":this.fillLast=Hh,e=4;break;case"base64":this.text=zh,this.end=Gh,e=3;break;default:this.write=Yh,this.end=Kh;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ai.allocUnsafe(e)}vt.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||""};vt.prototype.end=Wh;vt.prototype.text=Vh;vt.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 si(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Ih(t,e,r){var n=e.length-1;if(n<r)return 0;var i=si(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=si(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=si(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function Fh(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 Hh(t){var e=this.lastTotal-this.lastNeed,r=Fh(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 Vh(t,e){var r=Ih(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 Wh(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Uh(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 Bh(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 zh(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 Gh(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Yh(t){return t.toString(this.encoding)}function Kh(t){return t&&t.length?this.write(t):""}});var hr=d((K1,Oo)=>{"use strict";u();var Eo=Se().codes.ERR_STREAM_PREMATURE_CLOSE;function Jh(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 Zh(){}function Qh(t){return t.setHeader&&typeof t.abort=="function"}function So(t,e,r){if(typeof e=="function")return So(t,null,e);e||(e={}),r=Jh(r||Zh);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||o()},a=t._writableState&&t._writableState.finished,o=function(){i=!1,a=!0,n||r.call(t)},l=t._readableState&&t._readableState.endEmitted,f=function(){n=!1,l=!0,i||r.call(t)},p=function(b){r.call(t,b)},v=function(){var b;if(n&&!l)return(!t._readableState||!t._readableState.ended)&&(b=new Eo),r.call(t,b);if(i&&!a)return(!t._writableState||!t._writableState.ended)&&(b=new Eo),r.call(t,b)},g=function(){t.req.on("finish",o)};return Qh(t)?(t.on("complete",o),t.on("abort",v),t.req?g():t.on("request",g)):i&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",f),t.on("finish",o),e.error!==!1&&t.on("error",p),t.on("close",v),function(){t.removeListener("complete",o),t.removeListener("abort",v),t.removeListener("request",g),t.req&&t.req.removeListener("finish",o),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",o),t.removeListener("end",f),t.removeListener("error",p),t.removeListener("close",v)}}Oo.exports=So});var Ao=d((Z1,xo)=>{"use strict";u();var dr;function Oe(t,e,r){return e=Xh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xh(t){var e=ed(t,"string");return typeof e=="symbol"?e:String(e)}function ed(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 td=hr(),xe=Symbol("lastResolve"),De=Symbol("lastReject"),bt=Symbol("error"),pr=Symbol("ended"),ke=Symbol("lastPromise"),ui=Symbol("handlePromise"),Ie=Symbol("stream");function Ae(t,e){return{value:t,done:e}}function rd(t){var e=t[xe];if(e!==null){var r=t[Ie].read();r!==null&&(t[ke]=null,t[xe]=null,t[De]=null,e(Ae(r,!1)))}}function nd(t){process.nextTick(rd,t)}function id(t,e){return function(r,n){t.then(function(){if(e[pr]){r(Ae(void 0,!0));return}e[ui](r,n)},n)}}var sd=Object.getPrototypeOf(function(){}),ad=Object.setPrototypeOf((dr={get stream(){return this[Ie]},next:function(){var e=this,r=this[bt];if(r!==null)return Promise.reject(r);if(this[pr])return Promise.resolve(Ae(void 0,!0));if(this[Ie].destroyed)return new Promise(function(a,o){process.nextTick(function(){e[bt]?o(e[bt]):a(Ae(void 0,!0))})});var n=this[ke],i;if(n)i=new Promise(id(n,this));else{var s=this[Ie].read();if(s!==null)return Promise.resolve(Ae(s,!1));i=new Promise(this[ui])}return this[ke]=i,i}},Oe(dr,Symbol.asyncIterator,function(){return this}),Oe(dr,"return",function(){var e=this;return new Promise(function(r,n){e[Ie].destroy(null,function(i){if(i){n(i);return}r(Ae(void 0,!0))})})}),dr),sd),od=function(e){var r,n=Object.create(ad,(r={},Oe(r,Ie,{value:e,writable:!0}),Oe(r,xe,{value:null,writable:!0}),Oe(r,De,{value:null,writable:!0}),Oe(r,bt,{value:null,writable:!0}),Oe(r,pr,{value:e._readableState.endEmitted,writable:!0}),Oe(r,ui,{value:function(s,a){var o=n[Ie].read();o?(n[ke]=null,n[xe]=null,n[De]=null,s(Ae(o,!1))):(n[xe]=s,n[De]=a)},writable:!0}),r));return n[ke]=null,td(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[De];s!==null&&(n[ke]=null,n[xe]=null,n[De]=null,s(i)),n[bt]=i;return}var a=n[xe];a!==null&&(n[ke]=null,n[xe]=null,n[De]=null,a(Ae(void 0,!0))),n[pr]=!0}),e.on("readable",nd.bind(null,n)),n};xo.exports=od});var Co=d((X1,Ro)=>{"use strict";u();function Mo(t,e,r,n,i,s,a){try{var o=t[s](a),l=o.value}catch(f){r(f);return}o.done?e(l):Promise.resolve(l).then(n,i)}function ud(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function a(l){Mo(s,n,i,a,o,"next",l)}function o(l){Mo(s,n,i,a,o,"throw",l)}a(void 0)})}}function qo(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 ld(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qo(Object(r),!0).forEach(function(n){fd(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function fd(t,e,r){return e=cd(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cd(t){var e=hd(t,"string");return typeof e=="symbol"?e:String(e)}function hd(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 dd=Se().codes.ERR_INVALID_ARG_TYPE;function pd(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 dd("iterable",["Iterable"],e);var i=new t(ld({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,a())};function a(){return o.apply(this,arguments)}function o(){return o=ud(function*(){try{var l=yield n.next(),f=l.value,p=l.done;p?i.push(null):i.push(yield f)?a():s=!1}catch(v){i.destroy(v)}}),o.apply(this,arguments)}return i}Ro.exports=pd});var bi=d((rb,Fo)=>{"use strict";u();Fo.exports=R;var Ze;R.ReadableState=Lo;var tb=require("events").EventEmitter,Po=function(e,r){return e.listeners(r).length},_t=Jn(),gr=require("buffer").Buffer,gd=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function md(t){return gr.from(t)}function vd(t){return gr.isBuffer(t)||t instanceof gd}var li=require("util"),M;li&&li.debuglog?M=li.debuglog("stream"):M=function(){};var bd=mo(),mi=Qn(),yd=Xn(),_d=yd.getHighWaterMark,mr=Se().codes,wd=mr.ERR_INVALID_ARG_TYPE,Ed=mr.ERR_STREAM_PUSH_AFTER_EOF,Sd=mr.ERR_METHOD_NOT_IMPLEMENTED,Od=mr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Qe,fi,ci;Je()(R,_t);var yt=mi.errorOrDestroy,hi=["error","close","destroy","pause","resume"];function xd(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 Lo(t,e,r){Ze=Ze||Fe(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ze),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=_d(this,t,"readableHighWaterMark",r),this.buffer=new bd,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&&(Qe||(Qe=oi().StringDecoder),this.decoder=new Qe(t.encoding),this.encoding=t.encoding)}function R(t){if(Ze=Ze||Fe(),!(this instanceof R))return new R(t);var e=this instanceof Ze;this._readableState=new Lo(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),_t.call(this)}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});R.prototype.destroy=mi.destroy;R.prototype._undestroy=mi.undestroy;R.prototype._destroy=function(t,e){e(t)};R.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=gr.from(t,e),e=""),n=!0),No(this,t,e,!1,n)};R.prototype.unshift=function(t){return No(this,t,null,!0,!1)};function No(t,e,r,n,i){M("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,qd(t,s);else{var a;if(i||(a=Ad(s,e)),a)yt(t,a);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==gr.prototype&&(e=md(e)),n)s.endEmitted?yt(t,new Od):di(t,s,e,!0);else if(s.ended)yt(t,new Ed);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?di(t,s,e,!1):gi(t,s)):di(t,s,e,!1)}else n||(s.reading=!1,gi(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function di(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&&vr(t)),gi(t,e)}function Ad(t,e){var r;return!vd(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new wd("chunk",["string","Buffer","Uint8Array"],e)),r}R.prototype.isPaused=function(){return this._readableState.flowing===!1};R.prototype.setEncoding=function(t){Qe||(Qe=oi().StringDecoder);var e=new Qe(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 To=1073741824;function Md(t){return t>=To?t=To:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function $o(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=Md(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}R.prototype.read=function(t){M("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 M("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?pi(this):vr(this),null;if(t=$o(t,e),t===0&&e.ended)return e.length===0&&pi(this),null;var n=e.needReadable;M("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,M("length less than watermark",n)),e.ended||e.reading?(n=!1,M("reading or ended",n)):n&&(M("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=$o(r,e)));var i;return t>0?i=ko(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&&pi(this)),i!==null&&this.emit("data",i),i};function qd(t,e){if(M("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?vr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,jo(t)))}}function vr(t){var e=t._readableState;M("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(M("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(jo,t))}function jo(t){var e=t._readableState;M("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,vi(t)}function gi(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(Rd,t,e))}function Rd(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(M("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}R.prototype._read=function(t){yt(this,new Sd("_read()"))};R.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,M("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?o:y;n.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",a);function a(E,A){M("onunpipe"),E===r&&A&&A.hasUnpiped===!1&&(A.hasUnpiped=!0,p())}function o(){M("onend"),t.end()}var l=Cd(r);t.on("drain",l);var f=!1;function p(){M("cleanup"),t.removeListener("close",c),t.removeListener("finish",b),t.removeListener("drain",l),t.removeListener("error",g),t.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",y),r.removeListener("data",v),f=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",v);function v(E){M("ondata");var A=t.write(E);M("dest.write",A),A===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&Io(n.pipes,t)!==-1)&&!f&&(M("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function g(E){M("onerror",E),y(),t.removeListener("error",g),Po(t,"error")===0&&yt(t,E)}xd(t,"error",g);function c(){t.removeListener("finish",b),y()}t.once("close",c);function b(){M("onfinish"),t.removeListener("close",c),y()}t.once("finish",b);function y(){M("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(M("pipe resume"),r.resume()),t};function Cd(t){return function(){var r=t._readableState;M("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Po(t,"data")&&(r.flowing=!0,vi(t))}}R.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 a=Io(e.pipes,t);return a===-1?this:(e.pipes.splice(a,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};R.prototype.on=function(t,e){var r=_t.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,M("on readable",n.length,n.reading),n.length?vr(this):n.reading||process.nextTick(Td,this)),r};R.prototype.addListener=R.prototype.on;R.prototype.removeListener=function(t,e){var r=_t.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Do,this),r};R.prototype.removeAllListeners=function(t){var e=_t.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Do,this),e};function Do(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 Td(t){M("readable nexttick read 0"),t.read(0)}R.prototype.resume=function(){var t=this._readableState;return t.flowing||(M("resume"),t.flowing=!t.readableListening,$d(this,t)),t.paused=!1,this};function $d(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Pd,t,e))}function Pd(t,e){M("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),vi(t),e.flowing&&!e.reading&&t.read(0)}R.prototype.pause=function(){return M("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(M("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function vi(t){var e=t._readableState;for(M("flow",e.flowing);e.flowing&&t.read()!==null;);}R.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(M("wrapped end"),r.decoder&&!r.ended){var a=r.decoder.end();a&&a.length&&e.push(a)}e.push(null)}),t.on("data",function(a){if(M("wrapped data"),r.decoder&&(a=r.decoder.write(a)),!(r.objectMode&&a==null)&&!(!r.objectMode&&(!a||!a.length))){var o=e.push(a);o||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=function(o){return function(){return t[o].apply(t,arguments)}}(i));for(var s=0;s<hi.length;s++)t.on(hi[s],this.emit.bind(this,hi[s]));return this._read=function(a){M("wrapped _read",a),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(R.prototype[Symbol.asyncIterator]=function(){return fi===void 0&&(fi=Ao()),fi(this)});Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(R.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(R.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});R._fromList=ko;Object.defineProperty(R.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ko(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 pi(t){var e=t._readableState;M("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Ld,e,t))}function Ld(t,e){if(M("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"&&(R.from=function(t,e){return ci===void 0&&(ci=Co()),ci(R,t,e)});function Io(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var Fe=d((ib,Vo)=>{"use strict";u();var Nd=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Vo.exports=ge;var Ho=bi(),_i=_r();Je()(ge,Ho);for(yi=Nd(_i.prototype),br=0;br<yi.length;br++)yr=yi[br],ge.prototype[yr]||(ge.prototype[yr]=_i.prototype[yr]);var yi,yr,br;function ge(t){if(!(this instanceof ge))return new ge(t);Ho.call(this,t),_i.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",jd)))}Object.defineProperty(ge.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ge.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ge.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function jd(){this._writableState.ended||process.nextTick(Dd,this)}function Dd(t){t.end()}Object.defineProperty(ge.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 _r=d((ab,Yo)=>{"use strict";u();Yo.exports=D;function Uo(t){var e=this;this.next=null,this.entry=null,this.finish=function(){fp(e,t)}}var Xe;D.WritableState=Et;var kd={deprecate:to()},Bo=Jn(),Er=require("buffer").Buffer,Id=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Fd(t){return Er.from(t)}function Hd(t){return Er.isBuffer(t)||t instanceof Id}var Ei=Qn(),Vd=Xn(),Wd=Vd.getHighWaterMark,Me=Se().codes,Ud=Me.ERR_INVALID_ARG_TYPE,Bd=Me.ERR_METHOD_NOT_IMPLEMENTED,zd=Me.ERR_MULTIPLE_CALLBACK,Gd=Me.ERR_STREAM_CANNOT_PIPE,Yd=Me.ERR_STREAM_DESTROYED,Kd=Me.ERR_STREAM_NULL_VALUES,Jd=Me.ERR_STREAM_WRITE_AFTER_END,Zd=Me.ERR_UNKNOWN_ENCODING,et=Ei.errorOrDestroy;Je()(D,Bo);function Qd(){}function Et(t,e,r){Xe=Xe||Fe(),t=t||{},typeof r!="boolean"&&(r=e instanceof Xe),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Wd(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){sp(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 Uo(this)}Et.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Et.prototype,"buffer",{get:kd.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var wr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(wr=Function.prototype[Symbol.hasInstance],Object.defineProperty(D,Symbol.hasInstance,{value:function(e){return wr.call(this,e)?!0:this!==D?!1:e&&e._writableState instanceof Et}})):wr=function(e){return e instanceof this};function D(t){Xe=Xe||Fe();var e=this instanceof Xe;if(!e&&!wr.call(D,this))return new D(t);this._writableState=new Et(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)),Bo.call(this)}D.prototype.pipe=function(){et(this,new Gd)};function Xd(t,e){var r=new Jd;et(t,r),process.nextTick(e,r)}function ep(t,e,r,n){var i;return r===null?i=new Kd:typeof r!="string"&&!e.objectMode&&(i=new Ud("chunk",["string","Buffer"],r)),i?(et(t,i),process.nextTick(n,i),!1):!0}D.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&Hd(t);return s&&!Er.isBuffer(t)&&(t=Fd(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=Qd),n.ending?Xd(this,r):(s||ep(this,n,t,r))&&(n.pendingcb++,i=rp(this,n,s,t,e,r)),i};D.prototype.cork=function(){this._writableState.corked++};D.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&zo(this,t))};D.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 Zd(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function tp(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Er.from(e,r)),e}Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function rp(t,e,r,n,i,s){if(!r){var a=tp(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var o=e.objectMode?1:n.length;e.length+=o;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else wi(t,e,!1,o,n,i,s);return l}function wi(t,e,r,n,i,s,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Yd("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function np(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(wt,t,e),t._writableState.errorEmitted=!0,et(t,n)):(i(n),t._writableState.errorEmitted=!0,et(t,n),wt(t,e))}function ip(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function sp(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new zd;if(ip(r),e)np(t,r,n,e,i);else{var s=Go(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&zo(t,r),n?process.nextTick(Wo,t,r,s,i):Wo(t,r,s,i)}}function Wo(t,e,r,n){r||ap(t,e),e.pendingcb--,n(),wt(t,e)}function ap(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function zo(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 a=0,o=!0;r;)i[a]=r,r.isBuf||(o=!1),r=r.next,a+=1;i.allBuffers=o,wi(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 Uo(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,f=r.encoding,p=r.callback,v=e.objectMode?1:l.length;if(wi(t,e,!1,v,l,f,p),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}D.prototype._write=function(t,e,r){r(new Bd("_write()"))};D.prototype._writev=null;D.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||lp(this,n,r),this};Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Go(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function op(t,e){t._final(function(r){e.pendingcb--,r&&et(t,r),e.prefinished=!0,t.emit("prefinish"),wt(t,e)})}function up(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(op,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function wt(t,e){var r=Go(e);if(r&&(up(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 lp(t,e,r){e.ending=!0,wt(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function fp(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(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});D.prototype.destroy=Ei.destroy;D.prototype._undestroy=Ei.undestroy;D.prototype._destroy=function(t,e){e(t)}});var Si=d((ub,Zo)=>{"use strict";u();var cp=require("util"),Ko=_r(),{LEVEL:Jo}=F(),St=Zo.exports=function(e={}){Ko.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",r=>{this.levels=r.levels,this.parent=r}),this.once("unpipe",r=>{r===this.parent&&(this.parent=null,this.close&&this.close())})};cp.inherits(St,Ko);St.prototype._write=function(e,r,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);let i=this.level||this.parent&&this.parent.level;if(!i||this.levels[i]>=this.levels[e[Jo]]){if(e&&!this.format)return this.log(e,n);let s,a;try{a=this.format.transform(Object.assign({},e),this.format.options)}catch(o){s=o}if(s||!a){if(n(),s)throw s;return}return this.log(a,n)}return this._writableState.sync=!1,n(null)};St.prototype._writev=function(e,r){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,r):r(null)}for(let n=0;n<e.length;n++){if(!this._accept(e[n]))continue;if(e[n].chunk&&!this.format){this.log(e[n].chunk,e[n].callback);continue}let i,s;try{s=this.format.transform(Object.assign({},e[n].chunk),this.format.options)}catch(a){i=a}if(i||!s){if(e[n].callback(),i)throw r(null),i}else this.log(s,e[n].callback)}return r(null)};St.prototype._accept=function(e){let r=e.chunk;if(this.silent)return!1;let n=this.level||this.parent&&this.parent.level;return!!((r.exception===!0||!n||this.levels[n]>=this.levels[r[Jo]])&&(this.handleExceptions||r.exception!==!0))};St.prototype._nop=function(){}});var xi=d((fb,Xo)=>{"use strict";u();var hp=require("util"),{LEVEL:Oi}=F(),Qo=Si(),Ot=Xo.exports=function(e={}){if(Qo.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function r(n){this.emit("error",n,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=r.bind(this),this.transport.on("error",this.transport.__winstonError))};hp.inherits(Ot,Qo);Ot.prototype._write=function(e,r,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[Oi]])&&this.transport.log(e[Oi],e.message,e,this._nop),n(null)};Ot.prototype._writev=function(e,r){for(let n=0;n<e.length;n++)this._accept(e[n])&&(this.transport.log(e[n].chunk[Oi],e[n].chunk.message,e[n].chunk,this._nop),e[n].callback());return r(null)};Ot.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
`))};Ot.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var tt=d((hb,Ai)=>{"use strict";u();Ai.exports=Si();Ai.exports.LegacyTransportStream=xi()});var ru=d((gb,tu)=>{"use strict";u();var dp=require("os"),{LEVEL:eu,MESSAGE:rt}=F(),pp=tt();tu.exports=class extends pp{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=typeof e.eol=="string"?e.eol:dp.EOL,this.setMaxListeners(30)}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[eu]]){console._stderr?console._stderr.write(`${e[rt]}${this.eol}`):console.error(e[rt]),r&&r();return}else if(this.consoleWarnLevels[e[eu]]){console._stderr?console._stderr.write(`${e[rt]}${this.eol}`):console.warn(e[rt]),r&&r();return}console._stdout?console._stdout.write(`${e[rt]}${this.eol}`):console.log(e[rt]),r&&r()}_stringArrayToSet(e,r){if(!e)return{};if(r=r||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(r);return e.reduce((n,i)=>{if(typeof i!="string")throw new Error(r);return n[i]=!0,n},{})}}});var Or=d((Sr,nu)=>{"use strict";u();Object.defineProperty(Sr,"__esModule",{value:!0});Sr.default=gp;function gp(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}nu.exports=Sr.default});var su=d((xr,iu)=>{"use strict";u();Object.defineProperty(xr,"__esModule",{value:!0});xr.default=function(t){return function(...e){var r=e.pop();return t.call(this,e,r)}};iu.exports=xr.default});var uu=d(qe=>{"use strict";u();Object.defineProperty(qe,"__esModule",{value:!0});qe.fallback=au;qe.wrap=ou;var mp=qe.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,vp=qe.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,bp=qe.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function au(t){setTimeout(t,0)}function ou(t){return(e,...r)=>t(()=>e(...r))}var xt;mp?xt=queueMicrotask:vp?xt=setImmediate:bp?xt=process.nextTick:xt=au;qe.default=ou(xt)});var du=d((Ar,hu)=>{"use strict";u();Object.defineProperty(Ar,"__esModule",{value:!0});Ar.default=Op;var yp=su(),_p=cu(yp),wp=uu(),Ep=cu(wp),Sp=He();function cu(t){return t&&t.__esModule?t:{default:t}}function Op(t){return(0,Sp.isAsync)(t)?function(...e){let r=e.pop(),n=t.apply(this,e);return lu(n,r)}:(0,_p.default)(function(e,r){var n;try{n=t.apply(this,e)}catch(i){return r(i)}if(n&&typeof n.then=="function")return lu(n,r);r(null,n)})}function lu(t,e){return t.then(r=>{fu(e,null,r)},r=>{fu(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function fu(t,e,r){try{t(e,r)}catch(n){(0,Ep.default)(i=>{throw i},n)}}hu.exports=Ar.default});var He=d(_e=>{"use strict";u();Object.defineProperty(_e,"__esModule",{value:!0});_e.isAsyncIterable=_e.isAsyncGenerator=_e.isAsync=void 0;var xp=du(),Ap=Mp(xp);function Mp(t){return t&&t.__esModule?t:{default:t}}function pu(t){return t[Symbol.toStringTag]==="AsyncFunction"}function qp(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Rp(t){return typeof t[Symbol.asyncIterator]=="function"}function Cp(t){if(typeof t!="function")throw new Error("expected a function");return pu(t)?(0,Ap.default)(t):t}_e.default=Cp;_e.isAsync=pu;_e.isAsyncGenerator=qp;_e.isAsyncIterable=Rp});var nt=d((Mr,gu)=>{"use strict";u();Object.defineProperty(Mr,"__esModule",{value:!0});Mr.default=Tp;function Tp(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...n){return typeof n[e-1]=="function"?t.apply(this,n):new Promise((i,s)=>{n[e-1]=(a,...o)=>{if(a)return s(a);i(o.length>1?o:o[0])},t.apply(this,n)})}return r}gu.exports=Mr.default});var vu=d((qr,mu)=>{"use strict";u();Object.defineProperty(qr,"__esModule",{value:!0});var $p=Or(),Pp=Mi($p),Lp=He(),Np=Mi(Lp),jp=nt(),Dp=Mi(jp);function Mi(t){return t&&t.__esModule?t:{default:t}}qr.default=(0,Dp.default)((t,e,r)=>{var n=(0,Pp.default)(e)?[]:{};t(e,(i,s,a)=>{(0,Np.default)(i)((o,...l)=>{l.length<2&&([l]=l),n[s]=l,a(o)})},i=>r(i,n))},3);mu.exports=qr.default});var qi=d((Rr,bu)=>{"use strict";u();Object.defineProperty(Rr,"__esModule",{value:!0});Rr.default=kp;function kp(t){function e(...r){if(t!==null){var n=t;t=null,n.apply(this,r)}}return Object.assign(e,t),e}bu.exports=Rr.default});var _u=d((Cr,yu)=>{"use strict";u();Object.defineProperty(Cr,"__esModule",{value:!0});Cr.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};yu.exports=Cr.default});var Su=d((Tr,Eu)=>{"use strict";u();Object.defineProperty(Tr,"__esModule",{value:!0});Tr.default=zp;var Ip=Or(),Fp=wu(Ip),Hp=_u(),Vp=wu(Hp);function wu(t){return t&&t.__esModule?t:{default:t}}function Wp(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function Up(t){var e=-1;return function(){var n=t.next();return n.done?null:(e++,{value:n.value,key:e})}}function Bp(t){var e=t?Object.keys(t):[],r=-1,n=e.length;return function i(){var s=e[++r];return s==="__proto__"?i():r<n?{value:t[s],key:s}:null}}function zp(t){if((0,Fp.default)(t))return Wp(t);var e=(0,Vp.default)(t);return e?Up(e):Bp(t)}Eu.exports=Tr.default});var Ri=d(($r,Ou)=>{"use strict";u();Object.defineProperty($r,"__esModule",{value:!0});$r.default=Gp;function Gp(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}Ou.exports=$r.default});var Lr=d((Pr,xu)=>{"use strict";u();Object.defineProperty(Pr,"__esModule",{value:!0});var Yp={};Pr.default=Yp;xu.exports=Pr.default});var Mu=d((Nr,Au)=>{"use strict";u();Object.defineProperty(Nr,"__esModule",{value:!0});Nr.default=Qp;var Kp=Lr(),Jp=Zp(Kp);function Zp(t){return t&&t.__esModule?t:{default:t}}function Qp(t,e,r,n){let i=!1,s=!1,a=!1,o=0,l=0;function f(){o>=e||a||i||(a=!0,t.next().then(({value:g,done:c})=>{if(!(s||i)){if(a=!1,c){i=!0,o<=0&&n(null);return}o++,r(g,l,p),l++,f()}}).catch(v))}function p(g,c){if(o-=1,!s){if(g)return v(g);if(g===!1){i=!0,s=!0;return}if(c===Jp.default||i&&o<=0)return i=!0,n(null);f()}}function v(g){s||(a=!1,i=!0,n(g))}f()}Au.exports=Nr.default});var Tu=d((jr,Cu)=>{"use strict";u();Object.defineProperty(jr,"__esModule",{value:!0});var Xp=qi(),eg=At(Xp),tg=Su(),rg=At(tg),ng=Ri(),ig=At(ng),qu=He(),sg=Mu(),Ru=At(sg),ag=Lr(),og=At(ag);function At(t){return t&&t.__esModule?t:{default:t}}jr.default=t=>(e,r,n)=>{if(n=(0,eg.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,qu.isAsyncGenerator)(e))return(0,Ru.default)(e,t,r,n);if((0,qu.isAsyncIterable)(e))return(0,Ru.default)(e[Symbol.asyncIterator](),t,r,n);var i=(0,rg.default)(e),s=!1,a=!1,o=0,l=!1;function f(v,g){if(!a)if(o-=1,v)s=!0,n(v);else if(v===!1)s=!0,a=!0;else{if(g===og.default||s&&o<=0)return s=!0,n(null);l||p()}}function p(){for(l=!0;o<t&&!s;){var v=i();if(v===null){s=!0,o<=0&&n(null);return}o+=1,r(v.value,v.key,(0,ig.default)(f))}l=!1}p()};Cu.exports=jr.default});var Ti=d((Dr,$u)=>{"use strict";u();Object.defineProperty(Dr,"__esModule",{value:!0});var ug=Tu(),lg=Ci(ug),fg=He(),cg=Ci(fg),hg=nt(),dg=Ci(hg);function Ci(t){return t&&t.__esModule?t:{default:t}}function pg(t,e,r,n){return(0,lg.default)(e)(t,(0,cg.default)(r),n)}Dr.default=(0,dg.default)(pg,4);$u.exports=Dr.default});var Nu=d((kr,Lu)=>{"use strict";u();Object.defineProperty(kr,"__esModule",{value:!0});var gg=Ti(),mg=Pu(gg),vg=nt(),bg=Pu(vg);function Pu(t){return t&&t.__esModule?t:{default:t}}function yg(t,e,r){return(0,mg.default)(t,1,e,r)}kr.default=(0,bg.default)(yg,3);Lu.exports=kr.default});var ku=d((Ir,Du)=>{"use strict";u();Object.defineProperty(Ir,"__esModule",{value:!0});Ir.default=Og;var _g=vu(),wg=ju(_g),Eg=Nu(),Sg=ju(Eg);function ju(t){return t&&t.__esModule?t:{default:t}}function Og(t,e){return(0,wg.default)(Sg.default,t,e)}Du.exports=Ir.default});var $i=d((jb,Fu)=>{"use strict";u();Fu.exports=we;var Fr=Se().codes,xg=Fr.ERR_METHOD_NOT_IMPLEMENTED,Ag=Fr.ERR_MULTIPLE_CALLBACK,Mg=Fr.ERR_TRANSFORM_ALREADY_TRANSFORMING,qg=Fr.ERR_TRANSFORM_WITH_LENGTH_0,Hr=Fe();Je()(we,Hr);function Rg(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Ag);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 we(t){if(!(this instanceof we))return new we(t);Hr.call(this,t),this._transformState={afterTransform:Rg.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",Cg)}function Cg(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Iu(t,e,r)}):Iu(this,null,null)}we.prototype.push=function(t,e){return this._transformState.needTransform=!1,Hr.prototype.push.call(this,t,e)};we.prototype._transform=function(t,e,r){r(new xg("_transform()"))};we.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)}};we.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};we.prototype._destroy=function(t,e){Hr.prototype._destroy.call(this,t,function(r){e(r)})};function Iu(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new qg;if(t._transformState.transforming)throw new Mg;return t.push(null)}});var Wu=d((kb,Vu)=>{"use strict";u();Vu.exports=Mt;var Hu=$i();Je()(Mt,Hu);function Mt(t){if(!(this instanceof Mt))return new Mt(t);Hu.call(this,t)}Mt.prototype._transform=function(t,e,r){r(null,t)}});var Yu=d((Fb,Gu)=>{"use strict";u();var Pi;function Tg(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var zu=Se().codes,$g=zu.ERR_MISSING_ARGS,Pg=zu.ERR_STREAM_DESTROYED;function Uu(t){if(t)throw t}function Lg(t){return t.setHeader&&typeof t.abort=="function"}function Ng(t,e,r,n){n=Tg(n);var i=!1;t.on("close",function(){i=!0}),Pi===void 0&&(Pi=hr()),Pi(t,{readable:e,writable:r},function(a){if(a)return n(a);i=!0,n()});var s=!1;return function(a){if(!i&&!s){if(s=!0,Lg(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(a||new Pg("pipe"))}}}function Bu(t){t()}function jg(t,e){return t.pipe(e)}function Dg(t){return!t.length||typeof t[t.length-1]!="function"?Uu:t.pop()}function kg(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Dg(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new $g("streams");var i,s=e.map(function(a,o){var l=o<e.length-1,f=o>0;return Ng(a,l,f,function(p){i||(i=p),p&&s.forEach(Bu),!l&&(s.forEach(Bu),n(i))})});return e.reduce(jg)}Gu.exports=kg});var Ve=d((oe,Rt)=>{u();var qt=require("stream");process.env.READABLE_STREAM==="disable"&&qt?(Rt.exports=qt.Readable,Object.assign(Rt.exports,qt),Rt.exports.Stream=qt):(oe=Rt.exports=bi(),oe.Stream=qt||oe,oe.Readable=oe,oe.Writable=_r(),oe.Duplex=Fe(),oe.Transform=$i(),oe.PassThrough=Wu(),oe.finished=hr(),oe.pipeline=Yu())});var Fi=d((Wb,Ju)=>{u();var it=[],Ct=[],Li=function(){};function ji(t){return~it.indexOf(t)?!1:(it.push(t),!0)}function Di(t){Li=t}function Ig(t){for(var e=[],r=0;r<it.length;r++){if(it[r].async){e.push(it[r]);continue}if(it[r](t))return!0}return e.length?new Promise(function(i){Promise.all(e.map(function(a){return a(t)})).then(function(a){i(a.some(Boolean))})}):!1}function ki(t){return~Ct.indexOf(t)?!1:(Ct.push(t),!0)}function Ni(){Li.apply(Li,arguments)}function Ku(t){for(var e=0;e<Ct.length;e++)t=Ct[e].apply(Ct[e],arguments);return t}function Ii(t,e){var r=Object.prototype.hasOwnProperty;for(var n in e)r.call(e,n)&&(t[n]=e[n]);return t}function Fg(t){return t.enabled=!1,t.modify=ki,t.set=Di,t.use=ji,Ii(function(){return!1},t)}function Hg(t){function e(){var r=Array.prototype.slice.call(arguments,0);return Ni.call(Ni,t,Ku(r,t)),!0}return t.enabled=!0,t.modify=ki,t.set=Di,t.use=ji,Ii(e,t)}Ju.exports=function(e){return e.introduce=Ii,e.enabled=Ig,e.process=Ku,e.modify=ki,e.write=Ni,e.nope=Fg,e.yep=Hg,e.set=Di,e.use=ji,e}});var Qu=d((Bb,Zu)=>{u();var Vg=Fi(),Wg=Vg(function t(e,r){return r=r||{},r.namespace=e,r.prod=!0,r.dev=!1,r.force||t.force?t.yep(r):t.nope(r)});Zu.exports=Wg});var el=d((Gb,Xu)=>{"use strict";u();Xu.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 rl=d((Kb,tl)=>{u();tl.exports=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")}});var sl=d((Zb,il)=>{"use strict";u();var Ug=rl(),Bg=Array.prototype.concat,zg=Array.prototype.slice,nl=il.exports=function(e){for(var r=[],n=0,i=e.length;n<i;n++){var s=e[n];Ug(s)?r=Bg.call(r,zg.call(s)):r.push(s)}return r};nl.wrap=function(t){return function(){return t(nl(arguments))}}});var ll=d((Xb,ul)=>{u();var Tt=el(),$t=sl(),al=Object.hasOwnProperty,ol=Object.create(null);for(Vr in Tt)al.call(Tt,Vr)&&(ol[Tt[Vr]]=Vr);var Vr,re=ul.exports={to:{},get:{}};re.get=function(t){var e=t.substring(0,3).toLowerCase(),r,n;switch(e){case"hsl":r=re.get.hsl(t),n="hsl";break;case"hwb":r=re.get.hwb(t),n="hwb";break;default:r=re.get.rgb(t),n="rgb";break}return r?{model:n,value:r}:null};re.get.rgb=function(t){if(!t)return null;var e=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,a=[0,0,0,1],o,l,f;if(o=t.match(r)){for(f=o[2],o=o[1],l=0;l<3;l++){var p=l*2;a[l]=parseInt(o.slice(p,p+2),16)}f&&(a[3]=parseInt(f,16)/255)}else if(o=t.match(e)){for(o=o[1],f=o[3],l=0;l<3;l++)a[l]=parseInt(o[l]+o[l],16);f&&(a[3]=parseInt(f+f,16)/255)}else if(o=t.match(n)){for(l=0;l<3;l++)a[l]=parseInt(o[l+1],0);o[4]&&(o[5]?a[3]=parseFloat(o[4])*.01:a[3]=parseFloat(o[4]))}else if(o=t.match(i)){for(l=0;l<3;l++)a[l]=Math.round(parseFloat(o[l+1])*2.55);o[4]&&(o[5]?a[3]=parseFloat(o[4])*.01:a[3]=parseFloat(o[4]))}else return(o=t.match(s))?o[1]==="transparent"?[0,0,0,0]:al.call(Tt,o[1])?(a=Tt[o[1]],a[3]=1,a):null:null;for(l=0;l<3;l++)a[l]=Re(a[l],0,255);return a[3]=Re(a[3],0,1),a};re.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,s=Re(parseFloat(r[2]),0,100),a=Re(parseFloat(r[3]),0,100),o=Re(isNaN(n)?1:n,0,1);return[i,s,a,o]}return null};re.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,s=Re(parseFloat(r[2]),0,100),a=Re(parseFloat(r[3]),0,100),o=Re(isNaN(n)?1:n,0,1);return[i,s,a,o]}return null};re.to.hex=function(){var t=$t(arguments);return"#"+Wr(t[0])+Wr(t[1])+Wr(t[2])+(t[3]<1?Wr(Math.round(t[3]*255)):"")};re.to.rgb=function(){var t=$t(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};re.to.rgb.percent=function(){var t=$t(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"};re.to.hsl=function(){var t=$t(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};re.to.hwb=function(){var t=$t(arguments),e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};re.to.keyword=function(t){return ol[t.slice(0,3)]};function Re(t,e,r){return Math.min(Math.max(e,t),r)}function Wr(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var cl=d((ty,fl)=>{"use strict";u();fl.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 Hi=d((ny,gl)=>{u();var We=cl(),pl={};for(Ur in We)We.hasOwnProperty(Ur)&&(pl[We[Ur]]=Ur);var Ur,w=gl.exports={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"]}};for(K in w)if(w.hasOwnProperty(K)){if(!("channels"in w[K]))throw new Error("missing channels property: "+K);if(!("labels"in w[K]))throw new Error("missing channel labels property: "+K);if(w[K].labels.length!==w[K].channels)throw new Error("channel and label counts mismatch: "+K);hl=w[K].channels,dl=w[K].labels,delete w[K].channels,delete w[K].labels,Object.defineProperty(w[K],"channels",{value:hl}),Object.defineProperty(w[K],"labels",{value:dl})}var hl,dl,K;w.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),a=s-i,o,l,f;return s===i?o=0:e===s?o=(r-n)/a:r===s?o=2+(n-e)/a:n===s&&(o=4+(e-r)/a),o=Math.min(o*60,360),o<0&&(o+=360),f=(i+s)/2,s===i?l=0:f<=.5?l=a/(s+i):l=a/(2-s-i),[o,l*100,f*100]};w.rgb.hsv=function(t){var e,r,n,i,s,a=t[0]/255,o=t[1]/255,l=t[2]/255,f=Math.max(a,o,l),p=f-Math.min(a,o,l),v=function(g){return(f-g)/6/p+1/2};return p===0?i=s=0:(s=p/f,e=v(a),r=v(o),n=v(l),a===f?i=n-r:o===f?i=1/3+e-n:l===f&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,f*100]};w.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=w.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]};w.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,a,o;return o=Math.min(1-e,1-r,1-n),i=(1-e-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,a=(1-n-o)/(1-o)||0,[i*100,s*100,a*100,o*100]};function Gg(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}w.rgb.keyword=function(t){var e=pl[t];if(e)return e;var r=1/0,n;for(var i in We)if(We.hasOwnProperty(i)){var s=We[i],a=Gg(t,s);a<r&&(r=a,n=i)}return n};w.keyword.rgb=function(t){return We[t]};w.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,a=e*.0193+r*.1192+n*.9505;return[i*100,s*100,a*100]};w.rgb.lab=function(t){var e=w.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,a,o;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,a=500*(r-n),o=200*(n-i),[s,a,o]};w.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,a,o,l;if(r===0)return l=n*255,[l,l,l];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,o=[0,0,0];for(var f=0;f<3;f++)a=e+1/3*-(f-1),a<0&&a++,a>1&&a--,6*a<1?l=i+(s-i)*6*a:2*a<1?l=s:3*a<2?l=i+(s-i)*(2/3-a)*6:l=i,o[f]=l*255;return o};w.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),a,o;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r),[e,a*100,o*100]};w.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),a=255*n*(1-r),o=255*n*(1-r*s),l=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,l,a];case 1:return[o,n,a];case 2:return[a,n,l];case 3:return[a,o,n];case 4:return[l,a,n];case 5:return[n,a,o]}};w.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,a,o;return o=(2-r)*n,s=(2-r)*i,a=r*i,a/=s<=1?s:2-s,a=a||0,o/=2,[e,a*100,o*100]};w.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,a,o,l;i>1&&(r/=i,n/=i),s=Math.floor(6*e),a=1-n,o=6*e-s,s&1&&(o=1-o),l=r+o*(a-r);var f,p,v;switch(s){default:case 6:case 0:f=a,p=l,v=r;break;case 1:f=l,p=a,v=r;break;case 2:f=r,p=a,v=l;break;case 3:f=r,p=l,v=a;break;case 4:f=l,p=r,v=a;break;case 5:f=a,p=r,v=l;break}return[f*255,p*255,v*255]};w.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,a,o;return s=1-Math.min(1,e*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),[s*255,a*255,o*255]};w.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,a;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,a=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),a=Math.min(Math.max(0,a),1),[i*255,s*255,a*255]};w.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,a;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),a=200*(r-n),[i,s,a]};w.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,a;s=(e+16)/116,i=r/500+s,a=s-n/200;var o=Math.pow(s,3),l=Math.pow(i,3),f=Math.pow(a,3);return s=o>.008856?o:(s-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,a=f>.008856?f:(a-16/116)/7.787,i*=95.047,s*=100,a*=108.883,[i,s,a]};w.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,a;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),a=Math.sqrt(r*r+n*n),[e,a,s]};w.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,a;return a=n/360*2*Math.PI,i=r*Math.cos(a),s=r*Math.sin(a),[e,i,s]};w.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:w.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};w.hsv.ansi16=function(t){return w.rgb.ansi16(w.hsv.rgb(t),t[2])};w.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};w.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var 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]};w.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};w.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};w.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(o){return o+o}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,a=n&255;return[i,s,a]};w.rgb.hcg=function(t){var 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),a=i-s,o,l;return a<1?o=s/(1-a):o=0,a<=0?l=0:i===e?l=(r-n)/a%6:i===r?l=2+(n-e)/a:l=4+(e-r)/a+4,l/=6,l%=1,[l*360,a*100,o*100]};w.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};w.hsv.hcg=function(t){var 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]};w.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%1*6,a=s%1,o=1-a,l=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-r)*n,[(r*i[0]+l)*255,(r*i[1]+l)*255,(r*i[2]+l)*255]};w.hcg.hsv=function(t){var 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]};w.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(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]};w.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};w.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};w.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};w.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};w.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};w.gray.hsl=w.gray.hsv=function(t){return[0,0,t[0]]};w.gray.hwb=function(t){return[0,100,t[0]]};w.gray.cmyk=function(t){return[0,0,0,t[0]]};w.gray.lab=function(t){return[t[0],0,0]};w.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};w.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var vl=d((sy,ml)=>{u();var Br=Hi();function Yg(){for(var t={},e=Object.keys(Br),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Kg(t){var e=Yg(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Br[n]),s=i.length,a=0;a<s;a++){var o=i[a],l=e[o];l.distance===-1&&(l.distance=e[n].distance+1,l.parent=n,r.unshift(o))}return e}function Jg(t,e){return function(r){return e(t(r))}}function Zg(t,e){for(var r=[e[t].parent,t],n=Br[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=Jg(Br[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}ml.exports=function(t){for(var e=Kg(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var a=n[s],o=e[a];o.parent!==null&&(r[a]=Zg(a,e))}return r}});var yl=d((oy,bl)=>{u();var Vi=Hi(),Qg=vl(),st={},Xg=Object.keys(Vi);function em(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function tm(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}Xg.forEach(function(t){st[t]={},Object.defineProperty(st[t],"channels",{value:Vi[t].channels}),Object.defineProperty(st[t],"labels",{value:Vi[t].labels});var e=Qg(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];st[t][n]=tm(i),st[t][n].raw=em(i)})});bl.exports=st});var El=d((ly,wl)=>{"use strict";u();var Pt=ll(),ne=yl(),Bi=[].slice,_l=["keyword","gray","hex"],Wi={};Object.keys(ne).forEach(function(t){Wi[Bi.call(ne[t].labels).sort().join("")]=t});var zr={};function z(t,e){if(!(this instanceof z))return new z(t,e);if(e&&e in _l&&(e=null),e&&!(e in ne))throw new Error("Unknown model: "+e);var r,n;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof z)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if(typeof t=="string"){var i=Pt.get(t);if(i===null)throw new Error("Unable to parse color from string: "+t);this.model=i.model,n=ne[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(t.length){this.model=e||"rgb",n=ne[this.model].channels;var s=Bi.call(t,0,n);this.color=Ui(s,n),this.valpha=typeof t[n]=="number"?t[n]:1}else if(typeof t=="number")t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var a=Object.keys(t);"alpha"in t&&(a.splice(a.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var o=a.sort().join("");if(!(o in Wi))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=Wi[o];var l=ne[this.model].labels,f=[];for(r=0;r<l.length;r++)f.push(t[l[r]]);this.color=Ui(f)}if(zr[this.model])for(n=ne[this.model].channels,r=0;r<n;r++){var p=zr[this.model][r];p&&(this.color[r]=p(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}z.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in Pt.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);var r=e.valpha===1?e.color:e.color.concat(this.valpha);return Pt.to[e.model](r)},percentString:function(t){var e=this.rgb().round(typeof t=="number"?t:1),r=e.valpha===1?e.color:e.color.concat(this.valpha);return Pt.to.rgb.percent(r)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=ne[this.model].channels,r=ne[this.model].labels,n=0;n<e;n++)t[r[n]]=this.color[n];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new z(this.color.map(nm(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new z(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:k("rgb",0,V(255)),green:k("rgb",1,V(255)),blue:k("rgb",2,V(255)),hue:k(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:k("hsl",1,V(100)),lightness:k("hsl",2,V(100)),saturationv:k("hsv",1,V(100)),value:k("hsv",2,V(100)),chroma:k("hcg",1,V(100)),gray:k("hcg",2,V(100)),white:k("hwb",1,V(100)),wblack:k("hwb",2,V(100)),cyan:k("cmyk",0,V(100)),magenta:k("cmyk",1,V(100)),yellow:k("cmyk",2,V(100)),black:k("cmyk",3,V(100)),x:k("xyz",0,V(100)),y:k("xyz",1,V(100)),z:k("xyz",2,V(100)),l:k("lab",0,V(100)),a:k("lab",1),b:k("lab",2),keyword:function(t){return arguments.length?new z(t):ne[this.model].keyword(this.color)},hex:function(t){return arguments.length?new z(t):Pt.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity:function(){for(var t=this.rgb().color,e=[],r=0;r<t.length;r++){var n=t[r]/255;e[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return z.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var r=t.rgb(),n=this.rgb(),i=e===void 0?.5:e,s=2*i-1,a=r.alpha()-n.alpha(),o=((s*a===-1?s:(s+a)/(1+s*a))+1)/2,l=1-o;return z.rgb(o*r.red()+l*n.red(),o*r.green()+l*n.green(),o*r.blue()+l*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};Object.keys(ne).forEach(function(t){if(_l.indexOf(t)===-1){var e=ne[t].channels;z.prototype[t]=function(){if(this.model===t)return new z(this);if(arguments.length)return new z(arguments,t);var r=typeof arguments[e]=="number"?e:this.valpha;return new z(im(ne[this.model][t].raw(this.color)).concat(r),t)},z[t]=function(r){return typeof r=="number"&&(r=Ui(Bi.call(arguments),e)),new z(r,t)}}});function rm(t,e){return Number(t.toFixed(e))}function nm(t){return function(e){return rm(e,t)}}function k(t,e,r){return t=Array.isArray(t)?t:[t],t.forEach(function(n){(zr[n]||(zr[n]=[]))[e]=r}),t=t[0],function(n){var i;return arguments.length?(r&&(n=r(n)),i=this[t](),i.color[e]=n,i):(i=this[t]().color[e],r&&(i=r(i)),i)}}function V(t){return function(e){return Math.max(0,Math.min(t,e))}}function im(t){return Array.isArray(t)?t:[t]}function Ui(t,e){for(var r=0;r<e;r++)typeof t[r]!="number"&&(t[r]=0);return t}wl.exports=z});var Ol=d((cy,Sl)=>{"use strict";u();Sl.exports=function(e){for(var r=0,n=0;r<e.length;n=e.charCodeAt(r++)+((n<<5)-n));var i=Math.floor(Math.abs(Math.sin(n)*1e4%1*16777216)).toString(16);return"#"+Array(6-i.length+1).join("0")+i}});var ql=d((dy,Ml)=>{"use strict";u();var xl=El(),Al=Ol();Ml.exports=function(e,r){var n=e.split(r||":"),i=Al(n[0]);if(!n.length)return i;for(var s=0,a=n.length-1;s<a;s++)i=xl(i).mix(xl(Al(n[s+1]))).saturate(1).hex();return i}});var Cl=d((gy,Rl)=>{"use strict";u();function fe(t,e){if(e)return new fe(t).style(e);if(!(this instanceof fe))return new fe(t);this.text=t}fe.prototype.prefix="\x1B[";fe.prototype.suffix="m";fe.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var r=e.substring(0,2),n=e.substring(2,4),i=e.substring(4,6);return[parseInt(r,16),parseInt(n,16),parseInt(i,16)]};fe.prototype.rgb=function(e,r,n){var i=e/255*5,s=r/255*5,a=n/255*5;return this.ansi(i,s,a)};fe.prototype.ansi=function(e,r,n){var i=Math.round(e),s=Math.round(r),a=Math.round(n);return 16+i*36+s*6+a};fe.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};fe.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};Rl.exports=fe});var $l=d((vy,Tl)=>{u();var sm=ql(),am=Cl();Tl.exports=function(e,r){var n=r.namespace,i=r.colors!==!1?am(n+":",sm(n)):n+":";return e[0]=i+" "+e[0],e}});var Ll=d((yy,Pl)=>{"use strict";u();Pl.exports=function(e,r){if(!r)return!1;for(var n=r.split(/[\s,]+/),i=0;i<n.length;i++){if(r=n[i].replace("*",".*?"),r.charAt(0)==="-"){if(new RegExp("^"+r.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+r+"$").test(e))return!0}return!1}});var jl=d((wy,Nl)=>{u();var om=Ll();Nl.exports=function(e){return function(n){try{return om(n,e())}catch{}return!1}}});var kl=d((Sy,Dl)=>{u();var um=jl();Dl.exports=um(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Fl=d((xy,Il)=>{u();Il.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var Vl=d((My,Hl)=>{u();var lm=Fi(),fm=require("tty").isatty(1),Gr=lm(function t(e,r){return r=r||{},r.colors="colors"in r?r.colors:fm,r.namespace=e,r.prod=!1,r.dev=!0,!t.enabled(e)&&!(r.force||t.force)?t.nope(r):t.yep(r)});Gr.modify($l());Gr.use(kl());Gr.set(Fl());Hl.exports=Gr});var Lt=d((Ry,zi)=>{u();process.env.NODE_ENV==="production"?zi.exports=Qu():zi.exports=Vl()});var Ul=d((Ty,Wl)=>{"use strict";u();var Gi=require("fs"),{StringDecoder:cm}=require("string_decoder"),{Stream:hm}=Ve();function dm(){}Wl.exports=(t,e)=>{let r=Buffer.alloc(65536),n=new cm("utf8"),i=new hm,s="",a=0,o=0;return t.start===-1&&delete t.start,i.readable=!0,i.destroy=()=>{i.destroyed=!0,i.emit("end"),i.emit("close")},Gi.open(t.file,"a+","0644",(l,f)=>{if(l){e?e(l):i.emit("error",l),i.destroy();return}(function p(){if(i.destroyed){Gi.close(f,dm);return}return Gi.read(f,r,0,r.length,a,(v,g)=>{if(v){e?e(v):i.emit("error",v),i.destroy();return}if(!g)return s&&((t.start==null||o>t.start)&&(e?e(null,s):i.emit("line",s)),o++,s=""),setTimeout(p,1e3);let c=n.write(r.slice(0,g));e||i.emit("data",c),c=(s+c).split(/\n+/);let b=c.length-1,y=0;for(;y<b;y++)(t.start==null||o>t.start)&&(e?e(null,c[y]):i.emit("line",c[y])),o++;return s=c[b],a+=g,p()})})()}),e?i.destroy:i}});var Yl=d((Ly,Gl)=>{"use strict";u();var Q=require("fs"),U=require("path"),Bl=ku(),pm=require("zlib"),{MESSAGE:gm}=F(),{Stream:mm,PassThrough:zl}=Ve(),vm=tt(),ce=Lt()("winston:file"),bm=require("os"),ym=Ul();Gl.exports=class extends vm{constructor(e={}){super(e),this.name=e.name||"file";function r(n,...i){i.slice(1).forEach(s=>{if(e[s])throw new Error(`Cannot set ${s} and ${n} together`)})}if(this._stream=new zl,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)r("filename or dirname","stream"),this._basename=this.filename=e.filename?U.basename(e.filename):"winston.log",this.dirname=e.dirname||U.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),r("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=U.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:bm.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,r=()=>{}){if(this.silent)return r(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,r)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,r)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,r)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,r)})});return}}let n=`${e[gm]}${this.eol}`,i=Buffer.byteLength(n);function s(){if(this._size+=i,this._pendingSize-=i,ce("logged %s %s",this._size,n),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=i,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let a=this._stream.write(n,s.bind(this));return a?r():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,r()})),ce("written",a,this._drain),this.finishIfEnding(),a}query(e,r){typeof e=="function"&&(r=e,e={}),e=v(e);let n=U.join(this.dirname,this.filename),i="",s=[],a=0,o=Q.createReadStream(n,{encoding:"utf8"});o.on("error",g=>{if(o.readable&&o.destroy(),!!r)return g.code!=="ENOENT"?r(g):r(null,s)}),o.on("data",g=>{g=(i+g).split(/\n+/);let c=g.length-1,b=0;for(;b<c;b++)(!e.start||a>=e.start)&&l(g[b]),a++;i=g[c]}),o.on("close",()=>{i&&l(i,!0),e.order==="desc"&&(s=s.reverse()),r&&r(null,s)});function l(g,c){try{let b=JSON.parse(g);p(b)&&f(b)}catch(b){c||o.emit("error",b)}}function f(g){if(e.rows&&s.length>=e.rows&&e.order!=="desc"){o.readable&&o.destroy();return}e.fields&&(g=e.fields.reduce((c,b)=>(c[b]=g[b],c),{})),e.order==="desc"&&s.length>=e.rows&&s.shift(),s.push(g)}function p(g){if(!g||typeof g!="object")return;let c=new Date(g.timestamp);if(!(e.from&&c<e.from||e.until&&c>e.until||e.level&&e.level!==g.level))return!0}function v(g){return g=g||{},g.rows=g.rows||g.limit||10,g.start=g.start||0,g.until=g.until||new Date,typeof g.until!="object"&&(g.until=new Date(g.until)),g.from=g.from||g.until-24*60*60*1e3,typeof g.from!="object"&&(g.from=new Date(g.from)),g.order=g.order||"desc",g}}stream(e={}){let r=U.join(this.dirname,this.filename),n=new mm,i={file:r,start:e.start};return n.destroy=ym(i,(s,a)=>{if(s)return n.emit("error",s);try{n.emit("data",a),a=JSON.parse(a),n.emit("log",a)}catch(o){n.emit("error",o)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,r)=>{if(e)return this.emit("error",e);ce("stat done: %s { size: %s }",this.filename,r),this._size=r,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.eventNames().includes("rotate")?this._stream.emit("rotate"):this._rotate=!1})})))}stat(e){let r=this._getFile(),n=U.join(this.dirname,r);Q.stat(n,(i,s)=>{if(i&&i.code==="ENOENT")return ce("ENOENT\xA0ok",n),this.filename=r,e(null,0);if(i)return ce(`err ${i.code} ${n}`),e(i);if(!s||this._needsNewFile(s.size))return this._incFile(()=>this.stat(e));this.filename=r,e(null,s.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let r=U.join(this.dirname,this.filename);ce("create stream start",r,this.options);let n=Q.createWriteStream(r,this.options).on("error",i=>ce(i)).on("close",()=>ce("close",n.path,n.bytesWritten)).on("open",()=>{ce("file open ok",r),this.emit("open",r),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new zl,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return ce("create stream ok",r),n}_incFile(e){ce("_incFile",this.filename);let r=U.extname(this._basename),n=U.basename(this._basename,r),i=[];this.zippedArchive&&i.push(function(s){let a=this._created>0&&!this.tailable?this._created:"";this._compressFile(U.join(this.dirname,`${n}${a}${r}`),U.join(this.dirname,`${n}${a}${r}.gz`),s)}.bind(this)),i.push(function(s){this.tailable?this._checkMaxFilesTailable(r,n,s):(this._created+=1,this._checkMaxFilesIncrementing(r,n,s))}.bind(this)),Bl(i,e)}_getFile(){let e=U.extname(this._basename),r=U.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${r}${n}${e}`:`${r}${e}`}_checkMaxFilesIncrementing(e,r,n){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(n);let i=this._created-this.maxFiles,s=i!==0?i:"",a=this.zippedArchive?".gz":"",o=`${r}${s}${e}${a}`,l=U.join(this.dirname,o);Q.unlink(l,n)}_checkMaxFilesTailable(e,r,n){let i=[];if(!this.maxFiles)return;let s=this.zippedArchive?".gz":"";for(let a=this.maxFiles-1;a>1;a--)i.push(function(o,l){let f=`${r}${o-1}${e}${s}`,p=U.join(this.dirname,f);Q.exists(p,v=>{if(!v)return l(null);f=`${r}${o}${e}${s}`,Q.rename(p,U.join(this.dirname,f),l)})}.bind(this,a));Bl(i,()=>{Q.rename(U.join(this.dirname,`${r}${e}${s}`),U.join(this.dirname,`${r}1${e}${s}`),n)})}_compressFile(e,r,n){Q.access(e,Q.F_OK,i=>{if(i)return n();var s=pm.createGzip(),a=Q.createReadStream(e),o=Q.createWriteStream(r);o.on("finish",()=>{Q.unlink(e,n)}),a.pipe(s).pipe(o)})}_createLogDirIfNotExist(e){Q.existsSync(e)||Q.mkdirSync(e,{recursive:!0})}}});var Jl=d((Dy,Kl)=>{"use strict";u();var _m=require("http"),wm=require("https"),{Stream:Em}=Ve(),Sm=tt(),{configure:Om}=gt();Kl.exports=class extends Sm{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,r){this._request(e,null,null,(n,i)=>{i&&i.statusCode!==200&&(n=new Error(`Invalid HTTP Status Code: ${i.statusCode}`)),n?this.emit("warn",n):this.emit("logged",e)}),r&&setImmediate(r)}query(e,r){typeof e=="function"&&(r=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let n=e.params.auth||null;delete e.params.auth;let i=e.params.path||null;delete e.params.path,this._request(e,n,i,(s,a,o)=>{if(a&&a.statusCode!==200&&(s=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),s)return r(s);if(typeof o=="string")try{o=JSON.parse(o)}catch(l){return r(l)}r(null,o)})}stream(e={}){let r=new Em;e={method:"stream",params:e};let n=e.params.path||null;delete e.params.path;let i=e.params.auth||null;delete e.params.auth;let s="",a=this._request(e,i,n);return r.destroy=()=>a.destroy(),a.on("data",o=>{o=(s+o).split(/\n+/);let l=o.length-1,f=0;for(;f<l;f++)try{r.emit("log",JSON.parse(o[f]))}catch(p){r.emit("error",p)}s=o[l]}),a.on("error",o=>r.emit("error",o)),r}_request(e,r,n,i){e=e||{},r=r||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,i,r,n):this._doRequest(e,i,r,n)}_doBatch(e,r,n,i){if(this.batchOptions.push(e),this.batchOptions.length===1){let s=this;this.batchCallback=r,this.batchTimeoutID=setTimeout(function(){s.batchTimeoutID=-1,s._doBatchRequest(s.batchCallback,n,i)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,i)}_doBatchRequest(e,r,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let i=this.batchOptions.slice();this.batchOptions=[],this._doRequest(i,e,r,n)}_doRequest(e,r,n,i){let s=Object.assign({},this.headers);n&&n.bearer&&(s.Authorization=`Bearer ${n.bearer}`);let a=(this.ssl?wm:_m).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${i.replace(/^\//,"")}`,headers:s,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});a.on("error",r),a.on("response",l=>l.on("end",()=>r(null,l)).resume());let o=Om({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});a.end(Buffer.from(o(e,this.options.replacer),"utf8"))}}});var Yi=d((Iy,Zl)=>{"use strict";u();var me=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";me.writable=t=>me(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";me.readable=t=>me(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";me.duplex=t=>me.writable(t)&&me.readable(t);me.transform=t=>me.duplex(t)&&typeof t._transform=="function";Zl.exports=me});var Xl=d((Vy,Ql)=>{"use strict";u();var xm=Yi(),{MESSAGE:Am}=F(),Mm=require("os"),qm=tt();Ql.exports=class extends qm{constructor(e={}){if(super(e),!e.stream||!xm(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=typeof e.eol=="string"?e.eol:Mm.EOL}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),r&&r();return}this._stream.write(`${e[Am]}${this.eol}`),r&&r()}}});var ef=d(Nt=>{"use strict";u();Object.defineProperty(Nt,"Console",{configurable:!0,enumerable:!0,get(){return ru()}});Object.defineProperty(Nt,"File",{configurable:!0,enumerable:!0,get(){return Yl()}});Object.defineProperty(Nt,"Http",{configurable:!0,enumerable:!0,get(){return Jl()}});Object.defineProperty(Nt,"Stream",{configurable:!0,enumerable:!0,get(){return Xl()}})});var Kr=d(jt=>{"use strict";u();var Yr=Yn(),{configs:Ki}=F();jt.cli=Yr.levels(Ki.cli);jt.npm=Yr.levels(Ki.npm);jt.syslog=Yr.levels(Ki.syslog);jt.addColors=Yr.levels});var rf=d((Jr,tf)=>{"use strict";u();Object.defineProperty(Jr,"__esModule",{value:!0});var Rm=Or(),Cm=Ue(Rm),Tm=Lr(),$m=Ue(Tm),Pm=Ti(),Lm=Ue(Pm),Nm=qi(),jm=Ue(Nm),Dm=Ri(),km=Ue(Dm),Im=He(),Fm=Ue(Im),Hm=nt(),Vm=Ue(Hm);function Ue(t){return t&&t.__esModule?t:{default:t}}function Wm(t,e,r){r=(0,jm.default)(r);var n=0,i=0,{length:s}=t,a=!1;s===0&&r(null);function o(l,f){l===!1&&(a=!0),a!==!0&&(l?r(l):(++i===s||f===$m.default)&&r(null))}for(;n<s;n++)e(t[n],n,(0,km.default)(o))}function Um(t,e,r){return(0,Lm.default)(t,1/0,e,r)}function Bm(t,e,r){var n=(0,Cm.default)(t)?Wm:Um;return n(t,(0,Fm.default)(e),r)}Jr.default=(0,Vm.default)(Bm,3);tf.exports=Jr.default});var sf=d((Zr,nf)=>{"use strict";u();Object.defineProperty(Zr,"__esModule",{value:!0});Zr.default=zm;function zm(t){return(e,r,n)=>t(e,n)}nf.exports=Zr.default});var en=d((Xr,af)=>{"use strict";u();Object.defineProperty(Xr,"__esModule",{value:!0});var Gm=rf(),Ym=Qr(Gm),Km=sf(),Jm=Qr(Km),Zm=He(),Qm=Qr(Zm),Xm=nt(),e0=Qr(Xm);function Qr(t){return t&&t.__esModule?t:{default:t}}function t0(t,e,r){return(0,Ym.default)(t,(0,Jm.default)((0,Qm.default)(e)),r)}Xr.default=(0,e0.default)(t0,3);af.exports=Xr.default});var uf=d((Zy,of)=>{"use strict";u();var r0=Object.prototype.toString;of.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var r=e.toString(),n=r0.call(e).slice(8,-1);return n==="Function"?r=r.substring(r.indexOf("(")+1,r.indexOf(")")):r=n,r||"anonymous"}});var Ji=d((Xy,lf)=>{"use strict";u();var n0=uf();lf.exports=function(e){var r=0,n;function i(){return r||(r=1,n=e.apply(this,arguments),e=null),n}return i.displayName=n0(e),i}});var Zi=d(kt=>{u();kt.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(s,a){return a},Error.captureStackTrace(r,t||kt.get);var i=r.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i};kt.parse=function(t){if(!t.stack)return[];var e=this,r=t.stack.split(`
`).slice(1);return r.map(function(n){if(n.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:n,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var i=n.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(i){var s=null,a=null,o=null,l=null,f=null,p=i[5]==="native";if(i[1]){o=i[1];var v=o.lastIndexOf(".");if(o[v-1]=="."&&v--,v>0){s=o.substr(0,v),a=o.substr(v+1);var g=s.indexOf(".Module");g>0&&(o=o.substr(g+1),s=s.substr(0,g))}l=null}a&&(l=s,f=a),a==="<anonymous>"&&(f=null,o=null);var c={fileName:i[2]||null,lineNumber:parseInt(i[3],10)||null,functionName:o,typeName:l,methodName:f,columnNumber:parseInt(i[4],10)||null,native:p};return e._createParsedCallSite(c)}}).filter(function(n){return!!n})};function Dt(t){for(var e in t)this[e]=t[e]}var i0=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],s0=["topLevel","eval","native","constructor"];i0.forEach(function(t){Dt.prototype[t]=null,Dt.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});s0.forEach(function(t){Dt.prototype[t]=!1,Dt.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});kt._createParsedCallSite=function(t){return new Dt(t)}});var cf=d((i_,ff)=>{"use strict";u();var{Writable:a0}=Ve();ff.exports=class extends a0{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,r,n){return e.exception?this.transport.log(e,n):(n(),!0)}}});var Xi=d((o_,pf)=>{"use strict";u();var hf=require("os"),o0=en(),Qi=Lt()("winston:exception"),u0=Ji(),df=Zi(),l0=cf();pf.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(r=>{if(Array.isArray(r))return r.forEach(n=>this._addHandler(n));this._addHandler(r)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let r=null;return e&&(r=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${r||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
`),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:hf.loadavg(),uptime:hf.uptime()}}getTrace(e){return(e?df.parse(e):df.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let r=new l0(e);this.handlers.set(e,r),this.logger.pipe(r)}}_uncaughtException(e){let r=this.getAllInfo(e),n=this._getExceptionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,s;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),i=!1);function a(){Qi("doExit",i),Qi("process._exiting",process._exiting),i&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!n||n.length===0)return process.nextTick(a);o0(n,(o,l)=>{let f=u0(l),p=o.transport||o;function v(g){return()=>{Qi(g),f()}}p._ending=!0,p.once("finish",v("finished")),p.once("error",v("error"))},()=>i&&a()),this.logger.log(r),i&&(s=setTimeout(a,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var mf=d((f_,gf)=>{"use strict";u();var{Writable:f0}=Ve();gf.exports=class extends f0{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,r,n){return e.rejection?this.transport.log(e,n):(n(),!0)}}});var ts=d((d_,yf)=>{"use strict";u();var vf=require("os"),c0=en(),es=Lt()("winston:rejection"),h0=Ji(),bf=Zi(),d0=mf();yf.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(r=>{if(Array.isArray(r))return r.forEach(n=>this._addHandler(n));this._addHandler(r)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let r=null;return e&&(r=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${r||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
`),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:vf.loadavg(),uptime:vf.uptime()}}getTrace(e){return(e?bf.parse(e):bf.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let r=new d0(e);this.handlers.set(e,r),this.logger.pipe(r)}}_unhandledRejection(e){let r=this.getAllInfo(e),n=this._getRejectionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,s;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),i=!1);function a(){es("doExit",i),es("process._exiting",process._exiting),i&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!n||n.length===0)return process.nextTick(a);c0(n,(o,l)=>{let f=h0(l),p=o.transport||o;function v(g){return()=>{es(g),f()}}p._ending=!0,p.once("finish",v("finished")),p.once("error",v("error"))},()=>i&&a()),this.logger.log(r),i&&(s=setTimeout(a,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var wf=d((g_,_f)=>{"use strict";u();var rs=class{constructor(e){let r=tn();if(typeof e!="object"||Array.isArray(e)||!(e instanceof r))throw new Error("Logger is required for profiling");this.logger=e,this.start=Date.now()}done(...e){typeof e[e.length-1]=="function"&&(console.warn("Callback function no longer supported as of [email protected]"),e.pop());let r=typeof e[e.length-1]=="object"?e.pop():{};return r.level=r.level||"info",r.durationMs=Date.now()-this.start,this.logger.write(r)}};_f.exports=rs});var tn=d((v_,xf)=>{"use strict";u();var{Stream:p0,Transform:g0}=Ve(),Ef=en(),{LEVEL:ve,SPLAT:Sf}=F(),Of=Yi(),m0=Xi(),v0=ts(),b0=xi(),y0=wf(),{warn:_0}=Kn(),w0=Kr(),E0=/%[scdjifoO%]/g,rn=class extends g0{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let r=this;return Object.create(r,{write:{value:function(n){let i=Object.assign({},e,n);n instanceof Error&&(i.stack=n.stack,i.message=n.message),r.write(i)}}})}configure({silent:e,format:r,defaultMeta:n,levels:i,level:s="info",exitOnError:a=!0,transports:o,colors:l,emitErrs:f,formatters:p,padLevels:v,rewriters:g,stripColors:c,exceptionHandlers:b,rejectionHandlers:y}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=r||this.format||Wn()(),this.defaultMeta=n||null,this.levels=i||this.levels||w0.npm.levels,this.level=s,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new m0(this),this.rejections=new v0(this),this.profilers={},this.exitOnError=a,o&&(o=Array.isArray(o)?o:[o],o.forEach(E=>this.add(E))),l||f||p||v||g||c)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in [email protected].","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
`));b&&this.exceptions.handle(b),y&&this.rejections.handle(y)}isLevelEnabled(e){let r=ns(this.levels,e);if(r===null)return!1;let n=ns(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=r:this.transports.findIndex(s=>{let a=ns(this.levels,s.level);return a===null&&(a=n),a>=r})!==-1}log(e,r,...n){if(arguments.length===1)return e[ve]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return r&&typeof r=="object"?(r[ve]=r.level=e,this._addDefaultMeta(r),this.write(r),this):(r={[ve]:e,level:e,message:r},this._addDefaultMeta(r),this.write(r),this);let[i]=n;if(typeof i=="object"&&i!==null&&!(r&&r.match&&r.match(E0))){let a=Object.assign({},this.defaultMeta,i,{[ve]:e,[Sf]:n,level:e,message:r});return i.message&&(a.message=`${a.message} ${i.message}`),i.stack&&(a.stack=i.stack),this.write(a),this}return this.write(Object.assign({},this.defaultMeta,{[ve]:e,[Sf]:n,level:e,message:r})),this}_transform(e,r,n){if(this.silent)return n();e[ve]||(e[ve]=e.level),!this.levels[e[ve]]&&this.levels[e[ve]]!==0&&console.error("[winston] Unknown logger level: %s",e[ve]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,n()}}_final(e){let r=this.transports.slice();Ef(r,(n,i)=>{if(!n||n.finished)return setImmediate(i);n.once("finish",i),n.end()},e)}add(e){let r=!Of(e)||e.log.length>2?new b0({transport:e}):e;if(!r._writableState||!r._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",r),this._onEvent("warn",r),this.pipe(r),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let r=e;return(!Of(e)||e.log.length>2)&&(r=this.transports.filter(n=>n.transport===e)[0]),r&&this.unpipe(r),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){_0.deprecated("setLevels")}query(e,r){typeof e=="function"&&(r=e,e={}),e=e||{};let n={},i=Object.assign({},e.query||{});function s(o,l){e.query&&typeof o.formatQuery=="function"&&(e.query=o.formatQuery(i)),o.query(e,(f,p)=>{if(f)return l(f);typeof o.formatResults=="function"&&(p=o.formatResults(p,e.format)),l(null,p)})}function a(o,l){s(o,(f,p)=>{l&&(p=f||p,p&&(n[o.name]=p),l()),l=null})}Ef(this.transports.filter(o=>!!o.query),a,()=>r(null,n))}stream(e={}){let r=new p0,n=[];return r._streams=n,r.destroy=()=>{let i=n.length;for(;i--;)n[i].destroy()},this.transports.filter(i=>!!i.stream).forEach(i=>{let s=i.stream(e);s&&(n.push(s),s.on("log",a=>{a.transport=a.transport||[],a.transport.push(i.name),r.emit("log",a)}),s.on("error",a=>{a.transport=a.transport||[],a.transport.push(i.name),r.emit("error",a)}))}),r}startTimer(){return new y0(this)}profile(e,...r){let n=Date.now();if(this.profilers[e]){let i=this.profilers[e];delete this.profilers[e],typeof r[r.length-2]=="function"&&(console.warn("Callback function no longer supported as of [email protected]"),r.pop());let s=typeof r[r.length-1]=="object"?r.pop():{};return s.level=s.level||"info",s.durationMs=n-i,s.message=s.message||e,this.write(s)}return this.profilers[e]=n,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in [email protected]","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
`))}_onEvent(e,r){function n(i){e==="error"&&!this.transports.includes(r)&&this.add(r),this.emit(e,i,r)}r["__winston"+e]||(r["__winston"+e]=n.bind(this),r.on(e,r["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function ns(t,e){let r=t[e];return!r&&r!==0?null:r}Object.defineProperty(rn.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});xf.exports=rn});var is=d((y_,Af)=>{"use strict";u();var{LEVEL:S0}=F(),O0=Kr(),x0=tn(),A0=Lt()("winston:create-logger");function M0(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}Af.exports=function(t={}){t.levels=t.levels||O0.npm.levels;class e extends x0{constructor(i){super(i)}}let r=new e(t);return Object.keys(t.levels).forEach(function(n){if(A0('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[n]=function(...i){let s=this||r;if(i.length===1){let[a]=i,o=a&&a.message&&a||{message:a};return o.level=o[S0]=n,s._addDefaultMeta(o),s.write(o),this||r}return i.length===0?(s.log(n,""),s):s.log(n,...i)},e.prototype[M0(n)]=function(){return(this||r).isLevelEnabled(n)}}),r}});var qf=d((E_,Mf)=>{"use strict";u();var q0=is();Mf.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,r){if(!this.loggers.has(e)){r=Object.assign({},r||this.options);let n=r.transports||this.options.transports;n?r.transports=Array.isArray(n)?n.slice():[n]:r.transports=[];let i=q0(r);i.on("close",()=>this._delete(e)),this.loggers.set(e,i)}return this.loggers.get(e)}get(e,r){return this.add(e,r)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((r,n)=>this._removeLogger(n))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var ss=d($=>{"use strict";u();var Rf=Yn(),{warn:It}=Kn();$.version=Xa().version;$.transports=ef();$.config=Kr();$.addColors=Rf.levels;$.format=Rf.format;$.createLogger=is();$.Logger=tn();$.ExceptionHandler=Xi();$.RejectionHandler=ts();$.Container=qf();$.Transport=tt();$.loggers=new $.Container;var be=$.createLogger();Object.keys($.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>$[t]=(...e)=>be[t](...e));Object.defineProperty($,"level",{get(){return be.level},set(t){be.level=t}});Object.defineProperty($,"exceptions",{get(){return be.exceptions}});Object.defineProperty($,"rejections",{get(){return be.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty($,t,{get(){return be[t]},set(e){be[t]=e}})});Object.defineProperty($,"default",{get(){return{exceptionHandlers:be.exceptionHandlers,rejectionHandlers:be.rejectionHandlers,transports:be.transports}}});It.deprecated($,"setLevels");It.forFunctions($,"useFormat",["cli"]);It.forProperties($,"useFormat",["padLevels","stripColors"]);It.forFunctions($,"deprecated",["addRewriter","addFilter","clone","extend"]);It.forProperties($,"deprecated",["emitErrs","levelLength"])});var Lf=d(Pf=>{u();var as="2.0.1",Cf,nn,Tf,us,ls,at,Ht,Ft,os,ot,G,$f=[].slice,R0=[].indexOf||function(t){for(var e=0,r=this.length;e<r;e++)if(e in this&&this[e]===t)return e;return-1},C0={}.hasOwnProperty;Ht=require("path");Tf=function(t){return typeof t=="function"};us=function(t){return typeof t=="string"||!!t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object String]"};G=Pf;G.VERSION=typeof as<"u"&&as!==null?as:"NO-VERSION";ot=function(t){return t=t.replace(/\\/g,"/"),t=t.replace(/(?<!^)\/+/g,"/"),t};for(Ft in Ht)os=Ht[Ft],Tf(os)?G[Ft]=function(t){return function(){var e,r;return e=1<=arguments.length?$f.call(arguments,0):[],e=e.map(function(n){return us(n)?ot(n):n}),r=Ht[t].apply(Ht,e),us(r)?ot(r):r}}(Ft):G[Ft]=os;G.sep="/";nn={toUnix:ot,normalizeSafe:function(t){var e;return t=ot(t),e=G.normalize(t),t.startsWith("./")&&!e.startsWith("./")&&!e.startsWith("..")?e="./"+e:t.startsWith("//")&&!e.startsWith("//")&&(t.startsWith("//./")?e="//."+e:e="/"+e),e},normalizeTrim:function(t){return t=G.normalizeSafe(t),t.endsWith("/")?t.slice(0,+(t.length-2)+1||9e9):t},joinSafe:function(){var t,e,r;return t=1<=arguments.length?$f.call(arguments,0):[],r=G.join.apply(null,t),t.length>0&&(e=ot(t[0]),e.startsWith("./")&&!r.startsWith("./")&&!r.startsWith("..")?r="./"+r:e.startsWith("//")&&!r.startsWith("//")&&(e.startsWith("//./")?r="//."+r:r="/"+r)),r},addExt:function(t,e){return e?(e[0]!=="."&&(e="."+e),t+(t.endsWith(e)?"":e)):t},trimExt:function(t,e,r){var n;return r==null&&(r=7),n=G.extname(t),ls(n,e,r)?t.slice(0,+(t.length-n.length-1)+1||9e9):t},removeExt:function(t,e){return e?(e=e[0]==="."?e:"."+e,G.extname(t)===e?G.trimExt(t,[],e.length):t):t},changeExt:function(t,e,r,n){return n==null&&(n=7),G.trimExt(t,r,n)+(e?e[0]==="."?e:"."+e:"")},defaultExt:function(t,e,r,n){var i;return n==null&&(n=7),i=G.extname(t),ls(i,r,n)?t:G.addExt(t,e)}};ls=function(t,e,r){return e==null&&(e=[]),t&&t.length<=r&&R0.call(e.map(function(n){return(n&&n[0]!=="."?".":"")+n}),t)<0};for(at in nn)if(C0.call(nn,at)){if(Cf=nn[at],G[at]!==void 0)throw new Error("path."+at+" already exists.");G[at]=Cf}});u();u();var qs=ht(Ms(),1),{program:Y0,createCommand:K0,createArgument:J0,createOption:Z0,CommanderError:Q0,InvalidArgumentError:X0,InvalidOptionArgumentError:ev,Command:Rs,Argument:tv,Option:Cs,Help:rv}=qs.default;var P_=ht(ss(),1);u();var ie=ht(ss(),1),ut=ht(Lf(),1),jf=require("url"),Df=require("fs"),an=[];an.push(new ie.default.transports.Console({name:"console",level:"info",format:ie.default.format.combine(ie.default.format.errors({stack:!0}),ie.default.format.timestamp(),ie.default.format.colorize(),ie.default.format.simple(),ie.default.format.printf(t=>`${t.timestamp} ${t.level}: ${t.message}`))}));var he=ie.default.createLogger({transports:an,format:ie.default.format.combine(ie.default.format.errors({stack:!0}),ie.default.format.timestamp(),ie.default.format.printf(t=>`${t.timestamp} ${t.level}: ${t.message}`))}),on=typeof process.pkg<"u",R_=on?ut.default.dirname(process.execPath):process.cwd(),Nf="./package.json",Vt,Wt,sn;on?(Vt=process.pkg.defaultEntrypoint,Wt=ut.default.dirname(Vt),sn=ut.default.join(Wt,Nf)):(Vt=(0,jf.fileURLToPath)(h),Wt=ut.default.dirname(Vt),sn=ut.default.join(Wt,Nf));console.log(`a: ${Vt}`);console.log(`b: ${Wt}`);console.log(`c: ${sn}`);var{version:T0}=JSON.parse((0,Df.readFileSync)(sn)),un=T0,kf=()=>an.find(t=>t.name==="console").level,If=t=>{an.find(e=>e.name==="console").level=t};var Ff=ht(require("node:dgram"),1),lt=new Rs;lt.name("ctrl-q");lt.showHelpAfterError("(add --help for additional information about required and optional parameters)");lt.configureHelp({sortSubcommands:!0});(async()=>{let t;lt.version(un).description(`"Butler UDP Client" is a general purpose, command line utility for sending UDP messages.
It was first designed to be used with the Butler and Butler SOS tools, but can be used with any UDP server.
Note: Some commands are specific to the Butler and Butler SOS tools and can be useful
when investigating connection issues fom Qlik Sense to the Butler tools.
App version: ${un}`).hook("preAction",(n,i)=>{let s=i.opts()}).addOption(new Cs("-l, --log-level <level>","log level").choices(["error","warn","info","verbose","debug","silly"]).default("info")).requiredOption("-h, --host <host>","IP or hostname of UDP server").requiredOption("-p, --port <port>","port number of UDP server").requiredOption("-m, --msg <message>","message to send","Test message"),await lt.parseAsync(process.argv);let e=lt.opts();If(e.logLevel),he.info("--------------------------------------"),he.info(`Log level : ${kf()}`),he.info(`App version : ${un}`),he.verbose(""),he.verbose(`Running as : ${on?"standalone app":"source code"}`),he.verbose(`Command line options : ${JSON.stringify(e)}`),he.info("--------------------------------------");let r=Ff.default.createSocket({type:"udp4",reuseAddr:!0});t=Buffer.from(e.msg);try{he.info(`Sending UDP message "${t}"`),r.send(t,0,t.length,e.port,e.host,(n,i)=>{if(n)throw n;he.info(`UDP message sent to ${e.host}:${e.port}, ${i} bytes.`),r.close()})}catch(n){he.error(`Error sending UDP message: ${n}`)}})();
/*! Bundled license information:
safe-buffer/index.js:
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
*/