diff --git a/.all-contributorsrc b/.all-contributorsrc
index 6db82ca..c6d3534 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -120,6 +120,16 @@
"bug",
"code"
]
+ },
+ {
+ "login": "HarryGwinnell",
+ "name": "Harry Gwinnell",
+ "avatar_url": "https://avatars.githubusercontent.com/u/10196821?v=4",
+ "profile": "https://harrygwinnell.co.uk",
+ "contributions": [
+ "bug",
+ "code"
+ ]
}
]
}
diff --git a/.eslintrc.js b/.eslintrc.js
index 8b4c3be..c08fe6e 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,5 +1,5 @@
module.exports = {
- parser: 'babel-eslint',
+ parser: '@babel/eslint-parser',
env: {
node: true,
es6: true,
diff --git a/.gitignore b/.gitignore
index b80ef04..61e897b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ node_modules
!__tests__/packages/**/node_modules
.DS_Store
.idea/
+yarn-error.log
diff --git a/.prettierrc b/.prettierrc
index ae7544d..949efe4 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -1,5 +1,7 @@
{
"singleQuote": true,
"printWidth": 100,
- "trailingComma": "es5"
+ "trailingComma": "es5",
+ "endOfLine": "auto",
+ "arrowParens": "avoid"
}
diff --git a/README.md b/README.md
index b9eb694..5f749cb 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
[](https://circleci.com/gh/tabrindle/envinfo/tree/master) [](https://travis-ci.org/tabrindle/envinfo) [](https://badge.fury.io/js/envinfo) [](https://www.npmjs.com/package/envinfo) [](https://opensource.org/licenses/MIT)
-[](#contributors)
+[](#contributors)
## The problem
@@ -279,7 +279,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
| [
Trevor Brindle](http://trevorbrindle.com)
[π¬](#question-tabrindle "Answering Questions") [π](#blog-tabrindle "Blogposts") [π](https://github.com/tabrindle/envinfo/issues?q=author%3Atabrindle "Bug reports") [π»](https://github.com/tabrindle/envinfo/commits?author=tabrindle "Code") [π](https://github.com/tabrindle/envinfo/commits?author=tabrindle "Documentation") [π‘](#example-tabrindle "Examples") [π€](#ideas-tabrindle "Ideas, Planning, & Feedback") [π](#review-tabrindle "Reviewed Pull Requests") [π’](#talk-tabrindle "Talks") [β οΈ](https://github.com/tabrindle/envinfo/commits?author=tabrindle "Tests") | [
Gant Laborde](http://gantlaborde.com/)
[π](#blog-GantMan "Blogposts") [π](https://github.com/tabrindle/envinfo/issues?q=author%3AGantMan "Bug reports") [π»](https://github.com/tabrindle/envinfo/commits?author=GantMan "Code") [π€](#ideas-GantMan "Ideas, Planning, & Feedback") | [
Anton Fisher](http://antonfisher.com)
[π](https://github.com/tabrindle/envinfo/issues?q=author%3Aantonfisher "Bug reports") [π»](https://github.com/tabrindle/envinfo/commits?author=antonfisher "Code") | [
Ahmad Awais β‘οΈ](https://AhmadAwais.com/)
[π](https://github.com/tabrindle/envinfo/issues?q=author%3Aahmadawais "Bug reports") [π»](https://github.com/tabrindle/envinfo/commits?author=ahmadawais "Code") | [
Hasan](https://github.com/LEQADA)
[π](https://github.com/tabrindle/envinfo/issues?q=author%3ALEQADA "Bug reports") [π»](https://github.com/tabrindle/envinfo/commits?author=LEQADA "Code") | [
Ernesto RamΓrez](http://twitter.com/_ErnestoR)
[π](https://github.com/tabrindle/envinfo/issues?q=author%3AErnestoR "Bug reports") [π»](https://github.com/tabrindle/envinfo/commits?author=ErnestoR "Code") | [
Jiawen Geng](https://www.gengjiawen.com)
[π](https://github.com/tabrindle/envinfo/issues?q=author%3Agengjiawen "Bug reports") [π»](https://github.com/tabrindle/envinfo/commits?author=gengjiawen "Code") [π€](#ideas-gengjiawen "Ideas, Planning, & Feedback") [β οΈ](https://github.com/tabrindle/envinfo/commits?author=gengjiawen "Tests") |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
-| [
Zac Anger](https://zacanger.com)
[π»](https://github.com/tabrindle/envinfo/commits?author=zacanger "Code") [π](https://github.com/tabrindle/envinfo/issues?q=author%3Azacanger "Bug reports") | [
Ville Immonen](https://twitter.com/VilleImmonen)
[π](https://github.com/tabrindle/envinfo/issues?q=author%3Afson "Bug reports") [π»](https://github.com/tabrindle/envinfo/commits?author=fson "Code") | [
Olmo Maldonado](http://ibolmo.com)
[π](https://github.com/tabrindle/envinfo/issues?q=author%3Aibolmo "Bug reports") [π»](https://github.com/tabrindle/envinfo/commits?author=ibolmo "Code") |
+| [
Zac Anger](https://zacanger.com)
[π»](https://github.com/tabrindle/envinfo/commits?author=zacanger "Code") [π](https://github.com/tabrindle/envinfo/issues?q=author%3Azacanger "Bug reports") | [
Ville Immonen](https://twitter.com/VilleImmonen)
[π](https://github.com/tabrindle/envinfo/issues?q=author%3Afson "Bug reports") [π»](https://github.com/tabrindle/envinfo/commits?author=fson "Code") | [
Olmo Maldonado](http://ibolmo.com)
[π](https://github.com/tabrindle/envinfo/issues?q=author%3Aibolmo "Bug reports") [π»](https://github.com/tabrindle/envinfo/commits?author=ibolmo "Code") | [
Harry Gwinnell](https://harrygwinnell.co.uk)
[π](https://github.com/tabrindle/envinfo/issues?q=author%3AHarryGwinnell "Bug reports") [π»](https://github.com/tabrindle/envinfo/commits?author=HarryGwinnell "Code") |
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!
diff --git a/__tests__/duplicates.test.js b/__tests__/duplicates.test.js
index bfa8fd6..74f7fa0 100644
--- a/__tests__/duplicates.test.js
+++ b/__tests__/duplicates.test.js
@@ -1,5 +1,5 @@
-const envinfo = require('../src/envinfo');
-const path = require('path');
+import envinfo from '../src/envinfo';
+import path from 'path';
describe('Running the programmatic interface', () => {
test('return expected duplicates in json', async () => {
diff --git a/__tests__/envinfo.test.js b/__tests__/envinfo.test.js
index 0b32b98..617f5a3 100644
--- a/__tests__/envinfo.test.js
+++ b/__tests__/envinfo.test.js
@@ -1,5 +1,5 @@
-const envinfo = require('../src/envinfo');
-const helpers = require('../src/helpers');
+import envinfo from '../src/envinfo';
+import helpers from '../src/helpers';
jest.mock('../src/helpers');
diff --git a/__tests__/scopedPackages.test.js b/__tests__/scopedPackages.test.js
index 19d26cd..64311d8 100644
--- a/__tests__/scopedPackages.test.js
+++ b/__tests__/scopedPackages.test.js
@@ -1,5 +1,5 @@
-const envinfo = require('../src/envinfo');
-const path = require('path');
+import envinfo from '../src/envinfo';
+import path from 'path';
describe('envinfo will report on scoped npm packages', () => {
test('return expected packages', async () => {
diff --git a/__tests__/utils.test.js b/__tests__/utils.test.js
index c823e6c..e7a7505 100644
--- a/__tests__/utils.test.js
+++ b/__tests__/utils.test.js
@@ -1,4 +1,5 @@
-const utils = require('../src/utils');
+import utils from '../src/utils';
+
const cases = {
apt: {
string: 'apt 1.4.9 (amd64)',
diff --git a/appveyor.yml b/appveyor.yml
index b33fed8..41f88c1 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,5 +1,5 @@
environment:
- nodejs_version: '8'
+ nodejs_version: '16'
install:
- ps: Install-Product node $env:nodejs_version x64
@@ -14,7 +14,7 @@ test_script:
- set PATH=%RPATH%;%PATH%
- SET ENVINFO_DEBUG=trace
- npm run build
- - node -r esm src/cli.js
+ - node src/cli.mjs
- node dist/cli.js
- SET ENVINFO_DEBUG=""
- npm test
diff --git a/babel.config.js b/babel.config.js
index d1ff34c..34892d2 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -2,16 +2,7 @@
module.exports = {
presets: [
- [
- '@babel/preset-env',
- {
- modules: 'commonjs',
- targets: {
- node: '4.9.1',
- },
- useBuiltIns: 'usage',
- },
- ],
+ ['@babel/preset-env'],
],
- plugins: ['@babel/plugin-proposal-optional-chaining'],
+ plugins: ['@babel/plugin-proposal-optional-chaining']
};
diff --git a/dist/cli.js b/dist/cli.js
index 75671a8..cf69c25 100644
--- a/dist/cli.js
+++ b/dist/cli.js
@@ -1,2 +1,29 @@
#!/usr/bin/env node
-"use strict";module.exports=function(n){var t={};function e(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return n[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}return e.m=n,e.c=t,e.d=function(n,t,o){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:o})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var r in n)e.d(o,r,function(t){return n[t]}.bind(null,r));return o},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=195)}({0:function(n,t){var e=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},1:function(n,t,e){var o=e(3);n.exports=function(n){if(!o(n))throw TypeError(n+" is not an object!");return n}},12:function(n,t,e){var o=e(1),r=e(42),i=e(35),u=Object.defineProperty;t.f=e(5)?Object.defineProperty:function(n,t,e){if(o(n),t=i(t,!0),o(e),r)try{return u(n,t,e)}catch(n){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(n[t]=e.value),n}},14:function(n,t){var e=n.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},15:function(n,t,e){var o=e(12),r=e(22);n.exports=e(5)?function(n,t,e){return o.f(n,t,r(1,e))}:function(n,t,e){return n[t]=e,n}},16:function(n,t,e){var o=e(0),r=e(15),i=e(19),u=e(23)("src"),s=e(53),c=(""+s).split("toString");e(14).inspectSource=function(n){return s.call(n)},(n.exports=function(n,t,e,s){var a="function"==typeof e;a&&(i(e,"name")||r(e,"name",t)),n[t]!==e&&(a&&(i(e,u)||r(e,u,n[t]?""+n[t]:c.join(String(t)))),n===o?n[t]=e:s?n[t]?n[t]=e:r(n,t,e):(delete n[t],r(n,t,e)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[u]||s.call(this)}))},17:function(n,t,e){var o=e(25);n.exports=function(n,t,e){if(o(n),void 0===t)return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,o){return n.call(t,e,o)};case 3:return function(e,o,r){return n.call(t,e,o,r)}}return function(){return n.apply(t,arguments)}}},18:function(n,t,e){var o=e(26),r=Math.min;n.exports=function(n){return n>0?r(o(n),9007199254740991):0}},19:function(n,t){var e={}.hasOwnProperty;n.exports=function(n,t){return e.call(n,t)}},195:function(n,t,e){e(41);var o=e(196)(process.argv.slice(2));o.console=!0,o.help||o._.indexOf("help")>-1?console.log("\n ,,', ,, ,,,,,, ,',,\n ,,, ,,, ,,,\n ,, ,,,,, ,,,,,, ,,, ,, ,, .,,,,,, ,,,,,,, ,,,,, ,,\n ,, ,, ,, ,,, ,,, ,, ,,, ,, ,,, ,,, ,, ,,, ,,, ,,\n ,,, ,, .,, ,,, ,, ,,, ,, ,, ,,, ,, ,, ,, ,, ,,,\n ,, ,,,,,,,,,, ,,, ,, ,, ,, ,, ,,, ,, ,, ,, ,, ,,\n ,, ,,, ,,, ,, ,,,,, ,, ,,, ,, ,, ,,, ,,, ,,\n ,, ,,,,,,, ,,, ,, ,,, ,, ,,, ,, ,, ,,,,,,, ,,\n ,,, ,,,\n ,,,' ',,,\n\n VERSION: 7.8.0\n\n USAGE:\n\n `envinfo` || `npx envinfo`\n\n OPTIONS:\n\n --system Print general system info such as OS, CPU, Memory and Shell\n --browsers Get version numbers of installed web browsers\n --SDKs Get platforms, build tools and SDKs of iOS and Android\n --IDEs Get version numbers of installed IDEs\n --languages Get version numbers of installed languages such as Java, Python, PHP, etc\n --managers Get version numbers of installed package/dependency managers\n --monorepos Get monorepo tools\n --binaries Get version numbers of node, npm, watchman, etc\n --npmPackages Get version numbers of locally installed npm packages - glob, string, or comma delimited list\n --npmGlobalPackages Get version numbers of globally installed npm packages\n\n --duplicates Mark duplicate npm packages inside parentheses eg. (2.1.4)\n --fullTree Traverse entire node_modules dependency tree, not just top level\n\n --markdown Print output in markdown format\n --json Print output in JSON format\n --console Print to console (defaults to on for CLI usage, off for programmatic usage)\n --showNotFound Don't filter out values marked 'Not Found'\n --title Give your report a top level title ie 'Environment Report'\n\n --clipboard *Removed - use clipboardy or clipboard-cli directly*\n "):o.version||o.v||o._.indexOf("version")>-1?console.log("7.8.0"):e(197).cli(o)},196:function(n,t){function e(n){return"number"==typeof n||(!!/^0x[0-9a-f]+$/i.test(n)||/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(n))}n.exports=function(n,t){t||(t={});var o={bools:{},strings:{},unknownFn:null};"function"==typeof t.unknown&&(o.unknownFn=t.unknown),"boolean"==typeof t.boolean&&t.boolean?o.allBools=!0:[].concat(t.boolean).filter(Boolean).forEach((function(n){o.bools[n]=!0}));var r={};Object.keys(t.alias||{}).forEach((function(n){r[n]=[].concat(t.alias[n]),r[n].forEach((function(t){r[t]=[n].concat(r[n].filter((function(n){return t!==n})))}))})),[].concat(t.string).filter(Boolean).forEach((function(n){o.strings[n]=!0,r[n]&&(o.strings[r[n]]=!0)}));var i=t.default||{},u={_:[]};Object.keys(o.bools).forEach((function(n){c(n,void 0!==i[n]&&i[n])}));var s=[];function c(n,t,i){if(!i||!o.unknownFn||function(n,t){return o.allBools&&/^--[^=]+$/.test(t)||o.strings[n]||o.bools[n]||r[n]}(n,i)||!1!==o.unknownFn(i)){var s=!o.strings[n]&&e(t)?Number(t):t;a(u,n.split("."),s),(r[n]||[]).forEach((function(n){a(u,n.split("."),s)}))}}function a(n,t,e){for(var r=n,i=0;i0?o:e)(n)}},29:function(n,t,e){var o=e(14),r=e(0),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(n.exports=function(n,t){return i[n]||(i[n]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:e(24)?"pure":"global",copyright:"Β© 2020 Denis Pushkarev (zloirock.ru)"})},3:function(n,t){n.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},34:function(n,t,e){var o=e(3),r=e(0).document,i=o(r)&&o(r.createElement);n.exports=function(n){return i?r.createElement(n):{}}},35:function(n,t,e){var o=e(3);n.exports=function(n,t){if(!o(n))return n;var e,r;if(t&&"function"==typeof(e=n.toString)&&!o(r=e.call(n)))return r;if("function"==typeof(e=n.valueOf)&&!o(r=e.call(n)))return r;if(!t&&"function"==typeof(e=n.toString)&&!o(r=e.call(n)))return r;throw TypeError("Can't convert object to primitive value")}},38:function(n,t,e){var o=e(0).document;n.exports=o&&o.documentElement},41:function(n,t,e){var o=e(2),r=e(38),i=e(20),u=e(44),s=e(18),c=[].slice;o(o.P+o.F*e(6)((function(){r&&c.call(r)})),"Array",{slice:function(n,t){var e=s(this.length),o=i(this);if(t=void 0===t?e:t,"Array"==o)return c.call(this,n,t);for(var r=u(n,e),a=u(t,e),f=s(a-r),l=new Array(f),p=0;p{var e={5623:e=>{"use strict";function t(e,t,o){e instanceof RegExp&&(e=n(e,o)),t instanceof RegExp&&(t=n(t,o));var i=r(e,t,o);return i&&{start:i[0],end:i[1],pre:o.slice(0,i[0]),body:o.slice(i[0]+e.length,i[1]),post:o.slice(i[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,o,i,s,a,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],i=n.length;u>=0&&!a;)u==c?(r.push(u),c=n.indexOf(e,u+1)):1==r.length?a=[r.pop(),l]:((o=r.pop())=0?c:l;r.length&&(a=[i,s])}return a}e.exports=t,t.range=r},3644:(e,t,n)=>{var r=n(1048),o=n(5623);e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return y(function(e){return e.split("\\\\").join(i).split("\\{").join(s).split("\\}").join(a).split("\\,").join(c).split("\\.").join(l)}(e),!0).map(d)};var i="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",c="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function d(e){return e.split(i).join("\\").split(s).join("{").split(a).join("}").split(c).join(",").split(l).join(".")}function f(e){if(!e)return[""];var t=[],n=o("{","}",e);if(!n)return e.split(",");var r=n.pre,i=n.body,s=n.post,a=r.split(",");a[a.length-1]+="{"+i+"}";var c=f(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),t.push.apply(t,a),t}function p(e){return"{"+e+"}"}function h(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function m(e,t){return e>=t}function y(e,t){var n=[],i=o("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var s,c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),d=c||l,b=i.body.indexOf(",")>=0;if(!d&&!b)return i.post.match(/,.*\}/)?y(e=i.pre+"{"+i.body+a+i.post):[e];if(d)s=i.body.split(/\.\./);else if(1===(s=f(i.body)).length&&1===(s=y(s[0],!1).map(p)).length)return(O=i.post.length?y(i.post,!1):[""]).map((function(e){return i.pre+s[0]+e}));var v,w=i.pre,O=i.post.length?y(i.post,!1):[""];if(d){var x=u(s[0]),S=u(s[1]),E=Math.max(s[0].length,s[1].length),P=3==s.length?Math.abs(u(s[2])):1,A=g;S0){var C=new Array(k+1).join("0");I=_<0?"-"+C+I.slice(1):C+I}}v.push(I)}}else v=r(s,(function(e){return y(e,!1)}));for(var N=0;N{e.exports=function(e,n){for(var r=[],o=0;o{"use strict";const r=n(2081),o=n(4605),i=n(3743);function s(e,t,n){const s=o(e,t,n),a=r.spawn(s.command,s.args,s.options);return i.hookChildProcess(a,s),a}e.exports=s,e.exports.spawn=s,e.exports.sync=function(e,t,n){const s=o(e,t,n),a=r.spawnSync(s.command,s.args,s.options);return a.error=a.error||i.verifyENOENTSync(a.status,s),a},e.exports._parse=o,e.exports._enoent=i},3743:e=>{"use strict";const t="win32"===process.platform;function n(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function r(e,r){return t&&1===e&&!r.file?n(r.original,"spawn"):null}e.exports={hookChildProcess:function(e,n){if(!t)return;const o=e.emit;e.emit=function(t,i){if("exit"===t){const t=r(i,n);if(t)return o.call(e,"error",t)}return o.apply(e,arguments)}},verifyENOENT:r,verifyENOENTSync:function(e,r){return t&&1===e&&!r.file?n(r.original,"spawnSync"):null},notFoundError:n}},4605:(e,t,n)=>{"use strict";const r=n(1017),o=n(2202),i=n(5081),s=n(7550),a="win32"===process.platform,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(e){if(!a)return e;const t=function(e){e.file=o(e);const t=e.file&&s(e.file);return t?(e.args.unshift(e.file),e.command=t,o(e)):e.file}(e),n=!c.test(t);if(e.options.forceShell||n){const n=l.test(t);e.command=r.normalize(e.command),e.command=i.command(e.command),e.args=e.args.map((e=>i.argument(e,n)));const o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}e.exports=function(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null);const r={command:e,args:t=t?t.slice(0):[],options:n=Object.assign({},n),file:void 0,original:{command:e,args:t}};return n.shell?r:u(r)}},5081:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;e.exports.command=function(e){return e=e.replace(t,"^$1")},e.exports.argument=function(e,n){return e=(e=`"${e=(e=(e=`${e}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(t,"^$1"),n&&(e=e.replace(t,"^$1")),e}},7550:(e,t,n)=>{"use strict";const r=n(7147),o=n(7139);e.exports=function(e){const t=Buffer.alloc(150);let n;try{n=r.openSync(e,"r"),r.readSync(n,t,0,150,0),r.closeSync(n)}catch(e){}return o(t.toString())}},2202:(e,t,n)=>{"use strict";const r=n(1017),o=n(3500),i=n(7573);function s(e,t){const n=e.options.env||process.env,s=process.cwd(),a=null!=e.options.cwd,c=a&&void 0!==process.chdir&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch(e){}let l;try{l=o.sync(e.command,{path:n[i({env:n})],pathExt:t?r.delimiter:void 0})}catch(e){}finally{c&&process.chdir(s)}return l&&(l=r.resolve(a?e.options.cwd:"",l)),l}e.exports=function(e){return s(e)||s(e,!0)}},7573:e=>{"use strict";const t=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};e.exports=t,e.exports.default=t},7139:(e,t,n)=>{"use strict";const r=n(3290);e.exports=(e="")=>{const t=e.match(r);if(!t)return null;const[n,o]=t[0].replace(/#! ?/,"").split(" "),i=n.split("/").pop();return"env"===i?o:o?`${i} ${o}`:i}},3290:e=>{"use strict";e.exports=/^#!(.*)/},3500:(e,t,n)=>{const r="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,o=n(1017),i=r?";":":",s=n(1959),a=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),c=(e,t)=>{const n=t.colon||i,o=e.match(/\//)||r&&e.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)],s=r?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=r?s.split(n):[""];return r&&-1!==e.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:o,pathExt:a,pathExtExe:s}},l=(e,t,n)=>{"function"==typeof t&&(n=t,t={}),t||(t={});const{pathEnv:r,pathExt:i,pathExtExe:l}=c(e,t),u=[],d=n=>new Promise(((i,s)=>{if(n===r.length)return t.all&&u.length?i(u):s(a(e));const c=r[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,d=o.join(l,e),p=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;i(f(p,n,0))})),f=(e,n,r)=>new Promise(((o,a)=>{if(r===i.length)return o(d(n+1));const c=i[r];s(e+c,{pathExt:l},((i,s)=>{if(!i&&s){if(!t.all)return o(e+c);u.push(e+c)}return o(f(e,n,r+1))}))}));return n?d(0).then((e=>n(null,e)),n):d(0)};e.exports=l,l.sync=(e,t)=>{t=t||{};const{pathEnv:n,pathExt:r,pathExtExe:i}=c(e,t),l=[];for(let a=0;a{"use strict";const r=n(1017),o=n(2081),i=n(8309),s=n(8150),a=n(6147),c=n(7678),l=n(4353),u=n(3111),{spawnedKill:d,spawnedCancel:f,setupTimeout:p,validateTimeout:h,setExitHandler:g}=n(3820),{handleInput:m,getSpawnedResult:y,makeAllStream:b,validateInputSync:v}=n(4994),{mergePromise:w,getSpawnedPromise:O}=n(1708),{joinCommand:x,parseCommand:S,getEscapedCommand:E}=n(4077),P=(e,t,n={})=>{const o=i._parse(e,t,n);return e=o.command,t=o.args,(n={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(n=o.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...n}).env=(({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:o})=>{const i=t?{...process.env,...e}:e;return n?a.env({env:i,cwd:r,execPath:o}):i})(n),n.stdio=u(n),"win32"===process.platform&&"cmd"===r.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:n,parsed:o}},A=(e,t,n)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?s(t):t:void 0===n?void 0:"",j=(e,t,n)=>{const r=P(e,t,n),i=x(e,t),s=E(e,t);let a;h(r.options);try{a=o.spawn(r.file,r.args,r.options)}catch(e){const t=new o.ChildProcess,n=Promise.reject(l({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return w(t,n)}const u=O(a),v=p(a,r.options,u),S=g(a,r.options,v),j={isCanceled:!1};a.kill=d.bind(null,a.kill.bind(a)),a.cancel=f.bind(null,a,j);const _=c((async()=>{const[{error:e,exitCode:t,signal:n,timedOut:o},c,u,d]=await y(a,r.options,S),f=A(r.options,c),p=A(r.options,u),h=A(r.options,d);if(e||0!==t||null!==n){const c=l({error:e,exitCode:t,signal:n,stdout:f,stderr:p,all:h,command:i,escapedCommand:s,parsed:r,timedOut:o,isCanceled:j.isCanceled,killed:a.killed});if(!r.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:f,stderr:p,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return m(a,r.options.input),a.all=b(a,r.options),w(a,_)};e.exports=j,e.exports.sync=(e,t,n)=>{const r=P(e,t,n),i=x(e,t),s=E(e,t);let a;v(r.options);try{a=o.spawnSync(r.file,r.args,r.options)}catch(e){throw l({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}const c=A(r.options,a.stdout,a.error),u=A(r.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=l({stdout:c,stderr:u,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:s,parsed:r,timedOut:a.error&&"ETIMEDOUT"===a.error.code,isCanceled:!1,killed:null!==a.signal});if(!r.options.reject)return e;throw e}return{command:i,escapedCommand:s,exitCode:0,stdout:c,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},e.exports.command=(e,t)=>{const[n,...r]=S(e);return j(n,r,t)},e.exports.commandSync=(e,t)=>{const[n,...r]=S(e);return j.sync(n,r,t)},e.exports.node=(e,t,n={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(n=t,t=[]);const r=u.node(n),o=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:i=process.execPath,nodeOptions:s=o}=n;return j(i,[...s,e,...Array.isArray(t)?t:[]],{...n,stdin:void 0,stdout:void 0,stderr:void 0,stdio:r,shell:!1})}},4077:e=>{"use strict";const t=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],n=/^[\w.-]+$/,r=/"/g,o=/ +/g;e.exports={joinCommand:(e,n)=>t(e,n).join(" "),getEscapedCommand:(e,o)=>t(e,o).map((e=>(e=>"string"!=typeof e||n.test(e)?e:`"${e.replace(r,'\\"')}"`)(e))).join(" "),parseCommand:e=>{const t=[];for(const n of e.trim().split(o)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${n}`:t.push(n)}return t}}},4353:(e,t,n)=>{"use strict";const{signalsByName:r}=n(7787);e.exports=({stdout:e,stderr:t,all:n,error:o,signal:i,exitCode:s,command:a,escapedCommand:c,timedOut:l,isCanceled:u,killed:d,parsed:{options:{timeout:f}}})=>{s=null===s?void 0:s;const p=void 0===(i=null===i?void 0:i)?void 0:r[i].description,h=(({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:o,exitCode:i,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==n?`failed with ${n}`:void 0!==r?`was killed with ${r} (${o})`:void 0!==i?`failed with exit code ${i}`:"failed")({timedOut:l,timeout:f,errorCode:o&&o.code,signal:i,signalDescription:p,exitCode:s,isCanceled:u}),g=`Command ${h}: ${a}`,m="[object Error]"===Object.prototype.toString.call(o),y=m?`${g}\n${o.message}`:g,b=[y,t,e].filter(Boolean).join("\n");return m?(o.originalMessage=o.message,o.message=b):o=new Error(b),o.shortMessage=y,o.command=a,o.escapedCommand=c,o.exitCode=s,o.signal=i,o.signalDescription=p,o.stdout=e,o.stderr=t,void 0!==n&&(o.all=n),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=Boolean(l),o.isCanceled=u,o.killed=d&&!l,o}},3820:(e,t,n)=>{"use strict";const r=n(2037),o=n(7908),i=(e,t,n,r)=>{if(!s(t,n,r))return;const o=c(n),i=setTimeout((()=>{e("SIGKILL")}),o);i.unref&&i.unref()},s=(e,{forceKillAfterTimeout:t},n)=>a(e)&&!1!==t&&n,a=e=>e===r.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),c=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e};e.exports={spawnedKill:(e,t="SIGTERM",n={})=>{const r=e(t);return i(e,t,n,r),r},spawnedCancel:(e,t)=>{e.kill()&&(t.isCanceled=!0)},setupTimeout:(e,{timeout:t,killSignal:n="SIGTERM"},r)=>{if(0===t||void 0===t)return r;let o;const i=new Promise(((r,i)=>{o=setTimeout((()=>{((e,t,n)=>{e.kill(t),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))})(e,n,i)}),t)})),s=r.finally((()=>{clearTimeout(o)}));return Promise.race([i,s])},validateTimeout:({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},setExitHandler:async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;const i=o((()=>{e.kill()}));return r.finally((()=>{i()}))}}},1708:e=>{"use strict";const t=(async()=>{})().constructor.prototype,n=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(t,e)]));e.exports={mergePromise:(e,t)=>{for(const[r,o]of n){const n="function"==typeof t?(...e)=>Reflect.apply(o.value,t(),e):o.value.bind(t);Reflect.defineProperty(e,r,{...o,value:n})}return e},getSpawnedPromise:e=>new Promise(((t,n)=>{e.on("exit",((e,n)=>{t({exitCode:e,signal:n})})),e.on("error",(e=>{n(e)})),e.stdin&&e.stdin.on("error",(e=>{n(e)}))}))}},3111:e=>{"use strict";const t=["stdin","stdout","stderr"],n=e=>{if(!e)return;const{stdio:n}=e;if(void 0===n)return t.map((t=>e[t]));if((e=>t.some((t=>void 0!==e[t])))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof n)return n;if(!Array.isArray(n))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof n}\``);const r=Math.max(n.length,t.length);return Array.from({length:r},((e,t)=>n[t]))};e.exports=n,e.exports.node=e=>{const t=n(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]}},4994:(e,t,n)=>{"use strict";const r=n(4970),o=n(31),i=n(4034),s=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},a=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(e&&n)return t?o(e,{encoding:t,maxBuffer:r}):o.buffer(e,{maxBuffer:r})};e.exports={handleInput:(e,t)=>{void 0!==t&&void 0!==e.stdin&&(r(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream:(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const n=i();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},getSpawnedResult:async({stdout:e,stderr:t,all:n},{encoding:r,buffer:o,maxBuffer:i},c)=>{const l=a(e,{encoding:r,buffer:o,maxBuffer:i}),u=a(t,{encoding:r,buffer:o,maxBuffer:i}),d=a(n,{encoding:r,buffer:o,maxBuffer:2*i});try{return await Promise.all([c,l,u,d])}catch(r){return Promise.all([{error:r,signal:r.signal,timedOut:r.timedOut},s(e,l),s(t,u),s(n,d)])}},validateInputSync:({input:e})=>{if(r(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}},7334:(e,t,n)=>{e.exports=u,u.realpath=u,u.sync=d,u.realpathSync=d,u.monkeypatch=function(){r.realpath=u,r.realpathSync=d},u.unmonkeypatch=function(){r.realpath=o,r.realpathSync=i};var r=n(7147),o=r.realpath,i=r.realpathSync,s=process.version,a=/^v[0-5]\./.test(s),c=n(7059);function l(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function u(e,t,n){if(a)return o(e,t,n);"function"==typeof t&&(n=t,t=null),o(e,t,(function(r,o){l(r)?c.realpath(e,t,n):n(r,o)}))}function d(e,t){if(a)return i(e,t);try{return i(e,t)}catch(n){if(l(n))return c.realpathSync(e,t);throw n}}},7059:(e,t,n)=>{var r=n(1017),o="win32"===process.platform,i=n(7147),s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(e){return"function"==typeof e?e:function(){var e;if(s){var t=new Error;e=function(e){e&&(t.message=e.message,n(e=t))}}else e=n;return e;function n(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}r.normalize;if(o)var c=/(.*?)(?:[\/\\]+|$)/g;else c=/(.*?)(?:[\/]+|$)/g;if(o)var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else l=/^[\/]*/;t.realpathSync=function(e,t){if(e=r.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var n,s,a,u,d=e,f={},p={};function h(){var t=l.exec(e);n=t[0].length,s=t[0],a=t[0],u="",o&&!p[a]&&(i.lstatSync(a),p[a]=!0)}for(h();n=e.length)return t&&(t[p]=e),n(null,e);c.lastIndex=s;var r=c.exec(e);return f=u,u+=r[0],d=f+r[1],s=c.lastIndex,g[d]||t&&t[d]===d?process.nextTick(y):t&&Object.prototype.hasOwnProperty.call(t,d)?w(t[d]):i.lstat(d,b)}function b(e,r){if(e)return n(e);if(!r.isSymbolicLink())return g[d]=!0,t&&(t[d]=d),process.nextTick(y);if(!o){var s=r.dev.toString(32)+":"+r.ino.toString(32);if(h.hasOwnProperty(s))return v(null,h[s],d)}i.stat(d,(function(e){if(e)return n(e);i.readlink(d,(function(e,t){o||(h[s]=t),v(e,t)}))}))}function v(e,o,i){if(e)return n(e);var s=r.resolve(f,o);t&&(t[i]=s),w(s)}function w(t){e=r.resolve(t,e.slice(s)),m()}m()}},5105:(e,t,n)=>{"use strict";const{PassThrough:r}=n(2781);e.exports=e=>{e={...e};const{array:t}=e;let{encoding:n}=e;const o="buffer"===n;let i=!1;t?i=!(n||o):n=n||"utf8",o&&(n=null);const s=new r({objectMode:i});n&&s.setEncoding(n);let a=0;const c=[];return s.on("data",(e=>{c.push(e),i?a=c.length:a+=e.length})),s.getBufferedValue=()=>t?c:o?Buffer.concat(c,a):c.join(""),s.getBufferedLength=()=>a,s}},31:(e,t,n)=>{"use strict";const{constants:r}=n(4300),o=n(2781),{promisify:i}=n(3837),s=n(5105),a=i(o.pipeline);class c extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function l(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:n}=t,o=s(t);return await new Promise(((t,i)=>{const s=e=>{e&&o.getBufferedLength()<=r.MAX_LENGTH&&(e.bufferedData=o.getBufferedValue()),i(e)};(async()=>{try{await a(e,o),t()}catch(e){s(e)}})(),o.on("data",(()=>{o.getBufferedLength()>n&&s(new c)}))})),o.getBufferedValue()}e.exports=l,e.exports.buffer=(e,t)=>l(e,{...t,encoding:"buffer"}),e.exports.array=(e,t)=>l(e,{...t,array:!0}),e.exports.MaxBufferError=c},6772:(e,t,n)=>{function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.setopts=function(e,t,n){n||(n={});if(n.matchBase&&-1===t.indexOf("/")){if(n.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!n.silent,e.pattern=t,e.strict=!1!==n.strict,e.realpath=!!n.realpath,e.realpathCache=n.realpathCache||Object.create(null),e.follow=!!n.follow,e.dot=!!n.dot,e.mark=!!n.mark,e.nodir=!!n.nodir,e.nodir&&(e.mark=!0);e.sync=!!n.sync,e.nounique=!!n.nounique,e.nonull=!!n.nonull,e.nosort=!!n.nosort,e.nocase=!!n.nocase,e.stat=!!n.stat,e.noprocess=!!n.noprocess,e.absolute=!!n.absolute,e.fs=n.fs||o,e.maxLength=n.maxLength||1/0,e.cache=n.cache||Object.create(null),e.statCache=n.statCache||Object.create(null),e.symlinks=n.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(u))}(e,n),e.changedCwd=!1;var s=process.cwd();r(n,"cwd")?(e.cwd=i.resolve(n.cwd),e.changedCwd=e.cwd!==s):e.cwd=s;e.root=n.root||i.resolve(e.cwd,"/"),e.root=i.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/"));e.cwdAbs=a(e.cwd)?e.cwd:d(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/"));e.nomount=!!n.nomount,n.nonegate=!0,n.nocomment=!0,e.minimatch=new c(t,n),e.options=e.minimatch.options},t.ownProp=r,t.makeAbs=d,t.finish=function(e){for(var t=e.nounique,n=t?[]:Object.create(null),r=0,o=e.matches.length;r{e.exports=b;var r=n(7334),o=n(1171),i=(o.Minimatch,n(4378)),s=n(2361).EventEmitter,a=n(1017),c=n(9491),l=n(4095),u=n(4751),d=n(6772),f=d.setopts,p=d.ownProp,h=n(7844),g=(n(3837),d.childrenIgnored),m=d.isIgnored,y=n(778);function b(e,t,n){if("function"==typeof t&&(n=t,t={}),t||(t={}),t.sync){if(n)throw new TypeError("callback provided to sync glob");return u(e,t)}return new w(e,t,n)}b.sync=u;var v=b.GlobSync=u.GlobSync;function w(e,t,n){if("function"==typeof t&&(n=t,t=null),t&&t.sync){if(n)throw new TypeError("callback provided to sync glob");return new v(e,t)}if(!(this instanceof w))return new w(e,t,n);f(this,e,t),this._didRealPath=!1;var r=this.minimatch.set.length;this.matches=new Array(r),"function"==typeof n&&(n=y(n),this.on("error",n),this.on("end",(function(e){n(null,e)})));var o=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===r)return s();for(var i=0;i1)return!0;for(var o=0;othis.maxLength)return t();if(!this.stat&&p(this.cache,n)){var o=this.cache[n];if(Array.isArray(o)&&(o="DIR"),!r||"DIR"===o)return t(null,o);if(r&&"FILE"===o)return t()}var i=this.statCache[n];if(void 0!==i){if(!1===i)return t(null,i);var s=i.isDirectory()?"DIR":"FILE";return r&&"FILE"===s?t():t(null,s,i)}var a=this,c=h("stat\0"+n,(function(r,o){if(o&&o.isSymbolicLink())return a.fs.stat(n,(function(r,i){r?a._stat2(e,n,null,o,t):a._stat2(e,n,r,i,t)}));a._stat2(e,n,r,o,t)}));c&&a.fs.lstat(n,c)},w.prototype._stat2=function(e,t,n,r,o){if(n&&("ENOENT"===n.code||"ENOTDIR"===n.code))return this.statCache[t]=!1,o();var i="/"===e.slice(-1);if(this.statCache[t]=r,"/"===t.slice(-1)&&r&&!r.isDirectory())return o(null,!1,r);var s=!0;return r&&(s=r.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||s,i&&"FILE"===s?o():o(null,s,r)}},4751:(e,t,n)=>{e.exports=p,p.GlobSync=h;var r=n(7334),o=n(1171),i=(o.Minimatch,n(2884).Glob,n(3837),n(1017)),s=n(9491),a=n(4095),c=n(6772),l=c.setopts,u=c.ownProp,d=c.childrenIgnored,f=c.isIgnored;function p(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new h(e,t).found}function h(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof h))return new h(e,t);if(l(this,e,t),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var r=0;rthis.maxLength)return!1;if(!this.stat&&u(this.cache,t)){var r=this.cache[t];if(Array.isArray(r)&&(r="DIR"),!n||"DIR"===r)return r;if(n&&"FILE"===r)return!1}var o=this.statCache[t];if(!o){var i;try{i=this.fs.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(i&&i.isSymbolicLink())try{o=this.fs.statSync(t)}catch(e){o=i}else o=i}this.statCache[t]=o;r=!0;return o&&(r=o.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||r,(!n||"FILE"!==r)&&r},h.prototype._mark=function(e){return c.mark(this,e)},h.prototype._makeAbs=function(e){return c.makeAbs(this,e)}},7:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SIGNALS=void 0;t.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}]},7787:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signalsByNumber=t.signalsByName=void 0;var r=n(2037),o=n(8699),i=n(7603);const s=function(e,{name:t,number:n,description:r,supported:o,action:i,forced:s,standard:a}){return{...e,[t]:{name:t,number:n,description:r,supported:o,action:i,forced:s,standard:a}}},a=(0,o.getSignals)().reduce(s,{});t.signalsByName=a;const c=function(e,t){const n=l(e,t);if(void 0===n)return{};const{name:r,description:o,supported:i,action:s,forced:a,standard:c}=n;return{[e]:{name:r,number:e,description:o,supported:i,action:s,forced:a,standard:c}}},l=function(e,t){const n=t.find((({name:t})=>r.constants.signals[t]===e));return void 0!==n?n:t.find((t=>t.number===e))},u=function(){const e=(0,o.getSignals)(),t=i.SIGRTMAX+1,n=Array.from({length:t},((t,n)=>c(n,e)));return Object.assign({},...n)}();t.signalsByNumber=u},7603:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SIGRTMAX=t.getRealtimeSignals=void 0;t.getRealtimeSignals=function(){const e=o-r+1;return Array.from({length:e},n)};const n=function(e,t){return{name:`SIGRT${t+1}`,number:r+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},r=34,o=64;t.SIGRTMAX=o},8699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSignals=void 0;var r=n(2037),o=n(7),i=n(7603);t.getSignals=function(){const e=(0,i.getRealtimeSignals)();return[...o.SIGNALS,...e].map(s)};const s=function({name:e,number:t,description:n,action:o,forced:i=!1,standard:s}){const{signals:{[e]:a}}=r.constants,c=void 0!==a;return{name:e,number:c?a:t,description:n,supported:c,action:o,forced:i,standard:s}}},7844:(e,t,n)=>{var r=n(2479),o=Object.create(null),i=n(778);function s(e){for(var t=e.length,n=[],r=0;rr?(n.splice(0,r),process.nextTick((function(){t.apply(null,i)}))):delete o[e]}}))}(e))}))},4378:(e,t,n)=>{try{var r=n(3837);if("function"!=typeof r.inherits)throw"";e.exports=r.inherits}catch(t){e.exports=n(5717)}},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},4970:e=>{"use strict";const t=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;t.writable=e=>t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,t.readable=e=>t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,t.duplex=e=>t.writable(e)&&t.readable(e),t.transform=e=>t.duplex(e)&&"function"==typeof e._transform,e.exports=t},1959:(e,t,n)=>{var r;n(7147);function o(e,t,n){if("function"==typeof t&&(n=t,t={}),!n){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(n,r){o(e,t||{},(function(e,t){e?r(e):n(t)}))}))}r(e,t||{},(function(e,r){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)}))}r="win32"===process.platform||global.TESTING_WINDOWS?n(1429):n(4601),e.exports=o,o.sync=function(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}}},4601:(e,t,n)=>{e.exports=o,o.sync=function(e,t){return i(r.statSync(e),t)};var r=n(7147);function o(e,t,n){r.stat(e,(function(e,r){n(e,!e&&i(r,t))}))}function i(e,t){return e.isFile()&&function(e,t){var n=e.mode,r=e.uid,o=e.gid,i=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=parseInt("001",8),u=a|c;return n&l||n&c&&o===s||n&a&&r===i||n&u&&0===i}(e,t)}},1429:(e,t,n)=>{e.exports=i,i.sync=function(e,t){return o(r.statSync(e),e,t)};var r=n(7147);function o(e,t,n){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var n=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!n)return!0;if(-1!==(n=n.split(";")).indexOf(""))return!0;for(var r=0;r{"use strict";const{PassThrough:r}=n(2781);e.exports=function(){var e=[],t=new r({objectMode:!0});return t.setMaxListeners(0),t.add=n,t.isEmpty=o,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(n),t;function n(r){return Array.isArray(r)?(r.forEach(n),this):(e.push(r),r.once("end",i.bind(null,r)),r.once("error",t.emit.bind(t,"error")),r.pipe(t,{end:!1}),this)}function o(){return 0==e.length}function i(n){!(e=e.filter((function(e){return e!==n}))).length&&t.readable&&t.end()}}},1171:(e,t,n)=>{e.exports=f,f.Minimatch=p;var r={sep:"/"};try{r=n(1017)}catch(e){}var o=f.GLOBSTAR=p.GLOBSTAR={},i=n(3644),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",c="[^/]*?",l="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{});var u=/\/+/;function d(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function f(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new p(t,n).match(e))}function p(e,t){if(!(this instanceof p))return new p(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function h(e,t){if(t||(t=this instanceof p?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:i(e)}f.filter=function(e,t){return t=t||{},function(n,r,o){return f(n,e,t)}},f.defaults=function(e){if(!e||!Object.keys(e).length)return f;var t=f,n=function(n,r,o){return t.minimatch(n,r,d(e,o))};return n.Minimatch=function(n,r){return new t.Minimatch(n,d(e,r))},n},p.defaults=function(e){return e&&Object.keys(e).length?f.defaults(e).Minimatch:p},p.prototype.debug=function(){},p.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(u)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},p.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var o=0,i=e.length;o65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return o;if(""===e)return"";var r,i="",u=!!n.nocase,d=!1,f=[],p=[],h=!1,m=-1,y=-1,b="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",v=this;function w(){if(r){switch(r){case"*":i+=c,u=!0;break;case"?":i+=a,u=!0;break;default:i+="\\"+r}v.debug("clearStateChar %j %j",r,i),r=!1}}for(var O,x=0,S=e.length;x-1;k--){var C=p[k],N=i.slice(0,C.reStart),$=i.slice(C.reStart,C.reEnd-8),F=i.slice(C.reEnd-8,C.reEnd),M=i.slice(C.reEnd);F+=M;var L=N.split("(").length-1,D=M;for(x=0;x=0&&!(o=e[i]);i--);for(i=0;i>> no match, partial?",e,f,t,p),f!==a))}if("string"==typeof u?(l=r.nocase?d.toLowerCase()===u.toLowerCase():d===u,this.debug("string match",u,d,l)):(l=d.match(u),this.debug("pattern match",u,d,l)),!l)return!1}if(i===a&&s===c)return!0;if(i===a)return n;if(s===c)return i===a-1&&""===e[i];throw new Error("wtf?")}},6147:(e,t,n)=>{"use strict";const r=n(1017),o=n(7856),i=e=>{let t;e={cwd:process.cwd(),path:process.env[o()],execPath:process.execPath,...e};let n=r.resolve(e.cwd);const i=[];for(;t!==n;)i.push(r.join(n,"node_modules/.bin")),t=n,n=r.resolve(n,"..");const s=r.resolve(e.cwd,e.execPath,"..");return i.push(s),i.concat(e.path).join(r.delimiter)};e.exports=i,e.exports.default=i,e.exports.env=t=>{const n={...(t={env:process.env,...t}).env},r=o({env:n});return t.path=n[r],n[r]=e.exports(t),n}},7856:e=>{"use strict";const t=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};e.exports=t,e.exports.default=t},778:(e,t,n)=>{var r=n(2479);function o(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=r(o),e.exports.strict=r(i),o.proto=o((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})}))},7678:(e,t,n)=>{"use strict";const r=n(4903),o=new WeakMap,i=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,i=0;const s=e.displayName||e.name||"",a=function(...r){if(o.set(a,++i),1===i)n=e.apply(this,r),e=null;else if(!0===t.throw)throw new Error(`Function \`${s}\` can only be called once`);return n};return r(a,e),o.set(a,i),a};e.exports=i,e.exports.default=i,e.exports.callCount=e=>{if(!o.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return o.get(e)}},4903:e=>{"use strict";const t=(e,t)=>{for(const n of Reflect.ownKeys(t))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));return e};e.exports=t,e.exports.default=t},4095:e=>{"use strict";function t(e){return"/"===e.charAt(0)}function n(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),n=t[1]||"",r=Boolean(n&&":"!==n.charAt(1));return Boolean(t[2]||r)}e.exports="win32"===process.platform?n:t,e.exports.posix=t,e.exports.win32=n},7908:(e,t,n)=>{var r=global.process;const o=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(o(r)){var i,s=n(9491),a=n(5397),c=/^win/i.test(r.platform),l=n(2361);"function"!=typeof l&&(l=l.EventEmitter),r.__signal_exit_emitter__?i=r.__signal_exit_emitter__:((i=r.__signal_exit_emitter__=new l).count=0,i.emitted={}),i.infinite||(i.setMaxListeners(1/0),i.infinite=!0),e.exports=function(e,t){if(o(global.process)){s.equal(typeof e,"function","a callback must be provided for exit handler"),!1===p&&h();var n="exit";t&&t.alwaysLast&&(n="afterexit");return i.on(n,e),function(){i.removeListener(n,e),0===i.listeners("exit").length&&0===i.listeners("afterexit").length&&u()}}};var u=function(){p&&o(global.process)&&(p=!1,a.forEach((function(e){try{r.removeListener(e,f[e])}catch(e){}})),r.emit=y,r.reallyExit=g,i.count-=1)};e.exports.unload=u;var d=function(e,t,n){i.emitted[e]||(i.emitted[e]=!0,i.emit(e,t,n))},f={};a.forEach((function(e){f[e]=function(){o(global.process)&&(r.listeners(e).length===i.count&&(u(),d("exit",null,e),d("afterexit",null,e),c&&"SIGHUP"===e&&(e="SIGINT"),r.kill(r.pid,e)))}})),e.exports.signals=function(){return a};var p=!1,h=function(){!p&&o(global.process)&&(p=!0,i.count+=1,a=a.filter((function(e){try{return r.on(e,f[e]),!0}catch(e){return!1}})),r.emit=b,r.reallyExit=m)};e.exports.load=h;var g=r.reallyExit,m=function(e){o(global.process)&&(r.exitCode=e||0,d("exit",r.exitCode,null),d("afterexit",r.exitCode,null),g.call(r,r.exitCode))},y=r.emit,b=function(e,t){if("exit"===e&&o(global.process)){void 0!==t&&(r.exitCode=t);var n=y.apply(this,arguments);return d("exit",r.exitCode,null),d("afterexit",r.exitCode,null),n}return y.apply(this,arguments)}}else e.exports=function(){}},5397:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},8150:e=>{"use strict";e.exports=e=>{const t="string"==typeof e?"\n":"\n".charCodeAt(),n="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===n&&(e=e.slice(0,e.length-1)),e}},2806:(e,t,n)=>{e.exports=l,l.sync=function(e,t){for(var n=c(e,t=t||{}),r=n.env,i=n.ext,l=n.extExe,u=[],d=0,f=r.length;d{e.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n{"use strict";function t(e){return e}e.exports={date:t,error:t,symbol:t,string:t,number:t,boolean:t,null:t,undefined:t}},9821:(e,t,n)=>{"use strict";var r=n(1880),o=n(794),i=n(7750),s=" ",a="\n",c="";function l(e,t){return void 0===e?t:e}e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{indent:l(e.indent,s),prefix:l(e.prefix,a),postfix:l(e.postfix,c),errorToString:e.errorToString||r,dateToString:e.dateToString||o,colors:Object.assign({},i,e.colors)}}},794:e=>{"use strict";e.exports=function(e){return`new Date(${Date.prototype.toISOString.call(e)})`}},1880:e=>{"use strict";e.exports=function(e){return Error.prototype.toString.call(e)}},6370:e=>{"use strict";e.exports=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",n="",r=0;r{"use strict";var r=n(732),o=n(9821),i=n(6370),s=["object","array"];e.exports=function(e,t){var n=o(t),a=n.colors,c=n.prefix,l=n.postfix,u=n.dateToString,d=n.errorToString,f=n.indent,p=new Map;function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===Object.keys(e).length)return" {}";var o="\n",a=i(t,f);return Object.keys(e).forEach((function(c){var l=e[c],u=r(l),d=i(n," "),f=-1!==s.indexOf(u)?"":" ",p=y(l)?" [Circular]":m(u,l,t+1,n);o+=`${d}${a}${c}:${f}${p}\n`})),o.substring(0,o.length-1)}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===e.length)return" []";var o="\n",s=i(t,f);return e.forEach((function(e){var a=r(e),c=i(n," "),l=y(e)?"[Circular]":m(a,e,t,n+1).toString().trimLeft();o+=`${c}${s}- ${l}\n`})),o.substring(0,o.length-1)}function m(e,t,n,r){switch(e){case"array":return g(t,n,r);case"object":return h(t,n,r);case"string":return a.string(t);case"symbol":return a.symbol(t.toString());case"number":return a.number(t);case"boolean":return a.boolean(t);case"null":return a.null("null");case"undefined":return a.undefined("undefined");case"date":return a.date(u(t));case"error":return a.error(d(t));default:return t&&t.toString?t.toString():Object.prototype.toString.call(t)}}function y(e){return-1!==["object","array"].indexOf(r(e))&&(!!p.has(e)||(p.set(e),!1))}var b="";return p.set(e),"object"===r(e)&&Object.keys(e).length>0?b=h(e):"array"===r(e)&&e.length>0&&(b=g(e)),0===b.length?"":`${c}${b.slice(1)}${l}`}},732:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?"array":e instanceof Date?"date":e instanceof Error?"error":null===e?"null":"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)?"object":typeof e}},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},2781:e=>{"use strict";e.exports=require("stream")},3837:e=>{"use strict";e.exports=require("util")},9795:(e,t,n)=>{"use strict";n.d(t,{default:()=>re});var r=n(2081),o=n(7147),i=n(2884),s=n(2806);const a=/system-images;([\S \t]+)/g,c=/platforms;android-(\d+)[\S\s]/g,l=/build-tools;([\d|.]+)[\S\s]/g;var u=n(2037),d=n(1017);const f=(e,{unify:t=!1}={})=>new Promise((n=>{r.exec(e,{stdio:[0,"pipe","ignore"]},((e,r,o)=>{let i="";i=t?r.toString()+o.toString():r.toString(),n((e?"":i).trim())}))})),p=function(e){const t=Object.values(Array.prototype.slice.call(arguments).slice(1));(process.env.ENVINFO_DEBUG||"").toLowerCase()===e&&console.log(e,JSON.stringify(t))},h=e=>new Promise((t=>{o.readFile(e,"utf8",((e,n)=>t(n||null)))})),g=e=>h(e).then((e=>e?JSON.parse(e):null)),m=/\d+\.[\d+|.]+/g,y=e=>{p("trace","findDarwinApplication",e);const t=`mdfind "kMDItemCFBundleIdentifier=='${e}'"`;return p("trace",t),f(t).then((e=>e.replace(/(\s)/g,"\\ ")))},b=(e,t)=>{var n=(t||["CFBundleShortVersionString"]).map((function(e){return"-c Print:"+e}));return["/usr/libexec/PlistBuddy"].concat(n).concat([e]).join(" ")},v=(e,t)=>{const n=[];let r=null;for(;null!==(r=e.exec(t));)n.push(r);return n},w={run:f,log:p,fileExists:e=>new Promise((t=>{o.stat(e,(n=>t(n?null:e)))})),readFile:h,requireJson:g,versionRegex:m,findDarwinApplication:y,generatePlistBuddyCommand:b,matchAll:v,parseSDKManagerOutput:e=>{const t=e.split("Available")[0];return{apiLevels:v(c,t).map((e=>e[1])),buildTools:v(l,t).map((e=>e[1])),systemImages:v(a,t).map((e=>e[1].split("|").map((e=>e.trim())))).map((e=>e[0].split(";")[0]+" | "+e[2].split(" System Image")[0]))}},isLinux:"linux"===process.platform,isMacOS:"darwin"===process.platform,NA:"N/A",NotFound:"Not Found",isWindows:process.platform.startsWith("win"),isObject:e=>"object"==typeof e&&!Array.isArray(e),noop:e=>e,pipe:e=>t=>e.reduce(((e,t)=>t(e)),t),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:e=>(r.execSync(e,{stdio:[0,"pipe","ignore"]}).toString()||"").trim(),which:e=>new Promise((t=>s(e,((e,n)=>t(n))))),getDarwinApplicationVersion:e=>{var t;return p("trace","getDarwinApplicationVersion",e),t="darwin"!==process.platform?"N/A":y(e).then((e=>f(b(d.join(e,"Contents","Info.plist"),["CFBundleShortVersionString"])))),Promise.resolve(t)},uniq:e=>Array.from(new Set(e)),toReadableBytes:e=>{const t=Math.floor(Math.log(e)/Math.log(1024));return e?(e/1024**t).toFixed(2)+" "+["B","KB","MB","GB","TB","PB"][t]:"0 Bytes"},omit:(e,t)=>Object.keys(e).filter((e=>t.indexOf(e)<0)).reduce(((t,n)=>Object.assign(t,{[n]:e[n]})),{}),pick:(e,t)=>Object.keys(e).filter((e=>t.indexOf(e)>=0)).reduce(((t,n)=>Object.assign(t,{[n]:e[n]})),{}),getPackageJsonByName:e=>g(d.join(process.cwd(),"node_modules",e,"package.json")),getPackageJsonByPath:e=>g(d.join(process.cwd(),e)),getPackageJsonByFullPath:e=>(p("trace","getPackageJsonByFullPath",e),g(e)),getAllPackageJsonPaths:e=>(p("trace","getAllPackageJsonPaths",e),new Promise((t=>{const n=(e,n)=>t(n.map(d.normalize)||[]);return i(e?d.join("node_modules",e,"package.json"):d.join("node_modules","**","package.json"),n)}))),sortObject:e=>Object.keys(e).sort().reduce(((t,n)=>(t[n]=e[n],t)),{}),findVersion:(e,t,n)=>{p("trace","findVersion",e,t,n);const r=n||0,o=t||m,i=e.match(o);return i?i[r]:e},condensePath:e=>(e||"").replace(u.homedir(),"~"),determineFound:(e,t,n)=>(p("trace","determineFound",e,t,n),"N/A"===t?Promise.resolve([e,"N/A"]):t&&0!==Object.keys(t).length?n?Promise.resolve([e,t,n]):Promise.resolve([e,t]):Promise.resolve([e,"Not Found"]))};var O=n(2166);function x(e,t){return w.log("trace","clean",e),Object.keys(e).reduce(((n,r)=>!t.showNotFound&&"Not Found"===e[r]||"N/A"===e[r]||void 0===e[r]||0===Object.keys(e[r]).length?n:w.isObject(e[r])?Object.values(e[r]).every((e=>"N/A"===e||!t.showNotFound&&"Not Found"===e))?n:Object.assign(n,{[r]:x(e[r],t)}):Object.assign(n,{[r]:e[r]})),{})}function S(e,t){w.log("trace","formatHeaders"),t||(t={type:"underline"});const n={underline:["[4m","[0m"]};return e.slice().split("\n").map((e=>{if(":"===e.slice("-1")){const r=e.match(/^[\s]*/g)[0];return`${r}${n[t.type][0]}${e.slice(r.length)}${n[t.type][1]}`}return e})).join("\n")}function E(e){return w.log("trace","formatPackages"),e.npmPackages?Object.assign(e,{npmPackages:Object.entries(e.npmPackages||{}).reduce(((e,t)=>{const n=t[0],r=t[1];if("Not Found"===r)return Object.assign(e,{[n]:r});const o=r.wanted?`${r.wanted} =>`:"",i=Array.isArray(r.installed)?r.installed.join(", "):r.installed,s=r.duplicates?`(${r.duplicates.join(", ")})`:"";return Object.assign(e,{[n]:`${o} ${i} ${s}`})}),{})}):e}function P(e,t,n){return n||(n={emptyMessage:"None"}),Array.isArray(t)&&(t=t.length>0?t.join(", "):n.emptyMessage),{[e]:t}}function A(e,t){return Object.entries(e).reduce(((e,n)=>{const r=n[0],o=n[1];return w.isObject(o)?Object.assign(e,{[r]:A(o,t)}):Object.assign(e,t(r,o))}),{})}function j(e){return w.log("trace","serializeArrays"),A(e,P)}function _(e){return w.log("trace","serializeVersionsAndPaths"),Object.entries(e).reduce(((e,t)=>Object.assign(e,{[t[0]]:Object.entries(t[1]).reduce(((e,t)=>{const n=t[0],r=t[1];return r.version?Object.assign(e,{[n]:[r.version,r.path].filter(Boolean).join(" - ")}):Object.assign(e,{[n]:[r][0]})}),{})},{})),{})}function I(e){return O(e,{indent:" ",prefix:"\n",postfix:"\n"})}function k(e){return e.slice().split("\n").map((e=>{if(""!==e){const t=":"===e.slice("-1"),n=e.search(/\S|$/);return t?`${"#".repeat(n/2+1)} `+e.slice(n):" - "+e.slice(n)}return""})).join("\n")}function C(e,t){return t||(t={indent:" "}),JSON.stringify(e,null,t.indent)}const N=function(e,t){return w.log("trace","formatToJson"),t||(t={}),e=w.pipe([()=>x(e,t),t.title?e=>({[t.title]:e}):w.noop,C])(e),e=t.console?`\n${e}\n`:e},$=function(e,t){return w.log("trace","formatToMarkdown"),w.pipe([()=>x(e,t),E,j,_,I,k,t.title?e=>`\n# ${t.title}${e}`:w.noop])(e,t)},F=function(e,t){return w.log("trace","formatToYaml",t),w.pipe([()=>x(e,t),E,j,_,t.title?e=>({[t.title]:e}):w.noop,I,t.console?S:w.noop])(e,t)},M={getNodeInfo:()=>(w.log("trace","getNodeInfo"),Promise.all([w.isWindows?w.run("node -v").then(w.findVersion):w.which("node").then((e=>e?w.run(e+" -v"):Promise.resolve(""))).then(w.findVersion),w.which("node").then(w.condensePath)]).then((e=>w.determineFound("Node",e[0],e[1])))),getnpmInfo:()=>(w.log("trace","getnpmInfo"),Promise.all([w.run("npm -v"),w.which("npm").then(w.condensePath)]).then((e=>w.determineFound("npm",e[0],e[1])))),getWatchmanInfo:()=>(w.log("trace","getWatchmanInfo"),Promise.all([w.which("watchman").then((e=>e?w.run(e+" -v"):void 0)),w.which("watchman")]).then((e=>w.determineFound("Watchman",e[0],e[1])))),getYarnInfo:()=>(w.log("trace","getYarnInfo"),Promise.all([w.run("yarn -v"),w.which("yarn").then(w.condensePath)]).then((e=>w.determineFound("Yarn",e[0],e[1]))))},L={getBraveBrowserInfo:()=>{let e;return w.log("trace","getBraveBrowser"),e=w.isLinux?w.run("brave --version || brave-browser --version").then((e=>e.replace(/^.* ([^ ]*)/g,"$1"))):w.isMacOS?w.getDarwinApplicationVersion(w.browserBundleIdentifiers["Brave Browser"]).then(w.findVersion):Promise.resolve("N/A"),e.then((e=>w.determineFound("Brave Browser",e,"N/A")))},getChromeInfo:()=>{let e;if(w.log("trace","getChromeInfo"),w.isLinux)e=w.run("google-chrome --version").then((e=>e.replace(" dev","").replace(/^.* ([^ ]*)/g,"$1")));else if(w.isMacOS)e=w.getDarwinApplicationVersion(w.browserBundleIdentifiers.Chrome).then(w.findVersion);else if(w.isWindows){let t;try{t=w.findVersion(o.readdirSync(d.join(process.env["ProgramFiles(x86)"],"Google/Chrome/Application")).join("\n"))}catch(e){t=w.NotFound}e=Promise.resolve(t)}else e=Promise.resolve("N/A");return e.then((e=>w.determineFound("Chrome",e,"N/A")))},getChromeCanaryInfo:()=>{w.log("trace","getChromeCanaryInfo");return w.getDarwinApplicationVersion(w.browserBundleIdentifiers["Chrome Canary"]).then((e=>w.determineFound("Chrome Canary",e,"N/A")))},getChromiumInfo:()=>{let e;return w.log("trace","getChromiumInfo"),e=w.isLinux?w.run("chromium --version").then(w.findVersion):Promise.resolve("N/A"),e.then((e=>w.determineFound("Chromium",e,"N/A")))},getEdgeInfo:()=>{let e;if(w.log("trace","getEdgeInfo"),w.isWindows&&"10"===u.release().split(".")[0]){const t=(e,t)=>w.run(`powershell get-appxpackage ${e}`).then((e=>{if(""!==w.findVersion(e))return`${t} (${w.findVersion(e)})`})),n={Spartan:"Microsoft.MicrosoftEdge",Chromium:"Microsoft.MicrosoftEdge.Stable",ChromiumDev:"Microsoft.MicrosoftEdge.Dev"};e=Promise.all(Object.keys(n).map((e=>t(n[e],e))).filter((e=>void 0!==e)))}else{if(!w.isMacOS)return Promise.resolve("N/A");e=w.getDarwinApplicationVersion(w.browserBundleIdentifiers["Microsoft Edge"])}return e.then((e=>w.determineFound("Edge",Array.isArray(e)?e.filter((e=>void 0!==e)):e,w.NA)))},getFirefoxInfo:()=>{let e;return w.log("trace","getFirefoxInfo"),e=w.isLinux?w.run("firefox --version").then((e=>e.replace(/^.* ([^ ]*)/g,"$1"))):w.isMacOS?w.getDarwinApplicationVersion(w.browserBundleIdentifiers.Firefox):Promise.resolve("N/A"),e.then((e=>w.determineFound("Firefox",e,"N/A")))},getFirefoxDeveloperEditionInfo:()=>{w.log("trace","getFirefoxDeveloperEditionInfo");return w.getDarwinApplicationVersion(w.browserBundleIdentifiers["Firefox Developer Edition"]).then((e=>w.determineFound("Firefox Developer Edition",e,"N/A")))},getFirefoxNightlyInfo:()=>{let e;return w.log("trace","getFirefoxNightlyInfo"),e=w.isLinux?w.run("firefox-trunk --version").then((e=>e.replace(/^.* ([^ ]*)/g,"$1"))):w.isMacOS?w.getDarwinApplicationVersion(w.browserBundleIdentifiers["Firefox Nightly"]):Promise.resolve("N/A"),e.then((e=>w.determineFound("Firefox Nightly",e,"N/A")))},getInternetExplorerInfo:()=>{let e;if(w.log("trace","getInternetExplorerInfo"),w.isWindows){const t=[process.env.SYSTEMDRIVE||"C:","Program Files","Internet Explorer","iexplore.exe"].join("\\\\");e=w.run(`powershell -command "(Get-ItemProperty -LiteralPath '${t}').VersionInfo | Format-Table -Property FileVersion -HideTableHeaders"`).then(w.findVersion)}else e=Promise.resolve("N/A");return e.then((e=>w.determineFound("Internet Explorer",e,"N/A")))},getSafariTechnologyPreviewInfo:()=>{w.log("trace","getSafariTechnologyPreviewInfo");return w.getDarwinApplicationVersion(w.browserBundleIdentifiers["Safari Technology Preview"]).then((e=>w.determineFound("Safari Technology Preview",e,"N/A")))},getSafariInfo:()=>{w.log("trace","getSafariInfo");return w.getDarwinApplicationVersion(w.browserBundleIdentifiers.Safari).then((e=>w.determineFound("Safari",e,"N/A")))}},D={getMongoDBInfo:()=>(w.log("trace","getMongoDBInfo"),Promise.all([w.run("mongo --version").then(w.findVersion),w.which("mongo")]).then((e=>w.determineFound("MongoDB",e[0],e[1])))),getMySQLInfo:()=>(w.log("trace","getMySQLInfo"),Promise.all([w.run("mysql --version").then((e=>`${w.findVersion(e,null,1)}${e.includes("MariaDB")?" (MariaDB)":""}`)),w.which("mysql")]).then((e=>w.determineFound("MySQL",e[0],e[1])))),getPostgreSQLInfo:()=>(w.log("trace","getPostgreSQLInfo"),Promise.all([w.run("postgres --version").then(w.findVersion),w.which("postgres")]).then((e=>w.determineFound("PostgreSQL",e[0],e[1])))),getSQLiteInfo:()=>(w.log("trace","getSQLiteInfo"),Promise.all([w.run("sqlite3 --version").then(w.findVersion),w.which("sqlite3")]).then((e=>w.determineFound("SQLite",e[0],e[1]))))},T={getAndroidStudioInfo:()=>{let e=Promise.resolve("N/A");return w.isMacOS?e=w.run(w.generatePlistBuddyCommand(d.join("/","Applications","Android\\ Studio.app","Contents","Info.plist"),["CFBundleShortVersionString","CFBundleVersion"])).then((e=>e||w.run(w.generatePlistBuddyCommand(d.join("~","Applications","JetBrains\\ Toolbox","Android\\ Studio.app","Contents","Info.plist"),["CFBundleShortVersionString","CFBundleVersion"])))).then((e=>e.split("\n").join(" "))):w.isLinux?e=Promise.all([w.run('cat /opt/android-studio/bin/studio.sh | grep "$Home/.AndroidStudio" | head -1').then(w.findVersion),w.run("cat /opt/android-studio/build.txt")]).then((e=>`${e[0]} ${e[1]}`.trim()||w.NotFound)):w.isWindows&&(e=Promise.all([w.run("powershell -command \"(Get-ItemProperty -LiteralPath 'C:\\\\Program Files\\\\Android\\\\Android Studio\\\\bin\\\\studio.exe').VersionInfo | Format-Table -Property FileVersion -HideTableHeaders\"").then((e=>e.replace(/(\r\n|\n|\r)/gm,""))),w.run('type "C:\\\\Program Files\\\\Android\\\\Android Studio\\\\build.txt"').then((e=>e.replace(/(\r\n|\n|\r)/gm,"")))]).then((e=>`${e[0]} ${e[1]}`.trim()||w.NotFound))),e.then((e=>w.determineFound("Android Studio",e)))},getAtomInfo:()=>(w.log("trace","getAtomInfo"),Promise.all([w.getDarwinApplicationVersion(w.ideBundleIdentifiers.Atom),"N/A"]).then((e=>w.determineFound("Atom",e[0],e[1])))),getEmacsInfo:()=>(w.log("trace","getEmacsInfo"),w.isMacOS||w.isLinux?Promise.all([w.run("emacs --version").then(w.findVersion),w.run("which emacs")]).then((e=>w.determineFound("Emacs",e[0],e[1]))):Promise.resolve(["Emacs","N/A"])),getIntelliJInfo:()=>(w.log("trace","getIntelliJInfo"),w.getDarwinApplicationVersion(w.ideBundleIdentifiers.IntelliJ).then((e=>w.determineFound("IntelliJ",e)))),getNanoInfo:()=>(w.log("trace","getNanoInfo"),w.isMacOS||w.isLinux?Promise.all([w.run("nano --version").then(w.findVersion),w.run("which nano")]).then((e=>w.determineFound("Nano",e[0],e[1]))):Promise.resolve(["Nano","N/A"])),getNvimInfo:()=>(w.log("trace","getNvimInfo"),w.isMacOS||w.isLinux?Promise.all([w.run("nvim --version").then(w.findVersion),w.run("which nvim")]).then((e=>w.determineFound("Nvim",e[0],e[1]))):Promise.resolve(["Vim","N/A"])),getPhpStormInfo:()=>(w.log("trace","getPhpStormInfo"),w.getDarwinApplicationVersion(w.ideBundleIdentifiers.PhpStorm).then((e=>w.determineFound("PhpStorm",e)))),getSublimeTextInfo:()=>(w.log("trace","getSublimeTextInfo"),Promise.all([w.run("subl --version").then((e=>w.findVersion(e,/\d+/))),w.which("subl")]).then((e=>""===e[0]&&w.isMacOS?(w.log("trace","getSublimeTextInfo using plist"),Promise.all([w.getDarwinApplicationVersion(w.ideBundleIdentifiers["Sublime Text"]),"N/A"])):e)).then((e=>w.determineFound("Sublime Text",e[0],e[1])))),getVimInfo:()=>(w.log("trace","getVimInfo"),w.isMacOS||w.isLinux?Promise.all([w.run("vim --version").then(w.findVersion),w.run("which vim")]).then((e=>w.determineFound("Vim",e[0],e[1]))):Promise.resolve(["Vim","N/A"])),getVSCodeInfo:()=>(w.log("trace","getVSCodeInfo"),Promise.all([w.run("code --version").then(w.findVersion),w.which("code")]).then((e=>w.determineFound("VSCode",e[0],e[1])))),getVisualStudioInfo:()=>(w.log("trace","getVisualStudioInfo"),w.isWindows?w.run(`"${process.env["ProgramFiles(x86)"]}/Microsoft Visual Studio/Installer/vswhere.exe" -format json -prerelease`).then((e=>{const t=JSON.parse(e).map((e=>({Version:e.installationVersion,DisplayName:e.displayName})));return w.determineFound("Visual Studio",t.map((e=>`${e.Version} (${e.DisplayName})`)))})).catch((()=>Promise.resolve(["Visual Studio",w.NotFound]))):Promise.resolve(["Visual Studio",w.NA])),getWebStormInfo:()=>(w.log("trace","getWebStormInfo"),w.getDarwinApplicationVersion(w.ideBundleIdentifiers.WebStorm).then((e=>w.determineFound("WebStorm",e)))),getXcodeInfo:()=>(w.log("trace","getXcodeInfo"),w.isMacOS?Promise.all([w.which("xcodebuild").then((e=>w.run(e+" -version"))).then((e=>`${w.findVersion(e)}/${e.split("Build version ")[1]}`)),w.which("xcodebuild")]).then((e=>w.determineFound("Xcode",e[0],e[1]))):Promise.resolve(["Xcode","N/A"]))},B={getBashInfo:()=>(w.log("trace","getBashInfo"),Promise.all([w.run("bash --version").then(w.findVersion),w.which("bash")]).then((e=>w.determineFound("Bash",e[0],e[1])))),getElixirInfo:()=>(w.log("trace","getElixirInfo"),Promise.all([w.run("elixir --version").then((e=>w.findVersion(e,/[Elixir]+\s([\d+.[\d+|.]+)/,1))),w.which("elixir")]).then((e=>Promise.resolve(w.determineFound("Elixir",e[0],e[1]))))),getErlangInfo:()=>(w.log("trace","getErlangInfo"),Promise.all([w.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(w.findVersion),w.which("erl")]).then((e=>Promise.resolve(w.determineFound("Erlang",e[0],e[1]))))),getGoInfo:()=>(w.log("trace","getGoInfo"),Promise.all([w.run("go version").then(w.findVersion),w.which("go")]).then((e=>w.determineFound("Go",e[0],e[1])))),getJavaInfo:()=>(w.log("trace","getJavaInfo"),Promise.all([w.run("javac -version",{unify:!0}).then((e=>w.findVersion(e,/\d+\.[\w+|.|_|-]+/))),w.run("which javac")]).then((e=>w.determineFound("Java",e[0],e[1])))),getPerlInfo:()=>(w.log("trace","getPerlInfo"),Promise.all([w.run("perl -v").then(w.findVersion),w.which("perl")]).then((e=>w.determineFound("Perl",e[0],e[1])))),getPHPInfo:()=>(w.log("trace","getPHPInfo"),Promise.all([w.run("php -v").then(w.findVersion),w.which("php")]).then((e=>w.determineFound("PHP",e[0],e[1])))),getProtocInfo:()=>(w.log("trace","getProtocInfo"),Promise.all([w.run("protoc --version").then(w.findVersion),w.run("which protoc")]).then((e=>w.determineFound("Protoc",e[0],e[1])))),getPythonInfo:()=>(w.log("trace","getPythonInfo"),Promise.all([w.run("python -V 2>&1").then(w.findVersion),w.run("which python")]).then((e=>w.determineFound("Python",e[0],e[1])))),getPython3Info:()=>(w.log("trace","getPython3Info"),Promise.all([w.run("python3 -V 2>&1").then(w.findVersion),w.run("which python3")]).then((e=>w.determineFound("Python3",e[0],e[1])))),getRInfo:()=>(w.log("trace","getRInfo"),Promise.all([w.run("R --version",{unify:!0}).then(w.findVersion),w.which("R")]).then((e=>w.determineFound("R",e[0],e[1])))),getRubyInfo:()=>(w.log("trace","getRubyInfo"),Promise.all([w.run("ruby -v").then(w.findVersion),w.which("ruby")]).then((e=>w.determineFound("Ruby",e[0],e[1])))),getRustInfo:()=>(w.log("trace","getRustInfo"),Promise.all([w.run("rustc --version").then(w.findVersion),w.run("which rustc")]).then((e=>w.determineFound("Rust",e[0],e[1])))),getScalaInfo:()=>(w.log("trace","getScalaInfo"),w.isMacOS||w.isLinux?Promise.all([w.run("scalac -version").then(w.findVersion),w.run("which scalac")]).then((e=>w.determineFound("Scala",e[0],e[1]))):Promise.resolve(["Scala","N/A"]))},G={getAptInfo:()=>(w.log("trace","getAptInfo"),w.isLinux?Promise.all([w.run("apt --version").then(w.findVersion),w.which("apt")]).then((e=>w.determineFound("Apt",e[0],e[1]))):Promise.all(["Apt","N/A"])),getCargoInfo:()=>(w.log("trace","getCargoInfo"),Promise.all([w.run("cargo --version").then(w.findVersion),w.which("cargo").then(w.condensePath)]).then((e=>w.determineFound("Cargo",e[0],e[1])))),getCocoaPodsInfo:()=>(w.log("trace","getCocoaPodsInfo"),w.isMacOS?Promise.all([w.run("pod --version").then(w.findVersion),w.which("pod")]).then((e=>w.determineFound("CocoaPods",e[0],e[1]))):Promise.all(["CocoaPods","N/A"])),getComposerInfo:()=>(w.log("trace","getComposerInfo"),Promise.all([w.run("composer --version").then(w.findVersion),w.which("composer").then(w.condensePath)]).then((e=>w.determineFound("Composer",e[0],e[1])))),getGradleInfo:()=>(w.log("trace","getGradleInfo"),Promise.all([w.run("gradle --version").then(w.findVersion),w.which("gradle").then(w.condensePath)]).then((e=>w.determineFound("Gradle",e[0],e[1])))),getHomebrewInfo:()=>(w.log("trace","getHomebrewInfo"),w.isMacOS||w.isLinux?Promise.all([w.run("brew --version").then(w.findVersion),w.which("brew")]).then((e=>w.determineFound("Homebrew",e[0],e[1]))):Promise.all(["Homebrew","N/A"])),getMavenInfo:()=>(w.log("trace","getMavenInfo"),Promise.all([w.run("mvn --version").then(w.findVersion),w.which("mvn").then(w.condensePath)]).then((e=>w.determineFound("Maven",e[0],e[1])))),getpip2Info:()=>(w.log("trace","getpip2Info"),Promise.all([w.run("pip2 --version").then(w.findVersion),w.which("pip2").then(w.condensePath)]).then((e=>w.determineFound("pip2",e[0],e[1])))),getpip3Info:()=>(w.log("trace","getpip3Info"),Promise.all([w.run("pip3 --version").then(w.findVersion),w.which("pip3").then(w.condensePath)]).then((e=>w.determineFound("pip3",e[0],e[1])))),getRubyGemsInfo:()=>(w.log("trace","getRubyGemsInfo"),Promise.all([w.run("gem --version").then(w.findVersion),w.which("gem")]).then((e=>w.determineFound("RubyGems",e[0],e[1])))),getYumInfo:()=>(w.log("trace","getYumInfo"),w.isLinux?Promise.all([w.run("yum --version").then(w.findVersion),w.which("yum")]).then((e=>w.determineFound("Yum",e[0],e[1]))):Promise.all(["Yum","N/A"]))},V={getYarnWorkspacesInfo:()=>(w.log("trace","getYarnWorkspacesInfo"),Promise.all([w.run("yarn -v"),w.getPackageJsonByPath("package.json").then((e=>e&&"workspaces"in e))]).then((e=>{const t="Yarn Workspaces";return e[0]&&e[1]?Promise.resolve([t,e[0]]):Promise.resolve([t,"Not Found"])}))),getLernaInfo:()=>(w.log("trace","getLernaInfo"),Promise.all([w.getPackageJsonByName("lerna").then((e=>e&&e.version)),w.fileExists(d.join(process.cwd(),"lerna.json"))]).then((e=>{const t="Lerna";return e[0]&&e[1]?Promise.resolve([t,e[0]]):Promise.resolve([t,"Not Found"])})))},R=e=>{const t=e.split("node_modules"+d.sep),n=t[t.length-1];return"@"===n.charAt(0)?[n.split(d.sep)[0],n.split(d.sep)[1]].join("/"):n.split(d.sep)[0]};const U={getnpmPackages:function(e,t){w.log("trace","getnpmPackages"),t||(t={});let n=null,r=null;return"string"==typeof e&&(e.includes("*")||e.includes("?")||e.includes("+")||e.includes("!")?n=e:e=e.split(",")),Promise.all(["npmPackages",w.getPackageJsonByPath("package.json").then((e=>Object.assign({},(e||{}).devDependencies||{},(e||{}).dependencies||{}))).then((e=>(r=e,t.fullTree||t.duplicates||n?w.getAllPackageJsonPaths(n):Promise.resolve(Object.keys(e||[]).map((e=>d.join("node_modules",e,"package.json"))))))).then((o=>!n&&"boolean"!=typeof e||t.fullTree?Array.isArray(e)?Promise.resolve((o||[]).filter((t=>e.includes(R(t))))):Promise.resolve(o):Promise.resolve((o||[]).filter((e=>Object.keys(r||[]).includes(R(e))))))).then((e=>Promise.all([e,Promise.all(e.map((e=>w.getPackageJsonByPath(e))))]))).then((e=>{const n=e[0],o=e[1].reduce(((e,r,o)=>r&&r.name?(e[r.name]||(e[r.name]={}),t.duplicates&&(e[r.name].duplicates=w.uniq((e[r.name].duplicates||[]).concat(r.version))),1===(n[o].match(/node_modules/g)||[]).length&&(e[r.name].installed=r.version),e):e),{});return Object.keys(o).forEach((e=>{o[e].duplicates&&o[e].installed&&(o[e].duplicates=o[e].duplicates.filter((t=>t!==o[e].installed))),r[e]&&(o[e].wanted=r[e])})),o})).then((n=>(t.showNotFound&&Array.isArray(e)&&e.forEach((e=>{n[e]||(n[e]="Not Found")})),n))).then((e=>w.sortObject(e)))])},getnpmGlobalPackages:function(e,t){w.log("trace","getnpmGlobalPackages",e);let n=null;return"string"==typeof e?e.includes("*")||e.includes("?")||e.includes("+")||e.includes("!")?n=e:e=e.split(","):Array.isArray(e)||(e=!0),Promise.all(["npmGlobalPackages",w.run("npm get prefix --global").then((e=>new Promise(((t,r)=>i(d.join(e,w.isWindows?"":"lib","node_modules",n||"{*,@*/*}","package.json"),((e,n)=>{e||t(n),r(e)})))))).then((t=>Promise.all(t.filter((t=>"boolean"==typeof e||null!==n||e.includes(R(t)))).map((e=>w.getPackageJsonByFullPath(e)))))).then((e=>e.reduce(((e,t)=>t?Object.assign(e,{[t.name]:t.version}):e),{}))).then((n=>(t.showNotFound&&Array.isArray(e)&&e.forEach((e=>{n[e]||(n[e]="Not Found")})),n)))])}},W={getAndroidSDKInfo:()=>w.run("sdkmanager --list").then((e=>!e&&process.env.ANDROID_HOME?w.run(`${process.env.ANDROID_HOME}/tools/bin/sdkmanager --list`):e)).then((e=>!e&&process.env.ANDROID_HOME?w.run(`${process.env.ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --list`):e)).then((e=>!e&&w.isMacOS?w.run("~/Library/Android/sdk/tools/bin/sdkmanager --list"):e)).then((e=>{const t=w.parseSDKManagerOutput(e),n=e=>{const t=d.join(e,"source.properties");let n;try{n=o.readFileSync(t,"utf8")}catch(e){if("ENOENT"===e.code)return;throw e}const r=n.split("\n");for(let e=0;ew.isMacOS?w.run("xcodebuild -showsdks").then((e=>e.match(/[\w]+\s[\d|.]+/g))).then(w.uniq).then((e=>e.length?["iOS SDK",{Platforms:e}]:["iOS SDK",w.NotFound])):Promise.resolve(["iOS SDK","N/A"]),getWindowsSDKInfo:()=>{if(w.log("trace","getWindowsSDKInfo"),w.isWindows){let e=w.NotFound;return w.run("reg query HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppModelUnlock").then((t=>{e=t.split(/[\r\n]/g).slice(1).filter((e=>""!==e)).reduce(((e,t)=>{let n=t.match(/[^\s]+/g);return"0x0"!==n[2]&&"0x1"!==n[2]||(n[2]="0x1"===n[2]?"Enabled":"Disabled"),e[n[0]]=n[2],e}),{}),0===Object.keys(e).length&&(e=w.NotFound);try{const t=o.readdirSync(`${process.env["ProgramFiles(x86)"]}/Windows Kits/10/Platforms/UAP`);e.Versions=t}catch(e){}return Promise.resolve(["Windows SDK",e])}))}return Promise.resolve(["Windows SDK",w.NA])}},H={getApacheInfo:()=>(w.log("trace","getApacheInfo"),w.isMacOS||w.isLinux?Promise.all([w.run("apachectl -v").then(w.findVersion),w.run("which apachectl")]).then((e=>w.determineFound("Apache",e[0],e[1]))):Promise.resolve(["Apache","N/A"])),getNginxInfo:()=>(w.log("trace","getNginxInfo"),w.isMacOS||w.isLinux?Promise.all([w.run("nginx -v 2>&1").then(w.findVersion),w.run("which nginx")]).then((e=>w.determineFound("Nginx",e[0],e[1]))):Promise.resolve(["Nginx","N/A"]))},z=require("os"),q=new Map([[21,["Monterey","12"]],[20,["Big Sur","11"]],[19,["Catalina","10.15"]],[18,["Mojave","10.14"]],[17,["High Sierra","10.13"]],[16,["Sierra","10.12"]],[15,["El Capitan","10.11"]],[14,["Yosemite","10.10"]],[13,["Mavericks","10.9"]],[12,["Mountain Lion","10.8"]],[11,["Lion","10.7"]],[10,["Snow Leopard","10.6"]],[9,["Leopard","10.5"]],[8,["Tiger","10.4"]],[7,["Panther","10.3"]],[6,["Jaguar","10.2"]],[5,["Puma","10.1"]]]);var K=n(8468);const Y=new Map([["10.0.22","11"],["10.0","10"],["6.3","8.1"],["6.2","8"],["6.1","7"],["6.0","Vista"],["5.2","Server 2003"],["5.1","XP"],["5.0","2000"],["4.90","ME"],["4.10","98"],["4.03","95"],["4.00","95"]]);function J(e,t){if(!e&&t)throw new Error("You can't specify a `release` without specifying `platform`");let n;if("darwin"===(e=e||z.platform())){t||"darwin"!==z.platform()||(t=z.release());const e=t?Number(t.split(".")[0])>15?"macOS":"OS X":"macOS";try{if(n=t?function(e){e=Number((e||z.release()).split(".")[0]);const[t,n]=q.get(e)||["Unknown",""];return{name:t,version:n}}(t).name:"","Unknown"===n)return e}catch{}return e+(n?" "+n:"")}return"linux"===e?(t||"linux"!==z.platform()||(t=z.release()),n=t?t.replace(/^(\d+\.\d+).*/,"$1"):"","Linux"+(n?" "+n:"")):"win32"===e?(t||"win32"!==z.platform()||(t=z.release()),n=t?function(e){const t=/(\d+\.\d+)(?:\.(\d+))?/.exec(e||z.release());if(e&&!t)throw new Error("`release` argument doesn't match `n.n`");let n=t[1]||"";const r=t[2]||"";if((!e||e===z.release())&&["6.1","6.2","6.3","10.0"].includes(n)){let e;try{e=K.sync("wmic",["os","get","Caption"]).stdout||""}catch{e=K.sync("powershell",["(Get-CimInstance -ClassName Win32_OperatingSystem).caption"]).stdout||""}const t=(e.match(/2008|2012|2016|2019/)||[])[0];if(t)return`Server ${t}`}return"10.0"===n&&r.startsWith("22")&&(n="10.0.22"),Y.get(n)}(t):"","Windows"+(n?" "+n:"")):e}const Q={getContainerInfo:()=>(w.log("trace","getContainerInfo"),w.isLinux?Promise.all([w.fileExists("/.dockerenv"),w.readFile("/proc/self/cgroup")]).then((e=>(w.log("trace","getContainerInfoThen",e),Promise.resolve(["Container",e[0]||e[1]?"Yes":"N/A"])))).catch((e=>w.log("trace","getContainerInfoCatch",e))):Promise.resolve(["Container","N/A"])),getCPUInfo:()=>{let e;w.log("trace","getCPUInfo");try{const t=u.cpus();e="("+t.length+") "+u.arch()+" "+t[0].model}catch(t){e="Unknown"}return Promise.all(["CPU",e])},getMemoryInfo:()=>(w.log("trace","getMemoryInfo"),Promise.all(["Memory",`${w.toReadableBytes(u.freemem())} / ${w.toReadableBytes(u.totalmem())}`])),getOSInfo:()=>{let e;return w.log("trace","getOSInfo"),e=w.isMacOS?w.run("sw_vers -productVersion "):w.isLinux?w.run("cat /etc/os-release").then((e=>{const t=(e||"").match(/NAME="(.+)"/)||"",n=(e||"").match(/VERSION="(.+)"/)||["",""],r=null!==n?n[1]:"";return`${t[1]} ${r}`.trim()||""})):w.isWindows?Promise.resolve(u.release()):Promise.resolve(),e.then((e=>{let t=J(u.platform(),u.release());return e&&(t+=` ${e}`),["OS",t]}))},getShellInfo:()=>{if(w.log("trace","getShellInfo",process.env),w.isMacOS||w.isLinux){const e=process.env.SHELL||w.runSync("getent passwd $LOGNAME | cut -d: -f7 | head -1");let t=`${e} --version 2>&1`;return e.match("/bin/ash")&&(t=`${e} --help 2>&1`),Promise.all([w.run(t).then(w.findVersion),w.which(e)]).then((e=>w.determineFound("Shell",e[0]||"Unknown",e[1])))}return Promise.resolve(["Shell","N/A"])},getGLibcInfo:()=>(w.log("trace","getGLibc"),w.isLinux?Promise.all([w.run("ldd --version").then(w.findVersion)]).then((e=>w.determineFound("GLibc",e[0]||"Unknown"))):Promise.resolve(["GLibc","N/A"]))},X={getBazelInfo:()=>(w.log("trace","getBazelInfo"),Promise.all([w.run("bazel --version").then(w.findVersion),w.run("which bazel")]).then((e=>w.determineFound("Bazel",e[0],e[1])))),getCMakeInfo:()=>(w.log("trace","getCMakeInfo"),Promise.all([w.run("cmake --version").then(w.findVersion),w.run("which cmake")]).then((e=>w.determineFound("CMake",e[0],e[1])))),getGCCInfo:()=>(w.log("trace","getGCCInfo"),w.isMacOS||w.isLinux?Promise.all([w.run("gcc -v 2>&1").then(w.findVersion),w.run("which gcc")]).then((e=>w.determineFound("GCC",e[0],e[1]))):Promise.resolve(["GCC","N/A"])),getClangInfo:()=>(w.log("trace","getClangInfo"),Promise.all([w.run("clang --version").then(w.findVersion),w.which("clang")]).then((e=>w.determineFound("Clang",e[0],e[1])))),getGitInfo:()=>(w.log("trace","getGitInfo"),Promise.all([w.run("git --version").then(w.findVersion),w.run("which git")]).then((e=>w.determineFound("Git",e[0],e[1])))),getMakeInfo:()=>(w.log("trace","getMakeInfo"),w.isMacOS||w.isLinux?Promise.all([w.run("make --version").then(w.findVersion),w.run("which make")]).then((e=>w.determineFound("Make",e[0],e[1]))):Promise.resolve(["Make","N/A"])),getNinjaInfo:()=>(w.log("trace","getNinjaInfo"),Promise.all([w.run("ninja --version").then(w.findVersion),w.run("which ninja")]).then((e=>w.determineFound("Ninja",e[0],e[1])))),getMercurialInfo:()=>(w.log("trace","getMercurialInfo"),w.isMacOS||w.isLinux?Promise.all([w.run("hg --version").then(w.findVersion),w.run("which hg")]).then((e=>w.determineFound("Mercurial",e[0],e[1]))):Promise.resolve(["Mercurial","N/A"])),getSubversionInfo:()=>(w.log("trace","getSubversionInfo"),w.isMacOS||w.isLinux?Promise.all([w.run("svn --version").then(w.findVersion),w.run("which svn")]).then((e=>w.determineFound("Subversion",e[0],e[1]))):Promise.resolve(["Subversion","N/A"])),getFFmpegInfo:()=>(w.log("trace","getFFmpegInfo"),Promise.all([w.run("ffmpeg -version").then(w.findVersion),w.which("ffmpeg")]).then((e=>w.determineFound("FFmpeg",e[0],e[1]))))},Z={getDockerInfo:()=>(w.log("trace","getDockerInfo"),Promise.all([w.run("docker --version").then(w.findVersion),w.which("docker")]).then((e=>w.determineFound("Docker",e[0],e[1])))),getParallelsInfo:()=>(w.log("trace","getParallelsInfo"),Promise.all([w.run("prlctl --version").then(w.findVersion),w.which("prlctl")]).then((e=>w.determineFound("Parallels",e[0],e[1])))),getVirtualBoxInfo:()=>(w.log("trace","getVirtualBoxInfo"),Promise.all([w.run("vboxmanage --version").then(w.findVersion),w.which("vboxmanage")]).then((e=>w.determineFound("VirtualBox",e[0],e[1])))),getVMwareFusionInfo:()=>(w.log("trace","getVMwareFusionInfo"),w.getDarwinApplicationVersion("com.vmware.fusion").then((e=>w.determineFound("VMWare Fusion",e,"N/A"))))},ee=Object.assign({},w,U,{...M,...L,...D,...T,...B,...G,...V,...W,...H,...Q,...X,...Z}),te={defaults:{System:["OS","CPU","Memory","Container","Shell"],Binaries:["Node","Yarn","npm","Watchman"],Managers:["Apt","Cargo","CocoaPods","Composer","Gradle","Homebrew","Maven","pip2","pip3","RubyGems","Yum"],Utilities:["Bazel","CMake","Make","GCC","Git","Clang","Ninja","Mercurial","Subversion","FFmpeg"],Servers:["Apache","Nginx"],Virtualization:["Docker","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"],npmPackages:["jest"]},"react-native":{System:["OS","CPU"],Binaries:["Node","Yarn","npm","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"],npmPackages:"/**/{*babel*,@babel/*/,*istanbul*,nyc,source-map-support,typescript,ts-node}"},webpack:{System:["OS","CPU"],Binaries:["Node","Yarn","npm"],npmPackages:"*webpack*",npmGlobalPackages:["webpack","webpack-cli"]},"styled-components":{System:["OS","CPU"],Binaries:["Node","Yarn","npm"],Browsers:["Chrome","Firefox","Safari"],npmPackages:"*styled-components*"},"create-react-app":{System:["OS","CPU"],Binaries:["Node","npm","Yarn"],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"],Browsers:["Chrome","Edge","Firefox","Safari"],npmPackages:"{*apollo*,@apollo/*}",npmGlobalPackages:"{*apollo*,@apollo/*}"},"react-native-web":{System:["OS","CPU"],Binaries:["Node","npm","Yarn"],Browsers:["Chrome","Edge","Internet Explorer","Firefox","Safari"],npmPackages:["react","react-native-web"],options:{showNotFound:!0}},babel:{System:["OS"],Binaries:["Node","npm","Yarn"],Monorepos:["Yarn Workspaces","Lerna"],npmPackages:"{*babel*,@babel/*,eslint,webpack,create-react-app,react-native,lerna,jest}"},playwright:{System:["OS","Memory","Container"],Binaries:["Node","Yarn","npm"],Languages:["Bash"],npmPackages:"playwright*"}};function ne(e,t){(t=t||{}).clipboard&&console.log("\n*** Clipboard option removed - use clipboardy or clipboard-cli directly ***\n");const n=Object.keys(e).length>0?e:te.defaults,r=Object.entries(n).reduce(((e,n)=>{const r=n[0],o=n[1],i=ee[`get${r}`];return i?(o&&e.push(i(o,t)),e):e=e.concat((o||[]).map((e=>{const t=ee[`get${e.replace(/\s/g,"")}Info`];return t?t():Promise.resolve(["Unknown"])})))}),[]);return Promise.all(r).then((e=>{const n=e.reduce(((e,t)=>(t&&t[0]&&Object.assign(e,{[t[0]]:t}),e)),{});return function(e,t){const n=t.json?N:t.markdown?$:F;if(t.console){let r=!1;process.stdout.isTTY&&(r=!0),console.log(n(e,Object.assign({},t,{console:r})))}return n(e,Object.assign({},t,{console:!1}))}(Object.entries(te.defaults).reduce(((e,t)=>{const r=t[0],o=t[1];return n[r]?Object.assign(e,{[r]:n[r][1]}):Object.assign(e,{[r]:(o||[]).reduce(((e,t)=>n[t]?(n[t].shift(),1===n[t].length?Object.assign(e,{[t]:n[t][0]}):Object.assign(e,{[t]:{version:n[t][0],path:n[t][1]}})):e),{})})}),{}),t)}))}const re={cli:function(e){if(e.all)return ne(Object.assign({},te.defaults,{npmPackages:!0,npmGlobalPackages:!0}),e);if(e.raw)return ne(JSON.parse(e.raw),e);if(e.helper){const t=ee[`get${e.helper}`]||ee[`get${e.helper}Info`]||ee[e.helper];return t?t().then(console.log):console.error("Not Found")}const t=(e,t)=>e.toLowerCase().includes(t.toLowerCase()),n=Object.keys(e).filter((e=>Object.keys(te.defaults).some((n=>t(n,e))))),r=Object.entries(te.defaults).reduce(((r,o)=>n.some((e=>t(e,o[0])))?Object.assign(r,{[o[0]]:o[1]||e[o[0]]}):r),{});return e.preset?te[e.preset]?ne(Object.assign({},w.omit(te[e.preset],["options"]),r),Object.assign({},te[e.preset].options,w.pick(e,["duplicates","fullTree","json","markdown","console"]))):console.error(`\nNo "${e.preset}" preset found.`):ne(r,e)},helpers:ee,main:ne,run:function(e,t){return"string"==typeof e.preset?ne(te[e.preset],t):ne(e,t)}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";var e=n(9795);class t extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace(this,t)}}let r,o=[];function i(e,n,a,c){r=c;let l={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if("string"!=typeof e.extends)return l;const s=/\.json|\..*rc$/.test(e.extends);let c=null;if(s)c=function(e,t){return r.path.resolve(e,t)}(n,e.extends);else try{c=require.resolve(e.extends)}catch(t){return e}!function(e){if(o.indexOf(e)>-1)throw new t(`Circular extended configurations: '${e}'.`)}(c),o.push(c),l=s?JSON.parse(r.readFileSync(c,"utf8")):require(e.extends),delete e.extends,l=i(l,r.path.dirname(c),a,r)}return o=[],a?s(l,e):Object.assign({},l,e)}function s(e,t){const n={};function r(e){return e&&"object"==typeof e&&!Array.isArray(e)}Object.assign(n,e);for(const o of Object.keys(t))r(t[o])&&r(n[o])?n[o]=s(e[o],t[o]):n[o]=t[o];return n}function a(){return process.versions.electron&&!process.defaultApp?0:1}var c,l=n(3837),u=n(7147),d=n(1017);
+/**
+ * @license
+ * Copyright (c) 2016, Contributors
+ * SPDX-License-Identifier: ISC
+ */
+function f(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),-1===e.indexOf("-")&&-1===e.indexOf("_"))return e;{let t="",n=!1;const r=e.match(/^-+/);for(let o=r?r[0].length:0;o0?`${t}${n.charAt(o)}`:s}return r}function h(e){return null!=e&&("number"==typeof e||(!!/^0x[0-9a-f]+$/i.test(e)||!/^0[^.]/.test(e)&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)))}
+/**
+ * @license
+ * Copyright (c) 2016, Contributors
+ * SPDX-License-Identifier: ISC
+ */
+let g;!function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"}(c||(c={}));function m(e){return void 0!==e?e+1:1}function y(e){return"__proto__"===e?"___proto___":e}
+/**
+ * @fileoverview Main entrypoint for libraries using yargs-parser in Node.js
+ * CJS and ESM environments.
+ *
+ * @license
+ * Copyright (c) 2016, Contributors
+ * SPDX-License-Identifier: ISC
+ */
+const b=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):10;if(process&&process.version){if(Number(process.version.match(/v([^.]+)/)[1])"string"!=typeof e?e+"":e));e=e.trim();let t=0,n=null,r=null,o=null;const i=[];for(let s=0;s{"number"==typeof t&&(O.nargs[e]=t,O.keys.push(e))})),"object"==typeof n.coerce&&Object.entries(n.coerce).forEach((([e,t])=>{"function"==typeof t&&(O.coercions[e]=t,O.keys.push(e))})),void 0!==n.config&&(Array.isArray(n.config)||"string"==typeof n.config?[].concat(n.config).filter(Boolean).forEach((function(e){O.configs[e]=!0})):"object"==typeof n.config&&Object.entries(n.config).forEach((([e,t])=>{"boolean"!=typeof t&&"function"!=typeof t||(O.configs[e]=t)}))),function(...e){e.forEach((function(e){Object.keys(e||{}).forEach((function(e){O.aliases[e]||(O.aliases[e]=[].concat(o[e]||[]),O.aliases[e].concat(e).forEach((function(t){if(/-/.test(t)&&i["camel-case-expansion"]){const n=f(t);n!==e&&-1===O.aliases[e].indexOf(n)&&(O.aliases[e].push(n),b[n]=!0)}})),O.aliases[e].concat(e).forEach((function(t){if(t.length>1&&/[A-Z]/.test(t)&&i["camel-case-expansion"]){const n=p(t,"-");n!==e&&-1===O.aliases[e].indexOf(n)&&(O.aliases[e].push(n),b[n]=!0)}})),O.aliases[e].forEach((function(t){O.aliases[t]=[e].concat(O.aliases[e].filter((function(e){return t!==e})))})))}))}))}(n.key,o,n.default,O.arrays),Object.keys(s).forEach((function(e){(O.aliases[e]||[]).forEach((function(t){s[t]=s[e]}))}));let E=null;Object.keys(O.counts).find((e=>G(e,O.arrays)?(E=Error(w("Invalid configuration: %s, opts.count excludes opts.array.",e)),!0):!!G(e,O.nargs)&&(E=Error(w("Invalid configuration: %s, opts.count excludes opts.narg.",e)),!0)));let P=[];const A=Object.assign(Object.create(null),{_:[]}),j={};for(let e=0;e=3&&(G(c[1],O.arrays)?e=k(e,c[1],r,c[2]):!1!==G(c[1],O.nargs)?e=I(e,c[1],r,c[2]):C(c[1],c[2]));else if(t.match(S)&&i["boolean-negation"])c=t.match(S),null!==c&&Array.isArray(c)&&c.length>=2&&(s=c[1],C(s,!!G(s,O.arrays)&&[!1]));else if(t.match(/^--.+/)||!i["short-option-groups"]&&t.match(/^-[^-]+/))c=t.match(/^--?(.+)/),null!==c&&Array.isArray(c)&&c.length>=2&&(s=c[1],G(s,O.arrays)?e=k(e,s,r):!1!==G(s,O.nargs)?e=I(e,s,r):(l=r[e+1],void 0===l||l.match(/^-/)&&!l.match(x)||G(s,O.bools)||G(s,O.counts)?/^(true|false)$/.test(l)?(C(s,l),e++):C(s,U(s)):(C(s,l),e++)));else if(t.match(/^-.\..+=/))c=t.match(/^-([^=]+)=([\s\S]*)$/),null!==c&&Array.isArray(c)&&c.length>=3&&C(c[1],c[2]);else if(t.match(/^-.\..+/)&&!t.match(x))l=r[e+1],c=t.match(/^-(.\..+)/),null!==c&&Array.isArray(c)&&c.length>=2&&(s=c[1],void 0===l||l.match(/^-/)||G(s,O.bools)||G(s,O.counts)?C(s,U(s)):(C(s,l),e++));else if(t.match(/^-[^-]+/)&&!t.match(x)){a=t.slice(1,-1).split(""),o=!1;for(let n=0;n0&&(C(t,r),c--),o=e+1;o0||c&&"number"==typeof c&&o.length>=c)&&(a=n[r],!/^-/.test(a)||x.test(a)||R(a));r++)e=r,o.push($(t,a))}return"number"==typeof c&&(c&&o.length1&&i["dot-notation"]&&(O.aliases[r[0]]||[]).forEach((function(t){let o=t.split(".");const i=[].concat(r);i.shift(),o=o.concat(i),(O.aliases[e]||[]).includes(o.join("."))||B(A,o,n)})),G(e,O.normalize)&&!G(e,O.arrays)){[e].concat(O.aliases[e]||[]).forEach((function(e){Object.defineProperty(j,e,{enumerable:!0,get:()=>t,set(e){t="string"==typeof e?g.normalize(e):e}})}))}}function N(e,t){O.aliases[e]&&O.aliases[e].length||(O.aliases[e]=[t],b[t]=!0),O.aliases[t]&&O.aliases[t].length||N(t,e)}function $(e,t){"string"!=typeof t||"'"!==t[0]&&'"'!==t[0]||t[t.length-1]!==t[0]||(t=t.substring(1,t.length-1)),(G(e,O.bools)||G(e,O.counts))&&"string"==typeof t&&(t="true"===t);let n=Array.isArray(t)?t.map((function(t){return F(e,t)})):F(e,t);return G(e,O.counts)&&(W(n)||"boolean"==typeof n)&&(n=m()),G(e,O.normalize)&&G(e,O.arrays)&&(n=Array.isArray(t)?t.map((e=>g.normalize(e))):g.normalize(t)),n}function F(e,t){if(!i["parse-positional-numbers"]&&"_"===e)return t;if(!G(e,O.strings)&&!G(e,O.bools)&&!Array.isArray(t)){(h(t)&&i["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))||!W(t)&&G(e,O.numbers))&&(t=Number(t))}return t}function M(e,t){Object.keys(e).forEach((function(n){const r=e[n],o=t?t+"."+n:n;"object"==typeof r&&null!==r&&!Array.isArray(r)&&i["dot-notation"]?M(r,o):(!T(A,o.split("."))||G(o,O.arrays)&&i["combine-arrays"])&&C(o,r)}))}function L(e,t){if(void 0===l)return;const n="string"==typeof l?l:"",r=g.env();Object.keys(r).forEach((function(o){if(""===n||0===o.lastIndexOf(n,0)){const i=o.split("__").map((function(e,t){return 0===t&&(e=e.substring(n.length)),f(e)}));(t&&O.configs[i.join(".")]||!t)&&!T(e,i)&&C(i.join("."),r[o])}}))}function D(e,t,n,r=!1){Object.keys(n).forEach((function(o){T(e,o.split("."))||(B(e,o.split("."),n[o]),r&&(v[o]=!0),(t[o]||[]).forEach((function(t){T(e,t.split("."))||B(e,t.split("."),n[o])})))}))}function T(e,t){let n=e;i["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){n=n[e]||{}}));const r=t[t.length-1];return"object"==typeof n&&r in n}function B(e,t,n){let r=e;i["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){e=y(e),"object"==typeof r&&void 0===r[e]&&(r[e]={}),"object"!=typeof r[e]||Array.isArray(r[e])?(Array.isArray(r[e])?r[e].push({}):r[e]=[r[e],{}],r=r[e][r[e].length-1]):r=r[e]}));const o=y(t[t.length-1]),s=G(t.join("."),O.arrays),a=Array.isArray(n);let c=i["duplicate-arguments-array"];!c&&G(o,O.nargs)&&(c=!0,(!W(r[o])&&1===O.nargs[o]||Array.isArray(r[o])&&r[o].length===O.nargs[o])&&(r[o]=void 0)),n===m()?r[o]=m(r[o]):Array.isArray(r[o])?c&&s&&a?r[o]=i["flatten-duplicate-arrays"]?r[o].concat(n):(Array.isArray(r[o][0])?r[o]:[r[o]]).concat([n]):c||Boolean(s)!==Boolean(a)?r[o]=r[o].concat([n]):r[o]=n:void 0===r[o]&&s?r[o]=a?n:[n]:!c||void 0===r[o]||G(o,O.counts)||G(o,O.bools)?r[o]=n:r[o]=[r[o],n]}function G(e,t){const n=[].concat(O.aliases[e]||[],e),r=Object.keys(t),o=n.find((e=>r.includes(e)));return!!o&&t[o]}function V(e){const t=Object.keys(O);return[].concat(t.map((e=>O[e]))).some((function(t){return Array.isArray(t)?t.includes(e):t[e]}))}function R(e){return i["unknown-options-as-args"]&&function(e){if((e=e.replace(/^-{3,}/,"--")).match(x))return!1;if(function(e){if(e.match(x)||!e.match(/^-[^-]+/))return!1;let t,n=!0;const r=e.slice(1).split("");for(let o=0;o{n.add(t),e[t]=o}))}catch(e){E=e}}))}(A),i["set-placeholder-key"]&&function(e){O.keys.forEach((t=>{~t.indexOf(".")||void 0===e[t]&&(e[t]=void 0)}))}(A),Object.keys(O.counts).forEach((function(e){T(A,e.split("."))||C(e,0)})),u&&P.length&&(A[d]=[]),P.forEach((function(e){A[d].push(e)})),i["camel-case-expansion"]&&i["strip-dashed"]&&Object.keys(A).filter((e=>"--"!==e&&e.includes("-"))).forEach((e=>{delete A[e]})),i["strip-aliased"]&&[].concat(...Object.keys(o).map((e=>o[e]))).forEach((e=>{i["camel-case-expansion"]&&e.includes("-")&&delete A[e.split(".").map((e=>f(e))).join(".")],delete A[e]})),{aliases:Object.assign({},O.aliases),argv:Object.assign(j,A),configuration:i,defaulted:Object.assign({},v),error:E,newAliases:Object.assign({},b)}}}({cwd:process.cwd,env:()=>v,format:l.format,normalize:d.normalize,resolve:d.resolve,require:e=>{if("undefined"!=typeof require)return require(e);if(e.match(/\.json$/))return(0,u.readFileSync)(e,"utf8");throw Error("only .json config files are supported in ESM")}}),O=function(e,t){return w.parse(e.slice(),t).argv};O.detailed=function(e,t){return w.parse(e.slice(),t)},O.camelCase=f,O.decamelize=p,O.looksLikeNumber=h;const x=O;var S=n(9491);const E={right:function(e,t){e=e.trim();const n=j.stringWidth(e);if(n=t)return e;return" ".repeat(t-n>>1)+e}};class P{constructor(e){var t;this.width=e.width,this.wrap=null===(t=e.wrap)||void 0===t||t,this.rows=[]}span(...e){this.div(...e).span=!0}resetOutput(){this.rows=[]}div(...e){if(0===e.length&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&"string"==typeof e[0])return this.applyLayoutDSL(e[0]);const t=e.map((e=>"string"==typeof e?this.colFromString(e):e));return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return 1===e.length&&"string"==typeof e[0]&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){const t=e.split("\n").map((e=>e.split("\t")));let n=0;return t.forEach((e=>{e.length>1&&j.stringWidth(e[0])>n&&(n=Math.min(Math.floor(.5*this.width),j.stringWidth(e[0])))})),t.forEach((e=>{this.div(...e.map(((t,r)=>({text:t.trim(),padding:this.measurePadding(t),width:0===r&&e.length>1?n:void 0}))))})),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){const t=j.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){const e=[];return this.rows.forEach((t=>{this.rowToString(t,e)})),e.filter((e=>!e.hidden)).map((e=>e.text)).join("\n")}rowToString(e,t){return this.rasterize(e).forEach(((n,r)=>{let o="";n.forEach(((n,i)=>{const{width:s}=e[i],a=this.negatePadding(e[i]);let c=n;if(a>j.stringWidth(n)&&(c+=" ".repeat(a-j.stringWidth(n))),e[i].align&&"left"!==e[i].align&&this.wrap){c=(0,E[e[i].align])(c,a),j.stringWidth(c)0&&(o=this.renderInline(o,t[t.length-1]))})),t.push({text:o.replace(/ +$/,""),span:e.span})})),t}renderInline(e,t){const n=e.match(/^ */),r=n?n[0].length:0,o=t.text,i=j.stringWidth(o.trimRight());return t.span?this.wrap?r{e.width=n[o],r=this.wrap?j.wrap(e.text,this.negatePadding(e),{hard:!0}).split("\n"):e.text.split("\n"),e.border&&(r.unshift("."+"-".repeat(this.negatePadding(e)+2)+"."),r.push("'"+"-".repeat(this.negatePadding(e)+2)+"'")),e.padding&&(r.unshift(...new Array(e.padding[0]||0).fill("")),r.push(...new Array(e.padding[2]||0).fill(""))),r.forEach(((e,n)=>{t[n]||t.push([]);const r=t[n];for(let e=0;ee.width||j.stringWidth(e.text)));let t=e.length,n=this.width;const r=e.map((e=>{if(e.width)return t--,n-=e.width,e.width})),o=t?Math.floor(n/t):0;return r.map(((t,n)=>void 0===t?Math.max(o,function(e){const t=e.padding||[],n=1+(t[3]||0)+(t[1]||0);if(e.border)return n+4;return n}(e[n])):t))}}function A(e,t,n){return e.border?/[.']-+[.']/.test(t)?"":0!==t.trim().length?n:" ":""}let j;const _=new RegExp("(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function I(e){return e.replace(_,"")}function k(e,t){const[n,r]=e.match(_)||["",""];e=I(e);let o="";for(let n=0;n{try{return(0,u.statSync)(e).isFile()}catch(e){return!1}}};let $;class F{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles="boolean"!=typeof e.updateFiles||e.updateFiles,this.locale=e.locale||"en",this.fallbackToLanguage="boolean"!=typeof e.fallbackToLanguage||e.fallbackToLanguage,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if("string"!=typeof arguments[0])return this._taggedLiteral(arguments[0],...arguments);const t=e.shift();let n=function(){};return"function"==typeof e[e.length-1]&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),$.format.apply($.format,[this.cache[this.locale][t]||t].concat(e))}__n(){const e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),r=e.shift();let o=function(){};"function"==typeof e[e.length-1]&&(o=e.pop()),this.cache[this.locale]||this._readLocaleFile();let i=1===r?t:n;if(this.cache[this.locale][t]){i=this.cache[this.locale][t][1===r?"one":"other"]}!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:o})):o();const s=[i];return~i.indexOf("%d")&&s.push(r),$.format.apply($.format,s.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n="";return e.forEach((function(e,r){const o=t[r+1];n+=e,void 0!==o&&(n+="%s")})),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),1===this.writeQueue.length&&this._processWriteQueue()}_processWriteQueue(){const e=this,t=this.writeQueue[0],n=t.directory,r=t.locale,o=t.cb,i=this._resolveLocaleFile(n,r),s=JSON.stringify(this.cache[r],null,2);$.fs.writeFile(i,s,"utf-8",(function(t){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),o(t)}))}_readLocaleFile(){let e={};const t=this._resolveLocaleFile(this.directory,this.locale);try{$.fs.readFileSync&&(e=JSON.parse($.fs.readFileSync(t,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+t),"ENOENT"!==n.code)throw n;e={}}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=$.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){const r=$.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(r)&&(n=r)}return n}_fileExistsSync(e){return $.exists(e)}}const M=e=>function(e,t){$=t;const n=new F(e);return{__:n.__.bind(n),__n:n.__n.bind(n),setLocale:n.setLocale.bind(n),getLocale:n.getLocale.bind(n),updateLocale:n.updateLocale.bind(n),locale:n.locale}}(e,N),L="loading a directory of commands is not supported yet for ESM",D=(0,C.fileURLToPath)("file:///C:/Users/harry/Code/envinfo/node_modules/yargs/lib/platform-shims/esm.mjs").split("node_modules")[0],T=(0,C.fileURLToPath)("file:///C:/Users/harry/Code/envinfo/node_modules/yargs/lib/platform-shims/esm.mjs"),B={assert:{notStrictEqual:S.notStrictEqual,strictEqual:S.strictEqual},cliui:function(e){return function(e,t){return j=t,new P({width:(null==e?void 0:e.width)||("object"==typeof process&&process.stdout&&process.stdout.columns?process.stdout.columns:80),wrap:null==e?void 0:e.wrap})}(e,{stringWidth:e=>[...e].length,stripAnsi:I,wrap:k})},findUp:function(e,t){let n,r=(0,d.resolve)(".",e);for((0,u.statSync)(r).isDirectory()||(r=(0,d.dirname)(r));;){if(n=t(r,(0,u.readdirSync)(r)),n)return(0,d.resolve)(r,n);if(r=(0,d.dirname)(n=r),n===r)break}},getEnv:e=>process.env[e],inspect:l.inspect,getCallerFile:()=>{throw new t(L)},getProcessArgvBin:function(){return process.argv[a()]},mainFilename:D||process.cwd(),Parser:x,path:{basename:d.basename,dirname:d.dirname,extname:d.extname,relative:d.relative,resolve:d.resolve},process:{argv:()=>process.argv,cwd:process.cwd,execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:void 0!==process.stdout.columns?process.stdout.columns:null},readFileSync:u.readFileSync,require:()=>{throw new t("require is not supported by ESM")},requireDirectory:()=>{throw new t(L)},stringWidth:e=>[...e].length,y18n:M({directory:(0,d.resolve)(T,"../../../locales"),updateFiles:!1})};function G(e,t,n,r){n.assert.notStrictEqual(e,t,r)}function V(e,t){t.assert.strictEqual(typeof e,"string")}function R(e){return Object.keys(e)}function U(e){return!!e&&!!e.then&&"function"==typeof e.then}function W(e){const t=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,r=t.shift();if(!r)throw new Error(`No command found in: ${e}`);const o={cmd:r.replace(n,""),demanded:[],optional:[]};return t.forEach(((e,r)=>{let i=!1;e=e.replace(/\s/g,""),/\.+[\]>]/.test(e)&&r===t.length-1&&(i=!0),/^\[/.test(e)?o.optional.push({cmd:e.replace(n,"").split("|"),variadic:i}):o.demanded.push({cmd:e.replace(n,"").split("|"),variadic:i})})),o}const H=["first","second","third","fourth","fifth","sixth"];function z(e,n,r){try{let o=0;const[i,s,a]="object"==typeof e?[{demanded:[],optional:[]},e,n]:[W(`cmd ${e}`),n,r],c=[].slice.call(s);for(;c.length&&void 0===c[c.length-1];)c.pop();const l=a||c.length;if(lu)throw new t(`Too many arguments provided. Expected max ${u} but received ${l}.`);i.demanded.forEach((e=>{const t=q(c.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&K(t,e.cmd,o),o+=1})),i.optional.forEach((e=>{if(0===c.length)return;const t=q(c.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&K(t,e.cmd,o),o+=1}))}catch(e){console.warn(e.stack)}}function q(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function K(e,n,r){throw new t(`Invalid ${H[r]||"manyith"} argument. Expected ${n.join(" or ")} but received ${e}.`)}function Y(e,t,n,r){const o=new Error("middleware cannot return a promise when applyBeforeValidation is true");return n.reduce(((e,n)=>{if(n.applyBeforeValidation!==r)return e;if(U(e))return e.then((e=>Promise.all([e,n(e,t)]))).then((([e,t])=>Object.assign(e,t)));{const i=n(e,t);if(r&&U(i))throw o;return U(i)?i.then((t=>Object.assign(e,t))):Object.assign(e,i)}}),e)}const J=/(^\*)|(^\$0)/;function Q(e,t,n,r=[],o){const i={};let s,a={},c={};function l(e){return!e.getUsageInstance().getUsageDisabled()&&0===e.getUsageInstance().getUsage().length}function u(e,t){const n=J.test(t.original)?t.original.replace(J,"").trim():t.original,r=e.filter((e=>!J.test(e)));return r.push(n),`$0 ${r.join(" ")}`}function d(e,t,n){const r=e.cmd[0];e.variadic?n[r]=t._.splice(0).map(String):t._.length&&(n[r]=[String(t._.shift())])}function f(t,n,r){const i=Object.assign({},e.getOptions());i.default=Object.assign(r.default,i.default);for(const e of Object.keys(r.alias))i.alias[e]=(i.alias[e]||[]).concat(r.alias[e]);i.array=i.array.concat(r.array),i.config={};const s=[];if(Object.keys(n).forEach((e=>{n[e].map((t=>{i.configuration["unknown-options-as-args"]&&(i.key[e]=!0),s.push(`--${e}`),s.push(t)}))})),!s.length)return;const a=Object.assign({},i.configuration,{"populate--":!0}),c=o.Parser.detailed(s,Object.assign({},i,{configuration:a}));if(c.error)e.getUsageInstance().fail(c.error.message,c.error);else{const e=Object.keys(n);Object.keys(n).forEach((t=>{e.push(...c.aliases[t])})),Object.keys(c.argv).forEach((r=>{-1!==e.indexOf(r)&&(n[r]||(n[r]=c.argv[r]),t[r]=c.argv[r])}))}}i.addHandler=function(e,n,r,l,u,d){let f=[];const p=function(e){return e?e.map((e=>(e.applyBeforeValidation=!1,e))):[]}(u);if(l=l||(()=>{}),Array.isArray(e))if(function(e){return!!e.every((e=>"string"==typeof e))}(e))[e,...f]=e;else for(const t of e)i.addHandler(t);else{if(function(e){return"object"==typeof e&&!Array.isArray(e)}(e)){let t=Array.isArray(e.command)||"string"==typeof e.command?e.command:function(e){const t=function(e){if("undefined"==typeof require)return null;for(let t,n=0,r=Object.keys(require.cache);nW(e).cmd));let i=!1;const u=[o.cmd].concat(f).filter((e=>!J.test(e)||(i=!0,!1)));0===u.length&&i&&u.push("$0"),i&&(o.cmd=u[0],f=u.slice(1),e=e.replace(J,o.cmd)),f.forEach((e=>{c[e]=o.cmd})),!1!==n&&t.command(e,n,i,f,d),a[o.cmd]={original:e,description:n,handler:l,builder:r||{},middlewares:p,deprecated:d,demanded:o.demanded,optional:o.optional},i&&(s=a[o.cmd])}},i.addDirectory=function(e,t,n,r,s){"boolean"!=typeof(s=s||{}).recurse&&(s.recurse=!1),Array.isArray(s.extensions)||(s.extensions=["js"]);const a="function"==typeof s.visit?s.visit:e=>e;s.visit=function(e,n,r){const o=a(e,n,r);if(o){if(~t.files.indexOf(n))return o;t.files.push(n),i.addHandler(o)}return o},o.requireDirectory({require:n,filename:r},e,s)},i.getCommands=()=>Object.keys(a).concat(Object.keys(c)),i.getCommandHandlers=()=>a,i.hasDefaultCommand=()=>!!s,i.runCommand=function(e,t,o,p){let h=o.aliases;const g=a[e]||a[c[e]]||s,m=t.getContext();let y=m.files.length;const b=m.commands.slice();let v=o.argv,w={};e&&(m.commands.push(e),m.fullCommands.push(g.original));const O=g.builder;if(Z(O)){const e=O(t.reset(o.aliases)),n=(x=e)&&"function"==typeof x._parseArgs?e:t;l(n)&&n.getUsageInstance().usage(u(b,g),g.description),v=n._parseArgs(null,null,!0,p),h=n.parsed.aliases}else if(function(e){return"object"==typeof e}(O)){const e=t.reset(o.aliases);l(e)&&e.getUsageInstance().usage(u(b,g),g.description),Object.keys(g.builder).forEach((t=>{e.option(t,O[t])})),v=e._parseArgs(null,null,!0,p),h=e.parsed.aliases}var x;t._hasOutput()||(w=function(e,t,r){t._=t._.slice(r.commands.length);const o=e.demanded.slice(0),s=e.optional.slice(0),a={};n.positionalCount(o.length,t._.length);for(;o.length;){d(o.shift(),t,a)}for(;s.length;){d(s.shift(),t,a)}return t._=r.commands.concat(t._.map((e=>""+e))),f(t,a,i.cmdToParseOptions(e.original)),a}(g,v,m));const S=r.slice(0).concat(g.middlewares);if(Y(v,t,S,!0),t._hasOutput()||t._runValidation(v,h,w,t.parsed.error,!e),g.handler&&!t._hasOutput()){t._setHasOutput();const e=!!t.getOptions().configuration["populate--"];let n;t._postProcess(v,e),v=Y(v,t,S,!1),n=U(v)?v.then((e=>g.handler(e))):g.handler(v);const r=t.getHandlerFinishCommand();U(n)?(t.getUsageInstance().cacheHelpMessage(),n.then((e=>{r&&r(e)})).catch((e=>{try{t.getUsageInstance().fail(null,e)}catch(e){}})).then((()=>{t.getUsageInstance().clearCachedHelpMessage()}))):r&&r(n)}return e&&(m.commands.pop(),m.fullCommands.pop()),y=m.files.length-y,y>0&&m.files.splice(-1*y,y),v},i.runDefaultBuilderOn=function(e){if(G(s,void 0,o),l(e)){const t=J.test(s.original)?s.original:s.original.replace(/^[^[\]<>]*/,"$0 ");e.getUsageInstance().usage(t,s.description)}const t=s.builder;Z(t)?t(e):X(t)||Object.keys(t).forEach((n=>{e.option(n,t[n])}))},i.cmdToParseOptions=function(e){const t={array:[],default:{},alias:{},demand:{}},n=W(e);return n.demanded.forEach((e=>{const[n,...r]=e.cmd;e.variadic&&(t.array.push(n),t.default[n]=[]),t.alias[n]=r,t.demand[n]=!0})),n.optional.forEach((e=>{const[n,...r]=e.cmd;e.variadic&&(t.array.push(n),t.default[n]=[]),t.alias[n]=r})),t},i.reset=()=>(a={},c={},s=void 0,i);const p=[];return i.freeze=()=>{p.push({handlers:a,aliasMap:c,defaultCommand:s})},i.unfreeze=()=>{const e=p.pop();G(e,void 0,o),({handlers:a,aliasMap:c,defaultCommand:s}=e)},i}function X(e){return"object"==typeof e&&!!e.builder&&"function"==typeof e.handler}function Z(e){return"function"==typeof e}function ee(e={},t=(()=>!0)){const n={};return R(e).forEach((r=>{t(r,e[r])&&(n[r]=e[r])})),n}function te(e){"undefined"!=typeof process&&[process.stdout,process.stderr].forEach((t=>{const n=t;n._handle&&n.isTTY&&"function"==typeof n._handle.setBlocking&&n._handle.setBlocking(e)}))}function ne(e,n,r){const o=n.__,i={},s=[];i.failFn=function(e){s.push(e)};let a=null,c=!0;i.showHelpOnFail=function(e=!0,t){const[n,r]="string"==typeof e?[!0,e]:[e,t];return a=r,c=n,i};let l=!1;i.fail=function(n,r){const o=e._getLoggerInstance();if(!s.length){if(e.getExitProcess()&&te(!0),l||(l=!0,c&&(e.showHelp("error"),o.error()),(n||r)&&o.error(n||r),a&&((n||r)&&o.error(""),o.error(a))),r=r||new t(n),e.getExitProcess())return e.exit(1);if(e._hasParseCallback())return e.exit(1,r);throw r}for(let e=s.length-1;e>=0;--e)s[e](n,r,i)};let u=[],d=!1;i.usage=(e,t)=>null===e?(d=!0,u=[],i):(d=!1,u.push([e,t||""]),i),i.getUsage=()=>u,i.getUsageDisabled=()=>d,i.getPositionalGroupName=()=>o("Positionals:");let f=[];i.example=(e,t)=>{f.push([e,t||""])};let p=[];i.command=function(e,t,n,r,o=!1){n&&(p=p.map((e=>(e[2]=!1,e)))),p.push([e,t||"",n,r,o])},i.getCommands=()=>p;let h={};i.describe=function(e,t){Array.isArray(e)?e.forEach((e=>{i.describe(e,t)})):"object"==typeof e?Object.keys(e).forEach((t=>{i.describe(t,e[t])})):h[e]=t},i.getDescriptions=()=>h;let g=[];i.epilog=e=>{g.push(e)};let m,y=!1;function b(){return y||(m=function(){const e=80;return r.process.stdColumns?Math.min(e,r.process.stdColumns):e}(),y=!0),m}i.wrap=e=>{y=!0,m=e};const v="__yargsString__:";function w(e,t,n){let o=0;return Array.isArray(e)||(e=Object.values(e).map((e=>[e]))),e.forEach((e=>{o=Math.max(r.stringWidth(n?`${n} ${ie(e[0])}`:ie(e[0]))+oe(e[0]),o)})),t&&(o=Math.min(o,parseInt((.5*t).toString(),10))),o}let O;function x(t){return e.getOptions().hiddenOptions.indexOf(t)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}function S(e,t){let n=`[${o("default:")} `;if(void 0===e&&!t)return null;if(t)n+=t;else switch(typeof e){case"string":n+=`"${e}"`;break;case"object":n+=JSON.stringify(e);break;default:n+=e}return`${n}]`}i.deferY18nLookup=e=>v+e,i.help=function(){if(O)return O;!function(){const t=e.getDemandedOptions(),n=e.getOptions();(Object.keys(n.alias)||[]).forEach((r=>{n.alias[r].forEach((o=>{h[o]&&i.describe(r,h[o]),o in t&&e.demandOption(r,t[o]),~n.boolean.indexOf(o)&&e.boolean(r),~n.count.indexOf(o)&&e.count(r),~n.string.indexOf(o)&&e.string(r),~n.normalize.indexOf(o)&&e.normalize(r),~n.array.indexOf(o)&&e.array(r),~n.number.indexOf(o)&&e.number(r)}))}))}();const t=e.customScriptName?e.$0:r.path.basename(e.$0),n=e.getDemandedOptions(),s=e.getDemandedCommands(),a=e.getDeprecatedOptions(),c=e.getGroups(),l=e.getOptions();let m=[];m=m.concat(Object.keys(h)),m=m.concat(Object.keys(n)),m=m.concat(Object.keys(s)),m=m.concat(Object.keys(l.default)),m=m.filter(x),m=Object.keys(m.reduce(((e,t)=>("_"!==t&&(e[t]=!0),e)),{}));const y=b(),E=r.cliui({width:y,wrap:!!y});if(!d)if(u.length)u.forEach((e=>{E.div(`${e[0].replace(/\$0/g,t)}`),e[1]&&E.div({text:`${e[1]}`,padding:[1,0,0,0]})})),E.div();else if(p.length){let e=null;e=s._?`${t} <${o("command")}>\n`:`${t} [${o("command")}]\n`,E.div(`${e}`)}if(p.length){E.div(o("Commands:"));const n=e.getContext(),r=n.commands.length?`${n.commands.join(" ")} `:"";!0===e.getParserConfiguration()["sort-commands"]&&(p=p.sort(((e,t)=>e[0].localeCompare(t[0])))),p.forEach((e=>{const n=`${t} ${r}${e[0].replace(/^\$0 ?/,"")}`;E.span({text:n,padding:[0,2,0,2],width:w(p,y,`${t}${r}`)+4},{text:e[1]});const i=[];e[2]&&i.push(`[${o("default")}]`),e[3]&&e[3].length&&i.push(`[${o("aliases:")} ${e[3].join(", ")}]`),e[4]&&("string"==typeof e[4]?i.push(`[${o("deprecated: %s",e[4])}]`):i.push(`[${o("deprecated")}]`)),i.length?E.div({text:i.join(" "),padding:[0,0,0,2],align:"right"}):E.div()})),E.div()}const P=(Object.keys(l.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);m=m.filter((t=>!e.parsed.newAliases[t]&&P.every((e=>-1===(l.alias[e]||[]).indexOf(t)))));const A=o("Options:");c[A]||(c[A]=[]),function(e,t,n,r){let o=[],i=null;Object.keys(n).forEach((e=>{o=o.concat(n[e])})),e.forEach((e=>{i=[e].concat(t[e]),i.some((e=>-1!==o.indexOf(e)))||n[r].push(e)}))}(m,l.alias,c,A);const j=e=>/^--/.test(ie(e)),_=Object.keys(c).filter((e=>c[e].length>0)).map((e=>({groupName:e,normalizedKeys:c[e].filter(x).map((e=>{if(~P.indexOf(e))return e;for(let t,n=0;void 0!==(t=P[n]);n++)if(~(l.alias[t]||[]).indexOf(e))return t;return e}))}))).filter((({normalizedKeys:e})=>e.length>0)).map((({groupName:e,normalizedKeys:t})=>{const n=t.reduce(((t,n)=>(t[n]=[n].concat(l.alias[n]||[]).map((t=>e===i.getPositionalGroupName()?t:(/^[0-9]$/.test(t)?~l.boolean.indexOf(n)?"-":"--":t.length>1?"--":"-")+t)).sort(((e,t)=>j(e)===j(t)?0:j(e)?1:-1)).join(", "),t)),{});return{groupName:e,normalizedKeys:t,switches:n}}));if(_.filter((({groupName:e})=>e!==i.getPositionalGroupName())).some((({normalizedKeys:e,switches:t})=>!e.every((e=>j(t[e])))))&&_.filter((({groupName:e})=>e!==i.getPositionalGroupName())).forEach((({normalizedKeys:e,switches:t})=>{e.forEach((e=>{var n,r;j(t[e])&&(t[e]=(n=t[e],r="-x, ".length,re(n)?{text:n.text,indentation:n.indentation+r}:{text:n,indentation:r}))}))})),_.forEach((({groupName:e,normalizedKeys:t,switches:r})=>{E.div(e),t.forEach((e=>{const t=r[e];let s=h[e]||"",c=null;~s.lastIndexOf(v)&&(s=o(s.substring(v.length))),~l.boolean.indexOf(e)&&(c=`[${o("boolean")}]`),~l.count.indexOf(e)&&(c=`[${o("count")}]`),~l.string.indexOf(e)&&(c=`[${o("string")}]`),~l.normalize.indexOf(e)&&(c=`[${o("string")}]`),~l.array.indexOf(e)&&(c=`[${o("array")}]`),~l.number.indexOf(e)&&(c=`[${o("number")}]`);const u=[e in a?(d=a[e],"string"==typeof d?`[${o("deprecated: %s",d)}]`:`[${o("deprecated")}]`):null,c,e in n?`[${o("required")}]`:null,l.choices&&l.choices[e]?`[${o("choices:")} ${i.stringifiedValues(l.choices[e])}]`:null,S(l.default[e],l.defaultDescription[e])].filter(Boolean).join(" ");var d;E.span({text:ie(t),padding:[0,2,0,2+oe(t)],width:w(r,y)+4},s),u?E.div({text:u,padding:[0,0,0,2],align:"right"}):E.div()})),E.div()})),f.length&&(E.div(o("Examples:")),f.forEach((e=>{e[0]=e[0].replace(/\$0/g,t)})),f.forEach((e=>{""===e[1]?E.div({text:e[0],padding:[0,2,0,2]}):E.div({text:e[0],padding:[0,2,0,2],width:w(f,y)+4},{text:e[1]})})),E.div()),g.length>0){const e=g.map((e=>e.replace(/\$0/g,t))).join("\n");E.div(`${e}\n`)}return E.toString().replace(/\s*$/,"")},i.cacheHelpMessage=function(){O=this.help()},i.clearCachedHelpMessage=function(){O=void 0},i.showHelp=t=>{const n=e._getLoggerInstance();t||(t="error");("function"==typeof t?t:n[t])(i.help())},i.functionDescription=e=>["(",e.name?r.Parser.decamelize(e.name,"-"):o("generated-value"),")"].join(""),i.stringifiedValues=function(e,t){let n="";const r=t||", ",o=[].concat(e);return e&&o.length?(o.forEach((e=>{n.length&&(n+=r),n+=JSON.stringify(e)})),n):n};let E=null;i.version=e=>{E=e},i.showVersion=()=>{e._getLoggerInstance().log(E)},i.reset=function(e){return a=null,l=!1,u=[],d=!1,g=[],f=[],p=[],h=ee(h,(t=>!e[t])),i};const P=[];return i.freeze=function(){P.push({failMessage:a,failureOutput:l,usages:u,usageDisabled:d,epilogs:g,examples:f,commands:p,descriptions:h})},i.unfreeze=function(){const e=P.pop();G(e,void 0,r),({failMessage:a,failureOutput:l,usages:u,usageDisabled:d,epilogs:g,examples:f,commands:p,descriptions:h}=e)},i}function re(e){return"object"==typeof e}function oe(e){return re(e)?e.indentation:0}function ie(e){return re(e)?e.text:e}function se(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const n=[];let r,o;for(r=0;r<=t.length;r++)n[r]=[r];for(o=0;o<=e.length;o++)n[0][o]=o;for(r=1;r<=t.length;r++)for(o=1;o<=e.length;o++)t.charAt(r-1)===e.charAt(o-1)?n[r][o]=n[r-1][o-1]:n[r][o]=Math.min(n[r-1][o-1]+1,Math.min(n[r][o-1]+1,n[r-1][o]+1));return n[t.length][e.length]}const ae=["$0","--","_"];let ce;function le(e=[],n=ce.process.cwd(),r){const o={};let s,a=null,c={};const l=[];let u="";const d={};let f,p,h=null;const g=ce.y18n;let m;o.middleware=function(e,t){return function(n,r=!1){if(z(" [boolean]",[n,r],arguments.length),Array.isArray(n)){for(let e=0;e{const t=ue(n,e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.lengthy;let b=!1,v=null;o.exit=(e,t)=>{b=!0,v=t,X&&ce.process.exit(e)};let w,O=null;o.completion=function(e,t,n){return z("[string] [string|boolean|function] [function]",[e,t,n],arguments.length),"function"==typeof t&&(n=t,t=void 0),O=e||O||"completion",t||!1===t||(t="generate completion script"),o.command(O,t),n&&a.registerFunction(n),o},o.resetOptions=o.reset=function(e={}){y.resets++,w=w||{};const t={};t.local=w.local?w.local:[],t.configObjects=w.configObjects?w.configObjects:[];const n={};t.local.forEach((t=>{n[t]=!0,(e[t]||[]).forEach((e=>{n[e]=!0}))})),Object.assign(d,Object.keys(c).reduce(((e,t)=>{const r=c[t].filter((e=>!(e in n)));return r.length>0&&(e[t]=r),e}),{})),c={};return["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach((e=>{t[e]=(w[e]||[]).filter((e=>!n[e]))})),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","coerce","deprecatedOptions"].forEach((e=>{t[e]=ee(w[e],(e=>!n[e]))})),t.envPrefix=w.envPrefix,w=t,f=f?f.reset(n):ne(o,g,ce),p=p?p.reset(n):function(e,t,n,r){const o=n.__,i=n.__n,s={nonOptionCount:function(n){const r=e.getDemandedCommands(),o=n._.length+(n["--"]?n["--"].length:0)-e.getContext().commands.length;r._&&(or._.max)&&(or._.max&&(void 0!==r._.maxMsg?t.fail(r._.maxMsg?r._.maxMsg.replace(/\$0/g,o.toString()).replace(/\$1/,r._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",o,o.toString(),r._.max.toString()))))},positionalCount:function(e,n){n{-1!==ae.indexOf(t)||Object.prototype.hasOwnProperty.call(o,t)||Object.prototype.hasOwnProperty.call(e._getParseContext(),t)||s.isValidAndSomeAliasIsNotNew(t,r)||u.push(t)})),c&&(d.commands.length>0||l.length>0||a)&&n._.slice(d.commands.length).forEach((e=>{-1===l.indexOf(""+e)&&u.push(""+e)})),u.length>0&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",u.length,u.join(", ")))},unknownCommands:function(n){const r=e.getCommandInstance().getCommands(),o=[],s=e.getContext();return(s.commands.length>0||r.length>0)&&n._.slice(s.commands.length).forEach((e=>{-1===r.indexOf(""+e)&&o.push(""+e)})),o.length>0&&(t.fail(i("Unknown command: %s","Unknown commands: %s",o.length,o.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(t,n){if(!Object.prototype.hasOwnProperty.call(n,t))return!1;const r=e.parsed.newAliases;for(const e of[t,...n[t]])if(!Object.prototype.hasOwnProperty.call(r,e)||!r[t])return!0;return!1},limitedChoices:function(n){const r=e.getOptions(),i={};if(!Object.keys(r.choices).length)return;Object.keys(n).forEach((e=>{-1===ae.indexOf(e)&&Object.prototype.hasOwnProperty.call(r.choices,e)&&[].concat(n[e]).forEach((t=>{-1===r.choices[e].indexOf(t)&&void 0!==t&&(i[e]=(i[e]||[]).concat(t))}))}));const s=Object.keys(i);if(!s.length)return;let a=o("Invalid values:");s.forEach((e=>{a+=`\n ${o("Argument: %s, Given: %s, Choices: %s",e,t.stringifiedValues(i[e]),t.stringifiedValues(r.choices[e]))}`})),t.fail(a)}};let a=[];s.check=function(e,t){a.push({func:e,global:t})},s.customChecks=function(e,n){for(let r,i=0;void 0!==(r=a[i]);i++){const i=r.func;let s=null;try{s=i(e,n)}catch(e){t.fail(e.message?e.message:e,e);continue}s?("string"==typeof s||s instanceof Error)&&t.fail(s.toString(),s):t.fail(o("Argument check failed: %s",i.toString()))}};let c={};function l(e,t){const n=Number(t);return"number"==typeof(t=isNaN(n)?t:n)?e._.length>=t:t.match(/^--no-.+/)?!e[t=t.match(/^--no-(.+)/)[1]]:e[t]}s.implies=function(t,n){z(" [array|number|string]",[t,n],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{s.implies(e,t[e])})):(e.global(t),c[t]||(c[t]=[]),Array.isArray(n)?n.forEach((e=>s.implies(t,e))):(G(n,void 0,r),c[t].push(n)))},s.getImplied=function(){return c},s.implications=function(e){const n=[];if(Object.keys(c).forEach((t=>{const r=t;(c[t]||[]).forEach((t=>{let o=r;const i=t;o=l(e,o),t=l(e,t),o&&!t&&n.push(` ${r} -> ${i}`)}))})),n.length){let e=`${o("Implications failed:")}\n`;n.forEach((t=>{e+=t})),t.fail(e)}};let u={};s.conflicts=function(t,n){z(" [array|string]",[t,n],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{s.conflicts(e,t[e])})):(e.global(t),u[t]||(u[t]=[]),Array.isArray(n)?n.forEach((e=>s.conflicts(t,e))):u[t].push(n))},s.getConflicting=()=>u,s.conflicting=function(e){Object.keys(e).forEach((n=>{u[n]&&u[n].forEach((r=>{r&&void 0!==e[n]&&void 0!==e[r]&&t.fail(o("Arguments %s and %s are mutually exclusive",n,r))}))}))},s.recommendCommands=function(e,n){n=n.sort(((e,t)=>t.length-e.length));let r=null,i=1/0;for(let t,o=0;void 0!==(t=n[o]);o++){const n=se(e,t);n<=3&&n!e[t])),u=ee(u,(t=>!e[t])),a=a.filter((e=>e.global)),s};const d=[];return s.freeze=function(){d.push({implied:c,checks:a,conflicting:u})},s.unfreeze=function(){const e=d.pop();G(e,void 0,r),({implied:c,checks:a,conflicting:u}=e)},s}(o,f,g,ce),s=s?s.reset():Q(o,f,p,l,ce),a||(a=function(e,t,n,r){const o={completionKey:"get-yargs-completions"};let i;o.setParsed=function(e){i=e.aliases};const s=r.getEnv("SHELL")&&-1!==r.getEnv("SHELL").indexOf("zsh")||r.getEnv("ZSH_NAME")&&-1!==r.getEnv("ZSH_NAME").indexOf("zsh");o.getCompletion=function(o,c){const l=[],u=o.length?o[o.length-1]:"",d=e.parse(o,!0),f=e.getContext().commands;function p(e){if(G(a,null,r),function(e){return e.length<3}(a)){const t=a(u,e);return U(t)?t.then((e=>{r.process.nextTick((()=>{c(e)}))})).catch((e=>{r.process.nextTick((()=>{throw e}))})):c(t)}return a(u,e,(e=>{c(e)}))}if(a)return U(d)?d.then(p):p(d);const h=n.getCommandHandlers();for(let t=0,n=o.length;t{const t=W(e[0]).cmd;if(-1===o.indexOf(t))if(s){const n=e[1]||"";l.push(t.replace(/:/g,"\\:")+":"+n)}else l.push(t)})),u.match(/^-/)||""===u&&0===l.length){const n=t.getDescriptions(),r=e.getOptions();Object.keys(r.key).forEach((e=>{const t=!!r.configuration["boolean-negation"]&&r.boolean.includes(e);let a=[e].concat(i[e]||[]);function c(e){if(a.every((e=>-1===o.indexOf(`--${e}`)))){const t=e=>/^[^0-9]$/.test(e),r=!/^--/.test(u)&&t(e)?"-":"--";if(s){const t=n[e]||"";l.push(r+`${e.replace(/:/g,"\\:")}:${t.replace("__yargsString__:","")}`)}else l.push(r+e)}}t&&(a=a.concat(a.map((e=>`no-${e}`)))),c(e),t&&r.default[e]&&c(`no-${e}`)}))}c(l)},o.generateCompletionScript=function(e,t){let n=s?'###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zsh_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n':'###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o default -F _yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';const o=r.path.basename(e);return e.match(/\.js$/)&&(e=`./${e}`),n=n.replace(/{{app_name}}/g,o),n=n.replace(/{{completion_command}}/g,t),n.replace(/{{app_path}}/g,e)};let a=null;return o.registerFunction=e=>{a=e},o}(o,f,s,ce)),O=null,u="",v=null,b=!1,o.parsed=!1,o},o.resetOptions();const x=[];function S(){x.push({options:w,configObjects:w.configObjects.slice(0),exitProcess:X,groups:c,strict:D,strictCommands:T,strictOptions:B,completionCommand:O,output:u,exitError:v,hasOutput:b,parsed:o.parsed,parseFn:M,parseContext:L,handlerFinishCommand:h}),f.freeze(),p.freeze(),s.freeze()}function E(){const e=x.pop();let t;G(e,void 0,ce),({options:w,configObjects:t,exitProcess:X,groups:c,output:u,exitError:v,hasOutput:b,parsed:o.parsed,strict:D,strictCommands:T,strictOptions:B,completionCommand:O,parseFn:M,parseContext:L,handlerFinishCommand:h}=e),w.configObjects=t,f.unfreeze(),p.unfreeze(),s.unfreeze()}function P(e,t){(t=[].concat(t)).forEach((t=>{t=C(t),w[e].push(t)}))}function A(e,t){return _(A,"key",e,t),o}function j(e,t){return z("