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={}){Me.issueCommand("error",Be.toCommandProperties(t),einstanceofError?""+e:e)}functions(e){Me.issue("group",e)}functioni(){Me.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=le.dirname(n),{binDir:mt}):(ye.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[xt({env:r})],pathExt:t?le.delimiter:void0})}catch(e){}finally{s&&process.chdir(o)}returni&&(i=le.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){returnIt&&1===e&&!t.file?u(t.original,"spawn"):null}functiond(e,t,r){consto=yt(e,t,r),n=ye.spawn(o.command,o.args,o.options);returnTt.hookChildProcess(n,o),n}functionh(e={}){const{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"}functionf(e){returnnull!==e&&"object"==typeofe&&"function"==typeofe.pipe}asyncfunctionm(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,o=mr(t);returnawaitnewPromise(((t,n)=>{consts=e=>{e&&o.getBufferedLength()<=gr.MAX_LENGTH&&(e.bufferedData=o.getBufferedValue()),n(e)};(async()=>{try{awaitxr(e,o),t()}catch(e){s(e)}})(),o.on("data",(()=>{o.getBufferedLength()>r&&s(newwr)}))})),o.getBufferedValue()}functionv(t,r,o){constn=Nr(t,r,o),s=$r(t,r),i=Rr(t,r);leta;(({timeout:e})=>{if(void0!==e&&(!Number.isFinite(e)||0>e))thrownewTypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`)})(n.options);try{a=e(Ee).spawn(n.file,n.args,n.options)}catch(t){constr=new(e(Ee).ChildProcess),o=Promise.reject(Bt({error:t,stdout:"",stderr:"",all:"",command:s,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));returnCr(r,o)}constc=(e=>newPromise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})})),e.on("error",(e=>{r(e)})),e.stdin&&e.stdin.on("error",(e=>{r(e)}))})))(a),l=((e,{timeout:t,killSignal:r="SIGTERM"},o)=>{if(0===t||void0===t)returno;letn;consts=newPromise(((o,s)=>{n=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,s)}),t)})),i=o.finally((()=>{clearTimeout(n)}));returnPromise.race([s,i])})(a,n.options,c),u=(async(t,{cleanup:r,detached:o},n)=>{if(!r||o)returnn;consts=e(Wt)((()=>{t.kill()}));returnn.finally((()=>{s()}))})(a,n.options,l),p={isCanceled:!1};a.kill=lr.bind(null,a.kill.bind(a)),a.cancel=fr.bind(null,a,p);constd=kt((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:o},c,l,d]=await(async({stdout:e,stderr:t,all:r},{encoding:o,buffer:n,maxBuffer:s},i)=>{consta=Or(e,{encoding:o,buffer:n,maxBuffer:s}),c=Or(t,{encoding:o,buffer:n,maxBuffer:s}),l=Or(r,{encoding:o,buffer:n,maxBuffer:2*s});try{returnawaitPromise.all([i,a,c,l])}catch(o){returnPromise.all([{error:o,signal:o.signal,tim