@stablyai/playwright-test 2.1.11 → 2.1.12
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-Li4YhdtX.cjs → index-EhzPL0ML.cjs} +445 -445
- package/dist/index-EhzPL0ML.cjs.map +1 -0
- package/dist/{index-B5Tfm-dD.mjs → index-cF7EDVHb.mjs} +445 -445
- package/dist/index-cF7EDVHb.mjs.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.d-Cbdkyfd5.d.cts.map +1 -1
- package/dist/index.d-Cbdkyfd5.d.mts.map +1 -1
- package/dist/index.d-Cbdkyfd5.d.ts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/reporter.cjs +1 -1
- package/dist/reporter.mjs +1 -1
- package/package.json +3 -3
- package/dist/index-B5Tfm-dD.mjs.map +0 -1
- package/dist/index-Li4YhdtX.cjs.map +0 -1
|
@@ -13,7 +13,7 @@ import require$$0 from 'stream';
|
|
|
13
13
|
import { debuglog, TextDecoder as TextDecoder$1, TextEncoder as TextEncoder$1 } from 'node:util';
|
|
14
14
|
import * as g from 'node:readline';
|
|
15
15
|
import 'node:stream';
|
|
16
|
-
import
|
|
16
|
+
import Ee from 'os';
|
|
17
17
|
import require$$7, { fileURLToPath as fileURLToPath$1 } from 'url';
|
|
18
18
|
import kn from 'util';
|
|
19
19
|
import require$$0$4 from 'events';
|
|
@@ -6713,9 +6713,9 @@ var Wn = /*@__PURE__*/getDefaultExportFromCjs(pRetryExports);
|
|
|
6713
6713
|
|
|
6714
6714
|
var Un = Object.defineProperty;
|
|
6715
6715
|
var c = (t, e) => Un(t, "name", { value: e, configurable: true });
|
|
6716
|
-
const re = BigInt(2 ** 32 - 1),
|
|
6716
|
+
const re = BigInt(2 ** 32 - 1), pr = BigInt(32);
|
|
6717
6717
|
function Yn(t, e = false) {
|
|
6718
|
-
return e ? { h: Number(t & re), l: Number(t >>
|
|
6718
|
+
return e ? { h: Number(t & re), l: Number(t >> pr & re) } : { h: Number(t >> pr & re) | 0, l: Number(t & re) | 0 };
|
|
6719
6719
|
}
|
|
6720
6720
|
c(Yn, "fromBig");
|
|
6721
6721
|
function Jn(t, e = false) {
|
|
@@ -6734,14 +6734,14 @@ function ti(t) {
|
|
|
6734
6734
|
return t instanceof Uint8Array || ArrayBuffer.isView(t) && t.constructor.name === "Uint8Array";
|
|
6735
6735
|
}
|
|
6736
6736
|
c(ti, "isBytes");
|
|
6737
|
-
function
|
|
6737
|
+
function mr(t, e = "") {
|
|
6738
6738
|
if (!Number.isSafeInteger(t) || t < 0) {
|
|
6739
6739
|
const r = e && `"${e}" `;
|
|
6740
6740
|
throw new Error(`${r}expected integer >= 0, got ${t}`);
|
|
6741
6741
|
}
|
|
6742
6742
|
}
|
|
6743
|
-
c(
|
|
6744
|
-
function
|
|
6743
|
+
c(mr, "anumber");
|
|
6744
|
+
function Ie(t, e, r = "") {
|
|
6745
6745
|
const n = ti(t), i = t?.length;
|
|
6746
6746
|
if (!n || e !== void 0) {
|
|
6747
6747
|
const a = r && `"${r}" `, l = "", h = n ? `length=${i}` : `type=${typeof t}`;
|
|
@@ -6749,14 +6749,14 @@ function _e(t, e, r = "") {
|
|
|
6749
6749
|
}
|
|
6750
6750
|
return t;
|
|
6751
6751
|
}
|
|
6752
|
-
c(
|
|
6753
|
-
function
|
|
6752
|
+
c(Ie, "abytes");
|
|
6753
|
+
function gr(t, e = true) {
|
|
6754
6754
|
if (t.destroyed) throw new Error("Hash instance has been destroyed");
|
|
6755
6755
|
if (e && t.finished) throw new Error("Hash#digest() has already been called");
|
|
6756
6756
|
}
|
|
6757
|
-
c(
|
|
6757
|
+
c(gr, "aexists");
|
|
6758
6758
|
function ei(t, e) {
|
|
6759
|
-
|
|
6759
|
+
Ie(t, void 0, "digestInto() output");
|
|
6760
6760
|
const r = e.outputLen;
|
|
6761
6761
|
if (t.length < r) throw new Error('"digestInto() output" expected to be of length >=' + r);
|
|
6762
6762
|
}
|
|
@@ -6765,10 +6765,10 @@ function ri(t) {
|
|
|
6765
6765
|
return new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4));
|
|
6766
6766
|
}
|
|
6767
6767
|
c(ri, "u32");
|
|
6768
|
-
function
|
|
6768
|
+
function Er(...t) {
|
|
6769
6769
|
for (let e = 0; e < t.length; e++) t[e].fill(0);
|
|
6770
6770
|
}
|
|
6771
|
-
c(
|
|
6771
|
+
c(Er, "clean");
|
|
6772
6772
|
const ni = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
6773
6773
|
function ii(t) {
|
|
6774
6774
|
return t << 24 & 4278190080 | t << 8 & 16711680 | t >>> 8 & 65280 | t >>> 24 & 255;
|
|
@@ -6779,31 +6779,31 @@ function si(t) {
|
|
|
6779
6779
|
return t;
|
|
6780
6780
|
}
|
|
6781
6781
|
c(si, "byteSwap32");
|
|
6782
|
-
const
|
|
6782
|
+
const _r = ni ? (t) => t : si;
|
|
6783
6783
|
function oi(t, e = {}) {
|
|
6784
6784
|
const r = c((i, s) => t(s).update(i).digest(), "hashC"), n = t(void 0);
|
|
6785
6785
|
return r.outputLen = n.outputLen, r.blockLen = n.blockLen, r.create = (i) => t(i), Object.assign(r, e), Object.freeze(r);
|
|
6786
6786
|
}
|
|
6787
6787
|
c(oi, "createHasher");
|
|
6788
|
-
const ai = c((t) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, t]) }), "oidNist"), ci = BigInt(0), Wt = BigInt(1), ui = BigInt(2), li = BigInt(7), fi = BigInt(256), hi = BigInt(113),
|
|
6788
|
+
const ai = c((t) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, t]) }), "oidNist"), ci = BigInt(0), Wt = BigInt(1), ui = BigInt(2), li = BigInt(7), fi = BigInt(256), hi = BigInt(113), Ir = [], Sr = [], Rr = [];
|
|
6789
6789
|
for (let t = 0, e = Wt, r = 1, n = 0; t < 24; t++) {
|
|
6790
|
-
[r, n] = [n, (2 * r + 3 * n) % 5],
|
|
6790
|
+
[r, n] = [n, (2 * r + 3 * n) % 5], Ir.push(2 * (5 * n + r)), Sr.push((t + 1) * (t + 2) / 2 % 64);
|
|
6791
6791
|
let i = ci;
|
|
6792
6792
|
for (let s = 0; s < 7; s++) e = (e << Wt ^ (e >> li) * hi) % fi, e & ui && (i ^= Wt << (Wt << BigInt(s)) - Wt);
|
|
6793
|
-
|
|
6793
|
+
Rr.push(i);
|
|
6794
6794
|
}
|
|
6795
|
-
const
|
|
6795
|
+
const Tr = Jn(Rr, true), di = Tr[0], pi = Tr[1], wr = c((t, e, r) => r > 32 ? Xn(t, e, r) : Qn(t, e, r), "rotlH"), Ar = c((t, e, r) => r > 32 ? Zn(t, e, r) : zn(t, e, r), "rotlL");
|
|
6796
6796
|
function mi(t, e = 24) {
|
|
6797
6797
|
const r = new Uint32Array(10);
|
|
6798
6798
|
for (let n = 24 - e; n < 24; n++) {
|
|
6799
6799
|
for (let a = 0; a < 10; a++) r[a] = t[a] ^ t[a + 10] ^ t[a + 20] ^ t[a + 30] ^ t[a + 40];
|
|
6800
6800
|
for (let a = 0; a < 10; a += 2) {
|
|
6801
|
-
const l = (a + 8) % 10, h = (a + 2) % 10, d = r[h], g = r[h + 1],
|
|
6802
|
-
for (let v = 0; v < 50; v += 10) t[a + v] ^=
|
|
6801
|
+
const l = (a + 8) % 10, h = (a + 2) % 10, d = r[h], g = r[h + 1], w = wr(d, g, 1) ^ r[l], C = Ar(d, g, 1) ^ r[l + 1];
|
|
6802
|
+
for (let v = 0; v < 50; v += 10) t[a + v] ^= w, t[a + v + 1] ^= C;
|
|
6803
6803
|
}
|
|
6804
6804
|
let i = t[2], s = t[3];
|
|
6805
6805
|
for (let a = 0; a < 24; a++) {
|
|
6806
|
-
const l =
|
|
6806
|
+
const l = Sr[a], h = wr(i, s, l), d = Ar(i, s, l), g = Ir[a];
|
|
6807
6807
|
i = t[g], s = t[g + 1], t[g] = h, t[g + 1] = d;
|
|
6808
6808
|
}
|
|
6809
6809
|
for (let a = 0; a < 50; a += 10) {
|
|
@@ -6812,10 +6812,10 @@ function mi(t, e = 24) {
|
|
|
6812
6812
|
}
|
|
6813
6813
|
t[0] ^= di[n], t[1] ^= pi[n];
|
|
6814
6814
|
}
|
|
6815
|
-
|
|
6815
|
+
Er(r);
|
|
6816
6816
|
}
|
|
6817
6817
|
c(mi, "keccakP");
|
|
6818
|
-
class
|
|
6818
|
+
class or {
|
|
6819
6819
|
static {
|
|
6820
6820
|
c(this, "Keccak");
|
|
6821
6821
|
}
|
|
@@ -6831,17 +6831,17 @@ class sr {
|
|
|
6831
6831
|
enableXOF = false;
|
|
6832
6832
|
rounds;
|
|
6833
6833
|
constructor(e, r, n, i = false, s = 24) {
|
|
6834
|
-
if (this.blockLen = e, this.suffix = r, this.outputLen = n, this.enableXOF = i, this.rounds = s,
|
|
6834
|
+
if (this.blockLen = e, this.suffix = r, this.outputLen = n, this.enableXOF = i, this.rounds = s, mr(n, "outputLen"), !(0 < e && e < 200)) throw new Error("only keccak-f1600 function is supported");
|
|
6835
6835
|
this.state = new Uint8Array(200), this.state32 = ri(this.state);
|
|
6836
6836
|
}
|
|
6837
6837
|
clone() {
|
|
6838
6838
|
return this._cloneInto();
|
|
6839
6839
|
}
|
|
6840
6840
|
keccak() {
|
|
6841
|
-
|
|
6841
|
+
_r(this.state32), mi(this.state32, this.rounds), _r(this.state32), this.posOut = 0, this.pos = 0;
|
|
6842
6842
|
}
|
|
6843
6843
|
update(e) {
|
|
6844
|
-
|
|
6844
|
+
gr(this), Ie(e);
|
|
6845
6845
|
const { blockLen: r, state: n } = this, i = e.length;
|
|
6846
6846
|
for (let s = 0; s < i; ) {
|
|
6847
6847
|
const a = Math.min(r - this.pos, i - s);
|
|
@@ -6857,7 +6857,7 @@ class sr {
|
|
|
6857
6857
|
e[n] ^= r, (r & 128) !== 0 && n === i - 1 && this.keccak(), e[i - 1] ^= 128, this.keccak();
|
|
6858
6858
|
}
|
|
6859
6859
|
writeInto(e) {
|
|
6860
|
-
|
|
6860
|
+
gr(this, false), Ie(e), this.finish();
|
|
6861
6861
|
const r = this.state, { blockLen: n } = this;
|
|
6862
6862
|
for (let i = 0, s = e.length; i < s; ) {
|
|
6863
6863
|
this.posOut >= n && this.keccak();
|
|
@@ -6871,7 +6871,7 @@ class sr {
|
|
|
6871
6871
|
return this.writeInto(e);
|
|
6872
6872
|
}
|
|
6873
6873
|
xof(e) {
|
|
6874
|
-
return
|
|
6874
|
+
return mr(e), this.xofInto(new Uint8Array(e));
|
|
6875
6875
|
}
|
|
6876
6876
|
digestInto(e) {
|
|
6877
6877
|
if (ei(e, this), this.finished) throw new Error("digest() was already called");
|
|
@@ -6881,29 +6881,29 @@ class sr {
|
|
|
6881
6881
|
return this.digestInto(new Uint8Array(this.outputLen));
|
|
6882
6882
|
}
|
|
6883
6883
|
destroy() {
|
|
6884
|
-
this.destroyed = true,
|
|
6884
|
+
this.destroyed = true, Er(this.state);
|
|
6885
6885
|
}
|
|
6886
6886
|
_cloneInto(e) {
|
|
6887
6887
|
const { blockLen: r, suffix: n, outputLen: i, rounds: s, enableXOF: a } = this;
|
|
6888
|
-
return e ||= new
|
|
6888
|
+
return e ||= new or(r, n, i, a, s), e.state32.set(this.state32), e.pos = this.pos, e.posOut = this.posOut, e.finished = this.finished, e.rounds = s, e.suffix = n, e.outputLen = i, e.enableXOF = a, e.destroyed = this.destroyed, e;
|
|
6889
6889
|
}
|
|
6890
6890
|
}
|
|
6891
|
-
const gi = c((t, e, r, n = {}) => oi(() => new
|
|
6892
|
-
var _i = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,
|
|
6893
|
-
function
|
|
6894
|
-
var e, r, n, i =
|
|
6895
|
-
function
|
|
6891
|
+
const gi = c((t, e, r, n = {}) => oi(() => new or(e, t, r), n), "genKeccak"), Ei = gi(6, 72, 64, ai(10));
|
|
6892
|
+
var _i = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Se = Math.ceil, ut = Math.floor, st = "[BigNumber Error] ", yr = st + "Number primitive has more than 15 significant digits: ", pt = 1e14, G = 14, Re = 9007199254740991, Te = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], vt = 1e7, tt = 1e9;
|
|
6893
|
+
function br(t) {
|
|
6894
|
+
var e, r, n, i = A.prototype = { constructor: A, toString: null, valueOf: null }, s = new A(1), a = 20, l = 4, h = -7, d = 21, g = -1e7, w = 1e7, C = false, v = 1, M = 0, D = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: "\xA0", suffix: "" }, b = "0123456789abcdefghijklmnopqrstuvwxyz", P = true;
|
|
6895
|
+
function A(o, u) {
|
|
6896
6896
|
var f, _, m, I, T, p, E, S, R = this;
|
|
6897
|
-
if (!(R instanceof
|
|
6897
|
+
if (!(R instanceof A)) return new A(o, u);
|
|
6898
6898
|
if (u == null) {
|
|
6899
6899
|
if (o && o._isBigNumber === true) {
|
|
6900
|
-
R.s = o.s, !o.c || o.e >
|
|
6900
|
+
R.s = o.s, !o.c || o.e > w ? R.c = R.e = null : o.e < g ? R.c = [R.e = 0] : (R.e = o.e, R.c = o.c.slice());
|
|
6901
6901
|
return;
|
|
6902
6902
|
}
|
|
6903
6903
|
if ((p = typeof o == "number") && o * 0 == 0) {
|
|
6904
6904
|
if (R.s = 1 / o < 0 ? (o = -o, -1) : 1, o === ~~o) {
|
|
6905
6905
|
for (I = 0, T = o; T >= 10; T /= 10, I++) ;
|
|
6906
|
-
I >
|
|
6906
|
+
I > w ? R.c = R.e = null : (R.e = I, R.c = [o]);
|
|
6907
6907
|
return;
|
|
6908
6908
|
}
|
|
6909
6909
|
S = String(o);
|
|
@@ -6913,10 +6913,10 @@ function yr(t) {
|
|
|
6913
6913
|
}
|
|
6914
6914
|
(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);
|
|
6915
6915
|
} else {
|
|
6916
|
-
if (J(u, 2, b.length, "Base"), u == 10 && P) return R = new
|
|
6916
|
+
if (J(u, 2, b.length, "Base"), u == 10 && P) return R = new A(o), H(R, a + R.e + 1, l);
|
|
6917
6917
|
if (S = String(o), p = typeof o == "number") {
|
|
6918
6918
|
if (o * 0 != 0) return n(R, S, p, u);
|
|
6919
|
-
if (R.s = 1 / o < 0 ? (S = S.slice(1), -1) : 1,
|
|
6919
|
+
if (R.s = 1 / o < 0 ? (S = S.slice(1), -1) : 1, A.DEBUG && S.replace(/^0\.0*|\./, "").length > 15) throw Error(yr + o);
|
|
6920
6920
|
} else R.s = S.charCodeAt(0) === 45 ? (S = S.slice(1), -1) : 1;
|
|
6921
6921
|
for (f = b.slice(0, u), I = T = 0, E = S.length; T < E; T++) if (f.indexOf(_ = S.charAt(T)) < 0) {
|
|
6922
6922
|
if (_ == ".") {
|
|
@@ -6935,8 +6935,8 @@ function yr(t) {
|
|
|
6935
6935
|
for (T = 0; S.charCodeAt(T) === 48; T++) ;
|
|
6936
6936
|
for (E = S.length; S.charCodeAt(--E) === 48; ) ;
|
|
6937
6937
|
if (S = S.slice(T, ++E)) {
|
|
6938
|
-
if (E -= T, p &&
|
|
6939
|
-
if ((I = I - T - 1) >
|
|
6938
|
+
if (E -= T, p && A.DEBUG && E > 15 && (o > Re || o !== ut(o))) throw Error(yr + R.s * o);
|
|
6939
|
+
if ((I = I - T - 1) > w) R.c = R.e = null;
|
|
6940
6940
|
else if (I < g) R.c = [R.e = 0];
|
|
6941
6941
|
else {
|
|
6942
6942
|
if (R.e = I, R.c = [], T = (I + 1) % G, I < 0 && (T += G), T < E) {
|
|
@@ -6948,11 +6948,11 @@ function yr(t) {
|
|
|
6948
6948
|
}
|
|
6949
6949
|
} else R.c = [R.e = 0];
|
|
6950
6950
|
}
|
|
6951
|
-
c(
|
|
6951
|
+
c(A, "BigNumber2"), A.clone = br, A.ROUND_UP = 0, A.ROUND_DOWN = 1, A.ROUND_CEIL = 2, A.ROUND_FLOOR = 3, A.ROUND_HALF_UP = 4, A.ROUND_HALF_DOWN = 5, A.ROUND_HALF_EVEN = 6, A.ROUND_HALF_CEIL = 7, A.ROUND_HALF_FLOOR = 8, A.EUCLID = 9, A.config = A.set = function(o) {
|
|
6952
6952
|
var u, f;
|
|
6953
6953
|
if (o != null) if (typeof o == "object") {
|
|
6954
|
-
if (o.hasOwnProperty(u = "DECIMAL_PLACES") && (f = o[u], J(f, 0, tt, u), a = f), o.hasOwnProperty(u = "ROUNDING_MODE") && (f = o[u], J(f, 0, 8, u), l = f), o.hasOwnProperty(u = "EXPONENTIAL_AT") && (f = o[u], f && f.pop ? (J(f[0], -tt, 0, u), J(f[1], 0, tt, u), h = f[0], d = f[1]) : (J(f, -tt, tt, u), h = -(d = f < 0 ? -f : f))), o.hasOwnProperty(u = "RANGE")) if (f = o[u], f && f.pop) J(f[0], -tt, -1, u), J(f[1], 1, tt, u), g = f[0],
|
|
6955
|
-
else if (J(f, -tt, tt, u), f) g = -(
|
|
6954
|
+
if (o.hasOwnProperty(u = "DECIMAL_PLACES") && (f = o[u], J(f, 0, tt, u), a = f), o.hasOwnProperty(u = "ROUNDING_MODE") && (f = o[u], J(f, 0, 8, u), l = f), o.hasOwnProperty(u = "EXPONENTIAL_AT") && (f = o[u], f && f.pop ? (J(f[0], -tt, 0, u), J(f[1], 0, tt, u), h = f[0], d = f[1]) : (J(f, -tt, tt, u), h = -(d = f < 0 ? -f : f))), o.hasOwnProperty(u = "RANGE")) if (f = o[u], f && f.pop) J(f[0], -tt, -1, u), J(f[1], 1, tt, u), g = f[0], w = f[1];
|
|
6955
|
+
else if (J(f, -tt, tt, u), f) g = -(w = f < 0 ? -f : f);
|
|
6956
6956
|
else throw Error(st + u + " cannot be zero: " + f);
|
|
6957
6957
|
if (o.hasOwnProperty(u = "CRYPTO")) if (f = o[u], f === !!f) if (f) if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes)) C = f;
|
|
6958
6958
|
else throw C = !f, Error(st + "crypto unavailable");
|
|
@@ -6963,10 +6963,10 @@ function yr(t) {
|
|
|
6963
6963
|
if (o.hasOwnProperty(u = "ALPHABET")) if (f = o[u], typeof f == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(f)) P = f.slice(0, 10) == "0123456789", b = f;
|
|
6964
6964
|
else throw Error(st + u + " invalid: " + f);
|
|
6965
6965
|
} else throw Error(st + "Object expected: " + o);
|
|
6966
|
-
return { DECIMAL_PLACES: a, ROUNDING_MODE: l, EXPONENTIAL_AT: [h, d], RANGE: [g,
|
|
6967
|
-
},
|
|
6966
|
+
return { DECIMAL_PLACES: a, ROUNDING_MODE: l, EXPONENTIAL_AT: [h, d], RANGE: [g, w], CRYPTO: C, MODULO_MODE: v, POW_PRECISION: M, FORMAT: D, ALPHABET: b };
|
|
6967
|
+
}, A.isBigNumber = function(o) {
|
|
6968
6968
|
if (!o || o._isBigNumber !== true) return false;
|
|
6969
|
-
if (!
|
|
6969
|
+
if (!A.DEBUG) return true;
|
|
6970
6970
|
var u, f, _ = o.c, m = o.e, I = o.s;
|
|
6971
6971
|
t: if ({}.toString.call(_) == "[object Array]") {
|
|
6972
6972
|
if ((I === 1 || I === -1) && m >= -tt && m <= tt && m === ut(m)) {
|
|
@@ -6981,19 +6981,19 @@ function yr(t) {
|
|
|
6981
6981
|
}
|
|
6982
6982
|
} else if (_ === null && m === null && (I === null || I === 1 || I === -1)) return true;
|
|
6983
6983
|
throw Error(st + "Invalid BigNumber: " + o);
|
|
6984
|
-
},
|
|
6984
|
+
}, A.maximum = A.max = function() {
|
|
6985
6985
|
return x(arguments, -1);
|
|
6986
|
-
},
|
|
6986
|
+
}, A.minimum = A.min = function() {
|
|
6987
6987
|
return x(arguments, 1);
|
|
6988
|
-
},
|
|
6988
|
+
}, A.random = (function() {
|
|
6989
6989
|
var o = 9007199254740992, u = Math.random() * o & 2097151 ? function() {
|
|
6990
6990
|
return ut(Math.random() * o);
|
|
6991
6991
|
} : function() {
|
|
6992
6992
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
6993
6993
|
};
|
|
6994
6994
|
return function(f) {
|
|
6995
|
-
var _, m, I, T, p, E = 0, S = [], R = new
|
|
6996
|
-
if (f == null ? f = a : J(f, 0, tt), T =
|
|
6995
|
+
var _, m, I, T, p, E = 0, S = [], R = new A(s);
|
|
6996
|
+
if (f == null ? f = a : J(f, 0, tt), T = Se(f / G), C) if (crypto.getRandomValues) {
|
|
6997
6997
|
for (_ = crypto.getRandomValues(new Uint32Array(T *= 2)); E < T; ) p = _[E] * 131072 + (_[E + 1] >>> 11), p >= 9e15 ? (m = crypto.getRandomValues(new Uint32Array(2)), _[E] = m[0], _[E + 1] = m[1]) : (S.push(p % 1e14), E += 2);
|
|
6998
6998
|
E = T / 2;
|
|
6999
6999
|
} else if (crypto.randomBytes) {
|
|
@@ -7001,7 +7001,7 @@ function yr(t) {
|
|
|
7001
7001
|
E = T / 7;
|
|
7002
7002
|
} else throw C = false, Error(st + "crypto unavailable");
|
|
7003
7003
|
if (!C) for (; E < T; ) p = u(), p < 9e15 && (S[E++] = p % 1e14);
|
|
7004
|
-
for (T = S[--E], f %= G, T && f && (p =
|
|
7004
|
+
for (T = S[--E], f %= G, T && f && (p = Te[G - f], S[E] = ut(T / p) * p); S[E] === 0; S.pop(), E--) ;
|
|
7005
7005
|
if (E < 0) S = [I = 0];
|
|
7006
7006
|
else {
|
|
7007
7007
|
for (I = -1; S[0] === 0; S.splice(0, 1), I -= G) ;
|
|
@@ -7010,8 +7010,8 @@ function yr(t) {
|
|
|
7010
7010
|
}
|
|
7011
7011
|
return R.e = I, R.c = S, R;
|
|
7012
7012
|
};
|
|
7013
|
-
})(),
|
|
7014
|
-
for (var o = 1, u = arguments, f = new
|
|
7013
|
+
})(), A.sum = function() {
|
|
7014
|
+
for (var o = 1, u = arguments, f = new A(u[0]); o < u.length; ) f = f.plus(u[o++]);
|
|
7015
7015
|
return f;
|
|
7016
7016
|
}, r = (function() {
|
|
7017
7017
|
var o = "0123456789";
|
|
@@ -7024,14 +7024,14 @@ function yr(t) {
|
|
|
7024
7024
|
}
|
|
7025
7025
|
return c(u, "toBaseOut"), function(f, _, m, I, T) {
|
|
7026
7026
|
var p, E, S, R, y, L, B, $, F = f.indexOf("."), V = a, N = l;
|
|
7027
|
-
for (F >= 0 && (R = M, M = 0, f = f.replace(".", ""), $ = new
|
|
7027
|
+
for (F >= 0 && (R = M, M = 0, f = f.replace(".", ""), $ = new A(_), L = $.pow(f.length - F), M = R, $.c = u(wt(ft(L.c), L.e, "0"), 10, m, o), $.e = $.c.length), B = u(f, _, m, T ? (p = b, o) : (p = o, b)), S = R = B.length; B[--R] == 0; B.pop()) ;
|
|
7028
7028
|
if (!B[0]) return p.charAt(0);
|
|
7029
|
-
if (F < 0 ? --S : (L.c = B, L.e = S, L.s = I, L = e(L, $, V, N, m), B = L.c, y = L.r, S = L.e), E = S + V + 1, F = B[E], R = m / 2, y = y || E < 0 || B[E + 1] != null, y = N < 4 ? (F != null || y) && (N == 0 || N == (L.s < 0 ? 3 : 2)) : F > R || F == R && (N == 4 || y || N == 6 && B[E - 1] & 1 || N == (L.s < 0 ? 8 : 7)), E < 1 || !B[0]) f = y ?
|
|
7029
|
+
if (F < 0 ? --S : (L.c = B, L.e = S, L.s = I, L = e(L, $, V, N, m), B = L.c, y = L.r, S = L.e), E = S + V + 1, F = B[E], R = m / 2, y = y || E < 0 || B[E + 1] != null, y = N < 4 ? (F != null || y) && (N == 0 || N == (L.s < 0 ? 3 : 2)) : F > R || F == R && (N == 4 || y || N == 6 && B[E - 1] & 1 || N == (L.s < 0 ? 8 : 7)), E < 1 || !B[0]) f = y ? wt(p.charAt(1), -V, p.charAt(0)) : p.charAt(0);
|
|
7030
7030
|
else {
|
|
7031
7031
|
if (B.length = E, y) for (--m; ++B[--E] > m; ) B[E] = 0, E || (++S, B = [1].concat(B));
|
|
7032
7032
|
for (R = B.length; !B[--R]; ) ;
|
|
7033
7033
|
for (F = 0, f = ""; F <= R; f += p.charAt(B[F++])) ;
|
|
7034
|
-
f =
|
|
7034
|
+
f = wt(f, S, p.charAt(0));
|
|
7035
7035
|
}
|
|
7036
7036
|
return f;
|
|
7037
7037
|
};
|
|
@@ -7058,8 +7058,8 @@ function yr(t) {
|
|
|
7058
7058
|
}
|
|
7059
7059
|
return c(f, "subtract"), function(_, m, I, T, p) {
|
|
7060
7060
|
var E, S, R, y, L, B, $, F, V, N, k, Y, ht, bt, Ct, rt, dt, X = _.s == m.s ? 1 : -1, Z = _.c, Q = m.c;
|
|
7061
|
-
if (!Z || !Z[0] || !Q || !Q[0]) return new
|
|
7062
|
-
for (F = new
|
|
7061
|
+
if (!Z || !Z[0] || !Q || !Q[0]) return new A(!_.s || !m.s || (Z ? Q && Z[0] == Q[0] : !Q) ? NaN : Z && Z[0] == 0 || !Q ? X * 0 : X / 0);
|
|
7062
|
+
for (F = new A(X), V = F.c = [], S = _.e - m.e, X = I + S + 1, p || (p = pt, S = lt(_.e / G) - lt(m.e / G), X = X / G | 0), R = 0; Q[R] == (Z[R] || 0); R++) ;
|
|
7063
7063
|
if (Q[R] > (Z[R] || 0) && S--, X < 0) V.push(1), y = true;
|
|
7064
7064
|
else {
|
|
7065
7065
|
for (bt = Z.length, rt = Q.length, R = 0, X += 2, L = ut(p / (Q[0] + 1)), L > 1 && (Q = o(Q, L, p), Z = o(Z, L, p), rt = Q.length, bt = Z.length), ht = rt, N = Z.slice(0, rt), k = N.length; k < rt; N[k++] = 0) ;
|
|
@@ -7084,25 +7084,25 @@ function yr(t) {
|
|
|
7084
7084
|
function O(o, u, f, _) {
|
|
7085
7085
|
var m, I, T, p, E;
|
|
7086
7086
|
if (f == null ? f = l : J(f, 0, 8), !o.c) return o.toString();
|
|
7087
|
-
if (m = o.c[0], T = o.e, u == null) E = ft(o.c), E = _ == 1 || _ == 2 && (T <= h || T >= d) ? ie(E, T) :
|
|
7088
|
-
else if (o = H(new
|
|
7087
|
+
if (m = o.c[0], T = o.e, u == null) E = ft(o.c), E = _ == 1 || _ == 2 && (T <= h || T >= d) ? ie(E, T) : wt(E, T, "0");
|
|
7088
|
+
else if (o = H(new A(o), u, f), I = o.e, E = ft(o.c), p = E.length, _ == 1 || _ == 2 && (u <= I || I <= h)) {
|
|
7089
7089
|
for (; p < u; E += "0", p++) ;
|
|
7090
7090
|
E = ie(E, I);
|
|
7091
|
-
} else if (u -= T + (_ === 2 && I > T), E =
|
|
7091
|
+
} else if (u -= T + (_ === 2 && I > T), E = wt(E, I, "0"), I + 1 > p) {
|
|
7092
7092
|
if (--u > 0) for (E += "."; u--; E += "0") ;
|
|
7093
7093
|
} else if (u += I - p, u > 0) for (I + 1 == p && (E += "."); u--; E += "0") ;
|
|
7094
7094
|
return o.s < 0 && m ? "-" + E : E;
|
|
7095
7095
|
}
|
|
7096
7096
|
c(O, "format");
|
|
7097
7097
|
function x(o, u) {
|
|
7098
|
-
for (var f, _, m = 1, I = new
|
|
7098
|
+
for (var f, _, m = 1, I = new A(o[0]); m < o.length; m++) _ = new A(o[m]), (!_.s || (f = Dt(I, _)) === u || f === 0 && I.s === u) && (I = _);
|
|
7099
7099
|
return I;
|
|
7100
7100
|
}
|
|
7101
7101
|
c(x, "maxOrMin");
|
|
7102
7102
|
function U(o, u, f) {
|
|
7103
7103
|
for (var _ = 1, m = u.length; !u[--m]; u.pop()) ;
|
|
7104
7104
|
for (m = u[0]; m >= 10; m /= 10, _++) ;
|
|
7105
|
-
return (f = _ + f * G - 1) >
|
|
7105
|
+
return (f = _ + f * G - 1) > w ? o.c = o.e = null : f < g ? o.c = [o.e = 0] : (o.e = f, o.c = u), o;
|
|
7106
7106
|
}
|
|
7107
7107
|
c(U, "normalise"), n = /* @__PURE__ */ (function() {
|
|
7108
7108
|
var o = /^(-?)0([xbo])(?=\w[\w.]*$)/i, u = /^([^.]+)\.$/, f = /^\.([^.]+)$/, _ = /^-?(Infinity|NaN)$/, m = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
@@ -7112,20 +7112,20 @@ function yr(t) {
|
|
|
7112
7112
|
else {
|
|
7113
7113
|
if (!p && (R = R.replace(o, function(y, L, B) {
|
|
7114
7114
|
return S = (B = B.toLowerCase()) == "x" ? 16 : B == "b" ? 2 : 8, !E || E == S ? L : y;
|
|
7115
|
-
}), E && (S = E, R = R.replace(u, "$1").replace(f, "0.$1")), T != R)) return new
|
|
7116
|
-
if (
|
|
7115
|
+
}), E && (S = E, R = R.replace(u, "$1").replace(f, "0.$1")), T != R)) return new A(R, S);
|
|
7116
|
+
if (A.DEBUG) throw Error(st + "Not a" + (E ? " base " + E : "") + " number: " + T);
|
|
7117
7117
|
I.s = null;
|
|
7118
7118
|
}
|
|
7119
7119
|
I.c = I.e = null;
|
|
7120
7120
|
};
|
|
7121
7121
|
})();
|
|
7122
7122
|
function H(o, u, f, _) {
|
|
7123
|
-
var m, I, T, p, E, S, R, y = o.c, L =
|
|
7123
|
+
var m, I, T, p, E, S, R, y = o.c, L = Te;
|
|
7124
7124
|
if (y) {
|
|
7125
7125
|
t: {
|
|
7126
7126
|
for (m = 1, p = y[0]; p >= 10; p /= 10, m++) ;
|
|
7127
7127
|
if (I = u - m, I < 0) I += G, T = u, E = y[S = 0], R = ut(E / L[m - T - 1] % 10);
|
|
7128
|
-
else if (S =
|
|
7128
|
+
else if (S = Se((I + 1) / G), S >= y.length) if (_) {
|
|
7129
7129
|
for (; y.length <= S; y.push(0)) ;
|
|
7130
7130
|
E = R = 0, m = 1, I %= G, T = I - G + 1;
|
|
7131
7131
|
} else break t;
|
|
@@ -7145,42 +7145,42 @@ function yr(t) {
|
|
|
7145
7145
|
}
|
|
7146
7146
|
for (I = y.length; y[--I] === 0; y.pop()) ;
|
|
7147
7147
|
}
|
|
7148
|
-
o.e >
|
|
7148
|
+
o.e > w ? o.c = o.e = null : o.e < g && (o.c = [o.e = 0]);
|
|
7149
7149
|
}
|
|
7150
7150
|
return o;
|
|
7151
7151
|
}
|
|
7152
7152
|
c(H, "round");
|
|
7153
7153
|
function j(o) {
|
|
7154
7154
|
var u, f = o.e;
|
|
7155
|
-
return f === null ? o.toString() : (u = ft(o.c), u = f <= h || f >= d ? ie(u, f) :
|
|
7155
|
+
return f === null ? o.toString() : (u = ft(o.c), u = f <= h || f >= d ? ie(u, f) : wt(u, f, "0"), o.s < 0 ? "-" + u : u);
|
|
7156
7156
|
}
|
|
7157
7157
|
return c(j, "valueOf"), i.absoluteValue = i.abs = function() {
|
|
7158
|
-
var o = new
|
|
7158
|
+
var o = new A(this);
|
|
7159
7159
|
return o.s < 0 && (o.s = 1), o;
|
|
7160
7160
|
}, i.comparedTo = function(o, u) {
|
|
7161
|
-
return Dt(this, new
|
|
7161
|
+
return Dt(this, new A(o, u));
|
|
7162
7162
|
}, i.decimalPlaces = i.dp = function(o, u) {
|
|
7163
7163
|
var f, _, m, I = this;
|
|
7164
|
-
if (o != null) return J(o, 0, tt), u == null ? u = l : J(u, 0, 8), H(new
|
|
7164
|
+
if (o != null) return J(o, 0, tt), u == null ? u = l : J(u, 0, 8), H(new A(I), o + I.e + 1, u);
|
|
7165
7165
|
if (!(f = I.c)) return null;
|
|
7166
7166
|
if (_ = ((m = f.length - 1) - lt(this.e / G)) * G, m = f[m]) for (; m % 10 == 0; m /= 10, _--) ;
|
|
7167
7167
|
return _ < 0 && (_ = 0), _;
|
|
7168
7168
|
}, i.dividedBy = i.div = function(o, u) {
|
|
7169
|
-
return e(this, new
|
|
7169
|
+
return e(this, new A(o, u), a, l);
|
|
7170
7170
|
}, i.dividedToIntegerBy = i.idiv = function(o, u) {
|
|
7171
|
-
return e(this, new
|
|
7171
|
+
return e(this, new A(o, u), 0, 1);
|
|
7172
7172
|
}, i.exponentiatedBy = i.pow = function(o, u) {
|
|
7173
7173
|
var f, _, m, I, T, p, E, S, R, y = this;
|
|
7174
|
-
if (o = new
|
|
7175
|
-
if (u != null && (u = new
|
|
7174
|
+
if (o = new A(o), o.c && !o.isInteger()) throw Error(st + "Exponent not an integer: " + j(o));
|
|
7175
|
+
if (u != null && (u = new A(u)), p = o.e > 14, !y.c || !y.c[0] || y.c[0] == 1 && !y.e && y.c.length == 1 || !o.c || !o.c[0]) return R = new A(Math.pow(+j(y), p ? o.s * (2 - ne(o)) : +j(o))), u ? R.mod(u) : R;
|
|
7176
7176
|
if (E = o.s < 0, u) {
|
|
7177
|
-
if (u.c ? !u.c[0] : !u.s) return new
|
|
7177
|
+
if (u.c ? !u.c[0] : !u.s) return new A(NaN);
|
|
7178
7178
|
_ = !E && y.isInteger() && u.isInteger(), _ && (y = y.mod(u));
|
|
7179
7179
|
} else {
|
|
7180
|
-
if (o.e > 9 && (y.e > 0 || y.e < -1 || (y.e == 0 ? y.c[0] > 1 || p && y.c[1] >= 24e7 : y.c[0] < 8e13 || p && y.c[0] <= 9999975e7))) return I = y.s < 0 && ne(o) ? -0 : 0, y.e > -1 && (I = 1 / I), new
|
|
7181
|
-
M && (I =
|
|
7180
|
+
if (o.e > 9 && (y.e > 0 || y.e < -1 || (y.e == 0 ? y.c[0] > 1 || p && y.c[1] >= 24e7 : y.c[0] < 8e13 || p && y.c[0] <= 9999975e7))) return I = y.s < 0 && ne(o) ? -0 : 0, y.e > -1 && (I = 1 / I), new A(E ? 1 / I : I);
|
|
7181
|
+
M && (I = Se(M / G + 2));
|
|
7182
7182
|
}
|
|
7183
|
-
for (p ? (f = new
|
|
7183
|
+
for (p ? (f = new A(0.5), E && (o.s = 1), S = ne(o)) : (m = Math.abs(+j(o)), S = m % 2), R = new A(s); ; ) {
|
|
7184
7184
|
if (S) {
|
|
7185
7185
|
if (R = R.times(y), !R.c) break;
|
|
7186
7186
|
I ? R.c.length > I && (R.c.length = I) : _ && (R = R.mod(u));
|
|
@@ -7197,22 +7197,22 @@ function yr(t) {
|
|
|
7197
7197
|
}
|
|
7198
7198
|
return _ ? R : (E && (R = s.div(R)), u ? R.mod(u) : I ? H(R, M, l, T) : R);
|
|
7199
7199
|
}, i.integerValue = function(o) {
|
|
7200
|
-
var u = new
|
|
7200
|
+
var u = new A(this);
|
|
7201
7201
|
return o == null ? o = l : J(o, 0, 8), H(u, u.e + 1, o);
|
|
7202
7202
|
}, i.isEqualTo = i.eq = function(o, u) {
|
|
7203
|
-
return Dt(this, new
|
|
7203
|
+
return Dt(this, new A(o, u)) === 0;
|
|
7204
7204
|
}, i.isFinite = function() {
|
|
7205
7205
|
return !!this.c;
|
|
7206
7206
|
}, i.isGreaterThan = i.gt = function(o, u) {
|
|
7207
|
-
return Dt(this, new
|
|
7207
|
+
return Dt(this, new A(o, u)) > 0;
|
|
7208
7208
|
}, i.isGreaterThanOrEqualTo = i.gte = function(o, u) {
|
|
7209
|
-
return (u = Dt(this, new
|
|
7209
|
+
return (u = Dt(this, new A(o, u))) === 1 || u === 0;
|
|
7210
7210
|
}, i.isInteger = function() {
|
|
7211
7211
|
return !!this.c && lt(this.e / G) > this.c.length - 2;
|
|
7212
7212
|
}, i.isLessThan = i.lt = function(o, u) {
|
|
7213
|
-
return Dt(this, new
|
|
7213
|
+
return Dt(this, new A(o, u)) < 0;
|
|
7214
7214
|
}, i.isLessThanOrEqualTo = i.lte = function(o, u) {
|
|
7215
|
-
return (u = Dt(this, new
|
|
7215
|
+
return (u = Dt(this, new A(o, u))) === -1 || u === 0;
|
|
7216
7216
|
}, i.isNaN = function() {
|
|
7217
7217
|
return !this.s;
|
|
7218
7218
|
}, i.isNegative = function() {
|
|
@@ -7223,12 +7223,12 @@ function yr(t) {
|
|
|
7223
7223
|
return !!this.c && this.c[0] == 0;
|
|
7224
7224
|
}, i.minus = function(o, u) {
|
|
7225
7225
|
var f, _, m, I, T = this, p = T.s;
|
|
7226
|
-
if (o = new
|
|
7226
|
+
if (o = new A(o, u), u = o.s, !p || !u) return new A(NaN);
|
|
7227
7227
|
if (p != u) return o.s = -u, T.plus(o);
|
|
7228
7228
|
var E = T.e / G, S = o.e / G, R = T.c, y = o.c;
|
|
7229
7229
|
if (!E || !S) {
|
|
7230
|
-
if (!R || !y) return R ? (o.s = -u, o) : new
|
|
7231
|
-
if (!R[0] || !y[0]) return y[0] ? (o.s = -u, o) : new
|
|
7230
|
+
if (!R || !y) return R ? (o.s = -u, o) : new A(y ? T : NaN);
|
|
7231
|
+
if (!R[0] || !y[0]) return y[0] ? (o.s = -u, o) : new A(R[0] ? T : l == 3 ? -0 : 0);
|
|
7232
7232
|
}
|
|
7233
7233
|
if (E = lt(E), S = lt(S), R = R.slice(), p = E - S) {
|
|
7234
7234
|
for ((I = p < 0) ? (p = -p, m = R) : (S = E, m = y), m.reverse(), u = p; u--; m.push(0)) ;
|
|
@@ -7249,9 +7249,9 @@ function yr(t) {
|
|
|
7249
7249
|
return R[0] ? U(o, R, S) : (o.s = l == 3 ? -1 : 1, o.c = [o.e = 0], o);
|
|
7250
7250
|
}, i.modulo = i.mod = function(o, u) {
|
|
7251
7251
|
var f, _, m = this;
|
|
7252
|
-
return o = new
|
|
7252
|
+
return o = new A(o, u), !m.c || !o.s || o.c && !o.c[0] ? new A(NaN) : !o.c || m.c && !m.c[0] ? new A(m) : (v == 9 ? (_ = o.s, o.s = 1, f = e(m, o, 0, 3), o.s = _, f.s *= _) : f = e(m, o, 0, v), o = m.minus(f.times(o)), !o.c[0] && v == 1 && (o.s = m.s), o);
|
|
7253
7253
|
}, i.multipliedBy = i.times = function(o, u) {
|
|
7254
|
-
var f, _, m, I, T, p, E, S, R, y, L, B, $, F, V, N = this, k = N.c, Y = (o = new
|
|
7254
|
+
var f, _, m, I, T, p, E, S, R, y, L, B, $, F, V, N = this, k = N.c, Y = (o = new A(o, u)).c;
|
|
7255
7255
|
if (!k || !Y || !k[0] || !Y[0]) return !N.s || !o.s || k && !k[0] && !Y || Y && !Y[0] && !k ? o.c = o.e = o.s = null : (o.s *= N.s, !k || !Y ? o.c = o.e = null : (o.c = [0], o.e = 0)), o;
|
|
7256
7256
|
for (_ = lt(N.e / G) + lt(o.e / G), o.s *= N.s, E = k.length, y = Y.length, E < y && ($ = k, k = Y, Y = $, m = E, E = y, y = m), m = E + y, $ = []; m--; $.push(0)) ;
|
|
7257
7257
|
for (F = pt, V = vt, m = y; --m >= 0; ) {
|
|
@@ -7260,16 +7260,16 @@ function yr(t) {
|
|
|
7260
7260
|
}
|
|
7261
7261
|
return f ? ++_ : $.splice(0, 1), U(o, $, _);
|
|
7262
7262
|
}, i.negated = function() {
|
|
7263
|
-
var o = new
|
|
7263
|
+
var o = new A(this);
|
|
7264
7264
|
return o.s = -o.s || null, o;
|
|
7265
7265
|
}, i.plus = function(o, u) {
|
|
7266
7266
|
var f, _ = this, m = _.s;
|
|
7267
|
-
if (o = new
|
|
7267
|
+
if (o = new A(o, u), u = o.s, !m || !u) return new A(NaN);
|
|
7268
7268
|
if (m != u) return o.s = -u, _.minus(o);
|
|
7269
7269
|
var I = _.e / G, T = o.e / G, p = _.c, E = o.c;
|
|
7270
7270
|
if (!I || !T) {
|
|
7271
|
-
if (!p || !E) return new
|
|
7272
|
-
if (!p[0] || !E[0]) return E[0] ? o : new
|
|
7271
|
+
if (!p || !E) return new A(m / 0);
|
|
7272
|
+
if (!p[0] || !E[0]) return E[0] ? o : new A(p[0] ? _ : m * 0);
|
|
7273
7273
|
}
|
|
7274
7274
|
if (I = lt(I), T = lt(T), p = p.slice(), m = I - T) {
|
|
7275
7275
|
for (m > 0 ? (T = I, f = E) : (m = -m, f = p), f.reverse(); m--; f.push(0)) ;
|
|
@@ -7279,7 +7279,7 @@ function yr(t) {
|
|
|
7279
7279
|
return m && (p = [m].concat(p), ++T), U(o, p, T);
|
|
7280
7280
|
}, i.precision = i.sd = function(o, u) {
|
|
7281
7281
|
var f, _, m, I = this;
|
|
7282
|
-
if (o != null && o !== !!o) return J(o, 1, tt), u == null ? u = l : J(u, 0, 8), H(new
|
|
7282
|
+
if (o != null && o !== !!o) return J(o, 1, tt), u == null ? u = l : J(u, 0, 8), H(new A(I), o, u);
|
|
7283
7283
|
if (!(f = I.c)) return null;
|
|
7284
7284
|
if (m = f.length - 1, _ = m * G + 1, m = f[m]) {
|
|
7285
7285
|
for (; m % 10 == 0; m /= 10, _--) ;
|
|
@@ -7287,11 +7287,11 @@ function yr(t) {
|
|
|
7287
7287
|
}
|
|
7288
7288
|
return o && I.e + 1 > _ && (_ = I.e + 1), _;
|
|
7289
7289
|
}, i.shiftedBy = function(o) {
|
|
7290
|
-
return J(o, -
|
|
7290
|
+
return J(o, -Re, Re), this.times("1e" + o);
|
|
7291
7291
|
}, i.squareRoot = i.sqrt = function() {
|
|
7292
|
-
var o, u, f, _, m, I = this, T = I.c, p = I.s, E = I.e, S = a + 4, R = new
|
|
7293
|
-
if (p !== 1 || !T || !T[0]) return new
|
|
7294
|
-
if (p = Math.sqrt(+j(I)), p == 0 || p == 1 / 0 ? (u = ft(T), (u.length + E) % 2 == 0 && (u += "0"), p = Math.sqrt(+u), E = lt((E + 1) / 2) - (E < 0 || E % 2), p == 1 / 0 ? u = "5e" + E : (u = p.toExponential(), u = u.slice(0, u.indexOf("e") + 1) + E), f = new
|
|
7292
|
+
var o, u, f, _, m, I = this, T = I.c, p = I.s, E = I.e, S = a + 4, R = new A("0.5");
|
|
7293
|
+
if (p !== 1 || !T || !T[0]) return new A(!p || p < 0 && (!T || T[0]) ? NaN : T ? I : 1 / 0);
|
|
7294
|
+
if (p = Math.sqrt(+j(I)), p == 0 || p == 1 / 0 ? (u = ft(T), (u.length + E) % 2 == 0 && (u += "0"), p = Math.sqrt(+u), E = lt((E + 1) / 2) - (E < 0 || E % 2), p == 1 / 0 ? u = "5e" + E : (u = p.toExponential(), u = u.slice(0, u.indexOf("e") + 1) + E), f = new A(u)) : f = new A(p + ""), f.c[0]) {
|
|
7295
7295
|
for (E = f.e, p = E + S, p < 3 && (p = 0); ; ) if (m = f, f = R.times(m.plus(e(I, m, S, 1))), ft(m.c).slice(0, p) === (u = ft(f.c)).slice(0, p)) if (f.e < E && --p, u = u.slice(p - 3, p + 1), u == "9999" || !_ && u == "4999") {
|
|
7296
7296
|
if (!_ && (H(m, m.e + a + 2, 0), m.times(m).eq(I))) {
|
|
7297
7297
|
f = m;
|
|
@@ -7323,22 +7323,22 @@ function yr(t) {
|
|
|
7323
7323
|
return (f.prefix || "") + _ + (f.suffix || "");
|
|
7324
7324
|
}, i.toFraction = function(o) {
|
|
7325
7325
|
var u, f, _, m, I, T, p, E, S, R, y, L, B = this, $ = B.c;
|
|
7326
|
-
if (o != null && (p = new
|
|
7327
|
-
if (!$) return new
|
|
7328
|
-
for (u = new
|
|
7329
|
-
return m = e(o.minus(f), _, 0, 1), E = E.plus(m.times(S)), f = f.plus(m.times(_)), E.s = S.s = B.s, I = I * 2, y = e(S, _, I, l).minus(B).abs().comparedTo(e(E, f, I, l).minus(B).abs()) < 1 ? [S, _] : [E, f],
|
|
7326
|
+
if (o != null && (p = new A(o), !p.isInteger() && (p.c || p.s !== 1) || p.lt(s))) throw Error(st + "Argument " + (p.isInteger() ? "out of range: " : "not an integer: ") + j(p));
|
|
7327
|
+
if (!$) return new A(B);
|
|
7328
|
+
for (u = new A(s), S = f = new A(s), _ = E = new A(s), L = ft($), I = u.e = L.length - B.e - 1, u.c[0] = Te[(T = I % G) < 0 ? G + T : T], o = !o || p.comparedTo(u) > 0 ? I > 0 ? u : S : p, T = w, w = 1 / 0, p = new A(L), E.c[0] = 0; R = e(p, u, 0, 1), m = f.plus(R.times(_)), m.comparedTo(o) != 1; ) f = _, _ = m, S = E.plus(R.times(m = S)), E = m, u = p.minus(R.times(m = u)), p = m;
|
|
7329
|
+
return m = e(o.minus(f), _, 0, 1), E = E.plus(m.times(S)), f = f.plus(m.times(_)), E.s = S.s = B.s, I = I * 2, y = e(S, _, I, l).minus(B).abs().comparedTo(e(E, f, I, l).minus(B).abs()) < 1 ? [S, _] : [E, f], w = T, y;
|
|
7330
7330
|
}, i.toNumber = function() {
|
|
7331
7331
|
return +j(this);
|
|
7332
7332
|
}, i.toPrecision = function(o, u) {
|
|
7333
7333
|
return o != null && J(o, 1, tt), O(this, o, u, 2);
|
|
7334
7334
|
}, i.toString = function(o) {
|
|
7335
7335
|
var u, f = this, _ = f.s, m = f.e;
|
|
7336
|
-
return m === null ? _ ? (u = "Infinity", _ < 0 && (u = "-" + u)) : u = "NaN" : (o == null ? u = m <= h || m >= d ? ie(ft(f.c), m) :
|
|
7336
|
+
return m === null ? _ ? (u = "Infinity", _ < 0 && (u = "-" + u)) : u = "NaN" : (o == null ? u = m <= h || m >= d ? ie(ft(f.c), m) : wt(ft(f.c), m, "0") : o === 10 && P ? (f = H(new A(f), a + m + 1, l), u = wt(ft(f.c), f.e, "0")) : (J(o, 2, b.length, "Base"), u = r(wt(ft(f.c), m, "0"), 10, o, _, true)), _ < 0 && f.c[0] && (u = "-" + u)), u;
|
|
7337
7337
|
}, i.valueOf = i.toJSON = function() {
|
|
7338
7338
|
return j(this);
|
|
7339
|
-
}, i._isBigNumber = true, i[Symbol.toStringTag] = "BigNumber", i[Symbol.for("nodejs.util.inspect.custom")] = i.valueOf, t != null &&
|
|
7339
|
+
}, i._isBigNumber = true, i[Symbol.toStringTag] = "BigNumber", i[Symbol.for("nodejs.util.inspect.custom")] = i.valueOf, t != null && A.set(t), A;
|
|
7340
7340
|
}
|
|
7341
|
-
c(
|
|
7341
|
+
c(br, "clone");
|
|
7342
7342
|
function lt(t) {
|
|
7343
7343
|
var e = t | 0;
|
|
7344
7344
|
return t > 0 || t === e ? e : e - 1;
|
|
@@ -7377,7 +7377,7 @@ function ie(t, e) {
|
|
|
7377
7377
|
return (t.length > 1 ? t.charAt(0) + "." + t.slice(1) : t) + (e < 0 ? "e" : "e+") + e;
|
|
7378
7378
|
}
|
|
7379
7379
|
c(ie, "toExponential");
|
|
7380
|
-
function
|
|
7380
|
+
function wt(t, e, r) {
|
|
7381
7381
|
var n, i;
|
|
7382
7382
|
if (e < 0) {
|
|
7383
7383
|
for (i = r + "."; ++e; i += r) ;
|
|
@@ -7388,12 +7388,12 @@ function At(t, e, r) {
|
|
|
7388
7388
|
} else e < n && (t = t.slice(0, e) + "." + t.slice(e));
|
|
7389
7389
|
return t;
|
|
7390
7390
|
}
|
|
7391
|
-
c(
|
|
7392
|
-
var Ii =
|
|
7391
|
+
c(wt, "toFixedPoint");
|
|
7392
|
+
var Ii = br();
|
|
7393
7393
|
const Si = 24, qt = 32, Ri = c(() => typeof globalThis < "u" && globalThis.crypto && typeof globalThis.crypto.getRandomValues == "function" ? () => {
|
|
7394
7394
|
const t = new Uint32Array(1);
|
|
7395
7395
|
return globalThis.crypto.getRandomValues(t), t[0] / 4294967296;
|
|
7396
|
-
} : Math.random, "createRandom"),
|
|
7396
|
+
} : Math.random, "createRandom"), we = Ri(), Ae = c((t = 4, e = we) => {
|
|
7397
7397
|
let r = "";
|
|
7398
7398
|
for (; r.length < t; ) r = r + Math.floor(e() * 36).toString(36);
|
|
7399
7399
|
return r;
|
|
@@ -7404,17 +7404,17 @@ function Ti(t) {
|
|
|
7404
7404
|
return e;
|
|
7405
7405
|
}
|
|
7406
7406
|
c(Ti, "bufToBigInt");
|
|
7407
|
-
const
|
|
7407
|
+
const Cr = c((t = "") => {
|
|
7408
7408
|
const e = new TextEncoder();
|
|
7409
7409
|
return Ti(Ei(e.encode(t))).toString(36).slice(1);
|
|
7410
|
-
}, "hash"),
|
|
7410
|
+
}, "hash"), vr = Array.from({ length: 26 }, (t, e) => String.fromCharCode(e + 97)), wi = c((t) => vr[Math.floor(t() * vr.length)], "randomLetter"), Ai = c(({ globalObj: t = typeof global < "u" ? global : typeof window < "u" ? window : {}, random: e = we } = {}) => {
|
|
7411
7411
|
const r = Object.keys(t).toString(), n = r.length ? r + Ae(qt, e) : Ae(qt, e);
|
|
7412
|
-
return
|
|
7413
|
-
}, "createFingerprint"), yi = c((t) => () => t++, "createCounter"), bi = 476782367, Ci = c(({ random: t =
|
|
7412
|
+
return Cr(n).substring(0, qt);
|
|
7413
|
+
}, "createFingerprint"), yi = c((t) => () => t++, "createCounter"), bi = 476782367, Ci = c(({ random: t = we, counter: e = yi(Math.floor(t() * bi)), length: r = Si, fingerprint: n = Ai({ random: t }) } = {}) => {
|
|
7414
7414
|
if (r > qt) throw new Error(`Length must be between 2 and ${qt}. Received: ${r}`);
|
|
7415
7415
|
return c(function() {
|
|
7416
|
-
const s =
|
|
7417
|
-
return `${s +
|
|
7416
|
+
const s = wi(t), a = Date.now().toString(36), l = e().toString(36), h = Ae(r, t), d = `${a + h + l + n}`;
|
|
7417
|
+
return `${s + Cr(d).substring(1, r)}`;
|
|
7418
7418
|
}, "cuid2");
|
|
7419
7419
|
}, "init"), Yt = vi(Ci);
|
|
7420
7420
|
function vi(t) {
|
|
@@ -7423,14 +7423,14 @@ function vi(t) {
|
|
|
7423
7423
|
}
|
|
7424
7424
|
c(vi, "lazy");
|
|
7425
7425
|
var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7426
|
-
function
|
|
7426
|
+
function Ur(t) {
|
|
7427
7427
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
7428
7428
|
}
|
|
7429
|
-
c(
|
|
7430
|
-
var xt = {},
|
|
7429
|
+
c(Ur, "getDefaultExportFromCjs");
|
|
7430
|
+
var xt = {}, Br;
|
|
7431
7431
|
function Bi() {
|
|
7432
|
-
if (
|
|
7433
|
-
|
|
7432
|
+
if (Br) return xt;
|
|
7433
|
+
Br = 1, Object.defineProperty(xt, "__esModule", { value: true }), xt.isBinaryFileSync = xt.isBinaryFile = void 0;
|
|
7434
7434
|
const t = Vt, e = kn, r = (0, e.promisify)(t.stat), n = (0, e.promisify)(t.open), i = (0, e.promisify)(t.close), s = 512, a = 3;
|
|
7435
7435
|
class l {
|
|
7436
7436
|
static {
|
|
@@ -7440,8 +7440,8 @@ function Bi() {
|
|
|
7440
7440
|
size;
|
|
7441
7441
|
offset;
|
|
7442
7442
|
error;
|
|
7443
|
-
constructor(P,
|
|
7444
|
-
this.fileBuffer = P, this.size =
|
|
7443
|
+
constructor(P, A) {
|
|
7444
|
+
this.fileBuffer = P, this.size = A, this.offset = 0, this.error = false;
|
|
7445
7445
|
}
|
|
7446
7446
|
hasError() {
|
|
7447
7447
|
return this.error;
|
|
@@ -7450,26 +7450,26 @@ function Bi() {
|
|
|
7450
7450
|
return this.offset === this.size || this.hasError() ? (this.error = true, 255) : this.fileBuffer[this.offset++];
|
|
7451
7451
|
}
|
|
7452
7452
|
next(P) {
|
|
7453
|
-
const
|
|
7453
|
+
const A = new Array();
|
|
7454
7454
|
for (let O = 0; O < P; O++) {
|
|
7455
|
-
if (this.error) return
|
|
7456
|
-
|
|
7455
|
+
if (this.error) return A;
|
|
7456
|
+
A[O] = this.nextByte();
|
|
7457
7457
|
}
|
|
7458
|
-
return
|
|
7458
|
+
return A;
|
|
7459
7459
|
}
|
|
7460
7460
|
}
|
|
7461
7461
|
function h(b) {
|
|
7462
|
-
let P = 0,
|
|
7462
|
+
let P = 0, A = 0;
|
|
7463
7463
|
for (; !b.hasError(); ) {
|
|
7464
7464
|
const O = b.nextByte();
|
|
7465
|
-
if (
|
|
7465
|
+
if (A = A | (O & 127) << 7 * P, (O & 128) === 0) break;
|
|
7466
7466
|
if (P >= 10) {
|
|
7467
7467
|
b.error = true;
|
|
7468
7468
|
break;
|
|
7469
7469
|
}
|
|
7470
7470
|
P++;
|
|
7471
7471
|
}
|
|
7472
|
-
return
|
|
7472
|
+
return A;
|
|
7473
7473
|
}
|
|
7474
7474
|
c(h, "readProtoVarInt");
|
|
7475
7475
|
function d(b) {
|
|
@@ -7488,20 +7488,20 @@ function Bi() {
|
|
|
7488
7488
|
}
|
|
7489
7489
|
c(d, "readProtoMessage");
|
|
7490
7490
|
function g(b, P) {
|
|
7491
|
-
const
|
|
7491
|
+
const A = new l(b, P);
|
|
7492
7492
|
let O = 0;
|
|
7493
7493
|
for (; ; ) {
|
|
7494
|
-
if (!d(
|
|
7495
|
-
if (
|
|
7494
|
+
if (!d(A) && !A.hasError()) return false;
|
|
7495
|
+
if (A.hasError()) break;
|
|
7496
7496
|
O++;
|
|
7497
7497
|
}
|
|
7498
7498
|
return O > 0;
|
|
7499
7499
|
}
|
|
7500
7500
|
c(g, "isBinaryProto");
|
|
7501
|
-
async function
|
|
7501
|
+
async function w(b, P) {
|
|
7502
7502
|
if (M(b)) {
|
|
7503
|
-
const
|
|
7504
|
-
D(
|
|
7503
|
+
const A = await r(b);
|
|
7504
|
+
D(A);
|
|
7505
7505
|
const O = await n(b, "r"), x = Buffer.alloc(s + a);
|
|
7506
7506
|
return new Promise((U, H) => {
|
|
7507
7507
|
t.read(O, x, 0, s + a, 0, (j, o, u) => {
|
|
@@ -7515,11 +7515,11 @@ function Bi() {
|
|
|
7515
7515
|
});
|
|
7516
7516
|
} else return P === void 0 && (P = b.length), v(b, P);
|
|
7517
7517
|
}
|
|
7518
|
-
c(
|
|
7518
|
+
c(w, "isBinaryFile"), xt.isBinaryFile = w;
|
|
7519
7519
|
function C(b, P) {
|
|
7520
7520
|
if (M(b)) {
|
|
7521
|
-
const
|
|
7522
|
-
D(
|
|
7521
|
+
const A = t.statSync(b);
|
|
7522
|
+
D(A);
|
|
7523
7523
|
const O = t.openSync(b, "r"), x = Buffer.alloc(s + a), U = t.readSync(O, x, 0, s + a, 0);
|
|
7524
7524
|
return t.closeSync(O), v(x, U);
|
|
7525
7525
|
} else return P === void 0 && (P = b.length), v(b, P);
|
|
@@ -7527,7 +7527,7 @@ function Bi() {
|
|
|
7527
7527
|
c(C, "isBinaryFileSync"), xt.isBinaryFileSync = C;
|
|
7528
7528
|
function v(b, P) {
|
|
7529
7529
|
if (P === 0) return false;
|
|
7530
|
-
let
|
|
7530
|
+
let A = 0;
|
|
7531
7531
|
const O = Math.min(P, s + a), x = Math.min(O, s);
|
|
7532
7532
|
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;
|
|
7533
7533
|
if (O >= 5 && b.slice(0, 5).toString() === "%PDF-") return true;
|
|
@@ -7546,10 +7546,10 @@ function Bi() {
|
|
|
7546
7546
|
U += 2;
|
|
7547
7547
|
continue;
|
|
7548
7548
|
}
|
|
7549
|
-
if (
|
|
7549
|
+
if (A++, U >= 32 && A * 100 / x > 10) return true;
|
|
7550
7550
|
}
|
|
7551
7551
|
}
|
|
7552
|
-
return !!(
|
|
7552
|
+
return !!(A * 100 / x > 10 || A > 1 && g(b, x));
|
|
7553
7553
|
}
|
|
7554
7554
|
c(v, "isBinaryCheck");
|
|
7555
7555
|
function M(b) {
|
|
@@ -7562,15 +7562,15 @@ function Bi() {
|
|
|
7562
7562
|
return c(D, "isStatFile"), xt;
|
|
7563
7563
|
}
|
|
7564
7564
|
c(Bi, "requireLib");
|
|
7565
|
-
var Pi = Bi(), z = Uint8Array, at = Uint16Array,
|
|
7565
|
+
var Pi = Bi(), z = Uint8Array, at = Uint16Array, ye = Int32Array, se = new z([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0]), oe = new z([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0]), be = new z([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Pr = c(function(t, e) {
|
|
7566
7566
|
for (var r = new at(31), n = 0; n < 31; ++n) r[n] = e += 1 << t[n - 1];
|
|
7567
|
-
for (var i = new
|
|
7567
|
+
for (var i = new ye(r[30]), n = 1; n < 30; ++n) for (var s = r[n]; s < r[n + 1]; ++s) i[s] = s - r[n] << 5 | n;
|
|
7568
7568
|
return { b: r, r: i };
|
|
7569
|
-
}, "freb"),
|
|
7570
|
-
|
|
7571
|
-
for (var
|
|
7569
|
+
}, "freb"), Or = Pr(se, 2), Lr = Or.b, Ce = Or.r;
|
|
7570
|
+
Lr[28] = 258, Ce[258] = 28;
|
|
7571
|
+
for (var Nr = Pr(oe, 0), Oi = Nr.b, Mr = Nr.r, ve = new at(32768), W = 0; W < 32768; ++W) {
|
|
7572
7572
|
var Ut = (W & 43690) >> 1 | (W & 21845) << 1;
|
|
7573
|
-
Ut = (Ut & 52428) >> 2 | (Ut & 13107) << 2, Ut = (Ut & 61680) >> 4 | (Ut & 3855) << 4,
|
|
7573
|
+
Ut = (Ut & 52428) >> 2 | (Ut & 13107) << 2, Ut = (Ut & 61680) >> 4 | (Ut & 3855) << 4, ve[W] = ((Ut & 65280) >> 8 | (Ut & 255) << 8) >> 1;
|
|
7574
7574
|
}
|
|
7575
7575
|
for (var _t = c((function(t, e, r) {
|
|
7576
7576
|
for (var n = t.length, i = 0, s = new at(e); i < n; ++i) t[i] && ++s[t[i] - 1];
|
|
@@ -7580,24 +7580,24 @@ for (var _t = c((function(t, e, r) {
|
|
|
7580
7580
|
if (r) {
|
|
7581
7581
|
l = new at(1 << e);
|
|
7582
7582
|
var h = 15 - e;
|
|
7583
|
-
for (i = 0; i < n; ++i) if (t[i]) for (var d = i << 4 | t[i], g = e - t[i],
|
|
7584
|
-
} else for (l = new at(n), i = 0; i < n; ++i) t[i] && (l[i] =
|
|
7583
|
+
for (i = 0; i < n; ++i) if (t[i]) for (var d = i << 4 | t[i], g = e - t[i], w = a[t[i] - 1]++ << g, C = w | (1 << g) - 1; w <= C; ++w) l[ve[w] >> h] = d;
|
|
7584
|
+
} else for (l = new at(n), i = 0; i < n; ++i) t[i] && (l[i] = ve[a[t[i] - 1]++] >> 15 - t[i]);
|
|
7585
7585
|
return l;
|
|
7586
7586
|
}), "hMap"), Bt = new z(288), W = 0; W < 144; ++W) Bt[W] = 8;
|
|
7587
7587
|
for (var W = 144; W < 256; ++W) Bt[W] = 9;
|
|
7588
7588
|
for (var W = 256; W < 280; ++W) Bt[W] = 7;
|
|
7589
7589
|
for (var W = 280; W < 288; ++W) Bt[W] = 8;
|
|
7590
7590
|
for (var Jt = new z(32), W = 0; W < 32; ++W) Jt[W] = 5;
|
|
7591
|
-
var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
7591
|
+
var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1), Ue = c(function(t) {
|
|
7592
7592
|
for (var e = t[0], r = 1; r < t.length; ++r) t[r] > e && (e = t[r]);
|
|
7593
7593
|
return e;
|
|
7594
7594
|
}, "max"), mt = c(function(t, e, r) {
|
|
7595
7595
|
var n = e / 8 | 0;
|
|
7596
7596
|
return (t[n] | t[n + 1] << 8) >> (e & 7) & r;
|
|
7597
|
-
}, "bits"),
|
|
7597
|
+
}, "bits"), Be = c(function(t, e) {
|
|
7598
7598
|
var r = e / 8 | 0;
|
|
7599
7599
|
return (t[r] | t[r + 1] << 8 | t[r + 2] << 16) >> (e & 7);
|
|
7600
|
-
}, "bits16"),
|
|
7600
|
+
}, "bits16"), Pe = c(function(t) {
|
|
7601
7601
|
return (t + 7) / 8 | 0;
|
|
7602
7602
|
}, "shft"), Qt = c(function(t, e, r) {
|
|
7603
7603
|
return (e == null || e < 0) && (e = 0), (r == null || r > t.length) && (r = t.length), new z(t.subarray(e, r));
|
|
@@ -7616,69 +7616,69 @@ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
|
7616
7616
|
var X = new z(Math.max(dt * 2, rt));
|
|
7617
7617
|
X.set(r), r = X;
|
|
7618
7618
|
}
|
|
7619
|
-
}, "cbuf"), g = e.f || 0,
|
|
7619
|
+
}, "cbuf"), g = e.f || 0, w = e.p || 0, C = e.b || 0, v = e.l, M = e.d, D = e.m, b = e.n, P = i * 8;
|
|
7620
7620
|
do {
|
|
7621
7621
|
if (!v) {
|
|
7622
|
-
g = mt(t,
|
|
7623
|
-
var
|
|
7624
|
-
if (
|
|
7625
|
-
else if (
|
|
7626
|
-
var H = mt(t,
|
|
7627
|
-
|
|
7628
|
-
for (var u = new z(o), f = new z(19), _ = 0; _ < j; ++_) f[
|
|
7629
|
-
|
|
7630
|
-
for (var m =
|
|
7631
|
-
var p = T[mt(t,
|
|
7632
|
-
|
|
7622
|
+
g = mt(t, w, 1);
|
|
7623
|
+
var A = mt(t, w + 1, 3);
|
|
7624
|
+
if (w += 3, A) if (A == 1) v = Ni, M = Di, D = 9, b = 5;
|
|
7625
|
+
else if (A == 2) {
|
|
7626
|
+
var H = mt(t, w, 31) + 257, j = mt(t, w + 10, 15) + 4, o = H + mt(t, w + 5, 31) + 1;
|
|
7627
|
+
w += 14;
|
|
7628
|
+
for (var u = new z(o), f = new z(19), _ = 0; _ < j; ++_) f[be[_]] = mt(t, w + _ * 3, 7);
|
|
7629
|
+
w += j * 3;
|
|
7630
|
+
for (var m = Ue(f), I = (1 << m) - 1, T = _t(f, m, 1), _ = 0; _ < o; ) {
|
|
7631
|
+
var p = T[mt(t, w, I)];
|
|
7632
|
+
w += p & 15;
|
|
7633
7633
|
var O = p >> 4;
|
|
7634
7634
|
if (O < 16) u[_++] = O;
|
|
7635
7635
|
else {
|
|
7636
7636
|
var E = 0, S = 0;
|
|
7637
|
-
for (O == 16 ? (S = 3 + mt(t,
|
|
7637
|
+
for (O == 16 ? (S = 3 + mt(t, w, 3), w += 2, E = u[_ - 1]) : O == 17 ? (S = 3 + mt(t, w, 7), w += 3) : O == 18 && (S = 11 + mt(t, w, 127), w += 7); S--; ) u[_++] = E;
|
|
7638
7638
|
}
|
|
7639
7639
|
}
|
|
7640
7640
|
var R = u.subarray(0, H), y = u.subarray(H);
|
|
7641
|
-
D =
|
|
7641
|
+
D = Ue(R), b = Ue(y), v = _t(R, D, 1), M = _t(y, b, 1);
|
|
7642
7642
|
} else nt(1);
|
|
7643
7643
|
else {
|
|
7644
|
-
var O =
|
|
7644
|
+
var O = Pe(w) + 4, x = t[O - 4] | t[O - 3] << 8, U = O + x;
|
|
7645
7645
|
if (U > i) {
|
|
7646
7646
|
h && nt(0);
|
|
7647
7647
|
break;
|
|
7648
7648
|
}
|
|
7649
|
-
l && d(C + x), r.set(t.subarray(O, U), C), e.b = C += x, e.p =
|
|
7649
|
+
l && d(C + x), r.set(t.subarray(O, U), C), e.b = C += x, e.p = w = U * 8, e.f = g;
|
|
7650
7650
|
continue;
|
|
7651
7651
|
}
|
|
7652
|
-
if (
|
|
7652
|
+
if (w > P) {
|
|
7653
7653
|
h && nt(0);
|
|
7654
7654
|
break;
|
|
7655
7655
|
}
|
|
7656
7656
|
}
|
|
7657
7657
|
l && d(C + 131072);
|
|
7658
|
-
for (var L = (1 << D) - 1, B = (1 << b) - 1, $ =
|
|
7659
|
-
var E = v[
|
|
7660
|
-
if (
|
|
7658
|
+
for (var L = (1 << D) - 1, B = (1 << b) - 1, $ = w; ; $ = w) {
|
|
7659
|
+
var E = v[Be(t, w) & L], F = E >> 4;
|
|
7660
|
+
if (w += E & 15, w > P) {
|
|
7661
7661
|
h && nt(0);
|
|
7662
7662
|
break;
|
|
7663
7663
|
}
|
|
7664
7664
|
if (E || nt(2), F < 256) r[C++] = F;
|
|
7665
7665
|
else if (F == 256) {
|
|
7666
|
-
$ =
|
|
7666
|
+
$ = w, v = null;
|
|
7667
7667
|
break;
|
|
7668
7668
|
} else {
|
|
7669
7669
|
var V = F - 254;
|
|
7670
7670
|
if (F > 264) {
|
|
7671
7671
|
var _ = F - 257, N = se[_];
|
|
7672
|
-
V = mt(t,
|
|
7672
|
+
V = mt(t, w, (1 << N) - 1) + Lr[_], w += N;
|
|
7673
7673
|
}
|
|
7674
|
-
var k = M[
|
|
7675
|
-
k || nt(3),
|
|
7674
|
+
var k = M[Be(t, w) & B], Y = k >> 4;
|
|
7675
|
+
k || nt(3), w += k & 15;
|
|
7676
7676
|
var y = Oi[Y];
|
|
7677
7677
|
if (Y > 3) {
|
|
7678
7678
|
var N = oe[Y];
|
|
7679
|
-
y +=
|
|
7679
|
+
y += Be(t, w) & (1 << N) - 1, w += N;
|
|
7680
7680
|
}
|
|
7681
|
-
if (
|
|
7681
|
+
if (w > P) {
|
|
7682
7682
|
h && nt(0);
|
|
7683
7683
|
break;
|
|
7684
7684
|
}
|
|
@@ -7694,7 +7694,7 @@ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
|
7694
7694
|
e.l = v, e.p = $, e.b = C, e.f = g, v && (g = 1, e.m = D, e.d = M, e.n = b);
|
|
7695
7695
|
} while (!g);
|
|
7696
7696
|
return C != r.length && a ? Qt(r, 0, C) : r.subarray(0, C);
|
|
7697
|
-
}, "inflt"),
|
|
7697
|
+
}, "inflt"), At = c(function(t, e, r) {
|
|
7698
7698
|
r <<= e & 7;
|
|
7699
7699
|
var n = e / 8 | 0;
|
|
7700
7700
|
t[n] |= r, t[n + 1] |= r >> 8;
|
|
@@ -7702,10 +7702,10 @@ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
|
7702
7702
|
r <<= e & 7;
|
|
7703
7703
|
var n = e / 8 | 0;
|
|
7704
7704
|
t[n] |= r, t[n + 1] |= r >> 8, t[n + 2] |= r >> 16;
|
|
7705
|
-
}, "wbits16"),
|
|
7705
|
+
}, "wbits16"), Oe = c(function(t, e) {
|
|
7706
7706
|
for (var r = [], n = 0; n < t.length; ++n) t[n] && r.push({ s: n, f: t[n] });
|
|
7707
7707
|
var i = r.length, s = r.slice();
|
|
7708
|
-
if (!i) return { t:
|
|
7708
|
+
if (!i) return { t: $r, l: 0 };
|
|
7709
7709
|
if (i == 1) {
|
|
7710
7710
|
var a = new z(r[0].s + 1);
|
|
7711
7711
|
return a[r[0].s] = 1, { t: a, l: 1 };
|
|
@@ -7713,17 +7713,17 @@ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
|
7713
7713
|
r.sort(function(U, H) {
|
|
7714
7714
|
return U.f - H.f;
|
|
7715
7715
|
}), r.push({ s: -1, f: 25001 });
|
|
7716
|
-
var l = r[0], h = r[1], d = 0, g = 1,
|
|
7717
|
-
for (r[0] = { s: -1, f: l.f + h.f, l, r: h }; g != i - 1; ) l = r[r[d].f < r[
|
|
7716
|
+
var l = r[0], h = r[1], d = 0, g = 1, w = 2;
|
|
7717
|
+
for (r[0] = { s: -1, f: l.f + h.f, l, r: h }; g != i - 1; ) l = r[r[d].f < r[w].f ? d++ : w++], h = r[d != g && r[d].f < r[w].f ? d++ : w++], r[g++] = { s: -1, f: l.f + h.f, l, r: h };
|
|
7718
7718
|
for (var C = s[0].s, n = 1; n < i; ++n) s[n].s > C && (C = s[n].s);
|
|
7719
|
-
var v = new at(C + 1), M =
|
|
7719
|
+
var v = new at(C + 1), M = Le(r[g - 1], v, 0);
|
|
7720
7720
|
if (M > e) {
|
|
7721
7721
|
var n = 0, D = 0, b = M - e, P = 1 << b;
|
|
7722
7722
|
for (s.sort(function(H, j) {
|
|
7723
7723
|
return v[j.s] - v[H.s] || H.f - j.f;
|
|
7724
7724
|
}); n < i; ++n) {
|
|
7725
|
-
var
|
|
7726
|
-
if (v[
|
|
7725
|
+
var A = s[n].s;
|
|
7726
|
+
if (v[A] > e) D += P - (1 << M - v[A]), v[A] = e;
|
|
7727
7727
|
else break;
|
|
7728
7728
|
}
|
|
7729
7729
|
for (D >>= b; D > 0; ) {
|
|
@@ -7737,9 +7737,9 @@ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
|
7737
7737
|
M = e;
|
|
7738
7738
|
}
|
|
7739
7739
|
return { t: new z(v), l: M };
|
|
7740
|
-
}, "hTree"),
|
|
7741
|
-
return t.s == -1 ? Math.max(
|
|
7742
|
-
}, "ln"),
|
|
7740
|
+
}, "hTree"), Le = c(function(t, e, r) {
|
|
7741
|
+
return t.s == -1 ? Math.max(Le(t.l, e, r + 1), Le(t.r, e, r + 1)) : e[t.s] = r;
|
|
7742
|
+
}, "ln"), Dr = c(function(t) {
|
|
7743
7743
|
for (var e = t.length; e && !t[--e]; ) ;
|
|
7744
7744
|
for (var r = new at(++e), n = 0, i = t[0], s = 1, a = c(function(h) {
|
|
7745
7745
|
r[n++] = h;
|
|
@@ -7759,52 +7759,52 @@ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
|
7759
7759
|
}, "lc"), Xt = c(function(t, e) {
|
|
7760
7760
|
for (var r = 0, n = 0; n < e.length; ++n) r += t[n] * e[n];
|
|
7761
7761
|
return r;
|
|
7762
|
-
}, "clen"),
|
|
7763
|
-
var n = r.length, i =
|
|
7762
|
+
}, "clen"), xr = c(function(t, e, r) {
|
|
7763
|
+
var n = r.length, i = Pe(e + 2);
|
|
7764
7764
|
t[i] = n & 255, t[i + 1] = n >> 8, t[i + 2] = t[i] ^ 255, t[i + 3] = t[i + 1] ^ 255;
|
|
7765
7765
|
for (var s = 0; s < n; ++s) t[i + s + 4] = r[s];
|
|
7766
7766
|
return (i + 4 + n) * 8;
|
|
7767
|
-
}, "wfblk"),
|
|
7768
|
-
|
|
7769
|
-
for (var
|
|
7767
|
+
}, "wfblk"), Gr = c(function(t, e, r, n, i, s, a, l, h, d, g) {
|
|
7768
|
+
At(e, g++, r), ++i[256];
|
|
7769
|
+
for (var w = Oe(i, 15), C = w.t, v = w.l, M = Oe(s, 15), D = M.t, b = M.l, P = Dr(C), A = P.c, O = P.n, x = Dr(D), U = x.c, H = x.n, j = new at(19), o = 0; o < A.length; ++o) ++j[A[o] & 31];
|
|
7770
7770
|
for (var o = 0; o < U.length; ++o) ++j[U[o] & 31];
|
|
7771
|
-
for (var u =
|
|
7771
|
+
for (var u = Oe(j, 7), f = u.t, _ = u.l, m = 19; m > 4 && !f[be[m - 1]]; --m) ;
|
|
7772
7772
|
var I = d + 5 << 3, T = Xt(i, Bt) + Xt(s, Jt) + a, p = Xt(i, C) + Xt(s, D) + a + 14 + 3 * m + Xt(j, f) + 2 * j[16] + 3 * j[17] + 7 * j[18];
|
|
7773
|
-
if (h >= 0 && I <= T && I <= p) return
|
|
7773
|
+
if (h >= 0 && I <= T && I <= p) return xr(e, g, t.subarray(h, h + d));
|
|
7774
7774
|
var E, S, R, y;
|
|
7775
|
-
if (
|
|
7775
|
+
if (At(e, g, 1 + (p < T)), g += 2, p < T) {
|
|
7776
7776
|
E = _t(C, v, 0), S = C, R = _t(D, b, 0), y = D;
|
|
7777
7777
|
var L = _t(f, _, 0);
|
|
7778
|
-
|
|
7779
|
-
for (var o = 0; o < m; ++o)
|
|
7778
|
+
At(e, g, O - 257), At(e, g + 5, H - 1), At(e, g + 10, m - 4), g += 14;
|
|
7779
|
+
for (var o = 0; o < m; ++o) At(e, g + 3 * o, f[be[o]]);
|
|
7780
7780
|
g += 3 * m;
|
|
7781
|
-
for (var B = [
|
|
7781
|
+
for (var B = [A, U], $ = 0; $ < 2; ++$) for (var F = B[$], o = 0; o < F.length; ++o) {
|
|
7782
7782
|
var V = F[o] & 31;
|
|
7783
|
-
|
|
7783
|
+
At(e, g, L[V]), g += f[V], V > 15 && (At(e, g, F[o] >> 5 & 127), g += F[o] >> 12);
|
|
7784
7784
|
}
|
|
7785
7785
|
} else E = Li, S = Bt, R = Mi, y = Jt;
|
|
7786
7786
|
for (var o = 0; o < l; ++o) {
|
|
7787
7787
|
var N = n[o];
|
|
7788
7788
|
if (N > 255) {
|
|
7789
7789
|
var V = N >> 18 & 31;
|
|
7790
|
-
zt(e, g, E[V + 257]), g += S[V + 257], V > 7 && (
|
|
7790
|
+
zt(e, g, E[V + 257]), g += S[V + 257], V > 7 && (At(e, g, N >> 23 & 31), g += se[V]);
|
|
7791
7791
|
var k = N & 31;
|
|
7792
7792
|
zt(e, g, R[k]), g += y[k], k > 3 && (zt(e, g, N >> 5 & 8191), g += oe[k]);
|
|
7793
7793
|
} else zt(e, g, E[N]), g += S[N];
|
|
7794
7794
|
}
|
|
7795
7795
|
return zt(e, g, E[256]), g + S[256];
|
|
7796
|
-
}, "wblk"), $i = new
|
|
7796
|
+
}, "wblk"), $i = new ye([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), $r = new z(0), Hi = c(function(t, e, r, n, i, s) {
|
|
7797
7797
|
var a = s.z || t.length, l = new z(n + a + 5 * (1 + Math.ceil(a / 7e3)) + i), h = l.subarray(n, l.length - i), d = s.l, g = (s.r || 0) & 7;
|
|
7798
7798
|
if (e) {
|
|
7799
7799
|
g && (h[0] = s.r >> 3);
|
|
7800
|
-
for (var
|
|
7801
|
-
return (t[Z] ^ t[Z + 1] << P ^ t[Z + 2] <<
|
|
7802
|
-
}, "hsh"), x = new
|
|
7800
|
+
for (var w = $i[e - 1], C = w >> 13, v = w & 8191, M = (1 << r) - 1, D = s.p || new at(32768), b = s.h || new at(M + 1), P = Math.ceil(r / 3), A = 2 * P, O = c(function(Z) {
|
|
7801
|
+
return (t[Z] ^ t[Z + 1] << P ^ t[Z + 2] << A) & M;
|
|
7802
|
+
}, "hsh"), x = new ye(25e3), U = new at(288), H = new at(32), j = 0, o = 0, u = s.i || 0, f = 0, _ = s.w || 0, m = 0; u + 2 < a; ++u) {
|
|
7803
7803
|
var I = O(u), T = u & 32767, p = b[I];
|
|
7804
7804
|
if (D[T] = p, b[I] = T, _ <= u) {
|
|
7805
7805
|
var E = a - u;
|
|
7806
7806
|
if ((j > 7e3 || f > 24576) && (E > 423 || !d)) {
|
|
7807
|
-
g =
|
|
7807
|
+
g = Gr(t, h, 0, x, U, H, o, f, m, u - m, g), f = j = o = 0, m = u;
|
|
7808
7808
|
for (var S = 0; S < 286; ++S) U[S] = 0;
|
|
7809
7809
|
for (var S = 0; S < 30; ++S) H[S] = 0;
|
|
7810
7810
|
}
|
|
@@ -7823,22 +7823,22 @@ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
|
7823
7823
|
T = p, p = D[T], B += T - p & 32767;
|
|
7824
7824
|
}
|
|
7825
7825
|
if (y) {
|
|
7826
|
-
x[f++] = 268435456 |
|
|
7827
|
-
var rt =
|
|
7826
|
+
x[f++] = 268435456 | Ce[R] << 18 | Mr[y];
|
|
7827
|
+
var rt = Ce[R] & 31, dt = Mr[y] & 31;
|
|
7828
7828
|
o += se[rt] + oe[dt], ++U[257 + rt], ++H[dt], _ = u + R, ++j;
|
|
7829
7829
|
} else x[f++] = t[u], ++U[t[u]];
|
|
7830
7830
|
}
|
|
7831
7831
|
}
|
|
7832
7832
|
for (u = Math.max(u, _); u < a; ++u) x[f++] = t[u], ++U[t[u]];
|
|
7833
|
-
g =
|
|
7833
|
+
g = Gr(t, h, d, x, U, H, o, f, m, u - m, g), d || (s.r = g & 7 | h[g / 8 | 0] << 3, g -= 7, s.h = b, s.p = D, s.i = u, s.w = _);
|
|
7834
7834
|
} else {
|
|
7835
7835
|
for (var u = s.w || 0; u < a + d; u += 65535) {
|
|
7836
7836
|
var X = u + 65535;
|
|
7837
|
-
X >= a && (h[g / 8 | 0] = d, X = a), g =
|
|
7837
|
+
X >= a && (h[g / 8 | 0] = d, X = a), g = xr(h, g + 1, t.subarray(u, X));
|
|
7838
7838
|
}
|
|
7839
7839
|
s.i = a;
|
|
7840
7840
|
}
|
|
7841
|
-
return Qt(l, 0, n +
|
|
7841
|
+
return Qt(l, 0, n + Pe(g) + i);
|
|
7842
7842
|
}, "dflt"), ki = (function() {
|
|
7843
7843
|
for (var t = new Int32Array(256), e = 0; e < 256; ++e) {
|
|
7844
7844
|
for (var r = e, n = 9; --n; ) r = (r & 1 && -306674912) ^ r >>> 1;
|
|
@@ -7859,7 +7859,7 @@ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
|
7859
7859
|
a.set(s), a.set(t, s.length), t = a, i.w = s.length;
|
|
7860
7860
|
}
|
|
7861
7861
|
return Hi(t, e.level == null ? 6 : e.level, e.mem == null ? i.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(t.length))) * 1.5) : 20 : 12 + e.mem, r, n, i);
|
|
7862
|
-
}, "dopt"),
|
|
7862
|
+
}, "dopt"), Hr = c(function(t, e) {
|
|
7863
7863
|
var r = {};
|
|
7864
7864
|
for (var n in t) r[n] = t[n];
|
|
7865
7865
|
for (var n in e) r[n] = e[n];
|
|
@@ -7868,7 +7868,7 @@ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1),
|
|
|
7868
7868
|
return t[e] | t[e + 1] << 8;
|
|
7869
7869
|
}, "b2"), gt = c(function(t, e) {
|
|
7870
7870
|
return (t[e] | t[e + 1] << 8 | t[e + 2] << 16 | t[e + 3] << 24) >>> 0;
|
|
7871
|
-
}, "b4"),
|
|
7871
|
+
}, "b4"), Ne = c(function(t, e) {
|
|
7872
7872
|
return gt(t, e) + gt(t, e + 4) * 4294967296;
|
|
7873
7873
|
}, "b8"), et = c(function(t, e, r) {
|
|
7874
7874
|
for (; r; ++e) t[e] = r, r >>>= 8;
|
|
@@ -7881,14 +7881,14 @@ function Ki(t, e) {
|
|
|
7881
7881
|
return Gi(t, { i: 2 }, e && e.out, e && e.dictionary);
|
|
7882
7882
|
}
|
|
7883
7883
|
c(Ki, "inflateSync");
|
|
7884
|
-
var
|
|
7884
|
+
var kr = c(function(t, e, r, n) {
|
|
7885
7885
|
for (var i in t) {
|
|
7886
7886
|
var s = t[i], a = e + i, l = n;
|
|
7887
|
-
Array.isArray(s) && (l =
|
|
7887
|
+
Array.isArray(s) && (l = Hr(n, s[1]), s = s[0]), s instanceof z ? r[a] = [s, l] : (r[a += "/"] = [new z(0), l], kr(s, a, r, n));
|
|
7888
7888
|
}
|
|
7889
|
-
}, "fltn"),
|
|
7889
|
+
}, "fltn"), jr = typeof TextEncoder < "u" && new TextEncoder(), Me = typeof TextDecoder < "u" && new TextDecoder(), Wi = 0;
|
|
7890
7890
|
try {
|
|
7891
|
-
|
|
7891
|
+
Me.decode($r, { stream: true }), Wi = 1;
|
|
7892
7892
|
} catch {
|
|
7893
7893
|
}
|
|
7894
7894
|
var qi = c(function(t) {
|
|
@@ -7898,9 +7898,9 @@ var qi = c(function(t) {
|
|
|
7898
7898
|
i ? i == 3 ? (n = ((n & 15) << 18 | (t[r++] & 63) << 12 | (t[r++] & 63) << 6 | t[r++] & 63) - 65536, e += String.fromCharCode(55296 | n >> 10, 56320 | n & 1023)) : i & 1 ? e += String.fromCharCode((n & 31) << 6 | t[r++] & 63) : e += String.fromCharCode((n & 15) << 12 | (t[r++] & 63) << 6 | t[r++] & 63) : e += String.fromCharCode(n);
|
|
7899
7899
|
}
|
|
7900
7900
|
}, "dutf8");
|
|
7901
|
-
function
|
|
7901
|
+
function Fr(t, e) {
|
|
7902
7902
|
var r;
|
|
7903
|
-
if (
|
|
7903
|
+
if (jr) return jr.encode(t);
|
|
7904
7904
|
for (var n = t.length, i = new z(t.length + (t.length >> 1)), s = 0, a = c(function(d) {
|
|
7905
7905
|
i[s++] = d;
|
|
7906
7906
|
}, "w"), r = 0; r < n; ++r) {
|
|
@@ -7913,13 +7913,13 @@ function jr(t, e) {
|
|
|
7913
7913
|
}
|
|
7914
7914
|
return Qt(i, 0, s);
|
|
7915
7915
|
}
|
|
7916
|
-
c(
|
|
7916
|
+
c(Fr, "strToU8");
|
|
7917
7917
|
function Yi(t, e) {
|
|
7918
7918
|
if (e) {
|
|
7919
7919
|
for (var r = "", n = 0; n < t.length; n += 16384) r += String.fromCharCode.apply(null, t.subarray(n, n + 16384));
|
|
7920
7920
|
return r;
|
|
7921
7921
|
} else {
|
|
7922
|
-
if (
|
|
7922
|
+
if (Me) return Me.decode(t);
|
|
7923
7923
|
var i = qi(t), s = i.s, r = i.r;
|
|
7924
7924
|
return r.length && nt(8), s;
|
|
7925
7925
|
}
|
|
@@ -7932,19 +7932,19 @@ var Ji = c(function(t, e) {
|
|
|
7932
7932
|
return [It(t, e + 10), h, d, i, s + It(t, e + 30) + It(t, e + 32), g];
|
|
7933
7933
|
}, "zh"), zi = c(function(t, e) {
|
|
7934
7934
|
for (; It(t, e) != 1; e += 4 + It(t, e + 2)) ;
|
|
7935
|
-
return [
|
|
7936
|
-
}, "z64e"),
|
|
7935
|
+
return [Ne(t, e + 12), Ne(t, e + 4), Ne(t, e + 20)];
|
|
7936
|
+
}, "z64e"), De = c(function(t) {
|
|
7937
7937
|
var e = 0;
|
|
7938
7938
|
if (t) for (var r in t) {
|
|
7939
7939
|
var n = t[r].length;
|
|
7940
7940
|
n > 65535 && nt(9), e += n + 4;
|
|
7941
7941
|
}
|
|
7942
7942
|
return e;
|
|
7943
|
-
}, "exfl"),
|
|
7944
|
-
var h = n.length, d = r.extra, g = l && l.length,
|
|
7943
|
+
}, "exfl"), Vr = c(function(t, e, r, n, i, s, a, l) {
|
|
7944
|
+
var h = n.length, d = r.extra, g = l && l.length, w = De(d);
|
|
7945
7945
|
et(t, e, a != null ? 33639248 : 67324752), e += 4, a != null && (t[e++] = 20, t[e++] = r.os), t[e] = 20, e += 2, t[e++] = r.flag << 1 | (s < 0 && 8), t[e++] = i && 8, t[e++] = r.compression & 255, t[e++] = r.compression >> 8;
|
|
7946
7946
|
var C = new Date(r.mtime == null ? Date.now() : r.mtime), v = C.getFullYear() - 1980;
|
|
7947
|
-
if ((v < 0 || v > 119) && nt(10), et(t, e, v << 25 | C.getMonth() + 1 << 21 | C.getDate() << 16 | C.getHours() << 11 | C.getMinutes() << 5 | C.getSeconds() >> 1), e += 4, s != -1 && (et(t, e, r.crc), et(t, e + 4, s < 0 ? -s - 2 : s), et(t, e + 8, r.size)), et(t, e + 12, h), et(t, e + 14,
|
|
7947
|
+
if ((v < 0 || v > 119) && nt(10), et(t, e, v << 25 | C.getMonth() + 1 << 21 | C.getDate() << 16 | C.getHours() << 11 | C.getMinutes() << 5 | C.getSeconds() >> 1), e += 4, s != -1 && (et(t, e, r.crc), et(t, e + 4, s < 0 ? -s - 2 : s), et(t, e + 8, r.size)), et(t, e + 12, h), et(t, e + 14, w), e += 16, a != null && (et(t, e, g), et(t, e + 6, r.attrs), et(t, e + 10, a), e += 14), t.set(n, e), e += h, w) for (var M in d) {
|
|
7948
7948
|
var D = d[M], b = D.length;
|
|
7949
7949
|
et(t, e, +M), et(t, e + 2, b), t.set(D, e + 4), e += 4 + b;
|
|
7950
7950
|
}
|
|
@@ -7955,19 +7955,19 @@ var Ji = c(function(t, e) {
|
|
|
7955
7955
|
function Zi(t, e) {
|
|
7956
7956
|
e || (e = {});
|
|
7957
7957
|
var r = {}, n = [];
|
|
7958
|
-
|
|
7958
|
+
kr(t, "", r, e);
|
|
7959
7959
|
var i = 0, s = 0;
|
|
7960
7960
|
for (var a in r) {
|
|
7961
|
-
var l = r[a], h = l[0], d = l[1], g = d.level == 0 ? 0 : 8,
|
|
7961
|
+
var l = r[a], h = l[0], d = l[1], g = d.level == 0 ? 0 : 8, w = Fr(a), C = w.length, v = d.comment, M = v && Fr(v), D = M && M.length, b = De(d.extra);
|
|
7962
7962
|
C > 65535 && nt(11);
|
|
7963
|
-
var P = g ? Vi(h, d) : h,
|
|
7964
|
-
O.p(h), n.push(
|
|
7963
|
+
var P = g ? Vi(h, d) : h, A = P.length, O = ji();
|
|
7964
|
+
O.p(h), n.push(Hr(d, { size: h.length, crc: O.d(), c: P, f: w, m: M, u: C != a.length || M && v.length != D, o: i, compression: g })), i += 30 + C + b + A, s += 76 + 2 * (C + b) + (D || 0) + A;
|
|
7965
7965
|
}
|
|
7966
7966
|
for (var x = new z(s + 22), U = i, H = s - i, j = 0; j < n.length; ++j) {
|
|
7967
|
-
var
|
|
7968
|
-
|
|
7969
|
-
var o = 30 +
|
|
7970
|
-
x.set(
|
|
7967
|
+
var w = n[j];
|
|
7968
|
+
Vr(x, w.o, w, w.f, w.u, w.c.length);
|
|
7969
|
+
var o = 30 + w.f.length + De(w.extra);
|
|
7970
|
+
x.set(w.c, w.o + o), Vr(x, i, w, w.f, w.u, w.c.length, w.o, w.m), i += 16 + o + (w.m ? w.m.length : 0);
|
|
7971
7971
|
}
|
|
7972
7972
|
return Xi(x, i, n.length, H, U), x;
|
|
7973
7973
|
}
|
|
@@ -7982,24 +7982,24 @@ function ts(t, e) {
|
|
|
7982
7982
|
a = gt(t, l) == 101075792, a && (i = gt(t, l + 32), s = gt(t, l + 48));
|
|
7983
7983
|
}
|
|
7984
7984
|
for (var h = 0; h < i; ++h) {
|
|
7985
|
-
var d = Qi(t, s, a), g = d[0],
|
|
7986
|
-
s = M, g ? g == 8 ? r[v] = Ki(t.subarray(b, b +
|
|
7985
|
+
var d = Qi(t, s, a), g = d[0], w = d[1], C = d[2], v = d[3], M = d[4], D = d[5], b = Ji(t, D);
|
|
7986
|
+
s = M, g ? g == 8 ? r[v] = Ki(t.subarray(b, b + w), { out: new z(C) }) : nt(14, "unknown compression type " + g) : r[v] = Qt(t, b, b + w);
|
|
7987
7987
|
}
|
|
7988
7988
|
return r;
|
|
7989
7989
|
}
|
|
7990
7990
|
c(ts, "unzipSync");
|
|
7991
7991
|
const es = [/^\/$/, /^\*+$/, /^[0-9]+$/], rs = ["/artifact/", "https://", "http://", "*********"], ns = 3;
|
|
7992
|
-
function
|
|
7992
|
+
function Kr(t) {
|
|
7993
7993
|
return t.filter((e) => !(e.length < ns || es.some((r) => r.test(e)) || rs.some((r) => e.includes(r))));
|
|
7994
7994
|
}
|
|
7995
|
-
c(
|
|
7996
|
-
const yt = Symbol.for("@ts-pattern/matcher"), is = Symbol.for("@ts-pattern/isVariadic"), ae = "@ts-pattern/anonymous-select-key",
|
|
7995
|
+
c(Kr, "filterSensitiveValues");
|
|
7996
|
+
const yt = Symbol.for("@ts-pattern/matcher"), is = Symbol.for("@ts-pattern/isVariadic"), ae = "@ts-pattern/anonymous-select-key", xe = c((t) => !!(t && typeof t == "object"), "r"), ce = c((t) => t && !!t[yt], "i"), St = c((t, e, r) => {
|
|
7997
7997
|
if (ce(t)) {
|
|
7998
7998
|
const n = t[yt](), { matched: i, selections: s } = n.match(e);
|
|
7999
7999
|
return i && s && Object.keys(s).forEach((a) => r(a, s[a])), i;
|
|
8000
8000
|
}
|
|
8001
|
-
if (
|
|
8002
|
-
if (!
|
|
8001
|
+
if (xe(t)) {
|
|
8002
|
+
if (!xe(e)) return false;
|
|
8003
8003
|
if (Array.isArray(t)) {
|
|
8004
8004
|
if (!Array.isArray(e)) return false;
|
|
8005
8005
|
let n = [], i = [], s = [];
|
|
@@ -8024,10 +8024,10 @@ const yt = Symbol.for("@ts-pattern/matcher"), is = Symbol.for("@ts-pattern/isVar
|
|
|
8024
8024
|
return Object.is(e, t);
|
|
8025
8025
|
}, "o"), Pt = c((t) => {
|
|
8026
8026
|
var e, r, n;
|
|
8027
|
-
return
|
|
8027
|
+
return xe(t) ? ce(t) ? (e = (r = (n = t[yt]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? e : [] : Array.isArray(t) ? Zt(t, Pt) : Zt(Object.values(t), Pt) : [];
|
|
8028
8028
|
}, "s"), Zt = c((t, e) => t.reduce((r, n) => r.concat(e(n)), []), "c");
|
|
8029
8029
|
function ct(t) {
|
|
8030
|
-
return Object.assign(t, { optional: c(() => ss(t), "optional"), and: c((e) => q(t, e), "and"), or: c((e) => os(t, e), "or"), select: c((e) => e === void 0 ?
|
|
8030
|
+
return Object.assign(t, { optional: c(() => ss(t), "optional"), and: c((e) => q(t, e), "and"), or: c((e) => os(t, e), "or"), select: c((e) => e === void 0 ? Wr(t) : Wr(e, t), "select") });
|
|
8031
8031
|
}
|
|
8032
8032
|
c(ct, "a");
|
|
8033
8033
|
function ss(t) {
|
|
@@ -8064,7 +8064,7 @@ function K(t) {
|
|
|
8064
8064
|
return { [yt]: () => ({ match: c((e) => ({ matched: !!t(e) }), "match") }) };
|
|
8065
8065
|
}
|
|
8066
8066
|
c(K, "p");
|
|
8067
|
-
function
|
|
8067
|
+
function Wr(...t) {
|
|
8068
8068
|
const e = typeof t[0] == "string" ? t[0] : void 0, r = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
|
|
8069
8069
|
return ct({ [yt]: () => ({ match: c((n) => {
|
|
8070
8070
|
let i = { [e ?? ae]: n };
|
|
@@ -8073,11 +8073,11 @@ function Kr(...t) {
|
|
|
8073
8073
|
}), selections: i };
|
|
8074
8074
|
}, "match"), getSelectionKeys: c(() => [e ?? ae].concat(r === void 0 ? [] : Pt(r)), "getSelectionKeys") }) });
|
|
8075
8075
|
}
|
|
8076
|
-
c(
|
|
8077
|
-
function
|
|
8076
|
+
c(Wr, "v");
|
|
8077
|
+
function qr(t) {
|
|
8078
8078
|
return true;
|
|
8079
8079
|
}
|
|
8080
|
-
c(
|
|
8080
|
+
c(qr, "b");
|
|
8081
8081
|
function Rt(t) {
|
|
8082
8082
|
return typeof t == "number";
|
|
8083
8083
|
}
|
|
@@ -8089,7 +8089,7 @@ c(Ot, "S");
|
|
|
8089
8089
|
function Lt(t) {
|
|
8090
8090
|
return typeof t == "bigint";
|
|
8091
8091
|
}
|
|
8092
|
-
c(Lt, "j"), ct(K(
|
|
8092
|
+
c(Lt, "j"), ct(K(qr)), ct(K(qr));
|
|
8093
8093
|
const Nt = c((t) => Object.assign(ct(t), { startsWith: c((e) => {
|
|
8094
8094
|
return Nt(q(t, (r = e, K((n) => Ot(n) && n.startsWith(r)))));
|
|
8095
8095
|
var r;
|
|
@@ -8130,12 +8130,12 @@ class as extends Error {
|
|
|
8130
8130
|
super(`Pattern matching error: no pattern matches value ${r}`), this.input = void 0, this.input = e;
|
|
8131
8131
|
}
|
|
8132
8132
|
}
|
|
8133
|
-
const
|
|
8133
|
+
const Ge = { matched: false, value: void 0 };
|
|
8134
8134
|
function cs(t) {
|
|
8135
|
-
return new
|
|
8135
|
+
return new ge(t, Ge);
|
|
8136
8136
|
}
|
|
8137
8137
|
c(cs, "M");
|
|
8138
|
-
class
|
|
8138
|
+
class ge {
|
|
8139
8139
|
static {
|
|
8140
8140
|
c(this, "R");
|
|
8141
8141
|
}
|
|
@@ -8150,13 +8150,13 @@ class me {
|
|
|
8150
8150
|
let s = false, a = {};
|
|
8151
8151
|
const l = c((d, g) => {
|
|
8152
8152
|
s = true, a[d] = g;
|
|
8153
|
-
}, "u2"), h = !n.some((d) => St(d, this.input, l)) || i && !i(this.input) ?
|
|
8154
|
-
return new
|
|
8153
|
+
}, "u2"), h = !n.some((d) => St(d, this.input, l)) || i && !i(this.input) ? Ge : { matched: true, value: r(s ? ae in a ? a[ae] : a : this.input, this.input) };
|
|
8154
|
+
return new ge(this.input, h);
|
|
8155
8155
|
}
|
|
8156
8156
|
when(e, r) {
|
|
8157
8157
|
if (this.state.matched) return this;
|
|
8158
8158
|
const n = !!e(this.input);
|
|
8159
|
-
return new
|
|
8159
|
+
return new ge(this.input, n ? { matched: true, value: r(this.input, this.input) } : Ge);
|
|
8160
8160
|
}
|
|
8161
8161
|
otherwise(e) {
|
|
8162
8162
|
return this.state.matched ? this.state.value : e(this.input);
|
|
@@ -8199,12 +8199,12 @@ function Gt({ obj: t, sensitiveValues: e }) {
|
|
|
8199
8199
|
return Object.fromEntries(Object.entries(t).map(([r, n]) => [r, ds(r) ? n : te({ sensitiveValues: e, value: n })]));
|
|
8200
8200
|
}
|
|
8201
8201
|
c(Gt, "scrubObject");
|
|
8202
|
-
function
|
|
8202
|
+
function Yr({ error: t, sensitiveValues: e }) {
|
|
8203
8203
|
return t ? { ...t, message: ot({ sensitiveValues: e, str: t.message }) } : void 0;
|
|
8204
8204
|
}
|
|
8205
|
-
c(
|
|
8205
|
+
c(Yr, "scrubError");
|
|
8206
8206
|
function ps({ event: t, sensitiveValues: e }) {
|
|
8207
|
-
return cs(t).with({ type: "console" }, (r) => ({ ...r, args: r.args?.map((n) => ({ ...n, preview: ot({ sensitiveValues: e, str: n.preview }), value: te({ sensitiveValues: e, value: n.value }) })), text: ot({ sensitiveValues: e, str: r.text }) })).with({ type: "before" }, (r) => ({ ...r, params: Gt({ obj: r.params, sensitiveValues: e }), title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "after" }, (r) => ({ ...r, error:
|
|
8207
|
+
return cs(t).with({ type: "console" }, (r) => ({ ...r, args: r.args?.map((n) => ({ ...n, preview: ot({ sensitiveValues: e, str: n.preview }), value: te({ sensitiveValues: e, value: n.value }) })), text: ot({ sensitiveValues: e, str: r.text }) })).with({ type: "before" }, (r) => ({ ...r, params: Gt({ obj: r.params, sensitiveValues: e }), title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "after" }, (r) => ({ ...r, error: Yr({ error: r.error, sensitiveValues: e }), result: r.result !== void 0 ? te({ sensitiveValues: e, value: r.result }) : void 0 })).with({ type: "action" }, (r) => ({ ...r, error: Yr({ error: r.error, sensitiveValues: e }), params: Gt({ obj: r.params, sensitiveValues: e }), result: r.result !== void 0 ? te({ sensitiveValues: e, value: r.result }) : void 0, title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "event" }, (r) => ({ ...r, params: Gt({ obj: r.params, sensitiveValues: e }) })).with({ type: "stdout" }, { type: "stderr" }, (r) => ({ ...r, text: r.text !== void 0 ? ot({ sensitiveValues: e, str: r.text }) : void 0 })).with({ type: "error" }, (r) => ({ ...r, message: ot({ sensitiveValues: e, str: r.message }) })).with({ type: "log" }, (r) => ({ ...r, message: ot({ sensitiveValues: e, str: r.message }) })).with({ type: "context-options" }, (r) => ({ ...r, options: Gt({ obj: r.options, sensitiveValues: e }), title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "frame-snapshot" }, (r) => ({ ...r, snapshot: Gt({ obj: r.snapshot, sensitiveValues: e }) })).with({ type: "resource-snapshot" }, (r) => ({ ...r, snapshot: Gt({ obj: r.snapshot, sensitiveValues: e }) })).with({ type: "screencast-frame" }, { type: "input" }, (r) => r).exhaustive();
|
|
8208
8208
|
}
|
|
8209
8209
|
c(ps, "scrubTraceEvent");
|
|
8210
8210
|
function ms({ content: t, sensitiveValues: e }) {
|
|
@@ -8222,43 +8222,43 @@ function ms({ content: t, sensitiveValues: e }) {
|
|
|
8222
8222
|
`));
|
|
8223
8223
|
}
|
|
8224
8224
|
c(ms, "scrubJsonLinesFile");
|
|
8225
|
-
function
|
|
8225
|
+
function Jr({ content: t, sensitiveValues: e }) {
|
|
8226
8226
|
const r = new TextDecoder$1(), n = new TextEncoder$1(), i = ot({ sensitiveValues: e, str: r.decode(t) });
|
|
8227
8227
|
return n.encode(i);
|
|
8228
8228
|
}
|
|
8229
|
-
c(
|
|
8230
|
-
async function
|
|
8231
|
-
const r =
|
|
8229
|
+
c(Jr, "scrubTextFile");
|
|
8230
|
+
async function $e({ sensitiveValues: t, traceBuffer: e }) {
|
|
8231
|
+
const r = Kr(t);
|
|
8232
8232
|
if (r.length === 0) return new Uint8Array(e);
|
|
8233
8233
|
const n = [...r].sort((h, d) => d.length - h.length), i = ts(new Uint8Array(e)), s = Object.entries(i), a = await Promise.all(s.map(async ([h, d]) => [h, await gs({ content: d, filename: h, sensitiveValues: n })])), l = Object.fromEntries(a);
|
|
8234
8234
|
return Zi(l);
|
|
8235
8235
|
}
|
|
8236
|
-
c(
|
|
8236
|
+
c($e, "scrubTrace");
|
|
8237
8237
|
async function gs({ content: t, filename: e, sensitiveValues: r }) {
|
|
8238
8238
|
const n = e.toLowerCase();
|
|
8239
|
-
return n.endsWith(".trace") || n.endsWith(".network") ? ms({ content: t, sensitiveValues: r }) : n.endsWith(".html") || n.endsWith(".dat") || n.endsWith(".json") ?
|
|
8239
|
+
return n.endsWith(".trace") || n.endsWith(".network") ? ms({ content: t, sensitiveValues: r }) : n.endsWith(".html") || n.endsWith(".dat") || n.endsWith(".json") ? Jr({ content: t, sensitiveValues: r }) : n.startsWith("resources/") ? Es({ content: t, sensitiveValues: r }) : t;
|
|
8240
8240
|
}
|
|
8241
8241
|
c(gs, "scrubFile");
|
|
8242
8242
|
async function Es({ content: t, sensitiveValues: e }) {
|
|
8243
|
-
return await Pi.isBinaryFile(Buffer.from(t)) ? t :
|
|
8243
|
+
return await Pi.isBinaryFile(Buffer.from(t)) ? t : Jr({ content: t, sensitiveValues: e });
|
|
8244
8244
|
}
|
|
8245
8245
|
c(Es, "scrubResourceFile");
|
|
8246
8246
|
async function _s({ sensitiveValues: t, tracePath: e }) {
|
|
8247
8247
|
const r = [], n = createReadStream(e);
|
|
8248
8248
|
for await (const s of n) r.push(Uint8Array.from(s));
|
|
8249
8249
|
const i = new Uint8Array(Buffer.concat(r));
|
|
8250
|
-
return
|
|
8250
|
+
return $e({ sensitiveValues: t, traceBuffer: i });
|
|
8251
8251
|
}
|
|
8252
8252
|
c(_s, "scrubTraceFromPath");
|
|
8253
8253
|
async function Is({ sensitiveValues: t, traceFd: e, tracePath: r }) {
|
|
8254
8254
|
const n = [], i = createReadStream(r, { autoClose: true, fd: e });
|
|
8255
8255
|
for await (const a of i) n.push(Uint8Array.from(a));
|
|
8256
8256
|
const s = new Uint8Array(Buffer.concat(n));
|
|
8257
|
-
return
|
|
8257
|
+
return $e({ sensitiveValues: t, traceBuffer: s });
|
|
8258
8258
|
}
|
|
8259
8259
|
c(Is, "scrubTraceFromFd");
|
|
8260
|
-
const
|
|
8261
|
-
class
|
|
8260
|
+
const Qr = { AUTHENTICATION_FAILED: 1008 }, Ss = 2e4, Rs = 5e4, Ts = 3e4;
|
|
8261
|
+
class ws {
|
|
8262
8262
|
static {
|
|
8263
8263
|
c(this, "WebSocketClient");
|
|
8264
8264
|
}
|
|
@@ -8296,7 +8296,7 @@ class As {
|
|
|
8296
8296
|
} catch {
|
|
8297
8297
|
}
|
|
8298
8298
|
}), this.socket.on("close", (r, n) => {
|
|
8299
|
-
this.isAuthenticated = false, this.clearPingInterval(), r ===
|
|
8299
|
+
this.isAuthenticated = false, this.clearPingInterval(), r === Qr.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();
|
|
8300
8300
|
}), this.socket.on("error", () => {
|
|
8301
8301
|
});
|
|
8302
8302
|
} catch {
|
|
@@ -8364,16 +8364,16 @@ class As {
|
|
|
8364
8364
|
return [...this.buffer];
|
|
8365
8365
|
}
|
|
8366
8366
|
}
|
|
8367
|
-
var
|
|
8367
|
+
var As = { detect({ env: t }) {
|
|
8368
8368
|
return !!t.APPVEYOR;
|
|
8369
8369
|
}, configuration({ env: t }) {
|
|
8370
8370
|
const e = t.APPVEYOR_PULL_REQUEST_NUMBER, r = !!e;
|
|
8371
8371
|
return { name: "Appveyor", service: "appveyor", commit: t.APPVEYOR_REPO_COMMIT, tag: t.APPVEYOR_REPO_TAG_NAME, build: t.APPVEYOR_BUILD_NUMBER, buildUrl: `https://ci.appveyor.com/project/${t.APPVEYOR_PROJECT_SLUG}/build/${t.APPVEYOR_BUILD_VERSION}`, branch: t.APPVEYOR_REPO_BRANCH, job: t.APPVEYOR_JOB_NUMBER, jobUrl: `https://ci.appveyor.com/project/${t.APPVEYOR_PROJECT_SLUG}/build/job/${t.APPVEYOR_JOB_ID}`, pr: e, isPr: r, prBranch: t.APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH, slug: t.APPVEYOR_REPO_NAME, root: t.APPVEYOR_BUILD_FOLDER };
|
|
8372
8372
|
} };
|
|
8373
|
-
function
|
|
8373
|
+
function zr(t) {
|
|
8374
8374
|
return (/\d+(?!.*\d+)/.exec(t) || [])[0];
|
|
8375
8375
|
}
|
|
8376
|
-
c(
|
|
8376
|
+
c(zr, "prNumber");
|
|
8377
8377
|
function ee(t) {
|
|
8378
8378
|
return t ? /^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(t)[1] : void 0;
|
|
8379
8379
|
}
|
|
@@ -8399,12 +8399,12 @@ var ys = { detect({ env: t }) {
|
|
|
8399
8399
|
} }, Us = { detect({ env: t }) {
|
|
8400
8400
|
return !!t.BUDDY_WORKSPACE_ID;
|
|
8401
8401
|
}, configuration({ env: t }) {
|
|
8402
|
-
const e =
|
|
8402
|
+
const e = zr(t.BUDDY_EXECUTION_PULL_REQUEST_ID), r = !!e;
|
|
8403
8403
|
return { name: "Buddy", service: "buddy", commit: t.BUDDY_EXECUTION_REVISION, tag: t.BUDDY_EXECUTION_TAG, build: t.BUDDY_EXECUTION_ID, buildUrl: t.BUDDY_EXECUTION_URL, branch: r ? t.BUDDY_EXECUTION_PULL_REQUEST_HEAD_BRANCH : t.BUDDY_EXECUTION_BRANCH, pr: e, isPr: r, slug: t.BUDDY_REPO_SLUG };
|
|
8404
|
-
} }, $t = { exports: {} },
|
|
8404
|
+
} }, $t = { exports: {} }, He, Xr;
|
|
8405
8405
|
function Bs() {
|
|
8406
|
-
if (
|
|
8407
|
-
|
|
8406
|
+
if (Xr) return He;
|
|
8407
|
+
Xr = 1, He = n, n.sync = i;
|
|
8408
8408
|
var t = Vt;
|
|
8409
8409
|
function e(s, a) {
|
|
8410
8410
|
var l = a.pathExt !== void 0 ? a.pathExt : process.env.PATHEXT;
|
|
@@ -8429,13 +8429,13 @@ function Bs() {
|
|
|
8429
8429
|
function i(s, a) {
|
|
8430
8430
|
return r(t.statSync(s), s, a);
|
|
8431
8431
|
}
|
|
8432
|
-
return c(i, "sync"),
|
|
8432
|
+
return c(i, "sync"), He;
|
|
8433
8433
|
}
|
|
8434
8434
|
c(Bs, "requireWindows");
|
|
8435
|
-
var
|
|
8435
|
+
var ke, Zr;
|
|
8436
8436
|
function Ps() {
|
|
8437
|
-
if (
|
|
8438
|
-
|
|
8437
|
+
if (Zr) return ke;
|
|
8438
|
+
Zr = 1, ke = e, e.sync = r;
|
|
8439
8439
|
var t = Vt;
|
|
8440
8440
|
function e(s, a, l) {
|
|
8441
8441
|
t.stat(s, function(h, d) {
|
|
@@ -8452,18 +8452,18 @@ function Ps() {
|
|
|
8452
8452
|
}
|
|
8453
8453
|
c(n, "checkStat");
|
|
8454
8454
|
function i(s, a) {
|
|
8455
|
-
var l = s.mode, h = s.uid, d = s.gid, g = a.uid !== void 0 ? a.uid : process.getuid && process.getuid(),
|
|
8455
|
+
var l = s.mode, h = s.uid, d = s.gid, g = a.uid !== void 0 ? a.uid : process.getuid && process.getuid(), w = a.gid !== void 0 ? a.gid : process.getgid && process.getgid(), C = parseInt("100", 8), v = parseInt("010", 8), M = parseInt("001", 8), D = C | v, b = l & M || l & v && d === w || l & C && h === g || l & D && g === 0;
|
|
8456
8456
|
return b;
|
|
8457
8457
|
}
|
|
8458
|
-
return c(i, "checkMode"),
|
|
8458
|
+
return c(i, "checkMode"), ke;
|
|
8459
8459
|
}
|
|
8460
8460
|
c(Ps, "requireMode");
|
|
8461
|
-
var
|
|
8461
|
+
var je, tn;
|
|
8462
8462
|
function Os() {
|
|
8463
|
-
if (
|
|
8464
|
-
|
|
8463
|
+
if (tn) return je;
|
|
8464
|
+
tn = 1;
|
|
8465
8465
|
var t;
|
|
8466
|
-
process.platform === "win32" || Ui.TESTING_WINDOWS ? t = Bs() : t = Ps(),
|
|
8466
|
+
process.platform === "win32" || Ui.TESTING_WINDOWS ? t = Bs() : t = Ps(), je = e, e.sync = r;
|
|
8467
8467
|
function e(n, i, s) {
|
|
8468
8468
|
if (typeof i == "function" && (s = i, i = {}), !s) {
|
|
8469
8469
|
if (typeof Promise != "function") throw new TypeError("callback not provided");
|
|
@@ -8486,39 +8486,39 @@ function Os() {
|
|
|
8486
8486
|
throw s;
|
|
8487
8487
|
}
|
|
8488
8488
|
}
|
|
8489
|
-
return c(r, "sync"),
|
|
8489
|
+
return c(r, "sync"), je;
|
|
8490
8490
|
}
|
|
8491
8491
|
c(Os, "requireIsexe");
|
|
8492
|
-
var
|
|
8492
|
+
var Fe, en;
|
|
8493
8493
|
function Ls() {
|
|
8494
|
-
if (
|
|
8495
|
-
|
|
8494
|
+
if (en) return Fe;
|
|
8495
|
+
en = 1;
|
|
8496
8496
|
const t = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", e = Kt, r = t ? ";" : ":", n = Os(), i = c((h) => Object.assign(new Error(`not found: ${h}`), { code: "ENOENT" }), "getNotFoundError"), s = c((h, d) => {
|
|
8497
|
-
const g = d.colon || r,
|
|
8498
|
-
return t && h.indexOf(".") !== -1 && v[0] !== "" && v.unshift(""), { pathEnv:
|
|
8497
|
+
const g = d.colon || r, w = h.match(/\//) || t && h.match(/\\/) ? [""] : [...t ? [process.cwd()] : [], ...(d.path || process.env.PATH || "").split(g)], C = t ? d.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", v = t ? C.split(g) : [""];
|
|
8498
|
+
return t && h.indexOf(".") !== -1 && v[0] !== "" && v.unshift(""), { pathEnv: w, pathExt: v, pathExtExe: C };
|
|
8499
8499
|
}, "getPathInfo"), a = c((h, d, g) => {
|
|
8500
8500
|
typeof d == "function" && (g = d, d = {}), d || (d = {});
|
|
8501
|
-
const { pathEnv:
|
|
8502
|
-
if (P ===
|
|
8503
|
-
const x =
|
|
8504
|
-
|
|
8505
|
-
}), "step"), b = c((P,
|
|
8506
|
-
if (O === C.length) return x(D(
|
|
8501
|
+
const { pathEnv: w, pathExt: C, pathExtExe: v } = s(h, d), M = [], D = c((P) => new Promise((A, O) => {
|
|
8502
|
+
if (P === w.length) return d.all && M.length ? A(M) : O(i(h));
|
|
8503
|
+
const x = w[P], U = /^".*"$/.test(x) ? x.slice(1, -1) : x, H = e.join(U, h), j = !U && /^\.[\\\/]/.test(h) ? h.slice(0, 2) + H : H;
|
|
8504
|
+
A(b(j, P, 0));
|
|
8505
|
+
}), "step"), b = c((P, A, O) => new Promise((x, U) => {
|
|
8506
|
+
if (O === C.length) return x(D(A + 1));
|
|
8507
8507
|
const H = C[O];
|
|
8508
8508
|
n(P + H, { pathExt: v }, (j, o) => {
|
|
8509
8509
|
if (!j && o) if (d.all) M.push(P + H);
|
|
8510
8510
|
else return x(P + H);
|
|
8511
|
-
return x(b(P,
|
|
8511
|
+
return x(b(P, A, O + 1));
|
|
8512
8512
|
});
|
|
8513
8513
|
}), "subStep");
|
|
8514
8514
|
return g ? D(0).then((P) => g(null, P), g) : D(0);
|
|
8515
8515
|
}, "which"), l = c((h, d) => {
|
|
8516
8516
|
d = d || {};
|
|
8517
|
-
const { pathEnv: g, pathExt:
|
|
8517
|
+
const { pathEnv: g, pathExt: w, pathExtExe: C } = s(h, d), v = [];
|
|
8518
8518
|
for (let M = 0; M < g.length; M++) {
|
|
8519
|
-
const D = g[M], b = /^".*"$/.test(D) ? D.slice(1, -1) : D, P = e.join(b, h),
|
|
8520
|
-
for (let O = 0; O <
|
|
8521
|
-
const x =
|
|
8519
|
+
const D = g[M], b = /^".*"$/.test(D) ? D.slice(1, -1) : D, P = e.join(b, h), A = !b && /^\.[\\\/]/.test(h) ? h.slice(0, 2) + P : P;
|
|
8520
|
+
for (let O = 0; O < w.length; O++) {
|
|
8521
|
+
const x = A + w[O];
|
|
8522
8522
|
try {
|
|
8523
8523
|
if (n.sync(x, { pathExt: C })) if (d.all) v.push(x);
|
|
8524
8524
|
else return x;
|
|
@@ -8530,13 +8530,13 @@ function Ls() {
|
|
|
8530
8530
|
if (d.nothrow) return null;
|
|
8531
8531
|
throw i(h);
|
|
8532
8532
|
}, "whichSync");
|
|
8533
|
-
return
|
|
8533
|
+
return Fe = a, a.sync = l, Fe;
|
|
8534
8534
|
}
|
|
8535
8535
|
c(Ls, "requireWhich");
|
|
8536
|
-
var ue = { exports: {} },
|
|
8536
|
+
var ue = { exports: {} }, rn;
|
|
8537
8537
|
function Ns() {
|
|
8538
|
-
if (
|
|
8539
|
-
|
|
8538
|
+
if (rn) return ue.exports;
|
|
8539
|
+
rn = 1;
|
|
8540
8540
|
const t = c((e = {}) => {
|
|
8541
8541
|
const r = e.env || process.env;
|
|
8542
8542
|
return (e.platform || process.platform) !== "win32" ? "PATH" : Object.keys(r).reverse().find((i) => i.toUpperCase() === "PATH") || "Path";
|
|
@@ -8544,10 +8544,10 @@ function Ns() {
|
|
|
8544
8544
|
return ue.exports = t, ue.exports.default = t, ue.exports;
|
|
8545
8545
|
}
|
|
8546
8546
|
c(Ns, "requirePathKey");
|
|
8547
|
-
var
|
|
8547
|
+
var Ve, nn;
|
|
8548
8548
|
function Ms() {
|
|
8549
|
-
if (
|
|
8550
|
-
|
|
8549
|
+
if (nn) return Ve;
|
|
8550
|
+
nn = 1;
|
|
8551
8551
|
const t = Kt, e = Ls(), r = Ns();
|
|
8552
8552
|
function n(s, a) {
|
|
8553
8553
|
const l = s.options.env || process.env, h = process.cwd(), d = s.options.cwd != null, g = d && process.chdir !== void 0 && !process.chdir.disabled;
|
|
@@ -8555,26 +8555,26 @@ function Ms() {
|
|
|
8555
8555
|
process.chdir(s.options.cwd);
|
|
8556
8556
|
} catch {
|
|
8557
8557
|
}
|
|
8558
|
-
let
|
|
8558
|
+
let w;
|
|
8559
8559
|
try {
|
|
8560
|
-
|
|
8560
|
+
w = e.sync(s.command, { path: l[r({ env: l })], pathExt: a ? t.delimiter : void 0 });
|
|
8561
8561
|
} catch {
|
|
8562
8562
|
} finally {
|
|
8563
8563
|
g && process.chdir(h);
|
|
8564
8564
|
}
|
|
8565
|
-
return
|
|
8565
|
+
return w && (w = t.resolve(d ? s.options.cwd : "", w)), w;
|
|
8566
8566
|
}
|
|
8567
8567
|
c(n, "resolveCommandAttempt");
|
|
8568
8568
|
function i(s) {
|
|
8569
8569
|
return n(s) || n(s, true);
|
|
8570
8570
|
}
|
|
8571
|
-
return c(i, "resolveCommand"),
|
|
8571
|
+
return c(i, "resolveCommand"), Ve = i, Ve;
|
|
8572
8572
|
}
|
|
8573
8573
|
c(Ms, "requireResolveCommand");
|
|
8574
|
-
var le = {},
|
|
8574
|
+
var le = {}, sn;
|
|
8575
8575
|
function Ds() {
|
|
8576
|
-
if (
|
|
8577
|
-
|
|
8576
|
+
if (sn) return le;
|
|
8577
|
+
sn = 1;
|
|
8578
8578
|
const t = /([()\][%!^"`<>&|;, *?])/g;
|
|
8579
8579
|
function e(n) {
|
|
8580
8580
|
return n = n.replace(t, "^$1"), n;
|
|
@@ -8586,28 +8586,28 @@ function Ds() {
|
|
|
8586
8586
|
return c(r, "escapeArgument"), le.command = e, le.argument = r, le;
|
|
8587
8587
|
}
|
|
8588
8588
|
c(Ds, "require_escape");
|
|
8589
|
-
var
|
|
8589
|
+
var Ke, on;
|
|
8590
8590
|
function xs() {
|
|
8591
|
-
return
|
|
8591
|
+
return on || (on = 1, Ke = /^#!(.*)/), Ke;
|
|
8592
8592
|
}
|
|
8593
8593
|
c(xs, "requireShebangRegex");
|
|
8594
|
-
var
|
|
8594
|
+
var We, an;
|
|
8595
8595
|
function Gs() {
|
|
8596
|
-
if (
|
|
8597
|
-
|
|
8596
|
+
if (an) return We;
|
|
8597
|
+
an = 1;
|
|
8598
8598
|
const t = xs();
|
|
8599
|
-
return
|
|
8599
|
+
return We = c((e = "") => {
|
|
8600
8600
|
const r = e.match(t);
|
|
8601
8601
|
if (!r) return null;
|
|
8602
8602
|
const [n, i] = r[0].replace(/#! ?/, "").split(" "), s = n.split("/").pop();
|
|
8603
8603
|
return s === "env" ? i : i ? `${s} ${i}` : s;
|
|
8604
|
-
}, "shebangCommand"),
|
|
8604
|
+
}, "shebangCommand"), We;
|
|
8605
8605
|
}
|
|
8606
8606
|
c(Gs, "requireShebangCommand");
|
|
8607
|
-
var
|
|
8607
|
+
var qe, cn;
|
|
8608
8608
|
function $s() {
|
|
8609
|
-
if (
|
|
8610
|
-
|
|
8609
|
+
if (cn) return qe;
|
|
8610
|
+
cn = 1;
|
|
8611
8611
|
const t = Vt, e = Gs();
|
|
8612
8612
|
function r(n) {
|
|
8613
8613
|
const s = Buffer.alloc(150);
|
|
@@ -8618,25 +8618,25 @@ function $s() {
|
|
|
8618
8618
|
}
|
|
8619
8619
|
return e(s.toString());
|
|
8620
8620
|
}
|
|
8621
|
-
return c(r, "readShebang"),
|
|
8621
|
+
return c(r, "readShebang"), qe = r, qe;
|
|
8622
8622
|
}
|
|
8623
8623
|
c($s, "requireReadShebang");
|
|
8624
|
-
var
|
|
8624
|
+
var Ye, un;
|
|
8625
8625
|
function Hs() {
|
|
8626
|
-
if (
|
|
8627
|
-
|
|
8626
|
+
if (un) return Ye;
|
|
8627
|
+
un = 1;
|
|
8628
8628
|
const t = Kt, e = Ms(), r = Ds(), n = $s(), i = process.platform === "win32", s = /\.(?:com|exe)$/i, a = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
8629
8629
|
function l(g) {
|
|
8630
8630
|
g.file = e(g);
|
|
8631
|
-
const
|
|
8632
|
-
return
|
|
8631
|
+
const w = g.file && n(g.file);
|
|
8632
|
+
return w ? (g.args.unshift(g.file), g.command = w, e(g)) : g.file;
|
|
8633
8633
|
}
|
|
8634
8634
|
c(l, "detectShebang");
|
|
8635
8635
|
function h(g) {
|
|
8636
8636
|
if (!i) return g;
|
|
8637
|
-
const
|
|
8637
|
+
const w = l(g), C = !s.test(w);
|
|
8638
8638
|
if (g.options.forceShell || C) {
|
|
8639
|
-
const v = a.test(
|
|
8639
|
+
const v = a.test(w);
|
|
8640
8640
|
g.command = t.normalize(g.command), g.command = r.command(g.command), g.args = g.args.map((D) => r.argument(D, v));
|
|
8641
8641
|
const M = [g.command].concat(g.args).join(" ");
|
|
8642
8642
|
g.args = ["/d", "/s", "/c", `"${M}"`], g.command = process.env.comspec || "cmd.exe", g.options.windowsVerbatimArguments = true;
|
|
@@ -8644,18 +8644,18 @@ function Hs() {
|
|
|
8644
8644
|
return g;
|
|
8645
8645
|
}
|
|
8646
8646
|
c(h, "parseNonShell");
|
|
8647
|
-
function d(g,
|
|
8648
|
-
|
|
8649
|
-
const v = { command: g, args:
|
|
8647
|
+
function d(g, w, C) {
|
|
8648
|
+
w && !Array.isArray(w) && (C = w, w = null), w = w ? w.slice(0) : [], C = Object.assign({}, C);
|
|
8649
|
+
const v = { command: g, args: w, options: C, file: void 0, original: { command: g, args: w } };
|
|
8650
8650
|
return C.shell ? v : h(v);
|
|
8651
8651
|
}
|
|
8652
|
-
return c(d, "parse"),
|
|
8652
|
+
return c(d, "parse"), Ye = d, Ye;
|
|
8653
8653
|
}
|
|
8654
8654
|
c(Hs, "requireParse");
|
|
8655
|
-
var
|
|
8655
|
+
var Je, ln;
|
|
8656
8656
|
function ks() {
|
|
8657
|
-
if (
|
|
8658
|
-
|
|
8657
|
+
if (ln) return Je;
|
|
8658
|
+
ln = 1;
|
|
8659
8659
|
const t = process.platform === "win32";
|
|
8660
8660
|
function e(s, a) {
|
|
8661
8661
|
return Object.assign(new Error(`${a} ${s.command} ENOENT`), { code: "ENOENT", errno: "ENOENT", syscall: `${a} ${s.command}`, path: s.command, spawnargs: s.args });
|
|
@@ -8680,13 +8680,13 @@ function ks() {
|
|
|
8680
8680
|
function i(s, a) {
|
|
8681
8681
|
return t && s === 1 && !a.file ? e(a.original, "spawnSync") : null;
|
|
8682
8682
|
}
|
|
8683
|
-
return c(i, "verifyENOENTSync"),
|
|
8683
|
+
return c(i, "verifyENOENTSync"), Je = { hookChildProcess: r, verifyENOENT: n, verifyENOENTSync: i, notFoundError: e }, Je;
|
|
8684
8684
|
}
|
|
8685
8685
|
c(ks, "requireEnoent");
|
|
8686
|
-
var
|
|
8686
|
+
var fn;
|
|
8687
8687
|
function js() {
|
|
8688
|
-
if (
|
|
8689
|
-
|
|
8688
|
+
if (fn) return $t.exports;
|
|
8689
|
+
fn = 1;
|
|
8690
8690
|
const t = require$$0$2, e = Hs(), r = ks();
|
|
8691
8691
|
function n(s, a, l) {
|
|
8692
8692
|
const h = e(s, a, l), d = t.spawn(h.command, h.args, h.options);
|
|
@@ -8700,19 +8700,19 @@ function js() {
|
|
|
8700
8700
|
return c(i, "spawnSync"), $t.exports = n, $t.exports.spawn = n, $t.exports.sync = i, $t.exports._parse = e, $t.exports._enoent = r, $t.exports;
|
|
8701
8701
|
}
|
|
8702
8702
|
c(js, "requireCrossSpawn");
|
|
8703
|
-
var Fs = js(), Vs =
|
|
8703
|
+
var Fs = js(), Vs = Ur(Fs);
|
|
8704
8704
|
function Ks(t) {
|
|
8705
8705
|
const e = typeof t == "string" ? `
|
|
8706
8706
|
` : 10, r = typeof t == "string" ? "\r" : 13;
|
|
8707
8707
|
return t[t.length - 1] === e && (t = t.slice(0, -1)), t[t.length - 1] === r && (t = t.slice(0, -1)), t;
|
|
8708
8708
|
}
|
|
8709
8709
|
c(Ks, "stripFinalNewline");
|
|
8710
|
-
function
|
|
8710
|
+
function hn(t = {}) {
|
|
8711
8711
|
const { env: e = process.env, platform: r = process.platform } = t;
|
|
8712
8712
|
return r !== "win32" ? "PATH" : Object.keys(e).reverse().find((n) => n.toUpperCase() === "PATH") || "Path";
|
|
8713
8713
|
}
|
|
8714
|
-
c(
|
|
8715
|
-
const Ws = c(({ cwd: t = y.cwd(), path: e = y.env[
|
|
8714
|
+
c(hn, "pathKey");
|
|
8715
|
+
const Ws = c(({ cwd: t = y.cwd(), path: e = y.env[hn()], preferLocal: r = true, execPath: n = y.execPath, addExecPath: i = true } = {}) => {
|
|
8716
8716
|
const s = t instanceof URL ? fileURLToPath(t) : t, a = path.resolve(s), l = [];
|
|
8717
8717
|
return r && qs(l, a), i && Ys(l, n, a), [...l, e].join(path.delimiter);
|
|
8718
8718
|
}, "npmRunPath"), qs = c((t, e) => {
|
|
@@ -8723,22 +8723,22 @@ const Ws = c(({ cwd: t = y.cwd(), path: e = y.env[fn()], preferLocal: r = true,
|
|
|
8723
8723
|
t.push(path.resolve(r, n, ".."));
|
|
8724
8724
|
}, "applyExecPath"), Js = c(({ env: t = y.env, ...e } = {}) => {
|
|
8725
8725
|
t = { ...t };
|
|
8726
|
-
const r =
|
|
8726
|
+
const r = hn({ env: t });
|
|
8727
8727
|
return e.path = t[r], t[r] = Ws(e), t;
|
|
8728
8728
|
}, "npmRunPathEnv"), Qs = c(() => {
|
|
8729
|
-
const t =
|
|
8729
|
+
const t = pn - dn + 1;
|
|
8730
8730
|
return Array.from({ length: t }, zs);
|
|
8731
|
-
}, "getRealtimeSignals"), zs = c((t, e) => ({ name: `SIGRT${e + 1}`, number:
|
|
8731
|
+
}, "getRealtimeSignals"), zs = c((t, e) => ({ name: `SIGRT${e + 1}`, number: dn + e, action: "terminate", description: "Application-specific signal (realtime)", standard: "posix" }), "getRealtimeSignal"), dn = 34, pn = 64, Xs = [{ name: "SIGHUP", number: 1, action: "terminate", description: "Terminal closed", standard: "posix" }, { name: "SIGINT", number: 2, action: "terminate", description: "User interruption with CTRL-C", standard: "ansi" }, { name: "SIGQUIT", number: 3, action: "core", description: "User interruption with CTRL-\\", standard: "posix" }, { name: "SIGILL", number: 4, action: "core", description: "Invalid machine instruction", standard: "ansi" }, { name: "SIGTRAP", number: 5, action: "core", description: "Debugger breakpoint", standard: "posix" }, { name: "SIGABRT", number: 6, action: "core", description: "Aborted", standard: "ansi" }, { name: "SIGIOT", number: 6, action: "core", description: "Aborted", standard: "bsd" }, { name: "SIGBUS", number: 7, action: "core", description: "Bus error due to misaligned, non-existing address or paging error", standard: "bsd" }, { name: "SIGEMT", number: 7, action: "terminate", description: "Command should be emulated but is not implemented", standard: "other" }, { name: "SIGFPE", number: 8, action: "core", description: "Floating point arithmetic error", standard: "ansi" }, { name: "SIGKILL", number: 9, action: "terminate", description: "Forced termination", standard: "posix", forced: true }, { name: "SIGUSR1", number: 10, action: "terminate", description: "Application-specific signal", standard: "posix" }, { name: "SIGSEGV", number: 11, action: "core", description: "Segmentation fault", standard: "ansi" }, { name: "SIGUSR2", number: 12, action: "terminate", description: "Application-specific signal", standard: "posix" }, { name: "SIGPIPE", number: 13, action: "terminate", description: "Broken pipe or socket", standard: "posix" }, { name: "SIGALRM", number: 14, action: "terminate", description: "Timeout or timer", standard: "posix" }, { name: "SIGTERM", number: 15, action: "terminate", description: "Termination", standard: "ansi" }, { name: "SIGSTKFLT", number: 16, action: "terminate", description: "Stack is empty or overflowed", standard: "other" }, { name: "SIGCHLD", number: 17, action: "ignore", description: "Child process terminated, paused or unpaused", standard: "posix" }, { name: "SIGCLD", number: 17, action: "ignore", description: "Child process terminated, paused or unpaused", standard: "other" }, { name: "SIGCONT", number: 18, action: "unpause", description: "Unpaused", standard: "posix", forced: true }, { name: "SIGSTOP", number: 19, action: "pause", description: "Paused", standard: "posix", forced: true }, { name: "SIGTSTP", number: 20, action: "pause", description: 'Paused using CTRL-Z or "suspend"', standard: "posix" }, { name: "SIGTTIN", number: 21, action: "pause", description: "Background process cannot read terminal input", standard: "posix" }, { name: "SIGBREAK", number: 21, action: "terminate", description: "User interruption with CTRL-BREAK", standard: "other" }, { name: "SIGTTOU", number: 22, action: "pause", description: "Background process cannot write to terminal output", standard: "posix" }, { name: "SIGURG", number: 23, action: "ignore", description: "Socket received out-of-band data", standard: "bsd" }, { name: "SIGXCPU", number: 24, action: "core", description: "Process timed out", standard: "bsd" }, { name: "SIGXFSZ", number: 25, action: "core", description: "File too big", standard: "bsd" }, { name: "SIGVTALRM", number: 26, action: "terminate", description: "Timeout or timer", standard: "bsd" }, { name: "SIGPROF", number: 27, action: "terminate", description: "Timeout or timer", standard: "bsd" }, { name: "SIGWINCH", number: 28, action: "ignore", description: "Terminal window size changed", standard: "bsd" }, { name: "SIGIO", number: 29, action: "terminate", description: "I/O is available", standard: "other" }, { name: "SIGPOLL", number: 29, action: "terminate", description: "Watched event", standard: "other" }, { name: "SIGINFO", number: 29, action: "ignore", description: "Request for process information", standard: "other" }, { name: "SIGPWR", number: 30, action: "terminate", description: "Device running out of power", standard: "systemv" }, { name: "SIGSYS", number: 31, action: "core", description: "Invalid system call", standard: "other" }, { name: "SIGUNUSED", number: 31, action: "terminate", description: "Invalid system call", standard: "other" }], mn = c(() => {
|
|
8732
8732
|
const t = Qs();
|
|
8733
8733
|
return [...Xs, ...t].map(Zs);
|
|
8734
8734
|
}, "getSignals"), Zs = c(({ name: t, number: e, description: r, action: n, forced: i = false, standard: s }) => {
|
|
8735
8735
|
const { signals: { [t]: a } } = constants$1, l = a !== void 0;
|
|
8736
8736
|
return { name: t, number: l ? a : e, description: r, supported: l, action: n, forced: i, standard: s };
|
|
8737
8737
|
}, "normalizeSignal"), to = c(() => {
|
|
8738
|
-
const t =
|
|
8738
|
+
const t = mn();
|
|
8739
8739
|
return Object.fromEntries(t.map(eo));
|
|
8740
8740
|
}, "getSignalsByName"), eo = c(({ name: t, number: e, description: r, supported: n, action: i, forced: s, standard: a }) => [t, { name: t, number: e, description: r, supported: n, action: i, forced: s, standard: a }], "getSignalByName"), ro = to(), no = c(() => {
|
|
8741
|
-
const t =
|
|
8741
|
+
const t = mn(), e = pn + 1, r = Array.from({ length: e }, (n, i) => io(i, t));
|
|
8742
8742
|
return Object.assign({}, ...r);
|
|
8743
8743
|
}, "getSignalsByNumber"), io = c((t, e) => {
|
|
8744
8744
|
const r = so(t, e);
|
|
@@ -8750,12 +8750,12 @@ const Ws = c(({ cwd: t = y.cwd(), path: e = y.env[fn()], preferLocal: r = true,
|
|
|
8750
8750
|
return r !== void 0 ? r : e.find((n) => n.number === t);
|
|
8751
8751
|
}, "findSignalByNumber");
|
|
8752
8752
|
no();
|
|
8753
|
-
const oo = c(({ timedOut: t, timeout: e, errorCode: r, signal: n, signalDescription: i, exitCode: s, isCanceled: a }) => t ? `timed out after ${e} milliseconds` : r !== void 0 ? `failed with ${r}` : n !== void 0 ? `was killed with ${n} (${i})` : s !== void 0 ? `failed with exit code ${s}` : "failed", "getErrorPrefix"),
|
|
8753
|
+
const oo = c(({ timedOut: t, timeout: e, errorCode: r, signal: n, signalDescription: i, exitCode: s, isCanceled: a }) => t ? `timed out after ${e} milliseconds` : r !== void 0 ? `failed with ${r}` : n !== void 0 ? `was killed with ${n} (${i})` : s !== void 0 ? `failed with exit code ${s}` : "failed", "getErrorPrefix"), gn = c(({ stdout: t, stderr: e, all: r, error: n, signal: i, exitCode: s, command: a, escapedCommand: l, timedOut: h, isCanceled: d, killed: g, parsed: { options: { timeout: w, cwd: C = y.cwd() } } }) => {
|
|
8754
8754
|
s = s === null ? void 0 : s, i = i === null ? void 0 : i;
|
|
8755
|
-
const v = i === void 0 ? void 0 : ro[i].description, M = n && n.code, b = `Command ${oo({ timedOut: h, timeout:
|
|
8756
|
-
${n.message}` : b, O = [
|
|
8755
|
+
const v = i === void 0 ? void 0 : ro[i].description, M = n && n.code, b = `Command ${oo({ timedOut: h, timeout: w, errorCode: M, signal: i, signalDescription: v, exitCode: s, isCanceled: d })}: ${a}`, P = Object.prototype.toString.call(n) === "[object Error]", A = P ? `${b}
|
|
8756
|
+
${n.message}` : b, O = [A, e, t].filter(Boolean).join(`
|
|
8757
8757
|
`);
|
|
8758
|
-
return P ? (n.originalMessage = n.message, n.message = O) : n = new Error(O), n.shortMessage =
|
|
8758
|
+
return P ? (n.originalMessage = n.message, n.message = O) : n = new Error(O), n.shortMessage = A, n.command = a, n.escapedCommand = l, n.exitCode = s, n.signal = i, n.signalDescription = v, n.stdout = t, n.stderr = e, n.cwd = C, r !== void 0 && (n.all = r), "bufferedData" in n && delete n.bufferedData, n.failed = true, n.timedOut = !!h, n.isCanceled = d, n.killed = g && !h, n;
|
|
8759
8759
|
}, "makeError"), fe = ["stdin", "stdout", "stderr"], ao = c((t) => fe.some((e) => t[e] !== void 0), "hasAlias"), co = c((t) => {
|
|
8760
8760
|
if (!t) return;
|
|
8761
8761
|
const { stdio: e } = t;
|
|
@@ -8767,7 +8767,7 @@ ${n.message}` : b, O = [w, e, t].filter(Boolean).join(`
|
|
|
8767
8767
|
return Array.from({ length: r }, (n, i) => e[i]);
|
|
8768
8768
|
}, "normalizeStdio"), Ft = [];
|
|
8769
8769
|
Ft.push("SIGHUP", "SIGINT", "SIGTERM"), process.platform !== "win32" && Ft.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT"), process.platform === "linux" && Ft.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
8770
|
-
const he = c((t) => !!t && typeof t == "object" && typeof t.removeListener == "function" && typeof t.emit == "function" && typeof t.reallyExit == "function" && typeof t.listeners == "function" && typeof t.kill == "function" && typeof t.pid == "number" && typeof t.on == "function", "processOk"),
|
|
8770
|
+
const he = c((t) => !!t && typeof t == "object" && typeof t.removeListener == "function" && typeof t.emit == "function" && typeof t.reallyExit == "function" && typeof t.listeners == "function" && typeof t.kill == "function" && typeof t.pid == "number" && typeof t.on == "function", "processOk"), Qe = Symbol.for("signal-exit emitter"), ze = globalThis, uo = Object.defineProperty.bind(Object);
|
|
8771
8771
|
class lo {
|
|
8772
8772
|
static {
|
|
8773
8773
|
c(this, "Emitter");
|
|
@@ -8777,8 +8777,8 @@ class lo {
|
|
|
8777
8777
|
count = 0;
|
|
8778
8778
|
id = Math.random();
|
|
8779
8779
|
constructor() {
|
|
8780
|
-
if (Qe
|
|
8781
|
-
uo(
|
|
8780
|
+
if (ze[Qe]) return ze[Qe];
|
|
8781
|
+
uo(ze, Qe, { value: this, writable: false, enumerable: false, configurable: false });
|
|
8782
8782
|
}
|
|
8783
8783
|
on(e, r) {
|
|
8784
8784
|
this.listeners[e].push(r);
|
|
@@ -8795,7 +8795,7 @@ class lo {
|
|
|
8795
8795
|
return e === "exit" && (i = this.emit("afterExit", r, n) || i), i;
|
|
8796
8796
|
}
|
|
8797
8797
|
}
|
|
8798
|
-
class
|
|
8798
|
+
class En {
|
|
8799
8799
|
static {
|
|
8800
8800
|
c(this, "SignalExitBase");
|
|
8801
8801
|
}
|
|
@@ -8807,7 +8807,7 @@ const fo = c((t) => ({ onExit(e, r) {
|
|
|
8807
8807
|
}, unload() {
|
|
8808
8808
|
return t.unload();
|
|
8809
8809
|
} }), "signalExitWrap");
|
|
8810
|
-
class ho extends
|
|
8810
|
+
class ho extends En {
|
|
8811
8811
|
static {
|
|
8812
8812
|
c(this, "SignalExitFallback");
|
|
8813
8813
|
}
|
|
@@ -8820,11 +8820,11 @@ class ho extends gn {
|
|
|
8820
8820
|
unload() {
|
|
8821
8821
|
}
|
|
8822
8822
|
}
|
|
8823
|
-
class po extends
|
|
8823
|
+
class po extends En {
|
|
8824
8824
|
static {
|
|
8825
8825
|
c(this, "SignalExit");
|
|
8826
8826
|
}
|
|
8827
|
-
#o =
|
|
8827
|
+
#o = Xe.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
8828
8828
|
#e = new lo();
|
|
8829
8829
|
#t;
|
|
8830
8830
|
#i;
|
|
@@ -8887,18 +8887,18 @@ class po extends gn {
|
|
|
8887
8887
|
} else return n.call(this.#t, e, ...r);
|
|
8888
8888
|
}
|
|
8889
8889
|
}
|
|
8890
|
-
const
|
|
8891
|
-
fo(he(
|
|
8890
|
+
const Xe = globalThis.process;
|
|
8891
|
+
fo(he(Xe) ? new po(Xe) : new ho());
|
|
8892
8892
|
function mo(t) {
|
|
8893
8893
|
return t !== null && typeof t == "object" && typeof t.pipe == "function";
|
|
8894
8894
|
}
|
|
8895
8895
|
c(mo, "isStream"), new TextEncoder();
|
|
8896
|
-
var
|
|
8896
|
+
var Ze, _n;
|
|
8897
8897
|
function go() {
|
|
8898
|
-
if (
|
|
8899
|
-
|
|
8898
|
+
if (_n) return Ze;
|
|
8899
|
+
_n = 1;
|
|
8900
8900
|
const { PassThrough: t } = require$$0;
|
|
8901
|
-
return
|
|
8901
|
+
return Ze = c(function() {
|
|
8902
8902
|
var e = [], r = new t({ objectMode: true });
|
|
8903
8903
|
return r.setMaxListeners(0), r.add = n, r.isEmpty = i, r.on("unpipe", s), Array.prototype.slice.call(arguments).forEach(n), r;
|
|
8904
8904
|
function n(a) {
|
|
@@ -8912,7 +8912,7 @@ function go() {
|
|
|
8912
8912
|
return l !== a;
|
|
8913
8913
|
}), !e.length && r.readable && r.end();
|
|
8914
8914
|
}
|
|
8915
|
-
}, "mergeStream"),
|
|
8915
|
+
}, "mergeStream"), Ze;
|
|
8916
8916
|
}
|
|
8917
8917
|
c(go, "requireMergeStream"), go();
|
|
8918
8918
|
const Eo = c((t) => {
|
|
@@ -8924,7 +8924,7 @@ const Eo = c((t) => {
|
|
|
8924
8924
|
}, "handleInputSync"), So = (async () => {
|
|
8925
8925
|
})().constructor.prototype;
|
|
8926
8926
|
["then", "catch", "finally"].map((t) => [t, Reflect.getOwnPropertyDescriptor(So, t)]);
|
|
8927
|
-
const
|
|
8927
|
+
const In = c((t, e = []) => Array.isArray(e) ? [t, ...e] : [t], "normalizeArgs"), Ro = /^[\w.-]+$/, To = c((t) => typeof t != "string" || Ro.test(t) ? t : `"${t.replaceAll('"', '\\"')}"`, "escapeArg"), wo = c((t, e) => In(t, e).join(" "), "joinCommand"), Ao = c((t, e) => In(t, e).map((r) => To(r)).join(" "), "getEscapedCommand"), yo = debuglog("execa").enabled, de = c((t, e) => String(t).padStart(e, "0"), "padField"), bo = c(() => {
|
|
8928
8928
|
const t = /* @__PURE__ */ new Date();
|
|
8929
8929
|
return `${de(t.getHours(), 2)}:${de(t.getMinutes(), 2)}:${de(t.getSeconds(), 2)}.${de(t.getMilliseconds(), 3)}`;
|
|
8930
8930
|
}, "getTimestamp"), Co = c((t, { verbose: e }) => {
|
|
@@ -8936,39 +8936,39 @@ const _n = c((t, e = []) => Array.isArray(e) ? [t, ...e] : [t], "normalizeArgs")
|
|
|
8936
8936
|
}, "getEnv"), Bo = c((t, e, r = {}) => {
|
|
8937
8937
|
const n = Vs._parse(t, e, r);
|
|
8938
8938
|
return t = n.command, e = n.args, r = n.options, r = { maxBuffer: vo, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: r.cwd || y.cwd(), execPath: y.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true, verbose: yo, ...r }, r.env = Uo(r), r.stdio = co(r), y.platform === "win32" && path.basename(t, ".exe") === "cmd" && e.unshift("/q"), { file: t, args: e, options: r, parsed: n };
|
|
8939
|
-
}, "handleArguments"),
|
|
8940
|
-
function
|
|
8941
|
-
const n = Bo(t, e, r), i =
|
|
8939
|
+
}, "handleArguments"), Sn = c((t, e, r) => typeof e != "string" && !Buffer$1.isBuffer(e) ? r === void 0 ? void 0 : "" : t.stripFinalNewline ? Ks(e) : e, "handleOutput");
|
|
8940
|
+
function tr(t, e, r) {
|
|
8941
|
+
const n = Bo(t, e, r), i = wo(t, e), s = Ao(t, e);
|
|
8942
8942
|
Co(s, n.options);
|
|
8943
8943
|
const a = Io(n.options);
|
|
8944
8944
|
let l;
|
|
8945
8945
|
try {
|
|
8946
8946
|
l = childProcess.spawnSync(n.file, n.args, { ...n.options, input: a });
|
|
8947
8947
|
} catch (g) {
|
|
8948
|
-
throw
|
|
8948
|
+
throw gn({ error: g, stdout: "", stderr: "", all: "", command: i, escapedCommand: s, parsed: n, timedOut: false, isCanceled: false, killed: false });
|
|
8949
8949
|
}
|
|
8950
|
-
const h =
|
|
8950
|
+
const h = Sn(n.options, l.stdout, l.error), d = Sn(n.options, l.stderr, l.error);
|
|
8951
8951
|
if (l.error || l.status !== 0 || l.signal !== null) {
|
|
8952
|
-
const g =
|
|
8952
|
+
const g = gn({ stdout: h, stderr: d, error: l.error, signal: l.signal, exitCode: l.status, command: i, escapedCommand: s, parsed: n, timedOut: l.error && l.error.code === "ETIMEDOUT", isCanceled: false, killed: l.signal !== null });
|
|
8953
8953
|
if (!n.options.reject) return g;
|
|
8954
8954
|
throw g;
|
|
8955
8955
|
}
|
|
8956
8956
|
return { command: i, escapedCommand: s, exitCode: 0, stdout: h, stderr: d, failed: false, timedOut: false, isCanceled: false, killed: false };
|
|
8957
8957
|
}
|
|
8958
|
-
c(
|
|
8958
|
+
c(tr, "execaSync");
|
|
8959
8959
|
function pe(t) {
|
|
8960
8960
|
try {
|
|
8961
|
-
return
|
|
8961
|
+
return tr("git", ["rev-parse", "HEAD"], t).stdout;
|
|
8962
8962
|
} catch {
|
|
8963
8963
|
return;
|
|
8964
8964
|
}
|
|
8965
8965
|
}
|
|
8966
8966
|
c(pe, "head");
|
|
8967
|
-
function
|
|
8967
|
+
function er(t) {
|
|
8968
8968
|
try {
|
|
8969
|
-
const e =
|
|
8969
|
+
const e = tr("git", ["rev-parse", "--abbrev-ref", "HEAD"], t).stdout;
|
|
8970
8970
|
if (e === "HEAD") {
|
|
8971
|
-
const r =
|
|
8971
|
+
const r = tr("git", ["show", "-s", "--pretty=%d", "HEAD"], t).stdout.replace(/^\(|\)$/g, "").split(", ").find((n) => n.startsWith("origin/"));
|
|
8972
8972
|
return r ? r.match(/^origin\/(?<branch>.+)/)[1] : void 0;
|
|
8973
8973
|
}
|
|
8974
8974
|
return e;
|
|
@@ -8976,11 +8976,11 @@ function tr(t) {
|
|
|
8976
8976
|
return;
|
|
8977
8977
|
}
|
|
8978
8978
|
}
|
|
8979
|
-
c(
|
|
8980
|
-
const
|
|
8979
|
+
c(er, "branch");
|
|
8980
|
+
const Rn = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/, Po = /^\/(.*)\.git$/;
|
|
8981
8981
|
function Oo(t) {
|
|
8982
8982
|
if (t) {
|
|
8983
|
-
if (t.match(
|
|
8983
|
+
if (t.match(Rn)) return t.replace(Rn, "$1");
|
|
8984
8984
|
try {
|
|
8985
8985
|
return new URL(t).pathname.replace(Po, "$1");
|
|
8986
8986
|
} catch {
|
|
@@ -8997,15 +8997,15 @@ var Lo = { detect({ env: t }) {
|
|
|
8997
8997
|
} }, No = { detect({ env: t }) {
|
|
8998
8998
|
return !!t.CIRCLECI;
|
|
8999
8999
|
}, configuration({ env: t }) {
|
|
9000
|
-
const e = t.CIRCLE_PR_NUMBER ||
|
|
9000
|
+
const e = t.CIRCLE_PR_NUMBER || zr(t.CIRCLE_PULL_REQUEST || t.CI_PULL_REQUEST), r = !!e;
|
|
9001
9001
|
return { name: "CircleCI", service: "circleci", build: t.CIRCLE_BUILD_NUM, buildUrl: t.CIRCLE_BUILD_URL, job: `${t.CIRCLE_BUILD_NUM}.${t.CIRCLE_NODE_INDEX}`, commit: t.CIRCLE_SHA1, tag: t.CIRCLE_TAG, branch: r ? void 0 : t.CIRCLE_BRANCH, pr: e, isPr: r, prBranch: r ? t.CIRCLE_BRANCH : void 0, slug: `${t.CIRCLE_PROJECT_USERNAME}/${t.CIRCLE_PROJECT_REPONAME}` };
|
|
9002
9002
|
} };
|
|
9003
|
-
const
|
|
9003
|
+
const Tn = "https://cirrus-ci.com";
|
|
9004
9004
|
var Mo = { detect({ env: t }) {
|
|
9005
9005
|
return !!t.CIRRUS_CI;
|
|
9006
9006
|
}, configuration({ env: t }) {
|
|
9007
9007
|
const e = t.CIRRUS_PR, r = !!e;
|
|
9008
|
-
return { name: "Cirrus CI", service: "cirrus", commit: t.CIRRUS_CHANGE_IN_REPO, tag: t.CIRRUS_TAG, build: t.CIRRUS_BUILD_ID, buildUrl: `${
|
|
9008
|
+
return { name: "Cirrus CI", service: "cirrus", commit: t.CIRRUS_CHANGE_IN_REPO, tag: t.CIRRUS_TAG, build: t.CIRRUS_BUILD_ID, buildUrl: `${Tn}/build/${t.CIRRUS_BUILD_ID}`, job: t.CIRRUS_TASK_ID, jobUrl: `${Tn}/task/${t.CIRRUS_TASK_ID}`, branch: r ? t.CIRRUS_BASE_BRANCH : t.CIRRUS_BRANCH, pr: e, isPr: r, prBranch: r ? t.CIRRUS_BRANCH : void 0, slug: t.CIRRUS_REPO_FULL_NAME, root: t.CIRRUS_WORKING_DIR };
|
|
9009
9009
|
} }, Do = { detect({ env: t }) {
|
|
9010
9010
|
return t.CF_PAGES === "1";
|
|
9011
9011
|
}, configuration({ env: t }) {
|
|
@@ -9013,7 +9013,7 @@ var Mo = { detect({ env: t }) {
|
|
|
9013
9013
|
} }, xo = { detect({ env: t }) {
|
|
9014
9014
|
return !!t.CODEBUILD_BUILD_ID;
|
|
9015
9015
|
}, configuration({ env: t, cwd: e }) {
|
|
9016
|
-
return { name: "AWS CodeBuild", service: "codebuild", commit: pe({ env: t, cwd: e }), build: t.CODEBUILD_BUILD_ID, branch:
|
|
9016
|
+
return { name: "AWS CodeBuild", service: "codebuild", commit: pe({ env: t, cwd: e }), build: t.CODEBUILD_BUILD_ID, branch: er({ env: t, cwd: e }), buildUrl: `https://console.aws.amazon.com/codebuild/home?region=${t.AWS_REGION}#/builds/${t.CODEBUILD_BUILD_ID}/view/new`, root: t.PWD };
|
|
9017
9017
|
} }, Go = { detect({ env: t }) {
|
|
9018
9018
|
return !!t.CF_BUILD_ID;
|
|
9019
9019
|
}, configuration({ env: t }) {
|
|
@@ -9029,7 +9029,7 @@ var Mo = { detect({ env: t }) {
|
|
|
9029
9029
|
const e = t.DRONE_BUILD_EVENT === "pull_request";
|
|
9030
9030
|
return { name: "Drone", service: "drone", commit: t.DRONE_COMMIT_SHA, tag: t.DRONE_TAG, build: t.DRONE_BUILD_NUMBER, buildUrl: t.DRONE_BUILD_LINK, branch: e ? t.DRONE_TARGET_BRANCH : t.DRONE_BRANCH, job: t.DRONE_JOB_NUMBER, jobUrl: t.DRONE_BUILD_LINK, pr: t.DRONE_PULL_REQUEST, isPr: e, prBranch: e ? t.DRONE_SOURCE_BRANCH : void 0, slug: `${t.DRONE_REPO_OWNER}/${t.DRONE_REPO_NAME}`, root: t.DRONE_WORKSPACE };
|
|
9031
9031
|
} }, ko = { configuration(t) {
|
|
9032
|
-
return { commit: pe(t), branch:
|
|
9032
|
+
return { commit: pe(t), branch: er(t) };
|
|
9033
9033
|
} };
|
|
9034
9034
|
const jo = c(({ env: t }) => {
|
|
9035
9035
|
try {
|
|
@@ -9091,10 +9091,10 @@ var Vo = { detect({ env: t }) {
|
|
|
9091
9091
|
}, configuration({ env: t }) {
|
|
9092
9092
|
const e = t.IS_PULL_REQUEST === "true" ? t.PULL_REQUEST : void 0, r = !!e;
|
|
9093
9093
|
return { name: "Shippable", service: "shippable", commit: t.COMMIT, tag: t.GIT_TAG_NAME, build: t.BUILD_NUMBER, buildUrl: t.BUILD_URL, branch: r ? t.BASE_BRANCH : t.BRANCH, job: t.JOB_NUMBER, pr: e, isPr: r, prBranch: r ? t.HEAD_BRANCH : void 0, slug: t.SHIPPABLE_REPO_SLUG, root: t.SHIPPABLE_BUILD_DIR };
|
|
9094
|
-
} }, Ht = {},
|
|
9094
|
+
} }, Ht = {}, wn;
|
|
9095
9095
|
function ta() {
|
|
9096
|
-
if (
|
|
9097
|
-
|
|
9096
|
+
if (wn) return Ht;
|
|
9097
|
+
wn = 1, Object.defineProperty(Ht, "__esModule", { value: true }), Ht.of = Ht.PropertiesFile = void 0;
|
|
9098
9098
|
var t = e(Vt);
|
|
9099
9099
|
function e(i) {
|
|
9100
9100
|
return i && i.__esModule ? i : { default: i };
|
|
@@ -9127,8 +9127,8 @@ function ta() {
|
|
|
9127
9127
|
let g = l[d];
|
|
9128
9128
|
for (; g.substring(g.length - 1) === "\\"; ) {
|
|
9129
9129
|
g = g.slice(0, -1);
|
|
9130
|
-
let
|
|
9131
|
-
g = g +
|
|
9130
|
+
let w = l[d + 1];
|
|
9131
|
+
g = g + w.trim(), d++;
|
|
9132
9132
|
}
|
|
9133
9133
|
h.makeKeys(g);
|
|
9134
9134
|
}
|
|
@@ -9201,8 +9201,8 @@ function ta() {
|
|
|
9201
9201
|
return Ht.of = n, Ht;
|
|
9202
9202
|
}
|
|
9203
9203
|
c(ta, "requireDistNode");
|
|
9204
|
-
var ea = ta(), ra =
|
|
9205
|
-
const
|
|
9204
|
+
var ea = ta(), ra = Ur(ea);
|
|
9205
|
+
const rr = { root: "teamcity.build.workingDir", branch: "teamcity.build.branch" }, An = c((t) => {
|
|
9206
9206
|
try {
|
|
9207
9207
|
return ra.of(t);
|
|
9208
9208
|
} catch {
|
|
@@ -9210,7 +9210,7 @@ const er = { root: "teamcity.build.workingDir", branch: "teamcity.build.branch"
|
|
|
9210
9210
|
}
|
|
9211
9211
|
}, "safeReadProperties"), na = c(({ env: t, cwd: e }) => {
|
|
9212
9212
|
const r = t.TEAMCITY_BUILD_PROPERTIES_FILE ? An(t.TEAMCITY_BUILD_PROPERTIES_FILE) : void 0, n = r ? r.get("teamcity.configuration.properties.file") : void 0, i = n && An(n);
|
|
9213
|
-
return Object.fromEntries(Object.keys(
|
|
9213
|
+
return Object.fromEntries(Object.keys(rr).map((s) => [s, (r ? r.get(rr[s]) : void 0) || (i ? i.get(rr[s]) : void 0) || (s === "branch" ? er({ env: t, cwd: e }) : void 0)]));
|
|
9214
9214
|
}, "getProperties");
|
|
9215
9215
|
var ia = { detect({ env: t }) {
|
|
9216
9216
|
return !!t.TEAMCITY_VERSION;
|
|
@@ -9246,12 +9246,12 @@ var ia = { detect({ env: t }) {
|
|
|
9246
9246
|
const e = t.JB_SPACE_PROJECT_KEY, r = t.JB_SPACE_GIT_REPOSITORY_NAME;
|
|
9247
9247
|
return { name: "JetBrains Space", service: "jetbrainsSpace", commit: t.JB_SPACE_GIT_REVISION, build: t.JB_SPACE_EXECUTION_NUMBER, branch: ee(t.JB_SPACE_GIT_BRANCH), slug: e && r ? `${e.toLowerCase()}/${r}` : void 0 };
|
|
9248
9248
|
} };
|
|
9249
|
-
const
|
|
9250
|
-
var
|
|
9251
|
-
for (const r of Object.keys(
|
|
9249
|
+
const nr = { appveyor: As, azurePipelines: ys, bamboo: bs, bitbucket: Cs, bitrise: vs, buddy: Us, buildkite: Lo, circleci: No, cirrus: Mo, cloudflarePages: Do, codebuild: xo, codefresh: Go, codeship: $o, drone: Ho, github: Vo, gitlab: Ko, jenkins: Wo, netlify: qo, puppet: Yo, sail: Jo, screwdriver: Qo, scrutinizer: zo, semaphore: Xo, shippable: Zo, teamcity: ia, travis: sa, vela: oa, vercel: aa, wercker: ca, woodpecker: ua, jetbrainsSpace: la };
|
|
9250
|
+
var ir = c(({ env: t = process.env, cwd: e = process.cwd() } = {}) => {
|
|
9251
|
+
for (const r of Object.keys(nr)) if (nr[r].detect({ env: t, cwd: e })) return { isCi: true, ...nr[r].configuration({ env: t, cwd: e }) };
|
|
9252
9252
|
return { isCi: !!t.CI, ...ko.configuration({ env: t, cwd: e }) };
|
|
9253
9253
|
}, "envCiModule");
|
|
9254
|
-
const fa = typeof
|
|
9254
|
+
const fa = typeof ir == "function" ? ir : ir.default;
|
|
9255
9255
|
function ha() {
|
|
9256
9256
|
const t = fa();
|
|
9257
9257
|
return { branch: process.env.GITHUB_HEAD_REF || t.branch, ciBuild: "build" in t ? String(t.build) : void 0, ciServiceName: "name" in t ? String(t.name) : void 0, commit: { message: pa(), sha: t.commit }, isCI: t.isCi, pr: da() };
|
|
@@ -9279,10 +9279,10 @@ function pa() {
|
|
|
9279
9279
|
}
|
|
9280
9280
|
c(pa, "getLastCommitMessage");
|
|
9281
9281
|
function ma() {
|
|
9282
|
-
return { hostname:
|
|
9282
|
+
return { hostname: Ee.hostname(), platform: Ee.platform() };
|
|
9283
9283
|
}
|
|
9284
9284
|
c(ma, "getMachineInfo");
|
|
9285
|
-
class
|
|
9285
|
+
class yn {
|
|
9286
9286
|
static {
|
|
9287
9287
|
c(this, "PendingPromiseTracker");
|
|
9288
9288
|
}
|
|
@@ -9317,14 +9317,14 @@ class wn {
|
|
|
9317
9317
|
}
|
|
9318
9318
|
}
|
|
9319
9319
|
function ga({ result: t, sensitiveValues: e }) {
|
|
9320
|
-
return t.steps.map((r) =>
|
|
9320
|
+
return t.steps.map((r) => bn({ sensitiveValues: e, step: r }));
|
|
9321
9321
|
}
|
|
9322
9322
|
c(ga, "extractSteps");
|
|
9323
|
-
function
|
|
9323
|
+
function bn({ sensitiveValues: t, step: e }) {
|
|
9324
9324
|
const r = c((n) => n && t?.length ? ot({ sensitiveValues: t, str: n }) : n, "scrub");
|
|
9325
|
-
return { category: e.category, duration: e.duration, error: e.error ? { message: r(e.error.message) || "Unknown error", stack: r(e.error.stack) } : void 0, location: e.location ? { column: e.location.column, file: e.location.file, line: e.location.line } : void 0, startedAt: new Date(e.startTime), steps: e.steps && e.steps.length > 0 ? e.steps.map((n) =>
|
|
9325
|
+
return { category: e.category, duration: e.duration, error: e.error ? { message: r(e.error.message) || "Unknown error", stack: r(e.error.stack) } : void 0, location: e.location ? { column: e.location.column, file: e.location.file, line: e.location.line } : void 0, startedAt: new Date(e.startTime), steps: e.steps && e.steps.length > 0 ? e.steps.map((n) => bn({ sensitiveValues: t, step: n })) : void 0, title: r(e.title) ?? e.title };
|
|
9326
9326
|
}
|
|
9327
|
-
c(
|
|
9327
|
+
c(bn, "extractStep");
|
|
9328
9328
|
class Ea {
|
|
9329
9329
|
static {
|
|
9330
9330
|
c(this, "UploadUrlWaitQueue");
|
|
@@ -9366,7 +9366,7 @@ async function _a({ fileData: t, maxRetries: e = 3, requestTimeoutMs: r = 6e4, u
|
|
|
9366
9366
|
}, { minTimeout: 2e3, randomize: true, retries: e });
|
|
9367
9367
|
}
|
|
9368
9368
|
c(_a, "uploadWithRetry");
|
|
9369
|
-
const Ia = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", Sa = 120 * 1e3,
|
|
9369
|
+
const Ia = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", Sa = 120 * 1e3, Cn = 3e4, Ra = 120 * 1e3, Ta = 3e4, wa = Number(process.env.STABLY_UPLOAD_REQUEST_TIMEOUT_MS) || 300 * 1e3, Aa = process.env.STABLY_API_URL ?? "https://api.stably.ai", ya = 50, ba = c(({ gitInfo: t, suite: e }) => {
|
|
9370
9370
|
const r = [...new Set(e.allTests().map((n) => n.parent.project()?.name).filter((n) => !!n))];
|
|
9371
9371
|
if (r.length > 0) {
|
|
9372
9372
|
const n = r.join(", ");
|
|
@@ -9374,7 +9374,7 @@ const Ia = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", Sa = 120
|
|
|
9374
9374
|
}
|
|
9375
9375
|
if (t.isCI && t.ciServiceName && t.ciBuild) return `${t.ciServiceName} #${t.ciBuild}`;
|
|
9376
9376
|
try {
|
|
9377
|
-
const { username: n } =
|
|
9377
|
+
const { username: n } = Ee.userInfo();
|
|
9378
9378
|
if (n) {
|
|
9379
9379
|
const s = (/* @__PURE__ */ new Date()).toLocaleString("en-US", { day: "numeric", hour: "numeric", hour12: false, minute: "2-digit", month: "short" });
|
|
9380
9380
|
return `${n} - ${s}`;
|
|
@@ -9386,7 +9386,7 @@ const Ia = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", Sa = 120
|
|
|
9386
9386
|
if (!t || t.length === 0) return;
|
|
9387
9387
|
const r = new Set(e.allTests().map((i) => i.parent.project()?.name).filter(Boolean)), n = t.filter((i) => r.has(i.projectName));
|
|
9388
9388
|
return n.length > 0 ? n : void 0;
|
|
9389
|
-
}, "filterNotificationConfigsByRunningProjects"), va = c((t) => t ? { configFile: t.configFile, forbidOnly: t.forbidOnly, fullyParallel: t.fullyParallel, globalSetup: t.globalSetup, globalTeardown: t.globalTeardown, globalTimeout: t.globalTimeout, grep: t.grep?.toString(), grepInvert: t.grepInvert?.toString(), maxFailures: t.maxFailures, metadata: t.metadata, preserveOutput: t.preserveOutput, quiet: t.quiet, reporter: t.reporter, reportSlowTests: t.reportSlowTests, rootDir: t.rootDir, shard: t.shard, updateSnapshots: t.updateSnapshots, version: t.version, webServer: t.webServer, workers: t.workers } : void 0, "extractConfigInfo"),
|
|
9389
|
+
}, "filterNotificationConfigsByRunningProjects"), va = c((t) => [...new Set(t.allTests().map((e) => e.parent.project()?.name).filter((e) => !!e))].sort((e, r) => e.localeCompare(r)), "getRunningProjectNames"), Ua = c((t) => t ? { configFile: t.configFile, forbidOnly: t.forbidOnly, fullyParallel: t.fullyParallel, globalSetup: t.globalSetup, globalTeardown: t.globalTeardown, globalTimeout: t.globalTimeout, grep: t.grep?.toString(), grepInvert: t.grepInvert?.toString(), maxFailures: t.maxFailures, metadata: t.metadata, preserveOutput: t.preserveOutput, quiet: t.quiet, reporter: t.reporter, reportSlowTests: t.reportSlowTests, rootDir: t.rootDir, shard: t.shard, updateSnapshots: t.updateSnapshots, version: t.version, webServer: t.webServer, workers: t.workers } : void 0, "extractConfigInfo"), me = c((t) => t?.shard?.current, "getShardIndex"), sr = c(({ absolutePath: t, rootDir: e }) => {
|
|
9390
9390
|
if (e && t.startsWith(e)) {
|
|
9391
9391
|
const r = t.slice(e.length);
|
|
9392
9392
|
return r.startsWith("/") ? r.slice(1) : r;
|
|
@@ -9402,8 +9402,8 @@ class vn {
|
|
|
9402
9402
|
projectId;
|
|
9403
9403
|
source;
|
|
9404
9404
|
cliVersion;
|
|
9405
|
-
pendingOperations = new
|
|
9406
|
-
pendingUploads = new
|
|
9405
|
+
pendingOperations = new yn();
|
|
9406
|
+
pendingUploads = new yn();
|
|
9407
9407
|
testSuiteRunId = "";
|
|
9408
9408
|
createdSuiteRun;
|
|
9409
9409
|
suiteData;
|
|
@@ -9427,10 +9427,10 @@ class vn {
|
|
|
9427
9427
|
if (!r) throw new Error("STABLY_API_KEY is required. Provide it via options or environment variable.");
|
|
9428
9428
|
if (!n) throw new Error("STABLY_PROJECT_ID is required. Provide it via options or environment variable.");
|
|
9429
9429
|
if (this.apiKey = r, this.projectId = n, this.source = i, this.cliVersion = s, this.notificationConfigs = e?.notificationConfigs, this.skipSuiteReporting = process.env.STABLY_INTERNAL_DISABLE_REPORTING === "1", e?.sensitiveValues?.length) {
|
|
9430
|
-
const a =
|
|
9430
|
+
const a = Kr(e.sensitiveValues);
|
|
9431
9431
|
this.sensitiveValues = [...a].sort((l, h) => h.length - l.length);
|
|
9432
9432
|
}
|
|
9433
|
-
this.wsClient = new
|
|
9433
|
+
this.wsClient = new ws({ apiKey: r, cliVersion: s, maxBufferSize: 1e3, maxReconnectAttempts: 3, onError: c((a) => this.handleWebSocketError(a), "onError"), onMessage: c((a) => this.handleWebSocketMessage(a), "onMessage"), projectId: n, reconnectDelay: 2e3, source: i, url: Ia });
|
|
9434
9434
|
}
|
|
9435
9435
|
handleUploadUrlsMessage(e) {
|
|
9436
9436
|
const r = `${e.testId}-${e.attemptNumber}`;
|
|
@@ -9443,14 +9443,14 @@ class vn {
|
|
|
9443
9443
|
this.suiteData = this.extractSuiteInfo(e, r);
|
|
9444
9444
|
const i = Ca({ notificationConfigs: this.notificationConfigs, suite: r });
|
|
9445
9445
|
this.filteredNotificationConfigs = i;
|
|
9446
|
-
const s = { ...this.suiteData, notificationRequest: i ? { notificationConfigs: i, shardIndex:
|
|
9446
|
+
const s = { ...this.suiteData, notificationRequest: i ? { notificationConfigs: i, shardIndex: me(this.config), totalShards: this.config?.shard?.total } : void 0, shardIndex: me(this.config), shardTotal: this.config?.shard?.total, status: "running" };
|
|
9447
9447
|
try {
|
|
9448
|
-
const d = fileURLToPath$1(new URL("./create-suite.mjs", import.meta.url)), g = JSON.stringify({ apiBaseUrl:
|
|
9449
|
-
if (
|
|
9450
|
-
const C =
|
|
9448
|
+
const d = fileURLToPath$1(new URL("./create-suite.mjs", import.meta.url)), g = JSON.stringify({ apiBaseUrl: Aa, apiKey: this.apiKey, body: s, cliVersion: this.cliVersion, projectId: this.projectId, source: this.source, timeoutMs: Cn }), w = spawnSync(process.execPath, [d], { encoding: "utf-8", input: g, stdio: ["pipe", "pipe", "pipe"], timeout: Cn + 5e3 });
|
|
9449
|
+
if (w.status === 2 && (console.error(it.bold(it.red("[StablyAI reporter] Could not authenticate with the server. Either the API Key or Project ID is invalid. These can be provided via stablyReporter({ apiKey, projectId }) in playwright.config.ts or environment variables (STABLY_API_KEY, STABLY_PROJECT_ID). You can find your API key and Project ID at https://app.stably.ai/settings?tab=api-key"))), process.exit(1)), w.status !== 0) {
|
|
9450
|
+
const C = w.stderr?.trim() || w.error?.message || "Unknown error";
|
|
9451
9451
|
throw new Error(C);
|
|
9452
9452
|
}
|
|
9453
|
-
this.createdSuiteRun = JSON.parse(
|
|
9453
|
+
this.createdSuiteRun = JSON.parse(w.stdout.trim()), console.log(it.cyan(`\u{1F4CA} View live results: ${it.bold(it.underline(this.createdSuiteRun.url))}
|
|
9454
9454
|
`));
|
|
9455
9455
|
} catch (d) {
|
|
9456
9456
|
const g = d instanceof Error ? d.message : String(d);
|
|
@@ -9460,7 +9460,7 @@ class vn {
|
|
|
9460
9460
|
for (const d of a) {
|
|
9461
9461
|
const g = Yt();
|
|
9462
9462
|
this.testIdMap.set(d.id, g);
|
|
9463
|
-
const
|
|
9463
|
+
const w = d.parent.project(), C = sr({ absolutePath: d.location.file, rootDir: this.rootDir }), v = { annotations: d.annotations.length > 0 ? d.annotations.map((D) => ({ description: D.description, type: D.type })) : void 0, attemptNumber: 1, browserName: w?.use?.defaultBrowserType, expectedStatus: d.expectedStatus === "skipped" ? "skipped" : "passed", fullTitle: this.scrubSensitiveString(d.titlePath().join(" \u203A ")) ?? "", location: `${C}:${d.location.line}:${d.location.column}`, maxRetries: d.retries, projectName: w?.name, tags: d.tags.length > 0 ? d.tags : void 0, testIdentifier: d.id, title: this.scrubSensitiveString(d.title) ?? d.title }, M = l.get(C);
|
|
9464
9464
|
M ? M.push(v) : l.set(C, [v]);
|
|
9465
9465
|
}
|
|
9466
9466
|
const h = Array.from(l.entries()).map(([d, g]) => ({ filePath: d, tests: g }));
|
|
@@ -9484,8 +9484,8 @@ class vn {
|
|
|
9484
9484
|
let h, d;
|
|
9485
9485
|
if (l.length > 0) {
|
|
9486
9486
|
h = `${n.id}-${n.attemptNumber}`;
|
|
9487
|
-
const { bufferedMessage: g, waitPromise:
|
|
9488
|
-
d =
|
|
9487
|
+
const { bufferedMessage: g, waitPromise: w } = this.uploadUrlWaitQueue.registerWait(h, Ta);
|
|
9488
|
+
d = w, g && this.handleUploadUrlsMessage(g), this.pendingOperations.track(d);
|
|
9489
9489
|
}
|
|
9490
9490
|
try {
|
|
9491
9491
|
await this.wsClient.sendEvent({ payload: { ...n, attachments: l, steps: i }, type: "test_end" });
|
|
@@ -9507,11 +9507,11 @@ class vn {
|
|
|
9507
9507
|
if (this.completedTestIds.has(d.id)) continue;
|
|
9508
9508
|
const g = this.testIdMap.get(d.id);
|
|
9509
9509
|
if (!g) continue;
|
|
9510
|
-
const
|
|
9511
|
-
this.pendingOperations.track(this.wsClient.sendEvent({ payload: { annotations: d.annotations.length > 0 ? d.annotations : void 0, attemptNumber: 1, browserName:
|
|
9510
|
+
const w = d.parent.project(), C = sr({ absolutePath: d.location.file, rootDir: this.rootDir });
|
|
9511
|
+
this.pendingOperations.track(this.wsClient.sendEvent({ payload: { annotations: d.annotations.length > 0 ? d.annotations : void 0, attemptNumber: 1, browserName: w?.use?.defaultBrowserType, duration: 0, expectedStatus: d.expectedStatus, fullTitle: this.scrubSensitiveString(d.titlePath().join(" \u203A ")) ?? "", id: g, location: `${C}:${d.location.line}:${d.location.column}`, maxRetries: d.retries, outcome: "skipped", projectName: w?.name, retryCount: 0, startedAt: h, status: "skipped", suiteId: this.testSuiteRunId, tags: d.tags.length > 0 ? d.tags : void 0, testIdentifier: d.id, title: this.scrubSensitiveString(d.title) ?? d.title }, type: "test_end" }));
|
|
9512
9512
|
}
|
|
9513
9513
|
}
|
|
9514
|
-
this.pendingOperations.track(this.wsClient.sendEvent({ payload: { duration: e.duration, notificationRequest: this.filteredNotificationConfigs ? { notificationConfigs: this.filteredNotificationConfigs, shardIndex:
|
|
9514
|
+
this.pendingOperations.track(this.wsClient.sendEvent({ payload: { duration: e.duration, notificationRequest: this.filteredNotificationConfigs ? { notificationConfigs: this.filteredNotificationConfigs, shardIndex: me(this.config), totalShards: this.config?.shard?.total } : void 0, shardIndex: me(this.config), shardTotal: this.config?.shard?.total, status: e.status === "timedout" ? "timedOut" : e.status, suiteId: this.testSuiteRunId }, type: "suite_end" })), Ie$1("[Stably reporter] Waiting for pending tasks to finish...");
|
|
9515
9515
|
const r = Y();
|
|
9516
9516
|
r.start("Waiting for tasks to finish...");
|
|
9517
9517
|
try {
|
|
@@ -9557,10 +9557,10 @@ class vn {
|
|
|
9557
9557
|
}
|
|
9558
9558
|
extractSuiteInfo(e, r) {
|
|
9559
9559
|
const n = ha(), i = ma(), s = /* @__PURE__ */ new Date();
|
|
9560
|
-
return { id: Yt(),
|
|
9560
|
+
return { id: Yt(), projects: va(r), projectSettings: Ua(e), startedAt: s, suiteId: this.testSuiteRunId, title: r.title || ba({ gitInfo: n, suite: r }), createdAt: s, git: { branch: n.branch, commit: { message: n.commit.message, sha: n.commit.sha }, pr: n.pr }, isCI: n.isCI, shards: e.shard?.total ?? 1, workers: e.workers, machineInfo: i, updatedAt: s };
|
|
9561
9561
|
}
|
|
9562
9562
|
extractTestCaseInfo(e, r) {
|
|
9563
|
-
const n =
|
|
9563
|
+
const n = sr({ absolutePath: e.location.file, rootDir: this.rootDir }), i = e.parent.project(), s = i?.name, a = i?.use?.defaultBrowserType, l = this.testIdMap.get(e.id), h = l ?? Yt();
|
|
9564
9564
|
return l || this.testIdMap.set(e.id, h), { fullTitle: this.scrubSensitiveString(e.titlePath().join(" \u203A ")) ?? "", id: h, location: `${n}:${e.location.line}:${e.location.column}`, suiteId: this.testSuiteRunId, testIdentifier: e.id, title: this.scrubSensitiveString(e.title) ?? e.title, browserName: a, duration: r.duration, expectedStatus: e.expectedStatus, finishedAt: r.startTime && r.duration ? new Date(r.startTime.getTime() + r.duration) : void 0, outcome: e.outcome(), projectName: s, startedAt: new Date(r.startTime), status: r.status, attemptNumber: r.retry + 1, maxRetries: e.retries, retryCount: r.retry, errorMessage: this.scrubSensitiveString(r.error?.message), errorStack: this.scrubSensitiveString(r.error?.stack), errorType: r.error?.value, annotations: e.annotations.length > 0 ? e.annotations : void 0, tags: e.tags.length > 0 ? e.tags : void 0 };
|
|
9565
9565
|
}
|
|
9566
9566
|
async extractAttachmentMetadata({ attachments: e, attemptNumber: r, testId: n }) {
|
|
@@ -9588,7 +9588,7 @@ class vn {
|
|
|
9588
9588
|
async getAttachmentFileData({ attachment: e, traceFd: r }) {
|
|
9589
9589
|
if (!e.path && !e.body) return;
|
|
9590
9590
|
if (e.name === "trace" && this.sensitiveValues && this.sensitiveValues.length > 0) {
|
|
9591
|
-
const i = e.path ? await this.scrubTraceFromFile({ attachmentPath: e.path, sensitiveValues: this.sensitiveValues, traceFd: r }) : e.body ? await
|
|
9591
|
+
const i = e.path ? await this.scrubTraceFromFile({ attachmentPath: e.path, sensitiveValues: this.sensitiveValues, traceFd: r }) : e.body ? await $e({ sensitiveValues: this.sensitiveValues, traceBuffer: Buffer.from(e.body) }) : void 0;
|
|
9592
9592
|
return i ? Buffer.from(i) : void 0;
|
|
9593
9593
|
}
|
|
9594
9594
|
return e.body ? Buffer.from(e.body) : e.path ? readFileSync$1(e.path) : void 0;
|
|
@@ -9597,7 +9597,7 @@ class vn {
|
|
|
9597
9597
|
return n !== void 0 ? Is({ sensitiveValues: r, traceFd: n, tracePath: e }) : _s({ sensitiveValues: r, tracePath: e });
|
|
9598
9598
|
}
|
|
9599
9599
|
handleWebSocketError(e) {
|
|
9600
|
-
e.code ===
|
|
9600
|
+
e.code === Qr.AUTHENTICATION_FAILED && (console.error(it.bold(it.red("[StablyAI reporter] Could not authenticate with the server. Either the API Key or Project ID is invalid. These can be provided via stablyReporter({ apiKey, projectId }) in playwright.config.ts or environment variables (STABLY_API_KEY, STABLY_PROJECT_ID). You can find your API key and Project ID at https://app.stably.ai/settings?tab=api-key"))), process.exit(1)), console.error("[StablyAI reporter] Could not connect to the server. Please check your internet connection and try again."), process.exit(1);
|
|
9601
9601
|
}
|
|
9602
9602
|
handleWebSocketMessage(e) {
|
|
9603
9603
|
e.type === "suite_created" ? (this.createdSuiteRun = { id: e.id, name: e.name, url: e.url }, this.pendingQueuedSpecs && (this.pendingOperations.track(this.wsClient.sendEvent({ payload: { specs: this.pendingQueuedSpecs, suiteId: this.testSuiteRunId }, type: "tests_queued" })), this.pendingQueuedSpecs = void 0)) : e.type === "upload_urls" && this.handleUploadUrlsMessage(e);
|
|
@@ -9606,19 +9606,19 @@ class vn {
|
|
|
9606
9606
|
const i = n.map(async ({ artifactId: s, name: a, uploadUrl: l }) => {
|
|
9607
9607
|
const h = `${r}-${e}-${s}`, d = this.attachmentFiles.get(h);
|
|
9608
9608
|
if (d) try {
|
|
9609
|
-
await _a({ fileData: d, maxRetries: 3, requestTimeoutMs:
|
|
9609
|
+
await _a({ fileData: d, maxRetries: 3, requestTimeoutMs: wa, uploadUrl: l }), this.attachmentFiles.delete(h);
|
|
9610
9610
|
} catch (g) {
|
|
9611
|
-
const
|
|
9612
|
-
console.error(`[StablyAI reporter] Failed to upload ${a} after retries: ${
|
|
9611
|
+
const w = g instanceof Error ? g.message : String(g);
|
|
9612
|
+
console.error(`[StablyAI reporter] Failed to upload ${a} after retries: ${w}`);
|
|
9613
9613
|
}
|
|
9614
9614
|
});
|
|
9615
9615
|
await Promise.allSettled(i);
|
|
9616
9616
|
}
|
|
9617
9617
|
}
|
|
9618
|
-
function
|
|
9618
|
+
function Ba(t) {
|
|
9619
9619
|
return ["@stablyai/playwright-test/reporter", t];
|
|
9620
9620
|
}
|
|
9621
|
-
c(
|
|
9621
|
+
c(Ba, "stablyReporter");
|
|
9622
9622
|
|
|
9623
|
-
export {
|
|
9624
|
-
//# sourceMappingURL=index-
|
|
9623
|
+
export { Ba as B, vn as v };
|
|
9624
|
+
//# sourceMappingURL=index-cF7EDVHb.mjs.map
|