@stablyai/playwright-test 2.1.6 → 2.1.7
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-BYn4B_OP.cjs → index-CfBVZ27r.cjs} +706 -675
- package/dist/index-CfBVZ27r.cjs.map +1 -0
- package/dist/{index-DB4Yn-mK.mjs → index-CyV-2Mfg.mjs} +702 -671
- package/dist/index-CyV-2Mfg.mjs.map +1 -0
- package/dist/index.cjs +6 -6
- package/dist/index.d-BYzcguUj.d.cts.map +1 -1
- package/dist/index.d-BYzcguUj.d.mts.map +1 -1
- package/dist/index.d-BYzcguUj.d.ts.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/reporter.cjs +2 -2
- package/dist/reporter.mjs +2 -2
- package/package.json +3 -3
- package/dist/index-BYn4B_OP.cjs.map +0 -1
- package/dist/index-DB4Yn-mK.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 Ke = require('path');
|
|
9
|
+
var qe = 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');
|
|
@@ -15,6 +15,7 @@ var require$$0 = require('stream');
|
|
|
15
15
|
var node_util = require('node:util');
|
|
16
16
|
var g = require('node:readline');
|
|
17
17
|
require('node:stream');
|
|
18
|
+
var Et = require('os');
|
|
18
19
|
var require$$7 = require('url');
|
|
19
20
|
var Fn = require('util');
|
|
20
21
|
var require$$0$4 = require('events');
|
|
@@ -25,7 +26,6 @@ var require$$4 = require('tls');
|
|
|
25
26
|
var require$$1 = require('crypto');
|
|
26
27
|
var require$$0$1 = require('zlib');
|
|
27
28
|
var require$$0$3 = require('buffer');
|
|
28
|
-
var fr = require('os');
|
|
29
29
|
|
|
30
30
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
31
31
|
function _interopNamespaceDefault(e) {
|
|
@@ -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 = qe;
|
|
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 = qe;
|
|
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 = Ke;
|
|
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 = Ke;
|
|
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 = qe;
|
|
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 = Ke;
|
|
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(qe);
|
|
2061
2061
|
function _interopRequireDefault(obj) {
|
|
2062
2062
|
return obj && obj.__esModule ? obj : {
|
|
2063
2063
|
default: obj
|
|
@@ -6731,7 +6731,7 @@ function requirePRetry () {
|
|
|
6731
6731
|
}
|
|
6732
6732
|
|
|
6733
6733
|
var pRetryExports = requirePRetry();
|
|
6734
|
-
var
|
|
6734
|
+
var Wn = /*@__PURE__*/getDefaultExportFromCjs(pRetryExports);
|
|
6735
6735
|
|
|
6736
6736
|
var Bn = Object.defineProperty;
|
|
6737
6737
|
var a = (e, t) => Bn(e, "name", { value: t, configurable: true });
|
|
@@ -6807,11 +6807,11 @@ function ai(e, t = {}) {
|
|
|
6807
6807
|
return r.outputLen = n.outputLen, r.blockLen = n.blockLen, r.create = (i) => e(i), Object.assign(r, t), Object.freeze(r);
|
|
6808
6808
|
}
|
|
6809
6809
|
a(ai, "createHasher");
|
|
6810
|
-
const ci = a((e) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, e]) }), "oidNist"), ui = BigInt(0),
|
|
6811
|
-
for (let e = 0, t =
|
|
6812
|
-
[r, n] = [n, (2 * r + 3 * n) % 5],
|
|
6810
|
+
const ci = a((e) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, e]) }), "oidNist"), ui = BigInt(0), Ve = BigInt(1), li = BigInt(2), fi = BigInt(7), hi = BigInt(256), di = BigInt(113), gr = [], _r = [], Ir = [];
|
|
6811
|
+
for (let e = 0, t = Ve, r = 1, n = 0; e < 24; e++) {
|
|
6812
|
+
[r, n] = [n, (2 * r + 3 * n) % 5], gr.push(2 * (5 * n + r)), _r.push((e + 1) * (e + 2) / 2 % 64);
|
|
6813
6813
|
let i = ui;
|
|
6814
|
-
for (let o = 0; o < 7; o++) t = (t <<
|
|
6814
|
+
for (let o = 0; o < 7; o++) t = (t << Ve ^ (t >> fi) * di) % hi, t & li && (i ^= Ve << (Ve << BigInt(o)) - Ve);
|
|
6815
6815
|
Ir.push(i);
|
|
6816
6816
|
}
|
|
6817
6817
|
const Sr = zn(Ir, true), pi = Sr[0], mi = Sr[1], Rr = a((e, t, r) => r > 32 ? Zn(e, t, r) : Qn(e, t, r), "rotlH"), Tr = a((e, t, r) => r > 32 ? ei(e, t, r) : Xn(e, t, r), "rotlL");
|
|
@@ -6825,7 +6825,7 @@ function Ei(e, t = 24) {
|
|
|
6825
6825
|
}
|
|
6826
6826
|
let i = e[2], o = e[3];
|
|
6827
6827
|
for (let c = 0; c < 24; c++) {
|
|
6828
|
-
const l =
|
|
6828
|
+
const l = _r[c], p = Rr(i, o, l), E = Tr(i, o, l), h = gr[c];
|
|
6829
6829
|
i = e[h], o = e[h + 1], e[h] = p, e[h + 1] = E;
|
|
6830
6830
|
}
|
|
6831
6831
|
for (let c = 0; c < 50; c += 10) {
|
|
@@ -6837,7 +6837,7 @@ function Ei(e, t = 24) {
|
|
|
6837
6837
|
mr(r);
|
|
6838
6838
|
}
|
|
6839
6839
|
a(Ei, "keccakP");
|
|
6840
|
-
class
|
|
6840
|
+
class ir {
|
|
6841
6841
|
static {
|
|
6842
6842
|
a(this, "Keccak");
|
|
6843
6843
|
}
|
|
@@ -6907,15 +6907,15 @@ class nr {
|
|
|
6907
6907
|
}
|
|
6908
6908
|
_cloneInto(t) {
|
|
6909
6909
|
const { blockLen: r, suffix: n, outputLen: i, rounds: o, enableXOF: c } = this;
|
|
6910
|
-
return t ||= new
|
|
6910
|
+
return t ||= new ir(r, n, i, c, o), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = o, t.suffix = n, t.outputLen = i, t.enableXOF = c, t.destroyed = this.destroyed, t;
|
|
6911
6911
|
}
|
|
6912
6912
|
}
|
|
6913
|
-
const
|
|
6914
|
-
var Ii = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,
|
|
6913
|
+
const gi = a((e, t, r, n = {}) => ai(() => new ir(t, e, r), n), "genKeccak"), _i = gi(6, 72, 64, ci(10));
|
|
6914
|
+
var Ii = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, It = Math.ceil, ue = Math.floor, oe = "[BigNumber Error] ", yr = oe + "Number primitive has more than 15 significant digits: ", pe = 1e14, G = 14, St = 9007199254740991, Rt = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Ce = 1e7, ee = 1e9;
|
|
6915
6915
|
function wr(e) {
|
|
6916
|
-
var t, r, n, i = w.prototype = { constructor: w, toString: null, valueOf: null }, o = new w(1), c = 20, l = 4, p = -7, E = 21, h = -1e7, T = 1e7, v = false, C = 1, D = 0, M = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: "\xA0", suffix: "" }, b = "0123456789abcdefghijklmnopqrstuvwxyz",
|
|
6916
|
+
var t, r, n, i = w.prototype = { constructor: w, toString: null, valueOf: null }, o = new w(1), c = 20, l = 4, p = -7, E = 21, h = -1e7, T = 1e7, v = false, C = 1, D = 0, M = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: "\xA0", suffix: "" }, b = "0123456789abcdefghijklmnopqrstuvwxyz", P = true;
|
|
6917
6917
|
function w(s, u) {
|
|
6918
|
-
var f,
|
|
6918
|
+
var f, _, m, I, y, d, g, S, R = this;
|
|
6919
6919
|
if (!(R instanceof w)) return new w(s, u);
|
|
6920
6920
|
if (u == null) {
|
|
6921
6921
|
if (s && s._isBigNumber === true) {
|
|
@@ -6935,15 +6935,15 @@ function wr(e) {
|
|
|
6935
6935
|
}
|
|
6936
6936
|
(I = S.indexOf(".")) > -1 && (S = S.replace(".", "")), (y = S.search(/e/i)) > 0 ? (I < 0 && (I = y), I += +S.slice(y + 1), S = S.substring(0, y)) : I < 0 && (I = S.length);
|
|
6937
6937
|
} else {
|
|
6938
|
-
if (J(u, 2, b.length, "Base"), u == 10 &&
|
|
6938
|
+
if (J(u, 2, b.length, "Base"), u == 10 && P) return R = new w(s), k(R, c + R.e + 1, l);
|
|
6939
6939
|
if (S = String(s), d = typeof s == "number") {
|
|
6940
6940
|
if (s * 0 != 0) return n(R, S, d, u);
|
|
6941
6941
|
if (R.s = 1 / s < 0 ? (S = S.slice(1), -1) : 1, w.DEBUG && S.replace(/^0\.0*|\./, "").length > 15) throw Error(yr + s);
|
|
6942
6942
|
} else R.s = S.charCodeAt(0) === 45 ? (S = S.slice(1), -1) : 1;
|
|
6943
|
-
for (f = b.slice(0, u), I = y = 0,
|
|
6944
|
-
if (
|
|
6943
|
+
for (f = b.slice(0, u), I = y = 0, g = S.length; y < g; y++) if (f.indexOf(_ = S.charAt(y)) < 0) {
|
|
6944
|
+
if (_ == ".") {
|
|
6945
6945
|
if (y > I) {
|
|
6946
|
-
I =
|
|
6946
|
+
I = g;
|
|
6947
6947
|
continue;
|
|
6948
6948
|
}
|
|
6949
6949
|
} else if (!m && (S == S.toUpperCase() && (S = S.toLowerCase()) || S == S.toLowerCase() && (S = S.toUpperCase()))) {
|
|
@@ -6955,16 +6955,16 @@ function wr(e) {
|
|
|
6955
6955
|
d = false, S = r(S, u, 10, R.s), (I = S.indexOf(".")) > -1 ? S = S.replace(".", "") : I = S.length;
|
|
6956
6956
|
}
|
|
6957
6957
|
for (y = 0; S.charCodeAt(y) === 48; y++) ;
|
|
6958
|
-
for (
|
|
6959
|
-
if (S = S.slice(y, ++
|
|
6960
|
-
if (
|
|
6958
|
+
for (g = S.length; S.charCodeAt(--g) === 48; ) ;
|
|
6959
|
+
if (S = S.slice(y, ++g)) {
|
|
6960
|
+
if (g -= y, d && w.DEBUG && g > 15 && (s > St || s !== ue(s))) throw Error(yr + R.s * s);
|
|
6961
6961
|
if ((I = I - y - 1) > T) R.c = R.e = null;
|
|
6962
6962
|
else if (I < h) R.c = [R.e = 0];
|
|
6963
6963
|
else {
|
|
6964
|
-
if (R.e = I, R.c = [], y = (I + 1) % G, I < 0 && (y += G), y <
|
|
6965
|
-
for (y && R.c.push(+S.slice(0, y)),
|
|
6964
|
+
if (R.e = I, R.c = [], y = (I + 1) % G, I < 0 && (y += G), y < g) {
|
|
6965
|
+
for (y && R.c.push(+S.slice(0, y)), g -= G; y < g; ) R.c.push(+S.slice(y, y += G));
|
|
6966
6966
|
y = G - (S = S.slice(y)).length;
|
|
6967
|
-
} else y -=
|
|
6967
|
+
} else y -= g;
|
|
6968
6968
|
for (; y--; S += "0") ;
|
|
6969
6969
|
R.c.push(+S);
|
|
6970
6970
|
}
|
|
@@ -6982,26 +6982,26 @@ function wr(e) {
|
|
|
6982
6982
|
else throw Error(oe + u + " not true or false: " + f);
|
|
6983
6983
|
if (s.hasOwnProperty(u = "MODULO_MODE") && (f = s[u], J(f, 0, 9, u), C = f), s.hasOwnProperty(u = "POW_PRECISION") && (f = s[u], J(f, 0, ee, u), D = f), s.hasOwnProperty(u = "FORMAT")) if (f = s[u], typeof f == "object") M = f;
|
|
6984
6984
|
else throw Error(oe + u + " not an object: " + f);
|
|
6985
|
-
if (s.hasOwnProperty(u = "ALPHABET")) if (f = s[u], typeof f == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(f))
|
|
6985
|
+
if (s.hasOwnProperty(u = "ALPHABET")) if (f = s[u], typeof f == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(f)) P = f.slice(0, 10) == "0123456789", b = f;
|
|
6986
6986
|
else throw Error(oe + u + " invalid: " + f);
|
|
6987
6987
|
} else throw Error(oe + "Object expected: " + s);
|
|
6988
6988
|
return { DECIMAL_PLACES: c, ROUNDING_MODE: l, EXPONENTIAL_AT: [p, E], RANGE: [h, T], CRYPTO: v, MODULO_MODE: C, POW_PRECISION: D, FORMAT: M, ALPHABET: b };
|
|
6989
6989
|
}, w.isBigNumber = function(s) {
|
|
6990
6990
|
if (!s || s._isBigNumber !== true) return false;
|
|
6991
6991
|
if (!w.DEBUG) return true;
|
|
6992
|
-
var u, f,
|
|
6993
|
-
e: if ({}.toString.call(
|
|
6992
|
+
var u, f, _ = s.c, m = s.e, I = s.s;
|
|
6993
|
+
e: if ({}.toString.call(_) == "[object Array]") {
|
|
6994
6994
|
if ((I === 1 || I === -1) && m >= -ee && m <= ee && m === ue(m)) {
|
|
6995
|
-
if (
|
|
6996
|
-
if (m === 0 &&
|
|
6995
|
+
if (_[0] === 0) {
|
|
6996
|
+
if (m === 0 && _.length === 1) return true;
|
|
6997
6997
|
break e;
|
|
6998
6998
|
}
|
|
6999
|
-
if (u = (m + 1) % G, u < 1 && (u += G), String(
|
|
7000
|
-
for (u = 0; u <
|
|
6999
|
+
if (u = (m + 1) % G, u < 1 && (u += G), String(_[0]).length == u) {
|
|
7000
|
+
for (u = 0; u < _.length; u++) if (f = _[u], f < 0 || f >= pe || f !== ue(f)) break e;
|
|
7001
7001
|
if (f !== 0) return true;
|
|
7002
7002
|
}
|
|
7003
7003
|
}
|
|
7004
|
-
} else if (
|
|
7004
|
+
} else if (_ === null && m === null && (I === null || I === 1 || I === -1)) return true;
|
|
7005
7005
|
throw Error(oe + "Invalid BigNumber: " + s);
|
|
7006
7006
|
}, w.maximum = w.max = function() {
|
|
7007
7007
|
return x(arguments, -1);
|
|
@@ -7014,21 +7014,21 @@ function wr(e) {
|
|
|
7014
7014
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
7015
7015
|
};
|
|
7016
7016
|
return function(f) {
|
|
7017
|
-
var
|
|
7018
|
-
if (f == null ? f = c : J(f, 0, ee), y =
|
|
7019
|
-
for (
|
|
7020
|
-
|
|
7017
|
+
var _, m, I, y, d, g = 0, S = [], R = new w(o);
|
|
7018
|
+
if (f == null ? f = c : J(f, 0, ee), y = It(f / G), v) if (crypto.getRandomValues) {
|
|
7019
|
+
for (_ = crypto.getRandomValues(new Uint32Array(y *= 2)); g < y; ) d = _[g] * 131072 + (_[g + 1] >>> 11), d >= 9e15 ? (m = crypto.getRandomValues(new Uint32Array(2)), _[g] = m[0], _[g + 1] = m[1]) : (S.push(d % 1e14), g += 2);
|
|
7020
|
+
g = y / 2;
|
|
7021
7021
|
} else if (crypto.randomBytes) {
|
|
7022
|
-
for (
|
|
7023
|
-
|
|
7022
|
+
for (_ = crypto.randomBytes(y *= 7); g < y; ) d = (_[g] & 31) * 281474976710656 + _[g + 1] * 1099511627776 + _[g + 2] * 4294967296 + _[g + 3] * 16777216 + (_[g + 4] << 16) + (_[g + 5] << 8) + _[g + 6], d >= 9e15 ? crypto.randomBytes(7).copy(_, g) : (S.push(d % 1e14), g += 7);
|
|
7023
|
+
g = y / 7;
|
|
7024
7024
|
} else throw v = false, Error(oe + "crypto unavailable");
|
|
7025
|
-
if (!v) for (;
|
|
7026
|
-
for (y = S[--
|
|
7027
|
-
if (
|
|
7025
|
+
if (!v) for (; g < y; ) d = u(), d < 9e15 && (S[g++] = d % 1e14);
|
|
7026
|
+
for (y = S[--g], f %= G, y && f && (d = Rt[G - f], S[g] = ue(y / d) * d); S[g] === 0; S.pop(), g--) ;
|
|
7027
|
+
if (g < 0) S = [I = 0];
|
|
7028
7028
|
else {
|
|
7029
7029
|
for (I = -1; S[0] === 0; S.splice(0, 1), I -= G) ;
|
|
7030
|
-
for (
|
|
7031
|
-
|
|
7030
|
+
for (g = 1, d = S[0]; d >= 10; d /= 10, g++) ;
|
|
7031
|
+
g < G && (I -= G - g);
|
|
7032
7032
|
}
|
|
7033
7033
|
return R.e = I, R.c = S, R;
|
|
7034
7034
|
};
|
|
@@ -7037,20 +7037,20 @@ function wr(e) {
|
|
|
7037
7037
|
return f;
|
|
7038
7038
|
}, r = (function() {
|
|
7039
7039
|
var s = "0123456789";
|
|
7040
|
-
function u(f,
|
|
7041
|
-
for (var y, d = [0],
|
|
7042
|
-
for (
|
|
7040
|
+
function u(f, _, m, I) {
|
|
7041
|
+
for (var y, d = [0], g, S = 0, R = f.length; S < R; ) {
|
|
7042
|
+
for (g = d.length; g--; d[g] *= _) ;
|
|
7043
7043
|
for (d[0] += I.indexOf(f.charAt(S++)), y = 0; y < d.length; y++) d[y] > m - 1 && (d[y + 1] == null && (d[y + 1] = 0), d[y + 1] += d[y] / m | 0, d[y] %= m);
|
|
7044
7044
|
}
|
|
7045
7045
|
return d.reverse();
|
|
7046
7046
|
}
|
|
7047
|
-
return a(u, "toBaseOut"), function(f,
|
|
7048
|
-
var d,
|
|
7049
|
-
for (j >= 0 && (R = D, D = 0, f = f.replace(".", ""),
|
|
7047
|
+
return a(u, "toBaseOut"), function(f, _, m, I, y) {
|
|
7048
|
+
var d, g, S, R, A, O, B, $, j = f.indexOf("."), q = c, N = l;
|
|
7049
|
+
for (j >= 0 && (R = D, D = 0, f = f.replace(".", ""), $ = new w(_), O = $.pow(f.length - j), D = R, $.c = u(ye(fe(O.c), O.e, "0"), 10, m, s), $.e = $.c.length), B = u(f, _, m, y ? (d = b, s) : (d = s, b)), S = R = B.length; B[--R] == 0; B.pop()) ;
|
|
7050
7050
|
if (!B[0]) return d.charAt(0);
|
|
7051
|
-
if (j < 0 ? --S : (
|
|
7051
|
+
if (j < 0 ? --S : (O.c = B, O.e = S, O.s = I, O = t(O, $, q, N, m), B = O.c, A = O.r, S = O.e), g = S + q + 1, j = B[g], R = m / 2, A = A || g < 0 || B[g + 1] != null, A = N < 4 ? (j != null || A) && (N == 0 || N == (O.s < 0 ? 3 : 2)) : j > R || j == R && (N == 4 || A || N == 6 && B[g - 1] & 1 || N == (O.s < 0 ? 8 : 7)), g < 1 || !B[0]) f = A ? ye(d.charAt(1), -q, d.charAt(0)) : d.charAt(0);
|
|
7052
7052
|
else {
|
|
7053
|
-
if (B.length =
|
|
7053
|
+
if (B.length = g, A) for (--m; ++B[--g] > m; ) B[g] = 0, g || (++S, B = [1].concat(B));
|
|
7054
7054
|
for (R = B.length; !B[--R]; ) ;
|
|
7055
7055
|
for (j = 0, f = ""; j <= R; f += d.charAt(B[j++])) ;
|
|
7056
7056
|
f = ye(f, S, d.charAt(0));
|
|
@@ -7058,105 +7058,105 @@ function wr(e) {
|
|
|
7058
7058
|
return f;
|
|
7059
7059
|
};
|
|
7060
7060
|
})(), t = (function() {
|
|
7061
|
-
function s(
|
|
7062
|
-
var y, d,
|
|
7063
|
-
for (
|
|
7064
|
-
return R && (
|
|
7061
|
+
function s(_, m, I) {
|
|
7062
|
+
var y, d, g, S, R = 0, A = _.length, O = m % Ce, B = m / Ce | 0;
|
|
7063
|
+
for (_ = _.slice(); A--; ) g = _[A] % Ce, S = _[A] / Ce | 0, y = B * g + S * O, d = O * g + y % Ce * Ce + R, R = (d / I | 0) + (y / Ce | 0) + B * S, _[A] = d % I;
|
|
7064
|
+
return R && (_ = [R].concat(_)), _;
|
|
7065
7065
|
}
|
|
7066
7066
|
a(s, "multiply");
|
|
7067
|
-
function u(
|
|
7068
|
-
var d,
|
|
7069
|
-
if (I != y)
|
|
7070
|
-
else for (d =
|
|
7071
|
-
|
|
7067
|
+
function u(_, m, I, y) {
|
|
7068
|
+
var d, g;
|
|
7069
|
+
if (I != y) g = I > y ? 1 : -1;
|
|
7070
|
+
else for (d = g = 0; d < I; d++) if (_[d] != m[d]) {
|
|
7071
|
+
g = _[d] > m[d] ? 1 : -1;
|
|
7072
7072
|
break;
|
|
7073
7073
|
}
|
|
7074
|
-
return
|
|
7074
|
+
return g;
|
|
7075
7075
|
}
|
|
7076
7076
|
a(u, "compare2");
|
|
7077
|
-
function f(
|
|
7078
|
-
for (var d = 0; I--; )
|
|
7079
|
-
for (; !
|
|
7080
|
-
}
|
|
7081
|
-
return a(f, "subtract"), function(
|
|
7082
|
-
var
|
|
7083
|
-
if (!Z || !Z[0] || !z || !z[0]) return new w(!
|
|
7084
|
-
for (j = new w(X), q = j.c = [], S =
|
|
7077
|
+
function f(_, m, I, y) {
|
|
7078
|
+
for (var d = 0; I--; ) _[I] -= d, d = _[I] < m[I] ? 1 : 0, _[I] = d * y + _[I] - m[I];
|
|
7079
|
+
for (; !_[0] && _.length > 1; _.splice(0, 1)) ;
|
|
7080
|
+
}
|
|
7081
|
+
return a(f, "subtract"), function(_, m, I, y, d) {
|
|
7082
|
+
var g, S, R, A, O, B, $, j, q, N, H, Y, he, be, ve, re, de, X = _.s == m.s ? 1 : -1, Z = _.c, z = m.c;
|
|
7083
|
+
if (!Z || !Z[0] || !z || !z[0]) return new w(!_.s || !m.s || (Z ? z && Z[0] == z[0] : !z) ? NaN : Z && Z[0] == 0 || !z ? X * 0 : X / 0);
|
|
7084
|
+
for (j = new w(X), q = j.c = [], S = _.e - m.e, X = I + S + 1, d || (d = pe, S = le(_.e / G) - le(m.e / G), X = X / G | 0), R = 0; z[R] == (Z[R] || 0); R++) ;
|
|
7085
7085
|
if (z[R] > (Z[R] || 0) && S--, X < 0) q.push(1), A = true;
|
|
7086
7086
|
else {
|
|
7087
|
-
for (be = Z.length, re = z.length, R = 0, X += 2,
|
|
7087
|
+
for (be = Z.length, re = z.length, R = 0, X += 2, O = ue(d / (z[0] + 1)), O > 1 && (z = s(z, O, d), Z = s(Z, O, d), re = z.length, be = Z.length), he = re, N = Z.slice(0, re), H = N.length; H < re; N[H++] = 0) ;
|
|
7088
7088
|
de = z.slice(), de = [0].concat(de), ve = z[0], z[1] >= d / 2 && ve++;
|
|
7089
7089
|
do {
|
|
7090
|
-
if (
|
|
7091
|
-
if (Y = N[0], re != H && (Y = Y * d + (N[1] || 0)),
|
|
7092
|
-
else
|
|
7093
|
-
if (
|
|
7094
|
-
} else
|
|
7095
|
-
q[R++] =
|
|
7090
|
+
if (O = 0, g = u(z, N, re, H), g < 0) {
|
|
7091
|
+
if (Y = N[0], re != H && (Y = Y * d + (N[1] || 0)), O = ue(Y / ve), O > 1) for (O >= d && (O = d - 1), B = s(z, O, d), $ = B.length, H = N.length; u(B, N, $, H) == 1; ) O--, f(B, re < $ ? de : z, $, d), $ = B.length, g = 1;
|
|
7092
|
+
else O == 0 && (g = O = 1), B = z.slice(), $ = B.length;
|
|
7093
|
+
if ($ < H && (B = [0].concat(B)), f(N, B, H, d), H = N.length, g == -1) for (; u(z, N, re, H) < 1; ) O++, f(N, re < H ? de : z, H, d), H = N.length;
|
|
7094
|
+
} else g === 0 && (O++, N = [0]);
|
|
7095
|
+
q[R++] = O, N[0] ? N[H++] = Z[he] || 0 : (N = [Z[he]], H = 1);
|
|
7096
7096
|
} while ((he++ < be || N[0] != null) && X--);
|
|
7097
7097
|
A = N[0] != null, q[0] || q.splice(0, 1);
|
|
7098
7098
|
}
|
|
7099
7099
|
if (d == pe) {
|
|
7100
7100
|
for (R = 1, X = q[0]; X >= 10; X /= 10, R++) ;
|
|
7101
|
-
|
|
7101
|
+
k(j, I + (j.e = R + S * G - 1) + 1, y, A);
|
|
7102
7102
|
} else j.e = S, j.r = +A;
|
|
7103
7103
|
return j;
|
|
7104
7104
|
};
|
|
7105
7105
|
})();
|
|
7106
|
-
function
|
|
7107
|
-
var m, I, y, d,
|
|
7106
|
+
function L(s, u, f, _) {
|
|
7107
|
+
var m, I, y, d, g;
|
|
7108
7108
|
if (f == null ? f = l : J(f, 0, 8), !s.c) return s.toString();
|
|
7109
|
-
if (m = s.c[0], y = s.e, u == null)
|
|
7110
|
-
else if (s =
|
|
7111
|
-
for (; d < u;
|
|
7112
|
-
|
|
7113
|
-
} else if (u -= y + (
|
|
7114
|
-
if (--u > 0) for (
|
|
7115
|
-
} else if (u += I - d, u > 0) for (I + 1 == d && (
|
|
7116
|
-
return s.s < 0 && m ? "-" +
|
|
7117
|
-
}
|
|
7118
|
-
a(
|
|
7109
|
+
if (m = s.c[0], y = s.e, u == null) g = fe(s.c), g = _ == 1 || _ == 2 && (y <= p || y >= E) ? it(g, y) : ye(g, y, "0");
|
|
7110
|
+
else if (s = k(new w(s), u, f), I = s.e, g = fe(s.c), d = g.length, _ == 1 || _ == 2 && (u <= I || I <= p)) {
|
|
7111
|
+
for (; d < u; g += "0", d++) ;
|
|
7112
|
+
g = it(g, I);
|
|
7113
|
+
} else if (u -= y + (_ === 2 && I > y), g = ye(g, I, "0"), I + 1 > d) {
|
|
7114
|
+
if (--u > 0) for (g += "."; u--; g += "0") ;
|
|
7115
|
+
} else if (u += I - d, u > 0) for (I + 1 == d && (g += "."); u--; g += "0") ;
|
|
7116
|
+
return s.s < 0 && m ? "-" + g : g;
|
|
7117
|
+
}
|
|
7118
|
+
a(L, "format");
|
|
7119
7119
|
function x(s, u) {
|
|
7120
|
-
for (var f,
|
|
7120
|
+
for (var f, _, m = 1, I = new w(s[0]); m < s.length; m++) _ = new w(s[m]), (!_.s || (f = Me(I, _)) === u || f === 0 && I.s === u) && (I = _);
|
|
7121
7121
|
return I;
|
|
7122
7122
|
}
|
|
7123
7123
|
a(x, "maxOrMin");
|
|
7124
7124
|
function U(s, u, f) {
|
|
7125
|
-
for (var
|
|
7126
|
-
for (m = u[0]; m >= 10; m /= 10,
|
|
7127
|
-
return (f =
|
|
7125
|
+
for (var _ = 1, m = u.length; !u[--m]; u.pop()) ;
|
|
7126
|
+
for (m = u[0]; m >= 10; m /= 10, _++) ;
|
|
7127
|
+
return (f = _ + f * G - 1) > T ? s.c = s.e = null : f < h ? s.c = [s.e = 0] : (s.e = f, s.c = u), s;
|
|
7128
7128
|
}
|
|
7129
7129
|
a(U, "normalise"), n = /* @__PURE__ */ (function() {
|
|
7130
|
-
var s = /^(-?)0([xbo])(?=\w[\w.]*$)/i, u = /^([^.]+)\.$/, f = /^\.([^.]+)$/,
|
|
7131
|
-
return function(I, y, d,
|
|
7130
|
+
var s = /^(-?)0([xbo])(?=\w[\w.]*$)/i, u = /^([^.]+)\.$/, f = /^\.([^.]+)$/, _ = /^-?(Infinity|NaN)$/, m = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
7131
|
+
return function(I, y, d, g) {
|
|
7132
7132
|
var S, R = d ? y : y.replace(m, "");
|
|
7133
|
-
if (
|
|
7133
|
+
if (_.test(R)) I.s = isNaN(R) ? null : R < 0 ? -1 : 1;
|
|
7134
7134
|
else {
|
|
7135
|
-
if (!d && (R = R.replace(s, function(A,
|
|
7136
|
-
return S = (B = B.toLowerCase()) == "x" ? 16 : B == "b" ? 2 : 8, !
|
|
7137
|
-
}),
|
|
7138
|
-
if (w.DEBUG) throw Error(oe + "Not a" + (
|
|
7135
|
+
if (!d && (R = R.replace(s, function(A, O, B) {
|
|
7136
|
+
return S = (B = B.toLowerCase()) == "x" ? 16 : B == "b" ? 2 : 8, !g || g == S ? O : A;
|
|
7137
|
+
}), g && (S = g, R = R.replace(u, "$1").replace(f, "0.$1")), y != R)) return new w(R, S);
|
|
7138
|
+
if (w.DEBUG) throw Error(oe + "Not a" + (g ? " base " + g : "") + " number: " + y);
|
|
7139
7139
|
I.s = null;
|
|
7140
7140
|
}
|
|
7141
7141
|
I.c = I.e = null;
|
|
7142
7142
|
};
|
|
7143
7143
|
})();
|
|
7144
|
-
function
|
|
7145
|
-
var m, I, y, d,
|
|
7144
|
+
function k(s, u, f, _) {
|
|
7145
|
+
var m, I, y, d, g, S, R, A = s.c, O = Rt;
|
|
7146
7146
|
if (A) {
|
|
7147
7147
|
e: {
|
|
7148
7148
|
for (m = 1, d = A[0]; d >= 10; d /= 10, m++) ;
|
|
7149
|
-
if (I = u - m, I < 0) I += G, y = u,
|
|
7150
|
-
else if (S =
|
|
7149
|
+
if (I = u - m, I < 0) I += G, y = u, g = A[S = 0], R = ue(g / O[m - y - 1] % 10);
|
|
7150
|
+
else if (S = It((I + 1) / G), S >= A.length) if (_) {
|
|
7151
7151
|
for (; A.length <= S; A.push(0)) ;
|
|
7152
|
-
|
|
7152
|
+
g = R = 0, m = 1, I %= G, y = I - G + 1;
|
|
7153
7153
|
} else break e;
|
|
7154
7154
|
else {
|
|
7155
|
-
for (
|
|
7156
|
-
I %= G, y = I - G + m, R = y < 0 ? 0 : ue(
|
|
7155
|
+
for (g = d = A[S], m = 1; d >= 10; d /= 10, m++) ;
|
|
7156
|
+
I %= G, y = I - G + m, R = y < 0 ? 0 : ue(g / O[m - y - 1] % 10);
|
|
7157
7157
|
}
|
|
7158
|
-
if (
|
|
7159
|
-
if (I == 0 ? (A.length = S, d = 1, S--) : (A.length = S + 1, d =
|
|
7158
|
+
if (_ = _ || u < 0 || A[S + 1] != null || (y < 0 ? g : g % O[m - y - 1]), _ = f < 4 ? (R || _) && (f == 0 || f == (s.s < 0 ? 3 : 2)) : R > 5 || R == 5 && (f == 4 || _ || f == 6 && (I > 0 ? y > 0 ? g / O[m - y] : 0 : A[S - 1]) % 10 & 1 || f == (s.s < 0 ? 8 : 7)), u < 1 || !A[0]) return A.length = 0, _ ? (u -= s.e + 1, A[0] = O[(G - u % G) % G], s.e = -u || 0) : A[0] = s.e = 0, s;
|
|
7159
|
+
if (I == 0 ? (A.length = S, d = 1, S--) : (A.length = S + 1, d = O[G - I], A[S] = y > 0 ? ue(g / O[m - y] % O[y]) * d : 0), _) for (; ; ) if (S == 0) {
|
|
7160
7160
|
for (I = 1, y = A[0]; y >= 10; y /= 10, I++) ;
|
|
7161
7161
|
for (y = A[0] += d, d = 1; y >= 10; y /= 10, d++) ;
|
|
7162
7162
|
I != d && (s.e++, A[0] == pe && (A[0] = 1));
|
|
@@ -7171,7 +7171,7 @@ function wr(e) {
|
|
|
7171
7171
|
}
|
|
7172
7172
|
return s;
|
|
7173
7173
|
}
|
|
7174
|
-
a(
|
|
7174
|
+
a(k, "round");
|
|
7175
7175
|
function F(s) {
|
|
7176
7176
|
var u, f = s.e;
|
|
7177
7177
|
return f === null ? s.toString() : (u = fe(s.c), u = f <= p || f >= E ? it(u, f) : ye(u, f, "0"), s.s < 0 ? "-" + u : u);
|
|
@@ -7182,45 +7182,45 @@ function wr(e) {
|
|
|
7182
7182
|
}, i.comparedTo = function(s, u) {
|
|
7183
7183
|
return Me(this, new w(s, u));
|
|
7184
7184
|
}, i.decimalPlaces = i.dp = function(s, u) {
|
|
7185
|
-
var f,
|
|
7186
|
-
if (s != null) return J(s, 0, ee), u == null ? u = l : J(u, 0, 8),
|
|
7185
|
+
var f, _, m, I = this;
|
|
7186
|
+
if (s != null) return J(s, 0, ee), u == null ? u = l : J(u, 0, 8), k(new w(I), s + I.e + 1, u);
|
|
7187
7187
|
if (!(f = I.c)) return null;
|
|
7188
|
-
if (
|
|
7189
|
-
return
|
|
7188
|
+
if (_ = ((m = f.length - 1) - le(this.e / G)) * G, m = f[m]) for (; m % 10 == 0; m /= 10, _--) ;
|
|
7189
|
+
return _ < 0 && (_ = 0), _;
|
|
7190
7190
|
}, i.dividedBy = i.div = function(s, u) {
|
|
7191
7191
|
return t(this, new w(s, u), c, l);
|
|
7192
7192
|
}, i.dividedToIntegerBy = i.idiv = function(s, u) {
|
|
7193
7193
|
return t(this, new w(s, u), 0, 1);
|
|
7194
7194
|
}, i.exponentiatedBy = i.pow = function(s, u) {
|
|
7195
|
-
var f,
|
|
7195
|
+
var f, _, m, I, y, d, g, S, R, A = this;
|
|
7196
7196
|
if (s = new w(s), s.c && !s.isInteger()) throw Error(oe + "Exponent not an integer: " + F(s));
|
|
7197
7197
|
if (u != null && (u = new w(u)), d = s.e > 14, !A.c || !A.c[0] || A.c[0] == 1 && !A.e && A.c.length == 1 || !s.c || !s.c[0]) return R = new w(Math.pow(+F(A), d ? s.s * (2 - nt(s)) : +F(s))), u ? R.mod(u) : R;
|
|
7198
|
-
if (
|
|
7198
|
+
if (g = s.s < 0, u) {
|
|
7199
7199
|
if (u.c ? !u.c[0] : !u.s) return new w(NaN);
|
|
7200
|
-
|
|
7200
|
+
_ = !g && A.isInteger() && u.isInteger(), _ && (A = A.mod(u));
|
|
7201
7201
|
} else {
|
|
7202
|
-
if (s.e > 9 && (A.e > 0 || A.e < -1 || (A.e == 0 ? A.c[0] > 1 || d && A.c[1] >= 24e7 : A.c[0] < 8e13 || d && A.c[0] <= 9999975e7))) return I = A.s < 0 && nt(s) ? -0 : 0, A.e > -1 && (I = 1 / I), new w(
|
|
7203
|
-
D && (I =
|
|
7202
|
+
if (s.e > 9 && (A.e > 0 || A.e < -1 || (A.e == 0 ? A.c[0] > 1 || d && A.c[1] >= 24e7 : A.c[0] < 8e13 || d && A.c[0] <= 9999975e7))) return I = A.s < 0 && nt(s) ? -0 : 0, A.e > -1 && (I = 1 / I), new w(g ? 1 / I : I);
|
|
7203
|
+
D && (I = It(D / G + 2));
|
|
7204
7204
|
}
|
|
7205
|
-
for (d ? (f = new w(0.5),
|
|
7205
|
+
for (d ? (f = new w(0.5), g && (s.s = 1), S = nt(s)) : (m = Math.abs(+F(s)), S = m % 2), R = new w(o); ; ) {
|
|
7206
7206
|
if (S) {
|
|
7207
7207
|
if (R = R.times(A), !R.c) break;
|
|
7208
|
-
I ? R.c.length > I && (R.c.length = I) :
|
|
7208
|
+
I ? R.c.length > I && (R.c.length = I) : _ && (R = R.mod(u));
|
|
7209
7209
|
}
|
|
7210
7210
|
if (m) {
|
|
7211
7211
|
if (m = ue(m / 2), m === 0) break;
|
|
7212
7212
|
S = m % 2;
|
|
7213
|
-
} else if (s = s.times(f),
|
|
7213
|
+
} else if (s = s.times(f), k(s, s.e + 1, 1), s.e > 14) S = nt(s);
|
|
7214
7214
|
else {
|
|
7215
7215
|
if (m = +F(s), m === 0) break;
|
|
7216
7216
|
S = m % 2;
|
|
7217
7217
|
}
|
|
7218
|
-
A = A.times(A), I ? A.c && A.c.length > I && (A.c.length = I) :
|
|
7218
|
+
A = A.times(A), I ? A.c && A.c.length > I && (A.c.length = I) : _ && (A = A.mod(u));
|
|
7219
7219
|
}
|
|
7220
|
-
return
|
|
7220
|
+
return _ ? R : (g && (R = o.div(R)), u ? R.mod(u) : I ? k(R, D, l, y) : R);
|
|
7221
7221
|
}, i.integerValue = function(s) {
|
|
7222
7222
|
var u = new w(this);
|
|
7223
|
-
return s == null ? s = l : J(s, 0, 8),
|
|
7223
|
+
return s == null ? s = l : J(s, 0, 8), k(u, u.e + 1, s);
|
|
7224
7224
|
}, i.isEqualTo = i.eq = function(s, u) {
|
|
7225
7225
|
return Me(this, new w(s, u)) === 0;
|
|
7226
7226
|
}, i.isFinite = function() {
|
|
@@ -7244,118 +7244,118 @@ function wr(e) {
|
|
|
7244
7244
|
}, i.isZero = function() {
|
|
7245
7245
|
return !!this.c && this.c[0] == 0;
|
|
7246
7246
|
}, i.minus = function(s, u) {
|
|
7247
|
-
var f,
|
|
7247
|
+
var f, _, m, I, y = this, d = y.s;
|
|
7248
7248
|
if (s = new w(s, u), u = s.s, !d || !u) return new w(NaN);
|
|
7249
7249
|
if (d != u) return s.s = -u, y.plus(s);
|
|
7250
|
-
var
|
|
7251
|
-
if (!
|
|
7250
|
+
var g = y.e / G, S = s.e / G, R = y.c, A = s.c;
|
|
7251
|
+
if (!g || !S) {
|
|
7252
7252
|
if (!R || !A) return R ? (s.s = -u, s) : new w(A ? y : NaN);
|
|
7253
7253
|
if (!R[0] || !A[0]) return A[0] ? (s.s = -u, s) : new w(R[0] ? y : l == 3 ? -0 : 0);
|
|
7254
7254
|
}
|
|
7255
|
-
if (
|
|
7256
|
-
for ((I = d < 0) ? (d = -d, m = R) : (S =
|
|
7255
|
+
if (g = le(g), S = le(S), R = R.slice(), d = g - S) {
|
|
7256
|
+
for ((I = d < 0) ? (d = -d, m = R) : (S = g, m = A), m.reverse(), u = d; u--; m.push(0)) ;
|
|
7257
7257
|
m.reverse();
|
|
7258
|
-
} else for (
|
|
7258
|
+
} else for (_ = (I = (d = R.length) < (u = A.length)) ? d : u, d = u = 0; u < _; u++) if (R[u] != A[u]) {
|
|
7259
7259
|
I = R[u] < A[u];
|
|
7260
7260
|
break;
|
|
7261
7261
|
}
|
|
7262
|
-
if (I && (m = R, R = A, A = m, s.s = -s.s), u = (
|
|
7263
|
-
for (u = pe - 1;
|
|
7264
|
-
if (R[--
|
|
7265
|
-
for (f =
|
|
7266
|
-
--R[f], R[
|
|
7262
|
+
if (I && (m = R, R = A, A = m, s.s = -s.s), u = (_ = A.length) - (f = R.length), u > 0) for (; u--; R[f++] = 0) ;
|
|
7263
|
+
for (u = pe - 1; _ > d; ) {
|
|
7264
|
+
if (R[--_] < A[_]) {
|
|
7265
|
+
for (f = _; f && !R[--f]; R[f] = u) ;
|
|
7266
|
+
--R[f], R[_] += pe;
|
|
7267
7267
|
}
|
|
7268
|
-
R[
|
|
7268
|
+
R[_] -= A[_];
|
|
7269
7269
|
}
|
|
7270
7270
|
for (; R[0] == 0; R.splice(0, 1), --S) ;
|
|
7271
7271
|
return R[0] ? U(s, R, S) : (s.s = l == 3 ? -1 : 1, s.c = [s.e = 0], s);
|
|
7272
7272
|
}, i.modulo = i.mod = function(s, u) {
|
|
7273
|
-
var f,
|
|
7274
|
-
return s = new w(s, u), !m.c || !s.s || s.c && !s.c[0] ? new w(NaN) : !s.c || m.c && !m.c[0] ? new w(m) : (C == 9 ? (
|
|
7273
|
+
var f, _, m = this;
|
|
7274
|
+
return s = new w(s, u), !m.c || !s.s || s.c && !s.c[0] ? new w(NaN) : !s.c || m.c && !m.c[0] ? new w(m) : (C == 9 ? (_ = s.s, s.s = 1, f = t(m, s, 0, 3), s.s = _, f.s *= _) : f = t(m, s, 0, C), s = m.minus(f.times(s)), !s.c[0] && C == 1 && (s.s = m.s), s);
|
|
7275
7275
|
}, i.multipliedBy = i.times = function(s, u) {
|
|
7276
|
-
var f,
|
|
7276
|
+
var f, _, m, I, y, d, g, S, R, A, O, B, $, j, q, N = this, H = N.c, Y = (s = new w(s, u)).c;
|
|
7277
7277
|
if (!H || !Y || !H[0] || !Y[0]) return !N.s || !s.s || H && !H[0] && !Y || Y && !Y[0] && !H ? s.c = s.e = s.s = null : (s.s *= N.s, !H || !Y ? s.c = s.e = null : (s.c = [0], s.e = 0)), s;
|
|
7278
|
-
for (
|
|
7278
|
+
for (_ = le(N.e / G) + le(s.e / G), s.s *= N.s, g = H.length, A = Y.length, g < A && ($ = H, H = Y, Y = $, m = g, g = A, A = m), m = g + A, $ = []; m--; $.push(0)) ;
|
|
7279
7279
|
for (j = pe, q = Ce, m = A; --m >= 0; ) {
|
|
7280
|
-
for (f = 0,
|
|
7281
|
-
|
|
7280
|
+
for (f = 0, O = Y[m] % q, B = Y[m] / q | 0, y = g, I = m + y; I > m; ) S = H[--y] % q, R = H[y] / q | 0, d = B * S + R * O, S = O * S + d % q * q + $[I] + f, f = (S / j | 0) + (d / q | 0) + B * R, $[I--] = S % j;
|
|
7281
|
+
$[I] = f;
|
|
7282
7282
|
}
|
|
7283
|
-
return f ? ++
|
|
7283
|
+
return f ? ++_ : $.splice(0, 1), U(s, $, _);
|
|
7284
7284
|
}, i.negated = function() {
|
|
7285
7285
|
var s = new w(this);
|
|
7286
7286
|
return s.s = -s.s || null, s;
|
|
7287
7287
|
}, i.plus = function(s, u) {
|
|
7288
|
-
var f,
|
|
7288
|
+
var f, _ = this, m = _.s;
|
|
7289
7289
|
if (s = new w(s, u), u = s.s, !m || !u) return new w(NaN);
|
|
7290
|
-
if (m != u) return s.s = -u,
|
|
7291
|
-
var I =
|
|
7290
|
+
if (m != u) return s.s = -u, _.minus(s);
|
|
7291
|
+
var I = _.e / G, y = s.e / G, d = _.c, g = s.c;
|
|
7292
7292
|
if (!I || !y) {
|
|
7293
|
-
if (!d || !
|
|
7294
|
-
if (!d[0] || !
|
|
7293
|
+
if (!d || !g) return new w(m / 0);
|
|
7294
|
+
if (!d[0] || !g[0]) return g[0] ? s : new w(d[0] ? _ : m * 0);
|
|
7295
7295
|
}
|
|
7296
7296
|
if (I = le(I), y = le(y), d = d.slice(), m = I - y) {
|
|
7297
|
-
for (m > 0 ? (y = I, f =
|
|
7297
|
+
for (m > 0 ? (y = I, f = g) : (m = -m, f = d), f.reverse(); m--; f.push(0)) ;
|
|
7298
7298
|
f.reverse();
|
|
7299
7299
|
}
|
|
7300
|
-
for (m = d.length, u =
|
|
7300
|
+
for (m = d.length, u = g.length, m - u < 0 && (f = g, g = d, d = f, u = m), m = 0; u; ) m = (d[--u] = d[u] + g[u] + m) / pe | 0, d[u] = pe === d[u] ? 0 : d[u] % pe;
|
|
7301
7301
|
return m && (d = [m].concat(d), ++y), U(s, d, y);
|
|
7302
7302
|
}, i.precision = i.sd = function(s, u) {
|
|
7303
|
-
var f,
|
|
7304
|
-
if (s != null && s !== !!s) return J(s, 1, ee), u == null ? u = l : J(u, 0, 8),
|
|
7303
|
+
var f, _, m, I = this;
|
|
7304
|
+
if (s != null && s !== !!s) return J(s, 1, ee), u == null ? u = l : J(u, 0, 8), k(new w(I), s, u);
|
|
7305
7305
|
if (!(f = I.c)) return null;
|
|
7306
|
-
if (m = f.length - 1,
|
|
7307
|
-
for (; m % 10 == 0; m /= 10,
|
|
7308
|
-
for (m = f[0]; m >= 10; m /= 10,
|
|
7306
|
+
if (m = f.length - 1, _ = m * G + 1, m = f[m]) {
|
|
7307
|
+
for (; m % 10 == 0; m /= 10, _--) ;
|
|
7308
|
+
for (m = f[0]; m >= 10; m /= 10, _++) ;
|
|
7309
7309
|
}
|
|
7310
|
-
return s && I.e + 1 >
|
|
7310
|
+
return s && I.e + 1 > _ && (_ = I.e + 1), _;
|
|
7311
7311
|
}, i.shiftedBy = function(s) {
|
|
7312
|
-
return J(s, -
|
|
7312
|
+
return J(s, -St, St), this.times("1e" + s);
|
|
7313
7313
|
}, i.squareRoot = i.sqrt = function() {
|
|
7314
|
-
var s, u, f,
|
|
7314
|
+
var s, u, f, _, m, I = this, y = I.c, d = I.s, g = I.e, S = c + 4, R = new w("0.5");
|
|
7315
7315
|
if (d !== 1 || !y || !y[0]) return new w(!d || d < 0 && (!y || y[0]) ? NaN : y ? I : 1 / 0);
|
|
7316
|
-
if (d = Math.sqrt(+F(I)), d == 0 || d == 1 / 0 ? (u = fe(y), (u.length +
|
|
7317
|
-
for (
|
|
7318
|
-
if (!
|
|
7316
|
+
if (d = Math.sqrt(+F(I)), d == 0 || d == 1 / 0 ? (u = fe(y), (u.length + g) % 2 == 0 && (u += "0"), d = Math.sqrt(+u), g = le((g + 1) / 2) - (g < 0 || g % 2), d == 1 / 0 ? u = "5e" + g : (u = d.toExponential(), u = u.slice(0, u.indexOf("e") + 1) + g), f = new w(u)) : f = new w(d + ""), f.c[0]) {
|
|
7317
|
+
for (g = f.e, d = g + S, d < 3 && (d = 0); ; ) if (m = f, f = R.times(m.plus(t(I, m, S, 1))), fe(m.c).slice(0, d) === (u = fe(f.c)).slice(0, d)) if (f.e < g && --d, u = u.slice(d - 3, d + 1), u == "9999" || !_ && u == "4999") {
|
|
7318
|
+
if (!_ && (k(m, m.e + c + 2, 0), m.times(m).eq(I))) {
|
|
7319
7319
|
f = m;
|
|
7320
7320
|
break;
|
|
7321
7321
|
}
|
|
7322
|
-
S += 4, d += 4,
|
|
7322
|
+
S += 4, d += 4, _ = 1;
|
|
7323
7323
|
} else {
|
|
7324
|
-
(!+u || !+u.slice(1) && u.charAt(0) == "5") && (
|
|
7324
|
+
(!+u || !+u.slice(1) && u.charAt(0) == "5") && (k(f, f.e + c + 2, 1), s = !f.times(f).eq(I));
|
|
7325
7325
|
break;
|
|
7326
7326
|
}
|
|
7327
7327
|
}
|
|
7328
|
-
return
|
|
7328
|
+
return k(f, f.e + c + 1, l, s);
|
|
7329
7329
|
}, i.toExponential = function(s, u) {
|
|
7330
|
-
return s != null && (J(s, 0, ee), s++),
|
|
7330
|
+
return s != null && (J(s, 0, ee), s++), L(this, s, u, 1);
|
|
7331
7331
|
}, i.toFixed = function(s, u) {
|
|
7332
|
-
return s != null && (J(s, 0, ee), s = s + this.e + 1),
|
|
7332
|
+
return s != null && (J(s, 0, ee), s = s + this.e + 1), L(this, s, u);
|
|
7333
7333
|
}, i.toFormat = function(s, u, f) {
|
|
7334
|
-
var
|
|
7334
|
+
var _, m = this;
|
|
7335
7335
|
if (f == null) s != null && u && typeof u == "object" ? (f = u, u = null) : s && typeof s == "object" ? (f = s, s = u = null) : f = M;
|
|
7336
7336
|
else if (typeof f != "object") throw Error(oe + "Argument not an object: " + f);
|
|
7337
|
-
if (
|
|
7338
|
-
var I, y =
|
|
7339
|
-
if (
|
|
7340
|
-
for (I =
|
|
7341
|
-
|
|
7337
|
+
if (_ = m.toFixed(s, u), m.c) {
|
|
7338
|
+
var I, y = _.split("."), d = +f.groupSize, g = +f.secondaryGroupSize, S = f.groupSeparator || "", R = y[0], A = y[1], O = m.s < 0, B = O ? R.slice(1) : R, $ = B.length;
|
|
7339
|
+
if (g && (I = d, d = g, g = I, $ -= I), d > 0 && $ > 0) {
|
|
7340
|
+
for (I = $ % d || d, R = B.substr(0, I); I < $; I += d) R += S + B.substr(I, d);
|
|
7341
|
+
g > 0 && (R += S + B.slice(I)), O && (R = "-" + R);
|
|
7342
7342
|
}
|
|
7343
|
-
|
|
7343
|
+
_ = A ? R + (f.decimalSeparator || "") + ((g = +f.fractionGroupSize) ? A.replace(new RegExp("\\d{" + g + "}\\B", "g"), "$&" + (f.fractionGroupSeparator || "")) : A) : R;
|
|
7344
7344
|
}
|
|
7345
|
-
return (f.prefix || "") +
|
|
7345
|
+
return (f.prefix || "") + _ + (f.suffix || "");
|
|
7346
7346
|
}, i.toFraction = function(s) {
|
|
7347
|
-
var u, f,
|
|
7347
|
+
var u, f, _, m, I, y, d, g, S, R, A, O, B = this, $ = B.c;
|
|
7348
7348
|
if (s != null && (d = new w(s), !d.isInteger() && (d.c || d.s !== 1) || d.lt(o))) throw Error(oe + "Argument " + (d.isInteger() ? "out of range: " : "not an integer: ") + F(d));
|
|
7349
|
-
if (
|
|
7350
|
-
for (u = new w(o), S = f = new w(o),
|
|
7351
|
-
return m = t(s.minus(f),
|
|
7349
|
+
if (!$) return new w(B);
|
|
7350
|
+
for (u = new w(o), S = f = new w(o), _ = g = new w(o), O = fe($), I = u.e = O.length - B.e - 1, u.c[0] = Rt[(y = I % G) < 0 ? G + y : y], s = !s || d.comparedTo(u) > 0 ? I > 0 ? u : S : d, y = T, T = 1 / 0, d = new w(O), g.c[0] = 0; R = t(d, u, 0, 1), m = f.plus(R.times(_)), m.comparedTo(s) != 1; ) f = _, _ = m, S = g.plus(R.times(m = S)), g = m, u = d.minus(R.times(m = u)), d = m;
|
|
7351
|
+
return m = t(s.minus(f), _, 0, 1), g = g.plus(m.times(S)), f = f.plus(m.times(_)), g.s = S.s = B.s, I = I * 2, A = t(S, _, I, l).minus(B).abs().comparedTo(t(g, f, I, l).minus(B).abs()) < 1 ? [S, _] : [g, f], T = y, A;
|
|
7352
7352
|
}, i.toNumber = function() {
|
|
7353
7353
|
return +F(this);
|
|
7354
7354
|
}, i.toPrecision = function(s, u) {
|
|
7355
|
-
return s != null && J(s, 1, ee),
|
|
7355
|
+
return s != null && J(s, 1, ee), L(this, s, u, 2);
|
|
7356
7356
|
}, i.toString = function(s) {
|
|
7357
|
-
var u, f = this,
|
|
7358
|
-
return m === null ?
|
|
7357
|
+
var u, f = this, _ = f.s, m = f.e;
|
|
7358
|
+
return m === null ? _ ? (u = "Infinity", _ < 0 && (u = "-" + u)) : u = "NaN" : (s == null ? u = m <= p || m >= E ? it(fe(f.c), m) : ye(fe(f.c), m, "0") : s === 10 && P ? (f = k(new w(f), c + m + 1, l), u = ye(fe(f.c), f.e, "0")) : (J(s, 2, b.length, "Base"), u = r(ye(fe(f.c), m, "0"), 10, s, _, true)), _ < 0 && f.c[0] && (u = "-" + u)), u;
|
|
7359
7359
|
}, i.valueOf = i.toJSON = function() {
|
|
7360
7360
|
return F(this);
|
|
7361
7361
|
}, i._isBigNumber = true, i[Symbol.toStringTag] = "BigNumber", i[Symbol.for("nodejs.util.inspect.custom")] = i.valueOf, e != null && w.set(e), w;
|
|
@@ -7412,10 +7412,10 @@ function ye(e, t, r) {
|
|
|
7412
7412
|
}
|
|
7413
7413
|
a(ye, "toFixedPoint");
|
|
7414
7414
|
var Si = wr();
|
|
7415
|
-
const Ri = 24,
|
|
7415
|
+
const Ri = 24, We = 32, Ti = a(() => typeof globalThis < "u" && globalThis.crypto && typeof globalThis.crypto.getRandomValues == "function" ? () => {
|
|
7416
7416
|
const e = new Uint32Array(1);
|
|
7417
7417
|
return globalThis.crypto.getRandomValues(e), e[0] / 4294967296;
|
|
7418
|
-
} : Math.random, "createRandom"),
|
|
7418
|
+
} : Math.random, "createRandom"), Tt = Ti(), yt = a((e = 4, t = Tt) => {
|
|
7419
7419
|
let r = "";
|
|
7420
7420
|
for (; r.length < e; ) r = r + Math.floor(t() * 36).toString(36);
|
|
7421
7421
|
return r;
|
|
@@ -7428,14 +7428,14 @@ function yi(e) {
|
|
|
7428
7428
|
a(yi, "bufToBigInt");
|
|
7429
7429
|
const Ar = a((e = "") => {
|
|
7430
7430
|
const t = new TextEncoder();
|
|
7431
|
-
return yi(
|
|
7432
|
-
}, "hash"), br = Array.from({ length: 26 }, (e, t) => String.fromCharCode(t + 97)), wi = a((e) => br[Math.floor(e() * br.length)], "randomLetter"), Ai = a(({ globalObj: e = typeof global < "u" ? global : typeof window < "u" ? window : {}, random: t =
|
|
7433
|
-
const r = Object.keys(e).toString(), n = r.length ? r +
|
|
7434
|
-
return Ar(n).substring(0,
|
|
7435
|
-
}, "createFingerprint"), bi = a((e) => () => e++, "createCounter"), vi = 476782367, Ci = a(({ random: e =
|
|
7436
|
-
if (r >
|
|
7431
|
+
return yi(_i(t.encode(e))).toString(36).slice(1);
|
|
7432
|
+
}, "hash"), br = Array.from({ length: 26 }, (e, t) => String.fromCharCode(t + 97)), wi = a((e) => br[Math.floor(e() * br.length)], "randomLetter"), Ai = a(({ globalObj: e = typeof global < "u" ? global : typeof window < "u" ? window : {}, random: t = Tt } = {}) => {
|
|
7433
|
+
const r = Object.keys(e).toString(), n = r.length ? r + yt(We, t) : yt(We, t);
|
|
7434
|
+
return Ar(n).substring(0, We);
|
|
7435
|
+
}, "createFingerprint"), bi = a((e) => () => e++, "createCounter"), vi = 476782367, Ci = a(({ random: e = Tt, counter: t = bi(Math.floor(e() * vi)), length: r = Ri, fingerprint: n = Ai({ random: e }) } = {}) => {
|
|
7436
|
+
if (r > We) throw new Error(`Length must be between 2 and ${We}. Received: ${r}`);
|
|
7437
7437
|
return a(function() {
|
|
7438
|
-
const o = wi(e), c = Date.now().toString(36), l = t().toString(36), p =
|
|
7438
|
+
const o = wi(e), c = Date.now().toString(36), l = t().toString(36), p = yt(r, e), E = `${c + p + l + n}`;
|
|
7439
7439
|
return `${o + Ar(E).substring(1, r)}`;
|
|
7440
7440
|
}, "cuid2");
|
|
7441
7441
|
}, "init"), Ye = Ui(Ci);
|
|
@@ -7450,10 +7450,10 @@ function vr(e) {
|
|
|
7450
7450
|
}
|
|
7451
7451
|
a(vr, "getDefaultExportFromCjs");
|
|
7452
7452
|
var xe = {}, Cr;
|
|
7453
|
-
function
|
|
7453
|
+
function Pi() {
|
|
7454
7454
|
if (Cr) return xe;
|
|
7455
7455
|
Cr = 1, Object.defineProperty(xe, "__esModule", { value: true }), xe.isBinaryFileSync = xe.isBinaryFile = void 0;
|
|
7456
|
-
const e =
|
|
7456
|
+
const e = qe, t = Fn, r = (0, t.promisify)(e.stat), n = (0, t.promisify)(e.open), i = (0, t.promisify)(e.close), o = 512, c = 3;
|
|
7457
7457
|
class l {
|
|
7458
7458
|
static {
|
|
7459
7459
|
a(this, "Reader");
|
|
@@ -7462,8 +7462,8 @@ function Li() {
|
|
|
7462
7462
|
size;
|
|
7463
7463
|
offset;
|
|
7464
7464
|
error;
|
|
7465
|
-
constructor(
|
|
7466
|
-
this.fileBuffer =
|
|
7465
|
+
constructor(P, w) {
|
|
7466
|
+
this.fileBuffer = P, this.size = w, this.offset = 0, this.error = false;
|
|
7467
7467
|
}
|
|
7468
7468
|
hasError() {
|
|
7469
7469
|
return this.error;
|
|
@@ -7471,25 +7471,25 @@ function Li() {
|
|
|
7471
7471
|
nextByte() {
|
|
7472
7472
|
return this.offset === this.size || this.hasError() ? (this.error = true, 255) : this.fileBuffer[this.offset++];
|
|
7473
7473
|
}
|
|
7474
|
-
next(
|
|
7474
|
+
next(P) {
|
|
7475
7475
|
const w = new Array();
|
|
7476
|
-
for (let
|
|
7476
|
+
for (let L = 0; L < P; L++) {
|
|
7477
7477
|
if (this.error) return w;
|
|
7478
|
-
w[
|
|
7478
|
+
w[L] = this.nextByte();
|
|
7479
7479
|
}
|
|
7480
7480
|
return w;
|
|
7481
7481
|
}
|
|
7482
7482
|
}
|
|
7483
7483
|
function p(b) {
|
|
7484
|
-
let
|
|
7484
|
+
let P = 0, w = 0;
|
|
7485
7485
|
for (; !b.hasError(); ) {
|
|
7486
|
-
const
|
|
7487
|
-
if (w = w | (
|
|
7488
|
-
if (
|
|
7486
|
+
const L = b.nextByte();
|
|
7487
|
+
if (w = w | (L & 127) << 7 * P, (L & 128) === 0) break;
|
|
7488
|
+
if (P >= 10) {
|
|
7489
7489
|
b.error = true;
|
|
7490
7490
|
break;
|
|
7491
7491
|
}
|
|
7492
|
-
|
|
7492
|
+
P++;
|
|
7493
7493
|
}
|
|
7494
7494
|
return w;
|
|
7495
7495
|
}
|
|
@@ -7501,70 +7501,70 @@ function Li() {
|
|
|
7501
7501
|
case 1:
|
|
7502
7502
|
return b.next(8), true;
|
|
7503
7503
|
case 2:
|
|
7504
|
-
const
|
|
7505
|
-
return b.next(
|
|
7504
|
+
const L = p(b);
|
|
7505
|
+
return b.next(L), true;
|
|
7506
7506
|
case 5:
|
|
7507
7507
|
return b.next(4), true;
|
|
7508
7508
|
}
|
|
7509
7509
|
return false;
|
|
7510
7510
|
}
|
|
7511
7511
|
a(E, "readProtoMessage");
|
|
7512
|
-
function h(b,
|
|
7513
|
-
const w = new l(b,
|
|
7514
|
-
let
|
|
7512
|
+
function h(b, P) {
|
|
7513
|
+
const w = new l(b, P);
|
|
7514
|
+
let L = 0;
|
|
7515
7515
|
for (; ; ) {
|
|
7516
7516
|
if (!E(w) && !w.hasError()) return false;
|
|
7517
7517
|
if (w.hasError()) break;
|
|
7518
|
-
|
|
7518
|
+
L++;
|
|
7519
7519
|
}
|
|
7520
|
-
return
|
|
7520
|
+
return L > 0;
|
|
7521
7521
|
}
|
|
7522
7522
|
a(h, "isBinaryProto");
|
|
7523
|
-
async function T(b,
|
|
7523
|
+
async function T(b, P) {
|
|
7524
7524
|
if (D(b)) {
|
|
7525
7525
|
const w = await r(b);
|
|
7526
7526
|
M(w);
|
|
7527
|
-
const
|
|
7528
|
-
return new Promise((U,
|
|
7529
|
-
e.read(
|
|
7530
|
-
if (i(
|
|
7527
|
+
const L = await n(b, "r"), x = Buffer.alloc(o + c);
|
|
7528
|
+
return new Promise((U, k) => {
|
|
7529
|
+
e.read(L, x, 0, o + c, 0, (F, s, u) => {
|
|
7530
|
+
if (i(L), F) k(F);
|
|
7531
7531
|
else try {
|
|
7532
7532
|
U(C(x, s));
|
|
7533
7533
|
} catch (f) {
|
|
7534
|
-
|
|
7534
|
+
k(f);
|
|
7535
7535
|
}
|
|
7536
7536
|
});
|
|
7537
7537
|
});
|
|
7538
|
-
} else return
|
|
7538
|
+
} else return P === void 0 && (P = b.length), C(b, P);
|
|
7539
7539
|
}
|
|
7540
7540
|
a(T, "isBinaryFile"), xe.isBinaryFile = T;
|
|
7541
|
-
function v(b,
|
|
7541
|
+
function v(b, P) {
|
|
7542
7542
|
if (D(b)) {
|
|
7543
7543
|
const w = e.statSync(b);
|
|
7544
7544
|
M(w);
|
|
7545
|
-
const
|
|
7546
|
-
return e.closeSync(
|
|
7547
|
-
} else return
|
|
7545
|
+
const L = e.openSync(b, "r"), x = Buffer.alloc(o + c), U = e.readSync(L, x, 0, o + c, 0);
|
|
7546
|
+
return e.closeSync(L), C(x, U);
|
|
7547
|
+
} else return P === void 0 && (P = b.length), C(b, P);
|
|
7548
7548
|
}
|
|
7549
7549
|
a(v, "isBinaryFileSync"), xe.isBinaryFileSync = v;
|
|
7550
|
-
function C(b,
|
|
7551
|
-
if (
|
|
7550
|
+
function C(b, P) {
|
|
7551
|
+
if (P === 0) return false;
|
|
7552
7552
|
let w = 0;
|
|
7553
|
-
const
|
|
7554
|
-
if (
|
|
7555
|
-
if (
|
|
7556
|
-
if (
|
|
7553
|
+
const L = Math.min(P, o + c), x = Math.min(L, o);
|
|
7554
|
+
if (P >= 3 && b[0] === 239 && b[1] === 187 && b[2] === 191 || P >= 4 && b[0] === 0 && b[1] === 0 && b[2] === 254 && b[3] === 255 || P >= 4 && b[0] === 255 && b[1] === 254 && b[2] === 0 && b[3] === 0 || P >= 4 && b[0] === 132 && b[1] === 49 && b[2] === 149 && b[3] === 51) return false;
|
|
7555
|
+
if (L >= 5 && b.slice(0, 5).toString() === "%PDF-") return true;
|
|
7556
|
+
if (P >= 2 && b[0] === 254 && b[1] === 255 || P >= 2 && b[0] === 255 && b[1] === 254) return false;
|
|
7557
7557
|
for (let U = 0; U < x; U++) {
|
|
7558
7558
|
if (b[U] === 0) return true;
|
|
7559
7559
|
if ((b[U] < 7 || b[U] > 14) && (b[U] < 32 || b[U] > 127)) {
|
|
7560
|
-
if (b[U] >= 192 && b[U] <= 223 && U + 1 <
|
|
7560
|
+
if (b[U] >= 192 && b[U] <= 223 && U + 1 < L) {
|
|
7561
7561
|
if (U++, b[U] >= 128 && b[U] <= 191) continue;
|
|
7562
|
-
} else if (b[U] >= 224 && b[U] <= 239 && U + 2 <
|
|
7562
|
+
} else if (b[U] >= 224 && b[U] <= 239 && U + 2 < L) {
|
|
7563
7563
|
if (U++, b[U] >= 128 && b[U] <= 191 && b[U + 1] >= 128 && b[U + 1] <= 191) {
|
|
7564
7564
|
U++;
|
|
7565
7565
|
continue;
|
|
7566
7566
|
}
|
|
7567
|
-
} else if (b[U] >= 240 && b[U] <= 247 && U + 3 <
|
|
7567
|
+
} else if (b[U] >= 240 && b[U] <= 247 && U + 3 < L && (U++, b[U] >= 128 && b[U] <= 191 && b[U + 1] >= 128 && b[U + 1] <= 191 && b[U + 2] >= 128 && b[U + 2] <= 191)) {
|
|
7568
7568
|
U += 2;
|
|
7569
7569
|
continue;
|
|
7570
7570
|
}
|
|
@@ -7583,18 +7583,18 @@ function Li() {
|
|
|
7583
7583
|
}
|
|
7584
7584
|
return a(M, "isStatFile"), xe;
|
|
7585
7585
|
}
|
|
7586
|
-
a(
|
|
7587
|
-
var
|
|
7586
|
+
a(Pi, "requireLib");
|
|
7587
|
+
var Li = Pi(), Q = Uint8Array, ae = Uint16Array, wt = Int32Array, ot = new Q([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]), st = new Q([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]), At = new Q([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Ur = a(function(e, t) {
|
|
7588
7588
|
for (var r = new ae(31), n = 0; n < 31; ++n) r[n] = t += 1 << e[n - 1];
|
|
7589
|
-
for (var i = new
|
|
7589
|
+
for (var i = new wt(r[30]), n = 1; n < 30; ++n) for (var o = r[n]; o < r[n + 1]; ++o) i[o] = o - r[n] << 5 | n;
|
|
7590
7590
|
return { b: r, r: i };
|
|
7591
|
-
}, "freb"), Br = Ur(ot, 2),
|
|
7592
|
-
|
|
7593
|
-
for (var
|
|
7594
|
-
var Ue = (
|
|
7595
|
-
Ue = (Ue & 52428) >> 2 | (Ue & 13107) << 2, Ue = (Ue & 61680) >> 4 | (Ue & 3855) << 4,
|
|
7591
|
+
}, "freb"), Br = Ur(ot, 2), Pr = Br.b, bt = Br.r;
|
|
7592
|
+
Pr[28] = 258, bt[258] = 28;
|
|
7593
|
+
for (var Lr = Ur(st, 0), Oi = Lr.b, Or = Lr.r, vt = new ae(32768), V = 0; V < 32768; ++V) {
|
|
7594
|
+
var Ue = (V & 43690) >> 1 | (V & 21845) << 1;
|
|
7595
|
+
Ue = (Ue & 52428) >> 2 | (Ue & 13107) << 2, Ue = (Ue & 61680) >> 4 | (Ue & 3855) << 4, vt[V] = ((Ue & 65280) >> 8 | (Ue & 255) << 8) >> 1;
|
|
7596
7596
|
}
|
|
7597
|
-
for (var
|
|
7597
|
+
for (var _e = a((function(e, t, r) {
|
|
7598
7598
|
for (var n = e.length, i = 0, o = new ae(t); i < n; ++i) e[i] && ++o[e[i] - 1];
|
|
7599
7599
|
var c = new ae(t);
|
|
7600
7600
|
for (i = 1; i < t; ++i) c[i] = c[i - 1] + o[i - 1] << 1;
|
|
@@ -7602,24 +7602,24 @@ for (var ge = a((function(e, t, r) {
|
|
|
7602
7602
|
if (r) {
|
|
7603
7603
|
l = new ae(1 << t);
|
|
7604
7604
|
var p = 15 - t;
|
|
7605
|
-
for (i = 0; i < n; ++i) if (e[i]) for (var E = i << 4 | e[i], h = t - e[i], T = c[e[i] - 1]++ << h, v = T | (1 << h) - 1; T <= v; ++T) l[
|
|
7606
|
-
} else for (l = new ae(n), i = 0; i < n; ++i) e[i] && (l[i] =
|
|
7605
|
+
for (i = 0; i < n; ++i) if (e[i]) for (var E = i << 4 | e[i], h = t - e[i], T = c[e[i] - 1]++ << h, v = T | (1 << h) - 1; T <= v; ++T) l[vt[T] >> p] = E;
|
|
7606
|
+
} else for (l = new ae(n), i = 0; i < n; ++i) e[i] && (l[i] = vt[c[e[i] - 1]++] >> 15 - e[i]);
|
|
7607
7607
|
return l;
|
|
7608
|
-
}), "hMap"), Be = new Q(288),
|
|
7609
|
-
for (var
|
|
7610
|
-
for (var
|
|
7611
|
-
for (var
|
|
7612
|
-
for (var Je = new Q(32),
|
|
7613
|
-
var Ni =
|
|
7608
|
+
}), "hMap"), Be = new Q(288), V = 0; V < 144; ++V) Be[V] = 8;
|
|
7609
|
+
for (var V = 144; V < 256; ++V) Be[V] = 9;
|
|
7610
|
+
for (var V = 256; V < 280; ++V) Be[V] = 7;
|
|
7611
|
+
for (var V = 280; V < 288; ++V) Be[V] = 8;
|
|
7612
|
+
for (var Je = new Q(32), V = 0; V < 32; ++V) Je[V] = 5;
|
|
7613
|
+
var Ni = _e(Be, 9, 0), Di = _e(Be, 9, 1), Mi = _e(Je, 5, 0), xi = _e(Je, 5, 1), Ct = a(function(e) {
|
|
7614
7614
|
for (var t = e[0], r = 1; r < e.length; ++r) e[r] > t && (t = e[r]);
|
|
7615
7615
|
return t;
|
|
7616
7616
|
}, "max"), me = a(function(e, t, r) {
|
|
7617
7617
|
var n = t / 8 | 0;
|
|
7618
7618
|
return (e[n] | e[n + 1] << 8) >> (t & 7) & r;
|
|
7619
|
-
}, "bits"),
|
|
7619
|
+
}, "bits"), Ut = a(function(e, t) {
|
|
7620
7620
|
var r = t / 8 | 0;
|
|
7621
7621
|
return (e[r] | e[r + 1] << 8 | e[r + 2] << 16) >> (t & 7);
|
|
7622
|
-
}, "bits16"),
|
|
7622
|
+
}, "bits16"), Bt = a(function(e) {
|
|
7623
7623
|
return (e + 7) / 8 | 0;
|
|
7624
7624
|
}, "shft"), ze = a(function(e, t, r) {
|
|
7625
7625
|
return (t == null || t < 0) && (t = 0), (r == null || r > e.length) && (r = e.length), new Q(e.subarray(t, r));
|
|
@@ -7627,7 +7627,7 @@ var Ni = ge(Be, 9, 0), Di = ge(Be, 9, 1), Mi = ge(Je, 5, 0), xi = ge(Je, 5, 1),
|
|
|
7627
7627
|
var n = new Error(t || Gi[e]);
|
|
7628
7628
|
if (n.code = e, Error.captureStackTrace && Error.captureStackTrace(n, ne), !r) throw n;
|
|
7629
7629
|
return n;
|
|
7630
|
-
}, "err"),
|
|
7630
|
+
}, "err"), $i = a(function(e, t, r, n) {
|
|
7631
7631
|
var i = e.length, o = n ? n.length : 0;
|
|
7632
7632
|
if (!i || t.f && !t.l) return r || new Q(0);
|
|
7633
7633
|
var c = !r, l = c || t.i != 2, p = t.i;
|
|
@@ -7638,69 +7638,69 @@ var Ni = ge(Be, 9, 0), Di = ge(Be, 9, 1), Mi = ge(Je, 5, 0), xi = ge(Je, 5, 1),
|
|
|
7638
7638
|
var X = new Q(Math.max(de * 2, re));
|
|
7639
7639
|
X.set(r), r = X;
|
|
7640
7640
|
}
|
|
7641
|
-
}, "cbuf"), h = t.f || 0, T = t.p || 0, v = t.b || 0, C = t.l, D = t.d, M = t.m, b = t.n,
|
|
7641
|
+
}, "cbuf"), h = t.f || 0, T = t.p || 0, v = t.b || 0, C = t.l, D = t.d, M = t.m, b = t.n, P = i * 8;
|
|
7642
7642
|
do {
|
|
7643
7643
|
if (!C) {
|
|
7644
7644
|
h = me(e, T, 1);
|
|
7645
7645
|
var w = me(e, T + 1, 3);
|
|
7646
7646
|
if (T += 3, w) if (w == 1) C = Di, D = xi, M = 9, b = 5;
|
|
7647
7647
|
else if (w == 2) {
|
|
7648
|
-
var
|
|
7648
|
+
var k = me(e, T, 31) + 257, F = me(e, T + 10, 15) + 4, s = k + me(e, T + 5, 31) + 1;
|
|
7649
7649
|
T += 14;
|
|
7650
|
-
for (var u = new Q(s), f = new Q(19),
|
|
7650
|
+
for (var u = new Q(s), f = new Q(19), _ = 0; _ < F; ++_) f[At[_]] = me(e, T + _ * 3, 7);
|
|
7651
7651
|
T += F * 3;
|
|
7652
|
-
for (var m =
|
|
7652
|
+
for (var m = Ct(f), I = (1 << m) - 1, y = _e(f, m, 1), _ = 0; _ < s; ) {
|
|
7653
7653
|
var d = y[me(e, T, I)];
|
|
7654
7654
|
T += d & 15;
|
|
7655
|
-
var
|
|
7656
|
-
if (
|
|
7655
|
+
var L = d >> 4;
|
|
7656
|
+
if (L < 16) u[_++] = L;
|
|
7657
7657
|
else {
|
|
7658
|
-
var
|
|
7659
|
-
for (
|
|
7658
|
+
var g = 0, S = 0;
|
|
7659
|
+
for (L == 16 ? (S = 3 + me(e, T, 3), T += 2, g = u[_ - 1]) : L == 17 ? (S = 3 + me(e, T, 7), T += 3) : L == 18 && (S = 11 + me(e, T, 127), T += 7); S--; ) u[_++] = g;
|
|
7660
7660
|
}
|
|
7661
7661
|
}
|
|
7662
|
-
var R = u.subarray(0,
|
|
7663
|
-
M =
|
|
7662
|
+
var R = u.subarray(0, k), A = u.subarray(k);
|
|
7663
|
+
M = Ct(R), b = Ct(A), C = _e(R, M, 1), D = _e(A, b, 1);
|
|
7664
7664
|
} else ne(1);
|
|
7665
7665
|
else {
|
|
7666
|
-
var
|
|
7666
|
+
var L = Bt(T) + 4, x = e[L - 4] | e[L - 3] << 8, U = L + x;
|
|
7667
7667
|
if (U > i) {
|
|
7668
7668
|
p && ne(0);
|
|
7669
7669
|
break;
|
|
7670
7670
|
}
|
|
7671
|
-
l && E(v + x), r.set(e.subarray(
|
|
7671
|
+
l && E(v + x), r.set(e.subarray(L, U), v), t.b = v += x, t.p = T = U * 8, t.f = h;
|
|
7672
7672
|
continue;
|
|
7673
7673
|
}
|
|
7674
|
-
if (T >
|
|
7674
|
+
if (T > P) {
|
|
7675
7675
|
p && ne(0);
|
|
7676
7676
|
break;
|
|
7677
7677
|
}
|
|
7678
7678
|
}
|
|
7679
7679
|
l && E(v + 131072);
|
|
7680
|
-
for (var
|
|
7681
|
-
var
|
|
7682
|
-
if (T +=
|
|
7680
|
+
for (var O = (1 << M) - 1, B = (1 << b) - 1, $ = T; ; $ = T) {
|
|
7681
|
+
var g = C[Ut(e, T) & O], j = g >> 4;
|
|
7682
|
+
if (T += g & 15, T > P) {
|
|
7683
7683
|
p && ne(0);
|
|
7684
7684
|
break;
|
|
7685
7685
|
}
|
|
7686
|
-
if (
|
|
7686
|
+
if (g || ne(2), j < 256) r[v++] = j;
|
|
7687
7687
|
else if (j == 256) {
|
|
7688
|
-
|
|
7688
|
+
$ = T, C = null;
|
|
7689
7689
|
break;
|
|
7690
7690
|
} else {
|
|
7691
7691
|
var q = j - 254;
|
|
7692
7692
|
if (j > 264) {
|
|
7693
|
-
var
|
|
7694
|
-
q = me(e, T, (1 << N) - 1) +
|
|
7693
|
+
var _ = j - 257, N = ot[_];
|
|
7694
|
+
q = me(e, T, (1 << N) - 1) + Pr[_], T += N;
|
|
7695
7695
|
}
|
|
7696
|
-
var H = D[
|
|
7696
|
+
var H = D[Ut(e, T) & B], Y = H >> 4;
|
|
7697
7697
|
H || ne(3), T += H & 15;
|
|
7698
|
-
var A =
|
|
7698
|
+
var A = Oi[Y];
|
|
7699
7699
|
if (Y > 3) {
|
|
7700
7700
|
var N = st[Y];
|
|
7701
|
-
A +=
|
|
7701
|
+
A += Ut(e, T) & (1 << N) - 1, T += N;
|
|
7702
7702
|
}
|
|
7703
|
-
if (T >
|
|
7703
|
+
if (T > P) {
|
|
7704
7704
|
p && ne(0);
|
|
7705
7705
|
break;
|
|
7706
7706
|
}
|
|
@@ -7713,7 +7713,7 @@ var Ni = ge(Be, 9, 0), Di = ge(Be, 9, 1), Mi = ge(Je, 5, 0), xi = ge(Je, 5, 1),
|
|
|
7713
7713
|
for (; v < he; ++v) r[v] = r[v - A];
|
|
7714
7714
|
}
|
|
7715
7715
|
}
|
|
7716
|
-
t.l = C, t.p =
|
|
7716
|
+
t.l = C, t.p = $, t.b = v, t.f = h, C && (h = 1, t.m = M, t.d = D, t.n = b);
|
|
7717
7717
|
} while (!h);
|
|
7718
7718
|
return v != r.length && c ? ze(r, 0, v) : r.subarray(0, v);
|
|
7719
7719
|
}, "inflt"), we = a(function(e, t, r) {
|
|
@@ -7724,7 +7724,7 @@ var Ni = ge(Be, 9, 0), Di = ge(Be, 9, 1), Mi = ge(Je, 5, 0), xi = ge(Je, 5, 1),
|
|
|
7724
7724
|
r <<= t & 7;
|
|
7725
7725
|
var n = t / 8 | 0;
|
|
7726
7726
|
e[n] |= r, e[n + 1] |= r >> 8, e[n + 2] |= r >> 16;
|
|
7727
|
-
}, "wbits16"),
|
|
7727
|
+
}, "wbits16"), Pt = a(function(e, t) {
|
|
7728
7728
|
for (var r = [], n = 0; n < e.length; ++n) e[n] && r.push({ s: n, f: e[n] });
|
|
7729
7729
|
var i = r.length, o = r.slice();
|
|
7730
7730
|
if (!i) return { t: xr, l: 0 };
|
|
@@ -7732,25 +7732,25 @@ var Ni = ge(Be, 9, 0), Di = ge(Be, 9, 1), Mi = ge(Je, 5, 0), xi = ge(Je, 5, 1),
|
|
|
7732
7732
|
var c = new Q(r[0].s + 1);
|
|
7733
7733
|
return c[r[0].s] = 1, { t: c, l: 1 };
|
|
7734
7734
|
}
|
|
7735
|
-
r.sort(function(U,
|
|
7736
|
-
return U.f -
|
|
7735
|
+
r.sort(function(U, k) {
|
|
7736
|
+
return U.f - k.f;
|
|
7737
7737
|
}), r.push({ s: -1, f: 25001 });
|
|
7738
7738
|
var l = r[0], p = r[1], E = 0, h = 1, T = 2;
|
|
7739
7739
|
for (r[0] = { s: -1, f: l.f + p.f, l, r: p }; h != i - 1; ) l = r[r[E].f < r[T].f ? E++ : T++], p = r[E != h && r[E].f < r[T].f ? E++ : T++], r[h++] = { s: -1, f: l.f + p.f, l, r: p };
|
|
7740
7740
|
for (var v = o[0].s, n = 1; n < i; ++n) o[n].s > v && (v = o[n].s);
|
|
7741
7741
|
var C = new ae(v + 1), D = Lt(r[h - 1], C, 0);
|
|
7742
7742
|
if (D > t) {
|
|
7743
|
-
var n = 0, M = 0, b = D - t,
|
|
7744
|
-
for (o.sort(function(
|
|
7745
|
-
return C[F.s] - C[
|
|
7743
|
+
var n = 0, M = 0, b = D - t, P = 1 << b;
|
|
7744
|
+
for (o.sort(function(k, F) {
|
|
7745
|
+
return C[F.s] - C[k.s] || k.f - F.f;
|
|
7746
7746
|
}); n < i; ++n) {
|
|
7747
7747
|
var w = o[n].s;
|
|
7748
|
-
if (C[w] > t) M +=
|
|
7748
|
+
if (C[w] > t) M += P - (1 << D - C[w]), C[w] = t;
|
|
7749
7749
|
else break;
|
|
7750
7750
|
}
|
|
7751
7751
|
for (M >>= b; M > 0; ) {
|
|
7752
|
-
var
|
|
7753
|
-
C[
|
|
7752
|
+
var L = o[n].s;
|
|
7753
|
+
C[L] < t ? M -= 1 << t - C[L]++ - 1 : ++n;
|
|
7754
7754
|
}
|
|
7755
7755
|
for (; n >= 0 && M; --n) {
|
|
7756
7756
|
var x = o[n].s;
|
|
@@ -7782,60 +7782,60 @@ var Ni = ge(Be, 9, 0), Di = ge(Be, 9, 1), Mi = ge(Je, 5, 0), xi = ge(Je, 5, 1),
|
|
|
7782
7782
|
for (var r = 0, n = 0; n < t.length; ++n) r += e[n] * t[n];
|
|
7783
7783
|
return r;
|
|
7784
7784
|
}, "clen"), Dr = a(function(e, t, r) {
|
|
7785
|
-
var n = r.length, i =
|
|
7785
|
+
var n = r.length, i = Bt(t + 2);
|
|
7786
7786
|
e[i] = n & 255, e[i + 1] = n >> 8, e[i + 2] = e[i] ^ 255, e[i + 3] = e[i + 1] ^ 255;
|
|
7787
7787
|
for (var o = 0; o < n; ++o) e[i + o + 4] = r[o];
|
|
7788
7788
|
return (i + 4 + n) * 8;
|
|
7789
7789
|
}, "wfblk"), Mr = a(function(e, t, r, n, i, o, c, l, p, E, h) {
|
|
7790
7790
|
we(t, h++, r), ++i[256];
|
|
7791
|
-
for (var T =
|
|
7791
|
+
for (var T = Pt(i, 15), v = T.t, C = T.l, D = Pt(o, 15), M = D.t, b = D.l, P = Nr(v), w = P.c, L = P.n, x = Nr(M), U = x.c, k = x.n, F = new ae(19), s = 0; s < w.length; ++s) ++F[w[s] & 31];
|
|
7792
7792
|
for (var s = 0; s < U.length; ++s) ++F[U[s] & 31];
|
|
7793
|
-
for (var u =
|
|
7793
|
+
for (var u = Pt(F, 7), f = u.t, _ = u.l, m = 19; m > 4 && !f[At[m - 1]]; --m) ;
|
|
7794
7794
|
var I = E + 5 << 3, y = Xe(i, Be) + Xe(o, Je) + c, d = Xe(i, v) + Xe(o, M) + c + 14 + 3 * m + Xe(F, f) + 2 * F[16] + 3 * F[17] + 7 * F[18];
|
|
7795
7795
|
if (p >= 0 && I <= y && I <= d) return Dr(t, h, e.subarray(p, p + E));
|
|
7796
|
-
var
|
|
7796
|
+
var g, S, R, A;
|
|
7797
7797
|
if (we(t, h, 1 + (d < y)), h += 2, d < y) {
|
|
7798
|
-
|
|
7799
|
-
var
|
|
7800
|
-
we(t, h,
|
|
7801
|
-
for (var s = 0; s < m; ++s) we(t, h + 3 * s, f[
|
|
7798
|
+
g = _e(v, C, 0), S = v, R = _e(M, b, 0), A = M;
|
|
7799
|
+
var O = _e(f, _, 0);
|
|
7800
|
+
we(t, h, L - 257), we(t, h + 5, k - 1), we(t, h + 10, m - 4), h += 14;
|
|
7801
|
+
for (var s = 0; s < m; ++s) we(t, h + 3 * s, f[At[s]]);
|
|
7802
7802
|
h += 3 * m;
|
|
7803
|
-
for (var B = [w, U],
|
|
7803
|
+
for (var B = [w, U], $ = 0; $ < 2; ++$) for (var j = B[$], s = 0; s < j.length; ++s) {
|
|
7804
7804
|
var q = j[s] & 31;
|
|
7805
|
-
we(t, h,
|
|
7805
|
+
we(t, h, O[q]), h += f[q], q > 15 && (we(t, h, j[s] >> 5 & 127), h += j[s] >> 12);
|
|
7806
7806
|
}
|
|
7807
|
-
} else
|
|
7807
|
+
} else g = Ni, S = Be, R = Mi, A = Je;
|
|
7808
7808
|
for (var s = 0; s < l; ++s) {
|
|
7809
7809
|
var N = n[s];
|
|
7810
7810
|
if (N > 255) {
|
|
7811
7811
|
var q = N >> 18 & 31;
|
|
7812
|
-
Qe(t, h,
|
|
7812
|
+
Qe(t, h, g[q + 257]), h += S[q + 257], q > 7 && (we(t, h, N >> 23 & 31), h += ot[q]);
|
|
7813
7813
|
var H = N & 31;
|
|
7814
7814
|
Qe(t, h, R[H]), h += A[H], H > 3 && (Qe(t, h, N >> 5 & 8191), h += st[H]);
|
|
7815
|
-
} else Qe(t, h,
|
|
7815
|
+
} else Qe(t, h, g[N]), h += S[N];
|
|
7816
7816
|
}
|
|
7817
|
-
return Qe(t, h,
|
|
7818
|
-
}, "wblk"),
|
|
7817
|
+
return Qe(t, h, g[256]), h + S[256];
|
|
7818
|
+
}, "wblk"), ki = new wt([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), xr = new Q(0), Hi = a(function(e, t, r, n, i, o) {
|
|
7819
7819
|
var c = o.z || e.length, l = new Q(n + c + 5 * (1 + Math.ceil(c / 7e3)) + i), p = l.subarray(n, l.length - i), E = o.l, h = (o.r || 0) & 7;
|
|
7820
7820
|
if (t) {
|
|
7821
7821
|
h && (p[0] = o.r >> 3);
|
|
7822
|
-
for (var T =
|
|
7823
|
-
return (e[Z] ^ e[Z + 1] <<
|
|
7824
|
-
}, "hsh"), x = new
|
|
7825
|
-
var I =
|
|
7826
|
-
if (M[y] = d, b[I] = y,
|
|
7827
|
-
var
|
|
7828
|
-
if ((F > 7e3 || f > 24576) && (
|
|
7829
|
-
h = Mr(e, p, 0, x, U,
|
|
7822
|
+
for (var T = ki[t - 1], v = T >> 13, C = T & 8191, D = (1 << r) - 1, M = o.p || new ae(32768), b = o.h || new ae(D + 1), P = Math.ceil(r / 3), w = 2 * P, L = a(function(Z) {
|
|
7823
|
+
return (e[Z] ^ e[Z + 1] << P ^ e[Z + 2] << w) & D;
|
|
7824
|
+
}, "hsh"), x = new wt(25e3), U = new ae(288), k = new ae(32), F = 0, s = 0, u = o.i || 0, f = 0, _ = o.w || 0, m = 0; u + 2 < c; ++u) {
|
|
7825
|
+
var I = L(u), y = u & 32767, d = b[I];
|
|
7826
|
+
if (M[y] = d, b[I] = y, _ <= u) {
|
|
7827
|
+
var g = c - u;
|
|
7828
|
+
if ((F > 7e3 || f > 24576) && (g > 423 || !E)) {
|
|
7829
|
+
h = Mr(e, p, 0, x, U, k, s, f, m, u - m, h), f = F = s = 0, m = u;
|
|
7830
7830
|
for (var S = 0; S < 286; ++S) U[S] = 0;
|
|
7831
|
-
for (var S = 0; S < 30; ++S)
|
|
7831
|
+
for (var S = 0; S < 30; ++S) k[S] = 0;
|
|
7832
7832
|
}
|
|
7833
|
-
var R = 2, A = 0,
|
|
7834
|
-
if (
|
|
7833
|
+
var R = 2, A = 0, O = C, B = y - d & 32767;
|
|
7834
|
+
if (g > 2 && I == L(u - B)) for (var $ = Math.min(v, g) - 1, j = Math.min(32767, u), q = Math.min(258, g); B <= j && --O && y != d; ) {
|
|
7835
7835
|
if (e[u + R] == e[u + R - B]) {
|
|
7836
7836
|
for (var N = 0; N < q && e[u + N] == e[u + N - B]; ++N) ;
|
|
7837
7837
|
if (N > R) {
|
|
7838
|
-
if (R = N, A = B, N >
|
|
7838
|
+
if (R = N, A = B, N > $) break;
|
|
7839
7839
|
for (var H = Math.min(B, N - 2), Y = 0, S = 0; S < H; ++S) {
|
|
7840
7840
|
var he = u - B + S & 32767, be = M[he], ve = he - be & 32767;
|
|
7841
7841
|
ve > Y && (Y = ve, d = he);
|
|
@@ -7845,14 +7845,14 @@ var Ni = ge(Be, 9, 0), Di = ge(Be, 9, 1), Mi = ge(Je, 5, 0), xi = ge(Je, 5, 1),
|
|
|
7845
7845
|
y = d, d = M[y], B += y - d & 32767;
|
|
7846
7846
|
}
|
|
7847
7847
|
if (A) {
|
|
7848
|
-
x[f++] = 268435456 |
|
|
7849
|
-
var re =
|
|
7850
|
-
s += ot[re] + st[de], ++U[257 + re],
|
|
7848
|
+
x[f++] = 268435456 | bt[R] << 18 | Or[A];
|
|
7849
|
+
var re = bt[R] & 31, de = Or[A] & 31;
|
|
7850
|
+
s += ot[re] + st[de], ++U[257 + re], ++k[de], _ = u + R, ++F;
|
|
7851
7851
|
} else x[f++] = e[u], ++U[e[u]];
|
|
7852
7852
|
}
|
|
7853
7853
|
}
|
|
7854
|
-
for (u = Math.max(u,
|
|
7855
|
-
h = Mr(e, p, E, x, U,
|
|
7854
|
+
for (u = Math.max(u, _); u < c; ++u) x[f++] = e[u], ++U[e[u]];
|
|
7855
|
+
h = Mr(e, p, E, x, U, k, s, f, m, u - m, h), E || (o.r = h & 7 | p[h / 8 | 0] << 3, h -= 7, o.h = b, o.p = M, o.i = u, o.w = _);
|
|
7856
7856
|
} else {
|
|
7857
7857
|
for (var u = o.w || 0; u < c + E; u += 65535) {
|
|
7858
7858
|
var X = u + 65535;
|
|
@@ -7860,7 +7860,7 @@ var Ni = ge(Be, 9, 0), Di = ge(Be, 9, 1), Mi = ge(Je, 5, 0), xi = ge(Je, 5, 1),
|
|
|
7860
7860
|
}
|
|
7861
7861
|
o.i = c;
|
|
7862
7862
|
}
|
|
7863
|
-
return ze(l, 0, n +
|
|
7863
|
+
return ze(l, 0, n + Bt(h) + i);
|
|
7864
7864
|
}, "dflt"), Fi = (function() {
|
|
7865
7865
|
for (var e = new Int32Array(256), t = 0; t < 256; ++t) {
|
|
7866
7866
|
for (var r = t, n = 9; --n; ) r = (r & 1 && -306674912) ^ r >>> 1;
|
|
@@ -7899,18 +7899,18 @@ function Ki(e, t) {
|
|
|
7899
7899
|
return qi(e, t || {}, 0, 0);
|
|
7900
7900
|
}
|
|
7901
7901
|
a(Ki, "deflateSync");
|
|
7902
|
-
function
|
|
7903
|
-
return
|
|
7902
|
+
function Vi(e, t) {
|
|
7903
|
+
return $i(e, { i: 2 }, t && t.out, t && t.dictionary);
|
|
7904
7904
|
}
|
|
7905
|
-
a(
|
|
7906
|
-
var
|
|
7905
|
+
a(Vi, "inflateSync");
|
|
7906
|
+
var $r = a(function(e, t, r, n) {
|
|
7907
7907
|
for (var i in e) {
|
|
7908
7908
|
var o = e[i], c = t + i, l = n;
|
|
7909
|
-
Array.isArray(o) && (l = Gr(n, o[1]), o = o[0]), o instanceof Q ? r[c] = [o, l] : (r[c += "/"] = [new Q(0), l],
|
|
7909
|
+
Array.isArray(o) && (l = Gr(n, o[1]), o = o[0]), o instanceof Q ? r[c] = [o, l] : (r[c += "/"] = [new Q(0), l], $r(o, c, r, n));
|
|
7910
7910
|
}
|
|
7911
|
-
}, "fltn"),
|
|
7911
|
+
}, "fltn"), kr = typeof TextEncoder < "u" && new TextEncoder(), Nt = typeof TextDecoder < "u" && new TextDecoder(), Wi = 0;
|
|
7912
7912
|
try {
|
|
7913
|
-
|
|
7913
|
+
Nt.decode(xr, { stream: true }), Wi = 1;
|
|
7914
7914
|
} catch {
|
|
7915
7915
|
}
|
|
7916
7916
|
var Yi = a(function(e) {
|
|
@@ -7922,7 +7922,7 @@ var Yi = a(function(e) {
|
|
|
7922
7922
|
}, "dutf8");
|
|
7923
7923
|
function Hr(e, t) {
|
|
7924
7924
|
var r;
|
|
7925
|
-
if (
|
|
7925
|
+
if (kr) return kr.encode(e);
|
|
7926
7926
|
for (var n = e.length, i = new Q(e.length + (e.length >> 1)), o = 0, c = a(function(E) {
|
|
7927
7927
|
i[o++] = E;
|
|
7928
7928
|
}, "w"), r = 0; r < n; ++r) {
|
|
@@ -7941,7 +7941,7 @@ function Ji(e, t) {
|
|
|
7941
7941
|
for (var r = "", n = 0; n < e.length; n += 16384) r += String.fromCharCode.apply(null, e.subarray(n, n + 16384));
|
|
7942
7942
|
return r;
|
|
7943
7943
|
} else {
|
|
7944
|
-
if (
|
|
7944
|
+
if (Nt) return Nt.decode(e);
|
|
7945
7945
|
var i = Yi(e), o = i.s, r = i.r;
|
|
7946
7946
|
return r.length && ne(8), o;
|
|
7947
7947
|
}
|
|
@@ -7955,7 +7955,7 @@ var zi = a(function(e, t) {
|
|
|
7955
7955
|
}, "zh"), Xi = a(function(e, t) {
|
|
7956
7956
|
for (; Ie(e, t) != 1; t += 4 + Ie(e, t + 2)) ;
|
|
7957
7957
|
return [Ot(e, t + 12), Ot(e, t + 4), Ot(e, t + 20)];
|
|
7958
|
-
}, "z64e"),
|
|
7958
|
+
}, "z64e"), Dt = a(function(e) {
|
|
7959
7959
|
var t = 0;
|
|
7960
7960
|
if (e) for (var r in e) {
|
|
7961
7961
|
var n = e[r].length;
|
|
@@ -7963,7 +7963,7 @@ var zi = a(function(e, t) {
|
|
|
7963
7963
|
}
|
|
7964
7964
|
return t;
|
|
7965
7965
|
}, "exfl"), Fr = a(function(e, t, r, n, i, o, c, l) {
|
|
7966
|
-
var p = n.length, E = r.extra, h = l && l.length, T =
|
|
7966
|
+
var p = n.length, E = r.extra, h = l && l.length, T = Dt(E);
|
|
7967
7967
|
te(e, t, c != null ? 33639248 : 67324752), t += 4, c != null && (e[t++] = 20, e[t++] = r.os), e[t] = 20, t += 2, e[t++] = r.flag << 1 | (o < 0 && 8), e[t++] = i && 8, e[t++] = r.compression & 255, e[t++] = r.compression >> 8;
|
|
7968
7968
|
var v = new Date(r.mtime == null ? Date.now() : r.mtime), C = v.getFullYear() - 1980;
|
|
7969
7969
|
if ((C < 0 || C > 119) && ne(10), te(e, t, C << 25 | v.getMonth() + 1 << 21 | v.getDate() << 16 | v.getHours() << 11 | v.getMinutes() << 5 | v.getSeconds() >> 1), t += 4, o != -1 && (te(e, t, r.crc), te(e, t + 4, o < 0 ? -o - 2 : o), te(e, t + 8, r.size)), te(e, t + 12, p), te(e, t + 14, T), t += 16, c != null && (te(e, t, h), te(e, t + 6, r.attrs), te(e, t + 10, c), t += 14), e.set(n, t), t += p, T) for (var D in E) {
|
|
@@ -7977,21 +7977,21 @@ var zi = a(function(e, t) {
|
|
|
7977
7977
|
function eo(e, t) {
|
|
7978
7978
|
t || (t = {});
|
|
7979
7979
|
var r = {}, n = [];
|
|
7980
|
-
|
|
7980
|
+
$r(e, "", r, t);
|
|
7981
7981
|
var i = 0, o = 0;
|
|
7982
7982
|
for (var c in r) {
|
|
7983
|
-
var l = r[c], p = l[0], E = l[1], h = E.level == 0 ? 0 : 8, T = Hr(c), v = T.length, C = E.comment, D = C && Hr(C), M = D && D.length, b =
|
|
7983
|
+
var l = r[c], p = l[0], E = l[1], h = E.level == 0 ? 0 : 8, T = Hr(c), v = T.length, C = E.comment, D = C && Hr(C), M = D && D.length, b = Dt(E.extra);
|
|
7984
7984
|
v > 65535 && ne(11);
|
|
7985
|
-
var
|
|
7986
|
-
|
|
7985
|
+
var P = h ? Ki(p, E) : p, w = P.length, L = ji();
|
|
7986
|
+
L.p(p), n.push(Gr(E, { size: p.length, crc: L.d(), c: P, f: T, m: D, u: v != c.length || D && C.length != M, o: i, compression: h })), i += 30 + v + b + w, o += 76 + 2 * (v + b) + (M || 0) + w;
|
|
7987
7987
|
}
|
|
7988
|
-
for (var x = new Q(o + 22), U = i,
|
|
7988
|
+
for (var x = new Q(o + 22), U = i, k = o - i, F = 0; F < n.length; ++F) {
|
|
7989
7989
|
var T = n[F];
|
|
7990
7990
|
Fr(x, T.o, T, T.f, T.u, T.c.length);
|
|
7991
|
-
var s = 30 + T.f.length +
|
|
7991
|
+
var s = 30 + T.f.length + Dt(T.extra);
|
|
7992
7992
|
x.set(T.c, T.o + s), Fr(x, i, T, T.f, T.u, T.c.length, T.o, T.m), i += 16 + s + (T.m ? T.m.length : 0);
|
|
7993
7993
|
}
|
|
7994
|
-
return Zi(x, i, n.length,
|
|
7994
|
+
return Zi(x, i, n.length, k, U), x;
|
|
7995
7995
|
}
|
|
7996
7996
|
a(eo, "zipSync");
|
|
7997
7997
|
function to(e, t) {
|
|
@@ -8005,7 +8005,7 @@ function to(e, t) {
|
|
|
8005
8005
|
}
|
|
8006
8006
|
for (var p = 0; p < i; ++p) {
|
|
8007
8007
|
var E = Qi(e, o, c), h = E[0], T = E[1], v = E[2], C = E[3], D = E[4], M = E[5], b = zi(e, M);
|
|
8008
|
-
o = D, h ? h == 8 ? r[C] =
|
|
8008
|
+
o = D, h ? h == 8 ? r[C] = Vi(e.subarray(b, b + T), { out: new Q(v) }) : ne(14, "unknown compression type " + h) : r[C] = ze(e, b, b + T);
|
|
8009
8009
|
}
|
|
8010
8010
|
return r;
|
|
8011
8011
|
}
|
|
@@ -8015,13 +8015,13 @@ function jr(e) {
|
|
|
8015
8015
|
return e.filter((t) => !(t.length < io || ro.some((r) => r.test(t)) || no.some((r) => t.includes(r))));
|
|
8016
8016
|
}
|
|
8017
8017
|
a(jr, "filterSensitiveValues");
|
|
8018
|
-
const Ae = Symbol.for("@ts-pattern/matcher"), oo = Symbol.for("@ts-pattern/isVariadic"), at = "@ts-pattern/anonymous-select-key",
|
|
8018
|
+
const Ae = Symbol.for("@ts-pattern/matcher"), oo = Symbol.for("@ts-pattern/isVariadic"), at = "@ts-pattern/anonymous-select-key", Mt = a((e) => !!(e && typeof e == "object"), "r"), ct = a((e) => e && !!e[Ae], "i"), Se = a((e, t, r) => {
|
|
8019
8019
|
if (ct(e)) {
|
|
8020
8020
|
const n = e[Ae](), { matched: i, selections: o } = n.match(t);
|
|
8021
8021
|
return i && o && Object.keys(o).forEach((c) => r(c, o[c])), i;
|
|
8022
8022
|
}
|
|
8023
|
-
if (
|
|
8024
|
-
if (!
|
|
8023
|
+
if (Mt(e)) {
|
|
8024
|
+
if (!Mt(t)) return false;
|
|
8025
8025
|
if (Array.isArray(e)) {
|
|
8026
8026
|
if (!Array.isArray(t)) return false;
|
|
8027
8027
|
let n = [], i = [], o = [];
|
|
@@ -8044,12 +8044,12 @@ const Ae = Symbol.for("@ts-pattern/matcher"), oo = Symbol.for("@ts-pattern/isVar
|
|
|
8044
8044
|
});
|
|
8045
8045
|
}
|
|
8046
8046
|
return Object.is(t, e);
|
|
8047
|
-
}, "o"),
|
|
8047
|
+
}, "o"), Pe = a((e) => {
|
|
8048
8048
|
var t, r, n;
|
|
8049
|
-
return
|
|
8049
|
+
return Mt(e) ? ct(e) ? (t = (r = (n = e[Ae]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? t : [] : Array.isArray(e) ? Ze(e, Pe) : Ze(Object.values(e), Pe) : [];
|
|
8050
8050
|
}, "s"), Ze = a((e, t) => e.reduce((r, n) => r.concat(t(n)), []), "c");
|
|
8051
8051
|
function ce(e) {
|
|
8052
|
-
return Object.assign(e, { optional: a(() => so(e), "optional"), and: a((t) =>
|
|
8052
|
+
return Object.assign(e, { optional: a(() => so(e), "optional"), and: a((t) => W(e, t), "and"), or: a((t) => ao(e, t), "or"), select: a((t) => t === void 0 ? qr(e) : qr(t, e), "select") });
|
|
8053
8053
|
}
|
|
8054
8054
|
a(ce, "a");
|
|
8055
8055
|
function so(e) {
|
|
@@ -8058,28 +8058,28 @@ function so(e) {
|
|
|
8058
8058
|
const n = a((i, o) => {
|
|
8059
8059
|
r[i] = o;
|
|
8060
8060
|
}, "r2");
|
|
8061
|
-
return t === void 0 ? (
|
|
8062
|
-
}, "match"), getSelectionKeys: a(() =>
|
|
8061
|
+
return t === void 0 ? (Pe(e).forEach((i) => n(i, void 0)), { matched: true, selections: r }) : { matched: Se(e, t, n), selections: r };
|
|
8062
|
+
}, "match"), getSelectionKeys: a(() => Pe(e), "getSelectionKeys"), matcherType: "optional" }) });
|
|
8063
8063
|
}
|
|
8064
8064
|
a(so, "h");
|
|
8065
|
-
function
|
|
8065
|
+
function W(...e) {
|
|
8066
8066
|
return ce({ [Ae]: () => ({ match: a((t) => {
|
|
8067
8067
|
let r = {};
|
|
8068
8068
|
const n = a((i, o) => {
|
|
8069
8069
|
r[i] = o;
|
|
8070
8070
|
}, "r2");
|
|
8071
8071
|
return { matched: e.every((i) => Se(i, t, n)), selections: r };
|
|
8072
|
-
}, "match"), getSelectionKeys: a(() => Ze(e,
|
|
8072
|
+
}, "match"), getSelectionKeys: a(() => Ze(e, Pe), "getSelectionKeys"), matcherType: "and" }) });
|
|
8073
8073
|
}
|
|
8074
|
-
a(
|
|
8074
|
+
a(W, "d");
|
|
8075
8075
|
function ao(...e) {
|
|
8076
8076
|
return ce({ [Ae]: () => ({ match: a((t) => {
|
|
8077
8077
|
let r = {};
|
|
8078
8078
|
const n = a((i, o) => {
|
|
8079
8079
|
r[i] = o;
|
|
8080
8080
|
}, "r2");
|
|
8081
|
-
return Ze(e,
|
|
8082
|
-
}, "match"), getSelectionKeys: a(() => Ze(e,
|
|
8081
|
+
return Ze(e, Pe).forEach((i) => n(i, void 0)), { matched: e.some((i) => Se(i, t, n)), selections: r };
|
|
8082
|
+
}, "match"), getSelectionKeys: a(() => Ze(e, Pe), "getSelectionKeys"), matcherType: "or" }) });
|
|
8083
8083
|
}
|
|
8084
8084
|
a(ao, "y");
|
|
8085
8085
|
function K(e) {
|
|
@@ -8093,7 +8093,7 @@ function qr(...e) {
|
|
|
8093
8093
|
return { matched: r === void 0 || Se(r, n, (o, c) => {
|
|
8094
8094
|
i[o] = c;
|
|
8095
8095
|
}), selections: i };
|
|
8096
|
-
}, "match"), getSelectionKeys: a(() => [t ?? at].concat(r === void 0 ? [] :
|
|
8096
|
+
}, "match"), getSelectionKeys: a(() => [t ?? at].concat(r === void 0 ? [] : Pe(r)), "getSelectionKeys") }) });
|
|
8097
8097
|
}
|
|
8098
8098
|
a(qr, "v");
|
|
8099
8099
|
function Kr(e) {
|
|
@@ -8104,32 +8104,32 @@ function Re(e) {
|
|
|
8104
8104
|
return typeof e == "number";
|
|
8105
8105
|
}
|
|
8106
8106
|
a(Re, "w");
|
|
8107
|
-
function
|
|
8107
|
+
function Le(e) {
|
|
8108
8108
|
return typeof e == "string";
|
|
8109
8109
|
}
|
|
8110
|
-
a(
|
|
8111
|
-
function
|
|
8110
|
+
a(Le, "S");
|
|
8111
|
+
function Oe(e) {
|
|
8112
8112
|
return typeof e == "bigint";
|
|
8113
8113
|
}
|
|
8114
|
-
a(
|
|
8114
|
+
a(Oe, "j"), ce(K(Kr)), ce(K(Kr));
|
|
8115
8115
|
const Ne = a((e) => Object.assign(ce(e), { startsWith: a((t) => {
|
|
8116
|
-
return Ne(
|
|
8116
|
+
return Ne(W(e, (r = t, K((n) => Le(n) && n.startsWith(r)))));
|
|
8117
8117
|
var r;
|
|
8118
8118
|
}, "startsWith"), endsWith: a((t) => {
|
|
8119
|
-
return Ne(
|
|
8119
|
+
return Ne(W(e, (r = t, K((n) => Le(n) && n.endsWith(r)))));
|
|
8120
8120
|
var r;
|
|
8121
|
-
}, "endsWith"), minLength: a((t) => Ne(
|
|
8122
|
-
return Ne(
|
|
8121
|
+
}, "endsWith"), minLength: a((t) => Ne(W(e, ((r) => K((n) => Le(n) && n.length >= r))(t))), "minLength"), length: a((t) => Ne(W(e, ((r) => K((n) => Le(n) && n.length === r))(t))), "length"), maxLength: a((t) => Ne(W(e, ((r) => K((n) => Le(n) && n.length <= r))(t))), "maxLength"), includes: a((t) => {
|
|
8122
|
+
return Ne(W(e, (r = t, K((n) => Le(n) && n.includes(r)))));
|
|
8123
8123
|
var r;
|
|
8124
8124
|
}, "includes"), regex: a((t) => {
|
|
8125
|
-
return Ne(
|
|
8125
|
+
return Ne(W(e, (r = t, K((n) => Le(n) && !!n.match(r)))));
|
|
8126
8126
|
var r;
|
|
8127
8127
|
}, "regex") }), "x");
|
|
8128
|
-
Ne(K(
|
|
8129
|
-
const Te = a((e) => Object.assign(ce(e), { between: a((t, r) => Te(
|
|
8128
|
+
Ne(K(Le));
|
|
8129
|
+
const Te = a((e) => Object.assign(ce(e), { between: a((t, r) => Te(W(e, ((n, i) => K((o) => Re(o) && n <= o && i >= o))(t, r))), "between"), lt: a((t) => Te(W(e, ((r) => K((n) => Re(n) && n < r))(t))), "lt"), gt: a((t) => Te(W(e, ((r) => K((n) => Re(n) && n > r))(t))), "gt"), lte: a((t) => Te(W(e, ((r) => K((n) => Re(n) && n <= r))(t))), "lte"), gte: a((t) => Te(W(e, ((r) => K((n) => Re(n) && n >= r))(t))), "gte"), int: a(() => Te(W(e, K((t) => Re(t) && Number.isInteger(t)))), "int"), finite: a(() => Te(W(e, K((t) => Re(t) && Number.isFinite(t)))), "finite"), positive: a(() => Te(W(e, K((t) => Re(t) && t > 0))), "positive"), negative: a(() => Te(W(e, K((t) => Re(t) && t < 0))), "negative") }), "N");
|
|
8130
8130
|
Te(K(Re));
|
|
8131
|
-
const De = a((e) => Object.assign(ce(e), { between: a((t, r) => De(
|
|
8132
|
-
De(K(
|
|
8131
|
+
const De = a((e) => Object.assign(ce(e), { between: a((t, r) => De(W(e, ((n, i) => K((o) => Oe(o) && n <= o && i >= o))(t, r))), "between"), lt: a((t) => De(W(e, ((r) => K((n) => Oe(n) && n < r))(t))), "lt"), gt: a((t) => De(W(e, ((r) => K((n) => Oe(n) && n > r))(t))), "gt"), lte: a((t) => De(W(e, ((r) => K((n) => Oe(n) && n <= r))(t))), "lte"), gte: a((t) => De(W(e, ((r) => K((n) => Oe(n) && n >= r))(t))), "gte"), positive: a(() => De(W(e, K((t) => Oe(t) && t > 0))), "positive"), negative: a(() => De(W(e, K((t) => Oe(t) && t < 0))), "negative") }), "k");
|
|
8132
|
+
De(K(Oe)), ce(K(function(e) {
|
|
8133
8133
|
return typeof e == "boolean";
|
|
8134
8134
|
})), ce(K(function(e) {
|
|
8135
8135
|
return typeof e == "symbol";
|
|
@@ -8152,9 +8152,9 @@ class co extends Error {
|
|
|
8152
8152
|
super(`Pattern matching error: no pattern matches value ${r}`), this.input = void 0, this.input = t;
|
|
8153
8153
|
}
|
|
8154
8154
|
}
|
|
8155
|
-
const
|
|
8155
|
+
const xt = { matched: false, value: void 0 };
|
|
8156
8156
|
function uo(e) {
|
|
8157
|
-
return new mt(e,
|
|
8157
|
+
return new mt(e, xt);
|
|
8158
8158
|
}
|
|
8159
8159
|
a(uo, "M");
|
|
8160
8160
|
class mt {
|
|
@@ -8172,13 +8172,13 @@ class mt {
|
|
|
8172
8172
|
let o = false, c = {};
|
|
8173
8173
|
const l = a((E, h) => {
|
|
8174
8174
|
o = true, c[E] = h;
|
|
8175
|
-
}, "u2"), p = !n.some((E) => Se(E, this.input, l)) || i && !i(this.input) ?
|
|
8175
|
+
}, "u2"), p = !n.some((E) => Se(E, this.input, l)) || i && !i(this.input) ? xt : { matched: true, value: r(o ? at in c ? c[at] : c : this.input, this.input) };
|
|
8176
8176
|
return new mt(this.input, p);
|
|
8177
8177
|
}
|
|
8178
8178
|
when(t, r) {
|
|
8179
8179
|
if (this.state.matched) return this;
|
|
8180
8180
|
const n = !!t(this.input);
|
|
8181
|
-
return new mt(this.input, n ? { matched: true, value: r(this.input, this.input) } :
|
|
8181
|
+
return new mt(this.input, n ? { matched: true, value: r(this.input, this.input) } : xt);
|
|
8182
8182
|
}
|
|
8183
8183
|
otherwise(t) {
|
|
8184
8184
|
return this.state.matched ? this.state.value : t(this.input);
|
|
@@ -8221,15 +8221,15 @@ function Ge({ obj: e, sensitiveValues: t }) {
|
|
|
8221
8221
|
return Object.fromEntries(Object.entries(e).map(([r, n]) => [r, mo(r) ? n : et({ sensitiveValues: t, value: n })]));
|
|
8222
8222
|
}
|
|
8223
8223
|
a(Ge, "scrubObject");
|
|
8224
|
-
function
|
|
8224
|
+
function Vr({ error: e, sensitiveValues: t }) {
|
|
8225
8225
|
return e ? { ...e, message: se({ sensitiveValues: t, str: e.message }) } : void 0;
|
|
8226
8226
|
}
|
|
8227
|
-
a(
|
|
8227
|
+
a(Vr, "scrubError");
|
|
8228
8228
|
function Eo({ event: e, sensitiveValues: t }) {
|
|
8229
|
-
return uo(e).with({ type: "console" }, (r) => ({ ...r, args: r.args?.map((n) => ({ ...n, preview: se({ sensitiveValues: t, str: n.preview }), value: et({ sensitiveValues: t, value: n.value }) })), text: se({ sensitiveValues: t, str: r.text }) })).with({ type: "before" }, (r) => ({ ...r, params: Ge({ obj: r.params, sensitiveValues: t }), title: r.title ? se({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "after" }, (r) => ({ ...r, error:
|
|
8229
|
+
return uo(e).with({ type: "console" }, (r) => ({ ...r, args: r.args?.map((n) => ({ ...n, preview: se({ sensitiveValues: t, str: n.preview }), value: et({ sensitiveValues: t, value: n.value }) })), text: se({ sensitiveValues: t, str: r.text }) })).with({ type: "before" }, (r) => ({ ...r, params: Ge({ obj: r.params, sensitiveValues: t }), title: r.title ? se({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "after" }, (r) => ({ ...r, error: Vr({ error: r.error, sensitiveValues: t }), result: r.result !== void 0 ? et({ sensitiveValues: t, value: r.result }) : void 0 })).with({ type: "action" }, (r) => ({ ...r, error: Vr({ error: r.error, sensitiveValues: t }), params: Ge({ obj: r.params, sensitiveValues: t }), result: r.result !== void 0 ? et({ sensitiveValues: t, value: r.result }) : void 0, title: r.title ? se({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "event" }, (r) => ({ ...r, params: Ge({ obj: r.params, sensitiveValues: t }) })).with({ type: "stdout" }, { type: "stderr" }, (r) => ({ ...r, text: r.text !== void 0 ? se({ sensitiveValues: t, str: r.text }) : void 0 })).with({ type: "error" }, (r) => ({ ...r, message: se({ sensitiveValues: t, str: r.message }) })).with({ type: "log" }, (r) => ({ ...r, message: se({ sensitiveValues: t, str: r.message }) })).with({ type: "context-options" }, (r) => ({ ...r, options: Ge({ obj: r.options, sensitiveValues: t }), title: r.title ? se({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "frame-snapshot" }, (r) => ({ ...r, snapshot: Ge({ obj: r.snapshot, sensitiveValues: t }) })).with({ type: "resource-snapshot" }, (r) => ({ ...r, snapshot: Ge({ obj: r.snapshot, sensitiveValues: t }) })).with({ type: "screencast-frame" }, { type: "input" }, (r) => r).exhaustive();
|
|
8230
8230
|
}
|
|
8231
8231
|
a(Eo, "scrubTraceEvent");
|
|
8232
|
-
function
|
|
8232
|
+
function go({ content: e, sensitiveValues: t }) {
|
|
8233
8233
|
const r = new node_util.TextDecoder(), n = new node_util.TextEncoder(), c = r.decode(e).split(`
|
|
8234
8234
|
`).map((l) => {
|
|
8235
8235
|
if (!l.trim()) return l;
|
|
@@ -8243,44 +8243,44 @@ function _o({ content: e, sensitiveValues: t }) {
|
|
|
8243
8243
|
return n.encode(c.join(`
|
|
8244
8244
|
`));
|
|
8245
8245
|
}
|
|
8246
|
-
a(
|
|
8247
|
-
function
|
|
8246
|
+
a(go, "scrubJsonLinesFile");
|
|
8247
|
+
function Wr({ content: e, sensitiveValues: t }) {
|
|
8248
8248
|
const r = new node_util.TextDecoder(), n = new node_util.TextEncoder(), i = se({ sensitiveValues: t, str: r.decode(e) });
|
|
8249
8249
|
return n.encode(i);
|
|
8250
8250
|
}
|
|
8251
|
-
a(
|
|
8252
|
-
async function
|
|
8251
|
+
a(Wr, "scrubTextFile");
|
|
8252
|
+
async function Gt({ sensitiveValues: e, traceBuffer: t }) {
|
|
8253
8253
|
const r = jr(e);
|
|
8254
8254
|
if (r.length === 0) return new Uint8Array(t);
|
|
8255
|
-
const n = [...r].sort((p, E) => E.length - p.length), i = to(new Uint8Array(t)), o = Object.entries(i), c = await Promise.all(o.map(async ([p, E]) => [p, await
|
|
8255
|
+
const n = [...r].sort((p, E) => E.length - p.length), i = to(new Uint8Array(t)), o = Object.entries(i), c = await Promise.all(o.map(async ([p, E]) => [p, await _o({ content: E, filename: p, sensitiveValues: n })])), l = Object.fromEntries(c);
|
|
8256
8256
|
return eo(l);
|
|
8257
8257
|
}
|
|
8258
|
-
a(
|
|
8259
|
-
async function
|
|
8258
|
+
a(Gt, "scrubTrace");
|
|
8259
|
+
async function _o({ content: e, filename: t, sensitiveValues: r }) {
|
|
8260
8260
|
const n = t.toLowerCase();
|
|
8261
|
-
return n.endsWith(".trace") || n.endsWith(".network") ?
|
|
8261
|
+
return n.endsWith(".trace") || n.endsWith(".network") ? go({ content: e, sensitiveValues: r }) : n.endsWith(".html") || n.endsWith(".dat") || n.endsWith(".json") ? Wr({ content: e, sensitiveValues: r }) : n.startsWith("resources/") ? Io({ content: e, sensitiveValues: r }) : e;
|
|
8262
8262
|
}
|
|
8263
|
-
a(
|
|
8263
|
+
a(_o, "scrubFile");
|
|
8264
8264
|
async function Io({ content: e, sensitiveValues: t }) {
|
|
8265
|
-
return await
|
|
8265
|
+
return await Li.isBinaryFile(Buffer.from(e)) ? e : Wr({ content: e, sensitiveValues: t });
|
|
8266
8266
|
}
|
|
8267
8267
|
a(Io, "scrubResourceFile");
|
|
8268
8268
|
async function So({ sensitiveValues: e, tracePath: t }) {
|
|
8269
8269
|
const r = [], n = node_fs.createReadStream(t);
|
|
8270
8270
|
for await (const o of n) r.push(Uint8Array.from(o));
|
|
8271
8271
|
const i = new Uint8Array(Buffer.concat(r));
|
|
8272
|
-
return
|
|
8272
|
+
return Gt({ sensitiveValues: e, traceBuffer: i });
|
|
8273
8273
|
}
|
|
8274
8274
|
a(So, "scrubTraceFromPath");
|
|
8275
8275
|
async function Ro({ sensitiveValues: e, traceFd: t, tracePath: r }) {
|
|
8276
8276
|
const n = [], i = node_fs.createReadStream(r, { autoClose: true, fd: t });
|
|
8277
8277
|
for await (const c of i) n.push(Uint8Array.from(c));
|
|
8278
8278
|
const o = new Uint8Array(Buffer.concat(n));
|
|
8279
|
-
return
|
|
8279
|
+
return Gt({ sensitiveValues: e, traceBuffer: o });
|
|
8280
8280
|
}
|
|
8281
8281
|
a(Ro, "scrubTraceFromFd");
|
|
8282
|
-
const Yr = { AUTHENTICATION_FAILED: 1008 };
|
|
8283
|
-
class
|
|
8282
|
+
const Yr = { AUTHENTICATION_FAILED: 1008 }, To = 2e4, yo = 5e4, wo = 3e4;
|
|
8283
|
+
class Ao {
|
|
8284
8284
|
static {
|
|
8285
8285
|
a(this, "WebSocketClient");
|
|
8286
8286
|
}
|
|
@@ -8299,6 +8299,8 @@ class To {
|
|
|
8299
8299
|
isManualClose = false;
|
|
8300
8300
|
isAuthenticated = false;
|
|
8301
8301
|
authenticationFailed = false;
|
|
8302
|
+
pingIntervalTimer;
|
|
8303
|
+
lastPongAt = 0;
|
|
8302
8304
|
constructor({ apiKey: t, maxBufferSize: r = 1e3, maxReconnectAttempts: n = 3, onError: i, onMessage: o, projectId: c, reconnectDelay: l = 2e3, url: p }) {
|
|
8303
8305
|
this.url = p, this.apiKey = t, this.projectId = c, this.maxBufferSize = r, this.reconnectDelay = l, this.maxReconnectAttempts = n, this.onMessage = o, this.onError = i, this.connect();
|
|
8304
8306
|
}
|
|
@@ -8310,11 +8312,11 @@ class To {
|
|
|
8310
8312
|
}), this.socket.on("message", (r) => {
|
|
8311
8313
|
try {
|
|
8312
8314
|
const n = typeof r == "string" ? r : r.toString(), i = JSON.parse(n);
|
|
8313
|
-
i.type === "connected" ? (this.isAuthenticated = true, this.authenticationFailed = false, this.flushBuffer()) : this.onMessage && this.onMessage(i);
|
|
8315
|
+
i.type === "connected" ? (this.isAuthenticated = true, this.authenticationFailed = false, this.flushBuffer(), this.startPingInterval()) : i.type === "pong" ? this.lastPongAt = Date.now() : this.onMessage && this.onMessage(i);
|
|
8314
8316
|
} catch {
|
|
8315
8317
|
}
|
|
8316
8318
|
}), this.socket.on("close", (r, n) => {
|
|
8317
|
-
this.isAuthenticated = false, r === Yr.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();
|
|
8319
|
+
this.isAuthenticated = false, this.clearPingInterval(), r === Yr.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();
|
|
8318
8320
|
}), this.socket.on("error", () => {
|
|
8319
8321
|
});
|
|
8320
8322
|
} catch {
|
|
@@ -8322,9 +8324,23 @@ class To {
|
|
|
8322
8324
|
}
|
|
8323
8325
|
}
|
|
8324
8326
|
scheduleReconnect() {
|
|
8325
|
-
this.reconnectTimer && clearTimeout(this.reconnectTimer)
|
|
8327
|
+
this.reconnectTimer && clearTimeout(this.reconnectTimer);
|
|
8328
|
+
const t = Math.min(this.reconnectDelay * Math.pow(2, this.reconnectAttempts), wo);
|
|
8329
|
+
this.reconnectAttempts++, this.reconnectTimer = setTimeout(() => {
|
|
8326
8330
|
this.connect();
|
|
8327
|
-
}, this.
|
|
8331
|
+
}, t), this.reconnectTimer.unref();
|
|
8332
|
+
}
|
|
8333
|
+
startPingInterval() {
|
|
8334
|
+
this.clearPingInterval(), this.lastPongAt = Date.now(), this.pingIntervalTimer = setInterval(() => {
|
|
8335
|
+
if (Date.now() - this.lastPongAt > yo) {
|
|
8336
|
+
this.clearPingInterval(), this.socket?.terminate();
|
|
8337
|
+
return;
|
|
8338
|
+
}
|
|
8339
|
+
this.socket?.readyState === WebSocket.OPEN && this.socket.send(JSON.stringify({ type: "ping" }));
|
|
8340
|
+
}, To), this.pingIntervalTimer.unref();
|
|
8341
|
+
}
|
|
8342
|
+
clearPingInterval() {
|
|
8343
|
+
this.pingIntervalTimer && (clearInterval(this.pingIntervalTimer), this.pingIntervalTimer = void 0);
|
|
8328
8344
|
}
|
|
8329
8345
|
flushBuffer() {
|
|
8330
8346
|
if (this.buffer.length === 0 || !this.socket || this.socket.readyState !== WebSocket.OPEN) return;
|
|
@@ -8343,21 +8359,20 @@ class To {
|
|
|
8343
8359
|
this.buffer.length >= this.maxBufferSize && this.buffer.shift(), this.buffer.push(t);
|
|
8344
8360
|
}
|
|
8345
8361
|
async sendEvent(t) {
|
|
8346
|
-
|
|
8347
|
-
|
|
8362
|
+
const { socket: r } = this;
|
|
8363
|
+
if (!r || r.readyState !== WebSocket.OPEN || !this.isAuthenticated) {
|
|
8364
|
+
this.bufferEvent(t), r?.readyState === WebSocket.CLOSED && this.reconnectAttempts < this.maxReconnectAttempts && this.scheduleReconnect();
|
|
8348
8365
|
return;
|
|
8349
8366
|
}
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8367
|
+
const n = JSON.stringify(t);
|
|
8368
|
+
await new Promise((i, o) => {
|
|
8369
|
+
r.send(n, (c) => {
|
|
8370
|
+
c ? (this.bufferEvent(t), o(c)) : i();
|
|
8354
8371
|
});
|
|
8355
|
-
}
|
|
8356
|
-
throw this.bufferEvent(t), r;
|
|
8357
|
-
}
|
|
8372
|
+
});
|
|
8358
8373
|
}
|
|
8359
8374
|
close() {
|
|
8360
|
-
this.isManualClose = true, this.reconnectTimer && clearTimeout(this.reconnectTimer), this.socket && (this.socket.close(), this.socket = void 0);
|
|
8375
|
+
this.isManualClose = true, this.clearPingInterval(), this.reconnectTimer && clearTimeout(this.reconnectTimer), this.socket && (this.socket.close(), this.socket = void 0);
|
|
8361
8376
|
}
|
|
8362
8377
|
get isConnected() {
|
|
8363
8378
|
return this.socket?.readyState === WebSocket.OPEN && this.isAuthenticated;
|
|
@@ -8369,7 +8384,7 @@ class To {
|
|
|
8369
8384
|
return [...this.buffer];
|
|
8370
8385
|
}
|
|
8371
8386
|
}
|
|
8372
|
-
var
|
|
8387
|
+
var bo = { detect({ env: e }) {
|
|
8373
8388
|
return !!e.APPVEYOR;
|
|
8374
8389
|
}, configuration({ env: e }) {
|
|
8375
8390
|
const t = e.APPVEYOR_PULL_REQUEST_NUMBER, r = !!t;
|
|
@@ -8383,34 +8398,34 @@ function tt(e) {
|
|
|
8383
8398
|
return e ? /^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(e)[1] : void 0;
|
|
8384
8399
|
}
|
|
8385
8400
|
a(tt, "parseBranch");
|
|
8386
|
-
var
|
|
8401
|
+
var vo = { detect({ env: e }) {
|
|
8387
8402
|
return !!e.BUILD_BUILDURI;
|
|
8388
8403
|
}, configuration({ env: e }) {
|
|
8389
8404
|
const t = e.SYSTEM_PULLREQUEST_PULLREQUESTID, r = !!t;
|
|
8390
8405
|
return { name: "Azure Pipelines", service: "azurePipelines", commit: e.BUILD_SOURCEVERSION, build: e.BUILD_BUILDNUMBER, branch: tt(r ? e.SYSTEM_PULLREQUEST_TARGETBRANCH : e.BUILD_SOURCEBRANCH), pr: t, isPr: r, prBranch: tt(r ? e.SYSTEM_PULLREQUEST_SOURCEBRANCH : void 0), root: e.BUILD_REPOSITORY_LOCALPATH };
|
|
8391
|
-
} },
|
|
8406
|
+
} }, Co = { detect({ env: e }) {
|
|
8392
8407
|
return !!e.bamboo_agentId;
|
|
8393
8408
|
}, configuration({ env: e }) {
|
|
8394
8409
|
return { name: "Bamboo", service: "bamboo", commit: e.bamboo_planRepository_1_revision, build: e.bamboo_buildNumber, buildUrl: e.bamboo_buildResultsUrl, branch: e.bamboo_planRepository_1_branchName, job: e.bamboo_buildKey, root: e.bamboo_build_working_directory };
|
|
8395
|
-
} },
|
|
8410
|
+
} }, Uo = { detect({ env: e }) {
|
|
8396
8411
|
return !!e.BITBUCKET_BUILD_NUMBER;
|
|
8397
8412
|
}, configuration({ env: e }) {
|
|
8398
8413
|
return { name: "Bitbucket Pipelines", service: "bitbucket", commit: e.BITBUCKET_COMMIT, tag: e.BITBUCKET_TAG, build: e.BITBUCKET_BUILD_NUMBER, buildUrl: `https://bitbucket.org/${e.BITBUCKET_REPO_FULL_NAME}/addon/pipelines/home#!/results/${e.BITBUCKET_BUILD_NUMBER}`, branch: e.BITBUCKET_BRANCH, slug: e.BITBUCKET_REPO_FULL_NAME, root: e.BITBUCKET_CLONE_DIR };
|
|
8399
|
-
} },
|
|
8414
|
+
} }, Bo = { detect({ env: e }) {
|
|
8400
8415
|
return !!e.BITRISE_IO;
|
|
8401
8416
|
}, configuration({ env: e }) {
|
|
8402
8417
|
const t = e.BITRISE_PULL_REQUEST === "false" ? void 0 : e.BITRISE_PULL_REQUEST, r = !!t;
|
|
8403
8418
|
return { name: "Bitrise", service: "bitrise", commit: e.BITRISE_GIT_COMMIT, tag: e.BITRISE_GIT_TAG, build: e.BITRISE_BUILD_NUMBER, buildUrl: e.BITRISE_BUILD_URL, branch: r ? e.BITRISEIO_GIT_BRANCH_DEST : e.BITRISE_GIT_BRANCH, pr: t, isPr: r, prBranch: r ? e.BITRISE_GIT_BRANCH : void 0, slug: e.BITRISE_APP_SLUG };
|
|
8404
|
-
} },
|
|
8419
|
+
} }, Po = { detect({ env: e }) {
|
|
8405
8420
|
return !!e.BUDDY_WORKSPACE_ID;
|
|
8406
8421
|
}, configuration({ env: e }) {
|
|
8407
8422
|
const t = Jr(e.BUDDY_EXECUTION_PULL_REQUEST_ID), r = !!t;
|
|
8408
8423
|
return { name: "Buddy", service: "buddy", commit: e.BUDDY_EXECUTION_REVISION, tag: e.BUDDY_EXECUTION_TAG, build: e.BUDDY_EXECUTION_ID, buildUrl: e.BUDDY_EXECUTION_URL, branch: r ? e.BUDDY_EXECUTION_PULL_REQUEST_HEAD_BRANCH : e.BUDDY_EXECUTION_BRANCH, pr: t, isPr: r, slug: e.BUDDY_REPO_SLUG };
|
|
8409
|
-
} },
|
|
8410
|
-
function
|
|
8411
|
-
if (zr) return
|
|
8412
|
-
zr = 1,
|
|
8413
|
-
var e =
|
|
8424
|
+
} }, $e = { exports: {} }, $t, zr;
|
|
8425
|
+
function Lo() {
|
|
8426
|
+
if (zr) return $t;
|
|
8427
|
+
zr = 1, $t = n, n.sync = i;
|
|
8428
|
+
var e = qe;
|
|
8414
8429
|
function t(o, c) {
|
|
8415
8430
|
var l = c.pathExt !== void 0 ? c.pathExt : process.env.PATHEXT;
|
|
8416
8431
|
if (!l || (l = l.split(";"), l.indexOf("") !== -1)) return true;
|
|
@@ -8434,14 +8449,14 @@ function Uo() {
|
|
|
8434
8449
|
function i(o, c) {
|
|
8435
8450
|
return r(e.statSync(o), o, c);
|
|
8436
8451
|
}
|
|
8437
|
-
return a(i, "sync"),
|
|
8452
|
+
return a(i, "sync"), $t;
|
|
8438
8453
|
}
|
|
8439
|
-
a(
|
|
8454
|
+
a(Lo, "requireWindows");
|
|
8440
8455
|
var kt, Qr;
|
|
8441
|
-
function
|
|
8456
|
+
function Oo() {
|
|
8442
8457
|
if (Qr) return kt;
|
|
8443
8458
|
Qr = 1, kt = t, t.sync = r;
|
|
8444
|
-
var e =
|
|
8459
|
+
var e = qe;
|
|
8445
8460
|
function t(o, c, l) {
|
|
8446
8461
|
e.stat(o, function(p, E) {
|
|
8447
8462
|
l(p, p ? false : n(E, c));
|
|
@@ -8462,13 +8477,13 @@ function Bo() {
|
|
|
8462
8477
|
}
|
|
8463
8478
|
return a(i, "checkMode"), kt;
|
|
8464
8479
|
}
|
|
8465
|
-
a(
|
|
8466
|
-
var
|
|
8467
|
-
function
|
|
8468
|
-
if (Xr) return
|
|
8480
|
+
a(Oo, "requireMode");
|
|
8481
|
+
var Ht, Xr;
|
|
8482
|
+
function No() {
|
|
8483
|
+
if (Xr) return Ht;
|
|
8469
8484
|
Xr = 1;
|
|
8470
8485
|
var e;
|
|
8471
|
-
process.platform === "win32" || Bi.TESTING_WINDOWS ? e =
|
|
8486
|
+
process.platform === "win32" || Bi.TESTING_WINDOWS ? e = Lo() : e = Oo(), Ht = t, t.sync = r;
|
|
8472
8487
|
function t(n, i, o) {
|
|
8473
8488
|
if (typeof i == "function" && (o = i, i = {}), !o) {
|
|
8474
8489
|
if (typeof Promise != "function") throw new TypeError("callback not provided");
|
|
@@ -8491,39 +8506,39 @@ function Lo() {
|
|
|
8491
8506
|
throw o;
|
|
8492
8507
|
}
|
|
8493
8508
|
}
|
|
8494
|
-
return a(r, "sync"),
|
|
8509
|
+
return a(r, "sync"), Ht;
|
|
8495
8510
|
}
|
|
8496
|
-
a(
|
|
8497
|
-
var
|
|
8498
|
-
function
|
|
8499
|
-
if (Zr) return
|
|
8511
|
+
a(No, "requireIsexe");
|
|
8512
|
+
var Ft, Zr;
|
|
8513
|
+
function Do() {
|
|
8514
|
+
if (Zr) return Ft;
|
|
8500
8515
|
Zr = 1;
|
|
8501
|
-
const e = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", t =
|
|
8516
|
+
const e = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", t = Ke, r = e ? ";" : ":", n = No(), i = a((p) => Object.assign(new Error(`not found: ${p}`), { code: "ENOENT" }), "getNotFoundError"), o = a((p, E) => {
|
|
8502
8517
|
const h = E.colon || r, T = p.match(/\//) || e && p.match(/\\/) ? [""] : [...e ? [process.cwd()] : [], ...(E.path || process.env.PATH || "").split(h)], v = e ? E.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", C = e ? v.split(h) : [""];
|
|
8503
8518
|
return e && p.indexOf(".") !== -1 && C[0] !== "" && C.unshift(""), { pathEnv: T, pathExt: C, pathExtExe: v };
|
|
8504
8519
|
}, "getPathInfo"), c = a((p, E, h) => {
|
|
8505
8520
|
typeof E == "function" && (h = E, E = {}), E || (E = {});
|
|
8506
|
-
const { pathEnv: T, pathExt: v, pathExtExe: C } = o(p, E), D = [], M = a((
|
|
8507
|
-
if (
|
|
8508
|
-
const x = T[
|
|
8509
|
-
w(b(F,
|
|
8510
|
-
}), "step"), b = a((
|
|
8511
|
-
if (
|
|
8512
|
-
const
|
|
8513
|
-
n(
|
|
8514
|
-
if (!F && s) if (E.all) D.push(
|
|
8515
|
-
else return x(
|
|
8516
|
-
return x(b(
|
|
8521
|
+
const { pathEnv: T, pathExt: v, pathExtExe: C } = o(p, E), D = [], M = a((P) => new Promise((w, L) => {
|
|
8522
|
+
if (P === T.length) return E.all && D.length ? w(D) : L(i(p));
|
|
8523
|
+
const x = T[P], U = /^".*"$/.test(x) ? x.slice(1, -1) : x, k = t.join(U, p), F = !U && /^\.[\\\/]/.test(p) ? p.slice(0, 2) + k : k;
|
|
8524
|
+
w(b(F, P, 0));
|
|
8525
|
+
}), "step"), b = a((P, w, L) => new Promise((x, U) => {
|
|
8526
|
+
if (L === v.length) return x(M(w + 1));
|
|
8527
|
+
const k = v[L];
|
|
8528
|
+
n(P + k, { pathExt: C }, (F, s) => {
|
|
8529
|
+
if (!F && s) if (E.all) D.push(P + k);
|
|
8530
|
+
else return x(P + k);
|
|
8531
|
+
return x(b(P, w, L + 1));
|
|
8517
8532
|
});
|
|
8518
8533
|
}), "subStep");
|
|
8519
|
-
return h ? M(0).then((
|
|
8534
|
+
return h ? M(0).then((P) => h(null, P), h) : M(0);
|
|
8520
8535
|
}, "which"), l = a((p, E) => {
|
|
8521
8536
|
E = E || {};
|
|
8522
8537
|
const { pathEnv: h, pathExt: T, pathExtExe: v } = o(p, E), C = [];
|
|
8523
8538
|
for (let D = 0; D < h.length; D++) {
|
|
8524
|
-
const M = h[D], b = /^".*"$/.test(M) ? M.slice(1, -1) : M,
|
|
8525
|
-
for (let
|
|
8526
|
-
const x = w + T[
|
|
8539
|
+
const M = h[D], b = /^".*"$/.test(M) ? M.slice(1, -1) : M, P = t.join(b, p), w = !b && /^\.[\\\/]/.test(p) ? p.slice(0, 2) + P : P;
|
|
8540
|
+
for (let L = 0; L < T.length; L++) {
|
|
8541
|
+
const x = w + T[L];
|
|
8527
8542
|
try {
|
|
8528
8543
|
if (n.sync(x, { pathExt: v })) if (E.all) C.push(x);
|
|
8529
8544
|
else return x;
|
|
@@ -8535,11 +8550,11 @@ function Oo() {
|
|
|
8535
8550
|
if (E.nothrow) return null;
|
|
8536
8551
|
throw i(p);
|
|
8537
8552
|
}, "whichSync");
|
|
8538
|
-
return
|
|
8553
|
+
return Ft = c, c.sync = l, Ft;
|
|
8539
8554
|
}
|
|
8540
|
-
a(
|
|
8555
|
+
a(Do, "requireWhich");
|
|
8541
8556
|
var ut = { exports: {} }, en;
|
|
8542
|
-
function
|
|
8557
|
+
function Mo() {
|
|
8543
8558
|
if (en) return ut.exports;
|
|
8544
8559
|
en = 1;
|
|
8545
8560
|
const e = a((t = {}) => {
|
|
@@ -8548,12 +8563,12 @@ function Po() {
|
|
|
8548
8563
|
}, "pathKey");
|
|
8549
8564
|
return ut.exports = e, ut.exports.default = e, ut.exports;
|
|
8550
8565
|
}
|
|
8551
|
-
a(
|
|
8552
|
-
var
|
|
8553
|
-
function
|
|
8554
|
-
if (tn) return
|
|
8566
|
+
a(Mo, "requirePathKey");
|
|
8567
|
+
var jt, tn;
|
|
8568
|
+
function xo() {
|
|
8569
|
+
if (tn) return jt;
|
|
8555
8570
|
tn = 1;
|
|
8556
|
-
const e =
|
|
8571
|
+
const e = Ke, t = Do(), r = Mo();
|
|
8557
8572
|
function n(o, c) {
|
|
8558
8573
|
const l = o.options.env || process.env, p = process.cwd(), E = o.options.cwd != null, h = E && process.chdir !== void 0 && !process.chdir.disabled;
|
|
8559
8574
|
if (h) try {
|
|
@@ -8573,11 +8588,11 @@ function No() {
|
|
|
8573
8588
|
function i(o) {
|
|
8574
8589
|
return n(o) || n(o, true);
|
|
8575
8590
|
}
|
|
8576
|
-
return a(i, "resolveCommand"),
|
|
8591
|
+
return a(i, "resolveCommand"), jt = i, jt;
|
|
8577
8592
|
}
|
|
8578
|
-
a(
|
|
8593
|
+
a(xo, "requireResolveCommand");
|
|
8579
8594
|
var lt = {}, rn;
|
|
8580
|
-
function
|
|
8595
|
+
function Go() {
|
|
8581
8596
|
if (rn) return lt;
|
|
8582
8597
|
rn = 1;
|
|
8583
8598
|
const e = /([()\][%!^"`<>&|;, *?])/g;
|
|
@@ -8590,30 +8605,30 @@ function Do() {
|
|
|
8590
8605
|
}
|
|
8591
8606
|
return a(r, "escapeArgument"), lt.command = t, lt.argument = r, lt;
|
|
8592
8607
|
}
|
|
8593
|
-
a(
|
|
8594
|
-
var
|
|
8595
|
-
function
|
|
8596
|
-
return nn || (nn = 1,
|
|
8608
|
+
a(Go, "require_escape");
|
|
8609
|
+
var qt, nn;
|
|
8610
|
+
function $o() {
|
|
8611
|
+
return nn || (nn = 1, qt = /^#!(.*)/), qt;
|
|
8597
8612
|
}
|
|
8598
|
-
a(
|
|
8599
|
-
var
|
|
8600
|
-
function
|
|
8601
|
-
if (on) return
|
|
8613
|
+
a($o, "requireShebangRegex");
|
|
8614
|
+
var Kt, on;
|
|
8615
|
+
function ko() {
|
|
8616
|
+
if (on) return Kt;
|
|
8602
8617
|
on = 1;
|
|
8603
|
-
const e =
|
|
8604
|
-
return
|
|
8618
|
+
const e = $o();
|
|
8619
|
+
return Kt = a((t = "") => {
|
|
8605
8620
|
const r = t.match(e);
|
|
8606
8621
|
if (!r) return null;
|
|
8607
8622
|
const [n, i] = r[0].replace(/#! ?/, "").split(" "), o = n.split("/").pop();
|
|
8608
8623
|
return o === "env" ? i : i ? `${o} ${i}` : o;
|
|
8609
|
-
}, "shebangCommand"),
|
|
8624
|
+
}, "shebangCommand"), Kt;
|
|
8610
8625
|
}
|
|
8611
|
-
a(
|
|
8612
|
-
var
|
|
8613
|
-
function
|
|
8614
|
-
if (sn) return
|
|
8626
|
+
a(ko, "requireShebangCommand");
|
|
8627
|
+
var Vt, sn;
|
|
8628
|
+
function Ho() {
|
|
8629
|
+
if (sn) return Vt;
|
|
8615
8630
|
sn = 1;
|
|
8616
|
-
const e =
|
|
8631
|
+
const e = qe, t = ko();
|
|
8617
8632
|
function r(n) {
|
|
8618
8633
|
const o = Buffer.alloc(150);
|
|
8619
8634
|
let c;
|
|
@@ -8623,14 +8638,14 @@ function Go() {
|
|
|
8623
8638
|
}
|
|
8624
8639
|
return t(o.toString());
|
|
8625
8640
|
}
|
|
8626
|
-
return a(r, "readShebang"),
|
|
8641
|
+
return a(r, "readShebang"), Vt = r, Vt;
|
|
8627
8642
|
}
|
|
8628
|
-
a(
|
|
8643
|
+
a(Ho, "requireReadShebang");
|
|
8629
8644
|
var Wt, an;
|
|
8630
|
-
function
|
|
8645
|
+
function Fo() {
|
|
8631
8646
|
if (an) return Wt;
|
|
8632
8647
|
an = 1;
|
|
8633
|
-
const e =
|
|
8648
|
+
const e = Ke, t = xo(), r = Go(), n = Ho(), i = process.platform === "win32", o = /\.(?:com|exe)$/i, c = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
8634
8649
|
function l(h) {
|
|
8635
8650
|
h.file = t(h);
|
|
8636
8651
|
const T = h.file && n(h.file);
|
|
@@ -8656,10 +8671,10 @@ function ko() {
|
|
|
8656
8671
|
}
|
|
8657
8672
|
return a(E, "parse"), Wt = E, Wt;
|
|
8658
8673
|
}
|
|
8659
|
-
a(
|
|
8660
|
-
var
|
|
8661
|
-
function
|
|
8662
|
-
if (cn) return
|
|
8674
|
+
a(Fo, "requireParse");
|
|
8675
|
+
var Yt, cn;
|
|
8676
|
+
function jo() {
|
|
8677
|
+
if (cn) return Yt;
|
|
8663
8678
|
cn = 1;
|
|
8664
8679
|
const e = process.platform === "win32";
|
|
8665
8680
|
function t(o, c) {
|
|
@@ -8685,14 +8700,14 @@ function $o() {
|
|
|
8685
8700
|
function i(o, c) {
|
|
8686
8701
|
return e && o === 1 && !c.file ? t(c.original, "spawnSync") : null;
|
|
8687
8702
|
}
|
|
8688
|
-
return a(i, "verifyENOENTSync"),
|
|
8703
|
+
return a(i, "verifyENOENTSync"), Yt = { hookChildProcess: r, verifyENOENT: n, verifyENOENTSync: i, notFoundError: t }, Yt;
|
|
8689
8704
|
}
|
|
8690
|
-
a(
|
|
8705
|
+
a(jo, "requireEnoent");
|
|
8691
8706
|
var un;
|
|
8692
|
-
function
|
|
8693
|
-
if (un) return
|
|
8707
|
+
function qo() {
|
|
8708
|
+
if (un) return $e.exports;
|
|
8694
8709
|
un = 1;
|
|
8695
|
-
const e = require$$0$2, t =
|
|
8710
|
+
const e = require$$0$2, t = Fo(), r = jo();
|
|
8696
8711
|
function n(o, c, l) {
|
|
8697
8712
|
const p = t(o, c, l), E = e.spawn(p.command, p.args, p.options);
|
|
8698
8713
|
return r.hookChildProcess(E, p), E;
|
|
@@ -8702,78 +8717,78 @@ function Ho() {
|
|
|
8702
8717
|
const p = t(o, c, l), E = e.spawnSync(p.command, p.args, p.options);
|
|
8703
8718
|
return E.error = E.error || r.verifyENOENTSync(E.status, p), E;
|
|
8704
8719
|
}
|
|
8705
|
-
return a(i, "spawnSync"),
|
|
8720
|
+
return a(i, "spawnSync"), $e.exports = n, $e.exports.spawn = n, $e.exports.sync = i, $e.exports._parse = t, $e.exports._enoent = r, $e.exports;
|
|
8706
8721
|
}
|
|
8707
|
-
a(
|
|
8708
|
-
var
|
|
8709
|
-
function
|
|
8722
|
+
a(qo, "requireCrossSpawn");
|
|
8723
|
+
var Ko = qo(), Vo = vr(Ko);
|
|
8724
|
+
function Wo(e) {
|
|
8710
8725
|
const t = typeof e == "string" ? `
|
|
8711
8726
|
` : 10, r = typeof e == "string" ? "\r" : 13;
|
|
8712
8727
|
return e[e.length - 1] === t && (e = e.slice(0, -1)), e[e.length - 1] === r && (e = e.slice(0, -1)), e;
|
|
8713
8728
|
}
|
|
8714
|
-
a(
|
|
8729
|
+
a(Wo, "stripFinalNewline");
|
|
8715
8730
|
function ln(e = {}) {
|
|
8716
8731
|
const { env: t = process.env, platform: r = process.platform } = e;
|
|
8717
8732
|
return r !== "win32" ? "PATH" : Object.keys(t).reverse().find((n) => n.toUpperCase() === "PATH") || "Path";
|
|
8718
8733
|
}
|
|
8719
8734
|
a(ln, "pathKey");
|
|
8720
|
-
const
|
|
8735
|
+
const Yo = a(({ cwd: e = y.cwd(), path: t = y.env[ln()], preferLocal: r = true, execPath: n = y.execPath, addExecPath: i = true } = {}) => {
|
|
8721
8736
|
const o = e instanceof URL ? node_url.fileURLToPath(e) : e, c = path.resolve(o), l = [];
|
|
8722
|
-
return r &&
|
|
8723
|
-
}, "npmRunPath"),
|
|
8737
|
+
return r && Jo(l, c), i && zo(l, n, c), [...l, t].join(path.delimiter);
|
|
8738
|
+
}, "npmRunPath"), Jo = a((e, t) => {
|
|
8724
8739
|
let r;
|
|
8725
8740
|
for (; r !== t; ) e.push(path.join(t, "node_modules/.bin")), r = t, t = path.resolve(t, "..");
|
|
8726
|
-
}, "applyPreferLocal"),
|
|
8741
|
+
}, "applyPreferLocal"), zo = a((e, t, r) => {
|
|
8727
8742
|
const n = t instanceof URL ? node_url.fileURLToPath(t) : t;
|
|
8728
8743
|
e.push(path.resolve(r, n, ".."));
|
|
8729
|
-
}, "applyExecPath"),
|
|
8744
|
+
}, "applyExecPath"), Qo = a(({ env: e = y.env, ...t } = {}) => {
|
|
8730
8745
|
e = { ...e };
|
|
8731
8746
|
const r = ln({ env: e });
|
|
8732
|
-
return t.path = e[r], e[r] =
|
|
8733
|
-
}, "npmRunPathEnv"),
|
|
8747
|
+
return t.path = e[r], e[r] = Yo(t), e;
|
|
8748
|
+
}, "npmRunPathEnv"), Xo = a(() => {
|
|
8734
8749
|
const e = hn - fn + 1;
|
|
8735
|
-
return Array.from({ length: e },
|
|
8736
|
-
}, "getRealtimeSignals"),
|
|
8737
|
-
const e =
|
|
8738
|
-
return [...
|
|
8739
|
-
}, "getSignals"),
|
|
8750
|
+
return Array.from({ length: e }, Zo);
|
|
8751
|
+
}, "getRealtimeSignals"), Zo = a((e, t) => ({ name: `SIGRT${t + 1}`, number: fn + t, action: "terminate", description: "Application-specific signal (realtime)", standard: "posix" }), "getRealtimeSignal"), fn = 34, hn = 64, es = [{ 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" }], dn = a(() => {
|
|
8752
|
+
const e = Xo();
|
|
8753
|
+
return [...es, ...e].map(ts);
|
|
8754
|
+
}, "getSignals"), ts = a(({ name: e, number: t, description: r, action: n, forced: i = false, standard: o }) => {
|
|
8740
8755
|
const { signals: { [e]: c } } = node_os.constants, l = c !== void 0;
|
|
8741
8756
|
return { name: e, number: l ? c : t, description: r, supported: l, action: n, forced: i, standard: o };
|
|
8742
|
-
}, "normalizeSignal"),
|
|
8757
|
+
}, "normalizeSignal"), rs = a(() => {
|
|
8743
8758
|
const e = dn();
|
|
8744
|
-
return Object.fromEntries(e.map(
|
|
8745
|
-
}, "getSignalsByName"),
|
|
8746
|
-
const e = dn(), t = hn + 1, r = Array.from({ length: t }, (n, i) =>
|
|
8759
|
+
return Object.fromEntries(e.map(ns));
|
|
8760
|
+
}, "getSignalsByName"), ns = a(({ name: e, number: t, description: r, supported: n, action: i, forced: o, standard: c }) => [e, { name: e, number: t, description: r, supported: n, action: i, forced: o, standard: c }], "getSignalByName"), is = rs(), os = a(() => {
|
|
8761
|
+
const e = dn(), t = hn + 1, r = Array.from({ length: t }, (n, i) => ss(i, e));
|
|
8747
8762
|
return Object.assign({}, ...r);
|
|
8748
|
-
}, "getSignalsByNumber"),
|
|
8749
|
-
const r =
|
|
8763
|
+
}, "getSignalsByNumber"), ss = a((e, t) => {
|
|
8764
|
+
const r = as(e, t);
|
|
8750
8765
|
if (r === void 0) return {};
|
|
8751
8766
|
const { name: n, description: i, supported: o, action: c, forced: l, standard: p } = r;
|
|
8752
8767
|
return { [e]: { name: n, number: e, description: i, supported: o, action: c, forced: l, standard: p } };
|
|
8753
|
-
}, "getSignalByNumber"),
|
|
8768
|
+
}, "getSignalByNumber"), as = a((e, t) => {
|
|
8754
8769
|
const r = t.find(({ name: n }) => node_os.constants.signals[n] === e);
|
|
8755
8770
|
return r !== void 0 ? r : t.find((n) => n.number === e);
|
|
8756
8771
|
}, "findSignalByNumber");
|
|
8757
|
-
|
|
8758
|
-
const
|
|
8772
|
+
os();
|
|
8773
|
+
const cs = a(({ timedOut: e, timeout: t, errorCode: r, signal: n, signalDescription: i, exitCode: o, isCanceled: c }) => e ? `timed out after ${t} milliseconds` : r !== void 0 ? `failed with ${r}` : n !== void 0 ? `was killed with ${n} (${i})` : o !== void 0 ? `failed with exit code ${o}` : "failed", "getErrorPrefix"), pn = a(({ stdout: e, stderr: t, all: r, error: n, signal: i, exitCode: o, command: c, escapedCommand: l, timedOut: p, isCanceled: E, killed: h, parsed: { options: { timeout: T, cwd: v = y.cwd() } } }) => {
|
|
8759
8774
|
o = o === null ? void 0 : o, i = i === null ? void 0 : i;
|
|
8760
|
-
const C = i === void 0 ? void 0 :
|
|
8761
|
-
${n.message}` : b,
|
|
8775
|
+
const C = i === void 0 ? void 0 : is[i].description, D = n && n.code, b = `Command ${cs({ timedOut: p, timeout: T, errorCode: D, signal: i, signalDescription: C, exitCode: o, isCanceled: E })}: ${c}`, P = Object.prototype.toString.call(n) === "[object Error]", w = P ? `${b}
|
|
8776
|
+
${n.message}` : b, L = [w, t, e].filter(Boolean).join(`
|
|
8762
8777
|
`);
|
|
8763
|
-
return
|
|
8764
|
-
}, "makeError"), ft = ["stdin", "stdout", "stderr"],
|
|
8778
|
+
return P ? (n.originalMessage = n.message, n.message = L) : n = new Error(L), n.shortMessage = w, n.command = c, n.escapedCommand = l, n.exitCode = o, n.signal = i, n.signalDescription = C, n.stdout = e, n.stderr = t, n.cwd = v, r !== void 0 && (n.all = r), "bufferedData" in n && delete n.bufferedData, n.failed = true, n.timedOut = !!p, n.isCanceled = E, n.killed = h && !p, n;
|
|
8779
|
+
}, "makeError"), ft = ["stdin", "stdout", "stderr"], us = a((e) => ft.some((t) => e[t] !== void 0), "hasAlias"), ls = a((e) => {
|
|
8765
8780
|
if (!e) return;
|
|
8766
8781
|
const { stdio: t } = e;
|
|
8767
8782
|
if (t === void 0) return ft.map((n) => e[n]);
|
|
8768
|
-
if (
|
|
8783
|
+
if (us(e)) throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${ft.map((n) => `\`${n}\``).join(", ")}`);
|
|
8769
8784
|
if (typeof t == "string") return t;
|
|
8770
8785
|
if (!Array.isArray(t)) throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);
|
|
8771
8786
|
const r = Math.max(t.length, ft.length);
|
|
8772
8787
|
return Array.from({ length: r }, (n, i) => t[i]);
|
|
8773
|
-
}, "normalizeStdio"),
|
|
8774
|
-
|
|
8775
|
-
const ht = a((e) => !!e && typeof e == "object" && typeof e.removeListener == "function" && typeof e.emit == "function" && typeof e.reallyExit == "function" && typeof e.listeners == "function" && typeof e.kill == "function" && typeof e.pid == "number" && typeof e.on == "function", "processOk"),
|
|
8776
|
-
class
|
|
8788
|
+
}, "normalizeStdio"), je = [];
|
|
8789
|
+
je.push("SIGHUP", "SIGINT", "SIGTERM"), process.platform !== "win32" && je.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT"), process.platform === "linux" && je.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
8790
|
+
const ht = a((e) => !!e && typeof e == "object" && typeof e.removeListener == "function" && typeof e.emit == "function" && typeof e.reallyExit == "function" && typeof e.listeners == "function" && typeof e.kill == "function" && typeof e.pid == "number" && typeof e.on == "function", "processOk"), Jt = Symbol.for("signal-exit emitter"), zt = globalThis, fs = Object.defineProperty.bind(Object);
|
|
8791
|
+
class hs {
|
|
8777
8792
|
static {
|
|
8778
8793
|
a(this, "Emitter");
|
|
8779
8794
|
}
|
|
@@ -8782,8 +8797,8 @@ class us {
|
|
|
8782
8797
|
count = 0;
|
|
8783
8798
|
id = Math.random();
|
|
8784
8799
|
constructor() {
|
|
8785
|
-
if (Jt
|
|
8786
|
-
|
|
8800
|
+
if (zt[Jt]) return zt[Jt];
|
|
8801
|
+
fs(zt, Jt, { value: this, writable: false, enumerable: false, configurable: false });
|
|
8787
8802
|
}
|
|
8788
8803
|
on(t, r) {
|
|
8789
8804
|
this.listeners[t].push(r);
|
|
@@ -8805,14 +8820,14 @@ class mn {
|
|
|
8805
8820
|
a(this, "SignalExitBase");
|
|
8806
8821
|
}
|
|
8807
8822
|
}
|
|
8808
|
-
const
|
|
8823
|
+
const ds = a((e) => ({ onExit(t, r) {
|
|
8809
8824
|
return e.onExit(t, r);
|
|
8810
8825
|
}, load() {
|
|
8811
8826
|
return e.load();
|
|
8812
8827
|
}, unload() {
|
|
8813
8828
|
return e.unload();
|
|
8814
8829
|
} }), "signalExitWrap");
|
|
8815
|
-
class
|
|
8830
|
+
class ps extends mn {
|
|
8816
8831
|
static {
|
|
8817
8832
|
a(this, "SignalExitFallback");
|
|
8818
8833
|
}
|
|
@@ -8825,12 +8840,12 @@ class fs extends mn {
|
|
|
8825
8840
|
unload() {
|
|
8826
8841
|
}
|
|
8827
8842
|
}
|
|
8828
|
-
class
|
|
8843
|
+
class ms extends mn {
|
|
8829
8844
|
static {
|
|
8830
8845
|
a(this, "SignalExit");
|
|
8831
8846
|
}
|
|
8832
|
-
#s =
|
|
8833
|
-
#t = new
|
|
8847
|
+
#s = Qt.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
8848
|
+
#t = new hs();
|
|
8834
8849
|
#e;
|
|
8835
8850
|
#i;
|
|
8836
8851
|
#o;
|
|
@@ -8838,7 +8853,7 @@ class hs extends mn {
|
|
|
8838
8853
|
#r = false;
|
|
8839
8854
|
constructor(t) {
|
|
8840
8855
|
super(), this.#e = t, this.#n = {};
|
|
8841
|
-
for (const r of
|
|
8856
|
+
for (const r of je) this.#n[r] = () => {
|
|
8842
8857
|
const n = this.#e.listeners(r);
|
|
8843
8858
|
let { count: i } = this.#t;
|
|
8844
8859
|
const o = t;
|
|
@@ -8862,7 +8877,7 @@ class hs extends mn {
|
|
|
8862
8877
|
load() {
|
|
8863
8878
|
if (!this.#r) {
|
|
8864
8879
|
this.#r = true, this.#t.count += 1;
|
|
8865
|
-
for (const t of
|
|
8880
|
+
for (const t of je) try {
|
|
8866
8881
|
const r = this.#n[t];
|
|
8867
8882
|
r && this.#e.on(t, r);
|
|
8868
8883
|
} catch {
|
|
@@ -8871,7 +8886,7 @@ class hs extends mn {
|
|
|
8871
8886
|
}
|
|
8872
8887
|
}
|
|
8873
8888
|
unload() {
|
|
8874
|
-
this.#r && (this.#r = false,
|
|
8889
|
+
this.#r && (this.#r = false, je.forEach((t) => {
|
|
8875
8890
|
const r = this.#n[t];
|
|
8876
8891
|
if (!r) throw new Error("Listener not defined for signal: " + t);
|
|
8877
8892
|
try {
|
|
@@ -8892,18 +8907,18 @@ class hs extends mn {
|
|
|
8892
8907
|
} else return n.call(this.#e, t, ...r);
|
|
8893
8908
|
}
|
|
8894
8909
|
}
|
|
8895
|
-
const
|
|
8896
|
-
|
|
8897
|
-
function
|
|
8910
|
+
const Qt = globalThis.process;
|
|
8911
|
+
ds(ht(Qt) ? new ms(Qt) : new ps());
|
|
8912
|
+
function Es(e) {
|
|
8898
8913
|
return e !== null && typeof e == "object" && typeof e.pipe == "function";
|
|
8899
8914
|
}
|
|
8900
|
-
a(
|
|
8901
|
-
var
|
|
8902
|
-
function
|
|
8903
|
-
if (En) return
|
|
8915
|
+
a(Es, "isStream"), new TextEncoder();
|
|
8916
|
+
var Xt, En;
|
|
8917
|
+
function gs() {
|
|
8918
|
+
if (En) return Xt;
|
|
8904
8919
|
En = 1;
|
|
8905
8920
|
const { PassThrough: e } = require$$0;
|
|
8906
|
-
return
|
|
8921
|
+
return Xt = a(function() {
|
|
8907
8922
|
var t = [], r = new e({ objectMode: true });
|
|
8908
8923
|
return r.setMaxListeners(0), r.add = n, r.isEmpty = i, r.on("unpipe", o), Array.prototype.slice.call(arguments).forEach(n), r;
|
|
8909
8924
|
function n(c) {
|
|
@@ -8917,42 +8932,42 @@ function ps() {
|
|
|
8917
8932
|
return l !== c;
|
|
8918
8933
|
}), !t.length && r.readable && r.end();
|
|
8919
8934
|
}
|
|
8920
|
-
}, "mergeStream"),
|
|
8935
|
+
}, "mergeStream"), Xt;
|
|
8921
8936
|
}
|
|
8922
|
-
a(
|
|
8923
|
-
const
|
|
8937
|
+
a(gs, "requireMergeStream"), gs();
|
|
8938
|
+
const _s = a((e) => {
|
|
8924
8939
|
if (e !== void 0) throw new TypeError("The `input` and `inputFile` options cannot be both set.");
|
|
8925
|
-
}, "validateInputOptions"),
|
|
8926
|
-
const t =
|
|
8927
|
-
if (
|
|
8940
|
+
}, "validateInputOptions"), Is = a(({ input: e, inputFile: t }) => typeof t != "string" ? e : (_s(e), node_fs.readFileSync(t)), "getInputSync"), Ss = a((e) => {
|
|
8941
|
+
const t = Is(e);
|
|
8942
|
+
if (Es(t)) throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
8928
8943
|
return t;
|
|
8929
|
-
}, "handleInputSync"),
|
|
8944
|
+
}, "handleInputSync"), Rs = (async () => {
|
|
8930
8945
|
})().constructor.prototype;
|
|
8931
|
-
["then", "catch", "finally"].map((e) => [e, Reflect.getOwnPropertyDescriptor(
|
|
8932
|
-
const
|
|
8946
|
+
["then", "catch", "finally"].map((e) => [e, Reflect.getOwnPropertyDescriptor(Rs, e)]);
|
|
8947
|
+
const gn = a((e, t = []) => Array.isArray(t) ? [e, ...t] : [e], "normalizeArgs"), Ts = /^[\w.-]+$/, ys = a((e) => typeof e != "string" || Ts.test(e) ? e : `"${e.replaceAll('"', '\\"')}"`, "escapeArg"), ws = a((e, t) => gn(e, t).join(" "), "joinCommand"), As = a((e, t) => gn(e, t).map((r) => ys(r)).join(" "), "getEscapedCommand"), bs = node_util.debuglog("execa").enabled, dt = a((e, t) => String(e).padStart(t, "0"), "padField"), vs = a(() => {
|
|
8933
8948
|
const e = /* @__PURE__ */ new Date();
|
|
8934
8949
|
return `${dt(e.getHours(), 2)}:${dt(e.getMinutes(), 2)}:${dt(e.getSeconds(), 2)}.${dt(e.getMilliseconds(), 3)}`;
|
|
8935
|
-
}, "getTimestamp"),
|
|
8936
|
-
t && y.stderr.write(`[${
|
|
8950
|
+
}, "getTimestamp"), Cs = a((e, { verbose: t }) => {
|
|
8951
|
+
t && y.stderr.write(`[${vs()}] ${e}
|
|
8937
8952
|
`);
|
|
8938
|
-
}, "logCommand"),
|
|
8953
|
+
}, "logCommand"), Us = 1e3 * 1e3 * 100, Bs = a(({ env: e, extendEnv: t, preferLocal: r, localDir: n, execPath: i }) => {
|
|
8939
8954
|
const o = t ? { ...y.env, ...e } : e;
|
|
8940
|
-
return r ?
|
|
8941
|
-
}, "getEnv"),
|
|
8942
|
-
const n =
|
|
8943
|
-
return e = n.command, t = n.args, r = n.options, r = { maxBuffer:
|
|
8944
|
-
}, "handleArguments"),
|
|
8945
|
-
function
|
|
8946
|
-
const n =
|
|
8947
|
-
|
|
8948
|
-
const c =
|
|
8955
|
+
return r ? Qo({ env: o, cwd: n, execPath: i }) : o;
|
|
8956
|
+
}, "getEnv"), Ps = a((e, t, r = {}) => {
|
|
8957
|
+
const n = Vo._parse(e, t, r);
|
|
8958
|
+
return e = n.command, t = n.args, r = n.options, r = { maxBuffer: Us, 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: bs, ...r }, r.env = Bs(r), r.stdio = ls(r), y.platform === "win32" && path.basename(e, ".exe") === "cmd" && t.unshift("/q"), { file: e, args: t, options: r, parsed: n };
|
|
8959
|
+
}, "handleArguments"), _n = a((e, t, r) => typeof t != "string" && !node_buffer.Buffer.isBuffer(t) ? r === void 0 ? void 0 : "" : e.stripFinalNewline ? Wo(t) : t, "handleOutput");
|
|
8960
|
+
function Zt(e, t, r) {
|
|
8961
|
+
const n = Ps(e, t, r), i = ws(e, t), o = As(e, t);
|
|
8962
|
+
Cs(o, n.options);
|
|
8963
|
+
const c = Ss(n.options);
|
|
8949
8964
|
let l;
|
|
8950
8965
|
try {
|
|
8951
8966
|
l = childProcess.spawnSync(n.file, n.args, { ...n.options, input: c });
|
|
8952
8967
|
} catch (h) {
|
|
8953
8968
|
throw pn({ error: h, stdout: "", stderr: "", all: "", command: i, escapedCommand: o, parsed: n, timedOut: false, isCanceled: false, killed: false });
|
|
8954
8969
|
}
|
|
8955
|
-
const p =
|
|
8970
|
+
const p = _n(n.options, l.stdout, l.error), E = _n(n.options, l.stderr, l.error);
|
|
8956
8971
|
if (l.error || l.status !== 0 || l.signal !== null) {
|
|
8957
8972
|
const h = pn({ stdout: p, stderr: E, error: l.error, signal: l.signal, exitCode: l.status, command: i, escapedCommand: o, parsed: n, timedOut: l.error && l.error.code === "ETIMEDOUT", isCanceled: false, killed: l.signal !== null });
|
|
8958
8973
|
if (!n.options.reject) return h;
|
|
@@ -8960,20 +8975,20 @@ function Xt(e, t, r) {
|
|
|
8960
8975
|
}
|
|
8961
8976
|
return { command: i, escapedCommand: o, exitCode: 0, stdout: p, stderr: E, failed: false, timedOut: false, isCanceled: false, killed: false };
|
|
8962
8977
|
}
|
|
8963
|
-
a(
|
|
8978
|
+
a(Zt, "execaSync");
|
|
8964
8979
|
function pt(e) {
|
|
8965
8980
|
try {
|
|
8966
|
-
return
|
|
8981
|
+
return Zt("git", ["rev-parse", "HEAD"], e).stdout;
|
|
8967
8982
|
} catch {
|
|
8968
8983
|
return;
|
|
8969
8984
|
}
|
|
8970
8985
|
}
|
|
8971
8986
|
a(pt, "head");
|
|
8972
|
-
function
|
|
8987
|
+
function er(e) {
|
|
8973
8988
|
try {
|
|
8974
|
-
const t =
|
|
8989
|
+
const t = Zt("git", ["rev-parse", "--abbrev-ref", "HEAD"], e).stdout;
|
|
8975
8990
|
if (t === "HEAD") {
|
|
8976
|
-
const r =
|
|
8991
|
+
const r = Zt("git", ["show", "-s", "--pretty=%d", "HEAD"], e).stdout.replace(/^\(|\)$/g, "").split(", ").find((n) => n.startsWith("origin/"));
|
|
8977
8992
|
return r ? r.match(/^origin\/(?<branch>.+)/)[1] : void 0;
|
|
8978
8993
|
}
|
|
8979
8994
|
return t;
|
|
@@ -8981,126 +8996,126 @@ function Zt(e) {
|
|
|
8981
8996
|
return;
|
|
8982
8997
|
}
|
|
8983
8998
|
}
|
|
8984
|
-
a(
|
|
8985
|
-
const In = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/,
|
|
8986
|
-
function
|
|
8999
|
+
a(er, "branch");
|
|
9000
|
+
const In = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/, Ls = /^\/(.*)\.git$/;
|
|
9001
|
+
function Os(e) {
|
|
8987
9002
|
if (e) {
|
|
8988
9003
|
if (e.match(In)) return e.replace(In, "$1");
|
|
8989
9004
|
try {
|
|
8990
|
-
return new URL(e).pathname.replace(
|
|
9005
|
+
return new URL(e).pathname.replace(Ls, "$1");
|
|
8991
9006
|
} catch {
|
|
8992
9007
|
return;
|
|
8993
9008
|
}
|
|
8994
9009
|
}
|
|
8995
9010
|
}
|
|
8996
|
-
a(
|
|
8997
|
-
var
|
|
9011
|
+
a(Os, "getSlugFromGitURL");
|
|
9012
|
+
var Ns = { detect({ env: e }) {
|
|
8998
9013
|
return !!e.BUILDKITE;
|
|
8999
9014
|
}, configuration({ env: e }) {
|
|
9000
9015
|
const t = e.BUILDKITE_PULL_REQUEST === "false" ? void 0 : e.BUILDKITE_PULL_REQUEST, r = !!t;
|
|
9001
|
-
return { name: "Buildkite", service: "buildkite", build: e.BUILDKITE_BUILD_NUMBER, buildUrl: e.BUILDKITE_BUILD_URL, commit: e.BUILDKITE_COMMIT, tag: e.BUILDKITE_TAG, branch: r ? e.BUILDKITE_PULL_REQUEST_BASE_BRANCH : e.BUILDKITE_BRANCH, slug:
|
|
9002
|
-
} },
|
|
9016
|
+
return { name: "Buildkite", service: "buildkite", build: e.BUILDKITE_BUILD_NUMBER, buildUrl: e.BUILDKITE_BUILD_URL, commit: e.BUILDKITE_COMMIT, tag: e.BUILDKITE_TAG, branch: r ? e.BUILDKITE_PULL_REQUEST_BASE_BRANCH : e.BUILDKITE_BRANCH, slug: Os(e.BUILDKITE_REPO), pr: t, isPr: r, prBranch: r ? e.BUILDKITE_BRANCH : void 0, root: e.BUILDKITE_BUILD_CHECKOUT_PATH };
|
|
9017
|
+
} }, Ds = { detect({ env: e }) {
|
|
9003
9018
|
return !!e.CIRCLECI;
|
|
9004
9019
|
}, configuration({ env: e }) {
|
|
9005
9020
|
const t = e.CIRCLE_PR_NUMBER || Jr(e.CIRCLE_PULL_REQUEST || e.CI_PULL_REQUEST), r = !!t;
|
|
9006
9021
|
return { name: "CircleCI", service: "circleci", build: e.CIRCLE_BUILD_NUM, buildUrl: e.CIRCLE_BUILD_URL, job: `${e.CIRCLE_BUILD_NUM}.${e.CIRCLE_NODE_INDEX}`, commit: e.CIRCLE_SHA1, tag: e.CIRCLE_TAG, branch: r ? void 0 : e.CIRCLE_BRANCH, pr: t, isPr: r, prBranch: r ? e.CIRCLE_BRANCH : void 0, slug: `${e.CIRCLE_PROJECT_USERNAME}/${e.CIRCLE_PROJECT_REPONAME}` };
|
|
9007
9022
|
} };
|
|
9008
9023
|
const Sn = "https://cirrus-ci.com";
|
|
9009
|
-
var
|
|
9024
|
+
var Ms = { detect({ env: e }) {
|
|
9010
9025
|
return !!e.CIRRUS_CI;
|
|
9011
9026
|
}, configuration({ env: e }) {
|
|
9012
9027
|
const t = e.CIRRUS_PR, r = !!t;
|
|
9013
9028
|
return { name: "Cirrus CI", service: "cirrus", commit: e.CIRRUS_CHANGE_IN_REPO, tag: e.CIRRUS_TAG, build: e.CIRRUS_BUILD_ID, buildUrl: `${Sn}/build/${e.CIRRUS_BUILD_ID}`, job: e.CIRRUS_TASK_ID, jobUrl: `${Sn}/task/${e.CIRRUS_TASK_ID}`, branch: r ? e.CIRRUS_BASE_BRANCH : e.CIRRUS_BRANCH, pr: t, isPr: r, prBranch: r ? e.CIRRUS_BRANCH : void 0, slug: e.CIRRUS_REPO_FULL_NAME, root: e.CIRRUS_WORKING_DIR };
|
|
9014
|
-
} },
|
|
9029
|
+
} }, xs = { detect({ env: e }) {
|
|
9015
9030
|
return e.CF_PAGES === "1";
|
|
9016
9031
|
}, configuration({ env: e }) {
|
|
9017
9032
|
return { name: "Cloudflare Pages", service: "cloudflarePages", commit: e.CF_PAGES_COMMIT_SHA, branch: e.CF_PAGES_BRANCH, root: e.PWD };
|
|
9018
|
-
} },
|
|
9033
|
+
} }, Gs = { detect({ env: e }) {
|
|
9019
9034
|
return !!e.CODEBUILD_BUILD_ID;
|
|
9020
9035
|
}, configuration({ env: e, cwd: t }) {
|
|
9021
|
-
return { name: "AWS CodeBuild", service: "codebuild", commit: pt({ env: e, cwd: t }), build: e.CODEBUILD_BUILD_ID, branch:
|
|
9022
|
-
} },
|
|
9036
|
+
return { name: "AWS CodeBuild", service: "codebuild", commit: pt({ env: e, cwd: t }), build: e.CODEBUILD_BUILD_ID, branch: er({ env: e, cwd: t }), buildUrl: `https://console.aws.amazon.com/codebuild/home?region=${e.AWS_REGION}#/builds/${e.CODEBUILD_BUILD_ID}/view/new`, root: e.PWD };
|
|
9037
|
+
} }, $s = { detect({ env: e }) {
|
|
9023
9038
|
return !!e.CF_BUILD_ID;
|
|
9024
9039
|
}, configuration({ env: e }) {
|
|
9025
9040
|
const t = e.CF_PULL_REQUEST_NUMBER, r = !!t;
|
|
9026
9041
|
return { name: "Codefresh", service: "codefresh", commit: e.CF_REVISION, build: e.CF_BUILD_ID, buildUrl: e.CF_BUILD_URL, branch: r ? e.CF_PULL_REQUEST_TARGET : e.CF_BRANCH, pr: t, isPr: r, prBranch: r ? e.CF_BRANCH : void 0, slug: `${e.CF_REPO_OWNER}/${e.CF_REPO_NAME}`, root: e.CF_VOLUME_PATH };
|
|
9027
|
-
} },
|
|
9042
|
+
} }, ks = { detect({ env: e }) {
|
|
9028
9043
|
return e.CI_NAME && e.CI_NAME === "codeship";
|
|
9029
9044
|
}, configuration({ env: e }) {
|
|
9030
9045
|
return { name: "Codeship", service: "codeship", build: e.CI_BUILD_NUMBER, buildUrl: e.CI_BUILD_URL, commit: e.CI_COMMIT_ID, branch: e.CI_BRANCH, slug: e.CI_REPO_NAME };
|
|
9031
|
-
} },
|
|
9046
|
+
} }, Hs = { detect({ env: e }) {
|
|
9032
9047
|
return !!e.DRONE;
|
|
9033
9048
|
}, configuration({ env: e }) {
|
|
9034
9049
|
const t = e.DRONE_BUILD_EVENT === "pull_request";
|
|
9035
9050
|
return { name: "Drone", service: "drone", commit: e.DRONE_COMMIT_SHA, tag: e.DRONE_TAG, build: e.DRONE_BUILD_NUMBER, buildUrl: e.DRONE_BUILD_LINK, branch: t ? e.DRONE_TARGET_BRANCH : e.DRONE_BRANCH, job: e.DRONE_JOB_NUMBER, jobUrl: e.DRONE_BUILD_LINK, pr: e.DRONE_PULL_REQUEST, isPr: t, prBranch: t ? e.DRONE_SOURCE_BRANCH : void 0, slug: `${e.DRONE_REPO_OWNER}/${e.DRONE_REPO_NAME}`, root: e.DRONE_WORKSPACE };
|
|
9036
|
-
} },
|
|
9037
|
-
return { commit: pt(e), branch:
|
|
9051
|
+
} }, Fs = { configuration(e) {
|
|
9052
|
+
return { commit: pt(e), branch: er(e) };
|
|
9038
9053
|
} };
|
|
9039
|
-
const
|
|
9054
|
+
const js = a(({ env: e }) => {
|
|
9040
9055
|
try {
|
|
9041
9056
|
const t = e.GITHUB_EVENT_PATH ? JSON.parse(node_fs.readFileSync(e.GITHUB_EVENT_PATH, "utf-8")) : void 0;
|
|
9042
9057
|
if (t && t.pull_request) return { branch: t.pull_request.base ? tt(t.pull_request.base.ref) : void 0, pr: t.pull_request.number };
|
|
9043
9058
|
} catch {
|
|
9044
9059
|
}
|
|
9045
9060
|
return { pr: void 0, branch: void 0 };
|
|
9046
|
-
}, "getPrEvent"),
|
|
9061
|
+
}, "getPrEvent"), qs = a((e) => {
|
|
9047
9062
|
const t = e.GITHUB_EVENT_PATH ? JSON.parse(node_fs.readFileSync(e.GITHUB_EVENT_PATH, "utf-8")) : void 0;
|
|
9048
9063
|
return t && t.pull_request ? t.pull_request.number : void 0;
|
|
9049
9064
|
}, "getPrNumber");
|
|
9050
|
-
var
|
|
9065
|
+
var Ks = { detect({ env: e }) {
|
|
9051
9066
|
return !!e.GITHUB_ACTIONS;
|
|
9052
9067
|
}, configuration({ env: e, cwd: t }) {
|
|
9053
|
-
const r = e.GITHUB_EVENT_NAME === "pull_request" || e.GITHUB_EVENT_NAME === "pull_request_target", n = tt(e.GITHUB_EVENT_NAME === "pull_request_target" ? `refs/pull/${
|
|
9054
|
-
return { name: "GitHub Actions", service: "github", commit: e.GITHUB_SHA, build: e.GITHUB_RUN_ID, buildUrl: `${e.GITHUB_SERVER_URL}/${e.GITHUB_REPOSITORY}/actions/runs/${e.GITHUB_RUN_ID}`, isPr: r, branch: n, prBranch: r ? n : void 0, slug: e.GITHUB_REPOSITORY, root: e.GITHUB_WORKSPACE, ...r ?
|
|
9055
|
-
} },
|
|
9068
|
+
const r = e.GITHUB_EVENT_NAME === "pull_request" || e.GITHUB_EVENT_NAME === "pull_request_target", n = tt(e.GITHUB_EVENT_NAME === "pull_request_target" ? `refs/pull/${qs(e)}/merge` : e.GITHUB_REF);
|
|
9069
|
+
return { name: "GitHub Actions", service: "github", commit: e.GITHUB_SHA, build: e.GITHUB_RUN_ID, buildUrl: `${e.GITHUB_SERVER_URL}/${e.GITHUB_REPOSITORY}/actions/runs/${e.GITHUB_RUN_ID}`, isPr: r, branch: n, prBranch: r ? n : void 0, slug: e.GITHUB_REPOSITORY, root: e.GITHUB_WORKSPACE, ...r ? js({ env: e }) : void 0 };
|
|
9070
|
+
} }, Vs = { detect({ env: e }) {
|
|
9056
9071
|
return !!e.GITLAB_CI;
|
|
9057
9072
|
}, configuration({ env: e }) {
|
|
9058
9073
|
const t = e.CI_MERGE_REQUEST_ID, r = !!t;
|
|
9059
9074
|
return { name: "GitLab CI/CD", service: "gitlab", commit: e.CI_COMMIT_SHA, tag: e.CI_COMMIT_TAG, build: e.CI_PIPELINE_ID, buildUrl: `${e.CI_PROJECT_URL}/pipelines/${e.CI_PIPELINE_ID}`, job: e.CI_JOB_ID, jobUrl: `${e.CI_PROJECT_URL}/-/jobs/${e.CI_JOB_ID}`, branch: r ? e.CI_MERGE_REQUEST_TARGET_BRANCH_NAME : e.CI_COMMIT_REF_NAME, pr: t, isPr: r, prBranch: e.CI_MERGE_REQUEST_SOURCE_BRANCH_NAME, slug: e.CI_PROJECT_PATH, root: e.CI_PROJECT_DIR };
|
|
9060
|
-
} },
|
|
9075
|
+
} }, Ws = { detect({ env: e }) {
|
|
9061
9076
|
return !!e.JENKINS_URL;
|
|
9062
9077
|
}, configuration({ env: e, cwd: t }) {
|
|
9063
9078
|
const r = e.ghprbPullId || e.gitlabMergeRequestId || e.CHANGE_ID, n = !!r, i = e.GIT_LOCAL_BRANCH || e.GIT_BRANCH || e.gitlabBranch || e.BRANCH_NAME;
|
|
9064
9079
|
return { name: "Jenkins", service: "jenkins", commit: e.ghprbActualCommit || e.GIT_COMMIT || pt({ env: e, cwd: t }), branch: n ? e.ghprbTargetBranch || e.gitlabTargetBranch : i, build: e.BUILD_NUMBER, buildUrl: e.BUILD_URL, root: e.WORKSPACE, pr: r, isPr: n, prBranch: n ? e.ghprbSourceBranch || e.gitlabSourceBranch || i : void 0 };
|
|
9065
|
-
} },
|
|
9080
|
+
} }, Ys = { detect({ env: e }) {
|
|
9066
9081
|
return e.NETLIFY === "true";
|
|
9067
9082
|
}, configuration({ env: e }) {
|
|
9068
9083
|
const t = e.PULL_REQUEST === "true";
|
|
9069
9084
|
return { name: "Netlify", service: "netlify", commit: e.COMMIT_REF, build: e.DEPLOY_ID, buildUrl: `https://app.netlify.com/sites/${e.SITE_NAME}/deploys/${e.DEPLOY_ID}`, branch: t ? void 0 : e.HEAD, pr: e.REVIEW_ID, isPr: t, prBranch: t ? e.HEAD : void 0, slug: e.REPOSITORY_URL.match(/[^/:]+\/[^/]+?$/)[0], root: e.PWD };
|
|
9070
|
-
} },
|
|
9085
|
+
} }, Js = { detect({ env: e }) {
|
|
9071
9086
|
return !!e.DISTELLI_APPNAME;
|
|
9072
9087
|
}, configuration({ env: e }) {
|
|
9073
9088
|
return { name: "Puppet", service: "puppet", build: e.DISTELLI_BUILDNUM, buildUrl: e.DISTELLI_RELEASE, commit: e.DISTELLI_RELREVISION, branch: e.DISTELLI_RELBRANCH, root: e.DISTELLI_INSTALLHOME };
|
|
9074
|
-
} },
|
|
9089
|
+
} }, zs = { detect({ env: e }) {
|
|
9075
9090
|
return !!e.SAILCI;
|
|
9076
9091
|
}, configuration({ env: e }) {
|
|
9077
9092
|
const t = e.SAIL_PULL_REQUEST_NUMBER, r = !!t;
|
|
9078
9093
|
return { name: "Sail CI", service: "sail", commit: e.SAIL_COMMIT_SHA, branch: r ? void 0 : e.SAIL_COMMIT_BRANCH, pr: t, isPr: r, slug: `${e.SAIL_REPO_OWNER}/${e.SAIL_REPO_NAME}`, root: e.SAIL_CLONE_DIR };
|
|
9079
|
-
} },
|
|
9094
|
+
} }, Qs = { detect({ env: e }) {
|
|
9080
9095
|
return !!e.SCREWDRIVER;
|
|
9081
9096
|
}, configuration({ env: e }) {
|
|
9082
9097
|
const t = e.SD_PULL_REQUEST, r = !!t;
|
|
9083
9098
|
return { name: "Screwdriver.cd", service: "screwdriver", branch: r ? e.PR_BASE_BRANCH_NAME : e.GIT_BRANCH, prBranch: r ? e.PR_BRANCH_NAME : void 0, commit: e.SD_BUILD_SHA, build: e.SD_BUILD_ID, buildUrl: e.SD_UI_BUILD_URL, job: e.SD_JOB_ID, pr: t, isPr: r, slug: e.SD_PIPELINE_NAME, root: e.SD_ROOT_DIR };
|
|
9084
|
-
} },
|
|
9099
|
+
} }, Xs = { detect({ env: e }) {
|
|
9085
9100
|
return !!e.SCRUTINIZER;
|
|
9086
9101
|
}, configuration({ env: e }) {
|
|
9087
9102
|
const t = e.SCRUTINIZER_PR_NUMBER, r = !!t;
|
|
9088
9103
|
return { name: "Scrutinizer", service: "scrutinizer", commit: e.SCRUTINIZER_SHA1, build: e.SCRUTINIZER_INSPECTION_UUID, branch: e.SCRUTINIZER_BRANCH, pr: t, isPr: r, prBranch: e.SCRUTINIZER_PR_SOURCE_BRANCH };
|
|
9089
|
-
} },
|
|
9104
|
+
} }, Zs = { detect({ env: e }) {
|
|
9090
9105
|
return !!e.SEMAPHORE;
|
|
9091
9106
|
}, configuration({ env: e, cwd: t }) {
|
|
9092
9107
|
const r = e.SEMAPHORE_GIT_PR_NUMBER || e.PULL_REQUEST_NUMBER, n = !!r;
|
|
9093
9108
|
return { name: "Semaphore", service: "semaphore", commit: e.SEMAPHORE_GIT_SHA || pt({ env: e, cwd: t }), tag: e.SEMAPHORE_GIT_TAG_NAME, build: e.SEMAPHORE_JOB_ID || e.SEMAPHORE_BUILD_NUMBER, branch: e.SEMAPHORE_GIT_BRANCH || (n ? void 0 : e.BRANCH_NAME), pr: r, isPr: n, prBranch: e.SEMAPHORE_GIT_PR_BRANCH || (n ? e.BRANCH_NAME : void 0), slug: e.SEMAPHORE_GIT_REPO_SLUG || e.SEMAPHORE_REPO_SLUG, root: e.SEMAPHORE_GIT_DIR || e.SEMAPHORE_PROJECT_DIR };
|
|
9094
|
-
} },
|
|
9109
|
+
} }, ea = { detect({ env: e }) {
|
|
9095
9110
|
return !!e.SHIPPABLE;
|
|
9096
9111
|
}, configuration({ env: e }) {
|
|
9097
9112
|
const t = e.IS_PULL_REQUEST === "true" ? e.PULL_REQUEST : void 0, r = !!t;
|
|
9098
9113
|
return { name: "Shippable", service: "shippable", commit: e.COMMIT, tag: e.GIT_TAG_NAME, build: e.BUILD_NUMBER, buildUrl: e.BUILD_URL, branch: r ? e.BASE_BRANCH : e.BRANCH, job: e.JOB_NUMBER, pr: t, isPr: r, prBranch: r ? e.HEAD_BRANCH : void 0, slug: e.SHIPPABLE_REPO_SLUG, root: e.SHIPPABLE_BUILD_DIR };
|
|
9099
|
-
} },
|
|
9100
|
-
function
|
|
9101
|
-
if (Rn) return
|
|
9102
|
-
Rn = 1, Object.defineProperty(
|
|
9103
|
-
var e = t(
|
|
9114
|
+
} }, ke = {}, Rn;
|
|
9115
|
+
function ta() {
|
|
9116
|
+
if (Rn) return ke;
|
|
9117
|
+
Rn = 1, Object.defineProperty(ke, "__esModule", { value: true }), ke.of = ke.PropertiesFile = void 0;
|
|
9118
|
+
var e = t(qe);
|
|
9104
9119
|
function t(i) {
|
|
9105
9120
|
return i && i.__esModule ? i : { default: i };
|
|
9106
9121
|
}
|
|
@@ -9198,75 +9213,75 @@ function Xs() {
|
|
|
9198
9213
|
this.objs = {};
|
|
9199
9214
|
}
|
|
9200
9215
|
}
|
|
9201
|
-
|
|
9216
|
+
ke.PropertiesFile = r;
|
|
9202
9217
|
let n = a(function(...o) {
|
|
9203
9218
|
let c = new r();
|
|
9204
9219
|
return c.of.apply(c, o), c;
|
|
9205
9220
|
}, "of2");
|
|
9206
|
-
return
|
|
9221
|
+
return ke.of = n, ke;
|
|
9207
9222
|
}
|
|
9208
|
-
a(
|
|
9209
|
-
var
|
|
9210
|
-
const
|
|
9223
|
+
a(ta, "requireDistNode");
|
|
9224
|
+
var ra = ta(), na = vr(ra);
|
|
9225
|
+
const tr = { root: "teamcity.build.workingDir", branch: "teamcity.build.branch" }, Tn = a((e) => {
|
|
9211
9226
|
try {
|
|
9212
|
-
return
|
|
9227
|
+
return na.of(e);
|
|
9213
9228
|
} catch {
|
|
9214
9229
|
return;
|
|
9215
9230
|
}
|
|
9216
|
-
}, "safeReadProperties"),
|
|
9231
|
+
}, "safeReadProperties"), ia = a(({ env: e, cwd: t }) => {
|
|
9217
9232
|
const r = e.TEAMCITY_BUILD_PROPERTIES_FILE ? Tn(e.TEAMCITY_BUILD_PROPERTIES_FILE) : void 0, n = r ? r.get("teamcity.configuration.properties.file") : void 0, i = n && Tn(n);
|
|
9218
|
-
return Object.fromEntries(Object.keys(
|
|
9233
|
+
return Object.fromEntries(Object.keys(tr).map((o) => [o, (r ? r.get(tr[o]) : void 0) || (i ? i.get(tr[o]) : void 0) || (o === "branch" ? er({ env: e, cwd: t }) : void 0)]));
|
|
9219
9234
|
}, "getProperties");
|
|
9220
|
-
var
|
|
9235
|
+
var oa = { detect({ env: e }) {
|
|
9221
9236
|
return !!e.TEAMCITY_VERSION;
|
|
9222
9237
|
}, configuration({ env: e, cwd: t }) {
|
|
9223
|
-
return { name: "TeamCity", service: "teamcity", commit: e.BUILD_VCS_NUMBER, build: e.BUILD_NUMBER, slug: e.TEAMCITY_BUILDCONF_NAME, ...
|
|
9224
|
-
} },
|
|
9238
|
+
return { name: "TeamCity", service: "teamcity", commit: e.BUILD_VCS_NUMBER, build: e.BUILD_NUMBER, slug: e.TEAMCITY_BUILDCONF_NAME, ...ia({ env: e, cwd: t }) };
|
|
9239
|
+
} }, sa = { detect({ env: e }) {
|
|
9225
9240
|
return !!e.TRAVIS;
|
|
9226
9241
|
}, configuration({ env: e }) {
|
|
9227
9242
|
const t = e.TRAVIS_PULL_REQUEST === "false" ? void 0 : e.TRAVIS_PULL_REQUEST, r = !!t;
|
|
9228
9243
|
return { name: "Travis CI", service: "travis", commit: e.TRAVIS_COMMIT, tag: e.TRAVIS_TAG, build: e.TRAVIS_BUILD_NUMBER, buildUrl: e.TRAVIS_BUILD_WEB_URL, branch: e.TRAVIS_BRANCH, job: e.TRAVIS_JOB_NUMBER, jobUrl: e.TRAVIS_JOB_WEB_URL, pr: t, isPr: r, prBranch: e.TRAVIS_PULL_REQUEST_BRANCH, slug: e.TRAVIS_REPO_SLUG, root: e.TRAVIS_BUILD_DIR };
|
|
9229
|
-
} },
|
|
9244
|
+
} }, aa = { detect({ env: e }) {
|
|
9230
9245
|
return !!e.VELA;
|
|
9231
9246
|
}, configuration({ env: e }) {
|
|
9232
9247
|
const t = e.VELA_BUILD_EVENT === "pull_request";
|
|
9233
9248
|
return { name: "Vela", service: "vela", branch: t ? e.VELA_PULL_REQUEST_TARGET : e.VELA_BUILD_BRANCH, commit: e.VELA_BUILD_COMMIT, tag: e.VELA_BUILD_TAG, build: e.VELA_BUILD_NUMBER, buildUrl: e.VELA_BUILD_LINK, job: void 0, jobUrl: void 0, isPr: t, pr: e.VELA_BUILD_PULL_REQUEST, prBranch: e.VELA_PULL_REQUEST_SOURCE, slug: e.VELA_REPO_FULL_NAME, root: e.VELA_BUILD_WORKSPACE };
|
|
9234
|
-
} },
|
|
9249
|
+
} }, ca = { detect({ env: e }) {
|
|
9235
9250
|
return !!e.VERCEL || !!e.NOW_GITHUB_DEPLOYMENT;
|
|
9236
9251
|
}, configuration({ env: e }) {
|
|
9237
9252
|
const t = "Vercel", r = "vercel";
|
|
9238
9253
|
return e.VERCEL ? { name: t, service: r, commit: e.VERCEL_GIT_COMMIT_SHA, branch: e.VERCEL_GIT_COMMIT_REF, slug: `${e.VERCEL_GIT_REPO_OWNER}/${e.VERCEL_GIT_REPO_SLUG}` } : { name: t, service: r, commit: e.NOW_GITHUB_COMMIT_SHA, branch: e.NOW_GITHUB_COMMIT_REF, slug: `${e.NOW_GITHUB_ORG}/${e.NOW_GITHUB_REPO}` };
|
|
9239
|
-
} },
|
|
9254
|
+
} }, ua = { detect({ env: e }) {
|
|
9240
9255
|
return !!e.WERCKER_MAIN_PIPELINE_STARTED;
|
|
9241
9256
|
}, configuration({ env: e }) {
|
|
9242
9257
|
return { name: "Wercker", service: "wercker", commit: e.WERCKER_GIT_COMMIT, build: e.WERCKER_MAIN_PIPELINE_STARTED, buildUrl: e.WERCKER_RUN_URL, branch: e.WERCKER_GIT_BRANCH, slug: `${e.WERCKER_GIT_OWNER}/${e.WERCKER_GIT_REPOSITORY}`, root: e.WERCKER_ROOT };
|
|
9243
|
-
} },
|
|
9258
|
+
} }, la = { detect({ env: e }) {
|
|
9244
9259
|
return e.CI && e.CI === "woodpecker";
|
|
9245
9260
|
}, configuration({ env: e }) {
|
|
9246
9261
|
const t = e.CI_PIPELINE_EVENT === "pull_request";
|
|
9247
9262
|
return { name: "Woodpecker CI", service: "woodpecker", commit: e.CI_COMMIT_SHA, tag: e.CI_COMMIT_TAG, build: e.CI_PIPELINE_NUMBER, buildUrl: e.CI_PIPELINE_URL, branch: t ? e.CI_COMMIT_TARGET_BRANCH : e.CI_COMMIT_BRANCH, job: e.CI_STEP_NUMBER, jobUrl: e.CI_STEP_URL, pr: e.CI_COMMIT_PULL_REQUEST, isPr: t, prBranch: t ? e.CI_COMMIT_SOURCE_BRANCH : void 0, slug: `${e.CI_REPO_OWNER}/${e.CI_REPO_NAME}`, root: e.CI_WORKSPACE };
|
|
9248
|
-
} },
|
|
9263
|
+
} }, fa = { detect({ env: e }) {
|
|
9249
9264
|
return !!e.JB_SPACE_EXECUTION_NUMBER;
|
|
9250
9265
|
}, configuration({ env: e }) {
|
|
9251
9266
|
const t = e.JB_SPACE_PROJECT_KEY, r = e.JB_SPACE_GIT_REPOSITORY_NAME;
|
|
9252
9267
|
return { name: "JetBrains Space", service: "jetbrainsSpace", commit: e.JB_SPACE_GIT_REVISION, build: e.JB_SPACE_EXECUTION_NUMBER, branch: tt(e.JB_SPACE_GIT_BRANCH), slug: t && r ? `${t.toLowerCase()}/${r}` : void 0 };
|
|
9253
9268
|
} };
|
|
9254
|
-
const
|
|
9255
|
-
var
|
|
9256
|
-
for (const r of Object.keys(
|
|
9257
|
-
return { isCi: !!e.CI, ...
|
|
9269
|
+
const rr = { appveyor: bo, azurePipelines: vo, bamboo: Co, bitbucket: Uo, bitrise: Bo, buddy: Po, buildkite: Ns, circleci: Ds, cirrus: Ms, cloudflarePages: xs, codebuild: Gs, codefresh: $s, codeship: ks, drone: Hs, github: Ks, gitlab: Vs, jenkins: Ws, netlify: Ys, puppet: Js, sail: zs, screwdriver: Qs, scrutinizer: Xs, semaphore: Zs, shippable: ea, teamcity: oa, travis: sa, vela: aa, vercel: ca, wercker: ua, woodpecker: la, jetbrainsSpace: fa };
|
|
9270
|
+
var nr = a(({ env: e = process.env, cwd: t = process.cwd() } = {}) => {
|
|
9271
|
+
for (const r of Object.keys(rr)) if (rr[r].detect({ env: e, cwd: t })) return { isCi: true, ...rr[r].configuration({ env: e, cwd: t }) };
|
|
9272
|
+
return { isCi: !!e.CI, ...Fs.configuration({ env: e, cwd: t }) };
|
|
9258
9273
|
}, "envCiModule");
|
|
9259
|
-
const
|
|
9260
|
-
function
|
|
9261
|
-
const e =
|
|
9262
|
-
return { branch: process.env.GITHUB_HEAD_REF || e.branch, commit: { message:
|
|
9274
|
+
const ha = typeof nr == "function" ? nr : nr.default;
|
|
9275
|
+
function da() {
|
|
9276
|
+
const e = ha();
|
|
9277
|
+
return { branch: process.env.GITHUB_HEAD_REF || e.branch, ciBuild: "build" in e ? String(e.build) : void 0, ciServiceName: "name" in e ? String(e.name) : void 0, commit: { message: ma(), sha: e.commit }, isCI: e.isCi, pr: pa() };
|
|
9263
9278
|
}
|
|
9264
|
-
a(
|
|
9265
|
-
function
|
|
9279
|
+
a(da, "getGitInfo");
|
|
9280
|
+
function pa() {
|
|
9266
9281
|
try {
|
|
9267
9282
|
const e = process.env.GITHUB_EVENT_PATH;
|
|
9268
9283
|
if (e) {
|
|
9269
|
-
const t = JSON.parse(
|
|
9284
|
+
const t = JSON.parse(qe.readFileSync(e, "utf-8"));
|
|
9270
9285
|
if (t.pull_request) return { author: t.pull_request.user.login, number: t.pull_request.number, title: t.pull_request.title };
|
|
9271
9286
|
}
|
|
9272
9287
|
return;
|
|
@@ -9274,21 +9289,21 @@ function fa() {
|
|
|
9274
9289
|
return;
|
|
9275
9290
|
}
|
|
9276
9291
|
}
|
|
9277
|
-
a(
|
|
9278
|
-
function
|
|
9292
|
+
a(pa, "getPRInfo");
|
|
9293
|
+
function ma() {
|
|
9279
9294
|
try {
|
|
9280
9295
|
return require$$0$2.execSync("git log -1 --pretty=%B", { encoding: "utf-8", stdio: ["pipe", "pipe", "ignore"] }).trim();
|
|
9281
9296
|
} catch {
|
|
9282
9297
|
return;
|
|
9283
9298
|
}
|
|
9284
9299
|
}
|
|
9285
|
-
a(
|
|
9286
|
-
function
|
|
9287
|
-
return { hostname:
|
|
9300
|
+
a(ma, "getLastCommitMessage");
|
|
9301
|
+
function Ea() {
|
|
9302
|
+
return { hostname: Et.hostname(), platform: Et.platform() };
|
|
9288
9303
|
}
|
|
9289
|
-
a(
|
|
9290
|
-
const
|
|
9291
|
-
var
|
|
9304
|
+
a(Ea, "getMachineInfo");
|
|
9305
|
+
const ga = new Error("request for lock canceled");
|
|
9306
|
+
var _a = a(function(e, t, r, n) {
|
|
9292
9307
|
function i(o) {
|
|
9293
9308
|
return o instanceof r ? o : new r(function(c) {
|
|
9294
9309
|
c(o);
|
|
@@ -9317,11 +9332,11 @@ var ma = a(function(e, t, r, n) {
|
|
|
9317
9332
|
a(E, "step"), E((n = n.apply(e, t || [])).next());
|
|
9318
9333
|
});
|
|
9319
9334
|
}, "__awaiter$2");
|
|
9320
|
-
class
|
|
9335
|
+
class Ia {
|
|
9321
9336
|
static {
|
|
9322
9337
|
a(this, "Semaphore");
|
|
9323
9338
|
}
|
|
9324
|
-
constructor(t, r =
|
|
9339
|
+
constructor(t, r = ga) {
|
|
9325
9340
|
this._value = t, this._cancelError = r, this._queue = [], this._weightedWaiters = [];
|
|
9326
9341
|
}
|
|
9327
9342
|
acquire(t = 1, r = 0) {
|
|
@@ -9332,7 +9347,7 @@ class Ea {
|
|
|
9332
9347
|
});
|
|
9333
9348
|
}
|
|
9334
9349
|
runExclusive(t) {
|
|
9335
|
-
return
|
|
9350
|
+
return _a(this, arguments, void 0, function* (r, n = 1, i = 0) {
|
|
9336
9351
|
const [o, c] = yield this.acquire(n, i);
|
|
9337
9352
|
try {
|
|
9338
9353
|
return yield r(o);
|
|
@@ -9344,7 +9359,7 @@ class Ea {
|
|
|
9344
9359
|
waitForUnlock(t = 1, r = 0) {
|
|
9345
9360
|
if (t <= 0) throw new Error(`invalid weight ${t}: must be positive`);
|
|
9346
9361
|
return this._couldLockImmediately(t, r) ? Promise.resolve() : new Promise((n) => {
|
|
9347
|
-
this._weightedWaiters[t - 1] || (this._weightedWaiters[t - 1] = []),
|
|
9362
|
+
this._weightedWaiters[t - 1] || (this._weightedWaiters[t - 1] = []), Sa(this._weightedWaiters[t - 1], { resolve: n, priority: r });
|
|
9348
9363
|
});
|
|
9349
9364
|
}
|
|
9350
9365
|
isLocked() {
|
|
@@ -9395,17 +9410,17 @@ class Ea {
|
|
|
9395
9410
|
return (this._queue.length === 0 || this._queue[0].priority < r) && t <= this._value;
|
|
9396
9411
|
}
|
|
9397
9412
|
}
|
|
9398
|
-
function
|
|
9413
|
+
function Sa(e, t) {
|
|
9399
9414
|
const r = yn(e, (n) => t.priority <= n.priority);
|
|
9400
9415
|
e.splice(r + 1, 0, t);
|
|
9401
9416
|
}
|
|
9402
|
-
a(
|
|
9417
|
+
a(Sa, "insertSorted");
|
|
9403
9418
|
function yn(e, t) {
|
|
9404
9419
|
for (let r = e.length - 1; r >= 0; r--) if (t(e[r])) return r;
|
|
9405
9420
|
return -1;
|
|
9406
9421
|
}
|
|
9407
9422
|
a(yn, "findIndexFromEnd");
|
|
9408
|
-
var
|
|
9423
|
+
var Ra = a(function(e, t, r, n) {
|
|
9409
9424
|
function i(o) {
|
|
9410
9425
|
return o instanceof r ? o : new r(function(c) {
|
|
9411
9426
|
c(o);
|
|
@@ -9434,15 +9449,15 @@ var ga = a(function(e, t, r, n) {
|
|
|
9434
9449
|
a(E, "step"), E((n = n.apply(e, t || [])).next());
|
|
9435
9450
|
});
|
|
9436
9451
|
}, "__awaiter$1");
|
|
9437
|
-
class
|
|
9452
|
+
class Ta {
|
|
9438
9453
|
static {
|
|
9439
9454
|
a(this, "Mutex");
|
|
9440
9455
|
}
|
|
9441
9456
|
constructor(t) {
|
|
9442
|
-
this._semaphore = new
|
|
9457
|
+
this._semaphore = new Ia(1, t);
|
|
9443
9458
|
}
|
|
9444
9459
|
acquire() {
|
|
9445
|
-
return
|
|
9460
|
+
return Ra(this, arguments, void 0, function* (t = 0) {
|
|
9446
9461
|
const [, r] = yield this._semaphore.acquire(1, t);
|
|
9447
9462
|
return r;
|
|
9448
9463
|
});
|
|
@@ -9466,7 +9481,7 @@ class Ia {
|
|
|
9466
9481
|
function wn(e, t) {
|
|
9467
9482
|
const r = e.length;
|
|
9468
9483
|
let n = 0, i = 0;
|
|
9469
|
-
const o = new
|
|
9484
|
+
const o = new Ta();
|
|
9470
9485
|
return t({ completed: n, errors: i, total: r }), e.map((c) => c.then(async (l) => (await o.runExclusive(() => {
|
|
9471
9486
|
n++, t({ completed: n, errors: i, total: r });
|
|
9472
9487
|
}), l)).catch(async (l) => {
|
|
@@ -9476,27 +9491,43 @@ function wn(e, t) {
|
|
|
9476
9491
|
}));
|
|
9477
9492
|
}
|
|
9478
9493
|
a(wn, "trackPromiseProgress");
|
|
9479
|
-
function
|
|
9494
|
+
function ya({ result: e, sensitiveValues: t }) {
|
|
9480
9495
|
return e.steps.map((r) => An({ sensitiveValues: t, step: r }));
|
|
9481
9496
|
}
|
|
9482
|
-
a(
|
|
9497
|
+
a(ya, "extractSteps");
|
|
9483
9498
|
function An({ sensitiveValues: e, step: t }) {
|
|
9484
9499
|
const r = a((n) => n && e?.length ? se({ sensitiveValues: e, str: n }) : n, "scrub");
|
|
9485
9500
|
return { category: t.category, duration: t.duration, error: t.error ? { message: r(t.error.message) || "Unknown error", stack: r(t.error.stack) } : void 0, location: t.location ? { column: t.location.column, file: t.location.file, line: t.location.line } : void 0, startedAt: new Date(t.startTime), steps: t.steps && t.steps.length > 0 ? t.steps.map((n) => An({ sensitiveValues: e, step: n })) : void 0, title: r(t.title) ?? t.title };
|
|
9486
9501
|
}
|
|
9487
9502
|
a(An, "extractStep");
|
|
9488
|
-
async function
|
|
9489
|
-
await
|
|
9503
|
+
async function wa({ fileData: e, maxRetries: t = 3, uploadUrl: r }) {
|
|
9504
|
+
await Wn(async () => {
|
|
9490
9505
|
const n = await fetch(r, { body: e, method: "PUT" });
|
|
9491
9506
|
if (!n.ok) throw n.status >= 400 && n.status < 500 ? new pRetryExports.AbortError(`Upload failed with status ${n.status}: ${n.statusText}`) : new Error(`Upload failed with status ${n.status}: ${n.statusText}`);
|
|
9492
9507
|
}, { minTimeout: 2e3, randomize: true, retries: t });
|
|
9493
9508
|
}
|
|
9494
|
-
a(
|
|
9495
|
-
const
|
|
9509
|
+
a(wa, "uploadWithRetry");
|
|
9510
|
+
const Aa = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", bn = 120 * 1e3, vn = 3e4, ba = process.env.STABLY_API_URL ?? "https://api.stably.ai", va = 50, Ca = a(({ gitInfo: e, suite: t }) => {
|
|
9511
|
+
const r = [...new Set(t.allTests().map((n) => n.parent.project()?.name).filter((n) => !!n))];
|
|
9512
|
+
if (r.length > 0) {
|
|
9513
|
+
const n = r.join(", ");
|
|
9514
|
+
return n.length <= va ? n : `${r[0]} + ${r.length - 1} more`;
|
|
9515
|
+
}
|
|
9516
|
+
if (e.isCI && e.ciServiceName && e.ciBuild) return `${e.ciServiceName} #${e.ciBuild}`;
|
|
9517
|
+
try {
|
|
9518
|
+
const { username: n } = Et.userInfo();
|
|
9519
|
+
if (n) {
|
|
9520
|
+
const o = (/* @__PURE__ */ new Date()).toLocaleString("en-US", { day: "numeric", hour: "numeric", hour12: false, minute: "2-digit", month: "short" });
|
|
9521
|
+
return `${n} - ${o}`;
|
|
9522
|
+
}
|
|
9523
|
+
} catch {
|
|
9524
|
+
}
|
|
9525
|
+
return "Playwright Test Suite";
|
|
9526
|
+
}, "generateRunName"), Ua = a(({ notificationConfigs: e, suite: t }) => {
|
|
9496
9527
|
if (!e || e.length === 0) return;
|
|
9497
9528
|
const r = new Set(t.allTests().map((i) => i.parent.project()?.name).filter(Boolean)), n = e.filter((i) => r.has(i.projectName));
|
|
9498
9529
|
return n.length > 0 ? n : void 0;
|
|
9499
|
-
}, "filterNotificationConfigsByRunningProjects"),
|
|
9530
|
+
}, "filterNotificationConfigsByRunningProjects"), Ba = a((e) => e ? { configFile: e.configFile, forbidOnly: e.forbidOnly, fullyParallel: e.fullyParallel, globalSetup: e.globalSetup, globalTeardown: e.globalTeardown, globalTimeout: e.globalTimeout, grep: e.grep?.toString(), grepInvert: e.grepInvert?.toString(), maxFailures: e.maxFailures, metadata: e.metadata, preserveOutput: e.preserveOutput, quiet: e.quiet, reporter: e.reporter, reportSlowTests: e.reportSlowTests, rootDir: e.rootDir, shard: e.shard, updateSnapshots: e.updateSnapshots, version: e.version, webServer: e.webServer, workers: e.workers } : void 0, "extractConfigInfo"), Cn = a(({ absolutePath: e, rootDir: t }) => {
|
|
9500
9531
|
if (t && e.startsWith(t)) {
|
|
9501
9532
|
const r = e.slice(t.length);
|
|
9502
9533
|
return r.startsWith("/") ? r.slice(1) : r;
|
|
@@ -9536,21 +9567,21 @@ class Un {
|
|
|
9536
9567
|
const i = jr(t.sensitiveValues);
|
|
9537
9568
|
this.sensitiveValues = [...i].sort((o, c) => c.length - o.length);
|
|
9538
9569
|
}
|
|
9539
|
-
this.wsClient = new
|
|
9570
|
+
this.wsClient = new Ao({ apiKey: r, maxBufferSize: 1e3, maxReconnectAttempts: 3, onError: a((i) => this.handleWebSocketError(i), "onError"), onMessage: a((i) => this.handleWebSocketMessage(i), "onMessage"), projectId: n, reconnectDelay: 2e3, url: Aa });
|
|
9540
9571
|
}
|
|
9541
9572
|
onBegin(t, r) {
|
|
9542
9573
|
if (this.isListMode = process.argv.includes("--list"), this.isListMode || (r.allTests().length === 0 && process.exit(1), this.config = t, this.testSuiteRunId = this.getSuiteRunId(t), this.rootDir = t.rootDir, this.skipSuiteReporting)) return;
|
|
9543
9574
|
this.suiteData = this.extractSuiteInfo(t, r);
|
|
9544
|
-
const i =
|
|
9575
|
+
const i = Ua({ notificationConfigs: this.notificationConfigs, suite: r });
|
|
9545
9576
|
this.filteredNotificationConfigs = i;
|
|
9546
9577
|
const o = { ...this.suiteData, notificationRequest: i ? { notificationConfigs: i, totalShards: this.config?.shard?.total } : void 0, status: "running" };
|
|
9547
9578
|
try {
|
|
9548
|
-
const E = 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-
|
|
9579
|
+
const E = 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-CfBVZ27r.cjs', document.baseURI).href)))), h = JSON.stringify({ apiBaseUrl: ba, apiKey: this.apiKey, body: o, projectId: this.projectId, timeoutMs: vn }), T = require$$0$2.spawnSync(process.execPath, [E], { encoding: "utf-8", input: h, stdio: ["pipe", "pipe", "pipe"], timeout: vn + 5e3 });
|
|
9549
9580
|
if (T.status === 2 && (console.error(ie.bold(ie.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)), T.status !== 0) {
|
|
9550
9581
|
const v = T.stderr?.trim() || T.error?.message || "Unknown error";
|
|
9551
9582
|
throw new Error(v);
|
|
9552
9583
|
}
|
|
9553
|
-
this.createdSuiteRun = JSON.parse(T.stdout.trim()), console.log(ie.cyan(`\u{1F4CA} View results: ${ie.bold(ie.underline(this.createdSuiteRun.url))}
|
|
9584
|
+
this.createdSuiteRun = JSON.parse(T.stdout.trim()), console.log(ie.cyan(`\u{1F4CA} View live results: ${ie.bold(ie.underline(this.createdSuiteRun.url))}
|
|
9554
9585
|
`));
|
|
9555
9586
|
} catch (E) {
|
|
9556
9587
|
const h = E instanceof Error ? E.message : String(E);
|
|
@@ -9578,7 +9609,7 @@ class Un {
|
|
|
9578
9609
|
if (this.isListMode || this.skipSuiteReporting) return;
|
|
9579
9610
|
const n = this.extractTestCaseInfo(t, r);
|
|
9580
9611
|
this.testCases.push(n), this.testStepsMap.set(n.id, r);
|
|
9581
|
-
const i =
|
|
9612
|
+
const i = ya({ result: r, sensitiveValues: this.sensitiveValues }), o = [...r.attachments, { contentType: "text/plain", name: "source-code", path: t.location.file }], c = (async () => {
|
|
9582
9613
|
const l = await this.extractAttachmentMetadata({ attachments: o, attemptNumber: n.attemptNumber, testId: n.id });
|
|
9583
9614
|
let p, E;
|
|
9584
9615
|
l.length > 0 && (p = `${n.id}-${n.attemptNumber}`, E = new Promise((h) => {
|
|
@@ -9624,8 +9655,8 @@ class Un {
|
|
|
9624
9655
|
o.message(`${h}/${v} uploads finished${T > 0 ? `, ${T} errors` : ""}`);
|
|
9625
9656
|
})), o.stop("All file uploads finished"), this.wsClient.close();
|
|
9626
9657
|
try {
|
|
9627
|
-
const h =
|
|
9628
|
-
|
|
9658
|
+
const h = Ke.join(this.rootDir, ".stably");
|
|
9659
|
+
qe.mkdirSync(h, { recursive: true }), qe.writeFileSync(Ke.join(h, "last-run.json"), JSON.stringify({ runId: this.testSuiteRunId, timestamp: Date.now() }));
|
|
9629
9660
|
} catch {
|
|
9630
9661
|
}
|
|
9631
9662
|
const c = this.createdSuiteRun?.name || this.suiteData?.title || "Test Suite", l = t.status === "failed" || t.status === "timedout", p = this.suiteData?.isCI ?? !!process.env.CI, E = l ? p ? `
|
|
@@ -9643,8 +9674,8 @@ class Un {
|
|
|
9643
9674
|
return !t || !this.sensitiveValues?.length ? t : se({ sensitiveValues: this.sensitiveValues, str: t });
|
|
9644
9675
|
}
|
|
9645
9676
|
extractSuiteInfo(t, r) {
|
|
9646
|
-
const n =
|
|
9647
|
-
return { id: Ye(), projectSettings:
|
|
9677
|
+
const n = da(), i = Ea(), o = /* @__PURE__ */ new Date();
|
|
9678
|
+
return { id: Ye(), projectSettings: Ba(t), startedAt: o, suiteId: this.testSuiteRunId, title: r.title || Ca({ gitInfo: n, suite: r }), createdAt: o, git: { branch: n.branch, commit: { message: n.commit.message, sha: n.commit.sha }, pr: n.pr }, isCI: n.isCI, shards: t.shard?.total ?? 1, workers: t.workers, machineInfo: i, updatedAt: o };
|
|
9648
9679
|
}
|
|
9649
9680
|
extractTestCaseInfo(t, r) {
|
|
9650
9681
|
const n = Cn({ absolutePath: t.location.file, rootDir: this.rootDir }), i = t.parent.project(), o = i?.name, c = i?.use?.defaultBrowserType, l = this.testIdMap.get(t.id), p = l ?? Ye();
|
|
@@ -9656,7 +9687,7 @@ class Un {
|
|
|
9656
9687
|
async processAttachment({ attachment: t, attemptNumber: r, testId: n }) {
|
|
9657
9688
|
let i;
|
|
9658
9689
|
try {
|
|
9659
|
-
i = t.name === "trace" && t.path && this.sensitiveValues && this.sensitiveValues.length > 0 ?
|
|
9690
|
+
i = t.name === "trace" && t.path && this.sensitiveValues && this.sensitiveValues.length > 0 ? qe.openSync(t.path, "r") : void 0;
|
|
9660
9691
|
const o = await this.getAttachmentFileData({ attachment: t, traceFd: i });
|
|
9661
9692
|
if (!o) return;
|
|
9662
9693
|
const c = Ye(), l = `${n}-${r}-${c}`;
|
|
@@ -9667,7 +9698,7 @@ class Un {
|
|
|
9667
9698
|
return;
|
|
9668
9699
|
} finally {
|
|
9669
9700
|
if (i !== void 0) try {
|
|
9670
|
-
|
|
9701
|
+
qe.closeSync(i);
|
|
9671
9702
|
} catch {
|
|
9672
9703
|
}
|
|
9673
9704
|
}
|
|
@@ -9675,10 +9706,10 @@ class Un {
|
|
|
9675
9706
|
async getAttachmentFileData({ attachment: t, traceFd: r }) {
|
|
9676
9707
|
if (!t.path && !t.body) return;
|
|
9677
9708
|
if (t.name === "trace" && this.sensitiveValues && this.sensitiveValues.length > 0) {
|
|
9678
|
-
const i = t.path ? await this.scrubTraceFromFile({ attachmentPath: t.path, sensitiveValues: this.sensitiveValues, traceFd: r }) : t.body ? await
|
|
9709
|
+
const i = t.path ? await this.scrubTraceFromFile({ attachmentPath: t.path, sensitiveValues: this.sensitiveValues, traceFd: r }) : t.body ? await Gt({ sensitiveValues: this.sensitiveValues, traceBuffer: Buffer.from(t.body) }) : void 0;
|
|
9679
9710
|
return i ? Buffer.from(i) : void 0;
|
|
9680
9711
|
}
|
|
9681
|
-
return t.body ? Buffer.from(t.body) : t.path ?
|
|
9712
|
+
return t.body ? Buffer.from(t.body) : t.path ? qe.readFileSync(t.path) : void 0;
|
|
9682
9713
|
}
|
|
9683
9714
|
async scrubTraceFromFile({ attachmentPath: t, sensitiveValues: r, traceFd: n }) {
|
|
9684
9715
|
return n !== void 0 ? Ro({ sensitiveValues: r, traceFd: n, tracePath: t }) : So({ sensitiveValues: r, tracePath: t });
|
|
@@ -9700,7 +9731,7 @@ class Un {
|
|
|
9700
9731
|
const i = n.map(async ({ artifactId: o, name: c, uploadUrl: l }) => {
|
|
9701
9732
|
const p = `${r}-${t}-${o}`, E = this.attachmentFiles.get(p);
|
|
9702
9733
|
if (E) try {
|
|
9703
|
-
await
|
|
9734
|
+
await wa({ fileData: E, maxRetries: 3, uploadUrl: l }), this.attachmentFiles.delete(p);
|
|
9704
9735
|
} catch (h) {
|
|
9705
9736
|
const T = h instanceof Error ? h.message : String(h);
|
|
9706
9737
|
console.error(`[StablyAI reporter] Failed to upload ${c} after retries: ${T}`);
|
|
@@ -9709,11 +9740,11 @@ class Un {
|
|
|
9709
9740
|
await Promise.allSettled(i);
|
|
9710
9741
|
}
|
|
9711
9742
|
}
|
|
9712
|
-
function
|
|
9743
|
+
function Pa(e) {
|
|
9713
9744
|
return ["@stablyai/playwright-test/reporter", e];
|
|
9714
9745
|
}
|
|
9715
|
-
a(
|
|
9746
|
+
a(Pa, "stablyReporter");
|
|
9716
9747
|
|
|
9748
|
+
exports.Pa = Pa;
|
|
9717
9749
|
exports.Un = Un;
|
|
9718
|
-
|
|
9719
|
-
//# sourceMappingURL=index-BYn4B_OP.cjs.map
|
|
9750
|
+
//# sourceMappingURL=index-CfBVZ27r.cjs.map
|