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=newtt(e,t,r);process.stdout.write(""+n+Qe.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={}){Ye.issueCommand("error",et.toCommandProperties(t),einstanceofError?""+e:e)}functions(e){Ye.issue("group",e)}functioni(){Ye.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)}))}))}wt(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"==typeofOt)return{binDir:Ot};consto=e(gt).sync("brew",{nothrow:!0});returnnull!==o?(Ot=Pe.dirname(o),{binDir:Ot}):(Ne.execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),Ot="/usr/local/bin/",{binDir:Ot})}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=gt.sync(e.command,{path:r[It({env:r})],pathExt:t?Pe.delimiter:void0})}catch(e){}finally{s&&process.chdir(n)}returni&&(i=Pe.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){returnUt&&1===e&&!t.file?u(t.original,"spawn"):null}functiond(e,t,r){constn=$t(e,t,r),o=Ne.spawn(n.command,n.args,n.options);returnMt.hookChildProcess(o,n),o}functionh(){yr&&(yr=!1,fr.forEach((e=>{try{process.removeListener(e,gr[e])}catch(e){}})),process.emit=wr,process.reallyExit=xr,hr.count-=1)}functionf(e,t,r){hr.emitted[e]||(hr.emitted[e]=!0,hr.emit(e,t,r))}functionm(){yr||(yr=!0,hr.count+=1,fr=fr.filter((e=>{try{returnprocess.on(e,gr[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),xr.call(process,process.exitCode)}functiong(e,t){if("exit"===e){void0!==t&&(process.exitCode=t);varr=wr.apply(this,arguments);returnf("exit",process.exitCode,null),f("afterexit",process.exitCode,null),r}returnwr.apply(this,arguments)}asyncfunctiony(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=Ir(t);returnawaitnewPromise(((t,o)=>{consts=e=>{e&&n.getBufferedLength()<=Ar.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{awaitLr(e,n),t()}catch(e){s(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&s(newDr)}))})),n.getBufferedValue()}functionx(){vart;returnvoid0!==on||(on=(!!process.env.CI||0===(null===(t=process.getuid)||void0===t?void0:t.call(process)))&&null!==e(gt).sync("sudo",{nothrow:!0})),on}functionw(t,r,n){returnx()?e(Ct).command("sudo "+[t,...r].map((e=>`'${e}'`)).join(" "),{shell:!0,cwd:n}):e(Ct)(t,r)}asyncfunctionb(e,t,r=!0){constn="apt-get";if(process.env.DEBIAN_FRONTEND="noninteractive",an||(awaitw(n,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]),an=!0),Array.isArray(r))for(consteofr)awaitw("add-apt-repository",["--update","-y",e]);if(sn&&!0!==r||(awaitw(n,["update","-y"]),sn=!0),void0!==t&&""!==t)try{awaitw(n,["install","--fix-broken","-y",`${e}=${t}`])}catch{awaitw(n,["install","--fix-broken","-y",`${e}-${t}`])}elseawaitw(n,["install","--fix-broken","-y",e]);return{binDir:"/usr/bin/"}}functionE(t,r){returncn&&null!==e(gt).sync("brew",{nothrow:!0})||(c(0,0,process),cn=!0),e(Ct).sync("brew",["install",void0!==r&&""!==r?`${t}@${r}`:t]),{binDir:"/usr/local/bin/"}}functionS(){return"true"===process.env.CI&&"tru