Lines 1-32javascript
2import { createRequire as __cowlCreateRequire } from 'node:module';
3const require = __cowlCreateRequire(import.meta.url);
4var Uw=Object.create;var p0=Object.defineProperty;var zw=Object.getOwnPropertyDescriptor;var Lw=Object.getOwnPropertyNames;var qw=Object.getPrototypeOf,jw=Object.prototype.hasOwnProperty;var Ya=(e=>typeof require<"u"?require:typeof
5`).replace(/^/gm," ".repeat(i))}let c=[`Usage: ${r.commandUsage(t)}`,""],f=r.commandDescription(t);f.length>0&&(c=c.concat([r.wrap(f,o,0),""]));let l=r.visibleArguments(t).map(p=>u(r.argumentTerm(p),r.argumentDescription(p)));l.length>0&&(c=c.concat(["Arguments:",a(l),""]));let d=r.visibleOptions(t).map(p=>u(r.optionTerm(p),r.optionDescription(p)));if(d.length>0&&(c=c.concat(["Options:",a(d),""])),this.showGlobalOptions){let p=r.visibleGlobalOptions(t).map(b=>u(r.optionTerm(b),r.optionDescription(b)));p.length>0&&(c=c.concat(["Global Options:",a(p),""]))}let m=r.visibleCommands(t).map(p=>u(r.s ...
6`)}padWidth(t,r){return Math.max(r.longestOptionTermLength(t,r),r.longestGlobalOptionTermLength(t,r),r.longestSubcommandTermLength(t,
8`),f=" ".repeat(n),d="\\s\u200B",m=new RegExp(`
9|.{1,${u-1}}([${d}]|$)|[^${d}]+?([${d}]|$)`,"g"),p=c.match(m)||[];return a+p.map((b,E)=>b===`
10`?"":(E>0?f:"")+b.trimEnd()).join(`
11`)}};_1.Help=x0});var B0=on(v0=>{var{InvalidArgumentError:Zw}=Qa(),D0=class{constructor(t,r){this.flags=t,this.description
12(Did you mean one of ${n.join(", ")}?)`:n.length===1?`
13(Did you mean ${n[0]}?)`:""}R1.suggestSimilar=Qw});var z1=on(U1=>{var eD=Ya("node:events").EventEmitter,A0=Ya("node:child_process"),sn=
14- specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=t._name),(r.noHelp||r.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,r){return new tD(t,r)}argument(t,r,n,o){let i=this.createArgument(t,r);return typeof n=="function"?i.default(o).argParser(n):i.default(n),this.addArgument(i),this}arguments(t){return t.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(t){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last ...
15Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(r):this._lifeCycleHooks[t]=[r],this}exitOverride(t){return t?this._exitCallback=t:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(t,r,n){this._exitCallback&&this._exitCallback(new S0(t,r,n)),Te.exit(t)}action(t){let r=n=>{let o=this.registeredArguments.length,i=n.slice(0,o);return this._storeOptionsAsProperties?i[o]=this:i[o]=this.opts(),i.push(this),t.apply(this,i)};return this._actionHandler=r,this}createOption(t,r){return new N1(t,r)}_callParseArg(t,r, ...
16- already used by option '${r.flags}'`)}this.options.push(t)}_registerCommand(t){let r=o=>[o.name()].concat(o.aliases()),n=r(t).find(o=>this._findCommand(o));if
17 - if '${t._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
18 - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
19 - ${l}`;throw new Error(d)}else if(f.code==="EACCES")throw new Error(`'${s}' not executable`);if(!c)Te.exit(1);else{let l=new S0(1,"commander.executeSubCommandAsync","(error)");l.nestedError=f,c(l)}}),this.runningCommand=a}_dispatchSubcommand(t,r,n){let o=this._findCommand(t);o||this.help({error:!0});let i;return i=this._chainOrCallSubCommandHook(i,o,"preSubcommand"),i=this._chainOrCall(i,()=>{if(o._executableHandler)this._executeSubCommand(o,r.concat(n));else return o._parseCommand(r,n)}),i}_dispatchHelpCommand(t){t||this.help();let r=this._findCommand(t);return r&&!r._executableHandler&&r.h ...
20`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
21`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
22`),this.outputHelp({error:!0}));let n=r||{},o=n.exitCode||1,i=n.code||"commander.error";this._exit(o,i,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&
23`),this._exit(0,"commander.version",t)}),this}description(t,r){return t===void 0&&r===void 0?this._description:(this._description=t,r&&(this._argsDescription=r),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===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]),t===r._name)throw new Error("Command alias can't be the same as its name");let n=this.parent?._findCommand(t);if(n){let o=[n.name()].concat(n.aliases()).join("|");throw new Error(` ...
24Expecting one of '${n.join("', '")}'`);let o=`${t}Help`;return this.on(o,i=>{let s;typeof r=="function"?s=r({error:i.error,command:i.command}):s=r,s&&i.write(`${s}
25`)}),this}_outputHelpIfRequested(t){let r=this._getHelpOption();r&&t.find(o=>r.is(o))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function M1(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,n="127.0.0.1",o="9229",i;return(i=t.match(/^(--inspect(-brk)?)$/))!==null?r=i[1]:(i=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=i[1],/^\d+$/.test(i[3])?o=i[3]:n=i[3]):(i=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=i[1],n=i[3],o=i[4]),r&&o!=="0"?`${r}=${n}:${parseInt(o)+1}`:t})}U1.Command=T0});var V1=on(rr=>{var{Argument:L1}= ...
26`);super(i),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable
27`);super(s,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writab ...
28`),{docsPath:t,name:"AbiConstructorNotFoundError"})}},iu=class extends O{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
29`),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}},Ls=class extends O{constructor({data:t,params:r,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join(`
30`),{metaMessages:[`Params: (${su(r,{includeName:!0})})`,`Data: ${t} (${n} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:
31`),{name:"AbiEncodingArrayLengthMismatchError"})}},af=class extends O{constructor({expectedSize:t,value:r}){super(`Size of bytes "${r}" (bytes${J(r)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}},uf=class extends O{constructor({expectedLength:t,givenLength:r}){super(["ABI encoding params/values length mismatch.",`Expected length
32`),{name:"AbiEncodingLengthMismatchError"})}},cf=class extends O{constructor(t,{docsPath:r}){super([`Arguments (\`args\`) were provided to "${t}", but "${t}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join(`
Long lines were clipped for display.