@stablyai/playwright-test 2.1.12 → 2.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-EhzPL0ML.cjs → index-CdLJi9uc.cjs} +855 -820
- package/dist/index-CdLJi9uc.cjs.map +1 -0
- package/dist/{index-cF7EDVHb.mjs → index-D8lS6VkX.mjs} +851 -816
- package/dist/index-D8lS6VkX.mjs.map +1 -0
- package/dist/index.cjs +5 -5
- package/dist/{index.d-Cbdkyfd5.d.cts → index.d-CBqVmz24.d.cts} +6 -1
- package/dist/{index.d-Cbdkyfd5.d.cts.map → index.d-CBqVmz24.d.cts.map} +1 -1
- package/dist/{index.d-Cbdkyfd5.d.ts → index.d-CBqVmz24.d.mts} +6 -1
- package/dist/{index.d-Cbdkyfd5.d.mts.map → index.d-CBqVmz24.d.mts.map} +1 -1
- package/dist/{index.d-Cbdkyfd5.d.mts → index.d-CBqVmz24.d.ts} +6 -1
- package/dist/{index.d-Cbdkyfd5.d.ts.map → index.d-CBqVmz24.d.ts.map} +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/reporter.cjs +1 -1
- package/dist/reporter.d.cts +1 -1
- package/dist/reporter.d.mts +1 -1
- package/dist/reporter.mjs +1 -1
- package/package.json +3 -3
- package/dist/index-EhzPL0ML.cjs.map +0 -1
- package/dist/index-cF7EDVHb.mjs.map +0 -1
|
@@ -5,8 +5,8 @@ var path = require('node:path');
|
|
|
5
5
|
var childProcess = require('node:child_process');
|
|
6
6
|
var y = require('node:process');
|
|
7
7
|
var require$$0$2 = require('child_process');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var Vt = require('path');
|
|
9
|
+
var Wt = require('fs');
|
|
10
10
|
var node_url = require('node:url');
|
|
11
11
|
var node_os = require('node:os');
|
|
12
12
|
var node_fs = require('node:fs');
|
|
@@ -192,7 +192,7 @@ function requireWindows() {
|
|
|
192
192
|
hasRequiredWindows = 1;
|
|
193
193
|
windows = isexe;
|
|
194
194
|
isexe.sync = sync;
|
|
195
|
-
var fs =
|
|
195
|
+
var fs = Wt;
|
|
196
196
|
function checkPathExt(path2, options) {
|
|
197
197
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
198
198
|
if (!pathext) {
|
|
@@ -233,7 +233,7 @@ function requireMode() {
|
|
|
233
233
|
hasRequiredMode = 1;
|
|
234
234
|
mode = isexe;
|
|
235
235
|
isexe.sync = sync;
|
|
236
|
-
var fs =
|
|
236
|
+
var fs = Wt;
|
|
237
237
|
function isexe(path2, options, cb) {
|
|
238
238
|
fs.stat(path2, function(er, stat) {
|
|
239
239
|
cb(er, er ? false : checkStat(stat, options));
|
|
@@ -321,7 +321,7 @@ function requireWhich() {
|
|
|
321
321
|
if (hasRequiredWhich) return which_1;
|
|
322
322
|
hasRequiredWhich = 1;
|
|
323
323
|
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
324
|
-
const path2 =
|
|
324
|
+
const path2 = Vt;
|
|
325
325
|
const COLON = isWindows ? ";" : ":";
|
|
326
326
|
const isexe = requireIsexe();
|
|
327
327
|
const getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -434,7 +434,7 @@ var hasRequiredResolveCommand;
|
|
|
434
434
|
function requireResolveCommand() {
|
|
435
435
|
if (hasRequiredResolveCommand) return resolveCommand_1;
|
|
436
436
|
hasRequiredResolveCommand = 1;
|
|
437
|
-
const path2 =
|
|
437
|
+
const path2 = Vt;
|
|
438
438
|
const which = requireWhich();
|
|
439
439
|
const getPathKey = requirePathKey();
|
|
440
440
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -529,7 +529,7 @@ var hasRequiredReadShebang;
|
|
|
529
529
|
function requireReadShebang() {
|
|
530
530
|
if (hasRequiredReadShebang) return readShebang_1;
|
|
531
531
|
hasRequiredReadShebang = 1;
|
|
532
|
-
const fs =
|
|
532
|
+
const fs = Wt;
|
|
533
533
|
const shebangCommand2 = requireShebangCommand();
|
|
534
534
|
function readShebang(command) {
|
|
535
535
|
const size = 150;
|
|
@@ -551,7 +551,7 @@ var hasRequiredParse;
|
|
|
551
551
|
function requireParse() {
|
|
552
552
|
if (hasRequiredParse) return parse_1;
|
|
553
553
|
hasRequiredParse = 1;
|
|
554
|
-
const path2 =
|
|
554
|
+
const path2 = Vt;
|
|
555
555
|
const resolveCommand = requireResolveCommand();
|
|
556
556
|
const escape = require_escape();
|
|
557
557
|
const readShebang = requireReadShebang();
|
|
@@ -2057,7 +2057,7 @@ function requireDistNode() {
|
|
|
2057
2057
|
value: true
|
|
2058
2058
|
});
|
|
2059
2059
|
distNode.of = distNode.PropertiesFile = void 0;
|
|
2060
|
-
var _fs = _interopRequireDefault(
|
|
2060
|
+
var _fs = _interopRequireDefault(Wt);
|
|
2061
2061
|
function _interopRequireDefault(obj) {
|
|
2062
2062
|
return obj && obj.__esModule ? obj : {
|
|
2063
2063
|
default: obj
|
|
@@ -2606,7 +2606,7 @@ DD();
|
|
|
2606
2606
|
function L$1(e) {
|
|
2607
2607
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2608
2608
|
}
|
|
2609
|
-
var W$
|
|
2609
|
+
var W$1 = { exports: {} };
|
|
2610
2610
|
(function(e) {
|
|
2611
2611
|
var u = {};
|
|
2612
2612
|
e.exports = u, u.eastAsianWidth = function(F) {
|
|
@@ -2632,8 +2632,8 @@ var W$2 = { exports: {} };
|
|
|
2632
2632
|
}
|
|
2633
2633
|
return D;
|
|
2634
2634
|
};
|
|
2635
|
-
})(W$
|
|
2636
|
-
var tD = W$
|
|
2635
|
+
})(W$1);
|
|
2636
|
+
var tD = W$1.exports;
|
|
2637
2637
|
L$1(tD);
|
|
2638
2638
|
var FD = function() {
|
|
2639
2639
|
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
@@ -2674,9 +2674,9 @@ function rD() {
|
|
|
2674
2674
|
}
|
|
2675
2675
|
rD();
|
|
2676
2676
|
const xD = ["up", "down", "left", "right", "space", "enter", "cancel"], B = { actions: new Set(xD), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]) };
|
|
2677
|
-
function
|
|
2677
|
+
function $$1(e, u) {
|
|
2678
2678
|
if (typeof e == "string") return B.aliases.get(e) === u;
|
|
2679
|
-
for (const t of e) if (t !== void 0 &&
|
|
2679
|
+
for (const t of e) if (t !== void 0 && $$1(t, u)) return true;
|
|
2680
2680
|
return false;
|
|
2681
2681
|
}
|
|
2682
2682
|
const AD = globalThis.process.platform.startsWith("win");
|
|
@@ -2685,7 +2685,7 @@ function fD({ input: e = y.stdin, output: u = y.stdout, overwrite: t = true, hid
|
|
|
2685
2685
|
g__namespace.emitKeypressEvents(e, s), e.isTTY && e.setRawMode(true);
|
|
2686
2686
|
const i = (D, { name: C, sequence: n }) => {
|
|
2687
2687
|
const E = String(D);
|
|
2688
|
-
if (
|
|
2688
|
+
if ($$1([E, C, n], "cancel")) {
|
|
2689
2689
|
F && u.write(srcExports.cursor.show), process.exit(0);
|
|
2690
2690
|
return;
|
|
2691
2691
|
}
|
|
@@ -2705,7 +2705,7 @@ function fD({ input: e = y.stdin, output: u = y.stdout, overwrite: t = true, hid
|
|
|
2705
2705
|
function ce$1() {
|
|
2706
2706
|
return y.platform !== "win32" ? y.env.TERM !== "linux" : !!y.env.CI || !!y.env.WT_SESSION || !!y.env.TERMINUS_SUBLIME || y.env.ConEmuTask === "{cmd::Cmder}" || y.env.TERM_PROGRAM === "Terminus-Sublime" || y.env.TERM_PROGRAM === "vscode" || y.env.TERM === "xterm-256color" || y.env.TERM === "alacritty" || y.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
2707
2707
|
}
|
|
2708
|
-
const V = ce$1(), u = (t, n) => V ? t : n, L = u("\u25A0", "x"), W
|
|
2708
|
+
const V$1 = ce$1(), u = (t, n) => V$1 ? t : n, L = u("\u25A0", "x"), W = u("\u25B2", "x"), C = u("\u25C7", "o"), ue$1 = u("\u250C", "T"), o = u("\u2502", "|"), d = u("\u2514", "\u2014"), Ie$1 = (t = "") => {
|
|
2709
2709
|
process.stdout.write(`${it.gray(ue$1)} ${t}
|
|
2710
2710
|
`);
|
|
2711
2711
|
}, Se$1 = (t = "") => {
|
|
@@ -2714,7 +2714,7 @@ ${it.gray(d)} ${t}
|
|
|
2714
2714
|
|
|
2715
2715
|
`);
|
|
2716
2716
|
}; `${it.gray(o)} `; const Y = ({ indicator: t = "dots" } = {}) => {
|
|
2717
|
-
const n = V ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], r = V ? 80 : 120, i = process.env.CI === "true";
|
|
2717
|
+
const n = V$1 ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], r = V$1 ? 80 : 120, i = process.env.CI === "true";
|
|
2718
2718
|
let s, c, a = false, l = "", $, g = performance.now();
|
|
2719
2719
|
const p = (m) => {
|
|
2720
2720
|
const h = m > 1 ? "Something went wrong" : "Canceled";
|
|
@@ -2751,7 +2751,7 @@ ${it.gray(d)} ${t}
|
|
|
2751
2751
|
}, r);
|
|
2752
2752
|
}, N = (m = "", h = 0) => {
|
|
2753
2753
|
a = false, clearInterval(c), B();
|
|
2754
|
-
const w = h === 0 ? it.green(C) : h === 1 ? it.red(L) : it.red(W
|
|
2754
|
+
const w = h === 0 ? it.green(C) : h === 1 ? it.red(L) : it.red(W);
|
|
2755
2755
|
l = R(m ?? l), t === "timer" ? process.stdout.write(`${w} ${l} ${O(g)}
|
|
2756
2756
|
`) : process.stdout.write(`${w} ${l}
|
|
2757
2757
|
`), E(), s();
|
|
@@ -6731,26 +6731,26 @@ function requirePRetry () {
|
|
|
6731
6731
|
}
|
|
6732
6732
|
|
|
6733
6733
|
var pRetryExports = requirePRetry();
|
|
6734
|
-
var
|
|
6734
|
+
var Kn = /*@__PURE__*/getDefaultExportFromCjs(pRetryExports);
|
|
6735
6735
|
|
|
6736
|
-
var
|
|
6737
|
-
var c = (t, e) =>
|
|
6736
|
+
var Cn = Object.defineProperty;
|
|
6737
|
+
var c = (t, e) => Cn(t, "name", { value: e, configurable: true });
|
|
6738
6738
|
const re = BigInt(2 ** 32 - 1), pr = BigInt(32);
|
|
6739
6739
|
function Yn(t, e = false) {
|
|
6740
6740
|
return e ? { h: Number(t & re), l: Number(t >> pr & re) } : { h: Number(t >> pr & re) | 0, l: Number(t & re) | 0 };
|
|
6741
6741
|
}
|
|
6742
6742
|
c(Yn, "fromBig");
|
|
6743
|
-
function
|
|
6743
|
+
function Qn(t, e = false) {
|
|
6744
6744
|
const r = t.length;
|
|
6745
6745
|
let n = new Uint32Array(r), i = new Uint32Array(r);
|
|
6746
6746
|
for (let s = 0; s < r; s++) {
|
|
6747
|
-
const { h: a, l } = Yn(t[s], e);
|
|
6748
|
-
[n[s], i[s]] = [a,
|
|
6747
|
+
const { h: a, l: u } = Yn(t[s], e);
|
|
6748
|
+
[n[s], i[s]] = [a, u];
|
|
6749
6749
|
}
|
|
6750
6750
|
return [n, i];
|
|
6751
6751
|
}
|
|
6752
|
-
c(
|
|
6753
|
-
const
|
|
6752
|
+
c(Qn, "split");
|
|
6753
|
+
const Jn = c((t, e, r) => t << r | e >>> 32 - r, "rotlSH"), zn = c((t, e, r) => e << r | t >>> 32 - r, "rotlSL"), Xn = c((t, e, r) => e << r - 32 | t >>> 64 - r, "rotlBH"), Zn = c((t, e, r) => t << r - 32 | e >>> 64 - r, "rotlBL");
|
|
6754
6754
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
6755
6755
|
function ti(t) {
|
|
6756
6756
|
return t instanceof Uint8Array || ArrayBuffer.isView(t) && t.constructor.name === "Uint8Array";
|
|
@@ -6766,8 +6766,8 @@ c(mr, "anumber");
|
|
|
6766
6766
|
function Ie(t, e, r = "") {
|
|
6767
6767
|
const n = ti(t), i = t?.length;
|
|
6768
6768
|
if (!n || e !== void 0) {
|
|
6769
|
-
const a = r && `"${r}" `,
|
|
6770
|
-
throw new Error(a + "expected Uint8Array" +
|
|
6769
|
+
const a = r && `"${r}" `, u = "", h = n ? `length=${i}` : `type=${typeof t}`;
|
|
6770
|
+
throw new Error(a + "expected Uint8Array" + u + ", got " + h);
|
|
6771
6771
|
}
|
|
6772
6772
|
return t;
|
|
6773
6773
|
}
|
|
@@ -6807,30 +6807,30 @@ function oi(t, e = {}) {
|
|
|
6807
6807
|
return r.outputLen = n.outputLen, r.blockLen = n.blockLen, r.create = (i) => t(i), Object.assign(r, e), Object.freeze(r);
|
|
6808
6808
|
}
|
|
6809
6809
|
c(oi, "createHasher");
|
|
6810
|
-
const ai = c((t) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, t]) }), "oidNist"), ci = BigInt(0),
|
|
6811
|
-
for (let t = 0, e =
|
|
6810
|
+
const ai = c((t) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, t]) }), "oidNist"), ci = BigInt(0), Kt = BigInt(1), li = BigInt(2), ui = BigInt(7), fi = BigInt(256), hi = BigInt(113), Ir = [], Sr = [], Rr = [];
|
|
6811
|
+
for (let t = 0, e = Kt, r = 1, n = 0; t < 24; t++) {
|
|
6812
6812
|
[r, n] = [n, (2 * r + 3 * n) % 5], Ir.push(2 * (5 * n + r)), Sr.push((t + 1) * (t + 2) / 2 % 64);
|
|
6813
6813
|
let i = ci;
|
|
6814
|
-
for (let s = 0; s < 7; s++) e = (e <<
|
|
6814
|
+
for (let s = 0; s < 7; s++) e = (e << Kt ^ (e >> ui) * hi) % fi, e & li && (i ^= Kt << (Kt << BigInt(s)) - Kt);
|
|
6815
6815
|
Rr.push(i);
|
|
6816
6816
|
}
|
|
6817
|
-
const Tr =
|
|
6817
|
+
const Tr = Qn(Rr, true), di = Tr[0], pi = Tr[1], wr = c((t, e, r) => r > 32 ? Xn(t, e, r) : Jn(t, e, r), "rotlH"), Ar = c((t, e, r) => r > 32 ? Zn(t, e, r) : zn(t, e, r), "rotlL");
|
|
6818
6818
|
function mi(t, e = 24) {
|
|
6819
6819
|
const r = new Uint32Array(10);
|
|
6820
6820
|
for (let n = 24 - e; n < 24; n++) {
|
|
6821
6821
|
for (let a = 0; a < 10; a++) r[a] = t[a] ^ t[a + 10] ^ t[a + 20] ^ t[a + 30] ^ t[a + 40];
|
|
6822
6822
|
for (let a = 0; a < 10; a += 2) {
|
|
6823
|
-
const
|
|
6824
|
-
for (let v = 0; v < 50; v += 10) t[a + v] ^= w, t[a + v + 1] ^=
|
|
6823
|
+
const u = (a + 8) % 10, h = (a + 2) % 10, d = r[h], g = r[h + 1], w = wr(d, g, 1) ^ r[u], U = Ar(d, g, 1) ^ r[u + 1];
|
|
6824
|
+
for (let v = 0; v < 50; v += 10) t[a + v] ^= w, t[a + v + 1] ^= U;
|
|
6825
6825
|
}
|
|
6826
6826
|
let i = t[2], s = t[3];
|
|
6827
6827
|
for (let a = 0; a < 24; a++) {
|
|
6828
|
-
const
|
|
6828
|
+
const u = Sr[a], h = wr(i, s, u), d = Ar(i, s, u), g = Ir[a];
|
|
6829
6829
|
i = t[g], s = t[g + 1], t[g] = h, t[g + 1] = d;
|
|
6830
6830
|
}
|
|
6831
6831
|
for (let a = 0; a < 50; a += 10) {
|
|
6832
|
-
for (let
|
|
6833
|
-
for (let
|
|
6832
|
+
for (let u = 0; u < 10; u++) r[u] = t[a + u];
|
|
6833
|
+
for (let u = 0; u < 10; u++) t[a + u] ^= ~r[(u + 2) % 10] & r[(u + 4) % 10];
|
|
6834
6834
|
}
|
|
6835
6835
|
t[0] ^= di[n], t[1] ^= pi[n];
|
|
6836
6836
|
}
|
|
@@ -6867,7 +6867,7 @@ class or {
|
|
|
6867
6867
|
const { blockLen: r, state: n } = this, i = e.length;
|
|
6868
6868
|
for (let s = 0; s < i; ) {
|
|
6869
6869
|
const a = Math.min(r - this.pos, i - s);
|
|
6870
|
-
for (let
|
|
6870
|
+
for (let u = 0; u < a; u++) n[this.pos++] ^= e[s++];
|
|
6871
6871
|
this.pos === r && this.keccak();
|
|
6872
6872
|
}
|
|
6873
6873
|
return this;
|
|
@@ -6911,13 +6911,13 @@ class or {
|
|
|
6911
6911
|
}
|
|
6912
6912
|
}
|
|
6913
6913
|
const gi = c((t, e, r, n = {}) => oi(() => new or(e, t, r), n), "genKeccak"), Ei = gi(6, 72, 64, ai(10));
|
|
6914
|
-
var _i = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Se = Math.ceil,
|
|
6915
|
-
function
|
|
6916
|
-
var e, r, n, i = A.prototype = { constructor: A, toString: null, valueOf: null }, s = new A(1), a = 20,
|
|
6917
|
-
function A(o,
|
|
6914
|
+
var _i = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Se = Math.ceil, lt = Math.floor, st = "[BigNumber Error] ", br = st + "Number primitive has more than 15 significant digits: ", pt = 1e14, $ = 14, Re = 9007199254740991, Te = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], vt = 1e7, tt = 1e9;
|
|
6915
|
+
function yr(t) {
|
|
6916
|
+
var e, r, n, i = A.prototype = { constructor: A, toString: null, valueOf: null }, s = new A(1), a = 20, u = 4, h = -7, d = 21, g = -1e7, w = 1e7, U = false, v = 1, D = 0, M = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: "\xA0", suffix: "" }, y = "0123456789abcdefghijklmnopqrstuvwxyz", P = true;
|
|
6917
|
+
function A(o, l) {
|
|
6918
6918
|
var f, _, m, I, T, p, E, S, R = this;
|
|
6919
|
-
if (!(R instanceof A)) return new A(o,
|
|
6920
|
-
if (
|
|
6919
|
+
if (!(R instanceof A)) return new A(o, l);
|
|
6920
|
+
if (l == null) {
|
|
6921
6921
|
if (o && o._isBigNumber === true) {
|
|
6922
6922
|
R.s = o.s, !o.c || o.e > w ? R.c = R.e = null : o.e < g ? R.c = [R.e = 0] : (R.e = o.e, R.c = o.c.slice());
|
|
6923
6923
|
return;
|
|
@@ -6935,12 +6935,12 @@ function br(t) {
|
|
|
6935
6935
|
}
|
|
6936
6936
|
(I = S.indexOf(".")) > -1 && (S = S.replace(".", "")), (T = S.search(/e/i)) > 0 ? (I < 0 && (I = T), I += +S.slice(T + 1), S = S.substring(0, T)) : I < 0 && (I = S.length);
|
|
6937
6937
|
} else {
|
|
6938
|
-
if (
|
|
6938
|
+
if (Q(l, 2, y.length, "Base"), l == 10 && P) return R = new A(o), H(R, a + R.e + 1, u);
|
|
6939
6939
|
if (S = String(o), p = typeof o == "number") {
|
|
6940
|
-
if (o * 0 != 0) return n(R, S, p,
|
|
6941
|
-
if (R.s = 1 / o < 0 ? (S = S.slice(1), -1) : 1, A.DEBUG && S.replace(/^0\.0*|\./, "").length > 15) throw Error(
|
|
6940
|
+
if (o * 0 != 0) return n(R, S, p, l);
|
|
6941
|
+
if (R.s = 1 / o < 0 ? (S = S.slice(1), -1) : 1, A.DEBUG && S.replace(/^0\.0*|\./, "").length > 15) throw Error(br + o);
|
|
6942
6942
|
} else R.s = S.charCodeAt(0) === 45 ? (S = S.slice(1), -1) : 1;
|
|
6943
|
-
for (f =
|
|
6943
|
+
for (f = y.slice(0, l), I = T = 0, E = S.length; T < E; T++) if (f.indexOf(_ = S.charAt(T)) < 0) {
|
|
6944
6944
|
if (_ == ".") {
|
|
6945
6945
|
if (T > I) {
|
|
6946
6946
|
I = E;
|
|
@@ -6950,54 +6950,54 @@ function br(t) {
|
|
|
6950
6950
|
m = true, T = -1, I = 0;
|
|
6951
6951
|
continue;
|
|
6952
6952
|
}
|
|
6953
|
-
return n(R, String(o), p,
|
|
6953
|
+
return n(R, String(o), p, l);
|
|
6954
6954
|
}
|
|
6955
|
-
p = false, S = r(S,
|
|
6955
|
+
p = false, S = r(S, l, 10, R.s), (I = S.indexOf(".")) > -1 ? S = S.replace(".", "") : I = S.length;
|
|
6956
6956
|
}
|
|
6957
6957
|
for (T = 0; S.charCodeAt(T) === 48; T++) ;
|
|
6958
6958
|
for (E = S.length; S.charCodeAt(--E) === 48; ) ;
|
|
6959
6959
|
if (S = S.slice(T, ++E)) {
|
|
6960
|
-
if (E -= T, p && A.DEBUG && E > 15 && (o > Re || o !==
|
|
6960
|
+
if (E -= T, p && A.DEBUG && E > 15 && (o > Re || o !== lt(o))) throw Error(br + R.s * o);
|
|
6961
6961
|
if ((I = I - T - 1) > w) R.c = R.e = null;
|
|
6962
6962
|
else if (I < g) R.c = [R.e = 0];
|
|
6963
6963
|
else {
|
|
6964
|
-
if (R.e = I, R.c = [], T = (I + 1) %
|
|
6965
|
-
for (T && R.c.push(+S.slice(0, T)), E -=
|
|
6966
|
-
T =
|
|
6964
|
+
if (R.e = I, R.c = [], T = (I + 1) % $, I < 0 && (T += $), T < E) {
|
|
6965
|
+
for (T && R.c.push(+S.slice(0, T)), E -= $; T < E; ) R.c.push(+S.slice(T, T += $));
|
|
6966
|
+
T = $ - (S = S.slice(T)).length;
|
|
6967
6967
|
} else T -= E;
|
|
6968
6968
|
for (; T--; S += "0") ;
|
|
6969
6969
|
R.c.push(+S);
|
|
6970
6970
|
}
|
|
6971
6971
|
} else R.c = [R.e = 0];
|
|
6972
6972
|
}
|
|
6973
|
-
c(A, "BigNumber2"), A.clone =
|
|
6974
|
-
var
|
|
6973
|
+
c(A, "BigNumber2"), A.clone = yr, A.ROUND_UP = 0, A.ROUND_DOWN = 1, A.ROUND_CEIL = 2, A.ROUND_FLOOR = 3, A.ROUND_HALF_UP = 4, A.ROUND_HALF_DOWN = 5, A.ROUND_HALF_EVEN = 6, A.ROUND_HALF_CEIL = 7, A.ROUND_HALF_FLOOR = 8, A.EUCLID = 9, A.config = A.set = function(o) {
|
|
6974
|
+
var l, f;
|
|
6975
6975
|
if (o != null) if (typeof o == "object") {
|
|
6976
|
-
if (o.hasOwnProperty(
|
|
6977
|
-
else if (
|
|
6978
|
-
else throw Error(st +
|
|
6979
|
-
if (o.hasOwnProperty(
|
|
6980
|
-
else throw
|
|
6981
|
-
else
|
|
6982
|
-
else throw Error(st +
|
|
6983
|
-
if (o.hasOwnProperty(
|
|
6984
|
-
else throw Error(st +
|
|
6985
|
-
if (o.hasOwnProperty(
|
|
6986
|
-
else throw Error(st +
|
|
6976
|
+
if (o.hasOwnProperty(l = "DECIMAL_PLACES") && (f = o[l], Q(f, 0, tt, l), a = f), o.hasOwnProperty(l = "ROUNDING_MODE") && (f = o[l], Q(f, 0, 8, l), u = f), o.hasOwnProperty(l = "EXPONENTIAL_AT") && (f = o[l], f && f.pop ? (Q(f[0], -tt, 0, l), Q(f[1], 0, tt, l), h = f[0], d = f[1]) : (Q(f, -tt, tt, l), h = -(d = f < 0 ? -f : f))), o.hasOwnProperty(l = "RANGE")) if (f = o[l], f && f.pop) Q(f[0], -tt, -1, l), Q(f[1], 1, tt, l), g = f[0], w = f[1];
|
|
6977
|
+
else if (Q(f, -tt, tt, l), f) g = -(w = f < 0 ? -f : f);
|
|
6978
|
+
else throw Error(st + l + " cannot be zero: " + f);
|
|
6979
|
+
if (o.hasOwnProperty(l = "CRYPTO")) if (f = o[l], f === !!f) if (f) if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes)) U = f;
|
|
6980
|
+
else throw U = !f, Error(st + "crypto unavailable");
|
|
6981
|
+
else U = f;
|
|
6982
|
+
else throw Error(st + l + " not true or false: " + f);
|
|
6983
|
+
if (o.hasOwnProperty(l = "MODULO_MODE") && (f = o[l], Q(f, 0, 9, l), v = f), o.hasOwnProperty(l = "POW_PRECISION") && (f = o[l], Q(f, 0, tt, l), D = f), o.hasOwnProperty(l = "FORMAT")) if (f = o[l], typeof f == "object") M = f;
|
|
6984
|
+
else throw Error(st + l + " not an object: " + f);
|
|
6985
|
+
if (o.hasOwnProperty(l = "ALPHABET")) if (f = o[l], typeof f == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(f)) P = f.slice(0, 10) == "0123456789", y = f;
|
|
6986
|
+
else throw Error(st + l + " invalid: " + f);
|
|
6987
6987
|
} else throw Error(st + "Object expected: " + o);
|
|
6988
|
-
return { DECIMAL_PLACES: a, ROUNDING_MODE:
|
|
6988
|
+
return { DECIMAL_PLACES: a, ROUNDING_MODE: u, EXPONENTIAL_AT: [h, d], RANGE: [g, w], CRYPTO: U, MODULO_MODE: v, POW_PRECISION: D, FORMAT: M, ALPHABET: y };
|
|
6989
6989
|
}, A.isBigNumber = function(o) {
|
|
6990
6990
|
if (!o || o._isBigNumber !== true) return false;
|
|
6991
6991
|
if (!A.DEBUG) return true;
|
|
6992
|
-
var
|
|
6992
|
+
var l, f, _ = o.c, m = o.e, I = o.s;
|
|
6993
6993
|
t: if ({}.toString.call(_) == "[object Array]") {
|
|
6994
|
-
if ((I === 1 || I === -1) && m >= -tt && m <= tt && m ===
|
|
6994
|
+
if ((I === 1 || I === -1) && m >= -tt && m <= tt && m === lt(m)) {
|
|
6995
6995
|
if (_[0] === 0) {
|
|
6996
6996
|
if (m === 0 && _.length === 1) return true;
|
|
6997
6997
|
break t;
|
|
6998
6998
|
}
|
|
6999
|
-
if (
|
|
7000
|
-
for (
|
|
6999
|
+
if (l = (m + 1) % $, l < 1 && (l += $), String(_[0]).length == l) {
|
|
7000
|
+
for (l = 0; l < _.length; l++) if (f = _[l], f < 0 || f >= pt || f !== lt(f)) break t;
|
|
7001
7001
|
if (f !== 0) return true;
|
|
7002
7002
|
}
|
|
7003
7003
|
}
|
|
@@ -7008,49 +7008,49 @@ function br(t) {
|
|
|
7008
7008
|
}, A.minimum = A.min = function() {
|
|
7009
7009
|
return x(arguments, 1);
|
|
7010
7010
|
}, A.random = (function() {
|
|
7011
|
-
var o = 9007199254740992,
|
|
7012
|
-
return
|
|
7011
|
+
var o = 9007199254740992, l = Math.random() * o & 2097151 ? function() {
|
|
7012
|
+
return lt(Math.random() * o);
|
|
7013
7013
|
} : function() {
|
|
7014
7014
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
7015
7015
|
};
|
|
7016
7016
|
return function(f) {
|
|
7017
7017
|
var _, m, I, T, p, E = 0, S = [], R = new A(s);
|
|
7018
|
-
if (f == null ? f = a :
|
|
7018
|
+
if (f == null ? f = a : Q(f, 0, tt), T = Se(f / $), U) if (crypto.getRandomValues) {
|
|
7019
7019
|
for (_ = crypto.getRandomValues(new Uint32Array(T *= 2)); E < T; ) p = _[E] * 131072 + (_[E + 1] >>> 11), p >= 9e15 ? (m = crypto.getRandomValues(new Uint32Array(2)), _[E] = m[0], _[E + 1] = m[1]) : (S.push(p % 1e14), E += 2);
|
|
7020
7020
|
E = T / 2;
|
|
7021
7021
|
} else if (crypto.randomBytes) {
|
|
7022
7022
|
for (_ = crypto.randomBytes(T *= 7); E < T; ) p = (_[E] & 31) * 281474976710656 + _[E + 1] * 1099511627776 + _[E + 2] * 4294967296 + _[E + 3] * 16777216 + (_[E + 4] << 16) + (_[E + 5] << 8) + _[E + 6], p >= 9e15 ? crypto.randomBytes(7).copy(_, E) : (S.push(p % 1e14), E += 7);
|
|
7023
7023
|
E = T / 7;
|
|
7024
|
-
} else throw
|
|
7025
|
-
if (!
|
|
7026
|
-
for (T = S[--E], f %=
|
|
7024
|
+
} else throw U = false, Error(st + "crypto unavailable");
|
|
7025
|
+
if (!U) for (; E < T; ) p = l(), p < 9e15 && (S[E++] = p % 1e14);
|
|
7026
|
+
for (T = S[--E], f %= $, T && f && (p = Te[$ - f], S[E] = lt(T / p) * p); S[E] === 0; S.pop(), E--) ;
|
|
7027
7027
|
if (E < 0) S = [I = 0];
|
|
7028
7028
|
else {
|
|
7029
|
-
for (I = -1; S[0] === 0; S.splice(0, 1), I -=
|
|
7029
|
+
for (I = -1; S[0] === 0; S.splice(0, 1), I -= $) ;
|
|
7030
7030
|
for (E = 1, p = S[0]; p >= 10; p /= 10, E++) ;
|
|
7031
|
-
E <
|
|
7031
|
+
E < $ && (I -= $ - E);
|
|
7032
7032
|
}
|
|
7033
7033
|
return R.e = I, R.c = S, R;
|
|
7034
7034
|
};
|
|
7035
7035
|
})(), A.sum = function() {
|
|
7036
|
-
for (var o = 1,
|
|
7036
|
+
for (var o = 1, l = arguments, f = new A(l[0]); o < l.length; ) f = f.plus(l[o++]);
|
|
7037
7037
|
return f;
|
|
7038
7038
|
}, r = (function() {
|
|
7039
7039
|
var o = "0123456789";
|
|
7040
|
-
function
|
|
7040
|
+
function l(f, _, m, I) {
|
|
7041
7041
|
for (var T, p = [0], E, S = 0, R = f.length; S < R; ) {
|
|
7042
7042
|
for (E = p.length; E--; p[E] *= _) ;
|
|
7043
7043
|
for (p[0] += I.indexOf(f.charAt(S++)), T = 0; T < p.length; T++) p[T] > m - 1 && (p[T + 1] == null && (p[T + 1] = 0), p[T + 1] += p[T] / m | 0, p[T] %= m);
|
|
7044
7044
|
}
|
|
7045
7045
|
return p.reverse();
|
|
7046
7046
|
}
|
|
7047
|
-
return c(
|
|
7048
|
-
var p, E, S, R,
|
|
7049
|
-
for (F >= 0 && (R =
|
|
7047
|
+
return c(l, "toBaseOut"), function(f, _, m, I, T) {
|
|
7048
|
+
var p, E, S, R, b, O, B, G, F = f.indexOf("."), W = a, N = u;
|
|
7049
|
+
for (F >= 0 && (R = D, D = 0, f = f.replace(".", ""), G = new A(_), O = G.pow(f.length - F), D = R, G.c = l(wt(ft(O.c), O.e, "0"), 10, m, o), G.e = G.c.length), B = l(f, _, m, T ? (p = y, o) : (p = o, y)), S = R = B.length; B[--R] == 0; B.pop()) ;
|
|
7050
7050
|
if (!B[0]) return p.charAt(0);
|
|
7051
|
-
if (F < 0 ? --S : (
|
|
7051
|
+
if (F < 0 ? --S : (O.c = B, O.e = S, O.s = I, O = e(O, G, W, N, m), B = O.c, b = O.r, S = O.e), E = S + W + 1, F = B[E], R = m / 2, b = b || E < 0 || B[E + 1] != null, b = N < 4 ? (F != null || b) && (N == 0 || N == (O.s < 0 ? 3 : 2)) : F > R || F == R && (N == 4 || b || N == 6 && B[E - 1] & 1 || N == (O.s < 0 ? 8 : 7)), E < 1 || !B[0]) f = b ? wt(p.charAt(1), -W, p.charAt(0)) : p.charAt(0);
|
|
7052
7052
|
else {
|
|
7053
|
-
if (B.length = E,
|
|
7053
|
+
if (B.length = E, b) for (--m; ++B[--E] > m; ) B[E] = 0, E || (++S, B = [1].concat(B));
|
|
7054
7054
|
for (R = B.length; !B[--R]; ) ;
|
|
7055
7055
|
for (F = 0, f = ""; F <= R; f += p.charAt(B[F++])) ;
|
|
7056
7056
|
f = wt(f, S, p.charAt(0));
|
|
@@ -7059,12 +7059,12 @@ function br(t) {
|
|
|
7059
7059
|
};
|
|
7060
7060
|
})(), e = (function() {
|
|
7061
7061
|
function o(_, m, I) {
|
|
7062
|
-
var T, p, E, S, R = 0,
|
|
7063
|
-
for (_ = _.slice();
|
|
7062
|
+
var T, p, E, S, R = 0, b = _.length, O = m % vt, B = m / vt | 0;
|
|
7063
|
+
for (_ = _.slice(); b--; ) E = _[b] % vt, S = _[b] / vt | 0, T = B * E + S * O, p = O * E + T % vt * vt + R, R = (p / I | 0) + (T / vt | 0) + B * S, _[b] = p % I;
|
|
7064
7064
|
return R && (_ = [R].concat(_)), _;
|
|
7065
7065
|
}
|
|
7066
7066
|
c(o, "multiply");
|
|
7067
|
-
function
|
|
7067
|
+
function l(_, m, I, T) {
|
|
7068
7068
|
var p, E;
|
|
7069
7069
|
if (I != T) E = I > T ? 1 : -1;
|
|
7070
7070
|
else for (p = E = 0; p < I; p++) if (_[p] != m[p]) {
|
|
@@ -7073,99 +7073,99 @@ function br(t) {
|
|
|
7073
7073
|
}
|
|
7074
7074
|
return E;
|
|
7075
7075
|
}
|
|
7076
|
-
c(
|
|
7076
|
+
c(l, "compare2");
|
|
7077
7077
|
function f(_, m, I, T) {
|
|
7078
7078
|
for (var p = 0; I--; ) _[I] -= p, p = _[I] < m[I] ? 1 : 0, _[I] = p * T + _[I] - m[I];
|
|
7079
7079
|
for (; !_[0] && _.length > 1; _.splice(0, 1)) ;
|
|
7080
7080
|
}
|
|
7081
7081
|
return c(f, "subtract"), function(_, m, I, T, p) {
|
|
7082
|
-
var E, S, R,
|
|
7083
|
-
if (!Z || !Z[0] || !
|
|
7084
|
-
for (F = new A(X),
|
|
7085
|
-
if (
|
|
7082
|
+
var E, S, R, b, O, B, G, F, W, N, k, Y, ht, yt, Ut, rt, dt, X = _.s == m.s ? 1 : -1, Z = _.c, J = m.c;
|
|
7083
|
+
if (!Z || !Z[0] || !J || !J[0]) return new A(!_.s || !m.s || (Z ? J && Z[0] == J[0] : !J) ? NaN : Z && Z[0] == 0 || !J ? X * 0 : X / 0);
|
|
7084
|
+
for (F = new A(X), W = F.c = [], S = _.e - m.e, X = I + S + 1, p || (p = pt, S = ut(_.e / $) - ut(m.e / $), X = X / $ | 0), R = 0; J[R] == (Z[R] || 0); R++) ;
|
|
7085
|
+
if (J[R] > (Z[R] || 0) && S--, X < 0) W.push(1), b = true;
|
|
7086
7086
|
else {
|
|
7087
|
-
for (
|
|
7088
|
-
dt =
|
|
7087
|
+
for (yt = Z.length, rt = J.length, R = 0, X += 2, O = lt(p / (J[0] + 1)), O > 1 && (J = o(J, O, p), Z = o(Z, O, p), rt = J.length, yt = Z.length), ht = rt, N = Z.slice(0, rt), k = N.length; k < rt; N[k++] = 0) ;
|
|
7088
|
+
dt = J.slice(), dt = [0].concat(dt), Ut = J[0], J[1] >= p / 2 && Ut++;
|
|
7089
7089
|
do {
|
|
7090
|
-
if (
|
|
7091
|
-
if (Y = N[0], rt != k && (Y = Y * p + (N[1] || 0)),
|
|
7092
|
-
else
|
|
7093
|
-
if (
|
|
7094
|
-
} else E === 0 && (
|
|
7095
|
-
|
|
7096
|
-
} while ((ht++ <
|
|
7097
|
-
|
|
7090
|
+
if (O = 0, E = l(J, N, rt, k), E < 0) {
|
|
7091
|
+
if (Y = N[0], rt != k && (Y = Y * p + (N[1] || 0)), O = lt(Y / Ut), O > 1) for (O >= p && (O = p - 1), B = o(J, O, p), G = B.length, k = N.length; l(B, N, G, k) == 1; ) O--, f(B, rt < G ? dt : J, G, p), G = B.length, E = 1;
|
|
7092
|
+
else O == 0 && (E = O = 1), B = J.slice(), G = B.length;
|
|
7093
|
+
if (G < k && (B = [0].concat(B)), f(N, B, k, p), k = N.length, E == -1) for (; l(J, N, rt, k) < 1; ) O++, f(N, rt < k ? dt : J, k, p), k = N.length;
|
|
7094
|
+
} else E === 0 && (O++, N = [0]);
|
|
7095
|
+
W[R++] = O, N[0] ? N[k++] = Z[ht] || 0 : (N = [Z[ht]], k = 1);
|
|
7096
|
+
} while ((ht++ < yt || N[0] != null) && X--);
|
|
7097
|
+
b = N[0] != null, W[0] || W.splice(0, 1);
|
|
7098
7098
|
}
|
|
7099
7099
|
if (p == pt) {
|
|
7100
|
-
for (R = 1, X =
|
|
7101
|
-
H(F, I + (F.e = R + S *
|
|
7102
|
-
} else F.e = S, F.r = +
|
|
7100
|
+
for (R = 1, X = W[0]; X >= 10; X /= 10, R++) ;
|
|
7101
|
+
H(F, I + (F.e = R + S * $ - 1) + 1, T, b);
|
|
7102
|
+
} else F.e = S, F.r = +b;
|
|
7103
7103
|
return F;
|
|
7104
7104
|
};
|
|
7105
7105
|
})();
|
|
7106
|
-
function
|
|
7106
|
+
function L(o, l, f, _) {
|
|
7107
7107
|
var m, I, T, p, E;
|
|
7108
|
-
if (f == null ? f =
|
|
7109
|
-
if (m = o.c[0], T = o.e,
|
|
7110
|
-
else if (o = H(new A(o),
|
|
7111
|
-
for (; p <
|
|
7108
|
+
if (f == null ? f = u : Q(f, 0, 8), !o.c) return o.toString();
|
|
7109
|
+
if (m = o.c[0], T = o.e, l == null) E = ft(o.c), E = _ == 1 || _ == 2 && (T <= h || T >= d) ? ie(E, T) : wt(E, T, "0");
|
|
7110
|
+
else if (o = H(new A(o), l, f), I = o.e, E = ft(o.c), p = E.length, _ == 1 || _ == 2 && (l <= I || I <= h)) {
|
|
7111
|
+
for (; p < l; E += "0", p++) ;
|
|
7112
7112
|
E = ie(E, I);
|
|
7113
|
-
} else if (
|
|
7114
|
-
if (--
|
|
7115
|
-
} else if (
|
|
7113
|
+
} else if (l -= T + (_ === 2 && I > T), E = wt(E, I, "0"), I + 1 > p) {
|
|
7114
|
+
if (--l > 0) for (E += "."; l--; E += "0") ;
|
|
7115
|
+
} else if (l += I - p, l > 0) for (I + 1 == p && (E += "."); l--; E += "0") ;
|
|
7116
7116
|
return o.s < 0 && m ? "-" + E : E;
|
|
7117
7117
|
}
|
|
7118
|
-
c(
|
|
7119
|
-
function x(o,
|
|
7120
|
-
for (var f, _, m = 1, I = new A(o[0]); m < o.length; m++) _ = new A(o[m]), (!_.s || (f =
|
|
7118
|
+
c(L, "format");
|
|
7119
|
+
function x(o, l) {
|
|
7120
|
+
for (var f, _, m = 1, I = new A(o[0]); m < o.length; m++) _ = new A(o[m]), (!_.s || (f = Mt(I, _)) === l || f === 0 && I.s === l) && (I = _);
|
|
7121
7121
|
return I;
|
|
7122
7122
|
}
|
|
7123
7123
|
c(x, "maxOrMin");
|
|
7124
|
-
function
|
|
7125
|
-
for (var _ = 1, m =
|
|
7126
|
-
for (m =
|
|
7127
|
-
return (f = _ + f *
|
|
7124
|
+
function C(o, l, f) {
|
|
7125
|
+
for (var _ = 1, m = l.length; !l[--m]; l.pop()) ;
|
|
7126
|
+
for (m = l[0]; m >= 10; m /= 10, _++) ;
|
|
7127
|
+
return (f = _ + f * $ - 1) > w ? o.c = o.e = null : f < g ? o.c = [o.e = 0] : (o.e = f, o.c = l), o;
|
|
7128
7128
|
}
|
|
7129
|
-
c(
|
|
7130
|
-
var o = /^(-?)0([xbo])(?=\w[\w.]*$)/i,
|
|
7129
|
+
c(C, "normalise"), n = /* @__PURE__ */ (function() {
|
|
7130
|
+
var o = /^(-?)0([xbo])(?=\w[\w.]*$)/i, l = /^([^.]+)\.$/, f = /^\.([^.]+)$/, _ = /^-?(Infinity|NaN)$/, m = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
7131
7131
|
return function(I, T, p, E) {
|
|
7132
7132
|
var S, R = p ? T : T.replace(m, "");
|
|
7133
7133
|
if (_.test(R)) I.s = isNaN(R) ? null : R < 0 ? -1 : 1;
|
|
7134
7134
|
else {
|
|
7135
|
-
if (!p && (R = R.replace(o, function(
|
|
7136
|
-
return S = (B = B.toLowerCase()) == "x" ? 16 : B == "b" ? 2 : 8, !E || E == S ?
|
|
7137
|
-
}), E && (S = E, R = R.replace(
|
|
7135
|
+
if (!p && (R = R.replace(o, function(b, O, B) {
|
|
7136
|
+
return S = (B = B.toLowerCase()) == "x" ? 16 : B == "b" ? 2 : 8, !E || E == S ? O : b;
|
|
7137
|
+
}), E && (S = E, R = R.replace(l, "$1").replace(f, "0.$1")), T != R)) return new A(R, S);
|
|
7138
7138
|
if (A.DEBUG) throw Error(st + "Not a" + (E ? " base " + E : "") + " number: " + T);
|
|
7139
7139
|
I.s = null;
|
|
7140
7140
|
}
|
|
7141
7141
|
I.c = I.e = null;
|
|
7142
7142
|
};
|
|
7143
7143
|
})();
|
|
7144
|
-
function H(o,
|
|
7145
|
-
var m, I, T, p, E, S, R,
|
|
7146
|
-
if (
|
|
7144
|
+
function H(o, l, f, _) {
|
|
7145
|
+
var m, I, T, p, E, S, R, b = o.c, O = Te;
|
|
7146
|
+
if (b) {
|
|
7147
7147
|
t: {
|
|
7148
|
-
for (m = 1, p =
|
|
7149
|
-
if (I =
|
|
7150
|
-
else if (S = Se((I + 1) /
|
|
7151
|
-
for (;
|
|
7152
|
-
E = R = 0, m = 1, I %=
|
|
7148
|
+
for (m = 1, p = b[0]; p >= 10; p /= 10, m++) ;
|
|
7149
|
+
if (I = l - m, I < 0) I += $, T = l, E = b[S = 0], R = lt(E / O[m - T - 1] % 10);
|
|
7150
|
+
else if (S = Se((I + 1) / $), S >= b.length) if (_) {
|
|
7151
|
+
for (; b.length <= S; b.push(0)) ;
|
|
7152
|
+
E = R = 0, m = 1, I %= $, T = I - $ + 1;
|
|
7153
7153
|
} else break t;
|
|
7154
7154
|
else {
|
|
7155
|
-
for (E = p =
|
|
7156
|
-
I %=
|
|
7155
|
+
for (E = p = b[S], m = 1; p >= 10; p /= 10, m++) ;
|
|
7156
|
+
I %= $, T = I - $ + m, R = T < 0 ? 0 : lt(E / O[m - T - 1] % 10);
|
|
7157
7157
|
}
|
|
7158
|
-
if (_ = _ ||
|
|
7159
|
-
if (I == 0 ? (
|
|
7160
|
-
for (I = 1, T =
|
|
7161
|
-
for (T =
|
|
7162
|
-
I != p && (o.e++,
|
|
7158
|
+
if (_ = _ || l < 0 || b[S + 1] != null || (T < 0 ? E : E % O[m - T - 1]), _ = f < 4 ? (R || _) && (f == 0 || f == (o.s < 0 ? 3 : 2)) : R > 5 || R == 5 && (f == 4 || _ || f == 6 && (I > 0 ? T > 0 ? E / O[m - T] : 0 : b[S - 1]) % 10 & 1 || f == (o.s < 0 ? 8 : 7)), l < 1 || !b[0]) return b.length = 0, _ ? (l -= o.e + 1, b[0] = O[($ - l % $) % $], o.e = -l || 0) : b[0] = o.e = 0, o;
|
|
7159
|
+
if (I == 0 ? (b.length = S, p = 1, S--) : (b.length = S + 1, p = O[$ - I], b[S] = T > 0 ? lt(E / O[m - T] % O[T]) * p : 0), _) for (; ; ) if (S == 0) {
|
|
7160
|
+
for (I = 1, T = b[0]; T >= 10; T /= 10, I++) ;
|
|
7161
|
+
for (T = b[0] += p, p = 1; T >= 10; T /= 10, p++) ;
|
|
7162
|
+
I != p && (o.e++, b[0] == pt && (b[0] = 1));
|
|
7163
7163
|
break;
|
|
7164
7164
|
} else {
|
|
7165
|
-
if (
|
|
7166
|
-
|
|
7165
|
+
if (b[S] += p, b[S] != pt) break;
|
|
7166
|
+
b[S--] = 0, p = 1;
|
|
7167
7167
|
}
|
|
7168
|
-
for (I =
|
|
7168
|
+
for (I = b.length; b[--I] === 0; b.pop()) ;
|
|
7169
7169
|
}
|
|
7170
7170
|
o.e > w ? o.c = o.e = null : o.e < g && (o.c = [o.e = 0]);
|
|
7171
7171
|
}
|
|
@@ -7173,68 +7173,68 @@ function br(t) {
|
|
|
7173
7173
|
}
|
|
7174
7174
|
c(H, "round");
|
|
7175
7175
|
function j(o) {
|
|
7176
|
-
var
|
|
7177
|
-
return f === null ? o.toString() : (
|
|
7176
|
+
var l, f = o.e;
|
|
7177
|
+
return f === null ? o.toString() : (l = ft(o.c), l = f <= h || f >= d ? ie(l, f) : wt(l, f, "0"), o.s < 0 ? "-" + l : l);
|
|
7178
7178
|
}
|
|
7179
7179
|
return c(j, "valueOf"), i.absoluteValue = i.abs = function() {
|
|
7180
7180
|
var o = new A(this);
|
|
7181
7181
|
return o.s < 0 && (o.s = 1), o;
|
|
7182
|
-
}, i.comparedTo = function(o,
|
|
7183
|
-
return
|
|
7184
|
-
}, i.decimalPlaces = i.dp = function(o,
|
|
7182
|
+
}, i.comparedTo = function(o, l) {
|
|
7183
|
+
return Mt(this, new A(o, l));
|
|
7184
|
+
}, i.decimalPlaces = i.dp = function(o, l) {
|
|
7185
7185
|
var f, _, m, I = this;
|
|
7186
|
-
if (o != null) return
|
|
7186
|
+
if (o != null) return Q(o, 0, tt), l == null ? l = u : Q(l, 0, 8), H(new A(I), o + I.e + 1, l);
|
|
7187
7187
|
if (!(f = I.c)) return null;
|
|
7188
|
-
if (_ = ((m = f.length - 1) -
|
|
7188
|
+
if (_ = ((m = f.length - 1) - ut(this.e / $)) * $, m = f[m]) for (; m % 10 == 0; m /= 10, _--) ;
|
|
7189
7189
|
return _ < 0 && (_ = 0), _;
|
|
7190
|
-
}, i.dividedBy = i.div = function(o,
|
|
7191
|
-
return e(this, new A(o,
|
|
7192
|
-
}, i.dividedToIntegerBy = i.idiv = function(o,
|
|
7193
|
-
return e(this, new A(o,
|
|
7194
|
-
}, i.exponentiatedBy = i.pow = function(o,
|
|
7195
|
-
var f, _, m, I, T, p, E, S, R,
|
|
7190
|
+
}, i.dividedBy = i.div = function(o, l) {
|
|
7191
|
+
return e(this, new A(o, l), a, u);
|
|
7192
|
+
}, i.dividedToIntegerBy = i.idiv = function(o, l) {
|
|
7193
|
+
return e(this, new A(o, l), 0, 1);
|
|
7194
|
+
}, i.exponentiatedBy = i.pow = function(o, l) {
|
|
7195
|
+
var f, _, m, I, T, p, E, S, R, b = this;
|
|
7196
7196
|
if (o = new A(o), o.c && !o.isInteger()) throw Error(st + "Exponent not an integer: " + j(o));
|
|
7197
|
-
if (
|
|
7198
|
-
if (E = o.s < 0,
|
|
7199
|
-
if (
|
|
7200
|
-
_ = !E &&
|
|
7197
|
+
if (l != null && (l = new A(l)), p = o.e > 14, !b.c || !b.c[0] || b.c[0] == 1 && !b.e && b.c.length == 1 || !o.c || !o.c[0]) return R = new A(Math.pow(+j(b), p ? o.s * (2 - ne(o)) : +j(o))), l ? R.mod(l) : R;
|
|
7198
|
+
if (E = o.s < 0, l) {
|
|
7199
|
+
if (l.c ? !l.c[0] : !l.s) return new A(NaN);
|
|
7200
|
+
_ = !E && b.isInteger() && l.isInteger(), _ && (b = b.mod(l));
|
|
7201
7201
|
} else {
|
|
7202
|
-
if (o.e > 9 && (
|
|
7203
|
-
|
|
7202
|
+
if (o.e > 9 && (b.e > 0 || b.e < -1 || (b.e == 0 ? b.c[0] > 1 || p && b.c[1] >= 24e7 : b.c[0] < 8e13 || p && b.c[0] <= 9999975e7))) return I = b.s < 0 && ne(o) ? -0 : 0, b.e > -1 && (I = 1 / I), new A(E ? 1 / I : I);
|
|
7203
|
+
D && (I = Se(D / $ + 2));
|
|
7204
7204
|
}
|
|
7205
7205
|
for (p ? (f = new A(0.5), E && (o.s = 1), S = ne(o)) : (m = Math.abs(+j(o)), S = m % 2), R = new A(s); ; ) {
|
|
7206
7206
|
if (S) {
|
|
7207
|
-
if (R = R.times(
|
|
7208
|
-
I ? R.c.length > I && (R.c.length = I) : _ && (R = R.mod(
|
|
7207
|
+
if (R = R.times(b), !R.c) break;
|
|
7208
|
+
I ? R.c.length > I && (R.c.length = I) : _ && (R = R.mod(l));
|
|
7209
7209
|
}
|
|
7210
7210
|
if (m) {
|
|
7211
|
-
if (m =
|
|
7211
|
+
if (m = lt(m / 2), m === 0) break;
|
|
7212
7212
|
S = m % 2;
|
|
7213
7213
|
} else if (o = o.times(f), H(o, o.e + 1, 1), o.e > 14) S = ne(o);
|
|
7214
7214
|
else {
|
|
7215
7215
|
if (m = +j(o), m === 0) break;
|
|
7216
7216
|
S = m % 2;
|
|
7217
7217
|
}
|
|
7218
|
-
|
|
7218
|
+
b = b.times(b), I ? b.c && b.c.length > I && (b.c.length = I) : _ && (b = b.mod(l));
|
|
7219
7219
|
}
|
|
7220
|
-
return _ ? R : (E && (R = s.div(R)),
|
|
7220
|
+
return _ ? R : (E && (R = s.div(R)), l ? R.mod(l) : I ? H(R, D, u, T) : R);
|
|
7221
7221
|
}, i.integerValue = function(o) {
|
|
7222
|
-
var
|
|
7223
|
-
return o == null ? o =
|
|
7224
|
-
}, i.isEqualTo = i.eq = function(o,
|
|
7225
|
-
return
|
|
7222
|
+
var l = new A(this);
|
|
7223
|
+
return o == null ? o = u : Q(o, 0, 8), H(l, l.e + 1, o);
|
|
7224
|
+
}, i.isEqualTo = i.eq = function(o, l) {
|
|
7225
|
+
return Mt(this, new A(o, l)) === 0;
|
|
7226
7226
|
}, i.isFinite = function() {
|
|
7227
7227
|
return !!this.c;
|
|
7228
|
-
}, i.isGreaterThan = i.gt = function(o,
|
|
7229
|
-
return
|
|
7230
|
-
}, i.isGreaterThanOrEqualTo = i.gte = function(o,
|
|
7231
|
-
return (
|
|
7228
|
+
}, i.isGreaterThan = i.gt = function(o, l) {
|
|
7229
|
+
return Mt(this, new A(o, l)) > 0;
|
|
7230
|
+
}, i.isGreaterThanOrEqualTo = i.gte = function(o, l) {
|
|
7231
|
+
return (l = Mt(this, new A(o, l))) === 1 || l === 0;
|
|
7232
7232
|
}, i.isInteger = function() {
|
|
7233
|
-
return !!this.c &&
|
|
7234
|
-
}, i.isLessThan = i.lt = function(o,
|
|
7235
|
-
return
|
|
7236
|
-
}, i.isLessThanOrEqualTo = i.lte = function(o,
|
|
7237
|
-
return (
|
|
7233
|
+
return !!this.c && ut(this.e / $) > this.c.length - 2;
|
|
7234
|
+
}, i.isLessThan = i.lt = function(o, l) {
|
|
7235
|
+
return Mt(this, new A(o, l)) < 0;
|
|
7236
|
+
}, i.isLessThanOrEqualTo = i.lte = function(o, l) {
|
|
7237
|
+
return (l = Mt(this, new A(o, l))) === -1 || l === 0;
|
|
7238
7238
|
}, i.isNaN = function() {
|
|
7239
7239
|
return !this.s;
|
|
7240
7240
|
}, i.isNegative = function() {
|
|
@@ -7243,156 +7243,156 @@ function br(t) {
|
|
|
7243
7243
|
return this.s > 0;
|
|
7244
7244
|
}, i.isZero = function() {
|
|
7245
7245
|
return !!this.c && this.c[0] == 0;
|
|
7246
|
-
}, i.minus = function(o,
|
|
7246
|
+
}, i.minus = function(o, l) {
|
|
7247
7247
|
var f, _, m, I, T = this, p = T.s;
|
|
7248
|
-
if (o = new A(o,
|
|
7249
|
-
if (p !=
|
|
7250
|
-
var E = T.e /
|
|
7248
|
+
if (o = new A(o, l), l = o.s, !p || !l) return new A(NaN);
|
|
7249
|
+
if (p != l) return o.s = -l, T.plus(o);
|
|
7250
|
+
var E = T.e / $, S = o.e / $, R = T.c, b = o.c;
|
|
7251
7251
|
if (!E || !S) {
|
|
7252
|
-
if (!R || !
|
|
7253
|
-
if (!R[0] || !
|
|
7252
|
+
if (!R || !b) return R ? (o.s = -l, o) : new A(b ? T : NaN);
|
|
7253
|
+
if (!R[0] || !b[0]) return b[0] ? (o.s = -l, o) : new A(R[0] ? T : u == 3 ? -0 : 0);
|
|
7254
7254
|
}
|
|
7255
|
-
if (E =
|
|
7256
|
-
for ((I = p < 0) ? (p = -p, m = R) : (S = E, m =
|
|
7255
|
+
if (E = ut(E), S = ut(S), R = R.slice(), p = E - S) {
|
|
7256
|
+
for ((I = p < 0) ? (p = -p, m = R) : (S = E, m = b), m.reverse(), l = p; l--; m.push(0)) ;
|
|
7257
7257
|
m.reverse();
|
|
7258
|
-
} else for (_ = (I = (p = R.length) < (
|
|
7259
|
-
I = R[
|
|
7258
|
+
} else for (_ = (I = (p = R.length) < (l = b.length)) ? p : l, p = l = 0; l < _; l++) if (R[l] != b[l]) {
|
|
7259
|
+
I = R[l] < b[l];
|
|
7260
7260
|
break;
|
|
7261
7261
|
}
|
|
7262
|
-
if (I && (m = R, R =
|
|
7263
|
-
for (
|
|
7264
|
-
if (R[--_] <
|
|
7265
|
-
for (f = _; f && !R[--f]; R[f] =
|
|
7262
|
+
if (I && (m = R, R = b, b = m, o.s = -o.s), l = (_ = b.length) - (f = R.length), l > 0) for (; l--; R[f++] = 0) ;
|
|
7263
|
+
for (l = pt - 1; _ > p; ) {
|
|
7264
|
+
if (R[--_] < b[_]) {
|
|
7265
|
+
for (f = _; f && !R[--f]; R[f] = l) ;
|
|
7266
7266
|
--R[f], R[_] += pt;
|
|
7267
7267
|
}
|
|
7268
|
-
R[_] -=
|
|
7268
|
+
R[_] -= b[_];
|
|
7269
7269
|
}
|
|
7270
7270
|
for (; R[0] == 0; R.splice(0, 1), --S) ;
|
|
7271
|
-
return R[0] ?
|
|
7272
|
-
}, i.modulo = i.mod = function(o,
|
|
7271
|
+
return R[0] ? C(o, R, S) : (o.s = u == 3 ? -1 : 1, o.c = [o.e = 0], o);
|
|
7272
|
+
}, i.modulo = i.mod = function(o, l) {
|
|
7273
7273
|
var f, _, m = this;
|
|
7274
|
-
return o = new A(o,
|
|
7275
|
-
}, i.multipliedBy = i.times = function(o,
|
|
7276
|
-
var f, _, m, I, T, p, E, S, R,
|
|
7274
|
+
return o = new A(o, l), !m.c || !o.s || o.c && !o.c[0] ? new A(NaN) : !o.c || m.c && !m.c[0] ? new A(m) : (v == 9 ? (_ = o.s, o.s = 1, f = e(m, o, 0, 3), o.s = _, f.s *= _) : f = e(m, o, 0, v), o = m.minus(f.times(o)), !o.c[0] && v == 1 && (o.s = m.s), o);
|
|
7275
|
+
}, i.multipliedBy = i.times = function(o, l) {
|
|
7276
|
+
var f, _, m, I, T, p, E, S, R, b, O, B, G, F, W, N = this, k = N.c, Y = (o = new A(o, l)).c;
|
|
7277
7277
|
if (!k || !Y || !k[0] || !Y[0]) return !N.s || !o.s || k && !k[0] && !Y || Y && !Y[0] && !k ? o.c = o.e = o.s = null : (o.s *= N.s, !k || !Y ? o.c = o.e = null : (o.c = [0], o.e = 0)), o;
|
|
7278
|
-
for (_ =
|
|
7279
|
-
for (F = pt,
|
|
7280
|
-
for (f = 0,
|
|
7281
|
-
|
|
7278
|
+
for (_ = ut(N.e / $) + ut(o.e / $), o.s *= N.s, E = k.length, b = Y.length, E < b && (G = k, k = Y, Y = G, m = E, E = b, b = m), m = E + b, G = []; m--; G.push(0)) ;
|
|
7279
|
+
for (F = pt, W = vt, m = b; --m >= 0; ) {
|
|
7280
|
+
for (f = 0, O = Y[m] % W, B = Y[m] / W | 0, T = E, I = m + T; I > m; ) S = k[--T] % W, R = k[T] / W | 0, p = B * S + R * O, S = O * S + p % W * W + G[I] + f, f = (S / F | 0) + (p / W | 0) + B * R, G[I--] = S % F;
|
|
7281
|
+
G[I] = f;
|
|
7282
7282
|
}
|
|
7283
|
-
return f ? ++_ :
|
|
7283
|
+
return f ? ++_ : G.splice(0, 1), C(o, G, _);
|
|
7284
7284
|
}, i.negated = function() {
|
|
7285
7285
|
var o = new A(this);
|
|
7286
7286
|
return o.s = -o.s || null, o;
|
|
7287
|
-
}, i.plus = function(o,
|
|
7287
|
+
}, i.plus = function(o, l) {
|
|
7288
7288
|
var f, _ = this, m = _.s;
|
|
7289
|
-
if (o = new A(o,
|
|
7290
|
-
if (m !=
|
|
7291
|
-
var I = _.e /
|
|
7289
|
+
if (o = new A(o, l), l = o.s, !m || !l) return new A(NaN);
|
|
7290
|
+
if (m != l) return o.s = -l, _.minus(o);
|
|
7291
|
+
var I = _.e / $, T = o.e / $, p = _.c, E = o.c;
|
|
7292
7292
|
if (!I || !T) {
|
|
7293
7293
|
if (!p || !E) return new A(m / 0);
|
|
7294
7294
|
if (!p[0] || !E[0]) return E[0] ? o : new A(p[0] ? _ : m * 0);
|
|
7295
7295
|
}
|
|
7296
|
-
if (I =
|
|
7296
|
+
if (I = ut(I), T = ut(T), p = p.slice(), m = I - T) {
|
|
7297
7297
|
for (m > 0 ? (T = I, f = E) : (m = -m, f = p), f.reverse(); m--; f.push(0)) ;
|
|
7298
7298
|
f.reverse();
|
|
7299
7299
|
}
|
|
7300
|
-
for (m = p.length,
|
|
7301
|
-
return m && (p = [m].concat(p), ++T),
|
|
7302
|
-
}, i.precision = i.sd = function(o,
|
|
7300
|
+
for (m = p.length, l = E.length, m - l < 0 && (f = E, E = p, p = f, l = m), m = 0; l; ) m = (p[--l] = p[l] + E[l] + m) / pt | 0, p[l] = pt === p[l] ? 0 : p[l] % pt;
|
|
7301
|
+
return m && (p = [m].concat(p), ++T), C(o, p, T);
|
|
7302
|
+
}, i.precision = i.sd = function(o, l) {
|
|
7303
7303
|
var f, _, m, I = this;
|
|
7304
|
-
if (o != null && o !== !!o) return
|
|
7304
|
+
if (o != null && o !== !!o) return Q(o, 1, tt), l == null ? l = u : Q(l, 0, 8), H(new A(I), o, l);
|
|
7305
7305
|
if (!(f = I.c)) return null;
|
|
7306
|
-
if (m = f.length - 1, _ = m *
|
|
7306
|
+
if (m = f.length - 1, _ = m * $ + 1, m = f[m]) {
|
|
7307
7307
|
for (; m % 10 == 0; m /= 10, _--) ;
|
|
7308
7308
|
for (m = f[0]; m >= 10; m /= 10, _++) ;
|
|
7309
7309
|
}
|
|
7310
7310
|
return o && I.e + 1 > _ && (_ = I.e + 1), _;
|
|
7311
7311
|
}, i.shiftedBy = function(o) {
|
|
7312
|
-
return
|
|
7312
|
+
return Q(o, -Re, Re), this.times("1e" + o);
|
|
7313
7313
|
}, i.squareRoot = i.sqrt = function() {
|
|
7314
|
-
var o,
|
|
7314
|
+
var o, l, f, _, m, I = this, T = I.c, p = I.s, E = I.e, S = a + 4, R = new A("0.5");
|
|
7315
7315
|
if (p !== 1 || !T || !T[0]) return new A(!p || p < 0 && (!T || T[0]) ? NaN : T ? I : 1 / 0);
|
|
7316
|
-
if (p = Math.sqrt(+j(I)), p == 0 || p == 1 / 0 ? (
|
|
7317
|
-
for (E = f.e, p = E + S, p < 3 && (p = 0); ; ) if (m = f, f = R.times(m.plus(e(I, m, S, 1))), ft(m.c).slice(0, p) === (
|
|
7316
|
+
if (p = Math.sqrt(+j(I)), p == 0 || p == 1 / 0 ? (l = ft(T), (l.length + E) % 2 == 0 && (l += "0"), p = Math.sqrt(+l), E = ut((E + 1) / 2) - (E < 0 || E % 2), p == 1 / 0 ? l = "5e" + E : (l = p.toExponential(), l = l.slice(0, l.indexOf("e") + 1) + E), f = new A(l)) : f = new A(p + ""), f.c[0]) {
|
|
7317
|
+
for (E = f.e, p = E + S, p < 3 && (p = 0); ; ) if (m = f, f = R.times(m.plus(e(I, m, S, 1))), ft(m.c).slice(0, p) === (l = ft(f.c)).slice(0, p)) if (f.e < E && --p, l = l.slice(p - 3, p + 1), l == "9999" || !_ && l == "4999") {
|
|
7318
7318
|
if (!_ && (H(m, m.e + a + 2, 0), m.times(m).eq(I))) {
|
|
7319
7319
|
f = m;
|
|
7320
7320
|
break;
|
|
7321
7321
|
}
|
|
7322
7322
|
S += 4, p += 4, _ = 1;
|
|
7323
7323
|
} else {
|
|
7324
|
-
(!+
|
|
7324
|
+
(!+l || !+l.slice(1) && l.charAt(0) == "5") && (H(f, f.e + a + 2, 1), o = !f.times(f).eq(I));
|
|
7325
7325
|
break;
|
|
7326
7326
|
}
|
|
7327
7327
|
}
|
|
7328
|
-
return H(f, f.e + a + 1,
|
|
7329
|
-
}, i.toExponential = function(o,
|
|
7330
|
-
return o != null && (
|
|
7331
|
-
}, i.toFixed = function(o,
|
|
7332
|
-
return o != null && (
|
|
7333
|
-
}, i.toFormat = function(o,
|
|
7328
|
+
return H(f, f.e + a + 1, u, o);
|
|
7329
|
+
}, i.toExponential = function(o, l) {
|
|
7330
|
+
return o != null && (Q(o, 0, tt), o++), L(this, o, l, 1);
|
|
7331
|
+
}, i.toFixed = function(o, l) {
|
|
7332
|
+
return o != null && (Q(o, 0, tt), o = o + this.e + 1), L(this, o, l);
|
|
7333
|
+
}, i.toFormat = function(o, l, f) {
|
|
7334
7334
|
var _, m = this;
|
|
7335
|
-
if (f == null) o != null &&
|
|
7335
|
+
if (f == null) o != null && l && typeof l == "object" ? (f = l, l = null) : o && typeof o == "object" ? (f = o, o = l = null) : f = M;
|
|
7336
7336
|
else if (typeof f != "object") throw Error(st + "Argument not an object: " + f);
|
|
7337
|
-
if (_ = m.toFixed(o,
|
|
7338
|
-
var I, T = _.split("."), p = +f.groupSize, E = +f.secondaryGroupSize, S = f.groupSeparator || "", R = T[0],
|
|
7339
|
-
if (E && (I = p, p = E, E = I,
|
|
7340
|
-
for (I =
|
|
7341
|
-
E > 0 && (R += S + B.slice(I)),
|
|
7337
|
+
if (_ = m.toFixed(o, l), m.c) {
|
|
7338
|
+
var I, T = _.split("."), p = +f.groupSize, E = +f.secondaryGroupSize, S = f.groupSeparator || "", R = T[0], b = T[1], O = m.s < 0, B = O ? R.slice(1) : R, G = B.length;
|
|
7339
|
+
if (E && (I = p, p = E, E = I, G -= I), p > 0 && G > 0) {
|
|
7340
|
+
for (I = G % p || p, R = B.substr(0, I); I < G; I += p) R += S + B.substr(I, p);
|
|
7341
|
+
E > 0 && (R += S + B.slice(I)), O && (R = "-" + R);
|
|
7342
7342
|
}
|
|
7343
|
-
_ =
|
|
7343
|
+
_ = b ? R + (f.decimalSeparator || "") + ((E = +f.fractionGroupSize) ? b.replace(new RegExp("\\d{" + E + "}\\B", "g"), "$&" + (f.fractionGroupSeparator || "")) : b) : R;
|
|
7344
7344
|
}
|
|
7345
7345
|
return (f.prefix || "") + _ + (f.suffix || "");
|
|
7346
7346
|
}, i.toFraction = function(o) {
|
|
7347
|
-
var
|
|
7347
|
+
var l, f, _, m, I, T, p, E, S, R, b, O, B = this, G = B.c;
|
|
7348
7348
|
if (o != null && (p = new A(o), !p.isInteger() && (p.c || p.s !== 1) || p.lt(s))) throw Error(st + "Argument " + (p.isInteger() ? "out of range: " : "not an integer: ") + j(p));
|
|
7349
|
-
if (
|
|
7350
|
-
for (
|
|
7351
|
-
return m = e(o.minus(f), _, 0, 1), E = E.plus(m.times(S)), f = f.plus(m.times(_)), E.s = S.s = B.s, I = I * 2,
|
|
7349
|
+
if (!G) return new A(B);
|
|
7350
|
+
for (l = new A(s), S = f = new A(s), _ = E = new A(s), O = ft(G), I = l.e = O.length - B.e - 1, l.c[0] = Te[(T = I % $) < 0 ? $ + T : T], o = !o || p.comparedTo(l) > 0 ? I > 0 ? l : S : p, T = w, w = 1 / 0, p = new A(O), E.c[0] = 0; R = e(p, l, 0, 1), m = f.plus(R.times(_)), m.comparedTo(o) != 1; ) f = _, _ = m, S = E.plus(R.times(m = S)), E = m, l = p.minus(R.times(m = l)), p = m;
|
|
7351
|
+
return m = e(o.minus(f), _, 0, 1), E = E.plus(m.times(S)), f = f.plus(m.times(_)), E.s = S.s = B.s, I = I * 2, b = e(S, _, I, u).minus(B).abs().comparedTo(e(E, f, I, u).minus(B).abs()) < 1 ? [S, _] : [E, f], w = T, b;
|
|
7352
7352
|
}, i.toNumber = function() {
|
|
7353
7353
|
return +j(this);
|
|
7354
|
-
}, i.toPrecision = function(o,
|
|
7355
|
-
return o != null &&
|
|
7354
|
+
}, i.toPrecision = function(o, l) {
|
|
7355
|
+
return o != null && Q(o, 1, tt), L(this, o, l, 2);
|
|
7356
7356
|
}, i.toString = function(o) {
|
|
7357
|
-
var
|
|
7358
|
-
return m === null ? _ ? (
|
|
7357
|
+
var l, f = this, _ = f.s, m = f.e;
|
|
7358
|
+
return m === null ? _ ? (l = "Infinity", _ < 0 && (l = "-" + l)) : l = "NaN" : (o == null ? l = m <= h || m >= d ? ie(ft(f.c), m) : wt(ft(f.c), m, "0") : o === 10 && P ? (f = H(new A(f), a + m + 1, u), l = wt(ft(f.c), f.e, "0")) : (Q(o, 2, y.length, "Base"), l = r(wt(ft(f.c), m, "0"), 10, o, _, true)), _ < 0 && f.c[0] && (l = "-" + l)), l;
|
|
7359
7359
|
}, i.valueOf = i.toJSON = function() {
|
|
7360
7360
|
return j(this);
|
|
7361
7361
|
}, i._isBigNumber = true, i[Symbol.toStringTag] = "BigNumber", i[Symbol.for("nodejs.util.inspect.custom")] = i.valueOf, t != null && A.set(t), A;
|
|
7362
7362
|
}
|
|
7363
|
-
c(
|
|
7364
|
-
function
|
|
7363
|
+
c(yr, "clone");
|
|
7364
|
+
function ut(t) {
|
|
7365
7365
|
var e = t | 0;
|
|
7366
7366
|
return t > 0 || t === e ? e : e - 1;
|
|
7367
7367
|
}
|
|
7368
|
-
c(
|
|
7368
|
+
c(ut, "bitFloor");
|
|
7369
7369
|
function ft(t) {
|
|
7370
7370
|
for (var e, r, n = 1, i = t.length, s = t[0] + ""; n < i; ) {
|
|
7371
|
-
for (e = t[n++] + "", r =
|
|
7371
|
+
for (e = t[n++] + "", r = $ - e.length; r--; e = "0" + e) ;
|
|
7372
7372
|
s += e;
|
|
7373
7373
|
}
|
|
7374
7374
|
for (i = s.length; s.charCodeAt(--i) === 48; ) ;
|
|
7375
7375
|
return s.slice(0, i + 1 || 1);
|
|
7376
7376
|
}
|
|
7377
7377
|
c(ft, "coeffToString");
|
|
7378
|
-
function
|
|
7379
|
-
var r, n, i = t.c, s = e.c, a = t.s,
|
|
7380
|
-
if (!a || !
|
|
7381
|
-
if (r = i && !i[0], n = s && !s[0], r || n) return r ? n ? 0 : -
|
|
7382
|
-
if (a !=
|
|
7378
|
+
function Mt(t, e) {
|
|
7379
|
+
var r, n, i = t.c, s = e.c, a = t.s, u = e.s, h = t.e, d = e.e;
|
|
7380
|
+
if (!a || !u) return null;
|
|
7381
|
+
if (r = i && !i[0], n = s && !s[0], r || n) return r ? n ? 0 : -u : a;
|
|
7382
|
+
if (a != u) return a;
|
|
7383
7383
|
if (r = a < 0, n = h == d, !i || !s) return n ? 0 : !i ^ r ? 1 : -1;
|
|
7384
7384
|
if (!n) return h > d ^ r ? 1 : -1;
|
|
7385
|
-
for (
|
|
7385
|
+
for (u = (h = i.length) < (d = s.length) ? h : d, a = 0; a < u; a++) if (i[a] != s[a]) return i[a] > s[a] ^ r ? 1 : -1;
|
|
7386
7386
|
return h == d ? 0 : h > d ^ r ? 1 : -1;
|
|
7387
7387
|
}
|
|
7388
|
-
c(
|
|
7389
|
-
function
|
|
7390
|
-
if (t < e || t > r || t !==
|
|
7388
|
+
c(Mt, "compare");
|
|
7389
|
+
function Q(t, e, r, n) {
|
|
7390
|
+
if (t < e || t > r || t !== lt(t)) throw Error(st + (n || "Argument") + (typeof t == "number" ? t < e || t > r ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(t));
|
|
7391
7391
|
}
|
|
7392
|
-
c(
|
|
7392
|
+
c(Q, "intCheck");
|
|
7393
7393
|
function ne(t) {
|
|
7394
7394
|
var e = t.c.length - 1;
|
|
7395
|
-
return
|
|
7395
|
+
return ut(t.e / $) == e && t.c[e] % 2 != 0;
|
|
7396
7396
|
}
|
|
7397
7397
|
c(ne, "isOdd");
|
|
7398
7398
|
function ie(t, e) {
|
|
@@ -7411,7 +7411,7 @@ function wt(t, e, r) {
|
|
|
7411
7411
|
return t;
|
|
7412
7412
|
}
|
|
7413
7413
|
c(wt, "toFixedPoint");
|
|
7414
|
-
var Ii =
|
|
7414
|
+
var Ii = yr();
|
|
7415
7415
|
const Si = 24, qt = 32, Ri = c(() => typeof globalThis < "u" && globalThis.crypto && typeof globalThis.crypto.getRandomValues == "function" ? () => {
|
|
7416
7416
|
const t = new Uint32Array(1);
|
|
7417
7417
|
return globalThis.crypto.getRandomValues(t), t[0] / 4294967296;
|
|
@@ -7426,35 +7426,35 @@ function Ti(t) {
|
|
|
7426
7426
|
return e;
|
|
7427
7427
|
}
|
|
7428
7428
|
c(Ti, "bufToBigInt");
|
|
7429
|
-
const
|
|
7429
|
+
const Ur = c((t = "") => {
|
|
7430
7430
|
const e = new TextEncoder();
|
|
7431
7431
|
return Ti(Ei(e.encode(t))).toString(36).slice(1);
|
|
7432
7432
|
}, "hash"), vr = Array.from({ length: 26 }, (t, e) => String.fromCharCode(e + 97)), wi = c((t) => vr[Math.floor(t() * vr.length)], "randomLetter"), Ai = c(({ globalObj: t = typeof global < "u" ? global : typeof window < "u" ? window : {}, random: e = we } = {}) => {
|
|
7433
7433
|
const r = Object.keys(t).toString(), n = r.length ? r + Ae(qt, e) : Ae(qt, e);
|
|
7434
|
-
return
|
|
7435
|
-
}, "createFingerprint"),
|
|
7434
|
+
return Ur(n).substring(0, qt);
|
|
7435
|
+
}, "createFingerprint"), bi = c((t) => () => t++, "createCounter"), yi = 476782367, Ui = c(({ random: t = we, counter: e = bi(Math.floor(t() * yi)), length: r = Si, fingerprint: n = Ai({ random: t }) } = {}) => {
|
|
7436
7436
|
if (r > qt) throw new Error(`Length must be between 2 and ${qt}. Received: ${r}`);
|
|
7437
7437
|
return c(function() {
|
|
7438
|
-
const s = wi(t), a = Date.now().toString(36),
|
|
7439
|
-
return `${s +
|
|
7438
|
+
const s = wi(t), a = Date.now().toString(36), u = e().toString(36), h = Ae(r, t), d = `${a + h + u + n}`;
|
|
7439
|
+
return `${s + Ur(d).substring(1, r)}`;
|
|
7440
7440
|
}, "cuid2");
|
|
7441
|
-
}, "init"), Yt = vi(
|
|
7441
|
+
}, "init"), Yt = vi(Ui);
|
|
7442
7442
|
function vi(t) {
|
|
7443
7443
|
let e;
|
|
7444
7444
|
return () => (e || (e = t()), e());
|
|
7445
7445
|
}
|
|
7446
7446
|
c(vi, "lazy");
|
|
7447
|
-
var
|
|
7448
|
-
function
|
|
7447
|
+
var Ci = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7448
|
+
function Cr(t) {
|
|
7449
7449
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
7450
7450
|
}
|
|
7451
|
-
c(
|
|
7451
|
+
c(Cr, "getDefaultExportFromCjs");
|
|
7452
7452
|
var xt = {}, Br;
|
|
7453
7453
|
function Bi() {
|
|
7454
7454
|
if (Br) return xt;
|
|
7455
7455
|
Br = 1, Object.defineProperty(xt, "__esModule", { value: true }), xt.isBinaryFileSync = xt.isBinaryFile = void 0;
|
|
7456
|
-
const t =
|
|
7457
|
-
class
|
|
7456
|
+
const t = Wt, e = kn, r = (0, e.promisify)(t.stat), n = (0, e.promisify)(t.open), i = (0, e.promisify)(t.close), s = 512, a = 3;
|
|
7457
|
+
class u {
|
|
7458
7458
|
static {
|
|
7459
7459
|
c(this, "Reader");
|
|
7460
7460
|
}
|
|
@@ -7473,20 +7473,20 @@ function Bi() {
|
|
|
7473
7473
|
}
|
|
7474
7474
|
next(P) {
|
|
7475
7475
|
const A = new Array();
|
|
7476
|
-
for (let
|
|
7476
|
+
for (let L = 0; L < P; L++) {
|
|
7477
7477
|
if (this.error) return A;
|
|
7478
|
-
A[
|
|
7478
|
+
A[L] = this.nextByte();
|
|
7479
7479
|
}
|
|
7480
7480
|
return A;
|
|
7481
7481
|
}
|
|
7482
7482
|
}
|
|
7483
|
-
function h(
|
|
7483
|
+
function h(y) {
|
|
7484
7484
|
let P = 0, A = 0;
|
|
7485
|
-
for (; !
|
|
7486
|
-
const
|
|
7487
|
-
if (A = A | (
|
|
7485
|
+
for (; !y.hasError(); ) {
|
|
7486
|
+
const L = y.nextByte();
|
|
7487
|
+
if (A = A | (L & 127) << 7 * P, (L & 128) === 0) break;
|
|
7488
7488
|
if (P >= 10) {
|
|
7489
|
-
|
|
7489
|
+
y.error = true;
|
|
7490
7490
|
break;
|
|
7491
7491
|
}
|
|
7492
7492
|
P++;
|
|
@@ -7494,123 +7494,123 @@ function Bi() {
|
|
|
7494
7494
|
return A;
|
|
7495
7495
|
}
|
|
7496
7496
|
c(h, "readProtoVarInt");
|
|
7497
|
-
function d(
|
|
7498
|
-
switch (h(
|
|
7497
|
+
function d(y) {
|
|
7498
|
+
switch (h(y) & 7) {
|
|
7499
7499
|
case 0:
|
|
7500
|
-
return h(
|
|
7500
|
+
return h(y), true;
|
|
7501
7501
|
case 1:
|
|
7502
|
-
return
|
|
7502
|
+
return y.next(8), true;
|
|
7503
7503
|
case 2:
|
|
7504
|
-
const
|
|
7505
|
-
return
|
|
7504
|
+
const L = h(y);
|
|
7505
|
+
return y.next(L), true;
|
|
7506
7506
|
case 5:
|
|
7507
|
-
return
|
|
7507
|
+
return y.next(4), true;
|
|
7508
7508
|
}
|
|
7509
7509
|
return false;
|
|
7510
7510
|
}
|
|
7511
7511
|
c(d, "readProtoMessage");
|
|
7512
|
-
function g(
|
|
7513
|
-
const A = new
|
|
7514
|
-
let
|
|
7512
|
+
function g(y, P) {
|
|
7513
|
+
const A = new u(y, P);
|
|
7514
|
+
let L = 0;
|
|
7515
7515
|
for (; ; ) {
|
|
7516
7516
|
if (!d(A) && !A.hasError()) return false;
|
|
7517
7517
|
if (A.hasError()) break;
|
|
7518
|
-
|
|
7518
|
+
L++;
|
|
7519
7519
|
}
|
|
7520
|
-
return
|
|
7520
|
+
return L > 0;
|
|
7521
7521
|
}
|
|
7522
7522
|
c(g, "isBinaryProto");
|
|
7523
|
-
async function w(
|
|
7524
|
-
if (
|
|
7525
|
-
const A = await r(
|
|
7526
|
-
|
|
7527
|
-
const
|
|
7528
|
-
return new Promise((
|
|
7529
|
-
t.read(
|
|
7530
|
-
if (i(
|
|
7523
|
+
async function w(y, P) {
|
|
7524
|
+
if (D(y)) {
|
|
7525
|
+
const A = await r(y);
|
|
7526
|
+
M(A);
|
|
7527
|
+
const L = await n(y, "r"), x = Buffer.alloc(s + a);
|
|
7528
|
+
return new Promise((C, H) => {
|
|
7529
|
+
t.read(L, x, 0, s + a, 0, (j, o, l) => {
|
|
7530
|
+
if (i(L), j) H(j);
|
|
7531
7531
|
else try {
|
|
7532
|
-
|
|
7532
|
+
C(v(x, o));
|
|
7533
7533
|
} catch (f) {
|
|
7534
7534
|
H(f);
|
|
7535
7535
|
}
|
|
7536
7536
|
});
|
|
7537
7537
|
});
|
|
7538
|
-
} else return P === void 0 && (P =
|
|
7538
|
+
} else return P === void 0 && (P = y.length), v(y, P);
|
|
7539
7539
|
}
|
|
7540
7540
|
c(w, "isBinaryFile"), xt.isBinaryFile = w;
|
|
7541
|
-
function
|
|
7542
|
-
if (
|
|
7543
|
-
const A = t.statSync(
|
|
7544
|
-
|
|
7545
|
-
const
|
|
7546
|
-
return t.closeSync(
|
|
7547
|
-
} else return P === void 0 && (P =
|
|
7548
|
-
}
|
|
7549
|
-
c(
|
|
7550
|
-
function v(
|
|
7541
|
+
function U(y, P) {
|
|
7542
|
+
if (D(y)) {
|
|
7543
|
+
const A = t.statSync(y);
|
|
7544
|
+
M(A);
|
|
7545
|
+
const L = t.openSync(y, "r"), x = Buffer.alloc(s + a), C = t.readSync(L, x, 0, s + a, 0);
|
|
7546
|
+
return t.closeSync(L), v(x, C);
|
|
7547
|
+
} else return P === void 0 && (P = y.length), v(y, P);
|
|
7548
|
+
}
|
|
7549
|
+
c(U, "isBinaryFileSync"), xt.isBinaryFileSync = U;
|
|
7550
|
+
function v(y, P) {
|
|
7551
7551
|
if (P === 0) return false;
|
|
7552
7552
|
let A = 0;
|
|
7553
|
-
const
|
|
7554
|
-
if (P >= 3 &&
|
|
7555
|
-
if (
|
|
7556
|
-
if (P >= 2 &&
|
|
7557
|
-
for (let
|
|
7558
|
-
if (
|
|
7559
|
-
if ((
|
|
7560
|
-
if (
|
|
7561
|
-
if (
|
|
7562
|
-
} else if (
|
|
7563
|
-
if (
|
|
7564
|
-
|
|
7553
|
+
const L = Math.min(P, s + a), x = Math.min(L, s);
|
|
7554
|
+
if (P >= 3 && y[0] === 239 && y[1] === 187 && y[2] === 191 || P >= 4 && y[0] === 0 && y[1] === 0 && y[2] === 254 && y[3] === 255 || P >= 4 && y[0] === 255 && y[1] === 254 && y[2] === 0 && y[3] === 0 || P >= 4 && y[0] === 132 && y[1] === 49 && y[2] === 149 && y[3] === 51) return false;
|
|
7555
|
+
if (L >= 5 && y.slice(0, 5).toString() === "%PDF-") return true;
|
|
7556
|
+
if (P >= 2 && y[0] === 254 && y[1] === 255 || P >= 2 && y[0] === 255 && y[1] === 254) return false;
|
|
7557
|
+
for (let C = 0; C < x; C++) {
|
|
7558
|
+
if (y[C] === 0) return true;
|
|
7559
|
+
if ((y[C] < 7 || y[C] > 14) && (y[C] < 32 || y[C] > 127)) {
|
|
7560
|
+
if (y[C] >= 192 && y[C] <= 223 && C + 1 < L) {
|
|
7561
|
+
if (C++, y[C] >= 128 && y[C] <= 191) continue;
|
|
7562
|
+
} else if (y[C] >= 224 && y[C] <= 239 && C + 2 < L) {
|
|
7563
|
+
if (C++, y[C] >= 128 && y[C] <= 191 && y[C + 1] >= 128 && y[C + 1] <= 191) {
|
|
7564
|
+
C++;
|
|
7565
7565
|
continue;
|
|
7566
7566
|
}
|
|
7567
|
-
} else if (
|
|
7568
|
-
|
|
7567
|
+
} else if (y[C] >= 240 && y[C] <= 247 && C + 3 < L && (C++, y[C] >= 128 && y[C] <= 191 && y[C + 1] >= 128 && y[C + 1] <= 191 && y[C + 2] >= 128 && y[C + 2] <= 191)) {
|
|
7568
|
+
C += 2;
|
|
7569
7569
|
continue;
|
|
7570
7570
|
}
|
|
7571
|
-
if (A++,
|
|
7571
|
+
if (A++, C >= 32 && A * 100 / x > 10) return true;
|
|
7572
7572
|
}
|
|
7573
7573
|
}
|
|
7574
|
-
return !!(A * 100 / x > 10 || A > 1 && g(
|
|
7574
|
+
return !!(A * 100 / x > 10 || A > 1 && g(y, x));
|
|
7575
7575
|
}
|
|
7576
7576
|
c(v, "isBinaryCheck");
|
|
7577
|
-
function
|
|
7578
|
-
return typeof
|
|
7577
|
+
function D(y) {
|
|
7578
|
+
return typeof y == "string";
|
|
7579
7579
|
}
|
|
7580
|
-
c(
|
|
7581
|
-
function
|
|
7582
|
-
if (!
|
|
7580
|
+
c(D, "isString");
|
|
7581
|
+
function M(y) {
|
|
7582
|
+
if (!y.isFile()) throw new Error("Path provided was not a file!");
|
|
7583
7583
|
}
|
|
7584
|
-
return c(
|
|
7584
|
+
return c(M, "isStatFile"), xt;
|
|
7585
7585
|
}
|
|
7586
7586
|
c(Bi, "requireLib");
|
|
7587
|
-
var Pi = Bi(), z = Uint8Array, at = Uint16Array,
|
|
7587
|
+
var Pi = Bi(), z = Uint8Array, at = Uint16Array, be = Int32Array, se = new z([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0]), oe = new z([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0]), ye = new z([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Pr = c(function(t, e) {
|
|
7588
7588
|
for (var r = new at(31), n = 0; n < 31; ++n) r[n] = e += 1 << t[n - 1];
|
|
7589
|
-
for (var i = new
|
|
7589
|
+
for (var i = new be(r[30]), n = 1; n < 30; ++n) for (var s = r[n]; s < r[n + 1]; ++s) i[s] = s - r[n] << 5 | n;
|
|
7590
7590
|
return { b: r, r: i };
|
|
7591
|
-
}, "freb"),
|
|
7592
|
-
|
|
7593
|
-
for (var Nr = Pr(oe, 0),
|
|
7594
|
-
var
|
|
7595
|
-
|
|
7591
|
+
}, "freb"), Lr = Pr(se, 2), Or = Lr.b, Ue = Lr.r;
|
|
7592
|
+
Or[28] = 258, Ue[258] = 28;
|
|
7593
|
+
for (var Nr = Pr(oe, 0), Li = Nr.b, Dr = Nr.r, ve = new at(32768), K = 0; K < 32768; ++K) {
|
|
7594
|
+
var Ct = (K & 43690) >> 1 | (K & 21845) << 1;
|
|
7595
|
+
Ct = (Ct & 52428) >> 2 | (Ct & 13107) << 2, Ct = (Ct & 61680) >> 4 | (Ct & 3855) << 4, ve[K] = ((Ct & 65280) >> 8 | (Ct & 255) << 8) >> 1;
|
|
7596
7596
|
}
|
|
7597
7597
|
for (var _t = c((function(t, e, r) {
|
|
7598
7598
|
for (var n = t.length, i = 0, s = new at(e); i < n; ++i) t[i] && ++s[t[i] - 1];
|
|
7599
7599
|
var a = new at(e);
|
|
7600
7600
|
for (i = 1; i < e; ++i) a[i] = a[i - 1] + s[i - 1] << 1;
|
|
7601
|
-
var
|
|
7601
|
+
var u;
|
|
7602
7602
|
if (r) {
|
|
7603
|
-
|
|
7603
|
+
u = new at(1 << e);
|
|
7604
7604
|
var h = 15 - e;
|
|
7605
|
-
for (i = 0; i < n; ++i) if (t[i]) for (var d = i << 4 | t[i], g = e - t[i], w = a[t[i] - 1]++ << g,
|
|
7606
|
-
} else for (
|
|
7607
|
-
return
|
|
7608
|
-
}), "hMap"), Bt = new z(288),
|
|
7609
|
-
for (var
|
|
7610
|
-
for (var
|
|
7611
|
-
for (var
|
|
7612
|
-
for (var
|
|
7613
|
-
var
|
|
7605
|
+
for (i = 0; i < n; ++i) if (t[i]) for (var d = i << 4 | t[i], g = e - t[i], w = a[t[i] - 1]++ << g, U = w | (1 << g) - 1; w <= U; ++w) u[ve[w] >> h] = d;
|
|
7606
|
+
} else for (u = new at(n), i = 0; i < n; ++i) t[i] && (u[i] = ve[a[t[i] - 1]++] >> 15 - t[i]);
|
|
7607
|
+
return u;
|
|
7608
|
+
}), "hMap"), Bt = new z(288), K = 0; K < 144; ++K) Bt[K] = 8;
|
|
7609
|
+
for (var K = 144; K < 256; ++K) Bt[K] = 9;
|
|
7610
|
+
for (var K = 256; K < 280; ++K) Bt[K] = 7;
|
|
7611
|
+
for (var K = 280; K < 288; ++K) Bt[K] = 8;
|
|
7612
|
+
for (var Qt = new z(32), K = 0; K < 32; ++K) Qt[K] = 5;
|
|
7613
|
+
var Oi = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Di = _t(Qt, 5, 0), Mi = _t(Qt, 5, 1), Ce = c(function(t) {
|
|
7614
7614
|
for (var e = t[0], r = 1; r < t.length; ++r) t[r] > e && (e = t[r]);
|
|
7615
7615
|
return e;
|
|
7616
7616
|
}, "max"), mt = c(function(t, e, r) {
|
|
@@ -7621,16 +7621,16 @@ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
|
7621
7621
|
return (t[r] | t[r + 1] << 8 | t[r + 2] << 16) >> (e & 7);
|
|
7622
7622
|
}, "bits16"), Pe = c(function(t) {
|
|
7623
7623
|
return (t + 7) / 8 | 0;
|
|
7624
|
-
}, "shft"),
|
|
7624
|
+
}, "shft"), Jt = c(function(t, e, r) {
|
|
7625
7625
|
return (e == null || e < 0) && (e = 0), (r == null || r > t.length) && (r = t.length), new z(t.subarray(e, r));
|
|
7626
7626
|
}, "slc"), xi = ["unexpected EOF", "invalid block type", "invalid length/literal", "invalid distance", "stream finished", "no stream handler", , "no callback", "invalid UTF-8 data", "extra field too long", "date not in range 1980-2099", "filename too long", "stream finishing", "invalid zip data"], nt = c(function(t, e, r) {
|
|
7627
7627
|
var n = new Error(e || xi[t]);
|
|
7628
7628
|
if (n.code = t, Error.captureStackTrace && Error.captureStackTrace(n, nt), !r) throw n;
|
|
7629
7629
|
return n;
|
|
7630
|
-
}, "err"),
|
|
7630
|
+
}, "err"), $i = c(function(t, e, r, n) {
|
|
7631
7631
|
var i = t.length, s = n ? n.length : 0;
|
|
7632
7632
|
if (!i || e.f && !e.l) return r || new z(0);
|
|
7633
|
-
var a = !r,
|
|
7633
|
+
var a = !r, u = a || e.i != 2, h = e.i;
|
|
7634
7634
|
a && (r = new z(i * 3));
|
|
7635
7635
|
var d = c(function(rt) {
|
|
7636
7636
|
var dt = r.length;
|
|
@@ -7638,37 +7638,37 @@ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
|
7638
7638
|
var X = new z(Math.max(dt * 2, rt));
|
|
7639
7639
|
X.set(r), r = X;
|
|
7640
7640
|
}
|
|
7641
|
-
}, "cbuf"), g = e.f || 0, w = e.p || 0,
|
|
7641
|
+
}, "cbuf"), g = e.f || 0, w = e.p || 0, U = e.b || 0, v = e.l, D = e.d, M = e.m, y = e.n, P = i * 8;
|
|
7642
7642
|
do {
|
|
7643
7643
|
if (!v) {
|
|
7644
7644
|
g = mt(t, w, 1);
|
|
7645
7645
|
var A = mt(t, w + 1, 3);
|
|
7646
|
-
if (w += 3, A) if (A == 1) v = Ni,
|
|
7646
|
+
if (w += 3, A) if (A == 1) v = Ni, D = Mi, M = 9, y = 5;
|
|
7647
7647
|
else if (A == 2) {
|
|
7648
7648
|
var H = mt(t, w, 31) + 257, j = mt(t, w + 10, 15) + 4, o = H + mt(t, w + 5, 31) + 1;
|
|
7649
7649
|
w += 14;
|
|
7650
|
-
for (var
|
|
7650
|
+
for (var l = new z(o), f = new z(19), _ = 0; _ < j; ++_) f[ye[_]] = mt(t, w + _ * 3, 7);
|
|
7651
7651
|
w += j * 3;
|
|
7652
|
-
for (var m =
|
|
7652
|
+
for (var m = Ce(f), I = (1 << m) - 1, T = _t(f, m, 1), _ = 0; _ < o; ) {
|
|
7653
7653
|
var p = T[mt(t, w, I)];
|
|
7654
7654
|
w += p & 15;
|
|
7655
|
-
var
|
|
7656
|
-
if (
|
|
7655
|
+
var L = p >> 4;
|
|
7656
|
+
if (L < 16) l[_++] = L;
|
|
7657
7657
|
else {
|
|
7658
7658
|
var E = 0, S = 0;
|
|
7659
|
-
for (
|
|
7659
|
+
for (L == 16 ? (S = 3 + mt(t, w, 3), w += 2, E = l[_ - 1]) : L == 17 ? (S = 3 + mt(t, w, 7), w += 3) : L == 18 && (S = 11 + mt(t, w, 127), w += 7); S--; ) l[_++] = E;
|
|
7660
7660
|
}
|
|
7661
7661
|
}
|
|
7662
|
-
var R =
|
|
7663
|
-
|
|
7662
|
+
var R = l.subarray(0, H), b = l.subarray(H);
|
|
7663
|
+
M = Ce(R), y = Ce(b), v = _t(R, M, 1), D = _t(b, y, 1);
|
|
7664
7664
|
} else nt(1);
|
|
7665
7665
|
else {
|
|
7666
|
-
var
|
|
7667
|
-
if (
|
|
7666
|
+
var L = Pe(w) + 4, x = t[L - 4] | t[L - 3] << 8, C = L + x;
|
|
7667
|
+
if (C > i) {
|
|
7668
7668
|
h && nt(0);
|
|
7669
7669
|
break;
|
|
7670
7670
|
}
|
|
7671
|
-
|
|
7671
|
+
u && d(U + x), r.set(t.subarray(L, C), U), e.b = U += x, e.p = w = C * 8, e.f = g;
|
|
7672
7672
|
continue;
|
|
7673
7673
|
}
|
|
7674
7674
|
if (w > P) {
|
|
@@ -7676,46 +7676,46 @@ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
|
7676
7676
|
break;
|
|
7677
7677
|
}
|
|
7678
7678
|
}
|
|
7679
|
-
|
|
7680
|
-
for (var
|
|
7681
|
-
var E = v[Be(t, w) &
|
|
7679
|
+
u && d(U + 131072);
|
|
7680
|
+
for (var O = (1 << M) - 1, B = (1 << y) - 1, G = w; ; G = w) {
|
|
7681
|
+
var E = v[Be(t, w) & O], F = E >> 4;
|
|
7682
7682
|
if (w += E & 15, w > P) {
|
|
7683
7683
|
h && nt(0);
|
|
7684
7684
|
break;
|
|
7685
7685
|
}
|
|
7686
|
-
if (E || nt(2), F < 256) r[
|
|
7686
|
+
if (E || nt(2), F < 256) r[U++] = F;
|
|
7687
7687
|
else if (F == 256) {
|
|
7688
|
-
|
|
7688
|
+
G = w, v = null;
|
|
7689
7689
|
break;
|
|
7690
7690
|
} else {
|
|
7691
|
-
var
|
|
7691
|
+
var W = F - 254;
|
|
7692
7692
|
if (F > 264) {
|
|
7693
7693
|
var _ = F - 257, N = se[_];
|
|
7694
|
-
|
|
7694
|
+
W = mt(t, w, (1 << N) - 1) + Or[_], w += N;
|
|
7695
7695
|
}
|
|
7696
|
-
var k =
|
|
7696
|
+
var k = D[Be(t, w) & B], Y = k >> 4;
|
|
7697
7697
|
k || nt(3), w += k & 15;
|
|
7698
|
-
var
|
|
7698
|
+
var b = Li[Y];
|
|
7699
7699
|
if (Y > 3) {
|
|
7700
7700
|
var N = oe[Y];
|
|
7701
|
-
|
|
7701
|
+
b += Be(t, w) & (1 << N) - 1, w += N;
|
|
7702
7702
|
}
|
|
7703
7703
|
if (w > P) {
|
|
7704
7704
|
h && nt(0);
|
|
7705
7705
|
break;
|
|
7706
7706
|
}
|
|
7707
|
-
|
|
7708
|
-
var ht =
|
|
7709
|
-
if (
|
|
7710
|
-
var
|
|
7711
|
-
for (
|
|
7707
|
+
u && d(U + 131072);
|
|
7708
|
+
var ht = U + W;
|
|
7709
|
+
if (U < b) {
|
|
7710
|
+
var yt = s - b, Ut = Math.min(b, ht);
|
|
7711
|
+
for (yt + U < 0 && nt(3); U < Ut; ++U) r[U] = n[yt + U];
|
|
7712
7712
|
}
|
|
7713
|
-
for (;
|
|
7713
|
+
for (; U < ht; ++U) r[U] = r[U - b];
|
|
7714
7714
|
}
|
|
7715
7715
|
}
|
|
7716
|
-
e.l = v, e.p =
|
|
7716
|
+
e.l = v, e.p = G, e.b = U, e.f = g, v && (g = 1, e.m = M, e.d = D, e.n = y);
|
|
7717
7717
|
} while (!g);
|
|
7718
|
-
return
|
|
7718
|
+
return U != r.length && a ? Jt(r, 0, U) : r.subarray(0, U);
|
|
7719
7719
|
}, "inflt"), At = c(function(t, e, r) {
|
|
7720
7720
|
r <<= e & 7;
|
|
7721
7721
|
var n = e / 8 | 0;
|
|
@@ -7724,48 +7724,48 @@ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
|
7724
7724
|
r <<= e & 7;
|
|
7725
7725
|
var n = e / 8 | 0;
|
|
7726
7726
|
t[n] |= r, t[n + 1] |= r >> 8, t[n + 2] |= r >> 16;
|
|
7727
|
-
}, "wbits16"),
|
|
7727
|
+
}, "wbits16"), Le = c(function(t, e) {
|
|
7728
7728
|
for (var r = [], n = 0; n < t.length; ++n) t[n] && r.push({ s: n, f: t[n] });
|
|
7729
7729
|
var i = r.length, s = r.slice();
|
|
7730
|
-
if (!i) return { t:
|
|
7730
|
+
if (!i) return { t: Gr, l: 0 };
|
|
7731
7731
|
if (i == 1) {
|
|
7732
7732
|
var a = new z(r[0].s + 1);
|
|
7733
7733
|
return a[r[0].s] = 1, { t: a, l: 1 };
|
|
7734
7734
|
}
|
|
7735
|
-
r.sort(function(
|
|
7736
|
-
return
|
|
7735
|
+
r.sort(function(C, H) {
|
|
7736
|
+
return C.f - H.f;
|
|
7737
7737
|
}), r.push({ s: -1, f: 25001 });
|
|
7738
|
-
var
|
|
7739
|
-
for (r[0] = { s: -1, f:
|
|
7740
|
-
for (var
|
|
7741
|
-
var v = new at(
|
|
7742
|
-
if (
|
|
7743
|
-
var n = 0,
|
|
7738
|
+
var u = r[0], h = r[1], d = 0, g = 1, w = 2;
|
|
7739
|
+
for (r[0] = { s: -1, f: u.f + h.f, l: u, r: h }; g != i - 1; ) u = r[r[d].f < r[w].f ? d++ : w++], h = r[d != g && r[d].f < r[w].f ? d++ : w++], r[g++] = { s: -1, f: u.f + h.f, l: u, r: h };
|
|
7740
|
+
for (var U = s[0].s, n = 1; n < i; ++n) s[n].s > U && (U = s[n].s);
|
|
7741
|
+
var v = new at(U + 1), D = Oe(r[g - 1], v, 0);
|
|
7742
|
+
if (D > e) {
|
|
7743
|
+
var n = 0, M = 0, y = D - e, P = 1 << y;
|
|
7744
7744
|
for (s.sort(function(H, j) {
|
|
7745
7745
|
return v[j.s] - v[H.s] || H.f - j.f;
|
|
7746
7746
|
}); n < i; ++n) {
|
|
7747
7747
|
var A = s[n].s;
|
|
7748
|
-
if (v[A] > e)
|
|
7748
|
+
if (v[A] > e) M += P - (1 << D - v[A]), v[A] = e;
|
|
7749
7749
|
else break;
|
|
7750
7750
|
}
|
|
7751
|
-
for (
|
|
7752
|
-
var
|
|
7753
|
-
v[
|
|
7751
|
+
for (M >>= y; M > 0; ) {
|
|
7752
|
+
var L = s[n].s;
|
|
7753
|
+
v[L] < e ? M -= 1 << e - v[L]++ - 1 : ++n;
|
|
7754
7754
|
}
|
|
7755
|
-
for (; n >= 0 &&
|
|
7755
|
+
for (; n >= 0 && M; --n) {
|
|
7756
7756
|
var x = s[n].s;
|
|
7757
|
-
v[x] == e && (--v[x], ++
|
|
7757
|
+
v[x] == e && (--v[x], ++M);
|
|
7758
7758
|
}
|
|
7759
|
-
|
|
7759
|
+
D = e;
|
|
7760
7760
|
}
|
|
7761
|
-
return { t: new z(v), l:
|
|
7762
|
-
}, "hTree"),
|
|
7763
|
-
return t.s == -1 ? Math.max(
|
|
7764
|
-
}, "ln"),
|
|
7761
|
+
return { t: new z(v), l: D };
|
|
7762
|
+
}, "hTree"), Oe = c(function(t, e, r) {
|
|
7763
|
+
return t.s == -1 ? Math.max(Oe(t.l, e, r + 1), Oe(t.r, e, r + 1)) : e[t.s] = r;
|
|
7764
|
+
}, "ln"), Mr = c(function(t) {
|
|
7765
7765
|
for (var e = t.length; e && !t[--e]; ) ;
|
|
7766
7766
|
for (var r = new at(++e), n = 0, i = t[0], s = 1, a = c(function(h) {
|
|
7767
7767
|
r[n++] = h;
|
|
7768
|
-
}, "w"),
|
|
7768
|
+
}, "w"), u = 1; u <= e; ++u) if (t[u] == i && u != e) ++s;
|
|
7769
7769
|
else {
|
|
7770
7770
|
if (!i && s > 2) {
|
|
7771
7771
|
for (; s > 138; s -= 138) a(32754);
|
|
@@ -7775,7 +7775,7 @@ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
|
7775
7775
|
s > 2 && (a(s - 3 << 5 | 8208), s = 0);
|
|
7776
7776
|
}
|
|
7777
7777
|
for (; s--; ) a(i);
|
|
7778
|
-
s = 1, i = t[
|
|
7778
|
+
s = 1, i = t[u];
|
|
7779
7779
|
}
|
|
7780
7780
|
return { c: r.subarray(0, n), n: e };
|
|
7781
7781
|
}, "lc"), Xt = c(function(t, e) {
|
|
@@ -7786,81 +7786,81 @@ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
|
7786
7786
|
t[i] = n & 255, t[i + 1] = n >> 8, t[i + 2] = t[i] ^ 255, t[i + 3] = t[i + 1] ^ 255;
|
|
7787
7787
|
for (var s = 0; s < n; ++s) t[i + s + 4] = r[s];
|
|
7788
7788
|
return (i + 4 + n) * 8;
|
|
7789
|
-
}, "wfblk"),
|
|
7789
|
+
}, "wfblk"), $r = c(function(t, e, r, n, i, s, a, u, h, d, g) {
|
|
7790
7790
|
At(e, g++, r), ++i[256];
|
|
7791
|
-
for (var w =
|
|
7792
|
-
for (var o = 0; o <
|
|
7793
|
-
for (var
|
|
7794
|
-
var I = d + 5 << 3, T = Xt(i, Bt) + Xt(s,
|
|
7791
|
+
for (var w = Le(i, 15), U = w.t, v = w.l, D = Le(s, 15), M = D.t, y = D.l, P = Mr(U), A = P.c, L = P.n, x = Mr(M), C = x.c, H = x.n, j = new at(19), o = 0; o < A.length; ++o) ++j[A[o] & 31];
|
|
7792
|
+
for (var o = 0; o < C.length; ++o) ++j[C[o] & 31];
|
|
7793
|
+
for (var l = Le(j, 7), f = l.t, _ = l.l, m = 19; m > 4 && !f[ye[m - 1]]; --m) ;
|
|
7794
|
+
var I = d + 5 << 3, T = Xt(i, Bt) + Xt(s, Qt) + a, p = Xt(i, U) + Xt(s, M) + a + 14 + 3 * m + Xt(j, f) + 2 * j[16] + 3 * j[17] + 7 * j[18];
|
|
7795
7795
|
if (h >= 0 && I <= T && I <= p) return xr(e, g, t.subarray(h, h + d));
|
|
7796
|
-
var E, S, R,
|
|
7796
|
+
var E, S, R, b;
|
|
7797
7797
|
if (At(e, g, 1 + (p < T)), g += 2, p < T) {
|
|
7798
|
-
E = _t(
|
|
7799
|
-
var
|
|
7800
|
-
At(e, g,
|
|
7801
|
-
for (var o = 0; o < m; ++o) At(e, g + 3 * o, f[
|
|
7798
|
+
E = _t(U, v, 0), S = U, R = _t(M, y, 0), b = M;
|
|
7799
|
+
var O = _t(f, _, 0);
|
|
7800
|
+
At(e, g, L - 257), At(e, g + 5, H - 1), At(e, g + 10, m - 4), g += 14;
|
|
7801
|
+
for (var o = 0; o < m; ++o) At(e, g + 3 * o, f[ye[o]]);
|
|
7802
7802
|
g += 3 * m;
|
|
7803
|
-
for (var B = [A,
|
|
7804
|
-
var
|
|
7805
|
-
At(e, g,
|
|
7803
|
+
for (var B = [A, C], G = 0; G < 2; ++G) for (var F = B[G], o = 0; o < F.length; ++o) {
|
|
7804
|
+
var W = F[o] & 31;
|
|
7805
|
+
At(e, g, O[W]), g += f[W], W > 15 && (At(e, g, F[o] >> 5 & 127), g += F[o] >> 12);
|
|
7806
7806
|
}
|
|
7807
|
-
} else E =
|
|
7808
|
-
for (var o = 0; o <
|
|
7807
|
+
} else E = Oi, S = Bt, R = Di, b = Qt;
|
|
7808
|
+
for (var o = 0; o < u; ++o) {
|
|
7809
7809
|
var N = n[o];
|
|
7810
7810
|
if (N > 255) {
|
|
7811
|
-
var
|
|
7812
|
-
zt(e, g, E[
|
|
7811
|
+
var W = N >> 18 & 31;
|
|
7812
|
+
zt(e, g, E[W + 257]), g += S[W + 257], W > 7 && (At(e, g, N >> 23 & 31), g += se[W]);
|
|
7813
7813
|
var k = N & 31;
|
|
7814
|
-
zt(e, g, R[k]), g +=
|
|
7814
|
+
zt(e, g, R[k]), g += b[k], k > 3 && (zt(e, g, N >> 5 & 8191), g += oe[k]);
|
|
7815
7815
|
} else zt(e, g, E[N]), g += S[N];
|
|
7816
7816
|
}
|
|
7817
7817
|
return zt(e, g, E[256]), g + S[256];
|
|
7818
|
-
}, "wblk"),
|
|
7819
|
-
var a = s.z || t.length,
|
|
7818
|
+
}, "wblk"), Gi = new be([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), Gr = new z(0), Hi = c(function(t, e, r, n, i, s) {
|
|
7819
|
+
var a = s.z || t.length, u = new z(n + a + 5 * (1 + Math.ceil(a / 7e3)) + i), h = u.subarray(n, u.length - i), d = s.l, g = (s.r || 0) & 7;
|
|
7820
7820
|
if (e) {
|
|
7821
7821
|
g && (h[0] = s.r >> 3);
|
|
7822
|
-
for (var w =
|
|
7823
|
-
return (t[Z] ^ t[Z + 1] << P ^ t[Z + 2] << A) &
|
|
7824
|
-
}, "hsh"), x = new
|
|
7825
|
-
var I =
|
|
7826
|
-
if (
|
|
7827
|
-
var E = a -
|
|
7822
|
+
for (var w = Gi[e - 1], U = w >> 13, v = w & 8191, D = (1 << r) - 1, M = s.p || new at(32768), y = s.h || new at(D + 1), P = Math.ceil(r / 3), A = 2 * P, L = c(function(Z) {
|
|
7823
|
+
return (t[Z] ^ t[Z + 1] << P ^ t[Z + 2] << A) & D;
|
|
7824
|
+
}, "hsh"), x = new be(25e3), C = new at(288), H = new at(32), j = 0, o = 0, l = s.i || 0, f = 0, _ = s.w || 0, m = 0; l + 2 < a; ++l) {
|
|
7825
|
+
var I = L(l), T = l & 32767, p = y[I];
|
|
7826
|
+
if (M[T] = p, y[I] = T, _ <= l) {
|
|
7827
|
+
var E = a - l;
|
|
7828
7828
|
if ((j > 7e3 || f > 24576) && (E > 423 || !d)) {
|
|
7829
|
-
g =
|
|
7830
|
-
for (var S = 0; S < 286; ++S)
|
|
7829
|
+
g = $r(t, h, 0, x, C, H, o, f, m, l - m, g), f = j = o = 0, m = l;
|
|
7830
|
+
for (var S = 0; S < 286; ++S) C[S] = 0;
|
|
7831
7831
|
for (var S = 0; S < 30; ++S) H[S] = 0;
|
|
7832
7832
|
}
|
|
7833
|
-
var R = 2,
|
|
7834
|
-
if (E > 2 && I ==
|
|
7835
|
-
if (t[
|
|
7836
|
-
for (var N = 0; N <
|
|
7833
|
+
var R = 2, b = 0, O = v, B = T - p & 32767;
|
|
7834
|
+
if (E > 2 && I == L(l - B)) for (var G = Math.min(U, E) - 1, F = Math.min(32767, l), W = Math.min(258, E); B <= F && --O && T != p; ) {
|
|
7835
|
+
if (t[l + R] == t[l + R - B]) {
|
|
7836
|
+
for (var N = 0; N < W && t[l + N] == t[l + N - B]; ++N) ;
|
|
7837
7837
|
if (N > R) {
|
|
7838
|
-
if (R = N,
|
|
7838
|
+
if (R = N, b = B, N > G) break;
|
|
7839
7839
|
for (var k = Math.min(B, N - 2), Y = 0, S = 0; S < k; ++S) {
|
|
7840
|
-
var ht =
|
|
7841
|
-
|
|
7840
|
+
var ht = l - B + S & 32767, yt = M[ht], Ut = ht - yt & 32767;
|
|
7841
|
+
Ut > Y && (Y = Ut, p = ht);
|
|
7842
7842
|
}
|
|
7843
7843
|
}
|
|
7844
7844
|
}
|
|
7845
|
-
T = p, p =
|
|
7845
|
+
T = p, p = M[T], B += T - p & 32767;
|
|
7846
7846
|
}
|
|
7847
|
-
if (
|
|
7848
|
-
x[f++] = 268435456 |
|
|
7849
|
-
var rt =
|
|
7850
|
-
o += se[rt] + oe[dt], ++
|
|
7851
|
-
} else x[f++] = t[
|
|
7847
|
+
if (b) {
|
|
7848
|
+
x[f++] = 268435456 | Ue[R] << 18 | Dr[b];
|
|
7849
|
+
var rt = Ue[R] & 31, dt = Dr[b] & 31;
|
|
7850
|
+
o += se[rt] + oe[dt], ++C[257 + rt], ++H[dt], _ = l + R, ++j;
|
|
7851
|
+
} else x[f++] = t[l], ++C[t[l]];
|
|
7852
7852
|
}
|
|
7853
7853
|
}
|
|
7854
|
-
for (
|
|
7855
|
-
g =
|
|
7854
|
+
for (l = Math.max(l, _); l < a; ++l) x[f++] = t[l], ++C[t[l]];
|
|
7855
|
+
g = $r(t, h, d, x, C, H, o, f, m, l - m, g), d || (s.r = g & 7 | h[g / 8 | 0] << 3, g -= 7, s.h = y, s.p = M, s.i = l, s.w = _);
|
|
7856
7856
|
} else {
|
|
7857
|
-
for (var
|
|
7858
|
-
var X =
|
|
7859
|
-
X >= a && (h[g / 8 | 0] = d, X = a), g = xr(h, g + 1, t.subarray(
|
|
7857
|
+
for (var l = s.w || 0; l < a + d; l += 65535) {
|
|
7858
|
+
var X = l + 65535;
|
|
7859
|
+
X >= a && (h[g / 8 | 0] = d, X = a), g = xr(h, g + 1, t.subarray(l, X));
|
|
7860
7860
|
}
|
|
7861
7861
|
s.i = a;
|
|
7862
7862
|
}
|
|
7863
|
-
return
|
|
7863
|
+
return Jt(u, 0, n + Pe(g) + i);
|
|
7864
7864
|
}, "dflt"), ki = (function() {
|
|
7865
7865
|
for (var t = new Int32Array(256), e = 0; e < 256; ++e) {
|
|
7866
7866
|
for (var r = e, n = 9; --n; ) r = (r & 1 && -306674912) ^ r >>> 1;
|
|
@@ -7895,28 +7895,28 @@ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
|
7895
7895
|
}, "b8"), et = c(function(t, e, r) {
|
|
7896
7896
|
for (; r; ++e) t[e] = r, r >>>= 8;
|
|
7897
7897
|
}, "wbytes");
|
|
7898
|
-
function
|
|
7898
|
+
function Wi(t, e) {
|
|
7899
7899
|
return Fi(t, e || {}, 0, 0);
|
|
7900
7900
|
}
|
|
7901
|
-
c(
|
|
7902
|
-
function
|
|
7903
|
-
return
|
|
7901
|
+
c(Wi, "deflateSync");
|
|
7902
|
+
function Vi(t, e) {
|
|
7903
|
+
return $i(t, { i: 2 }, e && e.out, e && e.dictionary);
|
|
7904
7904
|
}
|
|
7905
|
-
c(
|
|
7905
|
+
c(Vi, "inflateSync");
|
|
7906
7906
|
var kr = c(function(t, e, r, n) {
|
|
7907
7907
|
for (var i in t) {
|
|
7908
|
-
var s = t[i], a = e + i,
|
|
7909
|
-
Array.isArray(s) && (
|
|
7908
|
+
var s = t[i], a = e + i, u = n;
|
|
7909
|
+
Array.isArray(s) && (u = Hr(n, s[1]), s = s[0]), s instanceof z ? r[a] = [s, u] : (r[a += "/"] = [new z(0), u], kr(s, a, r, n));
|
|
7910
7910
|
}
|
|
7911
|
-
}, "fltn"), jr = typeof TextEncoder < "u" && new TextEncoder(),
|
|
7911
|
+
}, "fltn"), jr = typeof TextEncoder < "u" && new TextEncoder(), De = typeof TextDecoder < "u" && new TextDecoder(), Ki = 0;
|
|
7912
7912
|
try {
|
|
7913
|
-
|
|
7913
|
+
De.decode(Gr, { stream: true }), Ki = 1;
|
|
7914
7914
|
} catch {
|
|
7915
7915
|
}
|
|
7916
7916
|
var qi = c(function(t) {
|
|
7917
7917
|
for (var e = "", r = 0; ; ) {
|
|
7918
7918
|
var n = t[r++], i = (n > 127) + (n > 223) + (n > 239);
|
|
7919
|
-
if (r + i > t.length) return { s: e, r:
|
|
7919
|
+
if (r + i > t.length) return { s: e, r: Jt(t, r - 1) };
|
|
7920
7920
|
i ? i == 3 ? (n = ((n & 15) << 18 | (t[r++] & 63) << 12 | (t[r++] & 63) << 6 | t[r++] & 63) - 65536, e += String.fromCharCode(55296 | n >> 10, 56320 | n & 1023)) : i & 1 ? e += String.fromCharCode((n & 31) << 6 | t[r++] & 63) : e += String.fromCharCode((n & 15) << 12 | (t[r++] & 63) << 6 | t[r++] & 63) : e += String.fromCharCode(n);
|
|
7921
7921
|
}
|
|
7922
7922
|
}, "dutf8");
|
|
@@ -7927,13 +7927,13 @@ function Fr(t, e) {
|
|
|
7927
7927
|
i[s++] = d;
|
|
7928
7928
|
}, "w"), r = 0; r < n; ++r) {
|
|
7929
7929
|
if (s + 5 > i.length) {
|
|
7930
|
-
var
|
|
7931
|
-
|
|
7930
|
+
var u = new z(s + 8 + (n - r << 1));
|
|
7931
|
+
u.set(i), i = u;
|
|
7932
7932
|
}
|
|
7933
7933
|
var h = t.charCodeAt(r);
|
|
7934
7934
|
h < 128 || e ? a(h) : h < 2048 ? (a(192 | h >> 6), a(128 | h & 63)) : h > 55295 && h < 57344 ? (h = 65536 + (h & 1047552) | t.charCodeAt(++r) & 1023, a(240 | h >> 18), a(128 | h >> 12 & 63), a(128 | h >> 6 & 63), a(128 | h & 63)) : (a(224 | h >> 12), a(128 | h >> 6 & 63), a(128 | h & 63));
|
|
7935
7935
|
}
|
|
7936
|
-
return
|
|
7936
|
+
return Jt(i, 0, s);
|
|
7937
7937
|
}
|
|
7938
7938
|
c(Fr, "strToU8");
|
|
7939
7939
|
function Yi(t, e) {
|
|
@@ -7941,36 +7941,36 @@ function Yi(t, e) {
|
|
|
7941
7941
|
for (var r = "", n = 0; n < t.length; n += 16384) r += String.fromCharCode.apply(null, t.subarray(n, n + 16384));
|
|
7942
7942
|
return r;
|
|
7943
7943
|
} else {
|
|
7944
|
-
if (
|
|
7944
|
+
if (De) return De.decode(t);
|
|
7945
7945
|
var i = qi(t), s = i.s, r = i.r;
|
|
7946
7946
|
return r.length && nt(8), s;
|
|
7947
7947
|
}
|
|
7948
7948
|
}
|
|
7949
7949
|
c(Yi, "strFromU8");
|
|
7950
|
-
var
|
|
7950
|
+
var Qi = c(function(t, e) {
|
|
7951
7951
|
return e + 30 + It(t, e + 26) + It(t, e + 28);
|
|
7952
|
-
}, "slzh"),
|
|
7953
|
-
var n = It(t, e + 28), i = Yi(t.subarray(e + 46, e + 46 + n), !(It(t, e + 8) & 2048)), s = e + 46 + n, a = gt(t, e + 20),
|
|
7952
|
+
}, "slzh"), Ji = c(function(t, e, r) {
|
|
7953
|
+
var n = It(t, e + 28), i = Yi(t.subarray(e + 46, e + 46 + n), !(It(t, e + 8) & 2048)), s = e + 46 + n, a = gt(t, e + 20), u = r && a == 4294967295 ? zi(t, s) : [a, gt(t, e + 24), gt(t, e + 42)], h = u[0], d = u[1], g = u[2];
|
|
7954
7954
|
return [It(t, e + 10), h, d, i, s + It(t, e + 30) + It(t, e + 32), g];
|
|
7955
7955
|
}, "zh"), zi = c(function(t, e) {
|
|
7956
7956
|
for (; It(t, e) != 1; e += 4 + It(t, e + 2)) ;
|
|
7957
7957
|
return [Ne(t, e + 12), Ne(t, e + 4), Ne(t, e + 20)];
|
|
7958
|
-
}, "z64e"),
|
|
7958
|
+
}, "z64e"), Me = c(function(t) {
|
|
7959
7959
|
var e = 0;
|
|
7960
7960
|
if (t) for (var r in t) {
|
|
7961
7961
|
var n = t[r].length;
|
|
7962
7962
|
n > 65535 && nt(9), e += n + 4;
|
|
7963
7963
|
}
|
|
7964
7964
|
return e;
|
|
7965
|
-
}, "exfl"),
|
|
7966
|
-
var h = n.length, d = r.extra, g =
|
|
7965
|
+
}, "exfl"), Wr = c(function(t, e, r, n, i, s, a, u) {
|
|
7966
|
+
var h = n.length, d = r.extra, g = u && u.length, w = Me(d);
|
|
7967
7967
|
et(t, e, a != null ? 33639248 : 67324752), e += 4, a != null && (t[e++] = 20, t[e++] = r.os), t[e] = 20, e += 2, t[e++] = r.flag << 1 | (s < 0 && 8), t[e++] = i && 8, t[e++] = r.compression & 255, t[e++] = r.compression >> 8;
|
|
7968
|
-
var
|
|
7969
|
-
if ((v < 0 || v > 119) && nt(10), et(t, e, v << 25 |
|
|
7970
|
-
var
|
|
7971
|
-
et(t, e, +
|
|
7968
|
+
var U = new Date(r.mtime == null ? Date.now() : r.mtime), v = U.getFullYear() - 1980;
|
|
7969
|
+
if ((v < 0 || v > 119) && nt(10), et(t, e, v << 25 | U.getMonth() + 1 << 21 | U.getDate() << 16 | U.getHours() << 11 | U.getMinutes() << 5 | U.getSeconds() >> 1), e += 4, s != -1 && (et(t, e, r.crc), et(t, e + 4, s < 0 ? -s - 2 : s), et(t, e + 8, r.size)), et(t, e + 12, h), et(t, e + 14, w), e += 16, a != null && (et(t, e, g), et(t, e + 6, r.attrs), et(t, e + 10, a), e += 14), t.set(n, e), e += h, w) for (var D in d) {
|
|
7970
|
+
var M = d[D], y = M.length;
|
|
7971
|
+
et(t, e, +D), et(t, e + 2, y), t.set(M, e + 4), e += 4 + y;
|
|
7972
7972
|
}
|
|
7973
|
-
return g && (t.set(
|
|
7973
|
+
return g && (t.set(u, e), e += g), e;
|
|
7974
7974
|
}, "wzh"), Xi = c(function(t, e, r, n, i) {
|
|
7975
7975
|
et(t, e, 101010256), et(t, e + 8, r), et(t, e + 10, r), et(t, e + 12, n), et(t, e + 16, i);
|
|
7976
7976
|
}, "wzf");
|
|
@@ -7980,18 +7980,18 @@ function Zi(t, e) {
|
|
|
7980
7980
|
kr(t, "", r, e);
|
|
7981
7981
|
var i = 0, s = 0;
|
|
7982
7982
|
for (var a in r) {
|
|
7983
|
-
var
|
|
7984
|
-
|
|
7985
|
-
var P = g ?
|
|
7986
|
-
|
|
7983
|
+
var u = r[a], h = u[0], d = u[1], g = d.level == 0 ? 0 : 8, w = Fr(a), U = w.length, v = d.comment, D = v && Fr(v), M = D && D.length, y = Me(d.extra);
|
|
7984
|
+
U > 65535 && nt(11);
|
|
7985
|
+
var P = g ? Wi(h, d) : h, A = P.length, L = ji();
|
|
7986
|
+
L.p(h), n.push(Hr(d, { size: h.length, crc: L.d(), c: P, f: w, m: D, u: U != a.length || D && v.length != M, o: i, compression: g })), i += 30 + U + y + A, s += 76 + 2 * (U + y) + (M || 0) + A;
|
|
7987
7987
|
}
|
|
7988
|
-
for (var x = new z(s + 22),
|
|
7988
|
+
for (var x = new z(s + 22), C = i, H = s - i, j = 0; j < n.length; ++j) {
|
|
7989
7989
|
var w = n[j];
|
|
7990
|
-
|
|
7991
|
-
var o = 30 + w.f.length +
|
|
7992
|
-
x.set(w.c, w.o + o),
|
|
7990
|
+
Wr(x, w.o, w, w.f, w.u, w.c.length);
|
|
7991
|
+
var o = 30 + w.f.length + Me(w.extra);
|
|
7992
|
+
x.set(w.c, w.o + o), Wr(x, i, w, w.f, w.u, w.c.length, w.o, w.m), i += 16 + o + (w.m ? w.m.length : 0);
|
|
7993
7993
|
}
|
|
7994
|
-
return Xi(x, i, n.length, H,
|
|
7994
|
+
return Xi(x, i, n.length, H, C), x;
|
|
7995
7995
|
}
|
|
7996
7996
|
c(Zi, "zipSync");
|
|
7997
7997
|
function ts(t, e) {
|
|
@@ -8000,24 +8000,24 @@ function ts(t, e) {
|
|
|
8000
8000
|
if (!i) return {};
|
|
8001
8001
|
var s = gt(t, n + 16), a = s == 4294967295 || i == 65535;
|
|
8002
8002
|
if (a) {
|
|
8003
|
-
var
|
|
8004
|
-
a = gt(t,
|
|
8003
|
+
var u = gt(t, n - 12);
|
|
8004
|
+
a = gt(t, u) == 101075792, a && (i = gt(t, u + 32), s = gt(t, u + 48));
|
|
8005
8005
|
}
|
|
8006
8006
|
for (var h = 0; h < i; ++h) {
|
|
8007
|
-
var d =
|
|
8008
|
-
s =
|
|
8007
|
+
var d = Ji(t, s, a), g = d[0], w = d[1], U = d[2], v = d[3], D = d[4], M = d[5], y = Qi(t, M);
|
|
8008
|
+
s = D, g ? g == 8 ? r[v] = Vi(t.subarray(y, y + w), { out: new z(U) }) : nt(14, "unknown compression type " + g) : r[v] = Jt(t, y, y + w);
|
|
8009
8009
|
}
|
|
8010
8010
|
return r;
|
|
8011
8011
|
}
|
|
8012
8012
|
c(ts, "unzipSync");
|
|
8013
8013
|
const es = [/^\/$/, /^\*+$/, /^[0-9]+$/], rs = ["/artifact/", "https://", "http://", "*********"], ns = 3;
|
|
8014
|
-
function
|
|
8014
|
+
function Vr(t) {
|
|
8015
8015
|
return t.filter((e) => !(e.length < ns || es.some((r) => r.test(e)) || rs.some((r) => e.includes(r))));
|
|
8016
8016
|
}
|
|
8017
|
-
c(
|
|
8018
|
-
const
|
|
8017
|
+
c(Vr, "filterSensitiveValues");
|
|
8018
|
+
const bt = Symbol.for("@ts-pattern/matcher"), is = Symbol.for("@ts-pattern/isVariadic"), ae = "@ts-pattern/anonymous-select-key", xe = c((t) => !!(t && typeof t == "object"), "r"), ce = c((t) => t && !!t[bt], "i"), St = c((t, e, r) => {
|
|
8019
8019
|
if (ce(t)) {
|
|
8020
|
-
const n = t[
|
|
8020
|
+
const n = t[bt](), { matched: i, selections: s } = n.match(e);
|
|
8021
8021
|
return i && s && Object.keys(s).forEach((a) => r(a, s[a])), i;
|
|
8022
8022
|
}
|
|
8023
8023
|
if (xe(t)) {
|
|
@@ -8026,34 +8026,34 @@ const yt = Symbol.for("@ts-pattern/matcher"), is = Symbol.for("@ts-pattern/isVar
|
|
|
8026
8026
|
if (!Array.isArray(e)) return false;
|
|
8027
8027
|
let n = [], i = [], s = [];
|
|
8028
8028
|
for (const a of t.keys()) {
|
|
8029
|
-
const
|
|
8030
|
-
ce(
|
|
8029
|
+
const u = t[a];
|
|
8030
|
+
ce(u) && u[is] ? s.push(u) : s.length ? i.push(u) : n.push(u);
|
|
8031
8031
|
}
|
|
8032
8032
|
if (s.length) {
|
|
8033
8033
|
if (s.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
8034
8034
|
if (e.length < n.length + i.length) return false;
|
|
8035
|
-
const a = e.slice(0, n.length),
|
|
8036
|
-
return n.every((d, g) => St(d, a[g], r)) && i.every((d, g) => St(d,
|
|
8035
|
+
const a = e.slice(0, n.length), u = i.length === 0 ? [] : e.slice(-i.length), h = e.slice(n.length, i.length === 0 ? 1 / 0 : -i.length);
|
|
8036
|
+
return n.every((d, g) => St(d, a[g], r)) && i.every((d, g) => St(d, u[g], r)) && (s.length === 0 || St(s[0], h, r));
|
|
8037
8037
|
}
|
|
8038
|
-
return t.length === e.length && t.every((a,
|
|
8038
|
+
return t.length === e.length && t.every((a, u) => St(a, e[u], r));
|
|
8039
8039
|
}
|
|
8040
8040
|
return Reflect.ownKeys(t).every((n) => {
|
|
8041
8041
|
const i = t[n];
|
|
8042
|
-
return (n in e || ce(s = i) && s[
|
|
8042
|
+
return (n in e || ce(s = i) && s[bt]().matcherType === "optional") && St(i, e[n], r);
|
|
8043
8043
|
var s;
|
|
8044
8044
|
});
|
|
8045
8045
|
}
|
|
8046
8046
|
return Object.is(e, t);
|
|
8047
8047
|
}, "o"), Pt = c((t) => {
|
|
8048
8048
|
var e, r, n;
|
|
8049
|
-
return xe(t) ? ce(t) ? (e = (r = (n = t[
|
|
8049
|
+
return xe(t) ? ce(t) ? (e = (r = (n = t[bt]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? e : [] : Array.isArray(t) ? Zt(t, Pt) : Zt(Object.values(t), Pt) : [];
|
|
8050
8050
|
}, "s"), Zt = c((t, e) => t.reduce((r, n) => r.concat(e(n)), []), "c");
|
|
8051
8051
|
function ct(t) {
|
|
8052
|
-
return Object.assign(t, { optional: c(() => ss(t), "optional"), and: c((e) => q(t, e), "and"), or: c((e) => os(t, e), "or"), select: c((e) => e === void 0 ?
|
|
8052
|
+
return Object.assign(t, { optional: c(() => ss(t), "optional"), and: c((e) => q(t, e), "and"), or: c((e) => os(t, e), "or"), select: c((e) => e === void 0 ? Kr(t) : Kr(e, t), "select") });
|
|
8053
8053
|
}
|
|
8054
8054
|
c(ct, "a");
|
|
8055
8055
|
function ss(t) {
|
|
8056
|
-
return ct({ [
|
|
8056
|
+
return ct({ [bt]: () => ({ match: c((e) => {
|
|
8057
8057
|
let r = {};
|
|
8058
8058
|
const n = c((i, s) => {
|
|
8059
8059
|
r[i] = s;
|
|
@@ -8063,7 +8063,7 @@ function ss(t) {
|
|
|
8063
8063
|
}
|
|
8064
8064
|
c(ss, "h");
|
|
8065
8065
|
function q(...t) {
|
|
8066
|
-
return ct({ [
|
|
8066
|
+
return ct({ [bt]: () => ({ match: c((e) => {
|
|
8067
8067
|
let r = {};
|
|
8068
8068
|
const n = c((i, s) => {
|
|
8069
8069
|
r[i] = s;
|
|
@@ -8073,7 +8073,7 @@ function q(...t) {
|
|
|
8073
8073
|
}
|
|
8074
8074
|
c(q, "d");
|
|
8075
8075
|
function os(...t) {
|
|
8076
|
-
return ct({ [
|
|
8076
|
+
return ct({ [bt]: () => ({ match: c((e) => {
|
|
8077
8077
|
let r = {};
|
|
8078
8078
|
const n = c((i, s) => {
|
|
8079
8079
|
r[i] = s;
|
|
@@ -8082,20 +8082,20 @@ function os(...t) {
|
|
|
8082
8082
|
}, "match"), getSelectionKeys: c(() => Zt(t, Pt), "getSelectionKeys"), matcherType: "or" }) });
|
|
8083
8083
|
}
|
|
8084
8084
|
c(os, "y");
|
|
8085
|
-
function
|
|
8086
|
-
return { [
|
|
8085
|
+
function V(t) {
|
|
8086
|
+
return { [bt]: () => ({ match: c((e) => ({ matched: !!t(e) }), "match") }) };
|
|
8087
8087
|
}
|
|
8088
|
-
c(
|
|
8089
|
-
function
|
|
8088
|
+
c(V, "p");
|
|
8089
|
+
function Kr(...t) {
|
|
8090
8090
|
const e = typeof t[0] == "string" ? t[0] : void 0, r = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
|
|
8091
|
-
return ct({ [
|
|
8091
|
+
return ct({ [bt]: () => ({ match: c((n) => {
|
|
8092
8092
|
let i = { [e ?? ae]: n };
|
|
8093
8093
|
return { matched: r === void 0 || St(r, n, (s, a) => {
|
|
8094
8094
|
i[s] = a;
|
|
8095
8095
|
}), selections: i };
|
|
8096
8096
|
}, "match"), getSelectionKeys: c(() => [e ?? ae].concat(r === void 0 ? [] : Pt(r)), "getSelectionKeys") }) });
|
|
8097
8097
|
}
|
|
8098
|
-
c(
|
|
8098
|
+
c(Kr, "v");
|
|
8099
8099
|
function qr(t) {
|
|
8100
8100
|
return true;
|
|
8101
8101
|
}
|
|
@@ -8104,38 +8104,38 @@ function Rt(t) {
|
|
|
8104
8104
|
return typeof t == "number";
|
|
8105
8105
|
}
|
|
8106
8106
|
c(Rt, "w");
|
|
8107
|
-
function
|
|
8107
|
+
function Lt(t) {
|
|
8108
8108
|
return typeof t == "string";
|
|
8109
8109
|
}
|
|
8110
|
-
c(
|
|
8111
|
-
function
|
|
8110
|
+
c(Lt, "S");
|
|
8111
|
+
function Ot(t) {
|
|
8112
8112
|
return typeof t == "bigint";
|
|
8113
8113
|
}
|
|
8114
|
-
c(
|
|
8114
|
+
c(Ot, "j"), ct(V(qr)), ct(V(qr));
|
|
8115
8115
|
const Nt = c((t) => Object.assign(ct(t), { startsWith: c((e) => {
|
|
8116
|
-
return Nt(q(t, (r = e,
|
|
8116
|
+
return Nt(q(t, (r = e, V((n) => Lt(n) && n.startsWith(r)))));
|
|
8117
8117
|
var r;
|
|
8118
8118
|
}, "startsWith"), endsWith: c((e) => {
|
|
8119
|
-
return Nt(q(t, (r = e,
|
|
8119
|
+
return Nt(q(t, (r = e, V((n) => Lt(n) && n.endsWith(r)))));
|
|
8120
8120
|
var r;
|
|
8121
|
-
}, "endsWith"), minLength: c((e) => Nt(q(t, ((r) =>
|
|
8122
|
-
return Nt(q(t, (r = e,
|
|
8121
|
+
}, "endsWith"), minLength: c((e) => Nt(q(t, ((r) => V((n) => Lt(n) && n.length >= r))(e))), "minLength"), length: c((e) => Nt(q(t, ((r) => V((n) => Lt(n) && n.length === r))(e))), "length"), maxLength: c((e) => Nt(q(t, ((r) => V((n) => Lt(n) && n.length <= r))(e))), "maxLength"), includes: c((e) => {
|
|
8122
|
+
return Nt(q(t, (r = e, V((n) => Lt(n) && n.includes(r)))));
|
|
8123
8123
|
var r;
|
|
8124
8124
|
}, "includes"), regex: c((e) => {
|
|
8125
|
-
return Nt(q(t, (r = e,
|
|
8125
|
+
return Nt(q(t, (r = e, V((n) => Lt(n) && !!n.match(r)))));
|
|
8126
8126
|
var r;
|
|
8127
8127
|
}, "regex") }), "x");
|
|
8128
|
-
Nt(
|
|
8129
|
-
const Tt = c((t) => Object.assign(ct(t), { between: c((e, r) => Tt(q(t, ((n, i) =>
|
|
8130
|
-
Tt(
|
|
8131
|
-
const
|
|
8132
|
-
|
|
8128
|
+
Nt(V(Lt));
|
|
8129
|
+
const Tt = c((t) => Object.assign(ct(t), { between: c((e, r) => Tt(q(t, ((n, i) => V((s) => Rt(s) && n <= s && i >= s))(e, r))), "between"), lt: c((e) => Tt(q(t, ((r) => V((n) => Rt(n) && n < r))(e))), "lt"), gt: c((e) => Tt(q(t, ((r) => V((n) => Rt(n) && n > r))(e))), "gt"), lte: c((e) => Tt(q(t, ((r) => V((n) => Rt(n) && n <= r))(e))), "lte"), gte: c((e) => Tt(q(t, ((r) => V((n) => Rt(n) && n >= r))(e))), "gte"), int: c(() => Tt(q(t, V((e) => Rt(e) && Number.isInteger(e)))), "int"), finite: c(() => Tt(q(t, V((e) => Rt(e) && Number.isFinite(e)))), "finite"), positive: c(() => Tt(q(t, V((e) => Rt(e) && e > 0))), "positive"), negative: c(() => Tt(q(t, V((e) => Rt(e) && e < 0))), "negative") }), "N");
|
|
8130
|
+
Tt(V(Rt));
|
|
8131
|
+
const Dt = c((t) => Object.assign(ct(t), { between: c((e, r) => Dt(q(t, ((n, i) => V((s) => Ot(s) && n <= s && i >= s))(e, r))), "between"), lt: c((e) => Dt(q(t, ((r) => V((n) => Ot(n) && n < r))(e))), "lt"), gt: c((e) => Dt(q(t, ((r) => V((n) => Ot(n) && n > r))(e))), "gt"), lte: c((e) => Dt(q(t, ((r) => V((n) => Ot(n) && n <= r))(e))), "lte"), gte: c((e) => Dt(q(t, ((r) => V((n) => Ot(n) && n >= r))(e))), "gte"), positive: c(() => Dt(q(t, V((e) => Ot(e) && e > 0))), "positive"), negative: c(() => Dt(q(t, V((e) => Ot(e) && e < 0))), "negative") }), "k");
|
|
8132
|
+
Dt(V(Ot)), ct(V(function(t) {
|
|
8133
8133
|
return typeof t == "boolean";
|
|
8134
|
-
})), ct(
|
|
8134
|
+
})), ct(V(function(t) {
|
|
8135
8135
|
return typeof t == "symbol";
|
|
8136
|
-
})), ct(
|
|
8136
|
+
})), ct(V(function(t) {
|
|
8137
8137
|
return t == null;
|
|
8138
|
-
})), ct(
|
|
8138
|
+
})), ct(V(function(t) {
|
|
8139
8139
|
return t != null;
|
|
8140
8140
|
}));
|
|
8141
8141
|
class as extends Error {
|
|
@@ -8152,9 +8152,9 @@ class as extends Error {
|
|
|
8152
8152
|
super(`Pattern matching error: no pattern matches value ${r}`), this.input = void 0, this.input = e;
|
|
8153
8153
|
}
|
|
8154
8154
|
}
|
|
8155
|
-
const
|
|
8155
|
+
const $e = { matched: false, value: void 0 };
|
|
8156
8156
|
function cs(t) {
|
|
8157
|
-
return new ge(t,
|
|
8157
|
+
return new ge(t, $e);
|
|
8158
8158
|
}
|
|
8159
8159
|
c(cs, "M");
|
|
8160
8160
|
class ge {
|
|
@@ -8170,20 +8170,20 @@ class ge {
|
|
|
8170
8170
|
let i;
|
|
8171
8171
|
e.length === 3 && typeof e[1] == "function" ? i = e[1] : e.length > 2 && n.push(...e.slice(1, e.length - 1));
|
|
8172
8172
|
let s = false, a = {};
|
|
8173
|
-
const
|
|
8173
|
+
const u = c((d, g) => {
|
|
8174
8174
|
s = true, a[d] = g;
|
|
8175
|
-
}, "u2"), h = !n.some((d) => St(d, this.input,
|
|
8175
|
+
}, "u2"), h = !n.some((d) => St(d, this.input, u)) || i && !i(this.input) ? $e : { matched: true, value: r(s ? ae in a ? a[ae] : a : this.input, this.input) };
|
|
8176
8176
|
return new ge(this.input, h);
|
|
8177
8177
|
}
|
|
8178
8178
|
when(e, r) {
|
|
8179
8179
|
if (this.state.matched) return this;
|
|
8180
8180
|
const n = !!e(this.input);
|
|
8181
|
-
return new ge(this.input, n ? { matched: true, value: r(this.input, this.input) } :
|
|
8181
|
+
return new ge(this.input, n ? { matched: true, value: r(this.input, this.input) } : $e);
|
|
8182
8182
|
}
|
|
8183
8183
|
otherwise(e) {
|
|
8184
8184
|
return this.state.matched ? this.state.value : e(this.input);
|
|
8185
8185
|
}
|
|
8186
|
-
exhaustive(e =
|
|
8186
|
+
exhaustive(e = ls) {
|
|
8187
8187
|
return this.state.matched ? this.state.value : e(this.input);
|
|
8188
8188
|
}
|
|
8189
8189
|
run() {
|
|
@@ -8196,13 +8196,13 @@ class ge {
|
|
|
8196
8196
|
return this;
|
|
8197
8197
|
}
|
|
8198
8198
|
}
|
|
8199
|
-
function
|
|
8199
|
+
function ls(t) {
|
|
8200
8200
|
throw new as(t);
|
|
8201
8201
|
}
|
|
8202
|
-
c(
|
|
8203
|
-
const
|
|
8202
|
+
c(ls, "F");
|
|
8203
|
+
const us = "[REDACTED]", fs = /* @__PURE__ */ new Set(["sha1", "_sha1", "pageref", "downloadsPath", "tracesDir", "pageId"]);
|
|
8204
8204
|
function ot({ sensitiveValues: t, str: e }) {
|
|
8205
|
-
return t.reduce((r, n) => r.replaceAll(n,
|
|
8205
|
+
return t.reduce((r, n) => r.replaceAll(n, us), e);
|
|
8206
8206
|
}
|
|
8207
8207
|
c(ot, "scrubString");
|
|
8208
8208
|
function hs(t) {
|
|
@@ -8210,76 +8210,76 @@ function hs(t) {
|
|
|
8210
8210
|
}
|
|
8211
8211
|
c(hs, "isRecord");
|
|
8212
8212
|
function te({ sensitiveValues: t, value: e }) {
|
|
8213
|
-
return typeof e == "string" ? ot({ sensitiveValues: t, str: e }) : Array.isArray(e) ? e.map((r) => te({ sensitiveValues: t, value: r })) : hs(e) ?
|
|
8213
|
+
return typeof e == "string" ? ot({ sensitiveValues: t, str: e }) : Array.isArray(e) ? e.map((r) => te({ sensitiveValues: t, value: r })) : hs(e) ? $t({ obj: e, sensitiveValues: t }) : e;
|
|
8214
8214
|
}
|
|
8215
8215
|
c(te, "scrubValue");
|
|
8216
8216
|
function ds(t) {
|
|
8217
8217
|
return fs.has(t) ? true : t.toLowerCase().endsWith("sha1");
|
|
8218
8218
|
}
|
|
8219
8219
|
c(ds, "shouldPreserveKey");
|
|
8220
|
-
function
|
|
8220
|
+
function $t({ obj: t, sensitiveValues: e }) {
|
|
8221
8221
|
return Object.fromEntries(Object.entries(t).map(([r, n]) => [r, ds(r) ? n : te({ sensitiveValues: e, value: n })]));
|
|
8222
8222
|
}
|
|
8223
|
-
c(
|
|
8223
|
+
c($t, "scrubObject");
|
|
8224
8224
|
function Yr({ error: t, sensitiveValues: e }) {
|
|
8225
8225
|
return t ? { ...t, message: ot({ sensitiveValues: e, str: t.message }) } : void 0;
|
|
8226
8226
|
}
|
|
8227
8227
|
c(Yr, "scrubError");
|
|
8228
8228
|
function ps({ event: t, sensitiveValues: e }) {
|
|
8229
|
-
return cs(t).with({ type: "console" }, (r) => ({ ...r, args: r.args?.map((n) => ({ ...n, preview: ot({ sensitiveValues: e, str: n.preview }), value: te({ sensitiveValues: e, value: n.value }) })), text: ot({ sensitiveValues: e, str: r.text }) })).with({ type: "before" }, (r) => ({ ...r, params:
|
|
8229
|
+
return cs(t).with({ type: "console" }, (r) => ({ ...r, args: r.args?.map((n) => ({ ...n, preview: ot({ sensitiveValues: e, str: n.preview }), value: te({ sensitiveValues: e, value: n.value }) })), text: ot({ sensitiveValues: e, str: r.text }) })).with({ type: "before" }, (r) => ({ ...r, params: $t({ obj: r.params, sensitiveValues: e }), title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "after" }, (r) => ({ ...r, error: Yr({ error: r.error, sensitiveValues: e }), result: r.result !== void 0 ? te({ sensitiveValues: e, value: r.result }) : void 0 })).with({ type: "action" }, (r) => ({ ...r, error: Yr({ error: r.error, sensitiveValues: e }), params: $t({ obj: r.params, sensitiveValues: e }), result: r.result !== void 0 ? te({ sensitiveValues: e, value: r.result }) : void 0, title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "event" }, (r) => ({ ...r, params: $t({ obj: r.params, sensitiveValues: e }) })).with({ type: "stdout" }, { type: "stderr" }, (r) => ({ ...r, text: r.text !== void 0 ? ot({ sensitiveValues: e, str: r.text }) : void 0 })).with({ type: "error" }, (r) => ({ ...r, message: ot({ sensitiveValues: e, str: r.message }) })).with({ type: "log" }, (r) => ({ ...r, message: ot({ sensitiveValues: e, str: r.message }) })).with({ type: "context-options" }, (r) => ({ ...r, options: $t({ obj: r.options, sensitiveValues: e }), title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "frame-snapshot" }, (r) => ({ ...r, snapshot: $t({ obj: r.snapshot, sensitiveValues: e }) })).with({ type: "resource-snapshot" }, (r) => ({ ...r, snapshot: $t({ obj: r.snapshot, sensitiveValues: e }) })).with({ type: "screencast-frame" }, { type: "input" }, (r) => r).exhaustive();
|
|
8230
8230
|
}
|
|
8231
8231
|
c(ps, "scrubTraceEvent");
|
|
8232
8232
|
function ms({ content: t, sensitiveValues: e }) {
|
|
8233
8233
|
const r = new node_util.TextDecoder(), n = new node_util.TextEncoder(), a = r.decode(t).split(`
|
|
8234
|
-
`).map((
|
|
8235
|
-
if (!
|
|
8234
|
+
`).map((u) => {
|
|
8235
|
+
if (!u.trim()) return u;
|
|
8236
8236
|
try {
|
|
8237
|
-
const h = JSON.parse(
|
|
8237
|
+
const h = JSON.parse(u), d = ps({ event: h, sensitiveValues: e });
|
|
8238
8238
|
return JSON.stringify(d);
|
|
8239
8239
|
} catch {
|
|
8240
|
-
return ot({ sensitiveValues: e, str:
|
|
8240
|
+
return ot({ sensitiveValues: e, str: u });
|
|
8241
8241
|
}
|
|
8242
8242
|
});
|
|
8243
8243
|
return n.encode(a.join(`
|
|
8244
8244
|
`));
|
|
8245
8245
|
}
|
|
8246
8246
|
c(ms, "scrubJsonLinesFile");
|
|
8247
|
-
function
|
|
8247
|
+
function Qr({ content: t, sensitiveValues: e }) {
|
|
8248
8248
|
const r = new node_util.TextDecoder(), n = new node_util.TextEncoder(), i = ot({ sensitiveValues: e, str: r.decode(t) });
|
|
8249
8249
|
return n.encode(i);
|
|
8250
8250
|
}
|
|
8251
|
-
c(
|
|
8252
|
-
async function
|
|
8253
|
-
const r =
|
|
8251
|
+
c(Qr, "scrubTextFile");
|
|
8252
|
+
async function Ge({ sensitiveValues: t, traceBuffer: e }) {
|
|
8253
|
+
const r = Vr(t);
|
|
8254
8254
|
if (r.length === 0) return new Uint8Array(e);
|
|
8255
|
-
const n = [...r].sort((h, d) => d.length - h.length), i = ts(new Uint8Array(e)), s = Object.entries(i), a = await Promise.all(s.map(async ([h, d]) => [h, await gs({ content: d, filename: h, sensitiveValues: n })])),
|
|
8256
|
-
return Zi(
|
|
8255
|
+
const n = [...r].sort((h, d) => d.length - h.length), i = ts(new Uint8Array(e)), s = Object.entries(i), a = await Promise.all(s.map(async ([h, d]) => [h, await gs({ content: d, filename: h, sensitiveValues: n })])), u = Object.fromEntries(a);
|
|
8256
|
+
return Zi(u);
|
|
8257
8257
|
}
|
|
8258
|
-
c(
|
|
8258
|
+
c(Ge, "scrubTrace");
|
|
8259
8259
|
async function gs({ content: t, filename: e, sensitiveValues: r }) {
|
|
8260
8260
|
const n = e.toLowerCase();
|
|
8261
|
-
return n.endsWith(".trace") || n.endsWith(".network") ? ms({ content: t, sensitiveValues: r }) : n.endsWith(".html") || n.endsWith(".dat") || n.endsWith(".json") ?
|
|
8261
|
+
return n.endsWith(".trace") || n.endsWith(".network") ? ms({ content: t, sensitiveValues: r }) : n.endsWith(".html") || n.endsWith(".dat") || n.endsWith(".json") ? Qr({ content: t, sensitiveValues: r }) : n.startsWith("resources/") ? Es({ content: t, sensitiveValues: r }) : t;
|
|
8262
8262
|
}
|
|
8263
8263
|
c(gs, "scrubFile");
|
|
8264
8264
|
async function Es({ content: t, sensitiveValues: e }) {
|
|
8265
|
-
return await Pi.isBinaryFile(Buffer.from(t)) ? t :
|
|
8265
|
+
return await Pi.isBinaryFile(Buffer.from(t)) ? t : Qr({ content: t, sensitiveValues: e });
|
|
8266
8266
|
}
|
|
8267
8267
|
c(Es, "scrubResourceFile");
|
|
8268
8268
|
async function _s({ sensitiveValues: t, tracePath: e }) {
|
|
8269
8269
|
const r = [], n = node_fs.createReadStream(e);
|
|
8270
8270
|
for await (const s of n) r.push(Uint8Array.from(s));
|
|
8271
8271
|
const i = new Uint8Array(Buffer.concat(r));
|
|
8272
|
-
return
|
|
8272
|
+
return Ge({ sensitiveValues: t, traceBuffer: i });
|
|
8273
8273
|
}
|
|
8274
8274
|
c(_s, "scrubTraceFromPath");
|
|
8275
8275
|
async function Is({ sensitiveValues: t, traceFd: e, tracePath: r }) {
|
|
8276
8276
|
const n = [], i = node_fs.createReadStream(r, { autoClose: true, fd: e });
|
|
8277
8277
|
for await (const a of i) n.push(Uint8Array.from(a));
|
|
8278
8278
|
const s = new Uint8Array(Buffer.concat(n));
|
|
8279
|
-
return
|
|
8279
|
+
return Ge({ sensitiveValues: t, traceBuffer: s });
|
|
8280
8280
|
}
|
|
8281
8281
|
c(Is, "scrubTraceFromFd");
|
|
8282
|
-
const
|
|
8282
|
+
const Jr = { AUTHENTICATION_FAILED: 1008 }, Ss = 2e4, Rs = 5e4, Ts = 3e4;
|
|
8283
8283
|
class ws {
|
|
8284
8284
|
static {
|
|
8285
8285
|
c(this, "WebSocketClient");
|
|
@@ -8303,8 +8303,8 @@ class ws {
|
|
|
8303
8303
|
authenticationFailed = false;
|
|
8304
8304
|
pingIntervalTimer;
|
|
8305
8305
|
lastPongAt = 0;
|
|
8306
|
-
constructor({ apiKey: e, cliVersion: r, maxBufferSize: n = 1e3, maxReconnectAttempts: i = 3, onError: s, onMessage: a, projectId:
|
|
8307
|
-
this.url = g, this.apiKey = e, this.projectId =
|
|
8306
|
+
constructor({ apiKey: e, cliVersion: r, maxBufferSize: n = 1e3, maxReconnectAttempts: i = 3, onError: s, onMessage: a, projectId: u, reconnectDelay: h = 2e3, source: d, url: g }) {
|
|
8307
|
+
this.url = g, this.apiKey = e, this.projectId = u, this.source = d, this.cliVersion = r, this.maxBufferSize = n, this.reconnectDelay = h, this.maxReconnectAttempts = i, this.onMessage = a, this.onError = s, this.connect();
|
|
8308
8308
|
}
|
|
8309
8309
|
connect() {
|
|
8310
8310
|
try {
|
|
@@ -8318,7 +8318,7 @@ class ws {
|
|
|
8318
8318
|
} catch {
|
|
8319
8319
|
}
|
|
8320
8320
|
}), this.socket.on("close", (r, n) => {
|
|
8321
|
-
this.isAuthenticated = false, this.clearPingInterval(), r ===
|
|
8321
|
+
this.isAuthenticated = false, this.clearPingInterval(), r === Jr.AUTHENTICATION_FAILED && (this.authenticationFailed = true, this.onError && this.onError({ code: r, message: n.toString() || "Authentication failed", reason: n.toString() })), !this.isManualClose && !this.authenticationFailed && this.reconnectAttempts < this.maxReconnectAttempts && this.scheduleReconnect();
|
|
8322
8322
|
}), this.socket.on("error", () => {
|
|
8323
8323
|
});
|
|
8324
8324
|
} catch {
|
|
@@ -8400,16 +8400,16 @@ function ee(t) {
|
|
|
8400
8400
|
return t ? /^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(t)[1] : void 0;
|
|
8401
8401
|
}
|
|
8402
8402
|
c(ee, "parseBranch");
|
|
8403
|
-
var
|
|
8403
|
+
var bs = { detect({ env: t }) {
|
|
8404
8404
|
return !!t.BUILD_BUILDURI;
|
|
8405
8405
|
}, configuration({ env: t }) {
|
|
8406
8406
|
const e = t.SYSTEM_PULLREQUEST_PULLREQUESTID, r = !!e;
|
|
8407
8407
|
return { name: "Azure Pipelines", service: "azurePipelines", commit: t.BUILD_SOURCEVERSION, build: t.BUILD_BUILDNUMBER, branch: ee(r ? t.SYSTEM_PULLREQUEST_TARGETBRANCH : t.BUILD_SOURCEBRANCH), pr: e, isPr: r, prBranch: ee(r ? t.SYSTEM_PULLREQUEST_SOURCEBRANCH : void 0), root: t.BUILD_REPOSITORY_LOCALPATH };
|
|
8408
|
-
} },
|
|
8408
|
+
} }, ys = { detect({ env: t }) {
|
|
8409
8409
|
return !!t.bamboo_agentId;
|
|
8410
8410
|
}, configuration({ env: t }) {
|
|
8411
8411
|
return { name: "Bamboo", service: "bamboo", commit: t.bamboo_planRepository_1_revision, build: t.bamboo_buildNumber, buildUrl: t.bamboo_buildResultsUrl, branch: t.bamboo_planRepository_1_branchName, job: t.bamboo_buildKey, root: t.bamboo_build_working_directory };
|
|
8412
|
-
} },
|
|
8412
|
+
} }, Us = { detect({ env: t }) {
|
|
8413
8413
|
return !!t.BITBUCKET_BUILD_NUMBER;
|
|
8414
8414
|
}, configuration({ env: t }) {
|
|
8415
8415
|
return { name: "Bitbucket Pipelines", service: "bitbucket", commit: t.BITBUCKET_COMMIT, tag: t.BITBUCKET_TAG, build: t.BITBUCKET_BUILD_NUMBER, buildUrl: `https://bitbucket.org/${t.BITBUCKET_REPO_FULL_NAME}/addon/pipelines/home#!/results/${t.BITBUCKET_BUILD_NUMBER}`, branch: t.BITBUCKET_BRANCH, slug: t.BITBUCKET_REPO_FULL_NAME, root: t.BITBUCKET_CLONE_DIR };
|
|
@@ -8418,33 +8418,33 @@ var ys = { detect({ env: t }) {
|
|
|
8418
8418
|
}, configuration({ env: t }) {
|
|
8419
8419
|
const e = t.BITRISE_PULL_REQUEST === "false" ? void 0 : t.BITRISE_PULL_REQUEST, r = !!e;
|
|
8420
8420
|
return { name: "Bitrise", service: "bitrise", commit: t.BITRISE_GIT_COMMIT, tag: t.BITRISE_GIT_TAG, build: t.BITRISE_BUILD_NUMBER, buildUrl: t.BITRISE_BUILD_URL, branch: r ? t.BITRISEIO_GIT_BRANCH_DEST : t.BITRISE_GIT_BRANCH, pr: e, isPr: r, prBranch: r ? t.BITRISE_GIT_BRANCH : void 0, slug: t.BITRISE_APP_SLUG };
|
|
8421
|
-
} },
|
|
8421
|
+
} }, Cs = { detect({ env: t }) {
|
|
8422
8422
|
return !!t.BUDDY_WORKSPACE_ID;
|
|
8423
8423
|
}, configuration({ env: t }) {
|
|
8424
8424
|
const e = zr(t.BUDDY_EXECUTION_PULL_REQUEST_ID), r = !!e;
|
|
8425
8425
|
return { name: "Buddy", service: "buddy", commit: t.BUDDY_EXECUTION_REVISION, tag: t.BUDDY_EXECUTION_TAG, build: t.BUDDY_EXECUTION_ID, buildUrl: t.BUDDY_EXECUTION_URL, branch: r ? t.BUDDY_EXECUTION_PULL_REQUEST_HEAD_BRANCH : t.BUDDY_EXECUTION_BRANCH, pr: e, isPr: r, slug: t.BUDDY_REPO_SLUG };
|
|
8426
|
-
} },
|
|
8426
|
+
} }, Gt = { exports: {} }, He, Xr;
|
|
8427
8427
|
function Bs() {
|
|
8428
8428
|
if (Xr) return He;
|
|
8429
8429
|
Xr = 1, He = n, n.sync = i;
|
|
8430
|
-
var t =
|
|
8430
|
+
var t = Wt;
|
|
8431
8431
|
function e(s, a) {
|
|
8432
|
-
var
|
|
8433
|
-
if (!
|
|
8434
|
-
for (var h = 0; h <
|
|
8435
|
-
var d =
|
|
8432
|
+
var u = a.pathExt !== void 0 ? a.pathExt : process.env.PATHEXT;
|
|
8433
|
+
if (!u || (u = u.split(";"), u.indexOf("") !== -1)) return true;
|
|
8434
|
+
for (var h = 0; h < u.length; h++) {
|
|
8435
|
+
var d = u[h].toLowerCase();
|
|
8436
8436
|
if (d && s.substr(-d.length).toLowerCase() === d) return true;
|
|
8437
8437
|
}
|
|
8438
8438
|
return false;
|
|
8439
8439
|
}
|
|
8440
8440
|
c(e, "checkPathExt");
|
|
8441
|
-
function r(s, a,
|
|
8442
|
-
return !s.isSymbolicLink() && !s.isFile() ? false : e(a,
|
|
8441
|
+
function r(s, a, u) {
|
|
8442
|
+
return !s.isSymbolicLink() && !s.isFile() ? false : e(a, u);
|
|
8443
8443
|
}
|
|
8444
8444
|
c(r, "checkStat");
|
|
8445
|
-
function n(s, a,
|
|
8445
|
+
function n(s, a, u) {
|
|
8446
8446
|
t.stat(s, function(h, d) {
|
|
8447
|
-
|
|
8447
|
+
u(h, h ? false : r(d, s, a));
|
|
8448
8448
|
});
|
|
8449
8449
|
}
|
|
8450
8450
|
c(n, "isexe");
|
|
@@ -8458,10 +8458,10 @@ var ke, Zr;
|
|
|
8458
8458
|
function Ps() {
|
|
8459
8459
|
if (Zr) return ke;
|
|
8460
8460
|
Zr = 1, ke = e, e.sync = r;
|
|
8461
|
-
var t =
|
|
8462
|
-
function e(s, a,
|
|
8461
|
+
var t = Wt;
|
|
8462
|
+
function e(s, a, u) {
|
|
8463
8463
|
t.stat(s, function(h, d) {
|
|
8464
|
-
|
|
8464
|
+
u(h, h ? false : n(d, a));
|
|
8465
8465
|
});
|
|
8466
8466
|
}
|
|
8467
8467
|
c(e, "isexe");
|
|
@@ -8474,29 +8474,29 @@ function Ps() {
|
|
|
8474
8474
|
}
|
|
8475
8475
|
c(n, "checkStat");
|
|
8476
8476
|
function i(s, a) {
|
|
8477
|
-
var
|
|
8478
|
-
return
|
|
8477
|
+
var u = s.mode, h = s.uid, d = s.gid, g = a.uid !== void 0 ? a.uid : process.getuid && process.getuid(), w = a.gid !== void 0 ? a.gid : process.getgid && process.getgid(), U = parseInt("100", 8), v = parseInt("010", 8), D = parseInt("001", 8), M = U | v, y = u & D || u & v && d === w || u & U && h === g || u & M && g === 0;
|
|
8478
|
+
return y;
|
|
8479
8479
|
}
|
|
8480
8480
|
return c(i, "checkMode"), ke;
|
|
8481
8481
|
}
|
|
8482
8482
|
c(Ps, "requireMode");
|
|
8483
8483
|
var je, tn;
|
|
8484
|
-
function
|
|
8484
|
+
function Ls() {
|
|
8485
8485
|
if (tn) return je;
|
|
8486
8486
|
tn = 1;
|
|
8487
8487
|
var t;
|
|
8488
|
-
process.platform === "win32" ||
|
|
8488
|
+
process.platform === "win32" || Ci.TESTING_WINDOWS ? t = Bs() : t = Ps(), je = e, e.sync = r;
|
|
8489
8489
|
function e(n, i, s) {
|
|
8490
8490
|
if (typeof i == "function" && (s = i, i = {}), !s) {
|
|
8491
8491
|
if (typeof Promise != "function") throw new TypeError("callback not provided");
|
|
8492
|
-
return new Promise(function(a,
|
|
8492
|
+
return new Promise(function(a, u) {
|
|
8493
8493
|
e(n, i || {}, function(h, d) {
|
|
8494
|
-
h ?
|
|
8494
|
+
h ? u(h) : a(d);
|
|
8495
8495
|
});
|
|
8496
8496
|
});
|
|
8497
8497
|
}
|
|
8498
|
-
t(n, i || {}, function(a,
|
|
8499
|
-
a && (a.code === "EACCES" || i && i.ignoreErrors) && (a = null,
|
|
8498
|
+
t(n, i || {}, function(a, u) {
|
|
8499
|
+
a && (a.code === "EACCES" || i && i.ignoreErrors) && (a = null, u = false), s(a, u);
|
|
8500
8500
|
});
|
|
8501
8501
|
}
|
|
8502
8502
|
c(e, "isexe");
|
|
@@ -8510,39 +8510,39 @@ function Os() {
|
|
|
8510
8510
|
}
|
|
8511
8511
|
return c(r, "sync"), je;
|
|
8512
8512
|
}
|
|
8513
|
-
c(
|
|
8513
|
+
c(Ls, "requireIsexe");
|
|
8514
8514
|
var Fe, en;
|
|
8515
|
-
function
|
|
8515
|
+
function Os() {
|
|
8516
8516
|
if (en) return Fe;
|
|
8517
8517
|
en = 1;
|
|
8518
|
-
const t = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", e =
|
|
8519
|
-
const g = d.colon || r, w = h.match(/\//) || t && h.match(/\\/) ? [""] : [...t ? [process.cwd()] : [], ...(d.path || process.env.PATH || "").split(g)],
|
|
8520
|
-
return t && h.indexOf(".") !== -1 && v[0] !== "" && v.unshift(""), { pathEnv: w, pathExt: v, pathExtExe:
|
|
8518
|
+
const t = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", e = Vt, r = t ? ";" : ":", n = Ls(), i = c((h) => Object.assign(new Error(`not found: ${h}`), { code: "ENOENT" }), "getNotFoundError"), s = c((h, d) => {
|
|
8519
|
+
const g = d.colon || r, w = h.match(/\//) || t && h.match(/\\/) ? [""] : [...t ? [process.cwd()] : [], ...(d.path || process.env.PATH || "").split(g)], U = t ? d.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", v = t ? U.split(g) : [""];
|
|
8520
|
+
return t && h.indexOf(".") !== -1 && v[0] !== "" && v.unshift(""), { pathEnv: w, pathExt: v, pathExtExe: U };
|
|
8521
8521
|
}, "getPathInfo"), a = c((h, d, g) => {
|
|
8522
8522
|
typeof d == "function" && (g = d, d = {}), d || (d = {});
|
|
8523
|
-
const { pathEnv: w, pathExt:
|
|
8524
|
-
if (P === w.length) return d.all &&
|
|
8525
|
-
const x = w[P],
|
|
8526
|
-
A(
|
|
8527
|
-
}), "step"),
|
|
8528
|
-
if (
|
|
8529
|
-
const H =
|
|
8523
|
+
const { pathEnv: w, pathExt: U, pathExtExe: v } = s(h, d), D = [], M = c((P) => new Promise((A, L) => {
|
|
8524
|
+
if (P === w.length) return d.all && D.length ? A(D) : L(i(h));
|
|
8525
|
+
const x = w[P], C = /^".*"$/.test(x) ? x.slice(1, -1) : x, H = e.join(C, h), j = !C && /^\.[\\\/]/.test(h) ? h.slice(0, 2) + H : H;
|
|
8526
|
+
A(y(j, P, 0));
|
|
8527
|
+
}), "step"), y = c((P, A, L) => new Promise((x, C) => {
|
|
8528
|
+
if (L === U.length) return x(M(A + 1));
|
|
8529
|
+
const H = U[L];
|
|
8530
8530
|
n(P + H, { pathExt: v }, (j, o) => {
|
|
8531
|
-
if (!j && o) if (d.all)
|
|
8531
|
+
if (!j && o) if (d.all) D.push(P + H);
|
|
8532
8532
|
else return x(P + H);
|
|
8533
|
-
return x(
|
|
8533
|
+
return x(y(P, A, L + 1));
|
|
8534
8534
|
});
|
|
8535
8535
|
}), "subStep");
|
|
8536
|
-
return g ?
|
|
8537
|
-
}, "which"),
|
|
8536
|
+
return g ? M(0).then((P) => g(null, P), g) : M(0);
|
|
8537
|
+
}, "which"), u = c((h, d) => {
|
|
8538
8538
|
d = d || {};
|
|
8539
|
-
const { pathEnv: g, pathExt: w, pathExtExe:
|
|
8540
|
-
for (let
|
|
8541
|
-
const
|
|
8542
|
-
for (let
|
|
8543
|
-
const x = A + w[
|
|
8539
|
+
const { pathEnv: g, pathExt: w, pathExtExe: U } = s(h, d), v = [];
|
|
8540
|
+
for (let D = 0; D < g.length; D++) {
|
|
8541
|
+
const M = g[D], y = /^".*"$/.test(M) ? M.slice(1, -1) : M, P = e.join(y, h), A = !y && /^\.[\\\/]/.test(h) ? h.slice(0, 2) + P : P;
|
|
8542
|
+
for (let L = 0; L < w.length; L++) {
|
|
8543
|
+
const x = A + w[L];
|
|
8544
8544
|
try {
|
|
8545
|
-
if (n.sync(x, { pathExt:
|
|
8545
|
+
if (n.sync(x, { pathExt: U })) if (d.all) v.push(x);
|
|
8546
8546
|
else return x;
|
|
8547
8547
|
} catch {
|
|
8548
8548
|
}
|
|
@@ -8552,34 +8552,34 @@ function Ls() {
|
|
|
8552
8552
|
if (d.nothrow) return null;
|
|
8553
8553
|
throw i(h);
|
|
8554
8554
|
}, "whichSync");
|
|
8555
|
-
return Fe = a, a.sync =
|
|
8555
|
+
return Fe = a, a.sync = u, Fe;
|
|
8556
8556
|
}
|
|
8557
|
-
c(
|
|
8558
|
-
var
|
|
8557
|
+
c(Os, "requireWhich");
|
|
8558
|
+
var le = { exports: {} }, rn;
|
|
8559
8559
|
function Ns() {
|
|
8560
|
-
if (rn) return
|
|
8560
|
+
if (rn) return le.exports;
|
|
8561
8561
|
rn = 1;
|
|
8562
8562
|
const t = c((e = {}) => {
|
|
8563
8563
|
const r = e.env || process.env;
|
|
8564
8564
|
return (e.platform || process.platform) !== "win32" ? "PATH" : Object.keys(r).reverse().find((i) => i.toUpperCase() === "PATH") || "Path";
|
|
8565
8565
|
}, "pathKey");
|
|
8566
|
-
return
|
|
8566
|
+
return le.exports = t, le.exports.default = t, le.exports;
|
|
8567
8567
|
}
|
|
8568
8568
|
c(Ns, "requirePathKey");
|
|
8569
|
-
var
|
|
8570
|
-
function
|
|
8571
|
-
if (nn) return
|
|
8569
|
+
var We, nn;
|
|
8570
|
+
function Ds() {
|
|
8571
|
+
if (nn) return We;
|
|
8572
8572
|
nn = 1;
|
|
8573
|
-
const t =
|
|
8573
|
+
const t = Vt, e = Os(), r = Ns();
|
|
8574
8574
|
function n(s, a) {
|
|
8575
|
-
const
|
|
8575
|
+
const u = s.options.env || process.env, h = process.cwd(), d = s.options.cwd != null, g = d && process.chdir !== void 0 && !process.chdir.disabled;
|
|
8576
8576
|
if (g) try {
|
|
8577
8577
|
process.chdir(s.options.cwd);
|
|
8578
8578
|
} catch {
|
|
8579
8579
|
}
|
|
8580
8580
|
let w;
|
|
8581
8581
|
try {
|
|
8582
|
-
w = e.sync(s.command, { path:
|
|
8582
|
+
w = e.sync(s.command, { path: u[r({ env: u })], pathExt: a ? t.delimiter : void 0 });
|
|
8583
8583
|
} catch {
|
|
8584
8584
|
} finally {
|
|
8585
8585
|
g && process.chdir(h);
|
|
@@ -8590,12 +8590,12 @@ function Ms() {
|
|
|
8590
8590
|
function i(s) {
|
|
8591
8591
|
return n(s) || n(s, true);
|
|
8592
8592
|
}
|
|
8593
|
-
return c(i, "resolveCommand"),
|
|
8593
|
+
return c(i, "resolveCommand"), We = i, We;
|
|
8594
8594
|
}
|
|
8595
|
-
c(
|
|
8596
|
-
var
|
|
8597
|
-
function
|
|
8598
|
-
if (sn) return
|
|
8595
|
+
c(Ds, "requireResolveCommand");
|
|
8596
|
+
var ue = {}, sn;
|
|
8597
|
+
function Ms() {
|
|
8598
|
+
if (sn) return ue;
|
|
8599
8599
|
sn = 1;
|
|
8600
8600
|
const t = /([()\][%!^"`<>&|;, *?])/g;
|
|
8601
8601
|
function e(n) {
|
|
@@ -8605,32 +8605,32 @@ function Ds() {
|
|
|
8605
8605
|
function r(n, i) {
|
|
8606
8606
|
return n = `${n}`, n = n.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"'), n = n.replace(/(?=(\\+?)?)\1$/, "$1$1"), n = `"${n}"`, n = n.replace(t, "^$1"), i && (n = n.replace(t, "^$1")), n;
|
|
8607
8607
|
}
|
|
8608
|
-
return c(r, "escapeArgument"),
|
|
8608
|
+
return c(r, "escapeArgument"), ue.command = e, ue.argument = r, ue;
|
|
8609
8609
|
}
|
|
8610
|
-
c(
|
|
8611
|
-
var
|
|
8610
|
+
c(Ms, "require_escape");
|
|
8611
|
+
var Ve, on;
|
|
8612
8612
|
function xs() {
|
|
8613
|
-
return on || (on = 1,
|
|
8613
|
+
return on || (on = 1, Ve = /^#!(.*)/), Ve;
|
|
8614
8614
|
}
|
|
8615
8615
|
c(xs, "requireShebangRegex");
|
|
8616
|
-
var
|
|
8617
|
-
function
|
|
8618
|
-
if (an) return
|
|
8616
|
+
var Ke, an;
|
|
8617
|
+
function $s() {
|
|
8618
|
+
if (an) return Ke;
|
|
8619
8619
|
an = 1;
|
|
8620
8620
|
const t = xs();
|
|
8621
|
-
return
|
|
8621
|
+
return Ke = c((e = "") => {
|
|
8622
8622
|
const r = e.match(t);
|
|
8623
8623
|
if (!r) return null;
|
|
8624
8624
|
const [n, i] = r[0].replace(/#! ?/, "").split(" "), s = n.split("/").pop();
|
|
8625
8625
|
return s === "env" ? i : i ? `${s} ${i}` : s;
|
|
8626
|
-
}, "shebangCommand"),
|
|
8626
|
+
}, "shebangCommand"), Ke;
|
|
8627
8627
|
}
|
|
8628
|
-
c(
|
|
8628
|
+
c($s, "requireShebangCommand");
|
|
8629
8629
|
var qe, cn;
|
|
8630
|
-
function
|
|
8630
|
+
function Gs() {
|
|
8631
8631
|
if (cn) return qe;
|
|
8632
8632
|
cn = 1;
|
|
8633
|
-
const t =
|
|
8633
|
+
const t = Wt, e = $s();
|
|
8634
8634
|
function r(n) {
|
|
8635
8635
|
const s = Buffer.alloc(150);
|
|
8636
8636
|
let a;
|
|
@@ -8642,42 +8642,42 @@ function $s() {
|
|
|
8642
8642
|
}
|
|
8643
8643
|
return c(r, "readShebang"), qe = r, qe;
|
|
8644
8644
|
}
|
|
8645
|
-
c(
|
|
8646
|
-
var Ye,
|
|
8645
|
+
c(Gs, "requireReadShebang");
|
|
8646
|
+
var Ye, ln;
|
|
8647
8647
|
function Hs() {
|
|
8648
|
-
if (
|
|
8649
|
-
|
|
8650
|
-
const t =
|
|
8651
|
-
function
|
|
8648
|
+
if (ln) return Ye;
|
|
8649
|
+
ln = 1;
|
|
8650
|
+
const t = Vt, e = Ds(), r = Ms(), n = Gs(), i = process.platform === "win32", s = /\.(?:com|exe)$/i, a = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
8651
|
+
function u(g) {
|
|
8652
8652
|
g.file = e(g);
|
|
8653
8653
|
const w = g.file && n(g.file);
|
|
8654
8654
|
return w ? (g.args.unshift(g.file), g.command = w, e(g)) : g.file;
|
|
8655
8655
|
}
|
|
8656
|
-
c(
|
|
8656
|
+
c(u, "detectShebang");
|
|
8657
8657
|
function h(g) {
|
|
8658
8658
|
if (!i) return g;
|
|
8659
|
-
const w =
|
|
8660
|
-
if (g.options.forceShell ||
|
|
8659
|
+
const w = u(g), U = !s.test(w);
|
|
8660
|
+
if (g.options.forceShell || U) {
|
|
8661
8661
|
const v = a.test(w);
|
|
8662
|
-
g.command = t.normalize(g.command), g.command = r.command(g.command), g.args = g.args.map((
|
|
8663
|
-
const
|
|
8664
|
-
g.args = ["/d", "/s", "/c", `"${
|
|
8662
|
+
g.command = t.normalize(g.command), g.command = r.command(g.command), g.args = g.args.map((M) => r.argument(M, v));
|
|
8663
|
+
const D = [g.command].concat(g.args).join(" ");
|
|
8664
|
+
g.args = ["/d", "/s", "/c", `"${D}"`], g.command = process.env.comspec || "cmd.exe", g.options.windowsVerbatimArguments = true;
|
|
8665
8665
|
}
|
|
8666
8666
|
return g;
|
|
8667
8667
|
}
|
|
8668
8668
|
c(h, "parseNonShell");
|
|
8669
|
-
function d(g, w,
|
|
8670
|
-
w && !Array.isArray(w) && (
|
|
8671
|
-
const v = { command: g, args: w, options:
|
|
8672
|
-
return
|
|
8669
|
+
function d(g, w, U) {
|
|
8670
|
+
w && !Array.isArray(w) && (U = w, w = null), w = w ? w.slice(0) : [], U = Object.assign({}, U);
|
|
8671
|
+
const v = { command: g, args: w, options: U, file: void 0, original: { command: g, args: w } };
|
|
8672
|
+
return U.shell ? v : h(v);
|
|
8673
8673
|
}
|
|
8674
8674
|
return c(d, "parse"), Ye = d, Ye;
|
|
8675
8675
|
}
|
|
8676
8676
|
c(Hs, "requireParse");
|
|
8677
|
-
var
|
|
8677
|
+
var Qe, un;
|
|
8678
8678
|
function ks() {
|
|
8679
|
-
if (
|
|
8680
|
-
|
|
8679
|
+
if (un) return Qe;
|
|
8680
|
+
un = 1;
|
|
8681
8681
|
const t = process.platform === "win32";
|
|
8682
8682
|
function e(s, a) {
|
|
8683
8683
|
return Object.assign(new Error(`${a} ${s.command} ENOENT`), { code: "ENOENT", errno: "ENOENT", syscall: `${a} ${s.command}`, path: s.command, spawnargs: s.args });
|
|
@@ -8685,13 +8685,13 @@ function ks() {
|
|
|
8685
8685
|
c(e, "notFoundError");
|
|
8686
8686
|
function r(s, a) {
|
|
8687
8687
|
if (!t) return;
|
|
8688
|
-
const
|
|
8688
|
+
const u = s.emit;
|
|
8689
8689
|
s.emit = function(h, d) {
|
|
8690
8690
|
if (h === "exit") {
|
|
8691
8691
|
const g = n(d, a);
|
|
8692
|
-
if (g) return
|
|
8692
|
+
if (g) return u.call(s, "error", g);
|
|
8693
8693
|
}
|
|
8694
|
-
return
|
|
8694
|
+
return u.apply(s, arguments);
|
|
8695
8695
|
};
|
|
8696
8696
|
}
|
|
8697
8697
|
c(r, "hookChildProcess");
|
|
@@ -8702,60 +8702,60 @@ function ks() {
|
|
|
8702
8702
|
function i(s, a) {
|
|
8703
8703
|
return t && s === 1 && !a.file ? e(a.original, "spawnSync") : null;
|
|
8704
8704
|
}
|
|
8705
|
-
return c(i, "verifyENOENTSync"),
|
|
8705
|
+
return c(i, "verifyENOENTSync"), Qe = { hookChildProcess: r, verifyENOENT: n, verifyENOENTSync: i, notFoundError: e }, Qe;
|
|
8706
8706
|
}
|
|
8707
8707
|
c(ks, "requireEnoent");
|
|
8708
8708
|
var fn;
|
|
8709
8709
|
function js() {
|
|
8710
|
-
if (fn) return
|
|
8710
|
+
if (fn) return Gt.exports;
|
|
8711
8711
|
fn = 1;
|
|
8712
8712
|
const t = require$$0$2, e = Hs(), r = ks();
|
|
8713
|
-
function n(s, a,
|
|
8714
|
-
const h = e(s, a,
|
|
8713
|
+
function n(s, a, u) {
|
|
8714
|
+
const h = e(s, a, u), d = t.spawn(h.command, h.args, h.options);
|
|
8715
8715
|
return r.hookChildProcess(d, h), d;
|
|
8716
8716
|
}
|
|
8717
8717
|
c(n, "spawn");
|
|
8718
|
-
function i(s, a,
|
|
8719
|
-
const h = e(s, a,
|
|
8718
|
+
function i(s, a, u) {
|
|
8719
|
+
const h = e(s, a, u), d = t.spawnSync(h.command, h.args, h.options);
|
|
8720
8720
|
return d.error = d.error || r.verifyENOENTSync(d.status, h), d;
|
|
8721
8721
|
}
|
|
8722
|
-
return c(i, "spawnSync"),
|
|
8722
|
+
return c(i, "spawnSync"), Gt.exports = n, Gt.exports.spawn = n, Gt.exports.sync = i, Gt.exports._parse = e, Gt.exports._enoent = r, Gt.exports;
|
|
8723
8723
|
}
|
|
8724
8724
|
c(js, "requireCrossSpawn");
|
|
8725
|
-
var Fs = js(),
|
|
8726
|
-
function
|
|
8725
|
+
var Fs = js(), Ws = Cr(Fs);
|
|
8726
|
+
function Vs(t) {
|
|
8727
8727
|
const e = typeof t == "string" ? `
|
|
8728
8728
|
` : 10, r = typeof t == "string" ? "\r" : 13;
|
|
8729
8729
|
return t[t.length - 1] === e && (t = t.slice(0, -1)), t[t.length - 1] === r && (t = t.slice(0, -1)), t;
|
|
8730
8730
|
}
|
|
8731
|
-
c(
|
|
8731
|
+
c(Vs, "stripFinalNewline");
|
|
8732
8732
|
function hn(t = {}) {
|
|
8733
8733
|
const { env: e = process.env, platform: r = process.platform } = t;
|
|
8734
8734
|
return r !== "win32" ? "PATH" : Object.keys(e).reverse().find((n) => n.toUpperCase() === "PATH") || "Path";
|
|
8735
8735
|
}
|
|
8736
8736
|
c(hn, "pathKey");
|
|
8737
|
-
const
|
|
8738
|
-
const s = t instanceof URL ? node_url.fileURLToPath(t) : t, a = path.resolve(s),
|
|
8739
|
-
return r && qs(
|
|
8737
|
+
const Ks = c(({ cwd: t = y.cwd(), path: e = y.env[hn()], preferLocal: r = true, execPath: n = y.execPath, addExecPath: i = true } = {}) => {
|
|
8738
|
+
const s = t instanceof URL ? node_url.fileURLToPath(t) : t, a = path.resolve(s), u = [];
|
|
8739
|
+
return r && qs(u, a), i && Ys(u, n, a), [...u, e].join(path.delimiter);
|
|
8740
8740
|
}, "npmRunPath"), qs = c((t, e) => {
|
|
8741
8741
|
let r;
|
|
8742
8742
|
for (; r !== e; ) t.push(path.join(e, "node_modules/.bin")), r = e, e = path.resolve(e, "..");
|
|
8743
8743
|
}, "applyPreferLocal"), Ys = c((t, e, r) => {
|
|
8744
8744
|
const n = e instanceof URL ? node_url.fileURLToPath(e) : e;
|
|
8745
8745
|
t.push(path.resolve(r, n, ".."));
|
|
8746
|
-
}, "applyExecPath"),
|
|
8746
|
+
}, "applyExecPath"), Qs = c(({ env: t = y.env, ...e } = {}) => {
|
|
8747
8747
|
t = { ...t };
|
|
8748
8748
|
const r = hn({ env: t });
|
|
8749
|
-
return e.path = t[r], t[r] =
|
|
8750
|
-
}, "npmRunPathEnv"),
|
|
8749
|
+
return e.path = t[r], t[r] = Ks(e), t;
|
|
8750
|
+
}, "npmRunPathEnv"), Js = c(() => {
|
|
8751
8751
|
const t = pn - dn + 1;
|
|
8752
8752
|
return Array.from({ length: t }, zs);
|
|
8753
8753
|
}, "getRealtimeSignals"), zs = c((t, e) => ({ name: `SIGRT${e + 1}`, number: dn + e, action: "terminate", description: "Application-specific signal (realtime)", standard: "posix" }), "getRealtimeSignal"), dn = 34, pn = 64, Xs = [{ 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: true }, { 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: true }, { name: "SIGSTOP", number: 19, action: "pause", description: "Paused", standard: "posix", forced: true }, { 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" }], mn = c(() => {
|
|
8754
|
-
const t =
|
|
8754
|
+
const t = Js();
|
|
8755
8755
|
return [...Xs, ...t].map(Zs);
|
|
8756
8756
|
}, "getSignals"), Zs = c(({ name: t, number: e, description: r, action: n, forced: i = false, standard: s }) => {
|
|
8757
|
-
const { signals: { [t]: a } } = node_os.constants,
|
|
8758
|
-
return { name: t, number:
|
|
8757
|
+
const { signals: { [t]: a } } = node_os.constants, u = a !== void 0;
|
|
8758
|
+
return { name: t, number: u ? a : e, description: r, supported: u, action: n, forced: i, standard: s };
|
|
8759
8759
|
}, "normalizeSignal"), to = c(() => {
|
|
8760
8760
|
const t = mn();
|
|
8761
8761
|
return Object.fromEntries(t.map(eo));
|
|
@@ -8765,19 +8765,19 @@ const Ws = c(({ cwd: t = y.cwd(), path: e = y.env[hn()], preferLocal: r = true,
|
|
|
8765
8765
|
}, "getSignalsByNumber"), io = c((t, e) => {
|
|
8766
8766
|
const r = so(t, e);
|
|
8767
8767
|
if (r === void 0) return {};
|
|
8768
|
-
const { name: n, description: i, supported: s, action: a, forced:
|
|
8769
|
-
return { [t]: { name: n, number: t, description: i, supported: s, action: a, forced:
|
|
8768
|
+
const { name: n, description: i, supported: s, action: a, forced: u, standard: h } = r;
|
|
8769
|
+
return { [t]: { name: n, number: t, description: i, supported: s, action: a, forced: u, standard: h } };
|
|
8770
8770
|
}, "getSignalByNumber"), so = c((t, e) => {
|
|
8771
8771
|
const r = e.find(({ name: n }) => node_os.constants.signals[n] === t);
|
|
8772
8772
|
return r !== void 0 ? r : e.find((n) => n.number === t);
|
|
8773
8773
|
}, "findSignalByNumber");
|
|
8774
8774
|
no();
|
|
8775
|
-
const oo = c(({ timedOut: t, timeout: e, errorCode: r, signal: n, signalDescription: i, exitCode: s, isCanceled: a }) => t ? `timed out after ${e} milliseconds` : r !== void 0 ? `failed with ${r}` : n !== void 0 ? `was killed with ${n} (${i})` : s !== void 0 ? `failed with exit code ${s}` : "failed", "getErrorPrefix"), gn = c(({ stdout: t, stderr: e, all: r, error: n, signal: i, exitCode: s, command: a, escapedCommand:
|
|
8775
|
+
const oo = c(({ timedOut: t, timeout: e, errorCode: r, signal: n, signalDescription: i, exitCode: s, isCanceled: a }) => t ? `timed out after ${e} milliseconds` : r !== void 0 ? `failed with ${r}` : n !== void 0 ? `was killed with ${n} (${i})` : s !== void 0 ? `failed with exit code ${s}` : "failed", "getErrorPrefix"), gn = c(({ stdout: t, stderr: e, all: r, error: n, signal: i, exitCode: s, command: a, escapedCommand: u, timedOut: h, isCanceled: d, killed: g, parsed: { options: { timeout: w, cwd: U = y.cwd() } } }) => {
|
|
8776
8776
|
s = s === null ? void 0 : s, i = i === null ? void 0 : i;
|
|
8777
|
-
const v = i === void 0 ? void 0 : ro[i].description,
|
|
8778
|
-
${n.message}` :
|
|
8777
|
+
const v = i === void 0 ? void 0 : ro[i].description, D = n && n.code, y = `Command ${oo({ timedOut: h, timeout: w, errorCode: D, signal: i, signalDescription: v, exitCode: s, isCanceled: d })}: ${a}`, P = Object.prototype.toString.call(n) === "[object Error]", A = P ? `${y}
|
|
8778
|
+
${n.message}` : y, L = [A, e, t].filter(Boolean).join(`
|
|
8779
8779
|
`);
|
|
8780
|
-
return P ? (n.originalMessage = n.message, n.message =
|
|
8780
|
+
return P ? (n.originalMessage = n.message, n.message = L) : n = new Error(L), n.shortMessage = A, n.command = a, n.escapedCommand = u, n.exitCode = s, n.signal = i, n.signalDescription = v, n.stdout = t, n.stderr = e, n.cwd = U, r !== void 0 && (n.all = r), "bufferedData" in n && delete n.bufferedData, n.failed = true, n.timedOut = !!h, n.isCanceled = d, n.killed = g && !h, n;
|
|
8781
8781
|
}, "makeError"), fe = ["stdin", "stdout", "stderr"], ao = c((t) => fe.some((e) => t[e] !== void 0), "hasAlias"), co = c((t) => {
|
|
8782
8782
|
if (!t) return;
|
|
8783
8783
|
const { stdio: e } = t;
|
|
@@ -8789,8 +8789,8 @@ ${n.message}` : b, O = [A, e, t].filter(Boolean).join(`
|
|
|
8789
8789
|
return Array.from({ length: r }, (n, i) => e[i]);
|
|
8790
8790
|
}, "normalizeStdio"), Ft = [];
|
|
8791
8791
|
Ft.push("SIGHUP", "SIGINT", "SIGTERM"), process.platform !== "win32" && Ft.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT"), process.platform === "linux" && Ft.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
8792
|
-
const he = c((t) => !!t && typeof t == "object" && typeof t.removeListener == "function" && typeof t.emit == "function" && typeof t.reallyExit == "function" && typeof t.listeners == "function" && typeof t.kill == "function" && typeof t.pid == "number" && typeof t.on == "function", "processOk"),
|
|
8793
|
-
class
|
|
8792
|
+
const he = c((t) => !!t && typeof t == "object" && typeof t.removeListener == "function" && typeof t.emit == "function" && typeof t.reallyExit == "function" && typeof t.listeners == "function" && typeof t.kill == "function" && typeof t.pid == "number" && typeof t.on == "function", "processOk"), Je = Symbol.for("signal-exit emitter"), ze = globalThis, lo = Object.defineProperty.bind(Object);
|
|
8793
|
+
class uo {
|
|
8794
8794
|
static {
|
|
8795
8795
|
c(this, "Emitter");
|
|
8796
8796
|
}
|
|
@@ -8799,8 +8799,8 @@ class lo {
|
|
|
8799
8799
|
count = 0;
|
|
8800
8800
|
id = Math.random();
|
|
8801
8801
|
constructor() {
|
|
8802
|
-
if (ze[
|
|
8803
|
-
|
|
8802
|
+
if (ze[Je]) return ze[Je];
|
|
8803
|
+
lo(ze, Je, { value: this, writable: false, enumerable: false, configurable: false });
|
|
8804
8804
|
}
|
|
8805
8805
|
on(e, r) {
|
|
8806
8806
|
this.listeners[e].push(r);
|
|
@@ -8847,7 +8847,7 @@ class po extends En {
|
|
|
8847
8847
|
c(this, "SignalExit");
|
|
8848
8848
|
}
|
|
8849
8849
|
#o = Xe.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
8850
|
-
#e = new
|
|
8850
|
+
#e = new uo();
|
|
8851
8851
|
#t;
|
|
8852
8852
|
#i;
|
|
8853
8853
|
#s;
|
|
@@ -8861,8 +8861,8 @@ class po extends En {
|
|
|
8861
8861
|
const s = e;
|
|
8862
8862
|
if (typeof s.__signal_exit_emitter__ == "object" && typeof s.__signal_exit_emitter__.count == "number" && (i += s.__signal_exit_emitter__.count), n.length === i) {
|
|
8863
8863
|
this.unload();
|
|
8864
|
-
const a = this.#e.emit("exit", null, r),
|
|
8865
|
-
a || e.kill(e.pid,
|
|
8864
|
+
const a = this.#e.emit("exit", null, r), u = r === "SIGHUP" ? this.#o : r;
|
|
8865
|
+
a || e.kill(e.pid, u);
|
|
8866
8866
|
}
|
|
8867
8867
|
};
|
|
8868
8868
|
this.#s = e.reallyExit, this.#i = e.emit;
|
|
@@ -8930,8 +8930,8 @@ function go() {
|
|
|
8930
8930
|
return e.length == 0;
|
|
8931
8931
|
}
|
|
8932
8932
|
function s(a) {
|
|
8933
|
-
e = e.filter(function(
|
|
8934
|
-
return
|
|
8933
|
+
e = e.filter(function(u) {
|
|
8934
|
+
return u !== a;
|
|
8935
8935
|
}), !e.length && r.readable && r.end();
|
|
8936
8936
|
}
|
|
8937
8937
|
}, "mergeStream"), Ze;
|
|
@@ -8946,32 +8946,32 @@ const Eo = c((t) => {
|
|
|
8946
8946
|
}, "handleInputSync"), So = (async () => {
|
|
8947
8947
|
})().constructor.prototype;
|
|
8948
8948
|
["then", "catch", "finally"].map((t) => [t, Reflect.getOwnPropertyDescriptor(So, t)]);
|
|
8949
|
-
const In = c((t, e = []) => Array.isArray(e) ? [t, ...e] : [t], "normalizeArgs"), Ro = /^[\w.-]+$/, To = c((t) => typeof t != "string" || Ro.test(t) ? t : `"${t.replaceAll('"', '\\"')}"`, "escapeArg"), wo = c((t, e) => In(t, e).join(" "), "joinCommand"), Ao = c((t, e) => In(t, e).map((r) => To(r)).join(" "), "getEscapedCommand"),
|
|
8949
|
+
const In = c((t, e = []) => Array.isArray(e) ? [t, ...e] : [t], "normalizeArgs"), Ro = /^[\w.-]+$/, To = c((t) => typeof t != "string" || Ro.test(t) ? t : `"${t.replaceAll('"', '\\"')}"`, "escapeArg"), wo = c((t, e) => In(t, e).join(" "), "joinCommand"), Ao = c((t, e) => In(t, e).map((r) => To(r)).join(" "), "getEscapedCommand"), bo = node_util.debuglog("execa").enabled, de = c((t, e) => String(t).padStart(e, "0"), "padField"), yo = c(() => {
|
|
8950
8950
|
const t = /* @__PURE__ */ new Date();
|
|
8951
8951
|
return `${de(t.getHours(), 2)}:${de(t.getMinutes(), 2)}:${de(t.getSeconds(), 2)}.${de(t.getMilliseconds(), 3)}`;
|
|
8952
|
-
}, "getTimestamp"),
|
|
8953
|
-
e && y.stderr.write(`[${
|
|
8952
|
+
}, "getTimestamp"), Uo = c((t, { verbose: e }) => {
|
|
8953
|
+
e && y.stderr.write(`[${yo()}] ${t}
|
|
8954
8954
|
`);
|
|
8955
|
-
}, "logCommand"), vo = 1e3 * 1e3 * 100,
|
|
8955
|
+
}, "logCommand"), vo = 1e3 * 1e3 * 100, Co = c(({ env: t, extendEnv: e, preferLocal: r, localDir: n, execPath: i }) => {
|
|
8956
8956
|
const s = e ? { ...y.env, ...t } : t;
|
|
8957
|
-
return r ?
|
|
8957
|
+
return r ? Qs({ env: s, cwd: n, execPath: i }) : s;
|
|
8958
8958
|
}, "getEnv"), Bo = c((t, e, r = {}) => {
|
|
8959
|
-
const n =
|
|
8960
|
-
return t = n.command, e = n.args, r = n.options, r = { maxBuffer: vo, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: r.cwd || y.cwd(), execPath: y.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true, verbose:
|
|
8961
|
-
}, "handleArguments"), Sn = c((t, e, r) => typeof e != "string" && !node_buffer.Buffer.isBuffer(e) ? r === void 0 ? void 0 : "" : t.stripFinalNewline ?
|
|
8959
|
+
const n = Ws._parse(t, e, r);
|
|
8960
|
+
return t = n.command, e = n.args, r = n.options, r = { maxBuffer: vo, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: r.cwd || y.cwd(), execPath: y.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true, verbose: bo, ...r }, r.env = Co(r), r.stdio = co(r), y.platform === "win32" && path.basename(t, ".exe") === "cmd" && e.unshift("/q"), { file: t, args: e, options: r, parsed: n };
|
|
8961
|
+
}, "handleArguments"), Sn = c((t, e, r) => typeof e != "string" && !node_buffer.Buffer.isBuffer(e) ? r === void 0 ? void 0 : "" : t.stripFinalNewline ? Vs(e) : e, "handleOutput");
|
|
8962
8962
|
function tr(t, e, r) {
|
|
8963
8963
|
const n = Bo(t, e, r), i = wo(t, e), s = Ao(t, e);
|
|
8964
|
-
|
|
8964
|
+
Uo(s, n.options);
|
|
8965
8965
|
const a = Io(n.options);
|
|
8966
|
-
let
|
|
8966
|
+
let u;
|
|
8967
8967
|
try {
|
|
8968
|
-
|
|
8968
|
+
u = childProcess.spawnSync(n.file, n.args, { ...n.options, input: a });
|
|
8969
8969
|
} catch (g) {
|
|
8970
8970
|
throw gn({ error: g, stdout: "", stderr: "", all: "", command: i, escapedCommand: s, parsed: n, timedOut: false, isCanceled: false, killed: false });
|
|
8971
8971
|
}
|
|
8972
|
-
const h = Sn(n.options,
|
|
8973
|
-
if (
|
|
8974
|
-
const g = gn({ stdout: h, stderr: d, error:
|
|
8972
|
+
const h = Sn(n.options, u.stdout, u.error), d = Sn(n.options, u.stderr, u.error);
|
|
8973
|
+
if (u.error || u.status !== 0 || u.signal !== null) {
|
|
8974
|
+
const g = gn({ stdout: h, stderr: d, error: u.error, signal: u.signal, exitCode: u.status, command: i, escapedCommand: s, parsed: n, timedOut: u.error && u.error.code === "ETIMEDOUT", isCanceled: false, killed: u.signal !== null });
|
|
8975
8975
|
if (!n.options.reject) return g;
|
|
8976
8976
|
throw g;
|
|
8977
8977
|
}
|
|
@@ -9000,7 +9000,7 @@ function er(t) {
|
|
|
9000
9000
|
}
|
|
9001
9001
|
c(er, "branch");
|
|
9002
9002
|
const Rn = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/, Po = /^\/(.*)\.git$/;
|
|
9003
|
-
function
|
|
9003
|
+
function Lo(t) {
|
|
9004
9004
|
if (t) {
|
|
9005
9005
|
if (t.match(Rn)) return t.replace(Rn, "$1");
|
|
9006
9006
|
try {
|
|
@@ -9010,12 +9010,12 @@ function Oo(t) {
|
|
|
9010
9010
|
}
|
|
9011
9011
|
}
|
|
9012
9012
|
}
|
|
9013
|
-
c(
|
|
9014
|
-
var
|
|
9013
|
+
c(Lo, "getSlugFromGitURL");
|
|
9014
|
+
var Oo = { detect({ env: t }) {
|
|
9015
9015
|
return !!t.BUILDKITE;
|
|
9016
9016
|
}, configuration({ env: t }) {
|
|
9017
9017
|
const e = t.BUILDKITE_PULL_REQUEST === "false" ? void 0 : t.BUILDKITE_PULL_REQUEST, r = !!e;
|
|
9018
|
-
return { name: "Buildkite", service: "buildkite", build: t.BUILDKITE_BUILD_NUMBER, buildUrl: t.BUILDKITE_BUILD_URL, commit: t.BUILDKITE_COMMIT, tag: t.BUILDKITE_TAG, branch: r ? t.BUILDKITE_PULL_REQUEST_BASE_BRANCH : t.BUILDKITE_BRANCH, slug:
|
|
9018
|
+
return { name: "Buildkite", service: "buildkite", build: t.BUILDKITE_BUILD_NUMBER, buildUrl: t.BUILDKITE_BUILD_URL, commit: t.BUILDKITE_COMMIT, tag: t.BUILDKITE_TAG, branch: r ? t.BUILDKITE_PULL_REQUEST_BASE_BRANCH : t.BUILDKITE_BRANCH, slug: Lo(t.BUILDKITE_REPO), pr: e, isPr: r, prBranch: r ? t.BUILDKITE_BRANCH : void 0, root: t.BUILDKITE_BUILD_CHECKOUT_PATH };
|
|
9019
9019
|
} }, No = { detect({ env: t }) {
|
|
9020
9020
|
return !!t.CIRCLECI;
|
|
9021
9021
|
}, configuration({ env: t }) {
|
|
@@ -9023,12 +9023,12 @@ var Lo = { detect({ env: t }) {
|
|
|
9023
9023
|
return { name: "CircleCI", service: "circleci", build: t.CIRCLE_BUILD_NUM, buildUrl: t.CIRCLE_BUILD_URL, job: `${t.CIRCLE_BUILD_NUM}.${t.CIRCLE_NODE_INDEX}`, commit: t.CIRCLE_SHA1, tag: t.CIRCLE_TAG, branch: r ? void 0 : t.CIRCLE_BRANCH, pr: e, isPr: r, prBranch: r ? t.CIRCLE_BRANCH : void 0, slug: `${t.CIRCLE_PROJECT_USERNAME}/${t.CIRCLE_PROJECT_REPONAME}` };
|
|
9024
9024
|
} };
|
|
9025
9025
|
const Tn = "https://cirrus-ci.com";
|
|
9026
|
-
var
|
|
9026
|
+
var Do = { detect({ env: t }) {
|
|
9027
9027
|
return !!t.CIRRUS_CI;
|
|
9028
9028
|
}, configuration({ env: t }) {
|
|
9029
9029
|
const e = t.CIRRUS_PR, r = !!e;
|
|
9030
9030
|
return { name: "Cirrus CI", service: "cirrus", commit: t.CIRRUS_CHANGE_IN_REPO, tag: t.CIRRUS_TAG, build: t.CIRRUS_BUILD_ID, buildUrl: `${Tn}/build/${t.CIRRUS_BUILD_ID}`, job: t.CIRRUS_TASK_ID, jobUrl: `${Tn}/task/${t.CIRRUS_TASK_ID}`, branch: r ? t.CIRRUS_BASE_BRANCH : t.CIRRUS_BRANCH, pr: e, isPr: r, prBranch: r ? t.CIRRUS_BRANCH : void 0, slug: t.CIRRUS_REPO_FULL_NAME, root: t.CIRRUS_WORKING_DIR };
|
|
9031
|
-
} },
|
|
9031
|
+
} }, Mo = { detect({ env: t }) {
|
|
9032
9032
|
return t.CF_PAGES === "1";
|
|
9033
9033
|
}, configuration({ env: t }) {
|
|
9034
9034
|
return { name: "Cloudflare Pages", service: "cloudflarePages", commit: t.CF_PAGES_COMMIT_SHA, branch: t.CF_PAGES_BRANCH, root: t.PWD };
|
|
@@ -9036,12 +9036,12 @@ var Mo = { detect({ env: t }) {
|
|
|
9036
9036
|
return !!t.CODEBUILD_BUILD_ID;
|
|
9037
9037
|
}, configuration({ env: t, cwd: e }) {
|
|
9038
9038
|
return { name: "AWS CodeBuild", service: "codebuild", commit: pe({ env: t, cwd: e }), build: t.CODEBUILD_BUILD_ID, branch: er({ env: t, cwd: e }), buildUrl: `https://console.aws.amazon.com/codebuild/home?region=${t.AWS_REGION}#/builds/${t.CODEBUILD_BUILD_ID}/view/new`, root: t.PWD };
|
|
9039
|
-
} },
|
|
9039
|
+
} }, $o = { detect({ env: t }) {
|
|
9040
9040
|
return !!t.CF_BUILD_ID;
|
|
9041
9041
|
}, configuration({ env: t }) {
|
|
9042
9042
|
const e = t.CF_PULL_REQUEST_NUMBER, r = !!e;
|
|
9043
9043
|
return { name: "Codefresh", service: "codefresh", commit: t.CF_REVISION, build: t.CF_BUILD_ID, buildUrl: t.CF_BUILD_URL, branch: r ? t.CF_PULL_REQUEST_TARGET : t.CF_BRANCH, pr: e, isPr: r, prBranch: r ? t.CF_BRANCH : void 0, slug: `${t.CF_REPO_OWNER}/${t.CF_REPO_NAME}`, root: t.CF_VOLUME_PATH };
|
|
9044
|
-
} },
|
|
9044
|
+
} }, Go = { detect({ env: t }) {
|
|
9045
9045
|
return t.CI_NAME && t.CI_NAME === "codeship";
|
|
9046
9046
|
}, configuration({ env: t }) {
|
|
9047
9047
|
return { name: "Codeship", service: "codeship", build: t.CI_BUILD_NUMBER, buildUrl: t.CI_BUILD_URL, commit: t.CI_COMMIT_ID, branch: t.CI_BRANCH, slug: t.CI_REPO_NAME };
|
|
@@ -9064,17 +9064,17 @@ const jo = c(({ env: t }) => {
|
|
|
9064
9064
|
const e = t.GITHUB_EVENT_PATH ? JSON.parse(node_fs.readFileSync(t.GITHUB_EVENT_PATH, "utf-8")) : void 0;
|
|
9065
9065
|
return e && e.pull_request ? e.pull_request.number : void 0;
|
|
9066
9066
|
}, "getPrNumber");
|
|
9067
|
-
var
|
|
9067
|
+
var Wo = { detect({ env: t }) {
|
|
9068
9068
|
return !!t.GITHUB_ACTIONS;
|
|
9069
9069
|
}, configuration({ env: t, cwd: e }) {
|
|
9070
9070
|
const r = t.GITHUB_EVENT_NAME === "pull_request" || t.GITHUB_EVENT_NAME === "pull_request_target", n = ee(t.GITHUB_EVENT_NAME === "pull_request_target" ? `refs/pull/${Fo(t)}/merge` : t.GITHUB_REF);
|
|
9071
9071
|
return { name: "GitHub Actions", service: "github", commit: t.GITHUB_SHA, build: t.GITHUB_RUN_ID, buildUrl: `${t.GITHUB_SERVER_URL}/${t.GITHUB_REPOSITORY}/actions/runs/${t.GITHUB_RUN_ID}`, isPr: r, branch: n, prBranch: r ? n : void 0, slug: t.GITHUB_REPOSITORY, root: t.GITHUB_WORKSPACE, ...r ? jo({ env: t }) : void 0 };
|
|
9072
|
-
} },
|
|
9072
|
+
} }, Vo = { detect({ env: t }) {
|
|
9073
9073
|
return !!t.GITLAB_CI;
|
|
9074
9074
|
}, configuration({ env: t }) {
|
|
9075
9075
|
const e = t.CI_MERGE_REQUEST_ID, r = !!e;
|
|
9076
9076
|
return { name: "GitLab CI/CD", service: "gitlab", commit: t.CI_COMMIT_SHA, tag: t.CI_COMMIT_TAG, build: t.CI_PIPELINE_ID, buildUrl: `${t.CI_PROJECT_URL}/pipelines/${t.CI_PIPELINE_ID}`, job: t.CI_JOB_ID, jobUrl: `${t.CI_PROJECT_URL}/-/jobs/${t.CI_JOB_ID}`, branch: r ? t.CI_MERGE_REQUEST_TARGET_BRANCH_NAME : t.CI_COMMIT_REF_NAME, pr: e, isPr: r, prBranch: t.CI_MERGE_REQUEST_SOURCE_BRANCH_NAME, slug: t.CI_PROJECT_PATH, root: t.CI_PROJECT_DIR };
|
|
9077
|
-
} },
|
|
9077
|
+
} }, Ko = { detect({ env: t }) {
|
|
9078
9078
|
return !!t.JENKINS_URL;
|
|
9079
9079
|
}, configuration({ env: t, cwd: e }) {
|
|
9080
9080
|
const r = t.ghprbPullId || t.gitlabMergeRequestId || t.CHANGE_ID, n = !!r, i = t.GIT_LOCAL_BRANCH || t.GIT_BRANCH || t.gitlabBranch || t.BRANCH_NAME;
|
|
@@ -9088,12 +9088,12 @@ var Vo = { detect({ env: t }) {
|
|
|
9088
9088
|
return !!t.DISTELLI_APPNAME;
|
|
9089
9089
|
}, configuration({ env: t }) {
|
|
9090
9090
|
return { name: "Puppet", service: "puppet", build: t.DISTELLI_BUILDNUM, buildUrl: t.DISTELLI_RELEASE, commit: t.DISTELLI_RELREVISION, branch: t.DISTELLI_RELBRANCH, root: t.DISTELLI_INSTALLHOME };
|
|
9091
|
-
} },
|
|
9091
|
+
} }, Qo = { detect({ env: t }) {
|
|
9092
9092
|
return !!t.SAILCI;
|
|
9093
9093
|
}, configuration({ env: t }) {
|
|
9094
9094
|
const e = t.SAIL_PULL_REQUEST_NUMBER, r = !!e;
|
|
9095
9095
|
return { name: "Sail CI", service: "sail", commit: t.SAIL_COMMIT_SHA, branch: r ? void 0 : t.SAIL_COMMIT_BRANCH, pr: e, isPr: r, slug: `${t.SAIL_REPO_OWNER}/${t.SAIL_REPO_NAME}`, root: t.SAIL_CLONE_DIR };
|
|
9096
|
-
} },
|
|
9096
|
+
} }, Jo = { detect({ env: t }) {
|
|
9097
9097
|
return !!t.SCREWDRIVER;
|
|
9098
9098
|
}, configuration({ env: t }) {
|
|
9099
9099
|
const e = t.SD_PULL_REQUEST, r = !!e;
|
|
@@ -9117,7 +9117,7 @@ var Vo = { detect({ env: t }) {
|
|
|
9117
9117
|
function ta() {
|
|
9118
9118
|
if (wn) return Ht;
|
|
9119
9119
|
wn = 1, Object.defineProperty(Ht, "__esModule", { value: true }), Ht.of = Ht.PropertiesFile = void 0;
|
|
9120
|
-
var t = e(
|
|
9120
|
+
var t = e(Wt);
|
|
9121
9121
|
function e(i) {
|
|
9122
9122
|
return i && i.__esModule ? i : { default: i };
|
|
9123
9123
|
}
|
|
@@ -9131,7 +9131,7 @@ function ta() {
|
|
|
9131
9131
|
}
|
|
9132
9132
|
makeKeys(s) {
|
|
9133
9133
|
if (s && s.indexOf("#") !== 0) {
|
|
9134
|
-
let a = ["=", ":"].map((g) => s.indexOf(g)).filter((g) => g > -1),
|
|
9134
|
+
let a = ["=", ":"].map((g) => s.indexOf(g)).filter((g) => g > -1), u = Math.min(...a), h = s.substring(0, u).trim(), d = s.substring(u + 1).trim();
|
|
9135
9135
|
if (this.objs.hasOwnProperty(h)) if (Array.isArray(this.objs[h])) this.objs[h].push(d);
|
|
9136
9136
|
else {
|
|
9137
9137
|
let g = this.objs[h];
|
|
@@ -9144,12 +9144,12 @@ function ta() {
|
|
|
9144
9144
|
}
|
|
9145
9145
|
}
|
|
9146
9146
|
addFile(s) {
|
|
9147
|
-
let
|
|
9148
|
-
for (let d = 0; d <
|
|
9149
|
-
let g =
|
|
9147
|
+
let u = t.default.readFileSync(s, "utf-8").split(/\r?\n/), h = this;
|
|
9148
|
+
for (let d = 0; d < u.length; d++) {
|
|
9149
|
+
let g = u[d];
|
|
9150
9150
|
for (; g.substring(g.length - 1) === "\\"; ) {
|
|
9151
9151
|
g = g.slice(0, -1);
|
|
9152
|
-
let w =
|
|
9152
|
+
let w = u[d + 1];
|
|
9153
9153
|
g = g + w.trim(), d++;
|
|
9154
9154
|
}
|
|
9155
9155
|
h.makeKeys(g);
|
|
@@ -9160,16 +9160,16 @@ function ta() {
|
|
|
9160
9160
|
}
|
|
9161
9161
|
get(s, a) {
|
|
9162
9162
|
if (this.objs.hasOwnProperty(s)) if (Array.isArray(this.objs[s])) {
|
|
9163
|
-
let
|
|
9164
|
-
for (let h = 0; h < this.objs[s].length; h++)
|
|
9165
|
-
return
|
|
9163
|
+
let u = [];
|
|
9164
|
+
for (let h = 0; h < this.objs[s].length; h++) u[h] = this.interpolate(this.objs[s][h]);
|
|
9165
|
+
return u;
|
|
9166
9166
|
} else return typeof this.objs[s] > "u" ? "" : this.interpolate(this.objs[s]);
|
|
9167
9167
|
return a;
|
|
9168
9168
|
}
|
|
9169
9169
|
getLast(s, a) {
|
|
9170
9170
|
if (this.objs.hasOwnProperty(s)) if (Array.isArray(this.objs[s])) {
|
|
9171
|
-
var
|
|
9172
|
-
return this.interpolate(this.objs[s][
|
|
9171
|
+
var u = this.objs[s].length;
|
|
9172
|
+
return this.interpolate(this.objs[s][u - 1]);
|
|
9173
9173
|
} else return typeof this.objs[s] > "u" ? "" : this.interpolate(this.objs[s]);
|
|
9174
9174
|
return a;
|
|
9175
9175
|
}
|
|
@@ -9177,28 +9177,28 @@ function ta() {
|
|
|
9177
9177
|
return this.objs.hasOwnProperty(s) ? Array.isArray(this.objs[s]) ? this.interpolate(this.objs[s][0]) : typeof this.objs[s] > "u" ? "" : this.interpolate(this.objs[s]) : a;
|
|
9178
9178
|
}
|
|
9179
9179
|
getInt(s, a) {
|
|
9180
|
-
let
|
|
9181
|
-
return
|
|
9180
|
+
let u = this.getLast(s);
|
|
9181
|
+
return u ? parseInt(u, 10) : a;
|
|
9182
9182
|
}
|
|
9183
9183
|
getFloat(s, a) {
|
|
9184
|
-
let
|
|
9185
|
-
return
|
|
9184
|
+
let u = this.getLast(s);
|
|
9185
|
+
return u ? parseFloat(u) : a;
|
|
9186
9186
|
}
|
|
9187
9187
|
getBoolean(s, a) {
|
|
9188
|
-
function
|
|
9188
|
+
function u(d) {
|
|
9189
9189
|
return !/^(false|0)$/i.test(d) && !!d;
|
|
9190
9190
|
}
|
|
9191
|
-
c(
|
|
9191
|
+
c(u, "parseBool");
|
|
9192
9192
|
let h = this.getLast(s);
|
|
9193
|
-
return h ?
|
|
9193
|
+
return h ? u(h) : a || false;
|
|
9194
9194
|
}
|
|
9195
9195
|
set(s, a) {
|
|
9196
9196
|
this.objs[s] = a;
|
|
9197
9197
|
}
|
|
9198
9198
|
interpolate(s) {
|
|
9199
9199
|
let a = this;
|
|
9200
|
-
return s.replace(/\\\\/g, "\\").replace(/\$\{([A-Za-z0-9\.\-\_]*)\}/g, function(
|
|
9201
|
-
return a.getLast(
|
|
9200
|
+
return s.replace(/\\\\/g, "\\").replace(/\$\{([A-Za-z0-9\.\-\_]*)\}/g, function(u) {
|
|
9201
|
+
return a.getLast(u.substring(2, u.length - 1));
|
|
9202
9202
|
});
|
|
9203
9203
|
}
|
|
9204
9204
|
getKeys() {
|
|
@@ -9208,7 +9208,7 @@ function ta() {
|
|
|
9208
9208
|
}
|
|
9209
9209
|
getMatchingKeys(s) {
|
|
9210
9210
|
let a = [];
|
|
9211
|
-
for (let
|
|
9211
|
+
for (let u in this.objs) u.search(s) !== -1 && a.push(u);
|
|
9212
9212
|
return a;
|
|
9213
9213
|
}
|
|
9214
9214
|
reset() {
|
|
@@ -9223,7 +9223,7 @@ function ta() {
|
|
|
9223
9223
|
return Ht.of = n, Ht;
|
|
9224
9224
|
}
|
|
9225
9225
|
c(ta, "requireDistNode");
|
|
9226
|
-
var ea = ta(), ra =
|
|
9226
|
+
var ea = ta(), ra = Cr(ea);
|
|
9227
9227
|
const rr = { root: "teamcity.build.workingDir", branch: "teamcity.build.branch" }, An = c((t) => {
|
|
9228
9228
|
try {
|
|
9229
9229
|
return ra.of(t);
|
|
@@ -9257,18 +9257,18 @@ var ia = { detect({ env: t }) {
|
|
|
9257
9257
|
return !!t.WERCKER_MAIN_PIPELINE_STARTED;
|
|
9258
9258
|
}, configuration({ env: t }) {
|
|
9259
9259
|
return { name: "Wercker", service: "wercker", commit: t.WERCKER_GIT_COMMIT, build: t.WERCKER_MAIN_PIPELINE_STARTED, buildUrl: t.WERCKER_RUN_URL, branch: t.WERCKER_GIT_BRANCH, slug: `${t.WERCKER_GIT_OWNER}/${t.WERCKER_GIT_REPOSITORY}`, root: t.WERCKER_ROOT };
|
|
9260
|
-
} },
|
|
9260
|
+
} }, la = { detect({ env: t }) {
|
|
9261
9261
|
return t.CI && t.CI === "woodpecker";
|
|
9262
9262
|
}, configuration({ env: t }) {
|
|
9263
9263
|
const e = t.CI_PIPELINE_EVENT === "pull_request";
|
|
9264
9264
|
return { name: "Woodpecker CI", service: "woodpecker", commit: t.CI_COMMIT_SHA, tag: t.CI_COMMIT_TAG, build: t.CI_PIPELINE_NUMBER, buildUrl: t.CI_PIPELINE_URL, branch: e ? t.CI_COMMIT_TARGET_BRANCH : t.CI_COMMIT_BRANCH, job: t.CI_STEP_NUMBER, jobUrl: t.CI_STEP_URL, pr: t.CI_COMMIT_PULL_REQUEST, isPr: e, prBranch: e ? t.CI_COMMIT_SOURCE_BRANCH : void 0, slug: `${t.CI_REPO_OWNER}/${t.CI_REPO_NAME}`, root: t.CI_WORKSPACE };
|
|
9265
|
-
} },
|
|
9265
|
+
} }, ua = { detect({ env: t }) {
|
|
9266
9266
|
return !!t.JB_SPACE_EXECUTION_NUMBER;
|
|
9267
9267
|
}, configuration({ env: t }) {
|
|
9268
9268
|
const e = t.JB_SPACE_PROJECT_KEY, r = t.JB_SPACE_GIT_REPOSITORY_NAME;
|
|
9269
9269
|
return { name: "JetBrains Space", service: "jetbrainsSpace", commit: t.JB_SPACE_GIT_REVISION, build: t.JB_SPACE_EXECUTION_NUMBER, branch: ee(t.JB_SPACE_GIT_BRANCH), slug: e && r ? `${e.toLowerCase()}/${r}` : void 0 };
|
|
9270
9270
|
} };
|
|
9271
|
-
const nr = { appveyor: As, azurePipelines:
|
|
9271
|
+
const nr = { appveyor: As, azurePipelines: bs, bamboo: ys, bitbucket: Us, bitrise: vs, buddy: Cs, buildkite: Oo, circleci: No, cirrus: Do, cloudflarePages: Mo, codebuild: xo, codefresh: $o, codeship: Go, drone: Ho, github: Wo, gitlab: Vo, jenkins: Ko, netlify: qo, puppet: Yo, sail: Qo, screwdriver: Jo, scrutinizer: zo, semaphore: Xo, shippable: Zo, teamcity: ia, travis: sa, vela: oa, vercel: aa, wercker: ca, woodpecker: la, jetbrainsSpace: ua };
|
|
9272
9272
|
var ir = c(({ env: t = process.env, cwd: e = process.cwd() } = {}) => {
|
|
9273
9273
|
for (const r of Object.keys(nr)) if (nr[r].detect({ env: t, cwd: e })) return { isCi: true, ...nr[r].configuration({ env: t, cwd: e }) };
|
|
9274
9274
|
return { isCi: !!t.CI, ...ko.configuration({ env: t, cwd: e }) };
|
|
@@ -9283,7 +9283,7 @@ function da() {
|
|
|
9283
9283
|
try {
|
|
9284
9284
|
const t = process.env.GITHUB_EVENT_PATH;
|
|
9285
9285
|
if (t) {
|
|
9286
|
-
const e = JSON.parse(
|
|
9286
|
+
const e = JSON.parse(Wt.readFileSync(t, "utf-8"));
|
|
9287
9287
|
if (e.pull_request) return { author: e.pull_request.user.login, number: e.pull_request.number, title: e.pull_request.title };
|
|
9288
9288
|
}
|
|
9289
9289
|
return;
|
|
@@ -9304,7 +9304,7 @@ function ma() {
|
|
|
9304
9304
|
return { hostname: Ee.hostname(), platform: Ee.platform() };
|
|
9305
9305
|
}
|
|
9306
9306
|
c(ma, "getMachineInfo");
|
|
9307
|
-
class
|
|
9307
|
+
class bn {
|
|
9308
9308
|
static {
|
|
9309
9309
|
c(this, "PendingPromiseTracker");
|
|
9310
9310
|
}
|
|
@@ -9339,44 +9339,54 @@ class yn {
|
|
|
9339
9339
|
}
|
|
9340
9340
|
}
|
|
9341
9341
|
function ga({ result: t, sensitiveValues: e }) {
|
|
9342
|
-
return t.steps.map((r) =>
|
|
9342
|
+
return t.steps.map((r) => yn({ sensitiveValues: e, step: r }));
|
|
9343
9343
|
}
|
|
9344
9344
|
c(ga, "extractSteps");
|
|
9345
|
-
function
|
|
9345
|
+
function yn({ sensitiveValues: t, step: e }) {
|
|
9346
9346
|
const r = c((n) => n && t?.length ? ot({ sensitiveValues: t, str: n }) : n, "scrub");
|
|
9347
|
-
return { category: e.category, duration: e.duration, error: e.error ? { message: r(e.error.message) || "Unknown error", stack: r(e.error.stack) } : void 0, location: e.location ? { column: e.location.column, file: e.location.file, line: e.location.line } : void 0, startedAt: new Date(e.startTime), steps: e.steps && e.steps.length > 0 ? e.steps.map((n) =>
|
|
9347
|
+
return { category: e.category, duration: e.duration, error: e.error ? { message: r(e.error.message) || "Unknown error", stack: r(e.error.stack) } : void 0, location: e.location ? { column: e.location.column, file: e.location.file, line: e.location.line } : void 0, startedAt: new Date(e.startTime), steps: e.steps && e.steps.length > 0 ? e.steps.map((n) => yn({ sensitiveValues: t, step: n })) : void 0, title: r(e.title) ?? e.title };
|
|
9348
9348
|
}
|
|
9349
|
-
c(
|
|
9349
|
+
c(yn, "extractStep");
|
|
9350
9350
|
class Ea {
|
|
9351
9351
|
static {
|
|
9352
9352
|
c(this, "UploadUrlWaitQueue");
|
|
9353
9353
|
}
|
|
9354
9354
|
waiters = /* @__PURE__ */ new Map();
|
|
9355
9355
|
bufferedMessages = /* @__PURE__ */ new Map();
|
|
9356
|
-
|
|
9357
|
-
|
|
9358
|
-
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
-
|
|
9362
|
-
}), i = this.bufferedMessages.get(e);
|
|
9363
|
-
return i !== void 0 ? (this.bufferedMessages.delete(e), this.resolveWait(e), { bufferedMessage: i, waitPromise: n }) : { waitPromise: n };
|
|
9356
|
+
abandonedWaits = /* @__PURE__ */ new Set();
|
|
9357
|
+
registerWait(e) {
|
|
9358
|
+
const r = new Promise((i) => {
|
|
9359
|
+
this.waiters.set(e, { resolve: i });
|
|
9360
|
+
}), n = this.bufferedMessages.get(e);
|
|
9361
|
+
return n !== void 0 ? (this.bufferedMessages.delete(e), this.resolveWait(e), { bufferedMessage: n, waitPromise: r }) : { waitPromise: r };
|
|
9364
9362
|
}
|
|
9365
9363
|
resolveOrBuffer(e, r) {
|
|
9364
|
+
if (this.abandonedWaits.has(e)) return false;
|
|
9366
9365
|
const n = this.waiters.get(e);
|
|
9367
|
-
return n ? (
|
|
9366
|
+
return n ? (n.resolve(), this.waiters.delete(e), this.bufferedMessages.delete(e), true) : (this.bufferedMessages.set(e, r), false);
|
|
9368
9367
|
}
|
|
9369
9368
|
resolveWait(e) {
|
|
9370
9369
|
const r = this.waiters.get(e);
|
|
9371
|
-
return r ? (
|
|
9370
|
+
return r ? (r.resolve(), this.waiters.delete(e), true) : false;
|
|
9372
9371
|
}
|
|
9373
|
-
|
|
9374
|
-
const
|
|
9375
|
-
return
|
|
9372
|
+
abandonWait(e) {
|
|
9373
|
+
const r = this.waiters.get(e);
|
|
9374
|
+
return r ? (r.resolve(), this.waiters.delete(e), this.abandonedWaits.add(e), true) : false;
|
|
9375
|
+
}
|
|
9376
|
+
abandonAllWaits() {
|
|
9377
|
+
const e = [];
|
|
9378
|
+
for (const [r, n] of this.waiters) n.resolve(), this.abandonedWaits.add(r), e.push(r);
|
|
9379
|
+
return this.waiters.clear(), e;
|
|
9380
|
+
}
|
|
9381
|
+
hasAbandonedWait(e) {
|
|
9382
|
+
return this.abandonedWaits.has(e);
|
|
9383
|
+
}
|
|
9384
|
+
clearAbandonedWait(e) {
|
|
9385
|
+
this.abandonedWaits.delete(e);
|
|
9376
9386
|
}
|
|
9377
9387
|
}
|
|
9378
9388
|
async function _a({ fileData: t, maxRetries: e = 3, requestTimeoutMs: r = 6e4, uploadUrl: n }) {
|
|
9379
|
-
await
|
|
9389
|
+
await Kn(async () => {
|
|
9380
9390
|
const i = new AbortController(), s = setTimeout(() => i.abort(), r);
|
|
9381
9391
|
let a;
|
|
9382
9392
|
try {
|
|
@@ -9384,16 +9394,16 @@ async function _a({ fileData: t, maxRetries: e = 3, requestTimeoutMs: r = 6e4, u
|
|
|
9384
9394
|
} finally {
|
|
9385
9395
|
clearTimeout(s);
|
|
9386
9396
|
}
|
|
9387
|
-
if (!a.ok)
|
|
9397
|
+
if (!a.ok) {
|
|
9398
|
+
const u = (await a.text()).trim(), h = u.length > 0 ? `${a.status}: ${a.statusText} - ${u}` : `${a.status}: ${a.statusText}`;
|
|
9399
|
+
throw console.error(`[StablyAI reporter] Upload request failed: ${h}`), a.status >= 400 && a.status < 500 ? new pRetryExports.AbortError(`Upload failed with status ${h}`) : new Error(`Upload failed with status ${h}`);
|
|
9400
|
+
}
|
|
9388
9401
|
}, { minTimeout: 2e3, randomize: true, retries: e });
|
|
9389
9402
|
}
|
|
9390
9403
|
c(_a, "uploadWithRetry");
|
|
9391
|
-
const Ia = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", Sa =
|
|
9392
|
-
const r = [...new Set(e.allTests().map((n) => n.parent.project()?.name).filter((n) => !!n))];
|
|
9393
|
-
if (r.length > 0)
|
|
9394
|
-
const n = r.join(", ");
|
|
9395
|
-
return n.length <= ya ? n : `${r[0]} + ${r.length - 1} more`;
|
|
9396
|
-
}
|
|
9404
|
+
const Ia = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", Sa = 300 * 1e3, Un = 3e4, Ra = 300 * 1e3, Ta = Number(process.env.STABLY_UPLOAD_REQUEST_TIMEOUT_MS) || 300 * 1e3, wa = [3e4, 6e4, 12e4, 3e5], Aa = process.env.STABLY_API_URL ?? "https://api.stably.ai", ba = c(({ gitInfo: t, suite: e }) => {
|
|
9405
|
+
const r = [...new Set(e.allTests().map((n) => n.parent.project()?.name).filter((n) => !!n))].sort((n, i) => n.localeCompare(i, "en"));
|
|
9406
|
+
if (r.length > 0) return r.join(", ");
|
|
9397
9407
|
if (t.isCI && t.ciServiceName && t.ciBuild) return `${t.ciServiceName} #${t.ciBuild}`;
|
|
9398
9408
|
try {
|
|
9399
9409
|
const { username: n } = Ee.userInfo();
|
|
@@ -9404,11 +9414,11 @@ const Ia = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", Sa = 120
|
|
|
9404
9414
|
} catch {
|
|
9405
9415
|
}
|
|
9406
9416
|
return "Playwright Test Suite";
|
|
9407
|
-
}, "generateRunName"),
|
|
9417
|
+
}, "generateRunName"), ya = c(({ notificationConfigs: t, suite: e }) => {
|
|
9408
9418
|
if (!t || t.length === 0) return;
|
|
9409
9419
|
const r = new Set(e.allTests().map((i) => i.parent.project()?.name).filter(Boolean)), n = t.filter((i) => r.has(i.projectName));
|
|
9410
9420
|
return n.length > 0 ? n : void 0;
|
|
9411
|
-
}, "filterNotificationConfigsByRunningProjects"),
|
|
9421
|
+
}, "filterNotificationConfigsByRunningProjects"), Ua = c((t) => [...new Set(t.allTests().map((e) => e.parent.project()?.name).filter((e) => !!e))].sort((e, r) => e.localeCompare(r, "en")), "getRunningProjectNames"), va = c((t) => t ? { configFile: t.configFile, forbidOnly: t.forbidOnly, fullyParallel: t.fullyParallel, globalSetup: t.globalSetup, globalTeardown: t.globalTeardown, globalTimeout: t.globalTimeout, grep: t.grep?.toString(), grepInvert: t.grepInvert?.toString(), maxFailures: t.maxFailures, metadata: t.metadata, preserveOutput: t.preserveOutput, quiet: t.quiet, reporter: t.reporter, reportSlowTests: t.reportSlowTests, rootDir: t.rootDir, shard: t.shard, updateSnapshots: t.updateSnapshots, version: t.version, webServer: t.webServer, workers: t.workers } : void 0, "extractConfigInfo"), me = c((t) => t?.shard?.current, "getShardIndex"), sr = c(({ absolutePath: t, rootDir: e }) => {
|
|
9412
9422
|
if (e && t.startsWith(e)) {
|
|
9413
9423
|
const r = t.slice(e.length);
|
|
9414
9424
|
return r.startsWith("/") ? r.slice(1) : r;
|
|
@@ -9424,8 +9434,8 @@ class vn {
|
|
|
9424
9434
|
projectId;
|
|
9425
9435
|
source;
|
|
9426
9436
|
cliVersion;
|
|
9427
|
-
pendingOperations = new
|
|
9428
|
-
pendingUploads = new
|
|
9437
|
+
pendingOperations = new bn();
|
|
9438
|
+
pendingUploads = new bn();
|
|
9429
9439
|
testSuiteRunId = "";
|
|
9430
9440
|
createdSuiteRun;
|
|
9431
9441
|
suiteData;
|
|
@@ -9435,6 +9445,7 @@ class vn {
|
|
|
9435
9445
|
isListMode = false;
|
|
9436
9446
|
config;
|
|
9437
9447
|
skipSuiteReporting;
|
|
9448
|
+
suiteName;
|
|
9438
9449
|
notificationConfigs;
|
|
9439
9450
|
sensitiveValues;
|
|
9440
9451
|
filteredNotificationConfigs;
|
|
@@ -9444,33 +9455,39 @@ class vn {
|
|
|
9444
9455
|
pendingQueuedSpecs;
|
|
9445
9456
|
attachmentFiles = /* @__PURE__ */ new Map();
|
|
9446
9457
|
uploadUrlWaitQueue = new Ea();
|
|
9458
|
+
uploadUrlWaitLogState = /* @__PURE__ */ new Map();
|
|
9447
9459
|
constructor(e) {
|
|
9448
9460
|
const r = e?.apiKey ?? process.env.STABLY_API_KEY, n = e?.projectId ?? process.env.STABLY_PROJECT_ID, i = e?.source ?? process.env.STABLY_SOURCE, s = e?.cliVersion ?? process.env.STABLY_CLI_VERSION;
|
|
9449
9461
|
if (!r) throw new Error("STABLY_API_KEY is required. Provide it via options or environment variable.");
|
|
9450
9462
|
if (!n) throw new Error("STABLY_PROJECT_ID is required. Provide it via options or environment variable.");
|
|
9451
|
-
if (this.apiKey = r, this.projectId = n, this.source = i, this.cliVersion = s, this.notificationConfigs = e?.notificationConfigs, this.skipSuiteReporting = process.env.STABLY_INTERNAL_DISABLE_REPORTING === "1", e?.sensitiveValues?.length) {
|
|
9452
|
-
const a =
|
|
9453
|
-
this.sensitiveValues = [...a].sort((
|
|
9463
|
+
if (this.apiKey = r, this.projectId = n, this.source = i, this.cliVersion = s, this.suiteName = e?.suiteName, this.notificationConfigs = e?.notificationConfigs, this.skipSuiteReporting = process.env.STABLY_INTERNAL_DISABLE_REPORTING === "1", e?.sensitiveValues?.length) {
|
|
9464
|
+
const a = Vr(e.sensitiveValues);
|
|
9465
|
+
this.sensitiveValues = [...a].sort((u, h) => h.length - u.length);
|
|
9454
9466
|
}
|
|
9455
9467
|
this.wsClient = new ws({ apiKey: r, cliVersion: s, maxBufferSize: 1e3, maxReconnectAttempts: 3, onError: c((a) => this.handleWebSocketError(a), "onError"), onMessage: c((a) => this.handleWebSocketMessage(a), "onMessage"), projectId: n, reconnectDelay: 2e3, source: i, url: Ia });
|
|
9456
9468
|
}
|
|
9457
9469
|
handleUploadUrlsMessage(e) {
|
|
9458
|
-
const r = `${e.testId}-${e.attemptNumber}
|
|
9459
|
-
if (
|
|
9460
|
-
|
|
9461
|
-
|
|
9470
|
+
const r = `${e.testId}-${e.attemptNumber}`, n = this.clearUploadUrlWaitLogging(r), i = this.uploadUrlWaitQueue.hasAbandonedWait(r), s = this.uploadUrlWaitQueue.resolveOrBuffer(r, e);
|
|
9471
|
+
if (i) this.uploadUrlWaitQueue.clearAbandonedWait(r), console.warn(`[StablyAI reporter] Received upload_urls for test ${e.testId} attempt ${e.attemptNumber} after the reporter stopped waiting during shutdown (${e.uploadUrls.length} attachment(s)); continuing uploads`);
|
|
9472
|
+
else if (!s) {
|
|
9473
|
+
console.info(`[StablyAI reporter] Received upload_urls before wait registration for test ${e.testId} attempt ${e.attemptNumber} (${e.uploadUrls.length} attachment(s))`);
|
|
9474
|
+
return;
|
|
9475
|
+
}
|
|
9476
|
+
n !== void 0 && console.info(`[StablyAI reporter] Received upload_urls for test ${e.testId} attempt ${e.attemptNumber} after ${n}ms (${e.uploadUrls.length} attachment(s))`);
|
|
9477
|
+
const a = this.uploadAttachments({ attemptNumber: e.attemptNumber, testId: e.testId, uploadUrls: e.uploadUrls });
|
|
9478
|
+
this.pendingUploads.track(a);
|
|
9462
9479
|
}
|
|
9463
9480
|
onBegin(e, r) {
|
|
9464
9481
|
if (this.isListMode = process.argv.includes("--list"), this.isListMode || (r.allTests().length === 0 && process.exit(1), this.config = e, this.testSuiteRunId = this.getSuiteRunId(e), this.rootDir = e.rootDir, this.suite = r, this.skipSuiteReporting)) return;
|
|
9465
9482
|
this.suiteData = this.extractSuiteInfo(e, r);
|
|
9466
|
-
const i =
|
|
9483
|
+
const i = ya({ notificationConfigs: this.notificationConfigs, suite: r });
|
|
9467
9484
|
this.filteredNotificationConfigs = i;
|
|
9468
9485
|
const s = { ...this.suiteData, notificationRequest: i ? { notificationConfigs: i, shardIndex: me(this.config), totalShards: this.config?.shard?.total } : void 0, shardIndex: me(this.config), shardTotal: this.config?.shard?.total, status: "running" };
|
|
9469
9486
|
try {
|
|
9470
|
-
const d = require$$7.fileURLToPath(new URL("./create-suite.mjs", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-
|
|
9487
|
+
const d = require$$7.fileURLToPath(new URL("./create-suite.mjs", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-CdLJi9uc.cjs', document.baseURI).href)))), g = JSON.stringify({ apiBaseUrl: Aa, apiKey: this.apiKey, body: s, cliVersion: this.cliVersion, projectId: this.projectId, source: this.source, timeoutMs: Un }), w = require$$0$2.spawnSync(process.execPath, [d], { encoding: "utf-8", input: g, stdio: ["pipe", "pipe", "pipe"], timeout: Un + 5e3 });
|
|
9471
9488
|
if (w.status === 2 && (console.error(it.bold(it.red("[StablyAI reporter] Could not authenticate with the server. Either the API Key or Project ID is invalid. These can be provided via stablyReporter({ apiKey, projectId }) in playwright.config.ts or environment variables (STABLY_API_KEY, STABLY_PROJECT_ID). You can find your API key and Project ID at https://app.stably.ai/settings?tab=api-key"))), process.exit(1)), w.status !== 0) {
|
|
9472
|
-
const
|
|
9473
|
-
throw new Error(
|
|
9489
|
+
const U = w.stderr?.trim() || w.error?.message || "Unknown error";
|
|
9490
|
+
throw new Error(U);
|
|
9474
9491
|
}
|
|
9475
9492
|
this.createdSuiteRun = JSON.parse(w.stdout.trim()), console.log(it.cyan(`\u{1F4CA} View live results: ${it.bold(it.underline(this.createdSuiteRun.url))}
|
|
9476
9493
|
`));
|
|
@@ -9478,14 +9495,14 @@ class vn {
|
|
|
9478
9495
|
const g = d instanceof Error ? d.message : String(d);
|
|
9479
9496
|
console.warn(it.yellow(`[StablyAI reporter] Could not create suite before tests started: ${g}. Results will still be reported, but the results URL won't be available until tests complete.`)), this.pendingOperations.track(this.wsClient.sendEvent({ payload: s, type: "suite_start" }));
|
|
9480
9497
|
}
|
|
9481
|
-
const a = r.allTests(),
|
|
9498
|
+
const a = r.allTests(), u = /* @__PURE__ */ new Map();
|
|
9482
9499
|
for (const d of a) {
|
|
9483
9500
|
const g = Yt();
|
|
9484
9501
|
this.testIdMap.set(d.id, g);
|
|
9485
|
-
const w = d.parent.project(),
|
|
9486
|
-
|
|
9502
|
+
const w = d.parent.project(), U = sr({ absolutePath: d.location.file, rootDir: this.rootDir }), v = { annotations: d.annotations.length > 0 ? d.annotations.map((M) => ({ description: M.description, type: M.type })) : void 0, attemptNumber: 1, browserName: w?.use?.defaultBrowserType, expectedStatus: d.expectedStatus === "skipped" ? "skipped" : "passed", fullTitle: this.scrubSensitiveString(d.titlePath().join(" \u203A ")) ?? "", location: `${U}:${d.location.line}:${d.location.column}`, maxRetries: d.retries, projectName: w?.name, tags: d.tags.length > 0 ? d.tags : void 0, testIdentifier: d.id, title: this.scrubSensitiveString(d.title) ?? d.title }, D = u.get(U);
|
|
9503
|
+
D ? D.push(v) : u.set(U, [v]);
|
|
9487
9504
|
}
|
|
9488
|
-
const h = Array.from(
|
|
9505
|
+
const h = Array.from(u.entries()).map(([d, g]) => ({ filePath: d, tests: g }));
|
|
9489
9506
|
this.createdSuiteRun ? this.pendingOperations.track(this.wsClient.sendEvent({ payload: { specs: h, suiteId: this.testSuiteRunId }, type: "tests_queued" })) : this.pendingQueuedSpecs = h;
|
|
9490
9507
|
}
|
|
9491
9508
|
getSuiteRunId(e) {
|
|
@@ -9502,17 +9519,17 @@ class vn {
|
|
|
9502
9519
|
const n = this.extractTestCaseInfo(e, r);
|
|
9503
9520
|
this.testCases.push(n), this.testStepsMap.set(n.id, r);
|
|
9504
9521
|
const i = ga({ result: r, sensitiveValues: this.sensitiveValues }), s = [...r.attachments, { contentType: "text/plain", name: "source-code", path: e.location.file }], a = (async () => {
|
|
9505
|
-
const
|
|
9522
|
+
const u = await this.extractAttachmentMetadata({ attachments: s, attemptNumber: n.attemptNumber, testId: n.id });
|
|
9506
9523
|
let h, d;
|
|
9507
|
-
if (
|
|
9524
|
+
if (u.length > 0) {
|
|
9508
9525
|
h = `${n.id}-${n.attemptNumber}`;
|
|
9509
|
-
const { bufferedMessage: g, waitPromise: w } = this.uploadUrlWaitQueue.registerWait(h
|
|
9510
|
-
d = w, g
|
|
9526
|
+
const { bufferedMessage: g, waitPromise: w } = this.uploadUrlWaitQueue.registerWait(h);
|
|
9527
|
+
d = w, g ? this.handleUploadUrlsMessage(g) : this.startUploadUrlWaitLogging({ attachmentCount: u.length, attemptNumber: n.attemptNumber, testId: n.id, uploadUrlKey: h }), this.pendingOperations.track(d);
|
|
9511
9528
|
}
|
|
9512
9529
|
try {
|
|
9513
|
-
await this.wsClient.sendEvent({ payload: { ...n, attachments:
|
|
9530
|
+
await this.wsClient.sendEvent({ payload: { ...n, attachments: u, steps: i }, type: "test_end" });
|
|
9514
9531
|
} catch (g) {
|
|
9515
|
-
throw h && d && this.uploadUrlWaitQueue.resolveWait(h), g;
|
|
9532
|
+
throw h && d && (this.clearUploadUrlWaitLogging(h), this.uploadUrlWaitQueue.resolveWait(h)), g;
|
|
9516
9533
|
}
|
|
9517
9534
|
})();
|
|
9518
9535
|
this.pendingOperations.track(a);
|
|
@@ -9529,8 +9546,8 @@ class vn {
|
|
|
9529
9546
|
if (this.completedTestIds.has(d.id)) continue;
|
|
9530
9547
|
const g = this.testIdMap.get(d.id);
|
|
9531
9548
|
if (!g) continue;
|
|
9532
|
-
const w = d.parent.project(),
|
|
9533
|
-
this.pendingOperations.track(this.wsClient.sendEvent({ payload: { annotations: d.annotations.length > 0 ? d.annotations : void 0, attemptNumber: 1, browserName: w?.use?.defaultBrowserType, duration: 0, expectedStatus: d.expectedStatus, fullTitle: this.scrubSensitiveString(d.titlePath().join(" \u203A ")) ?? "", id: g, location: `${
|
|
9549
|
+
const w = d.parent.project(), U = sr({ absolutePath: d.location.file, rootDir: this.rootDir });
|
|
9550
|
+
this.pendingOperations.track(this.wsClient.sendEvent({ payload: { annotations: d.annotations.length > 0 ? d.annotations : void 0, attemptNumber: 1, browserName: w?.use?.defaultBrowserType, duration: 0, expectedStatus: d.expectedStatus, fullTitle: this.scrubSensitiveString(d.titlePath().join(" \u203A ")) ?? "", id: g, location: `${U}:${d.location.line}:${d.location.column}`, maxRetries: d.retries, outcome: "skipped", projectName: w?.name, retryCount: 0, startedAt: h, status: "skipped", suiteId: this.testSuiteRunId, tags: d.tags.length > 0 ? d.tags : void 0, testIdentifier: d.id, title: this.scrubSensitiveString(d.title) ?? d.title }, type: "test_end" }));
|
|
9534
9551
|
}
|
|
9535
9552
|
}
|
|
9536
9553
|
this.pendingOperations.track(this.wsClient.sendEvent({ payload: { duration: e.duration, notificationRequest: this.filteredNotificationConfigs ? { notificationConfigs: this.filteredNotificationConfigs, shardIndex: me(this.config), totalShards: this.config?.shard?.total } : void 0, shardIndex: me(this.config), shardTotal: this.config?.shard?.total, status: e.status === "timedout" ? "timedOut" : e.status, suiteId: this.testSuiteRunId }, type: "suite_end" })), Ie$1("[Stably reporter] Waiting for pending tasks to finish...");
|
|
@@ -9541,6 +9558,8 @@ class vn {
|
|
|
9541
9558
|
} catch (h) {
|
|
9542
9559
|
const d = h instanceof Error ? h.message : String(h);
|
|
9543
9560
|
console.warn(`[StablyAI reporter] Tasks timeout reached. Some operations may still be pending: ${d}`);
|
|
9561
|
+
const g = this.uploadUrlWaitQueue.abandonAllWaits();
|
|
9562
|
+
for (const w of g) this.clearUploadUrlWaitLogging(w);
|
|
9544
9563
|
} finally {
|
|
9545
9564
|
const h = this.pendingOperations.getProgress();
|
|
9546
9565
|
r.message(`${h.settled}/${h.total} tasks finished${h.failed > 0 ? `, ${h.failed} errors` : ""}`);
|
|
@@ -9559,11 +9578,11 @@ class vn {
|
|
|
9559
9578
|
}
|
|
9560
9579
|
n.stop("All file uploads finished"), this.wsClient.close();
|
|
9561
9580
|
try {
|
|
9562
|
-
const h =
|
|
9563
|
-
|
|
9581
|
+
const h = Vt.join(this.rootDir, ".stably");
|
|
9582
|
+
Wt.mkdirSync(h, { recursive: true }), Wt.writeFileSync(Vt.join(h, "last-run.json"), JSON.stringify({ runId: this.testSuiteRunId, timestamp: Date.now() }));
|
|
9564
9583
|
} catch {
|
|
9565
9584
|
}
|
|
9566
|
-
const i = this.createdSuiteRun?.name || this.suiteData?.title || "Test Suite", s = e.status === "failed" || e.status === "timedout", a = this.suiteData?.isCI ?? !!process.env.CI,
|
|
9585
|
+
const i = this.createdSuiteRun?.name || this.suiteData?.title || "Test Suite", s = e.status === "failed" || e.status === "timedout", a = this.suiteData?.isCI ?? !!process.env.CI, u = s ? a ? `
|
|
9567
9586
|
|
|
9568
9587
|
\u{1F527} Auto-heal note:
|
|
9569
9588
|
If a "stably fix" step runs right after this test run, it may have already fixed these failures.
|
|
@@ -9572,18 +9591,18 @@ class vn {
|
|
|
9572
9591
|
\u{1F527} To auto-heal failed tests, run:
|
|
9573
9592
|
${it.bold(it.underline(`stably fix ${this.testSuiteRunId}`))}` : "";
|
|
9574
9593
|
Se$1(it.cyan(`\u2728 Suite "${it.bold(i)}" run complete!${this.createdSuiteRun ? `
|
|
9575
|
-
\u{1F4CA} View results: ${it.bold(it.underline(this.createdSuiteRun.url))}` : ""}${
|
|
9594
|
+
\u{1F4CA} View results: ${it.bold(it.underline(this.createdSuiteRun.url))}` : ""}${u}`));
|
|
9576
9595
|
}
|
|
9577
9596
|
scrubSensitiveString(e) {
|
|
9578
9597
|
return !e || !this.sensitiveValues?.length ? e : ot({ sensitiveValues: this.sensitiveValues, str: e });
|
|
9579
9598
|
}
|
|
9580
9599
|
extractSuiteInfo(e, r) {
|
|
9581
|
-
const n = ha(), i = ma(), s = /* @__PURE__ */ new Date();
|
|
9582
|
-
return { id: Yt(), projects:
|
|
9600
|
+
const n = ha(), i = ma(), s = /* @__PURE__ */ new Date(), a = this.suiteName || r.title || ba({ gitInfo: n, suite: r }), u = a.length > 500 ? `${a.slice(0, 497)}...` : a;
|
|
9601
|
+
return { id: Yt(), projects: Ua(r), projectSettings: va(e), startedAt: s, suiteId: this.testSuiteRunId, title: u, createdAt: s, git: { branch: n.branch, commit: { message: n.commit.message, sha: n.commit.sha }, pr: n.pr }, isCI: n.isCI, shards: e.shard?.total ?? 1, workers: e.workers, machineInfo: i, updatedAt: s };
|
|
9583
9602
|
}
|
|
9584
9603
|
extractTestCaseInfo(e, r) {
|
|
9585
|
-
const n = sr({ absolutePath: e.location.file, rootDir: this.rootDir }), i = e.parent.project(), s = i?.name, a = i?.use?.defaultBrowserType,
|
|
9586
|
-
return
|
|
9604
|
+
const n = sr({ absolutePath: e.location.file, rootDir: this.rootDir }), i = e.parent.project(), s = i?.name, a = i?.use?.defaultBrowserType, u = this.testIdMap.get(e.id), h = u ?? Yt();
|
|
9605
|
+
return u || this.testIdMap.set(e.id, h), { fullTitle: this.scrubSensitiveString(e.titlePath().join(" \u203A ")) ?? "", id: h, location: `${n}:${e.location.line}:${e.location.column}`, suiteId: this.testSuiteRunId, testIdentifier: e.id, title: this.scrubSensitiveString(e.title) ?? e.title, browserName: a, duration: r.duration, expectedStatus: e.expectedStatus, finishedAt: r.startTime && r.duration ? new Date(r.startTime.getTime() + r.duration) : void 0, outcome: e.outcome(), projectName: s, startedAt: new Date(r.startTime), status: r.status, attemptNumber: r.retry + 1, maxRetries: e.retries, retryCount: r.retry, errorMessage: this.scrubSensitiveString(r.error?.message), errorStack: this.scrubSensitiveString(r.error?.stack), errorType: r.error?.value, annotations: e.annotations.length > 0 ? e.annotations : void 0, tags: e.tags.length > 0 ? e.tags : void 0 };
|
|
9587
9606
|
}
|
|
9588
9607
|
async extractAttachmentMetadata({ attachments: e, attemptNumber: r, testId: n }) {
|
|
9589
9608
|
return (await Promise.all(e.map((s) => this.processAttachment({ attachment: s, attemptNumber: r, testId: n })))).filter((s) => s !== void 0);
|
|
@@ -9591,18 +9610,18 @@ class vn {
|
|
|
9591
9610
|
async processAttachment({ attachment: e, attemptNumber: r, testId: n }) {
|
|
9592
9611
|
let i;
|
|
9593
9612
|
try {
|
|
9594
|
-
i = e.name === "trace" && e.path && this.sensitiveValues && this.sensitiveValues.length > 0 ?
|
|
9613
|
+
i = e.name === "trace" && e.path && this.sensitiveValues && this.sensitiveValues.length > 0 ? Wt.openSync(e.path, "r") : void 0;
|
|
9595
9614
|
const s = await this.getAttachmentFileData({ attachment: e, traceFd: i });
|
|
9596
9615
|
if (!s) return;
|
|
9597
|
-
const a = Yt(),
|
|
9598
|
-
return this.attachmentFiles.set(
|
|
9616
|
+
const a = Yt(), u = `${n}-${r}-${a}`;
|
|
9617
|
+
return this.attachmentFiles.set(u, s), { artifactId: a, attemptNumber: r, contentType: e.contentType, name: e.name, sizeBytes: s.length, testId: n };
|
|
9599
9618
|
} catch (s) {
|
|
9600
9619
|
const a = s instanceof Error ? s.message : String(s);
|
|
9601
9620
|
console.error(`[StablyAI reporter] Failed to read attachment ${e.name}: ${a}`);
|
|
9602
9621
|
return;
|
|
9603
9622
|
} finally {
|
|
9604
9623
|
if (i !== void 0) try {
|
|
9605
|
-
|
|
9624
|
+
Wt.closeSync(i);
|
|
9606
9625
|
} catch {
|
|
9607
9626
|
}
|
|
9608
9627
|
}
|
|
@@ -9610,25 +9629,25 @@ class vn {
|
|
|
9610
9629
|
async getAttachmentFileData({ attachment: e, traceFd: r }) {
|
|
9611
9630
|
if (!e.path && !e.body) return;
|
|
9612
9631
|
if (e.name === "trace" && this.sensitiveValues && this.sensitiveValues.length > 0) {
|
|
9613
|
-
const i = e.path ? await this.scrubTraceFromFile({ attachmentPath: e.path, sensitiveValues: this.sensitiveValues, traceFd: r }) : e.body ? await
|
|
9632
|
+
const i = e.path ? await this.scrubTraceFromFile({ attachmentPath: e.path, sensitiveValues: this.sensitiveValues, traceFd: r }) : e.body ? await Ge({ sensitiveValues: this.sensitiveValues, traceBuffer: Buffer.from(e.body) }) : void 0;
|
|
9614
9633
|
return i ? Buffer.from(i) : void 0;
|
|
9615
9634
|
}
|
|
9616
|
-
return e.body ? Buffer.from(e.body) : e.path ?
|
|
9635
|
+
return e.body ? Buffer.from(e.body) : e.path ? Wt.readFileSync(e.path) : void 0;
|
|
9617
9636
|
}
|
|
9618
9637
|
async scrubTraceFromFile({ attachmentPath: e, sensitiveValues: r, traceFd: n }) {
|
|
9619
9638
|
return n !== void 0 ? Is({ sensitiveValues: r, traceFd: n, tracePath: e }) : _s({ sensitiveValues: r, tracePath: e });
|
|
9620
9639
|
}
|
|
9621
9640
|
handleWebSocketError(e) {
|
|
9622
|
-
e.code ===
|
|
9641
|
+
e.code === Jr.AUTHENTICATION_FAILED && (console.error(it.bold(it.red("[StablyAI reporter] Could not authenticate with the server. Either the API Key or Project ID is invalid. These can be provided via stablyReporter({ apiKey, projectId }) in playwright.config.ts or environment variables (STABLY_API_KEY, STABLY_PROJECT_ID). You can find your API key and Project ID at https://app.stably.ai/settings?tab=api-key"))), process.exit(1)), console.error("[StablyAI reporter] Could not connect to the server. Please check your internet connection and try again."), process.exit(1);
|
|
9623
9642
|
}
|
|
9624
9643
|
handleWebSocketMessage(e) {
|
|
9625
9644
|
e.type === "suite_created" ? (this.createdSuiteRun = { id: e.id, name: e.name, url: e.url }, this.pendingQueuedSpecs && (this.pendingOperations.track(this.wsClient.sendEvent({ payload: { specs: this.pendingQueuedSpecs, suiteId: this.testSuiteRunId }, type: "tests_queued" })), this.pendingQueuedSpecs = void 0)) : e.type === "upload_urls" && this.handleUploadUrlsMessage(e);
|
|
9626
9645
|
}
|
|
9627
9646
|
async uploadAttachments({ attemptNumber: e, testId: r, uploadUrls: n }) {
|
|
9628
|
-
const i = n.map(async ({ artifactId: s, name: a, uploadUrl:
|
|
9647
|
+
const i = n.map(async ({ artifactId: s, name: a, uploadUrl: u }) => {
|
|
9629
9648
|
const h = `${r}-${e}-${s}`, d = this.attachmentFiles.get(h);
|
|
9630
9649
|
if (d) try {
|
|
9631
|
-
await _a({ fileData: d, maxRetries: 3, requestTimeoutMs:
|
|
9650
|
+
await _a({ fileData: d, maxRetries: 3, requestTimeoutMs: Ta, uploadUrl: u }), this.attachmentFiles.delete(h);
|
|
9632
9651
|
} catch (g) {
|
|
9633
9652
|
const w = g instanceof Error ? g.message : String(g);
|
|
9634
9653
|
console.error(`[StablyAI reporter] Failed to upload ${a} after retries: ${w}`);
|
|
@@ -9636,12 +9655,28 @@ class vn {
|
|
|
9636
9655
|
});
|
|
9637
9656
|
await Promise.allSettled(i);
|
|
9638
9657
|
}
|
|
9658
|
+
startUploadUrlWaitLogging({ attachmentCount: e, attemptNumber: r, testId: n, uploadUrlKey: i }) {
|
|
9659
|
+
const s = Date.now(), a = wa.map((u) => {
|
|
9660
|
+
const h = setTimeout(() => {
|
|
9661
|
+
console.warn(`[StablyAI reporter] Still waiting ${u}ms for upload_urls for test ${n} attempt ${r} (${e} attachment(s))`);
|
|
9662
|
+
}, u);
|
|
9663
|
+
return h.unref?.(), h;
|
|
9664
|
+
});
|
|
9665
|
+
this.uploadUrlWaitLogState.set(i, { attachmentCount: e, attemptNumber: r, startedAt: s, testId: n, timers: a });
|
|
9666
|
+
}
|
|
9667
|
+
clearUploadUrlWaitLogging(e) {
|
|
9668
|
+
const r = this.uploadUrlWaitLogState.get(e);
|
|
9669
|
+
if (r) {
|
|
9670
|
+
for (const n of r.timers) clearTimeout(n);
|
|
9671
|
+
return this.uploadUrlWaitLogState.delete(e), Date.now() - r.startedAt;
|
|
9672
|
+
}
|
|
9673
|
+
}
|
|
9639
9674
|
}
|
|
9640
|
-
function
|
|
9675
|
+
function Ca(t) {
|
|
9641
9676
|
return ["@stablyai/playwright-test/reporter", t];
|
|
9642
9677
|
}
|
|
9643
|
-
c(
|
|
9678
|
+
c(Ca, "stablyReporter");
|
|
9644
9679
|
|
|
9645
|
-
exports.
|
|
9680
|
+
exports.Ca = Ca;
|
|
9646
9681
|
exports.vn = vn;
|
|
9647
|
-
//# sourceMappingURL=index-
|
|
9682
|
+
//# sourceMappingURL=index-CdLJi9uc.cjs.map
|