imba
Version:
16 lines • 404 kB
JavaScript
var wh=Object.create;var Zr=Object.defineProperty;var xh=Object.getOwnPropertyDescriptor;var _h=Object.getOwnPropertyNames;var kh=Object.getPrototypeOf,Sh=Object.prototype.hasOwnProperty;var Eh=(t,e,r)=>e in t?Zr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Oh=(t,e)=>{for(var r in e)Zr(t,r,{get:e[r],enumerable:!0})},Ih=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of _h(e))!Sh.call(t,a)&&a!==r&&Zr(t,a,{get:()=>e[a],enumerable:!(n=xh(e,a))||n.enumerable});return t};var ne=(t,e,r)=>(r=t!=null?wh(kh(t)):{},Ih(e||!t||!t.__esModule?Zr(r,"default",{value:t,enumerable:!0}):r,t));var te=(t,e,r)=>Eh(t,typeof e!="symbol"?e+"":e,r);var Ta=Y((j0,Pa)=>{(()=>{var t={2980:(n,a,i)=>{"use strict";i(7360),i(5888),i(8412),i(3852),i(5584);var o=i(9892),s=i(5008),l=i(5088),c=i(224);function u(f,h){(h=h||{}).clipboard&&console.log(`
*** Clipboard option removed - use clipboardy or clipboard-cli directly ***
`);var p=Object.keys(f).length>0?f:l.defaults,d=Object.entries(p).reduce(function(k,v){var E=v[0],y=v[1],m=o[`get${E}`];return m?(y&&k.push(m(y,h)),k):k=k.concat((y||[]).map(function(b){var g=o[`get${b.replace(/\s/g,"")}Info`];return g?g():Promise.resolve(["Unknown"])}))},[]);return Promise.all(d).then(function(k){var v=k.reduce(function(E,y){return y&&y[0]&&Object.assign(E,{[y[0]]:y}),E},{});return function(E,y){var m=y.json?s.json:y.markdown?s.markdown:s.yaml;if(y.console){var b=!1;process.stdout.isTTY&&(b=!0),console.log(m(E,Object.assign({},y,{console:b})))}return m(E,Object.assign({},y,{console:!1}))}(Object.entries(l.defaults).reduce(function(E,y){var m=y[0],b=y[1];return v[m]?Object.assign(E,{[m]:v[m][1]}):Object.assign(E,{[m]:(b||[]).reduce(function(g,w){return v[w]?(v[w].shift(),v[w].length===1?Object.assign(g,{[w]:v[w][0]}):Object.assign(g,{[w]:{version:v[w][0],path:v[w][1]}})):g},{})})},{}),h)})}n.exports={cli:function(f){if(f.all)return u(Object.assign({},l.defaults,{npmPackages:!0,npmGlobalPackages:!0}),f);if(f.raw)return u(JSON.parse(f.raw),f);if(f.helper){var h=o[`get${f.helper}`]||o[`get${f.helper}Info`]||o[f.helper];return h?h().then(console.log):console.error("Not Found")}var p=function(v,E){return v.toLowerCase().includes(E.toLowerCase())},d=Object.keys(f).filter(function(v){return Object.keys(l.defaults).some(function(E){return p(E,v)})}),k=Object.entries(l.defaults).reduce(function(v,E){return d.some(function(y){return p(y,E[0])})?Object.assign(v,{[E[0]]:E[1]||f[E[0]]}):v},{});return f.preset?l[f.preset]?u(Object.assign({},c.omit(l[f.preset],["options"]),k),Object.assign({},l[f.preset].options,c.pick(f,["duplicates","fullTree","json","markdown","console"]))):console.error(`
No "${f.preset}" preset found.`):u(k,f)},helpers:o,main:u,run:function(f,h){return typeof f.preset=="string"?u(l[f.preset],h):u(f,h)}}},5008:(n,a,i)=>{"use strict";i(223),i(3852),i(4880),i(3708),i(5584),i(5308);var o=i(6232),s=i(224);function l(y,m){return s.log("trace","clean",y),Object.keys(y).reduce(function(b,g){return!m.showNotFound&&y[g]==="Not Found"||y[g]==="N/A"||y[g]===void 0||Object.keys(y[g]).length===0?b:s.isObject(y[g])?Object.values(y[g]).every(function(w){return w==="N/A"||!m.showNotFound&&w==="Not Found"})?b:Object.assign(b,{[g]:l(y[g],m)}):Object.assign(b,{[g]:y[g]})},{})}function c(y,m){s.log("trace","formatHeaders"),m||(m={type:"underline"});var b={underline:["\x1B[4m","\x1B[0m"]};return y.slice().split(`
`).map(function(g){if(g.slice("-1")===":"){var w=g.match(/^[\s]*/g)[0];return`${w}${b[m.type][0]}${g.slice(w.length)}${b[m.type][1]}`}return g}).join(`
`)}function u(y){return s.log("trace","formatPackages"),y.npmPackages?Object.assign(y,{npmPackages:Object.entries(y.npmPackages||{}).reduce(function(m,b){var g=b[0],w=b[1];if(w==="Not Found")return Object.assign(m,{[g]:w});var _=w.wanted?`${w.wanted} =>`:"",S=Array.isArray(w.installed)?w.installed.join(", "):w.installed,x=w.duplicates?`(${w.duplicates.join(", ")})`:"";return Object.assign(m,{[g]:`${_} ${S} ${x}`})},{})}):y}function f(y,m,b){return b||(b={emptyMessage:"None"}),Array.isArray(m)&&(m=m.length>0?m.join(", "):b.emptyMessage),{[y]:m}}function h(y,m){return Object.entries(y).reduce(function(b,g){var w=g[0],_=g[1];return s.isObject(_)?Object.assign(b,{[w]:h(_,m)}):Object.assign(b,m(w,_))},{})}function p(y){return s.log("trace","serializeArrays"),h(y,f)}function d(y){return s.log("trace","serializeVersionsAndPaths"),Object.entries(y).reduce(function(m,b){return Object.assign(m,{[b[0]]:Object.entries(b[1]).reduce(function(g,w){var _=w[0],S=w[1];return S.version?Object.assign(g,{[_]:[S.version,S.path].filter(Boolean).join(" - ")}):Object.assign(g,{[_]:[S][0]})},{})},{})},{})}function k(y){return o(y,{indent:" ",prefix:`
`,postfix:`
`})}function v(y){return y.slice().split(`
`).map(function(m){if(m!==""){var b=m.slice("-1")===":",g=m.search(/\S|$/);return b?`${"#".repeat(g/2+1)} `+m.slice(g):" - "+m.slice(g)}return""}).join(`
`)}function E(y,m){return m||(m={indent:" "}),JSON.stringify(y,null,m.indent)}n.exports={json:function(y,m){return s.log("trace","formatToJson"),m||(m={}),y=s.pipe([function(){return l(y,m)},m.title?function(b){return{[m.title]:b}}:s.noop,E])(y),y=m.console?`
${y}
`:y},markdown:function(y,m){return s.log("trace","formatToMarkdown"),s.pipe([function(){return l(y,m)},u,p,d,k,v,m.title?function(b){return`
# ${m.title}${b}`}:s.noop])(y,m)},yaml:function(y,m){return s.log("trace","formatToYaml",m),s.pipe([function(){return l(y,m)},u,p,d,m.title?function(b){return{[m.title]:b}}:s.noop,k,m.console?c:s.noop])(y,m)}}},6732:(n,a,i)=>{"use strict";i(5888);var o=i(224);n.exports={getNodeInfo:function(){return o.log("trace","getNodeInfo"),Promise.all([o.isWindows?o.run("node -v").then(o.findVersion):o.which("node").then(function(s){return s?o.run(s+" -v"):Promise.resolve("")}).then(o.findVersion),o.which("node").then(o.condensePath)]).then(function(s){return o.determineFound("Node",s[0],s[1])})},getnpmInfo:function(){return o.log("trace","getnpmInfo"),Promise.all([o.run("npm -v"),o.which("npm").then(o.condensePath)]).then(function(s){return o.determineFound("npm",s[0],s[1])})},getWatchmanInfo:function(){return o.log("trace","getWatchmanInfo"),Promise.all([o.which("watchman").then(function(s){return s?o.run(s+" -v"):void 0}),o.which("watchman")]).then(function(s){return o.determineFound("Watchman",s[0],s[1])})},getYarnInfo:function(){return o.log("trace","getYarnInfo"),Promise.all([o.run("yarn -v"),o.which("yarn").then(o.condensePath)]).then(function(s){return o.determineFound("Yarn",s[0],s[1])})},getpnpmInfo:function(){return o.log("trace","getpnpmInfo"),Promise.all([o.run("pnpm -v"),o.which("pnpm").then(o.condensePath)]).then(function(s){return o.determineFound("pnpm",s[0],s[1])})},getbunInfo:function(){return o.log("trace","getbunInfo"),Promise.all([o.run("bun -v"),o.which("bun").then(o.condensePath)]).then(function(s){return o.determineFound("bun",s[0],s[1])})}}},2524:(n,a,i)=>{"use strict";i(3708),i(5888),i(8412);var o=i(2058),s=i(8558),l=i(224),c=i(7072);function u(f,h){var p;return(l.isLinux?l.run("firefox --version").then(function(d){return d.replace(/^.* ([^ ]*)/g,"$1")}):l.isMacOS&&typeof f=="string"&&f?l.getDarwinApplicationVersion(f):l.isWindows&&typeof h=="string"&&h?l.windowsExeExists(h).then(function(d){return p=d,d?l.run(`powershell ". '${d}' -v | Write-Output"`).then(function(k){return l.findVersion(k)}):l.NA}):Promise.resolve(l.NA)).then(function(d){return l.determineFound("Firefox",d,p||l.NA)})}n.exports={getBraveBrowserInfo:function(){return l.log("trace","getBraveBrowser"),(l.isLinux?l.run("brave --version || brave-browser --version").then(function(f){return f.replace(/^.* ([^ ]*)/g,"$1")}):l.isMacOS?l.getDarwinApplicationVersion(l.browserBundleIdentifiers["Brave Browser"]).then(l.findVersion):Promise.resolve("N/A")).then(function(f){return l.determineFound("Brave Browser",f,"N/A")})},getChromeInfo:function(){var f;if(l.log("trace","getChromeInfo"),l.isLinux)f=l.run("google-chrome --version").then(function(p){return p.replace(" dev","").replace(/^.* ([^ ]*)/g,"$1")});else if(l.isMacOS)f=l.getDarwinApplicationVersion(l.browserBundleIdentifiers.Chrome).then(l.findVersion);else if(l.isWindows){var h;try{h=l.findVersion(o.readdirSync(c.join(process.env["ProgramFiles(x86)"],"Google/Chrome/Application")).join(`
`))}catch{h=l.NotFound}f=Promise.resolve(h)}else f=Promise.resolve("N/A");return f.then(function(p){return l.determineFound("Chrome",p,"N/A")})},getChromeCanaryInfo:function(){return l.log("trace","getChromeCanaryInfo"),l.getDarwinApplicationVersion(l.browserBundleIdentifiers["Chrome Canary"]).then(function(f){return l.determineFound("Chrome Canary",f,"N/A")})},getChromiumInfo:function(){return l.log("trace","getChromiumInfo"),(l.isLinux?l.run("chromium --version").then(l.findVersion):Promise.resolve("N/A")).then(function(f){return l.determineFound("Chromium",f,"N/A")})},getEdgeInfo:function(){var f;if(l.log("trace","getEdgeInfo"),l.isWindows&&s.release().split(".")[0]==="10"){var h={Spartan:"Microsoft.MicrosoftEdge",Chromium:"Microsoft.MicrosoftEdge.Stable",ChromiumDev:"Microsoft.MicrosoftEdge.Dev"};f=Promise.all(Object.keys(h).map(function(p){return function(d,k){return l.run(`powershell get-appxpackage ${d}`).then(function(v){if(l.findVersion(v)!=="")return`${k} (${l.findVersion(v)})`})}(h[p],p)}).filter(function(p){return p!==void 0}))}else{if(!l.isMacOS)return Promise.resolve("N/A");f=l.getDarwinApplicationVersion(l.browserBundleIdentifiers["Microsoft Edge"])}return f.then(function(p){return l.determineFound("Edge",Array.isArray(p)?p.filter(function(d){return d!==void 0}):p,l.NA)})},getFirefoxInfo:function(){l.log("trace","getFirefoxInfo"),u(l.browserBundleIdentifiers.Firefox,"Mozilla Firefox/firefox.exe")},getFirefoxDeveloperEditionInfo:function(){l.log("trace","getFirefoxDeveloperEditionInfo"),u(l.browserBundleIdentifiers["Firefox Developer Edition"],"Firefox Developer Edition/firefox.exe")},getFirefoxNightlyInfo:function(){return l.log("trace","getFirefoxNightlyInfo"),(l.isLinux?l.run("firefox-trunk --version").then(function(f){return f.replace(/^.* ([^ ]*)/g,"$1")}):l.isMacOS?l.getDarwinApplicationVersion(l.browserBundleIdentifiers["Firefox Nightly"]):Promise.resolve("N/A")).then(function(f){return l.determineFound("Firefox Nightly",f,"N/A")})},getInternetExplorerInfo:function(){var f;if(l.log("trace","getInternetExplorerInfo"),l.isWindows){var h=[process.env.SYSTEMDRIVE||"C:","Program Files","Internet Explorer","iexplore.exe"].join("\\\\");f=l.run(`wmic datafile where "name='${h}'" get Version`).then(l.findVersion)}else f=Promise.resolve("N/A");return f.then(function(p){return l.determineFound("Internet Explorer",p,"N/A")})},getSafariTechnologyPreviewInfo:function(){return l.log("trace","getSafariTechnologyPreviewInfo"),l.getDarwinApplicationVersion(l.browserBundleIdentifiers["Safari Technology Preview"]).then(function(f){return l.determineFound("Safari Technology Preview",f,"N/A")})},getSafariInfo:function(){return l.log("trace","getSafariInfo"),l.getDarwinApplicationVersion(l.browserBundleIdentifiers.Safari).then(function(f){return l.determineFound("Safari",f,"N/A")})}}},6620:(n,a,i)=>{"use strict";i(7360),i(5888);var o=i(224);n.exports={getMongoDBInfo:function(){return o.log("trace","getMongoDBInfo"),Promise.all([o.run("mongo --version").then(o.findVersion),o.which("mongo")]).then(function(s){return o.determineFound("MongoDB",s[0],s[1])})},getMySQLInfo:function(){return o.log("trace","getMySQLInfo"),Promise.all([o.run("mysql --version").then(function(s){return`${o.findVersion(s,null,1)}${s.includes("MariaDB")?" (MariaDB)":""}`}),o.which("mysql")]).then(function(s){return o.determineFound("MySQL",s[0],s[1])})},getPostgreSQLInfo:function(){return o.log("trace","getPostgreSQLInfo"),Promise.all([o.run("postgres --version").then(o.findVersion),o.which("postgres")]).then(function(s){return o.determineFound("PostgreSQL",s[0],s[1])})},getSQLiteInfo:function(){return o.log("trace","getSQLiteInfo"),Promise.all([o.run("sqlite3 --version").then(o.findVersion),o.which("sqlite3")]).then(function(s){return o.determineFound("SQLite",s[0],s[1])})}}},3224:(n,a,i)=>{"use strict";i(3708),i(8412),i(5888);var o=i(7072),s=i(224);n.exports={getAndroidStudioInfo:function(){var l=Promise.resolve("N/A");if(s.isMacOS){var c=[o.join("/","Applications","Android Studio.app","Contents","Info.plist"),o.join(process.env.HOME,"Applications","Android Studio.app","Contents","Info.plist"),o.join("/","Applications","JetBrains Toolbox","Android Studio.app","Contents","Info.plist"),o.join(process.env.HOME,"Applications","JetBrains Toolbox","Android Studio.app","Contents","Info.plist")];l=Promise.all(c.map(function(u){return s.fileExists(u).then(function(f){if(!f)return null;var h=s.generatePlistBuddyCommand(u.replace(/ /g,"\\ "),["CFBundleShortVersionString","CFBundleVersion"]);return s.run(h).then(function(p){return p.split(`
`).join(" ")})})})).then(function(u){return u.find(function(f){return f!==null})||s.NotFound})}else s.isLinux?l=Promise.all([s.run('cat /opt/android-studio/bin/studio.sh | grep "$Home/.AndroidStudio" | head -1').then(s.findVersion),s.run("cat /opt/android-studio/build.txt")]).then(function(u){return`${u[0]} ${u[1]}`.trim()||s.NotFound}):s.isWindows&&(l=Promise.all([s.run('wmic datafile where name="C:\\\\Program Files\\\\Android\\\\Android Studio\\\\bin\\\\studio.exe" get Version').then(function(u){return u.replace(/(\r\n|\n|\r)/gm,"")}),s.run('type "C:\\\\Program Files\\\\Android\\\\Android Studio\\\\build.txt"').then(function(u){return u.replace(/(\r\n|\n|\r)/gm,"")})]).then(function(u){return`${u[0]} ${u[1]}`.trim()||s.NotFound}));return l.then(function(u){return s.determineFound("Android Studio",u)})},getAtomInfo:function(){return s.log("trace","getAtomInfo"),Promise.all([s.getDarwinApplicationVersion(s.ideBundleIdentifiers.Atom),"N/A"]).then(function(l){return s.determineFound("Atom",l[0],l[1])})},getEmacsInfo:function(){return s.log("trace","getEmacsInfo"),s.isMacOS||s.isLinux?Promise.all([s.run("emacs --version").then(s.findVersion),s.run("which emacs")]).then(function(l){return s.determineFound("Emacs",l[0],l[1])}):Promise.resolve(["Emacs","N/A"])},getIntelliJInfo:function(){return s.log("trace","getIntelliJInfo"),s.getDarwinApplicationVersion(s.ideBundleIdentifiers.IntelliJ).then(function(l){return s.determineFound("IntelliJ",l)})},getNanoInfo:function(){return s.log("trace","getNanoInfo"),s.isLinux?Promise.all([s.run("nano --version").then(s.findVersion),s.run("which nano")]).then(function(l){return s.determineFound("Nano",l[0],l[1])}):Promise.resolve(["Nano","N/A"])},getNvimInfo:function(){return s.log("trace","getNvimInfo"),s.isMacOS||s.isLinux?Promise.all([s.run("nvim --version").then(s.findVersion),s.run("which nvim")]).then(function(l){return s.determineFound("Nvim",l[0],l[1])}):Promise.resolve(["Vim","N/A"])},getPhpStormInfo:function(){return s.log("trace","getPhpStormInfo"),s.getDarwinApplicationVersion(s.ideBundleIdentifiers.PhpStorm).then(function(l){return s.determineFound("PhpStorm",l)})},getSublimeTextInfo:function(){return s.log("trace","getSublimeTextInfo"),Promise.all([s.run("subl --version").then(function(l){return s.findVersion(l,/\d+/)}),s.which("subl")]).then(function(l){return l[0]===""&&s.isMacOS?(s.log("trace","getSublimeTextInfo using plist"),Promise.all([s.getDarwinApplicationVersion(s.ideBundleIdentifiers["Sublime Text"]),"N/A"])):l}).then(function(l){return s.determineFound("Sublime Text",l[0],l[1])})},getVimInfo:function(){return s.log("trace","getVimInfo"),s.isMacOS||s.isLinux?Promise.all([s.run("vim --version").then(s.findVersion),s.run("which vim")]).then(function(l){return s.determineFound("Vim",l[0],l[1])}):Promise.resolve(["Vim","N/A"])},getVSCodeInfo:function(){return s.log("trace","getVSCodeInfo"),Promise.all([s.run("code --version").then(s.findVersion),s.which("code")]).then(function(l){return s.determineFound("VSCode",l[0],l[1])})},getVisualStudioInfo:function(){return s.log("trace","getVisualStudioInfo"),s.isWindows?s.run(`"${process.env["ProgramFiles(x86)"]}/Microsoft Visual Studio/Installer/vswhere.exe" -format json -prerelease`).then(function(l){var c=JSON.parse(l).map(function(u){return{Version:u.installationVersion,DisplayName:u.displayName}});return s.determineFound("Visual Studio",c.map(function(u){return`${u.Version} (${u.DisplayName})`}))}).catch(function(){return Promise.resolve(["Visual Studio",s.NotFound])}):Promise.resolve(["Visual Studio",s.NA])},getWebStormInfo:function(){return s.log("trace","getWebStormInfo"),s.getDarwinApplicationVersion(s.ideBundleIdentifiers.WebStorm).then(function(l){return s.determineFound("WebStorm",l)})},getXcodeInfo:function(){return s.log("trace","getXcodeInfo"),s.isMacOS?Promise.all([s.which("xcodebuild").then(function(l){return s.run(l+" -version")}).then(function(l){return`${s.findVersion(l)}/${l.split("Build version ")[1]}`}),s.which("xcodebuild")]).then(function(l){return s.determineFound("Xcode",l[0],l[1])}):Promise.resolve(["Xcode","N/A"])}}},9892:(n,a,i)=>{"use strict";function o(g,w,_){return w in g?Object.defineProperty(g,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[w]=_,g}i(5584);var s=i(6304),l=i(224),c=i(6732),u=i(2524),f=i(6620),h=i(3224),p=i(6436),d=i(760),k=i(2060),v=i(7508),E=i(9284),y=i(8144),m=i(5882),b=i(9676);n.exports=Object.assign({},l,s,function(g){for(var w=1;w<arguments.length;w++){var _=arguments[w]!=null?arguments[w]:{},S=Object.keys(_);typeof Object.getOwnPropertySymbols=="function"&&(S=S.concat(Object.getOwnPropertySymbols(_).filter(function(x){return Object.getOwnPropertyDescriptor(_,x).enumerable}))),S.forEach(function(x){o(g,x,_[x])})}return g}({},c,u,f,h,p,d,k,v,E,y,m,b))},6436:(n,a,i)=>{"use strict";i(5888);var o=i(224);n.exports={getBashInfo:function(){return o.log("trace","getBashInfo"),Promise.all([o.run("bash --version").then(o.findVersion),o.which("bash")]).then(function(s){return o.determineFound("Bash",s[0],s[1])})},getElixirInfo:function(){return o.log("trace","getElixirInfo"),Promise.all([o.run("elixir --version").then(function(s){return o.findVersion(s,/[Elixir]+\s([\d+.[\d+|.]+)/,1)}),o.which("elixir")]).then(function(s){return Promise.resolve(o.determineFound("Elixir",s[0],s[1]))})},getErlangInfo:function(){return o.log("trace","getErlangInfo"),Promise.all([o.run(`erl -eval "{ok, Version} = file:read_file(filename:join([code:root_dir(), 'releases', erlang:system_info(otp_release), 'OTP_VERSION'])), io:fwrite(Version), halt()." -noshell`).then(o.findVersion),o.which("erl")]).then(function(s){return Promise.resolve(o.determineFound("Erlang",s[0],s[1]))})},getGoInfo:function(){return o.log("trace","getGoInfo"),Promise.all([o.run("go version").then(o.findVersion),o.which("go")]).then(function(s){return o.determineFound("Go",s[0],s[1])})},getJavaInfo:function(){return o.log("trace","getJavaInfo"),Promise.all([o.run("javac -version",{unify:!0}).then(function(s){return o.findVersion(s,/\d+\.[\w+|.|_|-]+/)}),o.run("which javac")]).then(function(s){return o.determineFound("Java",s[0],s[1])})},getPerlInfo:function(){return o.log("trace","getPerlInfo"),Promise.all([o.run("perl -v").then(o.findVersion),o.which("perl")]).then(function(s){return o.determineFound("Perl",s[0],s[1])})},getPHPInfo:function(){return o.log("trace","getPHPInfo"),Promise.all([o.run("php -v").then(o.findVersion),o.which("php")]).then(function(s){return o.determineFound("PHP",s[0],s[1])})},getProtocInfo:function(){return o.log("trace","getProtocInfo"),Promise.all([o.run("protoc --version").then(o.findVersion),o.run("which protoc")]).then(function(s){return o.determineFound("Protoc",s[0],s[1])})},getPythonInfo:function(){return o.log("trace","getPythonInfo"),Promise.all([o.run("python -V 2>&1").then(o.findVersion),o.run("which python")]).then(function(s){return o.determineFound("Python",s[0],s[1])})},getPython3Info:function(){return o.log("trace","getPython3Info"),Promise.all([o.run("python3 -V 2>&1").then(o.findVersion),o.run("which python3")]).then(function(s){return o.determineFound("Python3",s[0],s[1])})},getRInfo:function(){return o.log("trace","getRInfo"),Promise.all([o.run("R --version",{unify:!0}).then(o.findVersion),o.which("R")]).then(function(s){return o.determineFound("R",s[0],s[1])})},getRubyInfo:function(){return o.log("trace","getRubyInfo"),Promise.all([o.run("ruby -v").then(o.findVersion),o.which("ruby")]).then(function(s){return o.determineFound("Ruby",s[0],s[1])})},getRustInfo:function(){return o.log("trace","getRustInfo"),Promise.all([o.run("rustc --version").then(o.findVersion),o.run("which rustc")]).then(function(s){return o.determineFound("Rust",s[0],s[1])})},getScalaInfo:function(){return o.log("trace","getScalaInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("scalac -version").then(o.findVersion),o.run("which scalac")]).then(function(s){return o.determineFound("Scala",s[0],s[1])}):Promise.resolve(["Scala","N/A"])}}},760:(n,a,i)=>{"use strict";i(5888);var o=i(224);n.exports={getAptInfo:function(){return o.log("trace","getAptInfo"),o.isLinux?Promise.all([o.run("apt --version").then(o.findVersion),o.which("apt")]).then(function(s){return o.determineFound("Apt",s[0],s[1])}):Promise.all(["Apt","N/A"])},getCargoInfo:function(){return o.log("trace","getCargoInfo"),Promise.all([o.run("cargo --version").then(o.findVersion),o.which("cargo").then(o.condensePath)]).then(function(s){return o.determineFound("Cargo",s[0],s[1])})},getCocoaPodsInfo:function(){return o.log("trace","getCocoaPodsInfo"),o.isMacOS?Promise.all([o.run("pod --version").then(o.findVersion),o.which("pod")]).then(function(s){return o.determineFound("CocoaPods",s[0],s[1])}):Promise.all(["CocoaPods","N/A"])},getComposerInfo:function(){return o.log("trace","getComposerInfo"),Promise.all([o.run("composer --version").then(o.findVersion),o.which("composer").then(o.condensePath)]).then(function(s){return o.determineFound("Composer",s[0],s[1])})},getGradleInfo:function(){return o.log("trace","getGradleInfo"),Promise.all([o.run("gradle --version").then(o.findVersion),o.which("gradle").then(o.condensePath)]).then(function(s){return o.determineFound("Gradle",s[0],s[1])})},getHomebrewInfo:function(){return o.log("trace","getHomebrewInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("brew --version").then(o.findVersion),o.which("brew")]).then(function(s){return o.determineFound("Homebrew",s[0],s[1])}):Promise.all(["Homebrew","N/A"])},getMavenInfo:function(){return o.log("trace","getMavenInfo"),Promise.all([o.run("mvn --version").then(o.findVersion),o.which("mvn").then(o.condensePath)]).then(function(s){return o.determineFound("Maven",s[0],s[1])})},getpip2Info:function(){return o.log("trace","getpip2Info"),Promise.all([o.run("pip2 --version").then(o.findVersion),o.which("pip2").then(o.condensePath)]).then(function(s){return o.determineFound("pip2",s[0],s[1])})},getpip3Info:function(){return o.log("trace","getpip3Info"),Promise.all([o.run("pip3 --version").then(o.findVersion),o.which("pip3").then(o.condensePath)]).then(function(s){return o.determineFound("pip3",s[0],s[1])})},getRubyGemsInfo:function(){return o.log("trace","getRubyGemsInfo"),Promise.all([o.run("gem --version").then(o.findVersion),o.which("gem")]).then(function(s){return o.determineFound("RubyGems",s[0],s[1])})},getYumInfo:function(){return o.log("trace","getYumInfo"),o.isLinux?Promise.all([o.run("yum --version").then(o.findVersion),o.which("yum")]).then(function(s){return o.determineFound("Yum",s[0],s[1])}):Promise.all(["Yum","N/A"])}}},2060:(n,a,i)=>{"use strict";i(5888);var o=i(224),s=i(7072);n.exports={getYarnWorkspacesInfo:function(){return o.log("trace","getYarnWorkspacesInfo"),Promise.all([o.run("yarn -v"),o.getPackageJsonByPath("package.json").then(function(l){return l&&"workspaces"in l})]).then(function(l){var c="Yarn Workspaces";return l[0]&&l[1]?Promise.resolve([c,l[0]]):Promise.resolve([c,"Not Found"])})},getLernaInfo:function(){return o.log("trace","getLernaInfo"),Promise.all([o.getPackageJsonByName("lerna").then(function(l){return l&&l.version}),o.fileExists(s.join(process.cwd(),"lerna.json"))]).then(function(l){var c="Lerna";return l[0]&&l[1]?Promise.resolve([c,l[0]]):Promise.resolve([c,"Not Found"])})}}},7508:(n,a,i)=>{"use strict";i(4880),i(5888),i(3708);var o=i(2058),s=i(7072),l=i(224);n.exports={getAndroidSDKInfo:function(){return l.run("sdkmanager --list").then(function(c){return!c&&process.env.ANDROID_HOME?l.run(`${process.env.ANDROID_HOME}/tools/bin/sdkmanager --list`):c}).then(function(c){return!c&&process.env.ANDROID_HOME?l.run(`${process.env.ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --list`):c}).then(function(c){return!c&&l.isMacOS?l.run("~/Library/Android/sdk/tools/bin/sdkmanager --list"):c}).then(function(c){var u=l.parseSDKManagerOutput(c),f=function(p){var d,k=s.join(p,"source.properties");try{d=o.readFileSync(k,"utf8")}catch(m){if(m.code==="ENOENT")return;throw m}for(var v=d.split(`
`),E=0;E<v.length;E+=1){var y=v[E].split("=");if(y.length===2&&y[0].trim()==="Pkg.Revision")return y[1].trim()}},h=process.env.ANDROID_NDK?f(process.env.ANDROID_NDK):process.env.ANDROID_NDK_HOME?f(process.env.ANDROID_NDK_HOME):process.env.ANDROID_HOME?f(s.join(process.env.ANDROID_HOME,"ndk-bundle")):void 0;return u.buildTools.length||u.apiLevels.length||u.systemImages.length||h?Promise.resolve(["Android SDK",{"API Levels":u.apiLevels||l.NotFound,"Build Tools":u.buildTools||l.NotFound,"System Images":u.systemImages||l.NotFound,"Android NDK":h||l.NotFound}]):Promise.resolve(["Android SDK",l.NotFound])})},getiOSSDKInfo:function(){return l.isMacOS?l.run("xcodebuild -showsdks").then(function(c){return c.match(/[\w]+\s[\d|.]+/g)}).then(l.uniq).then(function(c){return c.length?["iOS SDK",{Platforms:c}]:["iOS SDK",l.NotFound]}):Promise.resolve(["iOS SDK","N/A"])},getWindowsSDKInfo:function(){if(l.log("trace","getWindowsSDKInfo"),l.isWindows){var c=l.NotFound;return l.run("reg query HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppModelUnlock").then(function(u){c=u.split(/[\r\n]/g).slice(1).filter(function(h){return h!==""}).reduce(function(h,p){var d=p.match(/[^\s]+/g);return d[2]!=="0x0"&&d[2]!=="0x1"||(d[2]=d[2]==="0x1"?"Enabled":"Disabled"),h[d[0]]=d[2],h},{}),Object.keys(c).length===0&&(c=l.NotFound);try{var f=o.readdirSync(`${process.env["ProgramFiles(x86)"]}/Windows Kits/10/Platforms/UAP`);c.Versions=f}catch{}return Promise.resolve(["Windows SDK",c])})}return Promise.resolve(["Windows SDK",l.NA])}}},9284:(n,a,i)=>{"use strict";i(5888);var o=i(224);n.exports={getApacheInfo:function(){return o.log("trace","getApacheInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("apachectl -v").then(o.findVersion),o.run("which apachectl")]).then(function(s){return o.determineFound("Apache",s[0],s[1])}):Promise.resolve(["Apache","N/A"])},getNginxInfo:function(){return o.log("trace","getNginxInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("nginx -v 2>&1").then(o.findVersion),o.run("which nginx")]).then(function(s){return o.determineFound("Nginx",s[0],s[1])}):Promise.resolve(["Nginx","N/A"])}}},8144:(n,a,i)=>{"use strict";i(3708),i(4880),i(5888);var o=i(2288),s=i(224),l=i(8558);n.exports={getContainerInfo:function(){return s.log("trace","getContainerInfo"),s.isLinux?Promise.all([s.fileExists("/.dockerenv"),s.readFile("/proc/self/cgroup")]).then(function(c){return s.log("trace","getContainerInfoThen",c),Promise.resolve(["Container",c[0]||c[1]?"Yes":"N/A"])}).catch(function(c){return s.log("trace","getContainerInfoCatch",c)}):Promise.resolve(["Container","N/A"])},getCPUInfo:function(){var c;s.log("trace","getCPUInfo");try{var u=l.cpus();c="("+u.length+") "+l.arch()+" "+u[0].model}catch{c="Unknown"}return Promise.all(["CPU",c])},getMemoryInfo:function(){return s.log("trace","getMemoryInfo"),Promise.all(["Memory",`${s.toReadableBytes(l.freemem())} / ${s.toReadableBytes(l.totalmem())}`])},getOSInfo:function(){var c,u;if(s.log("trace","getOSInfo"),s.isMacOS)c=s.run("sw_vers -productVersion ");else if(s.isLinux)c=s.run("cat /etc/os-release").then(function(h){var p=(h||"").match(/NAME="(.+)"/)||"",d=(h||"").match(/VERSION="(.+)"/)||["",""],k=d!==null?d[1]:"";return`${p[1]} ${k}`.trim()||""});else if(s.isWindows){c=Promise.resolve(l.release());var f=l.release().split(".");f[0]==="10"&&f[1]==="0"&&f[2]>=22e3&&(u="Windows 11")}else c=Promise.resolve();return c.then(function(h){return u=u||o(l.platform(),l.release()),h&&(u+=` ${h}`),["OS",u]})},getShellInfo:function(){if(s.log("trace","getShellInfo",process.env),s.isMacOS||s.isLinux){var c=process.env.SHELL||s.runSync("getent passwd $LOGNAME | cut -d: -f7 | head -1"),u=`${c} --version 2>&1`;return c.match("/bin/ash")&&(u=`${c} --help 2>&1`),Promise.all([s.run(u).then(s.findVersion),s.which(c)]).then(function(f){return s.determineFound("Shell",f[0]||"Unknown",f[1])})}return Promise.resolve(["Shell","N/A"])},getGLibcInfo:function(){return s.log("trace","getGLibc"),s.isLinux?Promise.all([s.run("ldd --version").then(s.findVersion)]).then(function(c){return s.determineFound("GLibc",c[0]||"Unknown")}):Promise.resolve(["GLibc","N/A"])}}},5882:(n,a,i)=>{"use strict";i(5888);var o=i(224);n.exports={getBazelInfo:function(){return o.log("trace","getBazelInfo"),Promise.all([o.run("bazel --version").then(o.findVersion),o.run("which bazel")]).then(function(s){return o.determineFound("Bazel",s[0],s[1])})},getCMakeInfo:function(){return o.log("trace","getCMakeInfo"),Promise.all([o.run("cmake --version").then(o.findVersion),o.run("which cmake")]).then(function(s){return o.determineFound("CMake",s[0],s[1])})},getGCCInfo:function(){return o.log("trace","getGCCInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("gcc -v 2>&1").then(o.findVersion),o.run("which gcc")]).then(function(s){return o.determineFound("GCC",s[0],s[1])}):Promise.resolve(["GCC","N/A"])},getClangInfo:function(){return o.log("trace","getClangInfo"),Promise.all([o.run("clang --version").then(o.findVersion),o.which("clang")]).then(function(s){return o.determineFound("Clang",s[0],s[1])})},getGitInfo:function(){return o.log("trace","getGitInfo"),Promise.all([o.run("git --version").then(o.findVersion),o.run("which git")]).then(function(s){return o.determineFound("Git",s[0],s[1])})},getMakeInfo:function(){return o.log("trace","getMakeInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("make --version").then(o.findVersion),o.run("which make")]).then(function(s){return o.determineFound("Make",s[0],s[1])}):Promise.resolve(["Make","N/A"])},getNinjaInfo:function(){return o.log("trace","getNinjaInfo"),Promise.all([o.run("ninja --version").then(o.findVersion),o.run("which ninja")]).then(function(s){return o.determineFound("Ninja",s[0],s[1])})},getMercurialInfo:function(){return o.log("trace","getMercurialInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("hg --version").then(o.findVersion),o.run("which hg")]).then(function(s){return o.determineFound("Mercurial",s[0],s[1])}):Promise.resolve(["Mercurial","N/A"])},getSubversionInfo:function(){return o.log("trace","getSubversionInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("svn --version").then(o.findVersion),o.run("which svn")]).then(function(s){return o.determineFound("Subversion",s[0],s[1])}):Promise.resolve(["Subversion","N/A"])},getFFmpegInfo:function(){return o.log("trace","getFFmpegInfo"),Promise.all([o.run("ffmpeg -version").then(o.findVersion),o.which("ffmpeg")]).then(function(s){return o.determineFound("FFmpeg",s[0],s[1])})},getCurlInfo:function(){return o.log("trace","getCurlInfo"),Promise.all([o.run("curl --version").then(o.findVersion),o.which("curl")]).then(function(s){return o.determineFound("Curl",s[0],s[1])})},getOpenSSLInfo:function(){return o.log("trace","getOpenSSLInfo"),Promise.all([o.run("openssl version").then(o.findVersion),o.which("openssl")]).then(function(s){return o.determineFound("OpenSSL",s[0],s[1])})}}},9676:(n,a,i)=>{"use strict";i(5888);var o=i(224);n.exports={getDockerInfo:function(){return o.log("trace","getDockerInfo"),Promise.all([o.run("docker --version").then(o.findVersion),o.which("docker")]).then(function(s){return o.determineFound("Docker",s[0],s[1])})},getDockerComposeInfo:function(){return o.log("trace","getDockerComposeInfo"),Promise.all([o.run("docker-compose --version").then(o.findVersion),o.which("docker-compose")]).then(function(s){return o.determineFound("Docker Compose",s[0],s[1])})},getParallelsInfo:function(){return o.log("trace","getParallelsInfo"),Promise.all([o.run("prlctl --version").then(o.findVersion),o.which("prlctl")]).then(function(s){return o.determineFound("Parallels",s[0],s[1])})},getPodmanInfo:function(){return o.log("trace","getPodmanInfo"),Promise.all([o.run("podman --version").then(o.findVersion),o.which("podman")]).then(function(s){return o.determineFound("Podman",s[0],s[1])})},getVirtualBoxInfo:function(){return o.log("trace","getVirtualBoxInfo"),Promise.all([o.run("vboxmanage --version").then(o.findVersion),o.which("vboxmanage")]).then(function(s){return o.determineFound("VirtualBox",s[0],s[1])})},getVMwareFusionInfo:function(){return o.log("trace","getVMwareFusionInfo"),o.getDarwinApplicationVersion("com.vmware.fusion").then(function(s){return o.determineFound("VMWare Fusion",s,"N/A")})}}},6032:n=>{"use strict";n.exports={androidSystemImages:/system-images;([\S \t]+)/g,androidAPILevels:/platforms;android-(\d+)[\S\s]/g,androidBuildTools:/build-tools;([\d|.]+)[\S\s]/g}},6304:(n,a,i)=>{"use strict";i(4880),i(5584),i(5888),i(7360),i(3708);var o=i(808),s=i(7072),l=i(224),c=function(u){var f=u.split("node_modules"+s.sep),h=f[f.length-1];return h.charAt(0)==="@"?[h.split(s.sep)[0],h.split(s.sep)[1]].join("/"):h.split(s.sep)[0]};n.exports={getnpmPackages:function(u,f){l.log("trace","getnpmPackages"),f||(f={});var h=null,p=null;return typeof u=="string"&&(u.includes("*")||u.includes("?")||u.includes("+")||u.includes("!")?h=u:u=u.split(",")),Promise.all(["npmPackages",l.getPackageJsonByPath("package.json").then(function(d){return Object.assign({},(d||{}).devDependencies||{},(d||{}).dependencies||{})}).then(function(d){return p=d,f.fullTree||f.duplicates||h?l.getAllPackageJsonPaths(h):Promise.resolve(Object.keys(d||[]).map(function(k){return s.join("node_modules",k,"package.json")}))}).then(function(d){return!h&&typeof u!="boolean"||f.fullTree?Array.isArray(u)?Promise.resolve((d||[]).filter(function(k){return u.includes(c(k))})):Promise.resolve(d):Promise.resolve((d||[]).filter(function(k){return Object.keys(p||[]).includes(c(k))}))}).then(function(d){return Promise.all([d,Promise.all(d.map(function(k){return l.getPackageJsonByPath(k)}))])}).then(function(d){var k=d[0],v=d[1].reduce(function(E,y,m){return y&&y.name&&(E[y.name]||(E[y.name]={}),f.duplicates&&(E[y.name].duplicates=l.uniq((E[y.name].duplicates||[]).concat(y.version))),(k[m].match(/node_modules/g)||[]).length===1&&(E[y.name].installed=y.version)),E},{});return Object.keys(v).forEach(function(E){v[E].duplicates&&v[E].installed&&(v[E].duplicates=v[E].duplicates.filter(function(y){return y!==v[E].installed})),p[E]&&(v[E].wanted=p[E])}),v}).then(function(d){return f.showNotFound&&Array.isArray(u)&&u.forEach(function(k){d[k]||(d[k]="Not Found")}),d}).then(function(d){return l.sortObject(d)})])},getnpmGlobalPackages:function(u,f){l.log("trace","getnpmGlobalPackages",u);var h=null;return typeof u=="string"?u.includes("*")||u.includes("?")||u.includes("+")||u.includes("!")?h=u:u=u.split(","):Array.isArray(u)||(u=!0),Promise.all(["npmGlobalPackages",l.run("npm get prefix --global").then(function(p){return new Promise(function(d,k){return o(s.join(p,l.isWindows?"":"lib","node_modules",h||"{*,@*/*}","package.json"),function(v,E){v||d(E),k(v)})})}).then(function(p){return Promise.all(p.filter(function(d){return typeof u=="boolean"||h!==null||u.includes(c(d))}).map(function(d){return l.getPackageJsonByFullPath(d)}))}).then(function(p){return p.reduce(function(d,k){return k?Object.assign(d,{[k.name]:k.version}):d},{})}).then(function(p){return f.showNotFound&&Array.isArray(u)&&u.forEach(function(d){p[d]||(p[d]="Not Found")}),p})])}}},5088:n=>{"use strict";n.exports={defaults:{System:["OS","CPU","Memory","Container","Shell"],Binaries:["Node","Yarn","npm","pnpm","bun","Watchman"],Managers:["Apt","Cargo","CocoaPods","Composer","Gradle","Homebrew","Maven","pip2","pip3","RubyGems","Yum"],Utilities:["Bazel","CMake","Make","GCC","Git","Clang","Ninja","Mercurial","Subversion","FFmpeg","Curl","OpenSSL"],Servers:["Apache","Nginx"],Virtualization:["Docker","Docker Compose","Parallels","VirtualBox","VMware Fusion"],SDKs:["iOS SDK","Android SDK","Windows SDK"],IDEs:["Android Studio","Atom","Emacs","IntelliJ","NVim","Nano","PhpStorm","Sublime Text","VSCode","Visual Studio","Vim","WebStorm","Xcode"],Languages:["Bash","Go","Elixir","Erlang","Java","Perl","PHP","Protoc","Python","Python3","R","Ruby","Rust","Scala"],Databases:["MongoDB","MySQL","PostgreSQL","SQLite"],Browsers:["Brave Browser","Chrome","Chrome Canary","Chromium","Edge","Firefox","Firefox Developer Edition","Firefox Nightly","Internet Explorer","Safari","Safari Technology Preview"],Monorepos:["Yarn Workspaces","Lerna"],npmPackages:null,npmGlobalPackages:null},jest:{System:["OS","CPU"],Binaries:["Node","Yarn","npm","pnpm","bun"],npmPackages:["jest"]},"react-native":{System:["OS","CPU"],Binaries:["Node","Yarn","npm","pnpm","bun","Watchman"],SDKs:["iOS SDK","Android SDK","Windows SDK"],IDEs:["Android Studio","Xcode","Visual Studio"],npmPackages:["react","react-native"],npmGlobalPackages:["react-native-cli"]},nyc:{System:["OS","CPU","Memory"],Binaries:["Node","Yarn","npm","pnpm","bun"],npmPackages:"/**/{*babel*,@babel/*/,*istanbul*,nyc,source-map-support,typescript,ts-node}"},webpack:{System:["OS","CPU"],Binaries:["Node","Yarn","npm","pnpm","bun"],npmPackages:"*webpack*",npmGlobalPackages:["webpack","webpack-cli"]},"styled-components":{System:["OS","CPU"],Binaries:["Node","Yarn","npm","pnpm","bun"],Browsers:["Chrome","Firefox","Safari"],npmPackages:"*styled-components*"},"create-react-app":{System:["OS","CPU"],Binaries:["Node","npm","Yarn","pnpm","bun"],Browsers:["Chrome","Edge","Internet Explorer","Firefox","Safari"],npmPackages:["react","react-dom","react-scripts"],npmGlobalPackages:["create-react-app"],options:{duplicates:!0,showNotFound:!0}},apollo:{System:["OS"],Binaries:["Node","npm","Yarn","pnpm","bun"],Browsers:["Chrome","Edge","Firefox","Safari"],npmPackages:"{*apollo*,@apollo/*}",npmGlobalPackages:"{*apollo*,@apollo/*}"},"react-native-web":{System:["OS","CPU"],Binaries:["Node","npm","Yarn","pnpm","bun"],Browsers:["Chrome","Edge","Internet Explorer","Firefox","Safari"],npmPackages:["react","react-native-web"],options:{showNotFound:!0}},babel:{System:["OS"],Binaries:["Node","npm","Yarn","pnpm","bun"],Monorepos:["Yarn Workspaces","Lerna"],npmPackages:"{*babel*,@babel/*,eslint,webpack,create-react-app,react-native,lerna,jest}"},playwright:{System:["OS","CPU","Memory","Container"],Binaries:["Node","Yarn","npm","pnpm","bun"],Languages:["Bash"],IDEs:["VSCode"],npmPackages:"{playwright*,@playwright/*}"}}},224:(n,a,i)=>{"use strict";i(4880),i(4260),i(5584),i(7276),i(4228),i(3708),i(8412),i(5308),i(6568),i(5888);var o=i(7072),s=i(2058),l=i(8558),c=i(4368),u=i(8460),f=i(808),h=i(6032),p=function(g){var w=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).unify,_=w!==void 0&&w;return new Promise(function(S){c.exec(g,{stdio:[0,"pipe","ignore"]},function(x,O,I){var A;A=_?O.toString()+I.toString():O.toString(),S((x?"":A).trim())})})},d=function(g){var w=Object.values(Array.prototype.slice.call(arguments).slice(1));(process.env.ENVINFO_DEBUG||"").toLowerCase()===g&&console.log(g,JSON.stringify(w))},k=function(g){return new Promise(function(w){s.readFile(g,"utf8",function(_,S){return w(S||null)})})},v=function(g){return k(g).then(function(w){return w?JSON.parse(w):null})},E=/\d+\.[\d+|.]+/g,y=function(g){d("trace","findDarwinApplication",g);var w=`mdfind "kMDItemCFBundleIdentifier=='${g}'"`;return d("trace",w),p(w).then(function(_){return _.replace(/(\s)/g,"\\ ")})},m=function(g,w){var _=(w||["CFBundleShortVersionString"]).map(function(S){return"-c Print:"+S});return["/usr/libexec/PlistBuddy"].concat(_).concat([g]).join(" ")},b=function(g,w){for(var _=[],S=null;(S=g.exec(w))!==null;)_.push(S);return _};n.exports={run:p,log:d,fileExists:function(g){return new Promise(function(w){s.stat(g,function(_){return w(_?null:g)})})},windowsExeExists:function(g){return new Promise(function(w){var _;s.access(_=o.join(process.env.ProgramFiles,`${g}`),s.constants.R_OK,function(S){S?s.access(_=o.join(process.env["ProgramFiles(x86)"],`${g}`),s.constants.X_OK,function(x){w(x?null:_)}):w(_)})})},readFile:k,requireJson:v,versionRegex:E,findDarwinApplication:y,generatePlistBuddyCommand:m,matchAll:b,parseSDKManagerOutput:function(g){var w=g.split("Available")[0];return{apiLevels:b(h.androidAPILevels,w).map(function(_){return _[1]}),buildTools:b(h.androidBuildTools,w).map(function(_){return _[1]}),systemImages:b(h.androidSystemImages,w).map(function(_){return _[1].split("|").map(function(S){return S.trim()})}).map(function(_){return _[0].split(";")[0]+" | "+_[2].split(" System Image")[0]})}},isLinux:process.platform==="linux",isMacOS:process.platform==="darwin",NA:"N/A",NotFound:"Not Found",isWindows:process.platform.startsWith("win"),isObject:function(g){return typeof g=="object"&&!Array.isArray(g)},noop:function(g){return g},pipe:function(g){return function(w){return g.reduce(function(_,S){return S(_)},w)}},browserBundleIdentifiers:{"Brave Browser":"com.brave.Browser",Chrome:"com.google.Chrome","Chrome Canary":"com.google.Chrome.canary",Firefox:"org.mozilla.firefox","Firefox Developer Edition":"org.mozilla.firefoxdeveloperedition","Firefox Nightly":"org.mozilla.nightly","Microsoft Edge":"com.microsoft.edgemac",Safari:"com.apple.Safari","Safari Technology Preview":"com.apple.SafariTechnologyPreview"},ideBundleIdentifiers:{Atom:"com.github.atom",IntelliJ:"com.jetbrains.intellij",PhpStorm:"com.jetbrains.PhpStorm","Sublime Text":"com.sublimetext.3",WebStorm:"com.jetbrains.WebStorm"},runSync:function(g){return(c.execSync(g,{stdio:[0,"pipe","ignore"]}).toString()||"").trim()},which:function(g){return new Promise(function(w){return u(g,function(_,S){return w(S)})})},getDarwinApplicationVersion:function(g){var w;return d("trace","getDarwinApplicationVersion",g),w=process.platform!=="darwin"?"N/A":y(g).then(function(_){return p(m(o.join(_,"Contents","Info.plist"),["CFBundleShortVersionString"]))}),Promise.resolve(w)},uniq:function(g){return Array.from(new Set(g))},toReadableBytes:function(g){var w=Math.floor(Math.log(g)/Math.log(1024));return g?(g/Math.pow(1024,w)).toFixed(2)+" "+["B","KB","MB","GB","TB","PB"][w]:"0 Bytes"},omit:function(g,w){return Object.keys(g).filter(function(_){return w.indexOf(_)<0}).reduce(function(_,S){return Object.assign(_,{[S]:g[S]})},{})},pick:function(g,w){return Object.keys(g).filter(function(_){return w.indexOf(_)>=0}).reduce(function(_,S){return Object.assign(_,{[S]:g[S]})},{})},getPackageJsonByName:function(g){return v(o.join(process.cwd(),"node_modules",g,"package.json"))},getPackageJsonByPath:function(g){return v(o.join(process.cwd(),g))},getPackageJsonByFullPath:function(g){return d("trace","getPackageJsonByFullPath",g),v(g)},getAllPackageJsonPaths:function(g){return d("trace","getAllPackageJsonPaths",g),new Promise(function(w){return f(g?o.join("node_modules",g,"package.json"):o.join("node_modules","**","package.json"),function(_,S){return w(S.map(o.normalize)||[])})})},sortObject:function(g){return Object.keys(g).sort().reduce(function(w,_){return w[_]=g[_],w},{})},findVersion:function(g,w,_){d("trace","findVersion",g,w,_);var S=_||0,x=w||E,O=g.match(x);return O?O[S]:g},condensePath:function(g){return(g||"").replace(l.homedir(),"~")},determineFound:function(g,w,_){return d("trace","determineFound",g,w,_),w==="N/A"?Promise.resolve([g,"N/A"]):w&&Object.keys(w).length!==0?_?Promise.resolve([g,w,_]):Promise.resolve([g,w]):Promise.resolve([g,"Not Found"])}}},9016:n=>{"use strict";function a(s,l,c){s instanceof RegExp&&(s=i(s,c)),l instanceof RegExp&&(l=i(l,c));var u=o(s,l,c);return u&&{start:u[0],end:u[1],pre:c.slice(0,u[0]),body:c.slice(u[0]+s.length,u[1]),post:c.slice(u[1]+l.length)}}function i(s,l){var c=l.match(s);return c?c[0]:null}function o(s,l,c){var u,f,h,p,d,k=c.indexOf(s),v=c.indexOf(l,k+1),E=k;if(k>=0&&v>0){for(u=[],h=c.length;E>=0&&!d;)E==k?(u.push(E),k=c.indexOf(s,E+1)):u.length==1?d=[u.pop(),v]:((f=u.pop())<h&&(h=f,p=v),v=c.indexOf(l,E+1)),E=k<v&&k>=0?k:v;u.length&&(d=[h,p])}return d}n.exports=a,a.range=o},1620:(n,a,i)=>{var o=i(6596),s=i(9016);n.exports=function(g){return g?(g.substr(0,2)==="{}"&&(g="\\{\\}"+g.substr(2)),b(function(w){return w.split("\\\\").join(l).split("\\{").join(c).split("\\}").join(u).split("\\,").join(f).split("\\.").join(h)}(g),!0).map(d)):[]};var l="\0SLASH"+Math.random()+"\0",c="\0OPEN"+Math.random()+"\0",u="\0CLOSE"+Math.random()+"\0",f="\0COMMA"+Math.random()+"\0",h="\0PERIOD"+Math.random()+"\0";function p(g){return parseInt(g,10)==g?parseInt(g,10):g.charCodeAt(0)}function d(g){return g.split(l).join("\\").split(c).join("{").split(u).join("}").split(f).join(",").split(h).join(".")}function k(g){if(!g)return[""];var w=[],_=s("{","}",g);if(!_)return g.split(",");var S=_.pre,x=_.body,O=_.post,I=S.split(",");I[I.length-1]+="{"+x+"}";var A=k(O);return O.length&&(I[I.length-1]+=A.shift(),I.push.apply(I,A)),w.push.apply(w,I),w}function v(g){return"{"+g+"}"}function E(g){return/^-?0\d/.test(g)}function y(g,w){return g<=w}function m(g,w){return g>=w}function b(g,w){var _=[],S=s("{","}",g);if(!S||/\$$/.test(S.pre))return[g];var x,O=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(S.body),I=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(S.body),A=O||I,P=S.body.indexOf(",")>=0;if(!A&&!P)return S.post.match(/,.*\}/)?b(g=S.pre+"{"+S.body+u+S.post):[g];if(A)x=S.body.split(/\.\./);else if((x=k(S.body)).length===1&&(x=b(x[0],!1).map(v)).length===1)return(D=S.post.length?b(S.post,!1):[""]).map(function(le){return S.pre+x[0]+le});var C,j=S.pre,D=S.post.length?b(S.post,!1):[""];if(A){var M=p(x[0]),L=p(x[1]),N=Math.max(x[0].length,x[1].length),z=x.length==3?Math.abs(p(x[2])):1,R=y;L<M&&(z*=-1,R=m);var J=x.some(E);C=[];for(var K=M;R(K,L);K+=z){var H;if(I)(H=String.fromCharCode(K))==="\\"&&(H="");else if(H=String(K),J){var de=N-H.length;if(de>0){var qe=new Array(de+1).join("0");H=K<0?"-"+qe+H.slice(1):qe+H}}C.push(H)}}else C=o(x,function(le){return b(le,!1)});for(var B=0;B<C.length;B++)for(var q=0;q<D.length;q++){var Z=j+C[B]+D[q];(!w||A||Z)&&_.push(Z)}return _}},6596:n=>{n.exports=function(i,o){for(var s=[],l=0;l<i.length;l++){var c=o(i[l],l);a(c)?s.push.apply(s,c):s.push(c)}return s};var a=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"}},2016:n=>{n.exports=function(a){if(typeof a!="function")throw TypeError(a+" is not a function!");return a}},7384:(n,a,i)=>{var o=i(7096)("unscopables"),s=Array.prototype;s[o]==null&&i(2336)(s,o,{}),n.exports=function(l){s[o][l]=!0}},2388:n=>{n.exports=function(a,i,o,s){if(!(a instanceof i)||s!==void 0&&s in a)throw TypeError(o+": incorrect invocation!");return a}},3504:(n,a,i)=>{var o=i(3888);n.exports=function(s){if(!o(s))throw TypeError(s+" is not an object!");return s}},7504:(n,a,i)=>{var o=i(2780),s=i(3528),l=i(8508);n.exports=function(c){return function(u,f,h){var p,d=o(u),k=s(d.length),v=l(h,k);if(c&&f!=f){for(;k>v;)if((p=d[v++])!=p)return!0}else for(;k>v;v++)if((c||v in d)&&d[v]===f)return c||v||0;return!c&&-1}}},5848:(n,a,i)=>{var o=i(6924),s=i(7096)("toStringTag"),l=o(function(){return arguments}())=="Arguments";n.exports=function(c){var u,f,h;return c===void 0?"Undefined":c===null?"Null":typeof(f=function(p,d){try{return p[d]}catch{}}(u=Object(c),s))=="string"?f:l?o(u):(h=o(u))=="Object"&&typeof u.callee=="function"?"Arguments":h}},6924:n=>{var a={}.toString;n.exports=function(i){return a.call(i).slice(8,-1)}},148:(n,a,i)=>{"use strict";var o=i(8520).f,s=i(3472),l=i(7704),c=i(800),u=i(2388),f=i(7228),h=i(6952),p=i(172),d=i(3384),k=i(1668),v=i(2020).fastKey,E=i(2772),y=k?"_s":"size",m=function(b,g){var w,_=v(g);if(_!=="F")return b._i[_];for(w=b._f;w;w=w.n)if(w.k==g)return w};n.exports={getConstructor:function(b,g,w,_){var S=b(function(x,O){u(x,S,g,"_i"),x._t=g,x._i=s(null),x._f=void 0,x._l=void 0,x[y]=0,O!=null&&f(O,w,x[_],x)});return l(S.prototype,{clear:function(){for(var x=E(this,g),O=x._i,I=x._f;I;I=I.n)I.r=!0,I.p&&(I.p=I.p.n=void 0),delete O[I.i];x._f=x._l=void 0,x[y]=0},delete:function(x){var O=E(this,g),I=m(O,x);if(I){var A=I.n,P=I.p;delete O._i[I.i],I.r=!0,P&&(P.n=A),A&&(A.p=P),O._f==I&&(O._f=A),O._l==I&&(O._l=P),O[y]--}return!!I},forEach:function(x){E(this,g);for(var O,I=c(x,arguments.length>1?arguments[1]:void 0,3);O=O?O.n:this._f;)for(I(O.v,O.k,this);O&&O.r;)O=O.p},has:function(x){return!!m(E(this,g),x)}}),k&&o(S.prototype,"size",{get:function(){return E(this,g)[y]}}),S},def:function(b,g,w){var _,S,x=m(b,g);return x?x.v=w:(b._l=x={i:S=v(g,!0),k:g,v:w,p:_=b._l,n:void 0,r:!1},b._f||(b._f=x),_&&(_.n=x),b[y]++,S!=="F"&&(b._i[S]=x)),b},getEntry:m,setStrong:function(b,g,w){h(b,g,function(_,S){this._t=E(_,g),this._k=S,this._l=void 0},function(){for(var _=this,S=_._k,x=_._l;x&&x.r;)x=x.p;return _._t&&(_._l=x=x?x.n:_._t._f)?p(0,S=="keys"?x.k:S=="values"?x.v:[x.k,x.v]):(_._t=void 0,p(1))},w?"entries":"values",!w,!0),d(g)}}},9412:(n,a,i)=>{"use strict";var o=i(2804),s=i(7076),l=i(8868),c=i(7704),u=i(2020),f=i(7228),h=i(2388),p=i(3888),d=i(9316),k=i(8380),v=i(6256),E=i(2672);n.exports=function(y,m,b,g,w,_){var S=o[y],x=S,O=w?"set":"add",I=x&&x.prototype,A={},P=function(N){var z=I[N];l(I,N,N=="delete"||N=="has"?function(R){return!(_&&!p(R))&&z.call(this,R===0?0:R)}:N=="get"?function(R){return _&&!p(R)?void 0:z.call(this,R===0?0:R)}:N=="add"?function(R){return z.call(this,R===0?0:R),this}:function(R,J){return z.call(this,R===0?0:R,J),this})};if(typeof x=="function"&&(_||I.forEach&&!d(function(){new x().entries().next()}))){var C=new x,j=C[O](_?{}:-0,1)!=C,D=d(function(){C.has(1)}),M=k(function(N){new x(N)}),L=!_&&d(function(){for(var N=new x,z=5;z--;)N[O](z,z);return!N.has(-0