@stablyai/playwright-test 2.0.12 → 2.0.13
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-Cf1SUa76.cjs → index-DVywK-2d.cjs} +219 -218
- package/dist/index-DVywK-2d.cjs.map +1 -0
- package/dist/{index-YCMYxOS2.mjs → index-q6hgdCVS.mjs} +219 -218
- package/dist/index-q6hgdCVS.mjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d-DaMmBaG3.d.cts.map +1 -1
- package/dist/index.d-DaMmBaG3.d.mts.map +1 -1
- package/dist/index.d-DaMmBaG3.d.ts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/reporter.cjs +1 -1
- package/dist/reporter.mjs +1 -1
- package/package.json +3 -3
- package/dist/index-Cf1SUa76.cjs.map +0 -1
- package/dist/index-YCMYxOS2.mjs.map +0 -1
|
@@ -2411,6 +2411,7 @@ function getAttemptFromEnv(ciService) {
|
|
|
2411
2411
|
return process.env.SYSTEM_JOBATTEMPT;
|
|
2412
2412
|
case "bitbucket":
|
|
2413
2413
|
return process.env.BITBUCKET_STEP_RUN_NUMBER;
|
|
2414
|
+
case void 0:
|
|
2414
2415
|
default:
|
|
2415
2416
|
return void 0;
|
|
2416
2417
|
}
|
|
@@ -2426,7 +2427,7 @@ function getCiRunKey() {
|
|
|
2426
2427
|
const attempt = getAttemptFromEnv(ci.service);
|
|
2427
2428
|
const parts = [
|
|
2428
2429
|
ci.service,
|
|
2429
|
-
"slug" in ci ? ci.slug : void 0,
|
|
2430
|
+
"slug" in ci ? ci.slug?.replace(/\//g, "_") : void 0,
|
|
2430
2431
|
"build" in ci ? String(ci.build) : void 0,
|
|
2431
2432
|
"job" in ci ? String(ci.job) : void 0,
|
|
2432
2433
|
attempt && String(attempt)
|
|
@@ -2573,7 +2574,7 @@ function requirePicocolors () {
|
|
|
2573
2574
|
}
|
|
2574
2575
|
|
|
2575
2576
|
var picocolorsExports = /*@__PURE__*/ requirePicocolors();
|
|
2576
|
-
var
|
|
2577
|
+
var Ce = /*@__PURE__*/getDefaultExportFromCjs(picocolorsExports);
|
|
2577
2578
|
|
|
2578
2579
|
function DD({ onlyFirst: e = false } = {}) {
|
|
2579
2580
|
const t = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
|
|
@@ -2683,14 +2684,14 @@ function ce$1() {
|
|
|
2683
2684
|
return y.platform !== "win32" ? y.env.TERM !== "linux" : !!y.env.CI || !!y.env.WT_SESSION || !!y.env.TERMINUS_SUBLIME || y.env.ConEmuTask === "{cmd::Cmder}" || y.env.TERM_PROGRAM === "Terminus-Sublime" || y.env.TERM_PROGRAM === "vscode" || y.env.TERM === "xterm-256color" || y.env.TERM === "alacritty" || y.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
2684
2685
|
}
|
|
2685
2686
|
const V$1 = ce$1(), u = (t, n) => V$1 ? t : n, L = u("\u25A0", "x"), W$1 = u("\u25B2", "x"), C = u("\u25C7", "o"), ue$1 = u("\u250C", "T"), o = u("\u2502", "|"), d = u("\u2514", "\u2014"), Ie$1 = (t = "") => {
|
|
2686
|
-
process.stdout.write(`${
|
|
2687
|
+
process.stdout.write(`${Ce.gray(ue$1)} ${t}
|
|
2687
2688
|
`);
|
|
2688
2689
|
}, Se$1 = (t = "") => {
|
|
2689
|
-
process.stdout.write(`${
|
|
2690
|
-
${
|
|
2690
|
+
process.stdout.write(`${Ce.gray(o)}
|
|
2691
|
+
${Ce.gray(d)} ${t}
|
|
2691
2692
|
|
|
2692
2693
|
`);
|
|
2693
|
-
}; `${
|
|
2694
|
+
}; `${Ce.gray(o)} `; const Y$1 = ({ indicator: t = "dots" } = {}) => {
|
|
2694
2695
|
const n = V$1 ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], r = V$1 ? 80 : 120, i = process.env.CI === "true";
|
|
2695
2696
|
let s, c, a = false, l = "", $, g = performance.now();
|
|
2696
2697
|
const p = (m) => {
|
|
@@ -2711,13 +2712,13 @@ ${be.gray(d)} ${t}
|
|
|
2711
2712
|
const h = (performance.now() - m) / 1e3, w = Math.floor(h / 60), I = Math.floor(h % 60);
|
|
2712
2713
|
return w > 0 ? `[${w}m ${I}s]` : `[${I}s]`;
|
|
2713
2714
|
}, H = (m = "") => {
|
|
2714
|
-
a = true, s = fD(), l = R(m), g = performance.now(), process.stdout.write(`${
|
|
2715
|
+
a = true, s = fD(), l = R(m), g = performance.now(), process.stdout.write(`${Ce.gray(o)}
|
|
2715
2716
|
`);
|
|
2716
2717
|
let h = 0, w = 0;
|
|
2717
2718
|
j(), c = setInterval(() => {
|
|
2718
2719
|
if (i && l === $) return;
|
|
2719
2720
|
B(), $ = l;
|
|
2720
|
-
const I =
|
|
2721
|
+
const I = Ce.magenta(n[h]);
|
|
2721
2722
|
if (i) process.stdout.write(`${I} ${l}...`);
|
|
2722
2723
|
else if (t === "timer") process.stdout.write(`${I} ${l} ${O(g)}`);
|
|
2723
2724
|
else {
|
|
@@ -2728,7 +2729,7 @@ ${be.gray(d)} ${t}
|
|
|
2728
2729
|
}, r);
|
|
2729
2730
|
}, N = (m = "", h = 0) => {
|
|
2730
2731
|
a = false, clearInterval(c), B();
|
|
2731
|
-
const w = h === 0 ?
|
|
2732
|
+
const w = h === 0 ? Ce.green(C) : h === 1 ? Ce.red(L) : Ce.red(W$1);
|
|
2732
2733
|
l = R(m ?? l), t === "timer" ? process.stdout.write(`${w} ${l} ${O(g)}
|
|
2733
2734
|
`) : process.stdout.write(`${w} ${l}
|
|
2734
2735
|
`), E(), s();
|
|
@@ -6657,9 +6658,9 @@ function mi(e, t = {}) {
|
|
|
6657
6658
|
return r.outputLen = n.outputLen, r.blockLen = n.blockLen, r.create = (o) => e(o), Object.assign(r, t), Object.freeze(r);
|
|
6658
6659
|
}
|
|
6659
6660
|
s(mi, "createHasher");
|
|
6660
|
-
const Ei = s((e) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, e]) }), "oidNist"), _i = BigInt(0), Qe = BigInt(1), gi = BigInt(2), Ii = BigInt(7), Si = BigInt(256), Ri = BigInt(113),
|
|
6661
|
+
const Ei = s((e) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, e]) }), "oidNist"), _i = BigInt(0), Qe = BigInt(1), gi = BigInt(2), Ii = BigInt(7), Si = BigInt(256), Ri = BigInt(113), br = [], Cr = [], Ur = [];
|
|
6661
6662
|
for (let e = 0, t = Qe, r = 1, n = 0; e < 24; e++) {
|
|
6662
|
-
[r, n] = [n, (2 * r + 3 * n) % 5],
|
|
6663
|
+
[r, n] = [n, (2 * r + 3 * n) % 5], br.push(2 * (5 * n + r)), Cr.push((e + 1) * (e + 2) / 2 % 64);
|
|
6663
6664
|
let o = _i;
|
|
6664
6665
|
for (let i = 0; i < 7; i++) t = (t << Qe ^ (t >> Ii) * Ri) % Si, t & gi && (o ^= Qe << (Qe << BigInt(i)) - Qe);
|
|
6665
6666
|
Ur.push(o);
|
|
@@ -6670,12 +6671,12 @@ function yi(e, t = 24) {
|
|
|
6670
6671
|
for (let n = 24 - t; n < 24; n++) {
|
|
6671
6672
|
for (let c = 0; c < 10; c++) r[c] = e[c] ^ e[c + 10] ^ e[c + 20] ^ e[c + 30] ^ e[c + 40];
|
|
6672
6673
|
for (let c = 0; c < 10; c += 2) {
|
|
6673
|
-
const l = (c + 8) % 10, h = (c + 2) % 10, _ = r[h], m = r[h + 1], A = Or(_, m, 1) ^ r[l],
|
|
6674
|
-
for (let O = 0; O < 50; O += 10) e[c + O] ^= A, e[c + O + 1] ^=
|
|
6674
|
+
const l = (c + 8) % 10, h = (c + 2) % 10, _ = r[h], m = r[h + 1], A = Or(_, m, 1) ^ r[l], b = Lr(_, m, 1) ^ r[l + 1];
|
|
6675
|
+
for (let O = 0; O < 50; O += 10) e[c + O] ^= A, e[c + O + 1] ^= b;
|
|
6675
6676
|
}
|
|
6676
6677
|
let o = e[2], i = e[3];
|
|
6677
6678
|
for (let c = 0; c < 24; c++) {
|
|
6678
|
-
const l =
|
|
6679
|
+
const l = Cr[c], h = Or(o, i, l), _ = Lr(o, i, l), m = br[c];
|
|
6679
6680
|
o = e[m], i = e[m + 1], e[m] = h, e[m + 1] = _;
|
|
6680
6681
|
}
|
|
6681
6682
|
for (let c = 0; c < 50; c += 10) {
|
|
@@ -6761,9 +6762,9 @@ class dr {
|
|
|
6761
6762
|
}
|
|
6762
6763
|
}
|
|
6763
6764
|
const Ai = s((e, t, r, n = {}) => mi(() => new dr(t, e, r), n), "genKeccak"), vi = Ai(6, 72, 64, Ei(10));
|
|
6764
|
-
var
|
|
6765
|
-
function
|
|
6766
|
-
var t, r, n, o = w.prototype = { constructor: w, toString: null, valueOf: null }, i = new w(1), c = 20, l = 4, h = -7, _ = 21, m = -1e7, A = 1e7,
|
|
6765
|
+
var bi = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Bt = Math.ceil, ce = Math.floor, se = "[BigNumber Error] ", Pr = se + "Number primitive has more than 15 significant digits: ", me = 1e14, $ = 14, Ot = 9007199254740991, Lt = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Ue = 1e7, te = 1e9;
|
|
6766
|
+
function Nr(e) {
|
|
6767
|
+
var t, r, n, o = w.prototype = { constructor: w, toString: null, valueOf: null }, i = new w(1), c = 20, l = 4, h = -7, _ = 21, m = -1e7, A = 1e7, b = false, O = 1, x = 0, M = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: "\xA0", suffix: "" }, y = "0123456789abcdefghijklmnopqrstuvwxyz", C = true;
|
|
6767
6768
|
function w(a, u) {
|
|
6768
6769
|
var f, g, p, I, T, d, E, S, R = this;
|
|
6769
6770
|
if (!(R instanceof w)) return new w(a, u);
|
|
@@ -6780,15 +6781,15 @@ function Pr(e) {
|
|
|
6780
6781
|
}
|
|
6781
6782
|
S = String(a);
|
|
6782
6783
|
} else {
|
|
6783
|
-
if (!
|
|
6784
|
+
if (!bi.test(S = String(a))) return n(R, S, d);
|
|
6784
6785
|
R.s = S.charCodeAt(0) == 45 ? (S = S.slice(1), -1) : 1;
|
|
6785
6786
|
}
|
|
6786
6787
|
(I = S.indexOf(".")) > -1 && (S = S.replace(".", "")), (T = S.search(/e/i)) > 0 ? (I < 0 && (I = T), I += +S.slice(T + 1), S = S.substring(0, T)) : I < 0 && (I = S.length);
|
|
6787
6788
|
} else {
|
|
6788
|
-
if (J(u, 2, y.length, "Base"), u == 10 &&
|
|
6789
|
+
if (J(u, 2, y.length, "Base"), u == 10 && C) return R = new w(a), G(R, c + R.e + 1, l);
|
|
6789
6790
|
if (S = String(a), d = typeof a == "number") {
|
|
6790
6791
|
if (a * 0 != 0) return n(R, S, d, u);
|
|
6791
|
-
if (R.s = 1 / a < 0 ? (S = S.slice(1), -1) : 1, w.DEBUG && S.replace(/^0\.0*|\./, "").length > 15) throw Error(
|
|
6792
|
+
if (R.s = 1 / a < 0 ? (S = S.slice(1), -1) : 1, w.DEBUG && S.replace(/^0\.0*|\./, "").length > 15) throw Error(Pr + a);
|
|
6792
6793
|
} else R.s = S.charCodeAt(0) === 45 ? (S = S.slice(1), -1) : 1;
|
|
6793
6794
|
for (f = y.slice(0, u), I = T = 0, E = S.length; T < E; T++) if (f.indexOf(g = S.charAt(T)) < 0) {
|
|
6794
6795
|
if (g == ".") {
|
|
@@ -6807,7 +6808,7 @@ function Pr(e) {
|
|
|
6807
6808
|
for (T = 0; S.charCodeAt(T) === 48; T++) ;
|
|
6808
6809
|
for (E = S.length; S.charCodeAt(--E) === 48; ) ;
|
|
6809
6810
|
if (S = S.slice(T, ++E)) {
|
|
6810
|
-
if (E -= T, d && w.DEBUG && E > 15 && (a > Ot || a !== ce(a))) throw Error(
|
|
6811
|
+
if (E -= T, d && w.DEBUG && E > 15 && (a > Ot || a !== ce(a))) throw Error(Pr + R.s * a);
|
|
6811
6812
|
if ((I = I - T - 1) > A) R.c = R.e = null;
|
|
6812
6813
|
else if (I < m) R.c = [R.e = 0];
|
|
6813
6814
|
else {
|
|
@@ -6820,22 +6821,22 @@ function Pr(e) {
|
|
|
6820
6821
|
}
|
|
6821
6822
|
} else R.c = [R.e = 0];
|
|
6822
6823
|
}
|
|
6823
|
-
s(w, "BigNumber2"), w.clone =
|
|
6824
|
+
s(w, "BigNumber2"), w.clone = Nr, w.ROUND_UP = 0, w.ROUND_DOWN = 1, w.ROUND_CEIL = 2, w.ROUND_FLOOR = 3, w.ROUND_HALF_UP = 4, w.ROUND_HALF_DOWN = 5, w.ROUND_HALF_EVEN = 6, w.ROUND_HALF_CEIL = 7, w.ROUND_HALF_FLOOR = 8, w.EUCLID = 9, w.config = w.set = function(a) {
|
|
6824
6825
|
var u, f;
|
|
6825
6826
|
if (a != null) if (typeof a == "object") {
|
|
6826
6827
|
if (a.hasOwnProperty(u = "DECIMAL_PLACES") && (f = a[u], J(f, 0, te, u), c = f), a.hasOwnProperty(u = "ROUNDING_MODE") && (f = a[u], J(f, 0, 8, u), l = f), a.hasOwnProperty(u = "EXPONENTIAL_AT") && (f = a[u], f && f.pop ? (J(f[0], -te, 0, u), J(f[1], 0, te, u), h = f[0], _ = f[1]) : (J(f, -te, te, u), h = -(_ = f < 0 ? -f : f))), a.hasOwnProperty(u = "RANGE")) if (f = a[u], f && f.pop) J(f[0], -te, -1, u), J(f[1], 1, te, u), m = f[0], A = f[1];
|
|
6827
6828
|
else if (J(f, -te, te, u), f) m = -(A = f < 0 ? -f : f);
|
|
6828
6829
|
else throw Error(se + u + " cannot be zero: " + f);
|
|
6829
|
-
if (a.hasOwnProperty(u = "CRYPTO")) if (f = a[u], f === !!f) if (f) if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
|
|
6830
|
-
else throw
|
|
6831
|
-
else
|
|
6830
|
+
if (a.hasOwnProperty(u = "CRYPTO")) if (f = a[u], f === !!f) if (f) if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes)) b = f;
|
|
6831
|
+
else throw b = !f, Error(se + "crypto unavailable");
|
|
6832
|
+
else b = f;
|
|
6832
6833
|
else throw Error(se + u + " not true or false: " + f);
|
|
6833
6834
|
if (a.hasOwnProperty(u = "MODULO_MODE") && (f = a[u], J(f, 0, 9, u), O = f), a.hasOwnProperty(u = "POW_PRECISION") && (f = a[u], J(f, 0, te, u), x = f), a.hasOwnProperty(u = "FORMAT")) if (f = a[u], typeof f == "object") M = f;
|
|
6834
6835
|
else throw Error(se + u + " not an object: " + f);
|
|
6835
|
-
if (a.hasOwnProperty(u = "ALPHABET")) if (f = a[u], typeof f == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(f))
|
|
6836
|
+
if (a.hasOwnProperty(u = "ALPHABET")) if (f = a[u], typeof f == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(f)) C = f.slice(0, 10) == "0123456789", y = f;
|
|
6836
6837
|
else throw Error(se + u + " invalid: " + f);
|
|
6837
6838
|
} else throw Error(se + "Object expected: " + a);
|
|
6838
|
-
return { DECIMAL_PLACES: c, ROUNDING_MODE: l, EXPONENTIAL_AT: [h, _], RANGE: [m, A], CRYPTO:
|
|
6839
|
+
return { DECIMAL_PLACES: c, ROUNDING_MODE: l, EXPONENTIAL_AT: [h, _], RANGE: [m, A], CRYPTO: b, MODULO_MODE: O, POW_PRECISION: x, FORMAT: M, ALPHABET: y };
|
|
6839
6840
|
}, w.isBigNumber = function(a) {
|
|
6840
6841
|
if (!a || a._isBigNumber !== true) return false;
|
|
6841
6842
|
if (!w.DEBUG) return true;
|
|
@@ -6865,14 +6866,14 @@ function Pr(e) {
|
|
|
6865
6866
|
};
|
|
6866
6867
|
return function(f) {
|
|
6867
6868
|
var g, p, I, T, d, E = 0, S = [], R = new w(i);
|
|
6868
|
-
if (f == null ? f = c : J(f, 0, te), T = Bt(f / $),
|
|
6869
|
+
if (f == null ? f = c : J(f, 0, te), T = Bt(f / $), b) if (crypto.getRandomValues) {
|
|
6869
6870
|
for (g = crypto.getRandomValues(new Uint32Array(T *= 2)); E < T; ) d = g[E] * 131072 + (g[E + 1] >>> 11), d >= 9e15 ? (p = crypto.getRandomValues(new Uint32Array(2)), g[E] = p[0], g[E + 1] = p[1]) : (S.push(d % 1e14), E += 2);
|
|
6870
6871
|
E = T / 2;
|
|
6871
6872
|
} else if (crypto.randomBytes) {
|
|
6872
6873
|
for (g = crypto.randomBytes(T *= 7); E < T; ) d = (g[E] & 31) * 281474976710656 + g[E + 1] * 1099511627776 + g[E + 2] * 4294967296 + g[E + 3] * 16777216 + (g[E + 4] << 16) + (g[E + 5] << 8) + g[E + 6], d >= 9e15 ? crypto.randomBytes(7).copy(g, E) : (S.push(d % 1e14), E += 7);
|
|
6873
6874
|
E = T / 7;
|
|
6874
|
-
} else throw
|
|
6875
|
-
if (!
|
|
6875
|
+
} else throw b = false, Error(se + "crypto unavailable");
|
|
6876
|
+
if (!b) for (; E < T; ) d = u(), d < 9e15 && (S[E++] = d % 1e14);
|
|
6876
6877
|
for (T = S[--E], f %= $, T && f && (d = Lt[$ - f], S[E] = ce(T / d) * d); S[E] === 0; S.pop(), E--) ;
|
|
6877
6878
|
if (E < 0) S = [I = 0];
|
|
6878
6879
|
else {
|
|
@@ -6895,22 +6896,22 @@ function Pr(e) {
|
|
|
6895
6896
|
return d.reverse();
|
|
6896
6897
|
}
|
|
6897
6898
|
return s(u, "toBaseOut"), function(f, g, p, I, T) {
|
|
6898
|
-
var d, E, S, R, v,
|
|
6899
|
-
for (j >= 0 && (R = x, x = 0, f = f.replace(".", ""), H = new w(g),
|
|
6900
|
-
if (!
|
|
6901
|
-
if (j < 0 ? --S : (
|
|
6899
|
+
var d, E, S, R, v, N, P, H, j = f.indexOf("."), q = c, D = l;
|
|
6900
|
+
for (j >= 0 && (R = x, x = 0, f = f.replace(".", ""), H = new w(g), N = H.pow(f.length - j), x = R, H.c = u(we(le(N.c), N.e, "0"), 10, p, a), H.e = H.c.length), P = u(f, g, p, T ? (d = y, a) : (d = a, y)), S = R = P.length; P[--R] == 0; P.pop()) ;
|
|
6901
|
+
if (!P[0]) return d.charAt(0);
|
|
6902
|
+
if (j < 0 ? --S : (N.c = P, N.e = S, N.s = I, N = t(N, H, q, D, p), P = N.c, v = N.r, S = N.e), E = S + q + 1, j = P[E], R = p / 2, v = v || E < 0 || P[E + 1] != null, v = D < 4 ? (j != null || v) && (D == 0 || D == (N.s < 0 ? 3 : 2)) : j > R || j == R && (D == 4 || v || D == 6 && P[E - 1] & 1 || D == (N.s < 0 ? 8 : 7)), E < 1 || !P[0]) f = v ? we(d.charAt(1), -q, d.charAt(0)) : d.charAt(0);
|
|
6902
6903
|
else {
|
|
6903
|
-
if (
|
|
6904
|
-
for (R =
|
|
6905
|
-
for (j = 0, f = ""; j <= R; f += d.charAt(
|
|
6904
|
+
if (P.length = E, v) for (--p; ++P[--E] > p; ) P[E] = 0, E || (++S, P = [1].concat(P));
|
|
6905
|
+
for (R = P.length; !P[--R]; ) ;
|
|
6906
|
+
for (j = 0, f = ""; j <= R; f += d.charAt(P[j++])) ;
|
|
6906
6907
|
f = we(f, S, d.charAt(0));
|
|
6907
6908
|
}
|
|
6908
6909
|
return f;
|
|
6909
6910
|
};
|
|
6910
6911
|
})(), t = (function() {
|
|
6911
6912
|
function a(g, p, I) {
|
|
6912
|
-
var T, d, E, S, R = 0, v = g.length,
|
|
6913
|
-
for (g = g.slice(); v--; ) E = g[v] % Ue, S = g[v] / Ue | 0, T =
|
|
6913
|
+
var T, d, E, S, R = 0, v = g.length, N = p % Ue, P = p / Ue | 0;
|
|
6914
|
+
for (g = g.slice(); v--; ) E = g[v] % Ue, S = g[v] / Ue | 0, T = P * E + S * N, d = N * E + T % Ue * Ue + R, R = (d / I | 0) + (T / Ue | 0) + P * S, g[v] = d % I;
|
|
6914
6915
|
return R && (g = [R].concat(g)), g;
|
|
6915
6916
|
}
|
|
6916
6917
|
s(a, "multiply");
|
|
@@ -6929,20 +6930,20 @@ function Pr(e) {
|
|
|
6929
6930
|
for (; !g[0] && g.length > 1; g.splice(0, 1)) ;
|
|
6930
6931
|
}
|
|
6931
6932
|
return s(f, "subtract"), function(g, p, I, T, d) {
|
|
6932
|
-
var E, S, R, v,
|
|
6933
|
+
var E, S, R, v, N, P, H, j, q, D, F, z, de, ve, be, ne, pe, Z = g.s == p.s ? 1 : -1, ee = g.c, Q = p.c;
|
|
6933
6934
|
if (!ee || !ee[0] || !Q || !Q[0]) return new w(!g.s || !p.s || (ee ? Q && ee[0] == Q[0] : !Q) ? NaN : ee && ee[0] == 0 || !Q ? Z * 0 : Z / 0);
|
|
6934
6935
|
for (j = new w(Z), q = j.c = [], S = g.e - p.e, Z = I + S + 1, d || (d = me, S = ue(g.e / $) - ue(p.e / $), Z = Z / $ | 0), R = 0; Q[R] == (ee[R] || 0); R++) ;
|
|
6935
6936
|
if (Q[R] > (ee[R] || 0) && S--, Z < 0) q.push(1), v = true;
|
|
6936
6937
|
else {
|
|
6937
|
-
for (ve = ee.length, ne = Q.length, R = 0, Z += 2,
|
|
6938
|
-
pe = Q.slice(), pe = [0].concat(pe),
|
|
6938
|
+
for (ve = ee.length, ne = Q.length, R = 0, Z += 2, N = ce(d / (Q[0] + 1)), N > 1 && (Q = a(Q, N, d), ee = a(ee, N, d), ne = Q.length, ve = ee.length), de = ne, D = ee.slice(0, ne), F = D.length; F < ne; D[F++] = 0) ;
|
|
6939
|
+
pe = Q.slice(), pe = [0].concat(pe), be = Q[0], Q[1] >= d / 2 && be++;
|
|
6939
6940
|
do {
|
|
6940
|
-
if (
|
|
6941
|
-
if (z = D[0], ne != F && (z = z * d + (D[1] || 0)),
|
|
6942
|
-
else
|
|
6943
|
-
if (H < F && (
|
|
6944
|
-
} else E === 0 && (
|
|
6945
|
-
q[R++] =
|
|
6941
|
+
if (N = 0, E = u(Q, D, ne, F), E < 0) {
|
|
6942
|
+
if (z = D[0], ne != F && (z = z * d + (D[1] || 0)), N = ce(z / be), N > 1) for (N >= d && (N = d - 1), P = a(Q, N, d), H = P.length, F = D.length; u(P, D, H, F) == 1; ) N--, f(P, ne < H ? pe : Q, H, d), H = P.length, E = 1;
|
|
6943
|
+
else N == 0 && (E = N = 1), P = Q.slice(), H = P.length;
|
|
6944
|
+
if (H < F && (P = [0].concat(P)), f(D, P, F, d), F = D.length, E == -1) for (; u(Q, D, ne, F) < 1; ) N++, f(D, ne < F ? pe : Q, F, d), F = D.length;
|
|
6945
|
+
} else E === 0 && (N++, D = [0]);
|
|
6946
|
+
q[R++] = N, D[0] ? D[F++] = ee[de] || 0 : (D = [ee[de]], F = 1);
|
|
6946
6947
|
} while ((de++ < ve || D[0] != null) && Z--);
|
|
6947
6948
|
v = D[0] != null, q[0] || q.splice(0, 1);
|
|
6948
6949
|
}
|
|
@@ -6982,8 +6983,8 @@ function Pr(e) {
|
|
|
6982
6983
|
var S, R = d ? T : T.replace(p, "");
|
|
6983
6984
|
if (g.test(R)) I.s = isNaN(R) ? null : R < 0 ? -1 : 1;
|
|
6984
6985
|
else {
|
|
6985
|
-
if (!d && (R = R.replace(a, function(v,
|
|
6986
|
-
return S = (
|
|
6986
|
+
if (!d && (R = R.replace(a, function(v, N, P) {
|
|
6987
|
+
return S = (P = P.toLowerCase()) == "x" ? 16 : P == "b" ? 2 : 8, !E || E == S ? N : v;
|
|
6987
6988
|
}), E && (S = E, R = R.replace(u, "$1").replace(f, "0.$1")), T != R)) return new w(R, S);
|
|
6988
6989
|
if (w.DEBUG) throw Error(se + "Not a" + (E ? " base " + E : "") + " number: " + T);
|
|
6989
6990
|
I.s = null;
|
|
@@ -6992,21 +6993,21 @@ function Pr(e) {
|
|
|
6992
6993
|
};
|
|
6993
6994
|
})();
|
|
6994
6995
|
function G(a, u, f, g) {
|
|
6995
|
-
var p, I, T, d, E, S, R, v = a.c,
|
|
6996
|
+
var p, I, T, d, E, S, R, v = a.c, N = Lt;
|
|
6996
6997
|
if (v) {
|
|
6997
6998
|
e: {
|
|
6998
6999
|
for (p = 1, d = v[0]; d >= 10; d /= 10, p++) ;
|
|
6999
|
-
if (I = u - p, I < 0) I += $, T = u, E = v[S = 0], R = ce(E /
|
|
7000
|
+
if (I = u - p, I < 0) I += $, T = u, E = v[S = 0], R = ce(E / N[p - T - 1] % 10);
|
|
7000
7001
|
else if (S = Bt((I + 1) / $), S >= v.length) if (g) {
|
|
7001
7002
|
for (; v.length <= S; v.push(0)) ;
|
|
7002
7003
|
E = R = 0, p = 1, I %= $, T = I - $ + 1;
|
|
7003
7004
|
} else break e;
|
|
7004
7005
|
else {
|
|
7005
7006
|
for (E = d = v[S], p = 1; d >= 10; d /= 10, p++) ;
|
|
7006
|
-
I %= $, T = I - $ + p, R = T < 0 ? 0 : ce(E /
|
|
7007
|
+
I %= $, T = I - $ + p, R = T < 0 ? 0 : ce(E / N[p - T - 1] % 10);
|
|
7007
7008
|
}
|
|
7008
|
-
if (g = g || u < 0 || v[S + 1] != null || (T < 0 ? E : E %
|
|
7009
|
-
if (I == 0 ? (v.length = S, d = 1, S--) : (v.length = S + 1, d =
|
|
7009
|
+
if (g = g || u < 0 || v[S + 1] != null || (T < 0 ? E : E % N[p - T - 1]), g = f < 4 ? (R || g) && (f == 0 || f == (a.s < 0 ? 3 : 2)) : R > 5 || R == 5 && (f == 4 || g || f == 6 && (I > 0 ? T > 0 ? E / N[p - T] : 0 : v[S - 1]) % 10 & 1 || f == (a.s < 0 ? 8 : 7)), u < 1 || !v[0]) return v.length = 0, g ? (u -= a.e + 1, v[0] = N[($ - u % $) % $], a.e = -u || 0) : v[0] = a.e = 0, a;
|
|
7010
|
+
if (I == 0 ? (v.length = S, d = 1, S--) : (v.length = S + 1, d = N[$ - I], v[S] = T > 0 ? ce(E / N[p - T] % N[T]) * d : 0), g) for (; ; ) if (S == 0) {
|
|
7010
7011
|
for (I = 1, T = v[0]; T >= 10; T /= 10, I++) ;
|
|
7011
7012
|
for (T = v[0] += d, d = 1; T >= 10; T /= 10, d++) ;
|
|
7012
7013
|
I != d && (a.e++, v[0] == me && (v[0] = 1));
|
|
@@ -7123,11 +7124,11 @@ function Pr(e) {
|
|
|
7123
7124
|
var f, g, p = this;
|
|
7124
7125
|
return a = new w(a, u), !p.c || !a.s || a.c && !a.c[0] ? new w(NaN) : !a.c || p.c && !p.c[0] ? new w(p) : (O == 9 ? (g = a.s, a.s = 1, f = t(p, a, 0, 3), a.s = g, f.s *= g) : f = t(p, a, 0, O), a = p.minus(f.times(a)), !a.c[0] && O == 1 && (a.s = p.s), a);
|
|
7125
7126
|
}, o.multipliedBy = o.times = function(a, u) {
|
|
7126
|
-
var f, g, p, I, T, d, E, S, R, v,
|
|
7127
|
+
var f, g, p, I, T, d, E, S, R, v, N, P, H, j, q, D = this, F = D.c, z = (a = new w(a, u)).c;
|
|
7127
7128
|
if (!F || !z || !F[0] || !z[0]) return !D.s || !a.s || F && !F[0] && !z || z && !z[0] && !F ? a.c = a.e = a.s = null : (a.s *= D.s, !F || !z ? a.c = a.e = null : (a.c = [0], a.e = 0)), a;
|
|
7128
7129
|
for (g = ue(D.e / $) + ue(a.e / $), a.s *= D.s, E = F.length, v = z.length, E < v && (H = F, F = z, z = H, p = E, E = v, v = p), p = E + v, H = []; p--; H.push(0)) ;
|
|
7129
7130
|
for (j = me, q = Ue, p = v; --p >= 0; ) {
|
|
7130
|
-
for (f = 0,
|
|
7131
|
+
for (f = 0, N = z[p] % q, P = z[p] / q | 0, T = E, I = p + T; I > p; ) S = F[--T] % q, R = F[T] / q | 0, d = P * S + R * N, S = N * S + d % q * q + H[I] + f, f = (S / j | 0) + (d / q | 0) + P * R, H[I--] = S % j;
|
|
7131
7132
|
H[I] = f;
|
|
7132
7133
|
}
|
|
7133
7134
|
return f ? ++g : H.splice(0, 1), U(a, H, g);
|
|
@@ -7185,32 +7186,32 @@ function Pr(e) {
|
|
|
7185
7186
|
if (f == null) a != null && u && typeof u == "object" ? (f = u, u = null) : a && typeof a == "object" ? (f = a, a = u = null) : f = M;
|
|
7186
7187
|
else if (typeof f != "object") throw Error(se + "Argument not an object: " + f);
|
|
7187
7188
|
if (g = p.toFixed(a, u), p.c) {
|
|
7188
|
-
var I, T = g.split("."), d = +f.groupSize, E = +f.secondaryGroupSize, S = f.groupSeparator || "", R = T[0], v = T[1],
|
|
7189
|
+
var I, T = g.split("."), d = +f.groupSize, E = +f.secondaryGroupSize, S = f.groupSeparator || "", R = T[0], v = T[1], N = p.s < 0, P = N ? R.slice(1) : R, H = P.length;
|
|
7189
7190
|
if (E && (I = d, d = E, E = I, H -= I), d > 0 && H > 0) {
|
|
7190
|
-
for (I = H % d || d, R =
|
|
7191
|
-
E > 0 && (R += S +
|
|
7191
|
+
for (I = H % d || d, R = P.substr(0, I); I < H; I += d) R += S + P.substr(I, d);
|
|
7192
|
+
E > 0 && (R += S + P.slice(I)), N && (R = "-" + R);
|
|
7192
7193
|
}
|
|
7193
7194
|
g = v ? R + (f.decimalSeparator || "") + ((E = +f.fractionGroupSize) ? v.replace(new RegExp("\\d{" + E + "}\\B", "g"), "$&" + (f.fractionGroupSeparator || "")) : v) : R;
|
|
7194
7195
|
}
|
|
7195
7196
|
return (f.prefix || "") + g + (f.suffix || "");
|
|
7196
7197
|
}, o.toFraction = function(a) {
|
|
7197
|
-
var u, f, g, p, I, T, d, E, S, R, v,
|
|
7198
|
+
var u, f, g, p, I, T, d, E, S, R, v, N, P = this, H = P.c;
|
|
7198
7199
|
if (a != null && (d = new w(a), !d.isInteger() && (d.c || d.s !== 1) || d.lt(i))) throw Error(se + "Argument " + (d.isInteger() ? "out of range: " : "not an integer: ") + k(d));
|
|
7199
|
-
if (!H) return new w(
|
|
7200
|
-
for (u = new w(i), S = f = new w(i), g = E = new w(i),
|
|
7201
|
-
return p = t(a.minus(f), g, 0, 1), E = E.plus(p.times(S)), f = f.plus(p.times(g)), E.s = S.s =
|
|
7200
|
+
if (!H) return new w(P);
|
|
7201
|
+
for (u = new w(i), S = f = new w(i), g = E = new w(i), N = le(H), I = u.e = N.length - P.e - 1, u.c[0] = Lt[(T = I % $) < 0 ? $ + T : T], a = !a || d.comparedTo(u) > 0 ? I > 0 ? u : S : d, T = A, A = 1 / 0, d = new w(N), E.c[0] = 0; R = t(d, u, 0, 1), p = f.plus(R.times(g)), p.comparedTo(a) != 1; ) f = g, g = p, S = E.plus(R.times(p = S)), E = p, u = d.minus(R.times(p = u)), d = p;
|
|
7202
|
+
return p = t(a.minus(f), g, 0, 1), E = E.plus(p.times(S)), f = f.plus(p.times(g)), E.s = S.s = P.s, I = I * 2, v = t(S, g, I, l).minus(P).abs().comparedTo(t(E, f, I, l).minus(P).abs()) < 1 ? [S, g] : [E, f], A = T, v;
|
|
7202
7203
|
}, o.toNumber = function() {
|
|
7203
7204
|
return +k(this);
|
|
7204
7205
|
}, o.toPrecision = function(a, u) {
|
|
7205
7206
|
return a != null && J(a, 1, te), B(this, a, u, 2);
|
|
7206
7207
|
}, o.toString = function(a) {
|
|
7207
7208
|
var u, f = this, g = f.s, p = f.e;
|
|
7208
|
-
return p === null ? g ? (u = "Infinity", g < 0 && (u = "-" + u)) : u = "NaN" : (a == null ? u = p <= h || p >= _ ? ct(le(f.c), p) : we(le(f.c), p, "0") : a === 10 &&
|
|
7209
|
+
return p === null ? g ? (u = "Infinity", g < 0 && (u = "-" + u)) : u = "NaN" : (a == null ? u = p <= h || p >= _ ? ct(le(f.c), p) : we(le(f.c), p, "0") : a === 10 && C ? (f = G(new w(f), c + p + 1, l), u = we(le(f.c), f.e, "0")) : (J(a, 2, y.length, "Base"), u = r(we(le(f.c), p, "0"), 10, a, g, true)), g < 0 && f.c[0] && (u = "-" + u)), u;
|
|
7209
7210
|
}, o.valueOf = o.toJSON = function() {
|
|
7210
7211
|
return k(this);
|
|
7211
7212
|
}, o._isBigNumber = true, o[Symbol.toStringTag] = "BigNumber", o[Symbol.for("nodejs.util.inspect.custom")] = o.valueOf, e != null && w.set(e), w;
|
|
7212
7213
|
}
|
|
7213
|
-
s(
|
|
7214
|
+
s(Nr, "clone");
|
|
7214
7215
|
function ue(e) {
|
|
7215
7216
|
var t = e | 0;
|
|
7216
7217
|
return e > 0 || e === t ? t : t - 1;
|
|
@@ -7261,17 +7262,17 @@ function we(e, t, r) {
|
|
|
7261
7262
|
return e;
|
|
7262
7263
|
}
|
|
7263
7264
|
s(we, "toFixedPoint");
|
|
7264
|
-
var
|
|
7265
|
+
var Ci = Nr();
|
|
7265
7266
|
const Ui = 24, Xe = 32, Bi = s(() => typeof globalThis < "u" && globalThis.crypto && typeof globalThis.crypto.getRandomValues == "function" ? () => {
|
|
7266
7267
|
const e = new Uint32Array(1);
|
|
7267
7268
|
return globalThis.crypto.getRandomValues(e), e[0] / 4294967296;
|
|
7268
|
-
} : Math.random, "createRandom"),
|
|
7269
|
+
} : Math.random, "createRandom"), Pt = Bi(), Nt = s((e = 4, t = Pt) => {
|
|
7269
7270
|
let r = "";
|
|
7270
7271
|
for (; r.length < e; ) r = r + Math.floor(t() * 36).toString(36);
|
|
7271
7272
|
return r;
|
|
7272
7273
|
}, "createEntropy");
|
|
7273
7274
|
function Oi(e) {
|
|
7274
|
-
let t = new
|
|
7275
|
+
let t = new Ci(0);
|
|
7275
7276
|
for (const r of e.values()) t = t.multipliedBy(256).plus(r);
|
|
7276
7277
|
return t;
|
|
7277
7278
|
}
|
|
@@ -7279,13 +7280,13 @@ s(Oi, "bufToBigInt");
|
|
|
7279
7280
|
const Dr = s((e = "") => {
|
|
7280
7281
|
const t = new TextEncoder();
|
|
7281
7282
|
return Oi(vi(t.encode(e))).toString(36).slice(1);
|
|
7282
|
-
}, "hash"), Mr = Array.from({ length: 26 }, (e, t) => String.fromCharCode(t + 97)), Li = s((e) => Mr[Math.floor(e() * Mr.length)], "randomLetter"),
|
|
7283
|
-
const r = Object.keys(e).toString(), n = r.length ? r +
|
|
7283
|
+
}, "hash"), Mr = Array.from({ length: 26 }, (e, t) => String.fromCharCode(t + 97)), Li = s((e) => Mr[Math.floor(e() * Mr.length)], "randomLetter"), Pi = s(({ globalObj: e = typeof global < "u" ? global : typeof window < "u" ? window : {}, random: t = Pt } = {}) => {
|
|
7284
|
+
const r = Object.keys(e).toString(), n = r.length ? r + Nt(Xe, t) : Nt(Xe, t);
|
|
7284
7285
|
return Dr(n).substring(0, Xe);
|
|
7285
|
-
}, "createFingerprint"),
|
|
7286
|
+
}, "createFingerprint"), Ni = s((e) => () => e++, "createCounter"), Di = 476782367, Mi = s(({ random: e = Pt, counter: t = Ni(Math.floor(e() * Di)), length: r = Ui, fingerprint: n = Pi({ random: e }) } = {}) => {
|
|
7286
7287
|
if (r > Xe) throw new Error(`Length must be between 2 and ${Xe}. Received: ${r}`);
|
|
7287
7288
|
return s(function() {
|
|
7288
|
-
const i = Li(e), c = Date.now().toString(36), l = t().toString(36), h =
|
|
7289
|
+
const i = Li(e), c = Date.now().toString(36), l = t().toString(36), h = Nt(r, e), _ = `${c + h + l + n}`;
|
|
7289
7290
|
return `${i + Dr(_).substring(1, r)}`;
|
|
7290
7291
|
}, "cuid2");
|
|
7291
7292
|
}, "init"), ut = xi(Mi);
|
|
@@ -7312,8 +7313,8 @@ function $i() {
|
|
|
7312
7313
|
size;
|
|
7313
7314
|
offset;
|
|
7314
7315
|
error;
|
|
7315
|
-
constructor(
|
|
7316
|
-
this.fileBuffer =
|
|
7316
|
+
constructor(C, w) {
|
|
7317
|
+
this.fileBuffer = C, this.size = w, this.offset = 0, this.error = false;
|
|
7317
7318
|
}
|
|
7318
7319
|
hasError() {
|
|
7319
7320
|
return this.error;
|
|
@@ -7321,9 +7322,9 @@ function $i() {
|
|
|
7321
7322
|
nextByte() {
|
|
7322
7323
|
return this.offset === this.size || this.hasError() ? (this.error = true, 255) : this.fileBuffer[this.offset++];
|
|
7323
7324
|
}
|
|
7324
|
-
next(
|
|
7325
|
+
next(C) {
|
|
7325
7326
|
const w = new Array();
|
|
7326
|
-
for (let B = 0; B <
|
|
7327
|
+
for (let B = 0; B < C; B++) {
|
|
7327
7328
|
if (this.error) return w;
|
|
7328
7329
|
w[B] = this.nextByte();
|
|
7329
7330
|
}
|
|
@@ -7331,15 +7332,15 @@ function $i() {
|
|
|
7331
7332
|
}
|
|
7332
7333
|
}
|
|
7333
7334
|
function h(y) {
|
|
7334
|
-
let
|
|
7335
|
+
let C = 0, w = 0;
|
|
7335
7336
|
for (; !y.hasError(); ) {
|
|
7336
7337
|
const B = y.nextByte();
|
|
7337
|
-
if (w = w | (B & 127) << 7 *
|
|
7338
|
-
if (
|
|
7338
|
+
if (w = w | (B & 127) << 7 * C, (B & 128) === 0) break;
|
|
7339
|
+
if (C >= 10) {
|
|
7339
7340
|
y.error = true;
|
|
7340
7341
|
break;
|
|
7341
7342
|
}
|
|
7342
|
-
|
|
7343
|
+
C++;
|
|
7343
7344
|
}
|
|
7344
7345
|
return w;
|
|
7345
7346
|
}
|
|
@@ -7359,8 +7360,8 @@ function $i() {
|
|
|
7359
7360
|
return false;
|
|
7360
7361
|
}
|
|
7361
7362
|
s(_, "readProtoMessage");
|
|
7362
|
-
function m(y,
|
|
7363
|
-
const w = new l(y,
|
|
7363
|
+
function m(y, C) {
|
|
7364
|
+
const w = new l(y, C);
|
|
7364
7365
|
let B = 0;
|
|
7365
7366
|
for (; ; ) {
|
|
7366
7367
|
if (!_(w) && !w.hasError()) return false;
|
|
@@ -7370,7 +7371,7 @@ function $i() {
|
|
|
7370
7371
|
return B > 0;
|
|
7371
7372
|
}
|
|
7372
7373
|
s(m, "isBinaryProto");
|
|
7373
|
-
async function A(y,
|
|
7374
|
+
async function A(y, C) {
|
|
7374
7375
|
if (x(y)) {
|
|
7375
7376
|
const w = await r(y);
|
|
7376
7377
|
M(w);
|
|
@@ -7385,25 +7386,25 @@ function $i() {
|
|
|
7385
7386
|
}
|
|
7386
7387
|
});
|
|
7387
7388
|
});
|
|
7388
|
-
} else return
|
|
7389
|
+
} else return C === void 0 && (C = y.length), O(y, C);
|
|
7389
7390
|
}
|
|
7390
7391
|
s(A, "isBinaryFile"), xe.isBinaryFile = A;
|
|
7391
|
-
function
|
|
7392
|
+
function b(y, C) {
|
|
7392
7393
|
if (x(y)) {
|
|
7393
7394
|
const w = e.statSync(y);
|
|
7394
7395
|
M(w);
|
|
7395
7396
|
const B = e.openSync(y, "r"), L = Buffer.alloc(i + c), U = e.readSync(B, L, 0, i + c, 0);
|
|
7396
7397
|
return e.closeSync(B), O(L, U);
|
|
7397
|
-
} else return
|
|
7398
|
+
} else return C === void 0 && (C = y.length), O(y, C);
|
|
7398
7399
|
}
|
|
7399
|
-
s(
|
|
7400
|
-
function O(y,
|
|
7401
|
-
if (
|
|
7400
|
+
s(b, "isBinaryFileSync"), xe.isBinaryFileSync = b;
|
|
7401
|
+
function O(y, C) {
|
|
7402
|
+
if (C === 0) return false;
|
|
7402
7403
|
let w = 0;
|
|
7403
|
-
const B = Math.min(
|
|
7404
|
-
if (
|
|
7404
|
+
const B = Math.min(C, i + c), L = Math.min(B, i);
|
|
7405
|
+
if (C >= 3 && y[0] === 239 && y[1] === 187 && y[2] === 191 || C >= 4 && y[0] === 0 && y[1] === 0 && y[2] === 254 && y[3] === 255 || C >= 4 && y[0] === 255 && y[1] === 254 && y[2] === 0 && y[3] === 0 || C >= 4 && y[0] === 132 && y[1] === 49 && y[2] === 149 && y[3] === 51) return false;
|
|
7405
7406
|
if (B >= 5 && y.slice(0, 5).toString() === "%PDF-") return true;
|
|
7406
|
-
if (
|
|
7407
|
+
if (C >= 2 && y[0] === 254 && y[1] === 255 || C >= 2 && y[0] === 255 && y[1] === 254) return false;
|
|
7407
7408
|
for (let U = 0; U < L; U++) {
|
|
7408
7409
|
if (y[U] === 0) return true;
|
|
7409
7410
|
if ((y[U] < 7 || y[U] > 14) && (y[U] < 32 || y[U] > 127)) {
|
|
@@ -7461,7 +7462,7 @@ for (var fe = s((function(e, t, r) {
|
|
|
7461
7462
|
if (r) {
|
|
7462
7463
|
l = new ie(1 << t);
|
|
7463
7464
|
var h = 15 - t;
|
|
7464
|
-
for (o = 0; o < n; ++o) if (e[o]) for (var _ = o << 4 | e[o], m = t - e[o], A = c[e[o] - 1]++ << m,
|
|
7465
|
+
for (o = 0; o < n; ++o) if (e[o]) for (var _ = o << 4 | e[o], m = t - e[o], A = c[e[o] - 1]++ << m, b = A | (1 << m) - 1; A <= b; ++A) l[tt[A] >> h] = _;
|
|
7465
7466
|
} else for (l = new ie(n), o = 0; o < n; ++o) e[o] && (l[o] = tt[c[e[o] - 1]++] >> 15 - e[o]);
|
|
7466
7467
|
return l;
|
|
7467
7468
|
}), "hMap"), ye = new K(288), V = 0; V < 144; ++V) ye[V] = 8;
|
|
@@ -7497,7 +7498,7 @@ var qr = fe(ye, 9, 0), Wr = fe(ye, 9, 1), Kr = fe(We, 5, 0), Vr = fe(We, 5, 1),
|
|
|
7497
7498
|
var Z = new K(Math.max(pe * 2, ne));
|
|
7498
7499
|
Z.set(r), r = Z;
|
|
7499
7500
|
}
|
|
7500
|
-
}, "cbuf"), m = t.f || 0, A = t.p || 0,
|
|
7501
|
+
}, "cbuf"), m = t.f || 0, A = t.p || 0, b = t.b || 0, O = t.l, x = t.d, M = t.m, y = t.n, C = o * 8;
|
|
7501
7502
|
do {
|
|
7502
7503
|
if (!O) {
|
|
7503
7504
|
m = he(e, A, 1);
|
|
@@ -7527,22 +7528,22 @@ var qr = fe(ye, 9, 0), Wr = fe(ye, 9, 1), Kr = fe(We, 5, 0), Vr = fe(We, 5, 1),
|
|
|
7527
7528
|
h && X(0);
|
|
7528
7529
|
break;
|
|
7529
7530
|
}
|
|
7530
|
-
l && _(
|
|
7531
|
+
l && _(b + L), r.set(e.subarray(B, U), b), t.b = b += L, t.p = A = U * 8, t.f = m;
|
|
7531
7532
|
continue;
|
|
7532
7533
|
}
|
|
7533
|
-
if (A >
|
|
7534
|
+
if (A > C) {
|
|
7534
7535
|
h && X(0);
|
|
7535
7536
|
break;
|
|
7536
7537
|
}
|
|
7537
7538
|
}
|
|
7538
|
-
l && _(
|
|
7539
|
-
for (var
|
|
7540
|
-
var E = O[ht(e, A) &
|
|
7541
|
-
if (A += E & 15, A >
|
|
7539
|
+
l && _(b + 131072);
|
|
7540
|
+
for (var N = (1 << M) - 1, P = (1 << y) - 1, H = A; ; H = A) {
|
|
7541
|
+
var E = O[ht(e, A) & N], j = E >> 4;
|
|
7542
|
+
if (A += E & 15, A > C) {
|
|
7542
7543
|
h && X(0);
|
|
7543
7544
|
break;
|
|
7544
7545
|
}
|
|
7545
|
-
if (E || X(2), j < 256) r[
|
|
7546
|
+
if (E || X(2), j < 256) r[b++] = j;
|
|
7546
7547
|
else if (j == 256) {
|
|
7547
7548
|
H = A, O = null;
|
|
7548
7549
|
break;
|
|
@@ -7552,29 +7553,29 @@ var qr = fe(ye, 9, 0), Wr = fe(ye, 9, 1), Kr = fe(We, 5, 0), Vr = fe(We, 5, 1),
|
|
|
7552
7553
|
var g = j - 257, D = je[g];
|
|
7553
7554
|
q = he(e, A, (1 << D) - 1) + Dt[g], A += D;
|
|
7554
7555
|
}
|
|
7555
|
-
var F = x[ht(e, A) &
|
|
7556
|
+
var F = x[ht(e, A) & P], z = F >> 4;
|
|
7556
7557
|
F || X(3), A += F & 15;
|
|
7557
7558
|
var v = jr[z];
|
|
7558
7559
|
if (z > 3) {
|
|
7559
7560
|
var D = qe[z];
|
|
7560
7561
|
v += ht(e, A) & (1 << D) - 1, A += D;
|
|
7561
7562
|
}
|
|
7562
|
-
if (A >
|
|
7563
|
+
if (A > C) {
|
|
7563
7564
|
h && X(0);
|
|
7564
7565
|
break;
|
|
7565
7566
|
}
|
|
7566
|
-
l && _(
|
|
7567
|
-
var de =
|
|
7568
|
-
if (
|
|
7569
|
-
var ve = i - v,
|
|
7570
|
-
for (ve +
|
|
7567
|
+
l && _(b + 131072);
|
|
7568
|
+
var de = b + q;
|
|
7569
|
+
if (b < v) {
|
|
7570
|
+
var ve = i - v, be = Math.min(v, de);
|
|
7571
|
+
for (ve + b < 0 && X(3); b < be; ++b) r[b] = n[ve + b];
|
|
7571
7572
|
}
|
|
7572
|
-
for (;
|
|
7573
|
+
for (; b < de; ++b) r[b] = r[b - v];
|
|
7573
7574
|
}
|
|
7574
7575
|
}
|
|
7575
|
-
t.l = O, t.p = H, t.b =
|
|
7576
|
+
t.l = O, t.p = H, t.b = b, t.f = m, O && (m = 1, t.m = M, t.d = x, t.n = y);
|
|
7576
7577
|
} while (!m);
|
|
7577
|
-
return
|
|
7578
|
+
return b != r.length && c ? Ge(r, 0, b) : r.subarray(0, b);
|
|
7578
7579
|
}, "inflt"), ge = s(function(e, t, r) {
|
|
7579
7580
|
r <<= t & 7;
|
|
7580
7581
|
var n = t / 8 | 0;
|
|
@@ -7596,15 +7597,15 @@ var qr = fe(ye, 9, 0), Wr = fe(ye, 9, 1), Kr = fe(We, 5, 0), Vr = fe(We, 5, 1),
|
|
|
7596
7597
|
}), r.push({ s: -1, f: 25001 });
|
|
7597
7598
|
var l = r[0], h = r[1], _ = 0, m = 1, A = 2;
|
|
7598
7599
|
for (r[0] = { s: -1, f: l.f + h.f, l, r: h }; m != o - 1; ) l = r[r[_].f < r[A].f ? _++ : A++], h = r[_ != m && r[_].f < r[A].f ? _++ : A++], r[m++] = { s: -1, f: l.f + h.f, l, r: h };
|
|
7599
|
-
for (var
|
|
7600
|
-
var O = new ie(
|
|
7600
|
+
for (var b = i[0].s, n = 1; n < o; ++n) i[n].s > b && (b = i[n].s);
|
|
7601
|
+
var O = new ie(b + 1), x = pt(r[m - 1], O, 0);
|
|
7601
7602
|
if (x > t) {
|
|
7602
|
-
var n = 0, M = 0, y = x - t,
|
|
7603
|
+
var n = 0, M = 0, y = x - t, C = 1 << y;
|
|
7603
7604
|
for (i.sort(function(G, k) {
|
|
7604
7605
|
return O[k.s] - O[G.s] || G.f - k.f;
|
|
7605
7606
|
}); n < o; ++n) {
|
|
7606
7607
|
var w = i[n].s;
|
|
7607
|
-
if (O[w] > t) M +=
|
|
7608
|
+
if (O[w] > t) M += C - (1 << x - O[w]), O[w] = t;
|
|
7608
7609
|
else break;
|
|
7609
7610
|
}
|
|
7610
7611
|
for (M >>= y; M > 0; ) {
|
|
@@ -7647,21 +7648,21 @@ var qr = fe(ye, 9, 0), Wr = fe(ye, 9, 1), Kr = fe(We, 5, 0), Vr = fe(We, 5, 1),
|
|
|
7647
7648
|
return (o + 4 + n) * 8;
|
|
7648
7649
|
}, "wfblk"), $t = s(function(e, t, r, n, o, i, c, l, h, _, m) {
|
|
7649
7650
|
ge(t, m++, r), ++o[256];
|
|
7650
|
-
for (var A = dt(o, 15),
|
|
7651
|
+
for (var A = dt(o, 15), b = A.t, O = A.l, x = dt(i, 15), M = x.t, y = x.l, C = xt(b), w = C.c, B = C.n, L = xt(M), U = L.c, G = L.n, k = new ie(19), a = 0; a < w.length; ++a) ++k[w[a] & 31];
|
|
7651
7652
|
for (var a = 0; a < U.length; ++a) ++k[U[a] & 31];
|
|
7652
7653
|
for (var u = dt(k, 7), f = u.t, g = u.l, p = 19; p > 4 && !f[et[p - 1]]; --p) ;
|
|
7653
|
-
var I = _ + 5 << 3, T = Ve(o, ye) + Ve(i, We) + c, d = Ve(o,
|
|
7654
|
+
var I = _ + 5 << 3, T = Ve(o, ye) + Ve(i, We) + c, d = Ve(o, b) + Ve(i, M) + c + 14 + 3 * p + Ve(k, f) + 2 * k[16] + 3 * k[17] + 7 * k[18];
|
|
7654
7655
|
if (h >= 0 && I <= T && I <= d) return Gt(t, m, e.subarray(h, h + _));
|
|
7655
7656
|
var E, S, R, v;
|
|
7656
7657
|
if (ge(t, m, 1 + (d < T)), m += 2, d < T) {
|
|
7657
|
-
E = fe(
|
|
7658
|
-
var
|
|
7658
|
+
E = fe(b, O, 0), S = b, R = fe(M, y, 0), v = M;
|
|
7659
|
+
var N = fe(f, g, 0);
|
|
7659
7660
|
ge(t, m, B - 257), ge(t, m + 5, G - 1), ge(t, m + 10, p - 4), m += 14;
|
|
7660
7661
|
for (var a = 0; a < p; ++a) ge(t, m + 3 * a, f[et[a]]);
|
|
7661
7662
|
m += 3 * p;
|
|
7662
|
-
for (var
|
|
7663
|
+
for (var P = [w, U], H = 0; H < 2; ++H) for (var j = P[H], a = 0; a < j.length; ++a) {
|
|
7663
7664
|
var q = j[a] & 31;
|
|
7664
|
-
ge(t, m,
|
|
7665
|
+
ge(t, m, N[q]), m += f[q], q > 15 && (ge(t, m, j[a] >> 5 & 127), m += j[a] >> 12);
|
|
7665
7666
|
}
|
|
7666
7667
|
} else E = qr, S = ye, R = Kr, v = We;
|
|
7667
7668
|
for (var a = 0; a < l; ++a) {
|
|
@@ -7678,8 +7679,8 @@ var qr = fe(ye, 9, 0), Wr = fe(ye, 9, 1), Kr = fe(We, 5, 0), Vr = fe(We, 5, 1),
|
|
|
7678
7679
|
var c = i.z || e.length, l = new K(n + c + 5 * (1 + Math.ceil(c / 7e3)) + o), h = l.subarray(n, l.length - o), _ = i.l, m = (i.r || 0) & 7;
|
|
7679
7680
|
if (t) {
|
|
7680
7681
|
m && (h[0] = i.r >> 3);
|
|
7681
|
-
for (var A = Jr[t - 1],
|
|
7682
|
-
return (e[ee] ^ e[ee + 1] <<
|
|
7682
|
+
for (var A = Jr[t - 1], b = A >> 13, O = A & 8191, x = (1 << r) - 1, M = i.p || new ie(32768), y = i.h || new ie(x + 1), C = Math.ceil(r / 3), w = 2 * C, B = s(function(ee) {
|
|
7683
|
+
return (e[ee] ^ e[ee + 1] << C ^ e[ee + 2] << w) & x;
|
|
7683
7684
|
}, "hsh"), L = new Ze(25e3), U = new ie(288), G = new ie(32), k = 0, a = 0, u = i.i || 0, f = 0, g = i.w || 0, p = 0; u + 2 < c; ++u) {
|
|
7684
7685
|
var I = B(u), T = u & 32767, d = y[I];
|
|
7685
7686
|
if (M[T] = d, y[I] = T, g <= u) {
|
|
@@ -7689,19 +7690,19 @@ var qr = fe(ye, 9, 0), Wr = fe(ye, 9, 1), Kr = fe(We, 5, 0), Vr = fe(We, 5, 1),
|
|
|
7689
7690
|
for (var S = 0; S < 286; ++S) U[S] = 0;
|
|
7690
7691
|
for (var S = 0; S < 30; ++S) G[S] = 0;
|
|
7691
7692
|
}
|
|
7692
|
-
var R = 2, v = 0,
|
|
7693
|
-
if (E > 2 && I == B(u -
|
|
7694
|
-
if (e[u + R] == e[u + R -
|
|
7695
|
-
for (var D = 0; D < q && e[u + D] == e[u + D -
|
|
7693
|
+
var R = 2, v = 0, N = O, P = T - d & 32767;
|
|
7694
|
+
if (E > 2 && I == B(u - P)) for (var H = Math.min(b, E) - 1, j = Math.min(32767, u), q = Math.min(258, E); P <= j && --N && T != d; ) {
|
|
7695
|
+
if (e[u + R] == e[u + R - P]) {
|
|
7696
|
+
for (var D = 0; D < q && e[u + D] == e[u + D - P]; ++D) ;
|
|
7696
7697
|
if (D > R) {
|
|
7697
|
-
if (R = D, v =
|
|
7698
|
-
for (var F = Math.min(
|
|
7699
|
-
var de = u -
|
|
7700
|
-
|
|
7698
|
+
if (R = D, v = P, D > H) break;
|
|
7699
|
+
for (var F = Math.min(P, D - 2), z = 0, S = 0; S < F; ++S) {
|
|
7700
|
+
var de = u - P + S & 32767, ve = M[de], be = de - ve & 32767;
|
|
7701
|
+
be > z && (z = be, d = de);
|
|
7701
7702
|
}
|
|
7702
7703
|
}
|
|
7703
7704
|
}
|
|
7704
|
-
T = d, d = M[T],
|
|
7705
|
+
T = d, d = M[T], P += T - d & 32767;
|
|
7705
7706
|
}
|
|
7706
7707
|
if (v) {
|
|
7707
7708
|
L[f++] = 268435456 | lt[R] << 18 | Mt[v];
|
|
@@ -7879,8 +7880,8 @@ var Zi = s(function(e, t) {
|
|
|
7879
7880
|
}, "exfl"), sn = s(function(e, t, r, n, o, i, c, l) {
|
|
7880
7881
|
var h = n.length, _ = r.extra, m = l && l.length, A = Kt(_);
|
|
7881
7882
|
re(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 | (i < 0 && 8), e[t++] = o && 8, e[t++] = r.compression & 255, e[t++] = r.compression >> 8;
|
|
7882
|
-
var
|
|
7883
|
-
if ((O < 0 || O > 119) && X(10), re(e, t, O << 25 |
|
|
7883
|
+
var b = new Date(r.mtime == null ? Date.now() : r.mtime), O = b.getFullYear() - 1980;
|
|
7884
|
+
if ((O < 0 || O > 119) && X(10), re(e, t, O << 25 | b.getMonth() + 1 << 21 | b.getDate() << 16 | b.getHours() << 11 | b.getMinutes() << 5 | b.getSeconds() >> 1), t += 4, i != -1 && (re(e, t, r.crc), re(e, t + 4, i < 0 ? -i - 2 : i), re(e, t + 8, r.size)), re(e, t + 12, h), re(e, t + 14, A), t += 16, c != null && (re(e, t, m), re(e, t + 6, r.attrs), re(e, t + 10, c), t += 14), e.set(n, t), t += h, A) for (var x in _) {
|
|
7884
7885
|
var M = _[x], y = M.length;
|
|
7885
7886
|
re(e, t, +x), re(e, t + 2, y), e.set(M, t + 4), t += 4 + y;
|
|
7886
7887
|
}
|
|
@@ -7894,16 +7895,16 @@ function no(e, t, r) {
|
|
|
7894
7895
|
rn(e, "", n, t);
|
|
7895
7896
|
var o = Object.keys(n), i = o.length, c = 0, l = 0, h = i, _ = new Array(i), m = [], A = s(function() {
|
|
7896
7897
|
for (var y = 0; y < m.length; ++y) m[y]();
|
|
7897
|
-
}, "tAll"),
|
|
7898
|
+
}, "tAll"), b = s(function(y, C) {
|
|
7898
7899
|
_t(function() {
|
|
7899
|
-
r(y,
|
|
7900
|
+
r(y, C);
|
|
7900
7901
|
});
|
|
7901
7902
|
}, "cbd");
|
|
7902
7903
|
_t(function() {
|
|
7903
|
-
|
|
7904
|
+
b = r;
|
|
7904
7905
|
});
|
|
7905
7906
|
var O = s(function() {
|
|
7906
|
-
var y = new K(l + 22),
|
|
7907
|
+
var y = new K(l + 22), C = c, w = l - c;
|
|
7907
7908
|
l = 0;
|
|
7908
7909
|
for (var B = 0; B < h; ++B) {
|
|
7909
7910
|
var L = _[B];
|
|
@@ -7913,20 +7914,20 @@ function no(e, t, r) {
|
|
|
7913
7914
|
var G = 30 + L.f.length + Kt(L.extra), k = l + G;
|
|
7914
7915
|
y.set(L.c, k), sn(y, c, L, L.f, L.u, U, l, L.m), c += 16 + G + (L.m ? L.m.length : 0), l = k + U;
|
|
7915
7916
|
} catch (a) {
|
|
7916
|
-
return
|
|
7917
|
+
return b(a, null);
|
|
7917
7918
|
}
|
|
7918
7919
|
}
|
|
7919
|
-
ro(y, c, _.length, w,
|
|
7920
|
+
ro(y, c, _.length, w, C), b(null, y);
|
|
7920
7921
|
}, "cbf");
|
|
7921
7922
|
i || O();
|
|
7922
7923
|
for (var x = s(function(y) {
|
|
7923
|
-
var
|
|
7924
|
+
var C = o[y], w = n[C], B = w[0], L = w[1], U = ji(), G = B.length;
|
|
7924
7925
|
U.p(B);
|
|
7925
|
-
var k = on(
|
|
7926
|
-
if (d) A(),
|
|
7926
|
+
var k = on(C), a = k.length, u = L.comment, f = u && on(u), g = f && f.length, p = Kt(L.extra), I = L.level == 0 ? 0 : 8, T = s(function(d, E) {
|
|
7927
|
+
if (d) A(), b(d, null);
|
|
7927
7928
|
else {
|
|
7928
7929
|
var S = E.length;
|
|
7929
|
-
_[y] = Ht(L, { size: G, crc: U.d(), c: E, f: k, m: f, u: a !=
|
|
7930
|
+
_[y] = Ht(L, { size: G, crc: U.d(), c: E, f: k, m: f, u: a != C.length || f && u.length != g, compression: I }), c += 30 + a + p + S, l += 76 + 2 * (a + p) + (g || 0) + S, --i || O();
|
|
7930
7931
|
}
|
|
7931
7932
|
}, "cbl");
|
|
7932
7933
|
if (a > 65535 && T(X(11, 0, 1), null), !I) T(null, B);
|
|
@@ -7947,9 +7948,9 @@ function io(e, t, r) {
|
|
|
7947
7948
|
r || (r = t, t = {}), typeof r != "function" && X(7);
|
|
7948
7949
|
var n = [], o = s(function() {
|
|
7949
7950
|
for (var y = 0; y < n.length; ++y) n[y]();
|
|
7950
|
-
}, "tAll"), i = {}, c = s(function(y,
|
|
7951
|
+
}, "tAll"), i = {}, c = s(function(y, C) {
|
|
7951
7952
|
_t(function() {
|
|
7952
|
-
r(y,
|
|
7953
|
+
r(y, C);
|
|
7953
7954
|
});
|
|
7954
7955
|
}, "cbd");
|
|
7955
7956
|
_t(function() {
|
|
@@ -7960,11 +7961,11 @@ function io(e, t, r) {
|
|
|
7960
7961
|
if (h) {
|
|
7961
7962
|
var _ = h, m = Ee(e, l + 16), A = m == 4294967295 || _ == 65535;
|
|
7962
7963
|
if (A) {
|
|
7963
|
-
var
|
|
7964
|
-
A = Ee(e,
|
|
7964
|
+
var b = Ee(e, l - 12);
|
|
7965
|
+
A = Ee(e, b) == 101075792, A && (_ = h = Ee(e, b + 32), m = Ee(e, b + 48));
|
|
7965
7966
|
}
|
|
7966
7967
|
for (var O = t && t.filter, x = s(function(y) {
|
|
7967
|
-
var
|
|
7968
|
+
var C = eo(e, m, A), w = C[0], B = C[1], L = C[2], U = C[3], G = C[4], k = C[5], a = Zi(e, k);
|
|
7968
7969
|
m = G;
|
|
7969
7970
|
var u = s(function(g, p) {
|
|
7970
7971
|
g ? (o(), c(g, null)) : (p && (i[U] = p), --h || c(null, i));
|
|
@@ -8083,28 +8084,28 @@ function Le(e) {
|
|
|
8083
8084
|
return typeof e == "string";
|
|
8084
8085
|
}
|
|
8085
8086
|
s(Le, "S");
|
|
8086
|
-
function
|
|
8087
|
+
function Pe(e) {
|
|
8087
8088
|
return typeof e == "bigint";
|
|
8088
8089
|
}
|
|
8089
|
-
s(
|
|
8090
|
-
const
|
|
8091
|
-
return
|
|
8090
|
+
s(Pe, "j"), ae(W(un)), ae(W(un));
|
|
8091
|
+
const Ne = s((e) => Object.assign(ae(e), { startsWith: s((t) => {
|
|
8092
|
+
return Ne(Y(e, (r = t, W((n) => Le(n) && n.startsWith(r)))));
|
|
8092
8093
|
var r;
|
|
8093
8094
|
}, "startsWith"), endsWith: s((t) => {
|
|
8094
|
-
return
|
|
8095
|
+
return Ne(Y(e, (r = t, W((n) => Le(n) && n.endsWith(r)))));
|
|
8095
8096
|
var r;
|
|
8096
|
-
}, "endsWith"), minLength: s((t) =>
|
|
8097
|
-
return
|
|
8097
|
+
}, "endsWith"), minLength: s((t) => Ne(Y(e, ((r) => W((n) => Le(n) && n.length >= r))(t))), "minLength"), length: s((t) => Ne(Y(e, ((r) => W((n) => Le(n) && n.length === r))(t))), "length"), maxLength: s((t) => Ne(Y(e, ((r) => W((n) => Le(n) && n.length <= r))(t))), "maxLength"), includes: s((t) => {
|
|
8098
|
+
return Ne(Y(e, (r = t, W((n) => Le(n) && n.includes(r)))));
|
|
8098
8099
|
var r;
|
|
8099
8100
|
}, "includes"), regex: s((t) => {
|
|
8100
|
-
return
|
|
8101
|
+
return Ne(Y(e, (r = t, W((n) => Le(n) && !!n.match(r)))));
|
|
8101
8102
|
var r;
|
|
8102
8103
|
}, "regex") }), "x");
|
|
8103
|
-
|
|
8104
|
+
Ne(W(Le));
|
|
8104
8105
|
const Te = s((e) => Object.assign(ae(e), { between: s((t, r) => Te(Y(e, ((n, o) => W((i) => Re(i) && n <= i && o >= i))(t, r))), "between"), lt: s((t) => Te(Y(e, ((r) => W((n) => Re(n) && n < r))(t))), "lt"), gt: s((t) => Te(Y(e, ((r) => W((n) => Re(n) && n > r))(t))), "gt"), lte: s((t) => Te(Y(e, ((r) => W((n) => Re(n) && n <= r))(t))), "lte"), gte: s((t) => Te(Y(e, ((r) => W((n) => Re(n) && n >= r))(t))), "gte"), int: s(() => Te(Y(e, W((t) => Re(t) && Number.isInteger(t)))), "int"), finite: s(() => Te(Y(e, W((t) => Re(t) && Number.isFinite(t)))), "finite"), positive: s(() => Te(Y(e, W((t) => Re(t) && t > 0))), "positive"), negative: s(() => Te(Y(e, W((t) => Re(t) && t < 0))), "negative") }), "N");
|
|
8105
8106
|
Te(W(Re));
|
|
8106
|
-
const De = s((e) => Object.assign(ae(e), { between: s((t, r) => De(Y(e, ((n, o) => W((i) =>
|
|
8107
|
-
De(W(
|
|
8107
|
+
const De = s((e) => Object.assign(ae(e), { between: s((t, r) => De(Y(e, ((n, o) => W((i) => Pe(i) && n <= i && o >= i))(t, r))), "between"), lt: s((t) => De(Y(e, ((r) => W((n) => Pe(n) && n < r))(t))), "lt"), gt: s((t) => De(Y(e, ((r) => W((n) => Pe(n) && n > r))(t))), "gt"), lte: s((t) => De(Y(e, ((r) => W((n) => Pe(n) && n <= r))(t))), "lte"), gte: s((t) => De(Y(e, ((r) => W((n) => Pe(n) && n >= r))(t))), "gte"), positive: s(() => De(Y(e, W((t) => Pe(t) && t > 0))), "positive"), negative: s(() => De(Y(e, W((t) => Pe(t) && t < 0))), "negative") }), "k");
|
|
8108
|
+
De(W(Pe)), ae(W(function(e) {
|
|
8108
8109
|
return typeof e == "boolean";
|
|
8109
8110
|
})), ae(W(function(e) {
|
|
8110
8111
|
return typeof e == "symbol";
|
|
@@ -8327,7 +8328,7 @@ class vo {
|
|
|
8327
8328
|
return [...this.buffer];
|
|
8328
8329
|
}
|
|
8329
8330
|
}
|
|
8330
|
-
var
|
|
8331
|
+
var bo = { detect({ env: e }) {
|
|
8331
8332
|
return !!e.APPVEYOR;
|
|
8332
8333
|
}, configuration({ env: e }) {
|
|
8333
8334
|
const t = e.APPVEYOR_PULL_REQUEST_NUMBER, r = !!t;
|
|
@@ -8341,7 +8342,7 @@ function ot(e) {
|
|
|
8341
8342
|
return e ? /^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(e)[1] : void 0;
|
|
8342
8343
|
}
|
|
8343
8344
|
s(ot, "parseBranch");
|
|
8344
|
-
var
|
|
8345
|
+
var Co = { detect({ env: e }) {
|
|
8345
8346
|
return !!e.BUILD_BUILDURI;
|
|
8346
8347
|
}, configuration({ env: e }) {
|
|
8347
8348
|
const t = e.SYSTEM_PULLREQUEST_PULLREQUESTID, r = !!t;
|
|
@@ -8365,7 +8366,7 @@ var bo = { detect({ env: e }) {
|
|
|
8365
8366
|
const t = hn(e.BUDDY_EXECUTION_PULL_REQUEST_ID), r = !!t;
|
|
8366
8367
|
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 };
|
|
8367
8368
|
} }, ke = { exports: {} }, zt, dn;
|
|
8368
|
-
function
|
|
8369
|
+
function Po() {
|
|
8369
8370
|
if (dn) return zt;
|
|
8370
8371
|
dn = 1, zt = n, n.sync = o;
|
|
8371
8372
|
var e = ze;
|
|
@@ -8394,9 +8395,9 @@ function No() {
|
|
|
8394
8395
|
}
|
|
8395
8396
|
return s(o, "sync"), zt;
|
|
8396
8397
|
}
|
|
8397
|
-
s(
|
|
8398
|
+
s(Po, "requireWindows");
|
|
8398
8399
|
var Jt, pn;
|
|
8399
|
-
function
|
|
8400
|
+
function No() {
|
|
8400
8401
|
if (pn) return Jt;
|
|
8401
8402
|
pn = 1, Jt = t, t.sync = r;
|
|
8402
8403
|
var e = ze;
|
|
@@ -8415,18 +8416,18 @@ function Po() {
|
|
|
8415
8416
|
}
|
|
8416
8417
|
s(n, "checkStat");
|
|
8417
8418
|
function o(i, c) {
|
|
8418
|
-
var l = i.mode, h = i.uid, _ = i.gid, m = c.uid !== void 0 ? c.uid : process.getuid && process.getuid(), A = c.gid !== void 0 ? c.gid : process.getgid && process.getgid(),
|
|
8419
|
+
var l = i.mode, h = i.uid, _ = i.gid, m = c.uid !== void 0 ? c.uid : process.getuid && process.getuid(), A = c.gid !== void 0 ? c.gid : process.getgid && process.getgid(), b = parseInt("100", 8), O = parseInt("010", 8), x = parseInt("001", 8), M = b | O, y = l & x || l & O && _ === A || l & b && h === m || l & M && m === 0;
|
|
8419
8420
|
return y;
|
|
8420
8421
|
}
|
|
8421
8422
|
return s(o, "checkMode"), Jt;
|
|
8422
8423
|
}
|
|
8423
|
-
s(
|
|
8424
|
+
s(No, "requireMode");
|
|
8424
8425
|
var Qt, mn;
|
|
8425
8426
|
function Do() {
|
|
8426
8427
|
if (mn) return Qt;
|
|
8427
8428
|
mn = 1;
|
|
8428
8429
|
var e;
|
|
8429
|
-
process.platform === "win32" || Gi.TESTING_WINDOWS ? e =
|
|
8430
|
+
process.platform === "win32" || Gi.TESTING_WINDOWS ? e = Po() : e = No(), Qt = t, t.sync = r;
|
|
8430
8431
|
function t(n, o, i) {
|
|
8431
8432
|
if (typeof o == "function" && (i = o, o = {}), !i) {
|
|
8432
8433
|
if (typeof Promise != "function") throw new TypeError("callback not provided");
|
|
@@ -8457,33 +8458,33 @@ function Mo() {
|
|
|
8457
8458
|
if (En) return Xt;
|
|
8458
8459
|
En = 1;
|
|
8459
8460
|
const e = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", t = require$$0$1, r = e ? ";" : ":", n = Do(), o = s((h) => Object.assign(new Error(`not found: ${h}`), { code: "ENOENT" }), "getNotFoundError"), i = s((h, _) => {
|
|
8460
|
-
const m = _.colon || r, A = h.match(/\//) || e && h.match(/\\/) ? [""] : [...e ? [process.cwd()] : [], ...(_.path || process.env.PATH || "").split(m)],
|
|
8461
|
-
return e && h.indexOf(".") !== -1 && O[0] !== "" && O.unshift(""), { pathEnv: A, pathExt: O, pathExtExe:
|
|
8461
|
+
const m = _.colon || r, A = h.match(/\//) || e && h.match(/\\/) ? [""] : [...e ? [process.cwd()] : [], ...(_.path || process.env.PATH || "").split(m)], b = e ? _.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", O = e ? b.split(m) : [""];
|
|
8462
|
+
return e && h.indexOf(".") !== -1 && O[0] !== "" && O.unshift(""), { pathEnv: A, pathExt: O, pathExtExe: b };
|
|
8462
8463
|
}, "getPathInfo"), c = s((h, _, m) => {
|
|
8463
8464
|
typeof _ == "function" && (m = _, _ = {}), _ || (_ = {});
|
|
8464
|
-
const { pathEnv: A, pathExt:
|
|
8465
|
-
if (
|
|
8466
|
-
const L = A[
|
|
8467
|
-
w(y(k,
|
|
8468
|
-
}), "step"), y = s((
|
|
8469
|
-
if (B ===
|
|
8470
|
-
const G =
|
|
8471
|
-
n(
|
|
8472
|
-
if (!k && a) if (_.all) x.push(
|
|
8473
|
-
else return L(
|
|
8474
|
-
return L(y(
|
|
8465
|
+
const { pathEnv: A, pathExt: b, pathExtExe: O } = i(h, _), x = [], M = s((C) => new Promise((w, B) => {
|
|
8466
|
+
if (C === A.length) return _.all && x.length ? w(x) : B(o(h));
|
|
8467
|
+
const L = A[C], U = /^".*"$/.test(L) ? L.slice(1, -1) : L, G = t.join(U, h), k = !U && /^\.[\\\/]/.test(h) ? h.slice(0, 2) + G : G;
|
|
8468
|
+
w(y(k, C, 0));
|
|
8469
|
+
}), "step"), y = s((C, w, B) => new Promise((L, U) => {
|
|
8470
|
+
if (B === b.length) return L(M(w + 1));
|
|
8471
|
+
const G = b[B];
|
|
8472
|
+
n(C + G, { pathExt: O }, (k, a) => {
|
|
8473
|
+
if (!k && a) if (_.all) x.push(C + G);
|
|
8474
|
+
else return L(C + G);
|
|
8475
|
+
return L(y(C, w, B + 1));
|
|
8475
8476
|
});
|
|
8476
8477
|
}), "subStep");
|
|
8477
|
-
return m ? M(0).then((
|
|
8478
|
+
return m ? M(0).then((C) => m(null, C), m) : M(0);
|
|
8478
8479
|
}, "which"), l = s((h, _) => {
|
|
8479
8480
|
_ = _ || {};
|
|
8480
|
-
const { pathEnv: m, pathExt: A, pathExtExe:
|
|
8481
|
+
const { pathEnv: m, pathExt: A, pathExtExe: b } = i(h, _), O = [];
|
|
8481
8482
|
for (let x = 0; x < m.length; x++) {
|
|
8482
|
-
const M = m[x], y = /^".*"$/.test(M) ? M.slice(1, -1) : M,
|
|
8483
|
+
const M = m[x], y = /^".*"$/.test(M) ? M.slice(1, -1) : M, C = t.join(y, h), w = !y && /^\.[\\\/]/.test(h) ? h.slice(0, 2) + C : C;
|
|
8483
8484
|
for (let B = 0; B < A.length; B++) {
|
|
8484
8485
|
const L = w + A[B];
|
|
8485
8486
|
try {
|
|
8486
|
-
if (n.sync(L, { pathExt:
|
|
8487
|
+
if (n.sync(L, { pathExt: b })) if (_.all) O.push(L);
|
|
8487
8488
|
else return L;
|
|
8488
8489
|
} catch {
|
|
8489
8490
|
}
|
|
@@ -8597,8 +8598,8 @@ function jo() {
|
|
|
8597
8598
|
s(l, "detectShebang");
|
|
8598
8599
|
function h(m) {
|
|
8599
8600
|
if (!o) return m;
|
|
8600
|
-
const A = l(m),
|
|
8601
|
-
if (m.options.forceShell ||
|
|
8601
|
+
const A = l(m), b = !i.test(A);
|
|
8602
|
+
if (m.options.forceShell || b) {
|
|
8602
8603
|
const O = c.test(A);
|
|
8603
8604
|
m.command = e.normalize(m.command), m.command = r.command(m.command), m.args = m.args.map((M) => r.argument(M, O));
|
|
8604
8605
|
const x = [m.command].concat(m.args).join(" ");
|
|
@@ -8607,10 +8608,10 @@ function jo() {
|
|
|
8607
8608
|
return m;
|
|
8608
8609
|
}
|
|
8609
8610
|
s(h, "parseNonShell");
|
|
8610
|
-
function _(m, A,
|
|
8611
|
-
A && !Array.isArray(A) && (
|
|
8612
|
-
const O = { command: m, args: A, options:
|
|
8613
|
-
return
|
|
8611
|
+
function _(m, A, b) {
|
|
8612
|
+
A && !Array.isArray(A) && (b = A, A = null), A = A ? A.slice(0) : [], b = Object.assign({}, b);
|
|
8613
|
+
const O = { command: m, args: A, options: b, file: void 0, original: { command: m, args: A } };
|
|
8614
|
+
return b.shell ? O : h(O);
|
|
8614
8615
|
}
|
|
8615
8616
|
return s(_, "parse"), nr = _, nr;
|
|
8616
8617
|
}
|
|
@@ -8689,9 +8690,9 @@ const zo = s(({ cwd: e = y.cwd(), path: t = y.env[vn()], preferLocal: r = true,
|
|
|
8689
8690
|
const r = vn({ env: e });
|
|
8690
8691
|
return t.path = e[r], e[r] = zo(t), e;
|
|
8691
8692
|
}, "npmRunPathEnv"), Zo = s(() => {
|
|
8692
|
-
const e =
|
|
8693
|
+
const e = Cn - bn + 1;
|
|
8693
8694
|
return Array.from({ length: e }, es);
|
|
8694
|
-
}, "getRealtimeSignals"), es = s((e, t) => ({ name: `SIGRT${t + 1}`, number:
|
|
8695
|
+
}, "getRealtimeSignals"), es = s((e, t) => ({ name: `SIGRT${t + 1}`, number: bn + t, action: "terminate", description: "Application-specific signal (realtime)", standard: "posix" }), "getRealtimeSignal"), bn = 34, Cn = 64, ts = [{ 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" }], Un = s(() => {
|
|
8695
8696
|
const e = Zo();
|
|
8696
8697
|
return [...ts, ...e].map(rs);
|
|
8697
8698
|
}, "getSignals"), rs = s(({ name: e, number: t, description: r, action: n, forced: o = false, standard: i }) => {
|
|
@@ -8701,7 +8702,7 @@ const zo = s(({ cwd: e = y.cwd(), path: t = y.env[vn()], preferLocal: r = true,
|
|
|
8701
8702
|
const e = Un();
|
|
8702
8703
|
return Object.fromEntries(e.map(is));
|
|
8703
8704
|
}, "getSignalsByName"), is = s(({ name: e, number: t, description: r, supported: n, action: o, forced: i, standard: c }) => [e, { name: e, number: t, description: r, supported: n, action: o, forced: i, standard: c }], "getSignalByName"), os = ns(), ss = s(() => {
|
|
8704
|
-
const e = Un(), t =
|
|
8705
|
+
const e = Un(), t = Cn + 1, r = Array.from({ length: t }, (n, o) => as(o, e));
|
|
8705
8706
|
return Object.assign({}, ...r);
|
|
8706
8707
|
}, "getSignalsByNumber"), as = s((e, t) => {
|
|
8707
8708
|
const r = cs(e, t);
|
|
@@ -8713,12 +8714,12 @@ const zo = s(({ cwd: e = y.cwd(), path: t = y.env[vn()], preferLocal: r = true,
|
|
|
8713
8714
|
return r !== void 0 ? r : t.find((n) => n.number === e);
|
|
8714
8715
|
}, "findSignalByNumber");
|
|
8715
8716
|
ss();
|
|
8716
|
-
const us = s(({ timedOut: e, timeout: t, errorCode: r, signal: n, signalDescription: o, exitCode: i, isCanceled: c }) => e ? `timed out after ${t} milliseconds` : r !== void 0 ? `failed with ${r}` : n !== void 0 ? `was killed with ${n} (${o})` : i !== void 0 ? `failed with exit code ${i}` : "failed", "getErrorPrefix"), Bn = s(({ stdout: e, stderr: t, all: r, error: n, signal: o, exitCode: i, command: c, escapedCommand: l, timedOut: h, isCanceled: _, killed: m, parsed: { options: { timeout: A, cwd:
|
|
8717
|
+
const us = s(({ timedOut: e, timeout: t, errorCode: r, signal: n, signalDescription: o, exitCode: i, isCanceled: c }) => e ? `timed out after ${t} milliseconds` : r !== void 0 ? `failed with ${r}` : n !== void 0 ? `was killed with ${n} (${o})` : i !== void 0 ? `failed with exit code ${i}` : "failed", "getErrorPrefix"), Bn = s(({ stdout: e, stderr: t, all: r, error: n, signal: o, exitCode: i, command: c, escapedCommand: l, timedOut: h, isCanceled: _, killed: m, parsed: { options: { timeout: A, cwd: b = y.cwd() } } }) => {
|
|
8717
8718
|
i = i === null ? void 0 : i, o = o === null ? void 0 : o;
|
|
8718
|
-
const O = o === void 0 ? void 0 : os[o].description, x = n && n.code, y = `Command ${us({ timedOut: h, timeout: A, errorCode: x, signal: o, signalDescription: O, exitCode: i, isCanceled: _ })}: ${c}`,
|
|
8719
|
+
const O = o === void 0 ? void 0 : os[o].description, x = n && n.code, y = `Command ${us({ timedOut: h, timeout: A, errorCode: x, signal: o, signalDescription: O, exitCode: i, isCanceled: _ })}: ${c}`, C = Object.prototype.toString.call(n) === "[object Error]", w = C ? `${y}
|
|
8719
8720
|
${n.message}` : y, B = [w, t, e].filter(Boolean).join(`
|
|
8720
8721
|
`);
|
|
8721
|
-
return
|
|
8722
|
+
return C ? (n.originalMessage = n.message, n.message = B) : n = new Error(B), n.shortMessage = w, n.command = c, n.escapedCommand = l, n.exitCode = i, n.signal = o, n.signalDescription = O, n.stdout = e, n.stderr = t, n.cwd = b, r !== void 0 && (n.all = r), "bufferedData" in n && delete n.bufferedData, n.failed = true, n.timedOut = !!h, n.isCanceled = _, n.killed = m && !h, n;
|
|
8722
8723
|
}, "makeError"), Tt = ["stdin", "stdout", "stderr"], ls = s((e) => Tt.some((t) => e[t] !== void 0), "hasAlias"), fs = s((e) => {
|
|
8723
8724
|
if (!e) return;
|
|
8724
8725
|
const { stdio: t } = e;
|
|
@@ -8887,19 +8888,19 @@ const Is = s((e) => {
|
|
|
8887
8888
|
}, "handleInputSync"), Ts = (async () => {
|
|
8888
8889
|
})().constructor.prototype;
|
|
8889
8890
|
["then", "catch", "finally"].map((e) => [e, Reflect.getOwnPropertyDescriptor(Ts, e)]);
|
|
8890
|
-
const
|
|
8891
|
+
const Pn = s((e, t = []) => Array.isArray(t) ? [e, ...t] : [e], "normalizeArgs"), ws = /^[\w.-]+$/, ys = s((e) => typeof e != "string" || ws.test(e) ? e : `"${e.replaceAll('"', '\\"')}"`, "escapeArg"), As = s((e, t) => Pn(e, t).join(" "), "joinCommand"), vs = s((e, t) => Pn(e, t).map((r) => ys(r)).join(" "), "getEscapedCommand"), bs = debuglog("execa").enabled, yt = s((e, t) => String(e).padStart(t, "0"), "padField"), Cs = s(() => {
|
|
8891
8892
|
const e = /* @__PURE__ */ new Date();
|
|
8892
8893
|
return `${yt(e.getHours(), 2)}:${yt(e.getMinutes(), 2)}:${yt(e.getSeconds(), 2)}.${yt(e.getMilliseconds(), 3)}`;
|
|
8893
8894
|
}, "getTimestamp"), Us = s((e, { verbose: t }) => {
|
|
8894
|
-
t && y.stderr.write(`[${
|
|
8895
|
+
t && y.stderr.write(`[${Cs()}] ${e}
|
|
8895
8896
|
`);
|
|
8896
8897
|
}, "logCommand"), Bs = 1e3 * 1e3 * 100, Os = s(({ env: e, extendEnv: t, preferLocal: r, localDir: n, execPath: o }) => {
|
|
8897
8898
|
const i = t ? { ...y.env, ...e } : e;
|
|
8898
8899
|
return r ? Xo({ env: i, cwd: n, execPath: o }) : i;
|
|
8899
8900
|
}, "getEnv"), Ls = s((e, t, r = {}) => {
|
|
8900
8901
|
const n = Vo._parse(e, t, r);
|
|
8901
|
-
return e = n.command, t = n.args, r = n.options, r = { maxBuffer: Bs, 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:
|
|
8902
|
-
}, "handleArguments"),
|
|
8902
|
+
return e = n.command, t = n.args, r = n.options, r = { maxBuffer: Bs, 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 = Os(r), r.stdio = fs(r), y.platform === "win32" && path.basename(e, ".exe") === "cmd" && t.unshift("/q"), { file: e, args: t, options: r, parsed: n };
|
|
8903
|
+
}, "handleArguments"), Nn = s((e, t, r) => typeof t != "string" && !Buffer$1.isBuffer(t) ? r === void 0 ? void 0 : "" : e.stripFinalNewline ? Yo(t) : t, "handleOutput");
|
|
8903
8904
|
function ur(e, t, r) {
|
|
8904
8905
|
const n = Ls(e, t, r), o = As(e, t), i = vs(e, t);
|
|
8905
8906
|
Us(i, n.options);
|
|
@@ -8910,7 +8911,7 @@ function ur(e, t, r) {
|
|
|
8910
8911
|
} catch (m) {
|
|
8911
8912
|
throw Bn({ error: m, stdout: "", stderr: "", all: "", command: o, escapedCommand: i, parsed: n, timedOut: false, isCanceled: false, killed: false });
|
|
8912
8913
|
}
|
|
8913
|
-
const h =
|
|
8914
|
+
const h = Nn(n.options, l.stdout, l.error), _ = Nn(n.options, l.stderr, l.error);
|
|
8914
8915
|
if (l.error || l.status !== 0 || l.signal !== null) {
|
|
8915
8916
|
const m = Bn({ stdout: h, stderr: _, error: l.error, signal: l.signal, exitCode: l.status, command: o, escapedCommand: i, parsed: n, timedOut: l.error && l.error.code === "ETIMEDOUT", isCanceled: false, killed: l.signal !== null });
|
|
8916
8917
|
if (!n.options.reject) return m;
|
|
@@ -8940,23 +8941,23 @@ function lr(e) {
|
|
|
8940
8941
|
}
|
|
8941
8942
|
}
|
|
8942
8943
|
s(lr, "branch");
|
|
8943
|
-
const Dn = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/,
|
|
8944
|
-
function
|
|
8944
|
+
const Dn = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/, Ps = /^\/(.*)\.git$/;
|
|
8945
|
+
function Ns(e) {
|
|
8945
8946
|
if (e) {
|
|
8946
8947
|
if (e.match(Dn)) return e.replace(Dn, "$1");
|
|
8947
8948
|
try {
|
|
8948
|
-
return new URL(e).pathname.replace(
|
|
8949
|
+
return new URL(e).pathname.replace(Ps, "$1");
|
|
8949
8950
|
} catch {
|
|
8950
8951
|
return;
|
|
8951
8952
|
}
|
|
8952
8953
|
}
|
|
8953
8954
|
}
|
|
8954
|
-
s(
|
|
8955
|
+
s(Ns, "getSlugFromGitURL");
|
|
8955
8956
|
var Ds = { detect({ env: e }) {
|
|
8956
8957
|
return !!e.BUILDKITE;
|
|
8957
8958
|
}, configuration({ env: e }) {
|
|
8958
8959
|
const t = e.BUILDKITE_PULL_REQUEST === "false" ? void 0 : e.BUILDKITE_PULL_REQUEST, r = !!t;
|
|
8959
|
-
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:
|
|
8960
|
+
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: Ns(e.BUILDKITE_REPO), pr: t, isPr: r, prBranch: r ? e.BUILDKITE_BRANCH : void 0, root: e.BUILDKITE_BUILD_CHECKOUT_PATH };
|
|
8960
8961
|
} }, Ms = { detect({ env: e }) {
|
|
8961
8962
|
return !!e.CIRCLECI;
|
|
8962
8963
|
}, configuration({ env: e }) {
|
|
@@ -9209,7 +9210,7 @@ var sa = { detect({ env: e }) {
|
|
|
9209
9210
|
const t = e.JB_SPACE_PROJECT_KEY, r = e.JB_SPACE_GIT_REPOSITORY_NAME;
|
|
9210
9211
|
return { name: "JetBrains Space", service: "jetbrainsSpace", commit: e.JB_SPACE_GIT_REVISION, build: e.JB_SPACE_EXECUTION_NUMBER, branch: ot(e.JB_SPACE_GIT_BRANCH), slug: t && r ? `${t.toLowerCase()}/${r}` : void 0 };
|
|
9211
9212
|
} };
|
|
9212
|
-
const hr = { appveyor:
|
|
9213
|
+
const hr = { appveyor: bo, azurePipelines: Co, bamboo: Uo, bitbucket: Bo, bitrise: Oo, buddy: Lo, buildkite: Ds, circleci: Ms, cirrus: xs, cloudflarePages: Gs, codebuild: $s, codefresh: ks, codeship: Hs, drone: Fs, github: Ks, gitlab: Vs, jenkins: Ys, netlify: zs, puppet: Js, sail: Qs, screwdriver: Xs, scrutinizer: Zs, semaphore: ea, shippable: ta, teamcity: sa, travis: aa, vela: ca, vercel: ua, wercker: la, woodpecker: fa, jetbrainsSpace: ha };
|
|
9213
9214
|
var da = s(({ env: e = process.env, cwd: t = process.cwd() } = {}) => {
|
|
9214
9215
|
for (const r of Object.keys(hr)) if (hr[r].detect({ env: e, cwd: t })) return { isCi: true, ...hr[r].configuration({ env: e, cwd: t }) };
|
|
9215
9216
|
return { isCi: !!e.CI, ...js.configuration({ env: e, cwd: t }) };
|
|
@@ -9449,11 +9450,11 @@ async function Aa({ fileData: e, maxRetries: t = 3, uploadUrl: r }) {
|
|
|
9449
9450
|
}, { minTimeout: 2e3, randomize: true, retries: t });
|
|
9450
9451
|
}
|
|
9451
9452
|
s(Aa, "uploadWithRetry");
|
|
9452
|
-
const va = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", Fn = 120 * 1e3,
|
|
9453
|
+
const va = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", Fn = 120 * 1e3, ba = s(({ notificationConfigs: e, suite: t }) => {
|
|
9453
9454
|
if (!e || e.length === 0) return;
|
|
9454
9455
|
const r = new Set(t.allTests().map((o) => o.parent.project()?.name).filter(Boolean)), n = e.filter((o) => r.has(o.projectName));
|
|
9455
9456
|
return n.length > 0 ? n : void 0;
|
|
9456
|
-
}, "filterNotificationConfigsByRunningProjects"),
|
|
9457
|
+
}, "filterNotificationConfigsByRunningProjects"), Ca = s((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"), Ua = s(({ absolutePath: e, rootDir: t }) => {
|
|
9457
9458
|
if (t && e.startsWith(t)) {
|
|
9458
9459
|
const r = e.slice(t.length);
|
|
9459
9460
|
return r.startsWith("/") ? r.slice(1) : r;
|
|
@@ -9493,7 +9494,7 @@ class jn {
|
|
|
9493
9494
|
onBegin(t, r) {
|
|
9494
9495
|
if (this.isListMode = process.argv.includes("--list"), this.isListMode) return;
|
|
9495
9496
|
r.allTests().length === 0 && process.exit(1), this.config = t, this.testSuiteRunId = this.getSuiteRunId(t), this.rootDir = t.rootDir, this.suiteData = this.extractSuiteInfo(t, r);
|
|
9496
|
-
const o =
|
|
9497
|
+
const o = ba({ notificationConfigs: this.notificationConfigs, suite: r });
|
|
9497
9498
|
this.filteredNotificationConfigs = o, this.pendingOperations.push(this.wsClient.sendEvent({ payload: { ...this.suiteData, notificationRequest: o ? { notificationConfigs: o, totalShards: this.config?.shard?.total } : void 0, status: "running" }, type: "suite_start" }));
|
|
9498
9499
|
}
|
|
9499
9500
|
getSuiteRunId(t) {
|
|
@@ -9550,18 +9551,18 @@ class jn {
|
|
|
9550
9551
|
i.message(`${h}/${m} uploads finished${_ > 0 ? `, ${_} errors` : ""}`);
|
|
9551
9552
|
})), i.stop("All file uploads finished"), this.wsClient.close();
|
|
9552
9553
|
const c = this.createdSuiteRun?.name || this.suiteData?.title || "Test Suite", l = t.status === "failed" || t.status === "timedout";
|
|
9553
|
-
Se$1(
|
|
9554
|
-
\u{1F4CA} View results: ${
|
|
9554
|
+
Se$1(Ce.cyan(`\u2728 Suite "${Ce.bold(c)}" run complete!${this.createdSuiteRun ? `
|
|
9555
|
+
\u{1F4CA} View results: ${Ce.bold(Ce.underline(this.createdSuiteRun.url))}` : ""}${l ? `
|
|
9555
9556
|
|
|
9556
9557
|
\u{1F527} To auto-heal failed tests, run:
|
|
9557
|
-
${
|
|
9558
|
+
${Ce.bold(Ce.underline(`stably fix ${this.testSuiteRunId}`))}` : ""}`));
|
|
9558
9559
|
}
|
|
9559
9560
|
scrubSensitiveString(t) {
|
|
9560
9561
|
return !t || !this.sensitiveValues?.length ? t : oe({ sensitiveValues: this.sensitiveValues, str: t });
|
|
9561
9562
|
}
|
|
9562
9563
|
extractSuiteInfo(t, r) {
|
|
9563
9564
|
const n = pa(), o = _a(), i = /* @__PURE__ */ new Date();
|
|
9564
|
-
return { id: ut(), projectSettings:
|
|
9565
|
+
return { id: ut(), projectSettings: Ca(t), startedAt: i, suiteId: this.testSuiteRunId, title: r.title || "Playwright Test Suite", createdAt: i, 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: o, updatedAt: i };
|
|
9565
9566
|
}
|
|
9566
9567
|
extractTestCaseInfo(t, r) {
|
|
9567
9568
|
const n = Ua({ absolutePath: t.location.file, rootDir: this.rootDir }), o = t.parent.project(), i = o?.name, c = o?.use?.defaultBrowserType;
|
|
@@ -9584,7 +9585,7 @@ class jn {
|
|
|
9584
9585
|
return o;
|
|
9585
9586
|
}
|
|
9586
9587
|
handleWebSocketError(t) {
|
|
9587
|
-
t.code === fn.AUTHENTICATION_FAILED && (console.error(
|
|
9588
|
+
t.code === fn.AUTHENTICATION_FAILED && (console.error(Ce.bold(Ce.red("[StablyAI reporter] Could not authenticate with the server. Either the API Key or Project ID is invalid. These can be provided via stablyReporter({ apiKey, projectId }) in playwright.config.ts or environment variables (STABLY_API_KEY, STABLY_PROJECT_ID). You can find your API key and Project ID at https://app.stably.ai/settings?tab=api-key"))), process.exit(1)), console.error("[StablyAI reporter] Could not connect to the server. Please check your internet connection and try again."), process.exit(1);
|
|
9588
9589
|
}
|
|
9589
9590
|
handleWebSocketMessage(t) {
|
|
9590
9591
|
if (t.type === "suite_created") this.createdSuiteRun = { id: t.id, name: t.name, url: t.url };
|
|
@@ -9615,4 +9616,4 @@ function Ba(e) {
|
|
|
9615
9616
|
s(Ba, "stablyReporter");
|
|
9616
9617
|
|
|
9617
9618
|
export { Ba as B, jn as j };
|
|
9618
|
-
//# sourceMappingURL=index-
|
|
9619
|
+
//# sourceMappingURL=index-q6hgdCVS.mjs.map
|