functione(e){returne&&e.__esModule?e.default:e}functiont(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}functionr(e,t,r){consto=newqe(e,t,r);process.stdout.write(""+o+He.EOL)}functiono(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()}functionn(e,t={}){Fe.issueCommand("error",Ve.toCommandProperties(t),einstanceofError?""+e:e)}functions(e){Fe.issue("group",e)}functioni(){Fe.issue("endgroup")}functiona(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise(((r,o)=>{a(e,t||{},((e,t)=>{e?o(e):r(t)}))}))}ut(e,t||{},((e,o)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,o=!1),r(e,o)}))}functionc(t,r,o){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeofmt)return{binDir:mt};constn=e(at).sync("brew",{nothrow:!0});returnnull!==n?(mt=me.dirname(n),{binDir:mt}):(Se.execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),mt="/usr/local/bin/",{binDir:mt})}functionl(e,t){constr=e.options.env||process.env,o=process.cwd(),n=null!=e.options.cwd,s=n&&void0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}leti;try{i=at.sync(e.command,{path:r[wt({env:r})],pathExt:t?me.delimiter:void0})}catch(e){}finally{s&&process.chdir(o)}returni&&(i=me.resolve(n?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){returnRt&&1===e&&!t.file?u(t.original,"spawn"):null}functiond(e,t,r){consto=xt(e,t,r),n=Se.spawn(o.command,o.args,o.options);return$t.hookChildProcess(n,o),n}functionh(){cr&&(cr=!1,nr.forEach((e=>{try{process.removeListener(e,ar[e])}catch(e){}})),process.emit=ur,process.reallyExit=lr,or.count-=1)}functionf(e,t,r){or.emitted[e]||(or.emitted[e]=!0,or.emit(e,t,r))}functionm(){cr||(cr=!0,or.count+=1,nr=nr.filter((e=>{try{returnprocess.on(e,ar[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),lr.call(process,process.exitCode)}functiong(e,t){if("exit"===e){void0!==t&&(process.exitCode=t);varr=ur.apply(this,arguments);returnf("exit",process.exitCode,null),f("afterexit",process.exitCode,null),r}returnur.apply(this,arguments)}asyncfunctiony(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,o=wr(t);returnawaitnewPromise(((t,n)=>{consts=e=>{e&&o.getBufferedLength()<=br.MAX_LENGTH&&(e.bufferedData=o.getBufferedValue()),n(e)};(async()=>{try{awaitOr(e,o),t()}catch(e){s(e)}})(),o.on("data",(()=>{o.getBufferedLength()>r&&s(newPr)}))})),o.getBufferedValue()}functionx(t,r){returnvoid0!==Yr||(Yr=(!!process.env.CI||0===(null===(o=process.getuid)||void0===o?void0:o.call(process)))&&null!==e(at).sync("sudo",{nothrow:!0})),Yr?e(gt).command("sudo "+[t,...r].join(" "),{shell:!0}):e(gt)(t,r);varo}asyncfunctionw(e,t,r=!0){consto="apt-get";if("string"==typeofr&&awaitx("add-apt-repository",["--update","-y",r]),Kr&&!0!==r||(awaitx(o,["update","-y"]),Kr=!0),void0!==t&&""!==t)try{awaitx(o,["install","-y",`${e}=${t}`])}catch{awaitx(o,["install","-y",`${e}-${t}`])}elseawaitx(o,["install","-y",e]);return{binDir:"/usr/bin/"}}functionE(t,r){returnJr&&null!==e(at).sync("brew",{nothrow:!0})||(c(0,0,process),Jr=!0),e(gt).sync("brew",["install",void0!==r&&""!==r?`${t}@${r}`:t]),{binDir:"/usr/local/bin/"}}functionb(t){try{Le.addPath(t)}catch(r){try{switch(Le.error(r),process.platform){case"win32":returnvoide(gt).sync(`setx PATH=${t};%PATH%`);case"linux":case"darwin":returne(gt).commandSync(`echo "export PATH=${t}:$PATH" >> ~/.profile`),e(gt).commandSync("source ~/.profile"),voidLe.info(t+" was added to ~/.profile")}}catch(