Lines 1-21javascript
2import{createRequire as e3}from"node:module";var p3=Object.create;var{getPrototypeOf:l3,defineProperty:a0,getOwnPropertyNames:n3}=Object;var i3=Object.prototype.hasOwnProperty;function a3($){return this[$]}var o3,r3,z2=($,_,K)=>{var Z=$!=null&&typeof $==="object";if(Z){var Q=_?o3??=new WeakMap:r3??=new WeakMap,Y=Q.get($);if(Y)return Y}K=$!=null?p3(l3($)):{};let J=_||!$||!$.__esModule?a0(K,"default",{value:$,enumerable:!0}):K;for(let X of n3($))if(!i3.call(J,X))a0(J,X,{get:a3.bind($,X),enumerable:!0});if(Z)Q.set($,J);return J};var z=($,_)=>()=>(_||$((_={exports:{}}).exports,_),_.exports);var s3 ...
4`+Y),$.push(Q+"m+"+z0.exports.humanize(this.diff)+"\x1B[0m")}else $[0]=q$()+_+" "+$[0]}function q$(){if(j2.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function F$(...$){return process.stderr.write(M0.formatWithOptions(j2.inspectOpts,...$)+`
5`)}function w$($){if($)process.env.DEBUG=$;else delete process.env.DEBUG}function S$(){return process.env.DEBUG}function P$($){$.inspectOpts={};let _=Object.keys(j2.inspectOpts);for(let K=0;K<_.length;K++)$.inspectOpts[_[K]]=j2.inspectOpts[_[K]]}z0.exports=o0()(j2);var{formatters:A2}=z0.exports;A2.o=function($){return this.inspectOpts.colors=this.useColors,M0.inspect($,this.inspectOpts).split(`
6`).map((_)=>_.trim()).join(" ")};A2.O=function($){return this.inspectOpts.colors=this.useColors,M0.inspect($,this.inspectOpts)}});var F2=z((qY,t0)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)t0.exports=R2();else t0.exports=q2()});function u$(){let $=new Map;for(let[_,K]of Object.entries(j)){for(let[Z,Q]of Object.entries(K))j[Z]={open:`\x1B[${Q[0]}m`,close:`\x1B[${Q[1]}m`},K[Z]=j[Z],$.set(Q[0],Q[1]);Object.defineProperty(j,_,{value:K,enumerable:!1})}return Object.defineProperty(j,"codes",{value:$,enumerable:!1}),j.color.close
8`)+K,Q=Z+1,Z=$.indexOf(`
9`,Q)}while(Z!==-1);return Y+=$.slice(Q),Y}function u1($){return a$($)}var y2,g2,$8,j1,g1,u2,E1,i$=($,_={})=>{if(_.level&&!(Number.isInteger(_.level)&&_.level>=0&&_.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let K=y2?y2.level:0;$.level=_.level===void 0?K:_.level},a$=($)=>{let _=(...K)=>K.join(" ");return i$(_,$),Object.setPrototypeOf(_,u1.prototype),_},_8=($,_,K,...Z)=>{if($==="rgb"){if(_==="ansi16m")return g[K].ansi16m(...Z);if(_==="ansi256")return g[K].ansi256(g.rgbToAnsi256(...Z));return g[K].ansi(g.rgbToAnsi(...Z))}if($==="hex")return _8("rgb",_,K,...g.hexT ...
10`);if(Y!==-1)_=v2(_,Q,Z,Y);return Z+_+Q},t$,yY,d2;var m2=U(()=>{T2();b2();({stdout:y2,stderr:g2}=x2),$8=Symbol("GENERATOR"),j1=Symbol("STYLER"),g1=Symbol("IS_EMPTY"),u2=[
11${_}`,Z_,Q_,Y_=($,_,K)=>{let Z=K===""?"":`with ${K.trim()}() `,Q=K_.bind(null,Z,_.toString());Object.defineProperty(Q,"name",Q_);let{writable
12`||_==="\r"}#A(){if(this.#X)return;if(this.#X=setTimeout(()=>{if(this.#X=void 0,this.isSpinning)this.#L()},b_),typeof this.#X?.unref==="function")this.#X.unref()}#N(){if(this.#X)clearTimeout(this.#X),this.#X=void 0}#R($,_,K,Z){let Q=this.#O(K," "),J=typeof _==="string"?($?" ":"")+_:"",X=this.#W(Z," ");return Q+$+J+X}constructor($){if(typeof $==="string")$={text:$};if(this.#$={color:"cyan",stream:p1.stderr,discardStdin:!0,hideCursor:!0,...$},this.color=this.#$.color,this.#K=this.#$.stream,typeof this.#$.isEnabled!=="boolean")this.#$.isEnabled=L8({stream:this.#K});if(typeof this.#$.isSilent!=="b ...
13`))K+=Math.max(1,Math.ceil(V8(Z)/_));return K}get color(){return this.#H}set color($){if($!==void 0&&$!==!1&&!y_.has($))throw Error("The `color` option must be a valid color or `false` to disable");this.#H=$}get isEnabled(){return this.#$.isEnabled&&!this.#$.isSilent}set isEnabled($){if(typeof $
14`),G=Y-1;K=[...X.slice(0,G),"... (content truncated to fit terminal)"].join(`
15`)}if(this.#z(()=>this.#K.write(K))===!1&&this.#K.isTTY)this.#M=()=>{this.#M=void 0,this.#L()},this.#K.once("drain",this.#M);this.#Y=this.#V(K,Z)}finally{if(_)this.#z(()=>this.#K.write(v_))}return this}start($){if($!==void 0)this.text=$;if(this.isSilent)return this;if(!this.isEnabled){let _=this.text?"-":"",K=" ".repeat(this.#$.indent)+this.#R(_,this.text,this.#$.prefixText,this.#$.suffixText);if(K.trim()!=="")this.#z(()=>this.#K.write(K+`
16`));return this}if(this.isSpinning)return this;if(this.#$.hideCursor)G8.hide(this.#K);if(this.#$.discardStdin&&p1.stdin.isTTY)N8.start(),this.#B=!0;return this.#E(),this.render(),this.#J=setInterval(this.render.bind(this),this.interval),this}stop(){if(clearInterval(this.#J),this.#J=void 0,this.#Z=-1,this.#_=0,this.#N(),this.#q(),this.#M)this.#K.removeListener("drain",this.#M),this.#M=void 0;if(this.isEnabled){if(this.clear(),this.#$.hideCursor)G8.show(this.#K)}if(this.#B)this.#B=!1,N8.stop();return this}succeed($){return this.stopAndPersist({symbol:R1.success,text:$})}fail($){return this.stopA ...
17`;return this.stop(),this.#z(()=>this.#K.write(Y)),this}}function R8($){return new y9($)}var b_=200,h_="\x1B[?2026h",v_="\x1B[?2026l",W0,y_;var g9=U(()
18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Y=!0,J=!1,X;return{s:function(){K=K.call($)},n:function(){var M=K.next();return Y=M.done,M},e:function(M){J=!0,X=M},f:function(){try{if(!Y&&K.return!=null)K.return()}finally{if(J)throw X}}}}function n_($,_){if(!$)return;if(typeof $==="string")return n9($,_);var K=Object.prototype.toString.call($).slice(8,-1);if(K==="Object"&&$.constructor)K=$.constructor.name;if(K==="Map"||K==="Set")return Array.from($);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return n9($,_)}function n9($,_){i ...
20`)}});var Y7=z((dX,Q7)=>{Q7.exports=($,_,K)=>{K=K||_;let Z=Math.min(_-K,$-Math.floor(K/2));if(Z<
21`),this.close()}validate(){var $=this;return H7(function*(){let _=yield $.validator($.value);if(typeof _==="string")$.errorMsg=_,_=!1;$.error=!_})()}submit(){var $=this;return H7(function*(){if($.value=$.value||$.initial,$.cursorOffset=0,$.cursor=$.rendered.length,yield $.validate(),$.error){$.red=!0,$.fire(),$.render();return}$.done=!0,$.aborted=!1,$.fire(),$.render(),$.out.write(`
Long lines were clipped for display.