/**
 * Bundled from @socketregistry/yocto-spinner
 * This is a zero-dependency bundle created by esbuild.
 */
var $=Object.create;var a=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var L=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty;var c=(s,t)=>a(s,"name",{value:t,configurable:!0});var I=(s,t)=>()=>(t||s((t={exports:{}}).exports,t),t.exports),k=(s,t)=>{for(var r in t)a(s,r,{get:t[r],enumerable:!0})},x=(s,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of O(t))!P.call(s,o)&&o!==r&&a(s,o,{get:()=>t[o],enumerable:!(n=N(t,o))||n.enumerable});return s};var q=(s,t,r)=>(r=s!=null?$(L(s)):{},x(t||!s||!s.__esModule?a(r,"default",{value:s,enumerable:!0}):r,s)),U=s=>x(a({},"__esModule",{value:!0}),s);var w=I((z,v)=>{var W=require("node:tty"),A=W?.WriteStream?.prototype?.hasColors?.()??!1,i=c((s,t)=>{if(!A)return o=>o;let r=`\x1B[${s}m`,n=`\x1B[${t}m`;return o=>{let h=o+"",u=h.indexOf(n);if(u===-1)return r+h+n;let g=r,f=0,G=(t===22?n:"")+r;for(;u!==-1;)g+=h.slice(f,u)+G,f=u+n.length,u=h.indexOf(n,f);return g+=h.slice(f)+n,g}},"format"),e={};e.reset=i(0,0);e.bold=i(1,22);e.dim=i(2,22);e.italic=i(3,23);e.underline=i(4,24);e.overline=i(53,55);e.inverse=i(7,27);e.hidden=i(8,28);e.strikethrough=i(9,29);e.black=i(30,39);e.red=i(31,39);e.green=i(32,39);e.yellow=i(33,39);e.blue=i(34,39);e.magenta=i(35,39);e.cyan=i(36,39);e.white=i(37,39);e.gray=i(90,39);e.bgBlack=i(40,49);e.bgRed=i(41,49);e.bgGreen=i(42,49);e.bgYellow=i(43,49);e.bgBlue=i(44,49);e.bgMagenta=i(45,49);e.bgCyan=i(46,49);e.bgWhite=i(47,49);e.bgGray=i(100,49);e.redBright=i(91,39);e.greenBright=i(92,39);e.yellowBright=i(93,39);e.blueBright=i(94,39);e.magentaBright=i(95,39);e.cyanBright=i(96,39);e.whiteBright=i(97,39);e.bgRedBright=i(101,49);e.bgGreenBright=i(102,49);e.bgYellowBright=i(103,49);e.bgBlueBright=i(104,49);e.bgMagentaBright=i(105,49);e.bgCyanBright=i(106,49);e.bgWhiteBright=i(107,49);v.exports=e});var R=I((Q,_)=>{"use strict";var p;function F(){return p===void 0&&(p={frames:E()?["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]:["-","\\","|","/"],interval:80}),p}c(F,"getDefaultSpinner");var m;function V(){if(m===void 0){let s=E(),t=M();m={error:t.red(s?"✖":"×"),info:t.blue(s?"ℹ":"i"),success:t.green(s?"✔":"√"),warning:t.yellow(s?"⚠":"‼")}}return m}c(V,"getLogSymbols");var b;function y(){return b===void 0&&(b=require("process")),b}c(y,"getProcess");var C;function M(){return C===void 0&&(C={...w()}),C}c(M,"getYoctocolors");var S;function Y(){if(S===void 0){let{env:s}=y();S=s.TERM!=="dumb"&&!("CI"in s)}return S}c(Y,"isProcessInteractive");var l;function E(){if(l===void 0){let s=y();if(s.platform!=="win32")return l=s.env.TERM!=="linux",l;let{env:t}=s;if(t.WT_SESSION||t.TERMINUS_SUBLIME||t.ConEmuTask==="{cmd::Cmder}")return l=!0,l;let{TERM:r,TERM_PROGRAM:n}=t;l=n==="Terminus-Sublime"||n==="vscode"||r==="xterm-256color"||r==="alacritty"||r==="rxvt-unicode"||r==="rxvt-unicode-256color"||t.TERMINAL_EMULATOR==="JetBrains-JediTerm"}return l}c(E,"isUnicodeSupported");var T;function D(s){return T===void 0&&(T=require("util").stripVTControlCharacters),T(s)}c(D,"stripVTControlCharacters");var B=class{static{c(this,"YoctoSpinner")}#n;#o=-1;#r;#a;#t="";#f;#e;#d=!1;#p=0;#g=0;#i;#s;#h;constructor(t={}){let r={__proto__:null,...t},n=r.spinner??F(),o=r.stream??y().stderr;this.#a=n.frames,this.#f=n.interval,this.#s=t.text??"",this.#i=o??process.stderr,this.#n=t.color??"cyan",this.#e=!!o.isTTY&&Y(),this.#r=this.#m.bind(this)}#m(t){this.isSpinning&&this.stop();let r=t==="SIGINT"?130:t==="SIGTERM"?143:1;process.exit(r)}#b(){this.#e&&this.#u("\x1B[?25l")}#C(t){let r=this.#i.columns??80,n=D(t).split(`
`),o=0;for(let h of n)o+=Math.max(1,Math.ceil(h.length/r));return o}#c(){let t=Date.now();(this.#o===-1||t-this.#p>=this.#f)&&(this.#o=++this.#o%this.#a.length,this.#p=t);let r=M(),n=r[this.#n]??r.cyan,o=this.#a[this.#o],h=`${n(o)} ${this.#s}`;h&&(this.#t.length&&(h=`${this.#t}${h}`),this.#e||(h+=`
`)),this.clear(),this.#u(h),this.#e&&(this.#g=this.#C(h))}#S(){this.#e&&this.#u("\x1B[?25h")}#T(){process.once("SIGINT",this.#r),process.once("SIGTERM",this.#r)}#l(t,r){let n=V();return this.stop(`${n[t]} ${r??this.#s}`)}#u(t){this.#i.write(t)}#B(){process.off("SIGINT",this.#r),process.off("SIGTERM",this.#r)}get color(){return this.#n}set color(t){this.#n=t,this.#c()}get isSpinning(){return this.#d}get text(){return this.#s}set text(t){this.#s=t??"",this.#c()}clear(){if(!this.#e)return this;this.#i.cursorTo(0);for(let t=0;t<this.#g;t++)t>0&&this.#i.moveCursor(0,-1),this.#i.clearLine(1);return this.#g=0,this}dedent(t=2){return this.#t=this.#t.slice(0,-t),this}error(t){return this.#l("error",t)}indent(t=2){return this.#t+=" ".repeat(t),this}info(t){return this.#l("info",t)}resetIndent(){return this.#t="",this}start(t){return t&&(this.#s=t),this.isSpinning?this:(this.#d=!0,this.#b(),this.#c(),this.#T(),this.#e&&(this.#h=setInterval(()=>{this.#c()},this.#f)),this)}stop(t){return this.isSpinning?(this.#d=!1,this.#h&&(clearInterval(this.#h),this.#h=void 0),this.#S(),this.clear(),this.#B(),t&&this.#u(`${this.#t}${t}
`),this):this}success(t){return this.#l("success",t)}warning(t){return this.#l("warning",t)}};_.exports=c(function(t){return new B(t)},"yoctoSpinner")});var H={};k(H,{default:()=>d.default,"module.exports":()=>d.default});module.exports=U(H);var d=q(R(),1);0&&(module.exports={"module.exports":null});
