npm-check-updates
Version:
Find newer versions of dependencies than what your package.json allows
48 lines • 1.37 MB
JavaScript
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const N=require("./chunks/chunk-jrEOD7hJ.cjs");let qe=require("path");qe=N.__toESM(qe,1);let Zt=require("fs");Zt=N.__toESM(Zt,1);let $t=require("os");$t=N.__toESM($t,1);let Bs=require("util");Bs=N.__toESM(Bs,1);let Ke=require("fs/promises");Ke=N.__toESM(Ke,1);let ur=require("node:process");ur=N.__toESM(ur,1);let hr=require("node:os");hr=N.__toESM(hr,1);let sn=require("node:tty");sn=N.__toESM(sn,1);let qp=require("node:module"),Hp=require("url"),tt=require("node:path");tt=N.__toESM(tt,1);let ma=require("node:url"),ga=require("node:util"),fr=require("node:fs");fr=N.__toESM(fr,1);let on=require("node:child_process");on=N.__toESM(on,1);let Gp=require("node:stream/consumers");var Nt=N.__commonJSMin(((e,t)=>{var r,i,s,d,c=!0;typeof process<"u"&&({FORCE_COLOR:r,NODE_DISABLE_COLORS:i,NO_COLOR:s,TERM:d}=process.env||{},c=process.stdout&&process.stdout.isTTY);var n={enabled:!i&&s==null&&d!=="dumb"&&(r!=null&&r!=="0"||c),reset:h(0,0),bold:h(1,22),dim:h(2,22),italic:h(3,23),underline:h(4,24),inverse:h(7,27),hidden:h(8,28),strikethrough:h(9,29),black:h(30,39),red:h(31,39),green:h(32,39),yellow:h(33,39),blue:h(34,39),magenta:h(35,39),cyan:h(36,39),white:h(37,39),gray:h(90,39),grey:h(90,39),bgBlack:h(40,49),bgRed:h(41,49),bgGreen:h(42,49),bgYellow:h(43,49),bgBlue:h(44,49),bgMagenta:h(45,49),bgCyan:h(46,49),bgWhite:h(47,49)};function u(o,l){let f=0,p,m="",g="";for(;f<o.length;f++)p=o[f],m+=p.open,g+=p.close,~l.indexOf(p.close)&&(l=l.replace(p.rgx,p.close+p.open));return m+l+g}function a(o,l){let f={has:o,keys:l};return f.reset=n.reset.bind(f),f.bold=n.bold.bind(f),f.dim=n.dim.bind(f),f.italic=n.italic.bind(f),f.underline=n.underline.bind(f),f.inverse=n.inverse.bind(f),f.hidden=n.hidden.bind(f),f.strikethrough=n.strikethrough.bind(f),f.black=n.black.bind(f),f.red=n.red.bind(f),f.green=n.green.bind(f),f.yellow=n.yellow.bind(f),f.blue=n.blue.bind(f),f.magenta=n.magenta.bind(f),f.cyan=n.cyan.bind(f),f.white=n.white.bind(f),f.gray=n.gray.bind(f),f.grey=n.grey.bind(f),f.bgBlack=n.bgBlack.bind(f),f.bgRed=n.bgRed.bind(f),f.bgGreen=n.bgGreen.bind(f),f.bgYellow=n.bgYellow.bind(f),f.bgBlue=n.bgBlue.bind(f),f.bgMagenta=n.bgMagenta.bind(f),f.bgCyan=n.bgCyan.bind(f),f.bgWhite=n.bgWhite.bind(f),f}function h(o,l){let f={open:`\x1B[${o}m`,close:`\x1B[${l}m`,rgx:new RegExp(`\\x1b\\[${l}m`,"g")};return function(p){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(o)||(this.has.push(o),this.keys.push(f)),p===void 0?this:n.enabled?u(this.keys,p+""):p+""):p===void 0?a([o],[f]):n.enabled?u([f],p+""):p+""}}t.exports=n})),zp=N.__commonJSMin(((e,t)=>{t.exports=(r,i)=>{if(!(r.meta&&r.name!=="escape")){if(r.ctrl){if(r.name==="a")return"first";if(r.name==="c"||r.name==="d")return"abort";if(r.name==="e")return"last";if(r.name==="g")return"reset"}if(i){if(r.name==="j")return"down";if(r.name==="k")return"up"}return r.name==="return"||r.name==="enter"?"submit":r.name==="backspace"?"delete":r.name==="delete"?"deleteForward":r.name==="abort"?"abort":r.name==="escape"?"exit":r.name==="tab"?"next":r.name==="pagedown"?"nextPage":r.name==="pageup"?"prevPage":r.name==="home"?"home":r.name==="end"?"end":r.name==="up"?"up":r.name==="down"?"down":r.name==="right"?"right":r.name==="left"?"left":!1}}})),va=N.__commonJSMin(((e,t)=>{t.exports=r=>{const i=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),s=new RegExp(i,"g");return typeof r=="string"?r.replace(s,""):r}})),Mt=N.__commonJSMin(((e,t)=>{var r="\x1B",i=`${r}[`,s="\x07",d={to(u,a){return a?`${i}${a+1};${u+1}H`:`${i}${u+1}G`},move(u,a){let h="";return u<0?h+=`${i}${-u}D`:u>0&&(h+=`${i}${u}C`),a<0?h+=`${i}${-a}A`:a>0&&(h+=`${i}${a}B`),h},up:(u=1)=>`${i}${u}A`,down:(u=1)=>`${i}${u}B`,forward:(u=1)=>`${i}${u}C`,backward:(u=1)=>`${i}${u}D`,nextLine:(u=1)=>`${i}E`.repeat(u),prevLine:(u=1)=>`${i}F`.repeat(u),left:`${i}G`,hide:`${i}?25l`,show:`${i}?25h`,save:`${r}7`,restore:`${r}8`},c={up:(u=1)=>`${i}S`.repeat(u),down:(u=1)=>`${i}T`.repeat(u)},n={screen:`${i}2J`,up:(u=1)=>`${i}1J`.repeat(u),down:(u=1)=>`${i}J`.repeat(u),line:`${i}2K`,lineEnd:`${i}K`,lineStart:`${i}1K`,lines(u){let a="";for(let h=0;h<u;h++)a+=this.line+(h<u-1?d.up():"");return u&&(a+=d.left),a}};t.exports={cursor:d,scroll:c,erase:n,beep:s}})),Jp=N.__commonJSMin(((e,t)=>{var r=va(),{erase:i,cursor:s}=Mt(),d=c=>[...r(c)].length;t.exports=function(c,n){if(!n)return i.line+s.to(0);let u=0;const a=c.split(/\r?\n/);for(let h of a)u+=1+Math.floor(Math.max(d(h)-1,0)/n);return i.lines(u)}})),_u=N.__commonJSMin(((e,t)=>{var r={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"},i={arrowUp:r.arrowUp,arrowDown:r.arrowDown,arrowLeft:r.arrowLeft,arrowRight:r.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"},s=process.platform==="win32"?i:r;t.exports=s})),Wp=N.__commonJSMin(((e,t)=>{var r=Nt(),i=_u(),s=Object.freeze({password:{scale:1,render:h=>"*".repeat(h.length)},emoji:{scale:2,render:h=>"😃".repeat(h.length)},invisible:{scale:0,render:h=>""},default:{scale:1,render:h=>`${h}`}}),d=h=>s[h]||s.default,c=Object.freeze({aborted:r.red(i.cross),done:r.green(i.tick),exited:r.yellow(i.cross),default:r.cyan("?")}),n=(h,o,l)=>o?c.aborted:l?c.exited:h?c.done:c.default,u=h=>r.gray(h?i.ellipsis:i.pointerSmall),a=(h,o)=>r.gray(h?o?i.pointerSmall:"+":i.line);t.exports={styles:s,render:d,symbols:c,symbol:n,delimiter:u,item:a}})),Vp=N.__commonJSMin(((e,t)=>{var r=va();t.exports=function(i,s){let d=String(r(i)||"").split(/\r?\n/);return s?d.map(c=>Math.ceil(c.length/s)).reduce((c,n)=>c+n):d.length}})),Yp=N.__commonJSMin(((e,t)=>{t.exports=(r,i={})=>{const s=Number.isSafeInteger(parseInt(i.margin))?new Array(parseInt(i.margin)).fill(" ").join(""):i.margin||"",d=i.width;return(r||"").split(/\r?\n/g).map(c=>c.split(/\s+/g).reduce((n,u)=>(u.length+s.length>=d||n[n.length-1].length+u.length+1<d?n[n.length-1]+=` ${u}`:n.push(`${s}${u}`),n),[s]).join(`
`)).join(`
`)}})),Kp=N.__commonJSMin(((e,t)=>{t.exports=(r,i,s)=>{s=s||i;let d=Math.min(i-s,r-Math.floor(s/2));d<0&&(d=0);let c=Math.min(d+s,i);return{startIndex:d,endIndex:c}}})),Gt=N.__commonJSMin(((e,t)=>{t.exports={action:zp(),clear:Jp(),style:Wp(),strip:va(),figures:_u(),lines:Vp(),wrap:Yp(),entriesToDisplay:Kp()}})),tr=N.__commonJSMin(((e,t)=>{var r=require("readline"),{action:i}=Gt(),s=require("events"),{beep:d,cursor:c}=Mt(),n=Nt(),u=class extends s{constructor(a={}){super(),this.firstRender=!0,this.in=a.stdin||process.stdin,this.out=a.stdout||process.stdout,this.onRender=(a.onRender||(()=>{})).bind(this);const h=r.createInterface({input:this.in,escapeCodeTimeout:50});r.emitKeypressEvents(this.in,h),this.in.isTTY&&this.in.setRawMode(!0);const o=(l,f)=>{let p=i(f,this.isSelect);p===!1?this._&&this._(l,f):typeof this[p]=="function"?this[p](f):this.bell()};this.close=()=>{this.out.write(c.show),this.in.removeListener("keypress",o),this.in.isTTY&&this.in.setRawMode(!1),h.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",o)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(d)}render(){this.onRender(n),this.firstRender&&(this.firstRender=!1)}};t.exports=u})),Zp=N.__commonJSMin(((e,t)=>{var r=Nt(),i=tr(),{erase:s,cursor:d}=Mt(),{style:c,clear:n,lines:u,figures:a}=Gt(),h=class extends i{constructor(o={}){super(o),this.transform=c.render(o.style),this.scale=this.transform.scale,this.msg=o.message,this.initial=o.initial||"",this.validator=o.validate||(()=>!0),this.value="",this.errorMsg=o.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=n("",this.out.columns),this.render()}set value(o){!o&&this.initial?(this.placeholder=!0,this.rendered=r.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(o)),this._value=o,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
`),this.close()}async validate(){let o=await this.validator(this.value);typeof o=="string"&&(this.errorMsg=o,o=!1),this.error=!o}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
`),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(o){this.placeholder||(this.cursor=this.cursor+o,this.cursorOffset+=o)}_(o,l){let f=this.value.slice(0,this.cursor),p=this.value.slice(this.cursor);this.value=`${f}${o}${p}`,this.red=!1,this.cursor=this.placeholder?0:f.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let o=this.value.slice(0,this.cursor-1),l=this.value.slice(this.cursor);this.value=`${o}${l}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let o=this.value.slice(0,this.cursor),l=this.value.slice(this.cursor+1);this.value=`${o}${l}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(d.down(u(this.outputError,this.out.columns)-1)+n(this.outputError,this.out.columns)),this.out.write(n(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[c.symbol(this.done,this.aborted),r.bold(this.msg),c.delimiter(this.done),this.red?r.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
`).reduce((o,l,f)=>o+`
${f?" ":a.pointerSmall} ${r.red().italic(l)}`,"")),this.out.write(s.line+d.to(0)+this.outputText+d.save+this.outputError+d.restore+d.move(this.cursorOffset,0)))}};t.exports=h})),Xp=N.__commonJSMin(((e,t)=>{var r=Nt(),i=tr(),{style:s,clear:d,figures:c,wrap:n,entriesToDisplay:u}=Gt(),{cursor:a}=Mt(),h=class extends i{constructor(o={}){super(o),this.isSelect=!0,this.msg=o.message,this.hint=o.hint||"- Use arrow-keys. Return to submit.",this.warn=o.warn||"- This option is disabled",this.cursor=o.initial||0,this.choices=o.choices.map((l,f)=>(typeof l=="string"&&(l={title:l,value:f}),{title:l&&(l.title||l.value||l),value:l&&(l.value===void 0?f:l.value),description:l&&l.description,selected:l&&l.selected,disabled:l&&l.disabled})),this.optionsPerPage=o.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=d("",this.out.columns),this.render()}moveCursor(o){this.cursor=o,this.value=this.choices[o].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
`),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
`),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(o,l){if(o===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(a.hide):this.out.write(d(this.outputText,this.out.columns)),super.render();let{startIndex:o,endIndex:l}=u(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[s.symbol(this.done,this.aborted),r.bold(this.msg),s.delimiter(!1),this.done?this.selection.title:this.selection.disabled?r.yellow(this.warn):r.gray(this.hint)].join(" "),!this.done){this.outputText+=`
`;for(let f=o;f<l;f++){let p,m,g="",v=this.choices[f];f===o&&o>0?m=c.arrowUp:f===l-1&&l<this.choices.length?m=c.arrowDown:m=" ",v.disabled?(p=this.cursor===f?r.gray().underline(v.title):r.strikethrough().gray(v.title),m=(this.cursor===f?r.bold().gray(c.pointer)+" ":" ")+m):(p=this.cursor===f?r.cyan().underline(v.title):v.title,m=(this.cursor===f?r.cyan(c.pointer)+" ":" ")+m,v.description&&this.cursor===f&&(g=` - ${v.description}`,(m.length+p.length+g.length>=this.out.columns||v.description.split(/\r?\n/).length>1)&&(g=`
`+n(v.description,{margin:3,width:this.out.columns})))),this.outputText+=`${m} ${p}${r.gray(g)}
`}}this.out.write(this.outputText)}};t.exports=h})),Qp=N.__commonJSMin(((e,t)=>{var r=Nt(),i=tr(),{style:s,clear:d}=Gt(),{cursor:c,erase:n}=Mt(),u=class extends i{constructor(a={}){super(a),this.msg=a.message,this.value=!!a.initial,this.active=a.active||"on",this.inactive=a.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
`),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(a,h){if(a===" ")this.value=!this.value;else if(a==="1")this.value=!0;else if(a==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(c.hide):this.out.write(d(this.outputText,this.out.columns)),super.render(),this.outputText=[s.symbol(this.done,this.aborted),r.bold(this.msg),s.delimiter(this.done),this.value?this.inactive:r.cyan().underline(this.inactive),r.gray("/"),this.value?r.cyan().underline(this.active):this.active].join(" "),this.out.write(n.line+c.to(0)+this.outputText))}};t.exports=u})),Yt=N.__commonJSMin(((e,t)=>{var r=class Fs{constructor({token:s,date:d,parts:c,locales:n}){this.token=s,this.date=d||new Date,this.parts=c||[this],this.locales=n||{}}up(){}down(){}next(){const s=this.parts.indexOf(this);return this.parts.find((d,c)=>c>s&&d instanceof Fs)}setTo(s){}prev(){let s=[].concat(this.parts).reverse();const d=s.indexOf(this);return s.find((c,n)=>n>d&&c instanceof Fs)}toString(){return String(this.date)}};t.exports=r})),em=N.__commonJSMin(((e,t)=>{var r=Yt(),i=class extends r{constructor(s={}){super(s)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let s=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?s.toUpperCase():s}};t.exports=i})),tm=N.__commonJSMin(((e,t)=>{var r=Yt(),i=d=>(d=d%10,d===1?"st":d===2?"nd":d===3?"rd":"th"),s=class extends r{constructor(d={}){super(d)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(d){this.date.setDate(parseInt(d.substr(-2)))}toString(){let d=this.date.getDate(),c=this.date.getDay();return this.token==="DD"?String(d).padStart(2,"0"):this.token==="Do"?d+i(d):this.token==="d"?c+1:this.token==="ddd"?this.locales.weekdaysShort[c]:this.token==="dddd"?this.locales.weekdays[c]:d}};t.exports=s})),rm=N.__commonJSMin(((e,t)=>{var r=Yt(),i=class extends r{constructor(s={}){super(s)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(s){this.date.setHours(parseInt(s.substr(-2)))}toString(){let s=this.date.getHours();return/h/.test(this.token)&&(s=s%12||12),this.token.length>1?String(s).padStart(2,"0"):s}};t.exports=i})),im=N.__commonJSMin(((e,t)=>{var r=Yt(),i=class extends r{constructor(s={}){super(s)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(s){this.date.setMilliseconds(parseInt(s.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};t.exports=i})),nm=N.__commonJSMin(((e,t)=>{var r=Yt(),i=class extends r{constructor(s={}){super(s)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(s){this.date.setMinutes(parseInt(s.substr(-2)))}toString(){let s=this.date.getMinutes();return this.token.length>1?String(s).padStart(2,"0"):s}};t.exports=i})),sm=N.__commonJSMin(((e,t)=>{var r=Yt(),i=class extends r{constructor(s={}){super(s)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(s){s=parseInt(s.substr(-2))-1,this.date.setMonth(s<0?0:s)}toString(){let s=this.date.getMonth(),d=this.token.length;return d===2?String(s+1).padStart(2,"0"):d===3?this.locales.monthsShort[s]:d===4?this.locales.months[s]:String(s+1)}};t.exports=i})),om=N.__commonJSMin(((e,t)=>{var r=Yt(),i=class extends r{constructor(s={}){super(s)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(s){this.date.setSeconds(parseInt(s.substr(-2)))}toString(){let s=this.date.getSeconds();return this.token.length>1?String(s).padStart(2,"0"):s}};t.exports=i})),am=N.__commonJSMin(((e,t)=>{var r=Yt(),i=class extends r{constructor(s={}){super(s)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(s){this.date.setFullYear(s.substr(-4))}toString(){let s=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?s.substr(-2):s}};t.exports=i})),lm=N.__commonJSMin(((e,t)=>{t.exports={DatePart:Yt(),Meridiem:em(),Day:tm(),Hours:rm(),Milliseconds:im(),Minutes:nm(),Month:sm(),Seconds:om(),Year:am()}})),cm=N.__commonJSMin(((e,t)=>{var r=Nt(),i=tr(),{style:s,clear:d,figures:c}=Gt(),{erase:n,cursor:u}=Mt(),{DatePart:a,Meridiem:h,Day:o,Hours:l,Milliseconds:f,Minutes:p,Month:m,Seconds:g,Year:v}=lm(),_=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,S={1:({token:b})=>b.replace(/\\(.)/g,"$1"),2:b=>new o(b),3:b=>new m(b),4:b=>new v(b),5:b=>new h(b),6:b=>new l(b),7:b=>new p(b),8:b=>new g(b),9:b=>new f(b)},E={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},w=class extends i{constructor(b={}){super(b),this.msg=b.message,this.cursor=0,this.typed="",this.locales=Object.assign(E,b.locales),this._date=b.initial||new Date,this.errorMsg=b.error||"Please Enter A Valid Value",this.validator=b.validate||(()=>!0),this.mask=b.mask||"YYYY-MM-DD HH:mm:ss",this.clear=d("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(b){b&&this._date.setTime(b.getTime())}set mask(b){let A;for(this.parts=[];A=_.exec(b);){let C=A.shift(),O=A.findIndex(I=>I!=null);this.parts.push(O in S?S[O]({token:A[O]||C,date:this.date,parts:this.parts,locales:this.locales}):A[O]||C)}let D=this.parts.reduce((C,O)=>(typeof O=="string"&&typeof C[C.length-1]=="string"?C[C.length-1]+=O:C.push(O),C),[]);this.parts.splice(0),this.parts.push(...D),this.reset()}moveCursor(b){this.typed="",this.cursor=b,this.fire()}reset(){this.moveCursor(this.parts.findIndex(b=>b instanceof a)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
`),this.close()}async validate(){let b=await this.validator(this.value);typeof b=="string"&&(this.errorMsg=b,b=!1),this.error=!b}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
`),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let b=this.parts[this.cursor].prev();if(b==null)return this.bell();this.moveCursor(this.parts.indexOf(b)),this.render()}right(){let b=this.parts[this.cursor].next();if(b==null)return this.bell();this.moveCursor(this.parts.indexOf(b)),this.render()}next(){let b=this.parts[this.cursor].next();this.moveCursor(b?this.parts.indexOf(b):this.parts.findIndex(A=>A instanceof a)),this.render()}_(b){/\d/.test(b)&&(this.typed+=b,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(u.hide):this.out.write(d(this.outputText,this.out.columns)),super.render(),this.outputText=[s.symbol(this.done,this.aborted),r.bold(this.msg),s.delimiter(!1),this.parts.reduce((b,A,D)=>b.concat(D===this.cursor&&!this.done?r.cyan().underline(A.toString()):A),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(`
`).reduce((b,A,D)=>b+`
${D?" ":c.pointerSmall} ${r.red().italic(A)}`,"")),this.out.write(n.line+u.to(0)+this.outputText))}};t.exports=w})),um=N.__commonJSMin(((e,t)=>{var r=Nt(),i=tr(),{cursor:s,erase:d}=Mt(),{style:c,figures:n,clear:u,lines:a}=Gt(),h=/[0-9]/,o=p=>p!==void 0,l=(p,m)=>{let g=Math.pow(10,m);return Math.round(p*g)/g},f=class extends i{constructor(p={}){super(p),this.transform=c.render(p.style),this.msg=p.message,this.initial=o(p.initial)?p.initial:"",this.float=!!p.float,this.round=p.round||2,this.inc=p.increment||1,this.min=o(p.min)?p.min:-1/0,this.max=o(p.max)?p.max:1/0,this.errorMsg=p.error||"Please Enter A Valid Value",this.validator=p.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(p){!p&&p!==0?(this.placeholder=!0,this.rendered=r.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${l(p,this.round)}`),this._value=l(p,this.round)),this.fire()}get value(){return this._value}parse(p){return this.float?parseFloat(p):parseInt(p)}valid(p){return p==="-"||p==="."&&this.float||h.test(p)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let p=this.value;this.value=p!==""?p:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
`),this.close()}async validate(){let p=await this.validator(this.value);typeof p=="string"&&(this.errorMsg=p,p=!1),this.error=!p}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let p=this.value;this.value=p!==""?p:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(`
`),this.close()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let p=this.value.toString();if(p.length===0)return this.bell();this.value=this.parse(p=p.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(p,m){if(!this.valid(p))return this.bell();const g=Date.now();if(g-this.lastHit>1e3&&(this.typed=""),this.typed+=p,this.lastHit=g,this.color="cyan",p===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(s.down(a(this.outputError,this.out.columns)-1)+u(this.outputError,this.out.columns)),this.out.write(u(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[c.symbol(this.done,this.aborted),r.bold(this.msg),c.delimiter(this.done),!this.done||!this.done&&!this.placeholder?r[this.color]().underline(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
`).reduce((p,m,g)=>p+`
${g?" ":n.pointerSmall} ${r.red().italic(m)}`,"")),this.out.write(d.line+s.to(0)+this.outputText+s.save+this.outputError+s.restore))}};t.exports=f})),bu=N.__commonJSMin(((e,t)=>{var r=Nt(),{cursor:i}=Mt(),s=tr(),{clear:d,figures:c,style:n,wrap:u,entriesToDisplay:a}=Gt(),h=class extends s{constructor(o={}){super(o),this.isSelect=!0,this.msg=o.message,this.cursorStart=o.choices.findIndex(l=>!l.heading),this.cursor=o.cursor||this.cursorStart,this.scrollIndex=o.cursor||0,this.hint=o.hint||"",this.warn=o.warn||"- This option is disabled -",this.minSelected=o.min,this.showMinError=!1,this.maxChoices=o.max,this.instructions=o.instructions,this.optionsPerPage=o.optionsPerPage||10,this.value=o.choices.map((l,f)=>(typeof l=="string"&&(l={title:l,value:f}),{title:l&&(l.title||l.value||l),description:l&&l.description,value:l&&(l.value===void 0?f:l.value),selected:l&&l.selected,disabled:l&&l.disabled,heading:l&&l.heading})),this.clear=d("",this.out.columns),o.overrideRender||this.render()}reset(){this.value.map(o=>!o.selected),this.cursor=this.cursorStart,this.fire(),this.render()}selected(){return this.value.filter(o=>o.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
`),this.close()}submit(){const o=this.value.filter(l=>l.selected);this.minSelected&&o.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
`),this.close())}first(){this.cursor=this.cursorStart,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.value[this.cursor].heading&&this.next(),this.render()}up(){this.cursor===this.cursorStart?this.cursor=this.value.length-1:this.cursor--,this.value[this.cursor].heading&&this.up(),this.render()}down(){this.cursor===this.value.length-1?this.cursor=this.cursorStart:this.cursor++,this.value[this.cursor].heading&&this.down(),this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(o=>o.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const o=this.value[this.cursor];if(o.selected)o.selected=!1,this.render();else{if(o.disabled||this.value.filter(l=>l.selected).length>=this.maxChoices)return this.bell();o.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();const o=!this.value[this.cursor].selected;this.value.filter(l=>!l.disabled&&!l.heading).forEach(l=>l.selected=o),this.render()}_(o,l){if(o===" ")this.handleSpaceToggle();else if(o==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
Instructions:
${c.arrowUp}/${c.arrowDown}: Highlight option
${c.arrowLeft}/${c.arrowRight}/[space]: Toggle selection
`+(this.maxChoices===void 0?` a: Toggle all
`:"")+" enter/return: Complete answer":""}renderOption(o,l,f,p){const m=(o===f?"❯ ":" ")+(l.selected?r.green(c.radioOn):c.radioOff)+" ";let g,v;if(l.disabled)g=o===f?r.gray(l.title):r.strikethrough().gray(l.title);else{if(l.heading)return g=l.title,g+r.gray(v||"");g=l.title,o===f&&l.description&&(v=` - ${l.description}`,(m.length+g.length+v.length>=this.out.columns||l.description.split(/\r?\n/).length>1)&&(v=`
`+u(l.description,{margin:m.length,width:this.out.columns})))}return m+g+r.gray(v||"")}paginateOptions(o){if(o.length===0)return r.red("No matches for this query.");let{startIndex:l,endIndex:f}=a(this.cursor,o.length,this.optionsPerPage),p,m=[];for(let g=l;g<f;g++)g===l&&l>0?p=c.arrowUp:g===f-1&&f<o.length?p=c.arrowDown:p=" ",m.push(this.renderOption(this.cursor,o[g],g,p));return`
`+m.join(`
`)}renderOptions(o){return this.done?"":this.paginateOptions(o)}renderDoneOrInstructions(){if(this.done)return"";const o=[r.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&o.push(r.yellow(this.warn)),o.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let o=[n.symbol(this.done,this.aborted),r.bold(this.msg),n.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(o+=r.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),o+=this.renderOptions(this.value),this.out.write(this.clear+o),this.clear=d(o,this.out.columns)}};t.exports=h})),hm=N.__commonJSMin(((e,t)=>{var r=Nt(),i=tr(),{erase:s,cursor:d}=Mt(),{style:c,clear:n,figures:u,wrap:a,entriesToDisplay:h}=Gt(),o=(m,g)=>m[g]&&(m[g].value||m[g].title||m[g]),l=(m,g)=>m[g]&&(m[g].title||m[g].value||m[g]),f=(m,g)=>{const v=m.findIndex(_=>_.value===g||_.title===g);return v>-1?v:void 0},p=class extends i{constructor(m={}){super(m),this.msg=m.message,this.suggest=m.suggest,this.choices=m.choices,this.initial=typeof m.initial=="number"?m.initial:f(m.choices,m.initial),this.select=this.initial||m.cursor||0,this.i18n={noMatches:m.noMatches||"no matches found"},this.fallback=m.fallback||this.initial,this.clearFirst=m.clearFirst||!1,this.suggestions=[],this.input="",this.limit=m.limit||10,this.cursor=0,this.transform=c.render(m.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=n("",this.out.columns),this.complete(this.render),this.render()}set fallback(m){this._fb=Number.isSafeInteger(parseInt(m))?parseInt(m):m}get fallback(){let m;return typeof this._fb=="number"?m=this.choices[this._fb]:typeof this._fb=="string"&&(m={title:this._fb}),m||this._fb||{title:this.i18n.noMatches}}moveSelect(m){this.select=m,this.suggestions.length>0?this.value=o(this.suggestions,m):this.value=this.fallback.value,this.fire()}async complete(m){const g=this.completing=this.suggest(this.input,this.choices),v=await g;if(this.completing!==g)return;this.suggestions=v.map((S,E,w)=>({title:l(w,E),value:o(w,E),description:S.description})),this.completing=!1;const _=Math.max(v.length-1,0);this.moveSelect(Math.min(_,this.select)),m&&m()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
`),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(`
`),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(`
`),this.close()}_(m,g){let v=this.input.slice(0,this.cursor),_=this.input.slice(this.cursor);this.input=`${v}${m}${_}`,this.cursor=v.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let m=this.input.slice(0,this.cursor-1),g=this.input.slice(this.cursor);this.input=`${m}${g}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let m=this.input.slice(0,this.cursor),g=this.input.slice(this.cursor+1);this.input=`${m}${g}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(m,g,v,_){let S,E=v?u.arrowUp:_?u.arrowDown:" ",w=g?r.cyan().underline(m.title):m.title;return E=(g?r.cyan(u.pointer)+" ":" ")+E,m.description&&(S=` - ${m.description}`,(E.length+w.length+S.length>=this.out.columns||m.description.split(/\r?\n/).length>1)&&(S=`
`+a(m.description,{margin:3,width:this.out.columns}))),E+" "+w+r.gray(S||"")}render(){if(this.closed)return;this.firstRender?this.out.write(d.hide):this.out.write(n(this.outputText,this.out.columns)),super.render();let{startIndex:m,endIndex:g}=h(this.select,this.choices.length,this.limit);if(this.outputText=[c.symbol(this.done,this.aborted,this.exited),r.bold(this.msg),c.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const v=this.suggestions.slice(m,g).map((_,S)=>this.renderOption(_,this.select===S+m,S===0&&m>0,S+m===g-1&&g<this.choices.length)).join(`
`);this.outputText+=`
`+(v||r.gray(this.fallback.title))}this.out.write(s.line+d.to(0)+this.outputText)}};t.exports=p})),fm=N.__commonJSMin(((e,t)=>{var r=Nt(),{cursor:i}=Mt(),s=bu(),{clear:d,style:c,figures:n}=Gt(),u=class extends s{constructor(a={}){a.overrideRender=!0,super(a),this.inputValue="",this.clear=d("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(a=>a.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const a=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(o=>this.inputValue?!!(typeof o.title=="string"&&o.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof o.value=="string"&&o.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);const h=this.filteredOptions.findIndex(o=>o===a);this.cursor=h<0?0:h,this.render()}handleSpaceToggle(){const a=this.filteredOptions[this.cursor];if(a.selected)a.selected=!1,this.render();else{if(a.disabled||this.value.filter(h=>h.selected).length>=this.maxChoices)return this.bell();a.selected=!0,this.render()}}handleInputChange(a){this.inputValue=this.inputValue+a,this.updateFilteredOptions()}_(a,h){a===" "?this.handleSpaceToggle():this.handleInputChange(a)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
Instructions:
${n.arrowUp}/${n.arrowDown}: Highlight option
${n.arrowLeft}/${n.arrowRight}/[space]: Toggle selection
[a,b,c]/delete: Filter choices
enter/return: Complete answer
`:""}renderCurrentInput(){return`
Filtered results for: ${this.inputValue?this.inputValue:r.gray("Enter something to filter")}
`}renderOption(a,h,o,l){const f=(h.selected?r.green(n.radioOn):n.radioOff)+" "+l+" ";let p;return h.disabled?p=a===o?r.gray().underline(h.title):r.strikethrough().gray(h.title):p=a===o?r.cyan().underline(h.title):h.title,f+p}renderDoneOrInstructions(){if(this.done)return this.value.filter(h=>h.selected).map(h=>h.title).join(", ");const a=[r.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&a.push(r.yellow(this.warn)),a.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let a=[c.symbol(this.done,this.aborted),r.bold(this.msg),c.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(a+=r.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),a+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+a),this.clear=d(a,this.out.columns)}};t.exports=u})),dm=N.__commonJSMin(((e,t)=>{var r=Nt(),i=tr(),{style:s,clear:d}=Gt(),{erase:c,cursor:n}=Mt(),u=class extends i{constructor(a={}){super(a),this.msg=a.message,this.value=a.initial,this.initialValue=!!a.initial,this.yesMsg=a.yes||"yes",this.yesOption=a.yesOption||"(Y/n)",this.noMsg=a.no||"no",this.noOption=a.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
`),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
`),this.close()}_(a,h){return a.toLowerCase()==="y"?(this.value=!0,this.submit()):a.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){if(this.closed)return;this.firstRender?this.out.write(n.hide):this.out.write(d(this.outputText,this.out.columns)),super.render();const a=this.aborted||this.done&&!this.value;this.outputText=[s.symbol(this.done,a),r.bold(this.msg),s.delimiter(this.done),this.done?this.value&&!this.aborted?this.yesMsg:this.noMsg:r.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(c.line+n.to(0)+this.outputText)}};t.exports=u})),pm=N.__commonJSMin(((e,t)=>{t.exports={TextPrompt:Zp(),SelectPrompt:Xp(),TogglePrompt:Qp(),DatePrompt:cm(),NumberPrompt:um(),MultiselectPrompt:bu(),AutocompletePrompt:hm(),AutocompleteMultiselectPrompt:fm(),ConfirmPrompt:dm()}})),mm=N.__commonJSMin((e=>{var t=e,r=pm(),i=c=>c;function s(c,n,u={}){return new Promise((a,h)=>{const o=new r[c](n),l=u.onAbort||i,f=u.onSubmit||i,p=u.onExit||i;o.on("state",n.onState||i),o.on("submit",m=>a(f(m))),o.on("exit",m=>a(p(m))),o.on("abort",m=>h(l(m)))})}t.text=c=>s("TextPrompt",c),t.password=c=>(c.style="password",t.text(c)),t.invisible=c=>(c.style="invisible",t.text(c)),t.number=c=>s("NumberPrompt",c),t.date=c=>s("DatePrompt",c),t.confirm=c=>s("ConfirmPrompt",c),t.list=c=>{const n=c.separator||",";return s("TextPrompt",c,{onSubmit:u=>u.split(n).map(a=>a.trim())})},t.toggle=c=>s("TogglePrompt",c),t.select=c=>s("SelectPrompt",c),t.multiselect=c=>{c.choices=[].concat(c.choices||[]);const n=u=>u.filter(a=>a.selected).map(a=>a.value);return s("MultiselectPrompt",c,{onAbort:n,onSubmit:n})},t.autocompleteMultiselect=c=>{c.choices=[].concat(c.choices||[]);const n=u=>u.filter(a=>a.selected).map(a=>a.value);return s("AutocompleteMultiselectPrompt",c,{onAbort:n,onSubmit:n})};var d=(c,n)=>Promise.resolve(n.filter(u=>u.title.slice(0,c.length).toLowerCase()===c.toLowerCase()));t.autocomplete=c=>(c.suggest=c.suggest||d,c.choices=[].concat(c.choices||[]),s("AutocompletePrompt",c))})),gm=N.__commonJSMin(((e,t)=>{var r=mm(),i=["suggest","format","onState","validate","onRender","type"],s=()=>{};async function d(a=[],{onSubmit:h=s,onCancel:o=s}={}){const l={},f=d._override||{};a=[].concat(a);let p,m,g,v,_,S;const E=async(w,b,A=!1)=>{if(!(!A&&w.validate&&w.validate(b)!==!0))return w.format?await w.format(b,l):b};for(m of a)if({name:v,type:_}=m,typeof _=="function"&&(_=await _(p,{...l},m),m.type=_),!!_){for(let w in m){if(i.includes(w))continue;let b=m[w];m[w]=typeof b=="function"?await b(p,{...l},S):b}if(S=m,typeof m.message!="string")throw new Error("prompt message is required");if({name:v,type:_}=m,r[_]===void 0)throw new Error(`prompt type (${_}) is not defined`);if(f[m.name]!==void 0&&(p=await E(m,f[m.name]),p!==void 0)){l[v]=p;continue}try{p=d._injected?c(d._injected,m.initial):await r[_](m),l[v]=p=await E(m,p,!0),g=await h(m,p,l)}catch{g=!await o(m,l)}if(g)return l}return l}function c(a,h){const o=a.shift();if(o instanceof Error)throw o;return o===void 0?h:o}function n(a){d._injected=(d._injected||[]).concat(a)}function u(a){d._override=Object.assign({},a)}t.exports=Object.assign(d,{prompt:d,prompts:r,inject:n,override:u})})),vm=N.__commonJSMin(((e,t)=>{t.exports=gm()})),an=N.__toESM(vm(),1),ym="npm-check-updates",_m="22.2.3",bm="Tomas Junnonen <tomas1@gmail.com>",wm="Apache-2.0",Sm=["Raine Revere (https://github.com/raineorshine)","Imamuzzaki Abu Salam <imamuzzaki@gmail.com>"],Em="Find newer versions of dependencies than what your package.json allows",Am=["dependencies","npm","package.json","update","upgrade","versions"],Tm={node:"^20.19.0 || ^22.12.0 || >=24.0.0",npm:">=10.0.0"},Dm="module",Rm="build/index.cjs",Om="build/index.js",Cm="build/index.d.ts",Im={"npm-check-updates":"build/cli.js",ncu:"build/cli.js"},km={".":{types:"./build/index.d.ts",import:"./build/index.js",require:"./build/index.cjs"},"./package.json":"./package.json"},Lm={build:"rimraf build && vite build","build:options":"tsx src/scripts/build-options.ts","build:analyze":"rimraf build && ANALYZER=true vite build",lint:"cross-env FORCE_COLOR=1 npm-run-all --parallel --aggregate-output lint:*","lint:lockfile":"lockfile-lint","lint:types":"tsc --noEmit","lint:markdown":'markdownlint "**/*.md" --ignore "**/node_modules/**/*.md" --ignore build --config .markdownlint.json',"lint:src":"eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives",prepare:"src/scripts/install-hooks",prepublishOnly:"npm run build",prettier:"prettier . --check","prettier:fix":"prettier . --write",test:"tsc --noEmit && npm run test:unit && npm run test:e2e","test:bun":"mocha test/bun","test:unit":"mocha test test/package-managers/* --ignore 'test/bun/*'","test:e2e":"./test/e2e.sh",typecheck:"tsc --noEmit",ncu:"node build/cli.js"},xm={type:"git",url:"git+https://github.com/raineorshine/npm-check-updates.git"},$m="https://github.com/raineorshine/npm-check-updates",Nm={url:"https://github.com/raineorshine/npm-check-updates/issues"},Mm={typescript:"$typescript",eslint:"$eslint","eslint-config-standard":{"eslint-plugin-n":"$eslint-plugin-n","eslint-plugin-promise":"$eslint-plugin-promise"},"@verdaccio/core":">=8.0.0-next-8.33","chai-string":{chai:"$chai"},diff:">=8.0.3","ip-address":">=10.1.1",lodash:">=4.18.1","serialize-javascript":">=7.0.3",uuid:">=14.0.0"},Pm={"@eslint/compat":"^2.0.5","@eslint/js":"^10.0.1","@microsoft/api-extractor":"^7.58.7","@streamparser/json":"^0.0.22","@trivago/prettier-plugin-sort-imports":"^6.0.2","@types/bun":"^1.3.11","@types/chai":"^5.2.3","@types/chai-as-promised":"^8.0.2","@types/chai-string":"^1.4.5","@types/cli-table":"^0.3.4","@types/hosted-git-info":"^3.0.5","@types/ini":"^4.1.1","@types/js-yaml":"^4.0.9","@types/jsonlines":"^0.1.5","@types/lodash-es":"^4.17.12","@types/mocha":"^10.0.10","@types/node":"^25.6.0","@types/npm-registry-fetch":"^8.0.9","@types/parse-github-url":"^1.0.3","@types/picomatch":"^4.0.3","@types/progress":"^2.0.7","@types/prompts":"^2.4.9","@types/semver":"^7.7.1","@types/semver-utils":"^1.1.3","@types/sinon":"^21.0.1","@types/update-notifier":"^6.0.8","@typescript-eslint/eslint-plugin":"^8.59.0","@typescript-eslint/parser":"^8.59.0",camelcase:"^9.0.0",chai:"^6.2.2","chai-as-promised":"^8.0.2","chai-string":"^1.6.0",chalk:"^5.6.2","cli-table3":"^0.6.5",commander:"^14.0.3",cosmiconfig:"^9.0.1","cross-env":"^10.1.0",dequal:"^2.0.3",eslint:"^10.2.1","eslint-config-prettier":"^10.1.8","eslint-config-raine":"^0.5.0","eslint-config-standard":"^17.1.0","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-import-x":"^4.16.2","eslint-plugin-jsdoc":"^62.9.0","eslint-plugin-n":"^18.0.1","eslint-plugin-promise":"^7.2.1","fast-glob":"^3.3.3","fast-memoize":"^2.5.2","find-up":"^8.0.0","fp-and-or":"^1.0.2",globals:"^17.5.0","hosted-git-info":"^9.0.2",ini:"^7.0.0","js-yaml":"^4.1.1","jsonc-parser":"^3.3.1",jsonlines:"^0.1.1","lockfile-lint":"^5.0.0","lodash-es":"^4.18.1","markdownlint-cli":"^0.48.0",mocha:"^11.7.5","npm-registry-fetch":"^19.1.1","npm-run-all":"^4.1.5","p-map":"^7.0.4","parse-github-url":"^1.0.4",picomatch:"^4.0.4",prettier:"^3.8.3",progress:"^2.0.3","prompts-ncu":"^3.0.2",rfdc:"^1.4.1",rimraf:"^6.1.3",semver:"^7.7.4","semver-utils":"^1.1.4",should:"^13.2.3",sinon:"^22.0.0","source-map-support":"^0.5.21","spawn-please":"^3.0.0","timeago.js":"^4.0.2","ts-json-schema-generator":"^2.9.0",tsx:"^4.21.0",typescript:"^6.0.3","unplugin-dts":"^1.0.1",untildify:"^6.0.0","update-notifier":"^7.3.1",verdaccio:"^6.5.2",vite:"^8.0.8","vite-bundle-analyzer":"^1.3.7",yaml:"^2.8.3",yarn:"^1.22.22",zod:"^4.3.6"},Bm=["build","!**/test/**"],Fm={"check-leaks":!0,extension:["test.ts"],"node-option":["import=tsx","enable-source-maps","trace-deprecation","trace-warnings","no-warnings=TimeoutNaNWarning"],timeout:6e4,recursive:!0,exit:!0},ln={name:ym,version:_m,author:bm,license:wm,contributors:Sm,description:Em,keywords:Am,engines:Tm,type:Dm,main:Rm,module:Om,types:Cm,bin:Im,exports:km,scripts:Lm,repository:xm,homepage:$m,bugs:Nm,overrides:Mm,devDependencies:Pm,files:Bm,"lockfile-lint":{"allowed-schemes":["https:","git+ssh:"],"allowed-hosts":["npm","github.com"],"empty-hostname":!1,type:"npm ",path:"package-lock.json"},mocha:Fm},ya=N.__commonJSMin(((e,t)=>{var r=[],i=0,s=(d,c)=>{i>=c&&r.push(d)};s.WARN=1,s.INFO=2,s.DEBUG=3,s.reset=()=>{r=[]},s.setDebugLevel=d=>{i=d},s.warn=d=>s(d,s.WARN),s.info=d=>s(d,s.INFO),s.debug=d=>s(d,s.DEBUG),s.debugMessages=()=>r,t.exports=s})),jm=N.__commonJSMin(((e,t)=>{t.exports=({onlyFirst:r=!1}={})=>{const i=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(i,r?void 0:"g")}})),Um=N.__commonJSMin(((e,t)=>{var r=jm();t.exports=i=>typeof i=="string"?i.replace(r(),""):i})),wu=N.__commonJSMin(((e,t)=>{var r=i=>Number.isNaN(i)?!1:i>=4352&&(i<=4447||i===9001||i===9002||11904<=i&&i<=12871&&i!==12351||12880<=i&&i<=19903||19968<=i&&i<=42182||43360<=i&&i<=43388||44032<=i&&i<=55203||63744<=i&&i<=64255||65040<=i&&i<=65049||65072<=i&&i<=65131||65281<=i&&i<=65376||65504<=i&&i<=65510||110592<=i&&i<=110593||127488<=i&&i<=127569||131072<=i&&i<=262141);t.exports=r,t.exports.default=r})),qm=N.__commonJSMin(((e,t)=>{t.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uD