`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function _0(e){let t=e[0]==="u",n=e[1]==="{";return t&&!n&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):C2.get(e)||e}function M2(e,t){let n=[],r=t.trim().split(/\s*,\s*/g),o;for(let s of r){let a=Number(s);if(!Number.isNaN(a))n.push(a);else if(o=s.match(w2))n.push(o[2].replace(E2,(c,l,u)=>l?_0(l):u));else throw new Error(`InvalidChalktemplatestyleargument:${s}(instyle'${e}')`)}return n}function O2(e){S0.lastIndex=0;let t=[],n;for(;(n=S0.exec(e))!==null;){let r=n[1];if(n[2]){let o=M2(r,n[2]);t.push([r].concat(o))}else t.push([r])}return t}function T0(e,t){let n={};for(let o of t)for(let s of o.styles)n[s[0]]=o.inverse?null:s.slice(1);let r=e;for(let[o,s]of Object.entries(n))if(!!Array.isArray(s)){if(!(o in r))throw new Error(`UnknownChalkstyle:${o}`);r=s.length>0?r[o](...s):r[o]}return r}B0.exports=(e,t)=>{let n=[],r=[],o=[];if(t.replace(k2,(s,a,c,l,u,f)=>{if(a)o.push(_0(a));else if(l){let h=o.join("");o=[],r.push(n.length===0?h:T0(e,n)(h)),n.push({inverse:c,styles:O2(l)})}else if(u){if(n.length===0)throw new Error("Found extraneous } in Chalk template literal");r.push(T0(e,n)(o.join(""))),o=[],n.pop()}else o.push(f)}),r.push(o.join("")),n.length>0){let s=`Chalktemplateliteralismissing${n.length}closingbracket${n.length===1?"":"s"}(\`}\`)`;thrownewError(s)}returnr.join("")}});varZ=v((J2,P0)=>{"use strict";var_=k0(),{stdout:z,stderr:W}=O0(),{stringReplaceAll:R2,stringEncaseCRLFWithFirstIndex:A2}=A0(),j0=["ansi","ansi","ansi256","ansi16m"],A=Object.create(null),S2=(e,t={})=>{if(t.level>3||t.level<0)thrownewError("The `level` option should be an integer from 0 to 3");letn=z?z.level:0;e.level=t.level===void0?n:t.level},I0=class{constructor(t){returnN0(t)}},N0=e=>{lett={};returnS2(t,e),t.template=(...n)=>B2(t.template,...n),Object.setPrototypeOf(t,P.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{thrownewError("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=I0,t.template};functionP(e){returnN0(e)}for(let[e,t]ofObject.entries(_))A[e]={get(){letn=Y(this,K(t.open,t.close,this._styler),this._isEmpty);returnObject.defineProperty(this,e,{value:n}),n}};A.visible={get(){lete=Y(this,this._styler,!0);returnObject.defineProperty(this,"visible",{value:e}),e}};varF0=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(leteofF0)A[e]={get(){let{level:t}=this;returnfunction(...n){letr=K(_.color[j0[t]][e](...n),_.color.close,this._styler);returnY(this,r,this._isEmpty)}}};for(leteofF0){lett="bg"+e[0].toUpperCase()+e.slice(1);A[t]={get(){let{level:n}=this;returnfunction(...r){leto=K(_.bgColor[j0[n]][e](...r),_.bgColor.close,this._styler);returnY(this,o,this._isEmpty)}}}}var_2=Object.defineProperties(()=>{},a0(s0({},A),{level:{enumerable:!0,get(){returnthis._generator.level},set(e){this._generator.level=e}}})),K=(e,t,n)=>{letr,o;returnn===void0?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},Y=(e,t,n)=>{letr=(...o)=>T2(r,o.length===1?""+o[0]:o.join(" "));returnr.__proto__=_2,r._generator=e,r._styler=t,r._isEmpty=n,r},T2=(e,t)=>{if(e.level<=0||!t)returne._isEmpty?"":t;letn=e._styler;if(n===void0)returnt;let{openAll:r,closeAll:o}=n;if(t.indexOf("")!==-1)for(;n!==void0;)t=R2(t,n.close,n.open),n=n.parent;lets=t.indexOf(`