functione(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}functiont(e){returne&&e.__esModule?e.default:e}functionr(e,t,o){if("function"==typeoft&&(o=t,t={}),!o){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise(((o,i)=>{r(e,t||{},((e,t)=>{e?i(e):o(t)}))}))}mt(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),o(e,r)}))}functiono(e,r,o){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeofxt)return{binDir:xt};consti=t(pt).sync("brew",{nothrow:!0});returnnull!==i?(xt=$gCrli$dirname(i),{binDir:xt}):($gCrli$execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),xt="/usr/local/bin/",{binDir:xt})}functioni(e,t){constr=e.options.env||process.env,o=process.cwd(),i=null!=e.options.cwd,n=i&&void0!==process.chdir&&!process.chdir.disabled;if(n)try{process.chdir(e.options.cwd)}catch(e){}lets;try{s=pt.sync(e.command,{path:r[_t({env:r})],pathExt:t?$gCrli$delimiter:void0})}catch(e){}finally{n&&process.chdir(o)}returns&&(s=$gCrli$resolve(i?e.options.cwd:"",s)),s}functionn(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args})}functions(e,t){returnDt&&1===e&&!t.file?n(t.original,"spawn"):null}functiona(e,t,r){consto=Ct(e,t,r),i=$gCrli$spawn(o.command,o.args,o.options);returnjt.hookChildProcess(i,o),i}asyncfunctionl(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,o=Lr(t);returnawaitnewPromise(((t,i)=>{constn=e=>{e&&o.getBufferedLength()<=jr.MAX_LENGTH&&(e.bufferedData=o.getBufferedValue()),i(e)};(async()=>{try{awaitUr(e,o),t()}catch(e){n(e)}})(),o.on("data",(()=>{o.getBufferedLength()>r&&n(newFr)}))})),o.getBufferedValue()}functionc(){return(!!process.env.CI||0===(null===(e=process.getuid)||void0===e?void0:e.call(process)))&&null!==t(pt).sync("sudo",{nothrow:!0});vare}functionu(e,r=[],o={stdio:"inherit",shell:!0}){returnc()?t(Et).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),o):t(Et).sync(e,r,o)}functiond(e){returnc()&&"string"==typeofprocess.env.SUDO_USER?"darwin"===process.platform?$gCrli$join("/Users/",process.env.SUDO_USER,e):$gCrli$join("/home/",process.env.SUDO_USER,e):t(po)("~/"+e)}functionp(e,r=["-NoProfile","-NoLogo","-NonInteractive"],o={stdio:"inherit"}){returnt(Et)((()=>{if(void0===go){conste=t(pt).sync("pwsh",{nothrow:!0});null!==e&&(go=e);constr=t(pt).sync("powershell",{nothrow:!0});null!==r&&(go=r)}if(void0===go)throwError("Could not find powershell");returngo})(),[...r,"-c",e],o)}asyncfunctionh(e,r,o=!1){consti=o?t(vo)(null!=r?r:""):r;try{if("github-actions"===t(ho)())try{(0,dt.exportVariable)(e,i)}catch(t){(0,mo.error)(t),awaitm(e,i)}elseawaitm(e,i)}catch(t){(0,mo.error)(t),(0,dt.setFailed)(`Failed to export environment variable ${e}=${i}. You should add it manually.`)}}asyncfunctionf(e){process.env.PATH=`${e}${$gCrli$delimiter}${process.env.PATH}`;try{if("github-actions"===t(ho)())try{(0,dt.addPath)(e)}catch(t){(0,mo.error)(t),awaitg(e)}elseawaitg(e)}catch(t){(0,mo.error)(t),(0,dt.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`)}}asyncfunctionm(e,t){constr=null!=t?t:"";switch(process.platform){case"win32":returnawaitp(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void(0,dt.info)(`${e}='${r}' was set in the environment.`);case"linux":case"darwin":returnv(),$gCrli$appendFileSync(bo,`\nexport ${e}="${r}"\n`),void(0,dt.info)(`${e}="${r}" was added to "${bo}`)}process.env[e]=r}asyncfunctiong(e){switch(process.platform){case"win32":returnawaitp(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void(0,dt.info)(`"${e}" was added to the PATH.`);case"linux":case"darwin":returnv(),$gCrli$appendFileSync(bo,`\nexport PATH="${e}:$PATH"\n`),void(0,dt.info)(`"${e}" was added to "${bo}