functione(e){returne&&e.__esModule?e.default:e}functiont(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}functionr(e,t,r){constn=newze(e,t,r);process.stdout.write(""+n+Xe.EOL)}functionn(e,t){constr=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throwError("Input required and not supplied: "+e);returnt&&!1===t.trimWhitespace?r:r.trim()}functiono(e,t={}){He.issueCommand("error",Ye.toCommandProperties(t),einstanceofError?""+e:e)}functions(e){He.issue("group",e)}functioni(){He.issue("endgroup")}functiona(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise(((r,n)=>{a(e,t||{},((e,t)=>{e?n(e):r(t)}))}))}ft(e,t||{},((e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}functionc(t,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeofxt)return{binDir:xt};consto=e(pt).sync("brew",{nothrow:!0});returnnull!==o?(xt=ye.dirname(o),{binDir:xt}):(Ce.execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),xt="/usr/local/bin/",{binDir:xt})}functionl(e,t){constr=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,s=o&&void0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}leti;try{i=pt.sync(e.command,{path:r[Pt({env:r})],pathExt:t?ye.delimiter:void0})}catch(e){}finally{s&&process.chdir(n)}returni&&(i=ye.resolve(o?e.options.cwd:"",i)),i}functionu(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args})}functionp(e,t){returnLt&&1===e&&!t.file?u(t.original,"spawn"):null}functiond(e,t,r){constn=St(e,t,r),o=Ce.spawn(n.command,n.args,n.options);returnNt.hookChildProcess(o,n),o}functionh(){dr&&(dr=!1,cr.forEach((e=>{try{process.removeListener(e,pr[e])}catch(e){}})),process.emit=fr,process.reallyExit=hr,ar.count-=1)}functionf(e,t,r){ar.emitted[e]||(ar.emitted[e]=!0,ar.emit(e,t,r))}functionm(){dr||(dr=!0,ar.count+=1,cr=cr.filter((e=>{try{returnprocess.on(e,pr[e]),!0}catch(e){return!1}})),process.emit=g,process.reallyExit=v)}functionv(e){process.exitCode=e||0,f("exit",process.exitCode,null),f("afterexit",process.exitCode,null),hr.call(process,process.exitCode)}functiong(e,t){if("exit"===e){void0!==t&&(process.exitCode=t);varr=fr.apply(this,arguments);returnf("exit",process.exitCode,null),f("afterexit",process.exitCode,null),r}returnfr.apply(this,arguments)}asyncfunctiony(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=Pr(t);returnawaitnewPromise(((t,o)=>{consts=e=>{e&&n.getBufferedLength()<=_r.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{awaitTr(e,n),t()}catch(e){s(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&s(newIr)}))})),n.getBufferedValue()}functionx(t,r){returnvoid0!==Zr||(Zr=(!!process.env.CI||0===(null===(n=process.getuid)||void0===n?void0:n.call(process)))&&null!==e(pt).sync("sudo",{nothrow:!0})),Zr?e(Et).command("sudo "+[t,...r].join(" "),{shell:!0}):e(Et)(t,r);varn}asyncfunctionw(e,t,r=!0){constn="apt-get";if("string"==typeofr&&awaitx("add-apt-repository",["--update","-y",r]),en&&!0!==r||(awaitx(n,["update","-y"]),en=!0),void0!==t&&""!==t)try{awaitx(n,["install","-y",`${e}=${t}`])}catch{awaitx(n,["install","-y",`${e}-${t}`])}elseawaitx(n,["install","-y",e]);return{binDir:"/usr/bin/"}}functionE(t,r){returntn&&null!==e(pt).sync("brew",{nothrow:!0})||(c(0,0,process),tn=!0),e(Et).sync("brew",["install",void0!==r&&""!==r?`${t}@${r}`:t]),{binDir:"/usr/local/bin/"}}functionb(t){try{Me.addPath(t)}catch(r){try{switch(Me.error(r),process.platform){case"win32":returnvoide(Et).sync(`setx PATH=${t};%PATH%`);case"linux":case"darwin":returne(Et).commandSync(`echo "export PATH=${t}:$PATH" >> ~/.profile`),e(Et).commandSync("source ~/.profile"),voidMe.info(t+" was added to ~/.profile")}}catch(