@aikaara/chat-sdk 0.8.5 → 0.8.6
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/{MountTenant-z47varff.cjs → MountTenant-CbQMTk-J.cjs} +1 -1
- package/dist/{MountTenant-DQwRihyN.mjs → MountTenant-DA_soQf0.mjs} +463 -455
- package/dist/cdn/aikaara-chat.iife.js +1 -1
- package/dist/headless.cjs +1 -1
- package/dist/headless.d.ts +15 -0
- package/dist/headless.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.mjs +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
|
@@ -475,9 +475,9 @@ var Ki = Object.defineProperty, kl = Object.getOwnPropertyDescriptor, Sl = Objec
|
|
|
475
475
|
}, xl = (c, e, t, r) => {
|
|
476
476
|
if (e && typeof e == "object" || typeof e == "function") for (let a of Sl(e)) !El.call(c, a) && a !== t && Ki(c, a, { get: () => e[a], enumerable: !(r = kl(e, a)) || r.enumerable });
|
|
477
477
|
return c;
|
|
478
|
-
},
|
|
478
|
+
}, Oe = (c) => xl(Ki({}, "__esModule", { value: !0 }), c), le = He(() => {
|
|
479
479
|
}), Pe = {};
|
|
480
|
-
Lt(Pe, { _debugEnd: () => In, _debugProcess: () => An, _events: () => Wn, _eventsCount: () => qn, _exiting: () => fn, _fatalExceptions: () => Sn, _getActiveHandles: () => Ps, _getActiveRequests: () =>
|
|
480
|
+
Lt(Pe, { _debugEnd: () => In, _debugProcess: () => An, _events: () => Wn, _eventsCount: () => qn, _exiting: () => fn, _fatalExceptions: () => Sn, _getActiveHandles: () => Ps, _getActiveRequests: () => Os, _kill: () => gn, _linkedBinding: () => Ts, _maxListeners: () => $n, _preload_modules: () => Dn, _rawDebug: () => cn, _startProfilerIdleNotifier: () => Tn, _stopProfilerIdleNotifier: () => Cn, _tickCallback: () => xn, abort: () => Rn, addListener: () => Hn, allowedNodeEnvironmentFlags: () => _n, arch: () => Gr, argv: () => Jr, argv0: () => Bn, assert: () => Ms, binding: () => rn, browser: () => ln, chdir: () => sn, config: () => dn, cpuUsage: () => qt, cwd: () => on, debugPort: () => Un, default: () => Gi, dlopen: () => Cs, domain: () => hn, emit: () => Yn, emitWarning: () => tn, env: () => Qr, execArgv: () => Xr, execPath: () => Nn, exit: () => vn, features: () => kn, hasUncaughtExceptionCaptureCallback: () => Rs, hrtime: () => ir, kill: () => yn, listeners: () => Ls, memoryUsage: () => bn, moduleLoadList: () => un, nextTick: () => As, off: () => Kn, on: () => nt, once: () => zn, openStdin: () => wn, pid: () => jn, platform: () => Yr, ppid: () => Ln, prependListener: () => Qn, prependOnceListener: () => Jn, reallyExit: () => pn, release: () => an, removeAllListeners: () => Gn, removeListener: () => Vn, resourceUsage: () => mn, setSourceMapsEnabled: () => Fn, setUncaughtExceptionCaptureCallback: () => En, stderr: () => Pn, stdin: () => Mn, stdout: () => On, title: () => Vr, umask: () => nn, uptime: () => js, version: () => Zr, versions: () => en });
|
|
481
481
|
function Vi(c) {
|
|
482
482
|
throw new Error("Node.js process " + c + " is not supported by JSPM core outside of Node.js");
|
|
483
483
|
}
|
|
@@ -508,10 +508,10 @@ function Be() {
|
|
|
508
508
|
function Ts(c) {
|
|
509
509
|
Vi("_linkedBinding");
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Cs(c) {
|
|
512
512
|
Vi("dlopen");
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function Os() {
|
|
515
515
|
return [];
|
|
516
516
|
}
|
|
517
517
|
function Ps() {
|
|
@@ -536,7 +536,7 @@ function nt() {
|
|
|
536
536
|
function Ls(c) {
|
|
537
537
|
return [];
|
|
538
538
|
}
|
|
539
|
-
var et, St, _t, Vt, Vr, Gr, Yr, Qr, Jr, Xr, Zr, en, tn, rn, nn, on, sn, an, ln, cn, un, hn, fn, dn, pn, gn, qt, mn, bn, yn, vn, wn, _n, kn, Sn, En, xn, An, In, Tn,
|
|
539
|
+
var et, St, _t, Vt, Vr, Gr, Yr, Qr, Jr, Xr, Zr, en, tn, rn, nn, on, sn, an, ln, cn, un, hn, fn, dn, pn, gn, qt, mn, bn, yn, vn, wn, _n, kn, Sn, En, xn, An, In, Tn, Cn, On, Pn, Mn, Rn, jn, Ln, Nn, Un, Bn, Dn, Fn, ot, Dr, or, $n, Wn, qn, Hn, zn, Kn, Vn, Gn, Yn, Qn, Jn, Gi, Il = He(() => {
|
|
540
540
|
le(), ue(), ce(), et = [], St = !1, Vt = -1, Is.prototype.run = function() {
|
|
541
541
|
this.fun.apply(null, this.array);
|
|
542
542
|
}, Vr = "browser", Gr = "x64", Yr = "browser", Qr = { PATH: "/usr/bin", LANG: typeof navigator < "u" ? navigator.language + ".UTF-8" : void 0, PWD: "/", HOME: "/home", TMP: "/tmp" }, Jr = ["/usr/bin/node"], Xr = [], Zr = "v16.8.0", en = {}, tn = function(c, e) {
|
|
@@ -550,16 +550,16 @@ var et, St, _t, Vt, Vr, Gr, Yr, Qr, Jr, Xr, Zr, en, tn, rn, nn, on, sn, an, ln,
|
|
|
550
550
|
}, sn = function(c) {
|
|
551
551
|
}, an = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, ln = !0, cn = Be, un = [], hn = {}, fn = !1, dn = {}, pn = Be, gn = Be, qt = function() {
|
|
552
552
|
return {};
|
|
553
|
-
}, mn = qt, bn = qt, yn = Be, vn = Be, wn = Be, _n = {}, kn = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, Sn = Be, En = Be, xn = Be, An = Be, In = Be, Tn = Be,
|
|
553
|
+
}, mn = qt, bn = qt, yn = Be, vn = Be, wn = Be, _n = {}, kn = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, Sn = Be, En = Be, xn = Be, An = Be, In = Be, Tn = Be, Cn = Be, On = void 0, Pn = void 0, Mn = void 0, Rn = Be, jn = 2, Ln = 1, Nn = "/bin/usr/node", Un = 9229, Bn = "node", Dn = [], Fn = Be, ot = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, ot.now === void 0 && (Dr = Date.now(), ot.timing && ot.timing.navigationStart && (Dr = ot.timing.navigationStart), ot.now = () => Date.now() - Dr), or = 1e9, ir.bigint = function(c) {
|
|
554
554
|
var e = ir(c);
|
|
555
555
|
return typeof BigInt > "u" ? e[0] * or + e[1] : BigInt(e[0] * or) + BigInt(e[1]);
|
|
556
|
-
}, $n = 10, Wn = {}, qn = 0, Hn = nt, zn = nt, Kn = nt, Vn = nt, Gn = nt, Yn = Be, Qn = nt, Jn = nt, Gi = { version: Zr, versions: en, arch: Gr, platform: Yr, browser: ln, release: an, _rawDebug: cn, moduleLoadList: un, binding: rn, _linkedBinding: Ts, _events: Wn, _eventsCount: qn, _maxListeners: $n, on: nt, addListener: Hn, once: zn, off: Kn, removeListener: Vn, removeAllListeners: Gn, emit: Yn, prependListener: Qn, prependOnceListener: Jn, listeners: Ls, domain: hn, _exiting: fn, config: dn, dlopen:
|
|
556
|
+
}, $n = 10, Wn = {}, qn = 0, Hn = nt, zn = nt, Kn = nt, Vn = nt, Gn = nt, Yn = Be, Qn = nt, Jn = nt, Gi = { version: Zr, versions: en, arch: Gr, platform: Yr, browser: ln, release: an, _rawDebug: cn, moduleLoadList: un, binding: rn, _linkedBinding: Ts, _events: Wn, _eventsCount: qn, _maxListeners: $n, on: nt, addListener: Hn, once: zn, off: Kn, removeListener: Vn, removeAllListeners: Gn, emit: Yn, prependListener: Qn, prependOnceListener: Jn, listeners: Ls, domain: hn, _exiting: fn, config: dn, dlopen: Cs, uptime: js, _getActiveRequests: Os, _getActiveHandles: Ps, reallyExit: pn, _kill: gn, cpuUsage: qt, resourceUsage: mn, memoryUsage: bn, kill: yn, exit: vn, openStdin: wn, allowedNodeEnvironmentFlags: _n, assert: Ms, features: kn, _fatalExceptions: Sn, setUncaughtExceptionCaptureCallback: En, hasUncaughtExceptionCaptureCallback: Rs, emitWarning: tn, nextTick: As, _tickCallback: xn, _debugProcess: An, _debugEnd: In, _startProfilerIdleNotifier: Tn, _stopProfilerIdleNotifier: Cn, stdout: On, stdin: Mn, stderr: Pn, abort: Rn, umask: nn, chdir: sn, cwd: on, env: Qr, title: Vr, argv: Jr, execArgv: Xr, pid: jn, ppid: Ln, execPath: Nn, debugPort: Un, hrtime: ir, argv0: Bn, _preload_modules: Dn, setSourceMapsEnabled: Fn };
|
|
557
557
|
}), ce = He(() => {
|
|
558
558
|
Il();
|
|
559
559
|
});
|
|
560
560
|
function Tl() {
|
|
561
|
-
if (Xn) return
|
|
562
|
-
Xn = !0,
|
|
561
|
+
if (Xn) return Ot;
|
|
562
|
+
Xn = !0, Ot.byteLength = s, Ot.toByteArray = l, Ot.fromByteArray = p;
|
|
563
563
|
for (var c = [], e = [], t = typeof Uint8Array < "u" ? Uint8Array : Array, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a = 0, n = r.length; a < n; ++a) c[a] = r[a], e[r.charCodeAt(a)] = a;
|
|
564
564
|
e[45] = 62, e[95] = 63;
|
|
565
565
|
function i(b) {
|
|
@@ -593,9 +593,9 @@ function Tl() {
|
|
|
593
593
|
for (var f, g = b.length, y = g % 3, k = [], m = 16383, w = 0, E = g - y; w < E; w += m) k.push(d(b, w, w + m > E ? E : w + m));
|
|
594
594
|
return y === 1 ? (f = b[g - 1], k.push(c[f >> 2] + c[f << 4 & 63] + "==")) : y === 2 && (f = (b[g - 2] << 8) + b[g - 1], k.push(c[f >> 10] + c[f >> 4 & 63] + c[f << 2 & 63] + "=")), k.join("");
|
|
595
595
|
}
|
|
596
|
-
return
|
|
596
|
+
return Ot;
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function Cl() {
|
|
599
599
|
return Zn ? Ht : (Zn = !0, Ht.read = function(c, e, t, r, a) {
|
|
600
600
|
var n, i, s = a * 8 - r - 1, o = (1 << s) - 1, l = o >> 1, u = -7, d = t ? a - 1 : 0, p = t ? -1 : 1, b = c[e + d];
|
|
601
601
|
for (d += p, n = b & (1 << -u) - 1, b >>= -u, u += s; u > 0; n = n * 256 + c[e + d], d += p, u -= 8) ;
|
|
@@ -613,10 +613,10 @@ function Ol() {
|
|
|
613
613
|
c[t + b - f] |= g * 128;
|
|
614
614
|
}, Ht);
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function Ol() {
|
|
617
617
|
if (ei) return pt;
|
|
618
618
|
ei = !0;
|
|
619
|
-
let c = Tl(), e =
|
|
619
|
+
let c = Tl(), e = Cl(), t = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
|
|
620
620
|
pt.Buffer = i, pt.SlowBuffer = k, pt.INSPECT_MAX_BYTES = 50;
|
|
621
621
|
let r = 2147483647;
|
|
622
622
|
pt.kMaxLength = r, i.TYPED_ARRAY_SUPPORT = a(), !i.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
|
|
@@ -925,7 +925,7 @@ function Cl() {
|
|
|
925
925
|
function M(h, _, A, U) {
|
|
926
926
|
return ye(ee(_), h, A, U);
|
|
927
927
|
}
|
|
928
|
-
function
|
|
928
|
+
function O(h, _, A, U) {
|
|
929
929
|
return ye(de(_), h, A, U);
|
|
930
930
|
}
|
|
931
931
|
function B(h, _, A, U) {
|
|
@@ -951,7 +951,7 @@ function Cl() {
|
|
|
951
951
|
case "binary":
|
|
952
952
|
return M(this, h, _, A);
|
|
953
953
|
case "base64":
|
|
954
|
-
return
|
|
954
|
+
return O(this, h, _, A);
|
|
955
955
|
case "ucs2":
|
|
956
956
|
case "ucs-2":
|
|
957
957
|
case "utf16le":
|
|
@@ -1371,12 +1371,12 @@ function Cl() {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
return pt;
|
|
1373
1373
|
}
|
|
1374
|
-
var
|
|
1375
|
-
le(), ue(), ce(),
|
|
1374
|
+
var Ot, Xn, Ht, Zn, pt, ei, Pl = He(() => {
|
|
1375
|
+
le(), ue(), ce(), Ot = {}, Xn = !1, Ht = {}, Zn = !1, pt = {}, ei = !1;
|
|
1376
1376
|
}), Le = {};
|
|
1377
|
-
Lt(Le, { Buffer: () =>
|
|
1378
|
-
var it,
|
|
1379
|
-
le(), ue(), ce(), Pl(), it =
|
|
1377
|
+
Lt(Le, { Buffer: () => Cr, INSPECT_MAX_BYTES: () => Ns, default: () => it, kMaxLength: () => Us });
|
|
1378
|
+
var it, Cr, Ns, Us, Ne = He(() => {
|
|
1379
|
+
le(), ue(), ce(), Pl(), it = Ol(), it.Buffer, it.SlowBuffer, it.INSPECT_MAX_BYTES, it.kMaxLength, Cr = it.Buffer, Ns = it.INSPECT_MAX_BYTES, Us = it.kMaxLength;
|
|
1380
1380
|
}), ue = He(() => {
|
|
1381
1381
|
Ne();
|
|
1382
1382
|
}), Re = pe((c, e) => {
|
|
@@ -1518,10 +1518,10 @@ var it, Or, Ns, Us, Ne = He(() => {
|
|
|
1518
1518
|
let v = "The ";
|
|
1519
1519
|
m.endsWith(" argument") ? v += `${m} ` : v += `"${m}" ${m.includes(".") ? "property" : "argument"} `, v += "must be ";
|
|
1520
1520
|
let x = [], S = [], I = [];
|
|
1521
|
-
for (let
|
|
1521
|
+
for (let O of w) d(typeof O == "string", "All expected entries have to be of type string"), s.includes(O) ? x.push(O.toLowerCase()) : o.test(O) ? S.push(O) : (d(O !== "object", 'The value "object" should be written as "Object"'), I.push(O));
|
|
1522
1522
|
if (S.length > 0) {
|
|
1523
|
-
let
|
|
1524
|
-
|
|
1523
|
+
let O = x.indexOf("object");
|
|
1524
|
+
O !== -1 && (x.splice(x, O, 1), S.push("Object"));
|
|
1525
1525
|
}
|
|
1526
1526
|
if (x.length > 0) {
|
|
1527
1527
|
switch (x.length) {
|
|
@@ -1532,8 +1532,8 @@ var it, Or, Ns, Us, Ne = He(() => {
|
|
|
1532
1532
|
v += `one of type ${x[0]} or ${x[1]}`;
|
|
1533
1533
|
break;
|
|
1534
1534
|
default: {
|
|
1535
|
-
let
|
|
1536
|
-
v += `one of type ${x.join(", ")}, or ${
|
|
1535
|
+
let O = x.pop();
|
|
1536
|
+
v += `one of type ${x.join(", ")}, or ${O}`;
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
1539
1539
|
(S.length > 0 || I.length > 0) && (v += " or ");
|
|
@@ -1547,8 +1547,8 @@ var it, Or, Ns, Us, Ne = He(() => {
|
|
|
1547
1547
|
v += `an instance of ${S[0]} or ${S[1]}`;
|
|
1548
1548
|
break;
|
|
1549
1549
|
default: {
|
|
1550
|
-
let
|
|
1551
|
-
v += `an instance of ${S.join(", ")}, or ${
|
|
1550
|
+
let O = S.pop();
|
|
1551
|
+
v += `an instance of ${S.join(", ")}, or ${O}`;
|
|
1552
1552
|
}
|
|
1553
1553
|
}
|
|
1554
1554
|
I.length > 0 && (v += " or ");
|
|
@@ -1563,8 +1563,8 @@ var it, Or, Ns, Us, Ne = He(() => {
|
|
|
1563
1563
|
v += `one of ${I[0]} or ${I[1]}`;
|
|
1564
1564
|
break;
|
|
1565
1565
|
default: {
|
|
1566
|
-
let
|
|
1567
|
-
v += `one of ${I.join(", ")}, or ${
|
|
1566
|
+
let O = I.pop();
|
|
1567
|
+
v += `one of ${I.join(", ")}, or ${O}`;
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
1570
|
if (E == null) v += `. Received ${E}`;
|
|
@@ -1573,12 +1573,12 @@ var it, Or, Ns, Us, Ne = He(() => {
|
|
|
1573
1573
|
var M;
|
|
1574
1574
|
if ((M = E.constructor) !== null && M !== void 0 && M.name) v += `. Received an instance of ${E.constructor.name}`;
|
|
1575
1575
|
else {
|
|
1576
|
-
let
|
|
1577
|
-
v += `. Received ${
|
|
1576
|
+
let O = r(E, { depth: -1 });
|
|
1577
|
+
v += `. Received ${O}`;
|
|
1578
1578
|
}
|
|
1579
1579
|
} else {
|
|
1580
|
-
let
|
|
1581
|
-
|
|
1580
|
+
let O = r(E, { colors: !1 });
|
|
1581
|
+
O.length > 25 && (O = `${O.slice(0, 25)}...`), v += `. Received type ${typeof E} (${O})`;
|
|
1582
1582
|
}
|
|
1583
1583
|
return v;
|
|
1584
1584
|
}, TypeError), f("ERR_INVALID_ARG_VALUE", (m, w, E = "is invalid") => {
|
|
@@ -1672,8 +1672,8 @@ function Ml() {
|
|
|
1672
1672
|
if (S) {
|
|
1673
1673
|
var M;
|
|
1674
1674
|
if (v.length > 0 && (M = v[0]), M instanceof Error) throw M;
|
|
1675
|
-
var
|
|
1676
|
-
throw
|
|
1675
|
+
var O = new Error("Unhandled error." + (M ? " (" + M.message + ")" : ""));
|
|
1676
|
+
throw O.context = M, O;
|
|
1677
1677
|
}
|
|
1678
1678
|
var B = I[E];
|
|
1679
1679
|
if (B === void 0) return !1;
|
|
@@ -1682,12 +1682,12 @@ function Ml() {
|
|
|
1682
1682
|
return !0;
|
|
1683
1683
|
};
|
|
1684
1684
|
function l(E, v, x, S) {
|
|
1685
|
-
var I, M,
|
|
1686
|
-
if (s(x), M = E._events, M === void 0 ? (M = E._events = /* @__PURE__ */ Object.create(null), E._eventsCount = 0) : (M.newListener !== void 0 && (E.emit("newListener", v, x.listener ? x.listener : x), M = E._events),
|
|
1687
|
-
else if (typeof
|
|
1688
|
-
|
|
1689
|
-
var B = new Error("Possible EventEmitter memory leak detected. " +
|
|
1690
|
-
B.name = "MaxListenersExceededWarning", B.emitter = E, B.type = v, B.count =
|
|
1685
|
+
var I, M, O;
|
|
1686
|
+
if (s(x), M = E._events, M === void 0 ? (M = E._events = /* @__PURE__ */ Object.create(null), E._eventsCount = 0) : (M.newListener !== void 0 && (E.emit("newListener", v, x.listener ? x.listener : x), M = E._events), O = M[v]), O === void 0) O = M[v] = x, ++E._eventsCount;
|
|
1687
|
+
else if (typeof O == "function" ? O = M[v] = S ? [x, O] : [O, x] : S ? O.unshift(x) : O.push(x), I = o(E), I > 0 && O.length > I && !O.warned) {
|
|
1688
|
+
O.warned = !0;
|
|
1689
|
+
var B = new Error("Possible EventEmitter memory leak detected. " + O.length + " " + String(v) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
1690
|
+
B.name = "MaxListenersExceededWarning", B.emitter = E, B.type = v, B.count = O.length, r(B);
|
|
1691
1691
|
}
|
|
1692
1692
|
return E;
|
|
1693
1693
|
}
|
|
@@ -1708,17 +1708,17 @@ function Ml() {
|
|
|
1708
1708
|
}, n.prototype.prependOnceListener = function(E, v) {
|
|
1709
1709
|
return s(v), this.prependListener(E, d(this, E, v)), this;
|
|
1710
1710
|
}, n.prototype.removeListener = function(E, v) {
|
|
1711
|
-
var x, S, I, M,
|
|
1711
|
+
var x, S, I, M, O;
|
|
1712
1712
|
if (s(v), S = this._events, S === void 0) return this;
|
|
1713
1713
|
if (x = S[E], x === void 0) return this;
|
|
1714
1714
|
if (x === v || x.listener === v) --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete S[E], S.removeListener && this.emit("removeListener", E, x.listener || v));
|
|
1715
1715
|
else if (typeof x != "function") {
|
|
1716
1716
|
for (I = -1, M = x.length - 1; M >= 0; M--) if (x[M] === v || x[M].listener === v) {
|
|
1717
|
-
|
|
1717
|
+
O = x[M].listener, I = M;
|
|
1718
1718
|
break;
|
|
1719
1719
|
}
|
|
1720
1720
|
if (I < 0) return this;
|
|
1721
|
-
I === 0 ? x.shift() : g(x, I), x.length === 1 && (S[E] = x[0]), S.removeListener !== void 0 && this.emit("removeListener", E,
|
|
1721
|
+
I === 0 ? x.shift() : g(x, I), x.length === 1 && (S[E] = x[0]), S.removeListener !== void 0 && this.emit("removeListener", E, O || v);
|
|
1722
1722
|
}
|
|
1723
1723
|
return this;
|
|
1724
1724
|
}, n.prototype.off = n.prototype.removeListener, n.prototype.removeAllListeners = function(E) {
|
|
@@ -1773,8 +1773,8 @@ function Ml() {
|
|
|
1773
1773
|
}
|
|
1774
1774
|
function k(E, v) {
|
|
1775
1775
|
return new Promise(function(x, S) {
|
|
1776
|
-
function I(
|
|
1777
|
-
E.removeListener(v, M), S(
|
|
1776
|
+
function I(O) {
|
|
1777
|
+
E.removeListener(v, M), S(O);
|
|
1778
1778
|
}
|
|
1779
1779
|
function M() {
|
|
1780
1780
|
typeof E.removeListener == "function" && E.removeListener("error", I), x([].slice.call(arguments));
|
|
@@ -1836,7 +1836,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
1836
1836
|
}, { EventEmitter: Ds, defaultMaxListeners: Fs, init: $s, listenerCount: Ws, on: qs, once: Hs } = Pt;
|
|
1837
1837
|
}), qe = pe((c, e) => {
|
|
1838
1838
|
le(), ue(), ce();
|
|
1839
|
-
var t = (Ne(),
|
|
1839
|
+
var t = (Ne(), Oe(Le)), { format: r, inspect: a } = Bs(), { codes: { ERR_INVALID_ARG_TYPE: n } } = We(), { kResistStopPropagation: i, AggregateError: s, SymbolDispose: o } = Re(), l = globalThis.AbortSignal || Yt().AbortSignal, u = globalThis.AbortController || Yt().AbortController, d = Object.getPrototypeOf(async function() {
|
|
1840
1840
|
}).constructor, p = globalThis.Blob || t.Blob, b = typeof p < "u" ? function(y) {
|
|
1841
1841
|
return y instanceof p;
|
|
1842
1842
|
} : function(y) {
|
|
@@ -1869,7 +1869,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
1869
1869
|
return ArrayBuffer.isView(y);
|
|
1870
1870
|
} }, isBlob: b, deprecate(y, k) {
|
|
1871
1871
|
return y;
|
|
1872
|
-
}, addAbortListener: (xt(),
|
|
1872
|
+
}, addAbortListener: (xt(), Oe(bt)).addAbortListener || function(y, k) {
|
|
1873
1873
|
if (y === void 0) throw new n("signal", "AbortSignal", y);
|
|
1874
1874
|
f(y, "signal"), g(k, "listener");
|
|
1875
1875
|
let m;
|
|
@@ -1891,7 +1891,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
1891
1891
|
}), Qt = pe((c, e) => {
|
|
1892
1892
|
le(), ue(), ce();
|
|
1893
1893
|
var { ArrayIsArray: t, ArrayPrototypeIncludes: r, ArrayPrototypeJoin: a, ArrayPrototypeMap: n, NumberIsInteger: i, NumberIsNaN: s, NumberMAX_SAFE_INTEGER: o, NumberMIN_SAFE_INTEGER: l, NumberParseInt: u, ObjectPrototypeHasOwnProperty: d, RegExpPrototypeExec: p, String: b, StringPrototypeToUpperCase: f, StringPrototypeTrim: g } = Re(), { hideStackFrames: y, codes: { ERR_SOCKET_BAD_PORT: k, ERR_INVALID_ARG_TYPE: m, ERR_INVALID_ARG_VALUE: w, ERR_OUT_OF_RANGE: E, ERR_UNKNOWN_SIGNAL: v } } = We(), { normalizeEncoding: x } = qe(), { isAsyncFunction: S, isArrayBufferView: I } = qe().types, M = {};
|
|
1894
|
-
function
|
|
1894
|
+
function O(q) {
|
|
1895
1895
|
return q === (q | 0);
|
|
1896
1896
|
}
|
|
1897
1897
|
function B(q) {
|
|
@@ -2009,7 +2009,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
2009
2009
|
}
|
|
2010
2010
|
throw new w("hints", q, 'must be an array or string of format "</styles.css>; rel=preload; as=style"');
|
|
2011
2011
|
}
|
|
2012
|
-
e.exports = { isInt32:
|
|
2012
|
+
e.exports = { isInt32: O, isUint32: B, parseFileMode: D, validateArray: te, validateStringArray: we, validateBooleanArray: V, validateAbortSignalArray: L, validateBoolean: Z, validateBuffer: H, validateDictionary: be, validateEncoding: G, validateFunction: oe, validateInt32: ae, validateInteger: N, validateNumber: re, validateObject: J, validateOneOf: F, validatePlainFunction: R, validatePort: Q, validateSignalName: ne, validateString: K, validateUint32: Y, validateUndefined: $, validateUnion: ee, validateAbortSignal: me, validateLinkHeaderValue: ye };
|
|
2013
2013
|
}), At = pe((c, e) => {
|
|
2014
2014
|
le(), ue(), ce();
|
|
2015
2015
|
var t = e.exports = {}, r, a;
|
|
@@ -2156,14 +2156,14 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
2156
2156
|
let be = P._readableState;
|
|
2157
2157
|
return be != null && be.errored ? !1 : typeof be?.endEmitted != "boolean" ? null : !!(be.endEmitted || J === !1 && be.ended === !0 && be.length === 0);
|
|
2158
2158
|
}
|
|
2159
|
-
function
|
|
2159
|
+
function O(P) {
|
|
2160
2160
|
return P && P[s] != null ? P[s] : typeof P?.readable != "boolean" ? null : v(P) ? !1 : p(P) && P.readable && !M(P);
|
|
2161
2161
|
}
|
|
2162
2162
|
function B(P) {
|
|
2163
2163
|
return P && P[o] != null ? P[o] : typeof P?.writable != "boolean" ? null : v(P) ? !1 : b(P) && P.writable && !x(P);
|
|
2164
2164
|
}
|
|
2165
2165
|
function T(P, J) {
|
|
2166
|
-
return g(P) ? v(P) ? !0 : !(J?.readable !== !1 &&
|
|
2166
|
+
return g(P) ? v(P) ? !0 : !(J?.readable !== !1 && O(P) || J?.writable !== !1 && B(P)) : null;
|
|
2167
2167
|
}
|
|
2168
2168
|
function W(P) {
|
|
2169
2169
|
var J, be;
|
|
@@ -2202,10 +2202,10 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
2202
2202
|
var J, be, te, we, V, L, ne, H, G, Q;
|
|
2203
2203
|
return !!(P && ((J = (be = (te = (we = (V = (L = P[i]) !== null && L !== void 0 ? L : P.readableErrored) !== null && V !== void 0 ? V : P.writableErrored) !== null && we !== void 0 ? we : (ne = P._readableState) === null || ne === void 0 ? void 0 : ne.errorEmitted) !== null && te !== void 0 ? te : (H = P._writableState) === null || H === void 0 ? void 0 : H.errorEmitted) !== null && be !== void 0 ? be : (G = P._readableState) === null || G === void 0 ? void 0 : G.errored) !== null && J !== void 0 ? J : !((Q = P._writableState) === null || Q === void 0) && Q.errored));
|
|
2204
2204
|
}
|
|
2205
|
-
e.exports = { isDestroyed: v, kIsDestroyed: n, isDisturbed: F, kIsDisturbed: l, isErrored: Z, kIsErrored: i, isReadable:
|
|
2205
|
+
e.exports = { isDestroyed: v, kIsDestroyed: n, isDisturbed: F, kIsDisturbed: l, isErrored: Z, kIsErrored: i, isReadable: O, kIsReadable: s, kIsClosedPromise: u, kControllerErrorFunction: d, kIsWritable: o, isClosed: N, isDuplexNodeStream: f, isFinished: T, isIterable: E, isReadableNodeStream: p, isReadableStream: y, isReadableEnded: I, isReadableFinished: M, isReadableErrored: D, isNodeStream: g, isWebStream: w, isWritable: B, isWritableNodeStream: b, isWritableStream: k, isWritableEnded: x, isWritableFinished: S, isWritableErrored: W, isServerRequest: K, isServerResponse: Y, willEmitClose: re, isTransformStream: m };
|
|
2206
2206
|
}), yt = pe((c, e) => {
|
|
2207
2207
|
le(), ue(), ce();
|
|
2208
|
-
var t = At(), { AbortError: r, codes: a } = We(), { ERR_INVALID_ARG_TYPE: n, ERR_STREAM_PREMATURE_CLOSE: i } = a, { kEmptyObject: s, once: o } = qe(), { validateAbortSignal: l, validateFunction: u, validateObject: d, validateBoolean: p } = Qt(), { Promise: b, PromisePrototypeThen: f, SymbolDispose: g } = Re(), { isClosed: y, isReadable: k, isReadableNodeStream: m, isReadableStream: w, isReadableFinished: E, isReadableErrored: v, isWritable: x, isWritableNodeStream: S, isWritableStream: I, isWritableFinished: M, isWritableErrored:
|
|
2208
|
+
var t = At(), { AbortError: r, codes: a } = We(), { ERR_INVALID_ARG_TYPE: n, ERR_STREAM_PREMATURE_CLOSE: i } = a, { kEmptyObject: s, once: o } = qe(), { validateAbortSignal: l, validateFunction: u, validateObject: d, validateBoolean: p } = Qt(), { Promise: b, PromisePrototypeThen: f, SymbolDispose: g } = Re(), { isClosed: y, isReadable: k, isReadableNodeStream: m, isReadableStream: w, isReadableFinished: E, isReadableErrored: v, isWritable: x, isWritableNodeStream: S, isWritableStream: I, isWritableFinished: M, isWritableErrored: O, isNodeStream: B, willEmitClose: T, kIsClosedPromise: W } = ct(), D;
|
|
2209
2209
|
function N(F) {
|
|
2210
2210
|
return F.setHeader && typeof F.abort == "function";
|
|
2211
2211
|
}
|
|
@@ -2225,14 +2225,14 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
2225
2225
|
P.call(F, q);
|
|
2226
2226
|
}, $ = y(F), ee = () => {
|
|
2227
2227
|
$ = !0;
|
|
2228
|
-
let q =
|
|
2228
|
+
let q = O(F) || v(F);
|
|
2229
2229
|
if (q && typeof q != "boolean") return P.call(F, q);
|
|
2230
2230
|
if (te && !me && m(F, !0) && !E(F, !1)) return P.call(F, new i());
|
|
2231
2231
|
if (we && !G && !M(F, !1)) return P.call(F, new i());
|
|
2232
2232
|
P.call(F);
|
|
2233
2233
|
}, fe = () => {
|
|
2234
2234
|
$ = !0;
|
|
2235
|
-
let q =
|
|
2235
|
+
let q = O(F) || v(F);
|
|
2236
2236
|
if (q && typeof q != "boolean") return P.call(F, q);
|
|
2237
2237
|
P.call(F);
|
|
2238
2238
|
}, de = () => {
|
|
@@ -2364,16 +2364,16 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
2364
2364
|
function M(T) {
|
|
2365
2365
|
T.emit("close");
|
|
2366
2366
|
}
|
|
2367
|
-
function
|
|
2367
|
+
function O(T, W) {
|
|
2368
2368
|
T.emit("error", W), t.nextTick(M, T);
|
|
2369
2369
|
}
|
|
2370
2370
|
function B(T, W) {
|
|
2371
|
-
!T || o(T) || (!W && !l(T) && (W = new n()), u(T) ? (T.socket = null, T.destroy(W)) : I(T) ? T.abort() : I(T.req) ? T.req.abort() : typeof T.destroy == "function" ? T.destroy(W) : typeof T.close == "function" ? T.close() : W ? t.nextTick(
|
|
2371
|
+
!T || o(T) || (!W && !l(T) && (W = new n()), u(T) ? (T.socket = null, T.destroy(W)) : I(T) ? T.abort() : I(T.req) ? T.req.abort() : typeof T.destroy == "function" ? T.destroy(W) : typeof T.close == "function" ? T.close() : W ? t.nextTick(O, T, W) : t.nextTick(M, T), T.destroyed || (T[s] = !0));
|
|
2372
2372
|
}
|
|
2373
2373
|
e.exports = { construct: v, destroyer: B, destroy: f, undestroy: w, errorOrDestroy: E };
|
|
2374
2374
|
}), Yi = pe((c, e) => {
|
|
2375
2375
|
le(), ue(), ce();
|
|
2376
|
-
var { ArrayIsArray: t, ObjectSetPrototypeOf: r } = Re(), { EventEmitter: a } = (xt(),
|
|
2376
|
+
var { ArrayIsArray: t, ObjectSetPrototypeOf: r } = Re(), { EventEmitter: a } = (xt(), Oe(bt));
|
|
2377
2377
|
function n(s) {
|
|
2378
2378
|
a.call(this, s);
|
|
2379
2379
|
}
|
|
@@ -2433,7 +2433,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
2433
2433
|
};
|
|
2434
2434
|
}), Rl = pe((c, e) => {
|
|
2435
2435
|
le(), ue(), ce();
|
|
2436
|
-
var { StringPrototypeSlice: t, SymbolIterator: r, TypedArrayPrototypeSet: a, Uint8Array: n } = Re(), { Buffer: i } = (Ne(),
|
|
2436
|
+
var { StringPrototypeSlice: t, SymbolIterator: r, TypedArrayPrototypeSet: a, Uint8Array: n } = Re(), { Buffer: i } = (Ne(), Oe(Le)), { inspect: s } = qe();
|
|
2437
2437
|
e.exports = class {
|
|
2438
2438
|
constructor() {
|
|
2439
2439
|
this.head = null, this.tail = null, this.length = 0;
|
|
@@ -2536,7 +2536,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
2536
2536
|
e.exports = { getHighWaterMark: d, getDefaultHighWaterMark: l, setDefaultHighWaterMark: u };
|
|
2537
2537
|
}), jl = pe((c, e) => {
|
|
2538
2538
|
le(), ue(), ce();
|
|
2539
|
-
var t = (Ne(),
|
|
2539
|
+
var t = (Ne(), Oe(Le)), r = t.Buffer;
|
|
2540
2540
|
function a(i, s) {
|
|
2541
2541
|
for (var o in i) s[o] = i[o];
|
|
2542
2542
|
}
|
|
@@ -2706,7 +2706,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
2706
2706
|
}
|
|
2707
2707
|
}), zs = pe((c, e) => {
|
|
2708
2708
|
le(), ue(), ce();
|
|
2709
|
-
var t = At(), { PromisePrototypeThen: r, SymbolAsyncIterator: a, SymbolIterator: n } = Re(), { Buffer: i } = (Ne(),
|
|
2709
|
+
var t = At(), { PromisePrototypeThen: r, SymbolAsyncIterator: a, SymbolIterator: n } = Re(), { Buffer: i } = (Ne(), Oe(Le)), { ERR_INVALID_ARG_TYPE: s, ERR_STREAM_NULL_VALUES: o } = We().codes;
|
|
2710
2710
|
function l(u, d, p) {
|
|
2711
2711
|
let b;
|
|
2712
2712
|
if (typeof d == "string" || d instanceof i) return new u({ objectMode: !0, ...p, read() {
|
|
@@ -2757,88 +2757,88 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
2757
2757
|
le(), ue(), ce();
|
|
2758
2758
|
var t = At(), { ArrayPrototypeIndexOf: r, NumberIsInteger: a, NumberIsNaN: n, NumberParseInt: i, ObjectDefineProperties: s, ObjectKeys: o, ObjectSetPrototypeOf: l, Promise: u, SafeSet: d, SymbolAsyncDispose: p, SymbolAsyncIterator: b, Symbol: f } = Re();
|
|
2759
2759
|
e.exports = se, se.ReadableState = ve;
|
|
2760
|
-
var { EventEmitter: g } = (xt(),
|
|
2761
|
-
v =
|
|
2762
|
-
}), x = Rl(), S = Nt(), { getHighWaterMark: I, getDefaultHighWaterMark: M } = Rr(), { aggregateTwoErrors:
|
|
2760
|
+
var { EventEmitter: g } = (xt(), Oe(bt)), { Stream: y, prependListener: k } = Yi(), { Buffer: m } = (Ne(), Oe(Le)), { addAbortSignal: w } = Mr(), E = yt(), v = qe().debuglog("stream", (C) => {
|
|
2761
|
+
v = C;
|
|
2762
|
+
}), x = Rl(), S = Nt(), { getHighWaterMark: I, getDefaultHighWaterMark: M } = Rr(), { aggregateTwoErrors: O, codes: { ERR_INVALID_ARG_TYPE: B, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: W, ERR_STREAM_PUSH_AFTER_EOF: D, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: N }, AbortError: ae } = We(), { validateObject: Y } = Qt(), K = f("kPaused"), { StringDecoder: re } = Ll(), F = zs();
|
|
2763
2763
|
l(se.prototype, y.prototype), l(se, y);
|
|
2764
2764
|
var Z = () => {
|
|
2765
2765
|
}, { errorOrDestroy: P } = S, J = 1, be = 2, te = 4, we = 8, V = 16, L = 32, ne = 64, H = 128, G = 256, Q = 512, me = 1024, oe = 2048, R = 4096, $ = 8192, ee = 16384, fe = 32768, de = 65536, ye = 1 << 17, q = 1 << 18;
|
|
2766
|
-
function ge(
|
|
2766
|
+
function ge(C) {
|
|
2767
2767
|
return { enumerable: !1, get() {
|
|
2768
|
-
return (this.state &
|
|
2768
|
+
return (this.state & C) !== 0;
|
|
2769
2769
|
}, set(j) {
|
|
2770
|
-
j ? this.state |=
|
|
2770
|
+
j ? this.state |= C : this.state &= ~C;
|
|
2771
2771
|
} };
|
|
2772
2772
|
}
|
|
2773
2773
|
s(ve.prototype, { objectMode: ge(J), ended: ge(be), endEmitted: ge(te), reading: ge(we), constructed: ge(V), sync: ge(L), needReadable: ge(ne), emittedReadable: ge(H), readableListening: ge(G), resumeScheduled: ge(Q), errorEmitted: ge(me), emitClose: ge(oe), autoDestroy: ge(R), destroyed: ge($), closed: ge(ee), closeEmitted: ge(fe), multiAwaitDrain: ge(de), readingMore: ge(ye), dataEmitted: ge(q) });
|
|
2774
|
-
function ve(
|
|
2775
|
-
typeof _e != "boolean" && (_e = j instanceof at()), this.state = oe | R | V | L,
|
|
2774
|
+
function ve(C, j, _e) {
|
|
2775
|
+
typeof _e != "boolean" && (_e = j instanceof at()), this.state = oe | R | V | L, C && C.objectMode && (this.state |= J), _e && C && C.readableObjectMode && (this.state |= J), this.highWaterMark = C ? I(this, C, "readableHighWaterMark", _e) : M(!1), this.buffer = new x(), this.length = 0, this.pipes = [], this.flowing = null, this[K] = null, C && C.emitClose === !1 && (this.state &= ~oe), C && C.autoDestroy === !1 && (this.state &= ~R), this.errored = null, this.defaultEncoding = C && C.defaultEncoding || "utf8", this.awaitDrainWriters = null, this.decoder = null, this.encoding = null, C && C.encoding && (this.decoder = new re(C.encoding), this.encoding = C.encoding);
|
|
2776
2776
|
}
|
|
2777
|
-
function se(
|
|
2778
|
-
if (!(this instanceof se)) return new se(
|
|
2777
|
+
function se(C) {
|
|
2778
|
+
if (!(this instanceof se)) return new se(C);
|
|
2779
2779
|
let j = this instanceof at();
|
|
2780
|
-
this._readableState = new ve(
|
|
2780
|
+
this._readableState = new ve(C, this, j), C && (typeof C.read == "function" && (this._read = C.read), typeof C.destroy == "function" && (this._destroy = C.destroy), typeof C.construct == "function" && (this._construct = C.construct), C.signal && !j && w(C.signal, this)), y.call(this, C), S.construct(this, () => {
|
|
2781
2781
|
this._readableState.needReadable && z(this, this._readableState);
|
|
2782
2782
|
});
|
|
2783
2783
|
}
|
|
2784
|
-
se.prototype.destroy = S.destroy, se.prototype._undestroy = S.undestroy, se.prototype._destroy = function(
|
|
2785
|
-
j(
|
|
2786
|
-
}, se.prototype[g.captureRejectionSymbol] = function(
|
|
2787
|
-
this.destroy(
|
|
2784
|
+
se.prototype.destroy = S.destroy, se.prototype._undestroy = S.undestroy, se.prototype._destroy = function(C, j) {
|
|
2785
|
+
j(C);
|
|
2786
|
+
}, se.prototype[g.captureRejectionSymbol] = function(C) {
|
|
2787
|
+
this.destroy(C);
|
|
2788
2788
|
}, se.prototype[p] = function() {
|
|
2789
|
-
let
|
|
2790
|
-
return this.destroyed || (
|
|
2791
|
-
}, se.prototype.push = function(
|
|
2792
|
-
return Te(this,
|
|
2793
|
-
}, se.prototype.unshift = function(
|
|
2794
|
-
return Te(this,
|
|
2795
|
-
};
|
|
2796
|
-
function Te(
|
|
2789
|
+
let C;
|
|
2790
|
+
return this.destroyed || (C = this.readableEnded ? null : new ae(), this.destroy(C)), new u((j, _e) => E(this, (Se) => Se && Se !== C ? _e(Se) : j(null)));
|
|
2791
|
+
}, se.prototype.push = function(C, j) {
|
|
2792
|
+
return Te(this, C, j, !1);
|
|
2793
|
+
}, se.prototype.unshift = function(C, j) {
|
|
2794
|
+
return Te(this, C, j, !0);
|
|
2795
|
+
};
|
|
2796
|
+
function Te(C, j, _e, Se) {
|
|
2797
2797
|
v("readableAddChunk", j);
|
|
2798
|
-
let Ee =
|
|
2799
|
-
if ((Ee.state & J) === 0 && (typeof j == "string" ? (_e = _e || Ee.defaultEncoding, Ee.encoding !== _e && (Se && Ee.encoding ? j = m.from(j, _e).toString(Ee.encoding) : (j = m.from(j, _e), _e = ""))) : j instanceof m ? _e = "" : y._isUint8Array(j) ? (j = y._uint8ArrayToBuffer(j), _e = "") : j != null && (je = new B("chunk", ["string", "Buffer", "Uint8Array"], j))), je) P(
|
|
2800
|
-
else if (j === null) Ee.state &= ~we, X(
|
|
2801
|
-
else if ((Ee.state & J) !== 0 || j && j.length > 0) if (Se) if ((Ee.state & te) !== 0) P(
|
|
2798
|
+
let Ee = C._readableState, je;
|
|
2799
|
+
if ((Ee.state & J) === 0 && (typeof j == "string" ? (_e = _e || Ee.defaultEncoding, Ee.encoding !== _e && (Se && Ee.encoding ? j = m.from(j, _e).toString(Ee.encoding) : (j = m.from(j, _e), _e = ""))) : j instanceof m ? _e = "" : y._isUint8Array(j) ? (j = y._uint8ArrayToBuffer(j), _e = "") : j != null && (je = new B("chunk", ["string", "Buffer", "Uint8Array"], j))), je) P(C, je);
|
|
2800
|
+
else if (j === null) Ee.state &= ~we, X(C, Ee);
|
|
2801
|
+
else if ((Ee.state & J) !== 0 || j && j.length > 0) if (Se) if ((Ee.state & te) !== 0) P(C, new N());
|
|
2802
2802
|
else {
|
|
2803
2803
|
if (Ee.destroyed || Ee.errored) return !1;
|
|
2804
|
-
h(
|
|
2804
|
+
h(C, Ee, j, !0);
|
|
2805
2805
|
}
|
|
2806
|
-
else if (Ee.ended) P(
|
|
2806
|
+
else if (Ee.ended) P(C, new D());
|
|
2807
2807
|
else {
|
|
2808
2808
|
if (Ee.destroyed || Ee.errored) return !1;
|
|
2809
|
-
Ee.state &= ~we, Ee.decoder && !_e ? (j = Ee.decoder.write(j), Ee.objectMode || j.length !== 0 ? h(
|
|
2809
|
+
Ee.state &= ~we, Ee.decoder && !_e ? (j = Ee.decoder.write(j), Ee.objectMode || j.length !== 0 ? h(C, Ee, j, !1) : z(C, Ee)) : h(C, Ee, j, !1);
|
|
2810
2810
|
}
|
|
2811
|
-
else Se || (Ee.state &= ~we, z(
|
|
2811
|
+
else Se || (Ee.state &= ~we, z(C, Ee));
|
|
2812
2812
|
return !Ee.ended && (Ee.length < Ee.highWaterMark || Ee.length === 0);
|
|
2813
2813
|
}
|
|
2814
|
-
function h(
|
|
2815
|
-
j.flowing && j.length === 0 && !j.sync &&
|
|
2814
|
+
function h(C, j, _e, Se) {
|
|
2815
|
+
j.flowing && j.length === 0 && !j.sync && C.listenerCount("data") > 0 ? ((j.state & de) !== 0 ? j.awaitDrainWriters.clear() : j.awaitDrainWriters = null, j.dataEmitted = !0, C.emit("data", _e)) : (j.length += j.objectMode ? 1 : _e.length, Se ? j.buffer.unshift(_e) : j.buffer.push(_e), (j.state & ne) !== 0 && he(C)), z(C, j);
|
|
2816
2816
|
}
|
|
2817
2817
|
se.prototype.isPaused = function() {
|
|
2818
|
-
let
|
|
2819
|
-
return
|
|
2820
|
-
}, se.prototype.setEncoding = function(
|
|
2821
|
-
let j = new re(
|
|
2818
|
+
let C = this._readableState;
|
|
2819
|
+
return C[K] === !0 || C.flowing === !1;
|
|
2820
|
+
}, se.prototype.setEncoding = function(C) {
|
|
2821
|
+
let j = new re(C);
|
|
2822
2822
|
this._readableState.decoder = j, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
2823
2823
|
let _e = this._readableState.buffer, Se = "";
|
|
2824
2824
|
for (let Ee of _e) Se += j.write(Ee);
|
|
2825
2825
|
return _e.clear(), Se !== "" && _e.push(Se), this._readableState.length = Se.length, this;
|
|
2826
2826
|
};
|
|
2827
2827
|
var _ = 1073741824;
|
|
2828
|
-
function A(
|
|
2829
|
-
if (
|
|
2830
|
-
return
|
|
2831
|
-
}
|
|
2832
|
-
function U(
|
|
2833
|
-
return
|
|
2834
|
-
}
|
|
2835
|
-
se.prototype.read = function(
|
|
2836
|
-
v("read",
|
|
2837
|
-
let j = this._readableState, _e =
|
|
2838
|
-
if (
|
|
2839
|
-
if (
|
|
2828
|
+
function A(C) {
|
|
2829
|
+
if (C > _) throw new W("size", "<= 1GiB", C);
|
|
2830
|
+
return C--, C |= C >>> 1, C |= C >>> 2, C |= C >>> 4, C |= C >>> 8, C |= C >>> 16, C++, C;
|
|
2831
|
+
}
|
|
2832
|
+
function U(C, j) {
|
|
2833
|
+
return C <= 0 || j.length === 0 && j.ended ? 0 : (j.state & J) !== 0 ? 1 : n(C) ? j.flowing && j.length ? j.buffer.first().length : j.length : C <= j.length ? C : j.ended ? j.length : 0;
|
|
2834
|
+
}
|
|
2835
|
+
se.prototype.read = function(C) {
|
|
2836
|
+
v("read", C), C === void 0 ? C = NaN : a(C) || (C = i(C, 10));
|
|
2837
|
+
let j = this._readableState, _e = C;
|
|
2838
|
+
if (C > j.highWaterMark && (j.highWaterMark = A(C)), C !== 0 && (j.state &= ~H), C === 0 && j.needReadable && ((j.highWaterMark !== 0 ? j.length >= j.highWaterMark : j.length > 0) || j.ended)) return v("read: emitReadable", j.length, j.ended), j.length === 0 && j.ended ? Je(this) : he(this), null;
|
|
2839
|
+
if (C = U(C, j), C === 0 && j.ended) return j.length === 0 && Je(this), null;
|
|
2840
2840
|
let Se = (j.state & ne) !== 0;
|
|
2841
|
-
if (v("need readable", Se), (j.length === 0 || j.length -
|
|
2841
|
+
if (v("need readable", Se), (j.length === 0 || j.length - C < j.highWaterMark) && (Se = !0, v("length less than watermark", Se)), j.ended || j.reading || j.destroyed || j.errored || !j.constructed) Se = !1, v("reading, ended or constructing", Se);
|
|
2842
2842
|
else if (Se) {
|
|
2843
2843
|
v("do read"), j.state |= we | L, j.length === 0 && (j.state |= ne);
|
|
2844
2844
|
try {
|
|
@@ -2846,178 +2846,178 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
2846
2846
|
} catch (je) {
|
|
2847
2847
|
P(this, je);
|
|
2848
2848
|
}
|
|
2849
|
-
j.state &= ~L, j.reading || (
|
|
2849
|
+
j.state &= ~L, j.reading || (C = U(_e, j));
|
|
2850
2850
|
}
|
|
2851
2851
|
let Ee;
|
|
2852
|
-
return
|
|
2852
|
+
return C > 0 ? Ee = Tt(C, j) : Ee = null, Ee === null ? (j.needReadable = j.length <= j.highWaterMark, C = 0) : (j.length -= C, j.multiAwaitDrain ? j.awaitDrainWriters.clear() : j.awaitDrainWriters = null), j.length === 0 && (j.ended || (j.needReadable = !0), _e !== C && j.ended && Je(this)), Ee !== null && !j.errorEmitted && !j.closeEmitted && (j.dataEmitted = !0, this.emit("data", Ee)), Ee;
|
|
2853
2853
|
};
|
|
2854
|
-
function X(
|
|
2854
|
+
function X(C, j) {
|
|
2855
2855
|
if (v("onEofChunk"), !j.ended) {
|
|
2856
2856
|
if (j.decoder) {
|
|
2857
2857
|
let _e = j.decoder.end();
|
|
2858
2858
|
_e && _e.length && (j.buffer.push(_e), j.length += j.objectMode ? 1 : _e.length);
|
|
2859
2859
|
}
|
|
2860
|
-
j.ended = !0, j.sync ? he(
|
|
2860
|
+
j.ended = !0, j.sync ? he(C) : (j.needReadable = !1, j.emittedReadable = !0, ke(C));
|
|
2861
2861
|
}
|
|
2862
2862
|
}
|
|
2863
|
-
function he(
|
|
2864
|
-
let j =
|
|
2865
|
-
v("emitReadable", j.needReadable, j.emittedReadable), j.needReadable = !1, j.emittedReadable || (v("emitReadable", j.flowing), j.emittedReadable = !0, t.nextTick(ke,
|
|
2863
|
+
function he(C) {
|
|
2864
|
+
let j = C._readableState;
|
|
2865
|
+
v("emitReadable", j.needReadable, j.emittedReadable), j.needReadable = !1, j.emittedReadable || (v("emitReadable", j.flowing), j.emittedReadable = !0, t.nextTick(ke, C));
|
|
2866
2866
|
}
|
|
2867
|
-
function ke(
|
|
2868
|
-
let j =
|
|
2869
|
-
v("emitReadable_", j.destroyed, j.length, j.ended), !j.destroyed && !j.errored && (j.length || j.ended) && (
|
|
2867
|
+
function ke(C) {
|
|
2868
|
+
let j = C._readableState;
|
|
2869
|
+
v("emitReadable_", j.destroyed, j.length, j.ended), !j.destroyed && !j.errored && (j.length || j.ended) && (C.emit("readable"), j.emittedReadable = !1), j.needReadable = !j.flowing && !j.ended && j.length <= j.highWaterMark, Ye(C);
|
|
2870
2870
|
}
|
|
2871
|
-
function z(
|
|
2872
|
-
!j.readingMore && j.constructed && (j.readingMore = !0, t.nextTick(ie,
|
|
2871
|
+
function z(C, j) {
|
|
2872
|
+
!j.readingMore && j.constructed && (j.readingMore = !0, t.nextTick(ie, C, j));
|
|
2873
2873
|
}
|
|
2874
|
-
function ie(
|
|
2874
|
+
function ie(C, j) {
|
|
2875
2875
|
for (; !j.reading && !j.ended && (j.length < j.highWaterMark || j.flowing && j.length === 0); ) {
|
|
2876
2876
|
let _e = j.length;
|
|
2877
|
-
if (v("maybeReadMore read 0"),
|
|
2877
|
+
if (v("maybeReadMore read 0"), C.read(0), _e === j.length) break;
|
|
2878
2878
|
}
|
|
2879
2879
|
j.readingMore = !1;
|
|
2880
2880
|
}
|
|
2881
|
-
se.prototype._read = function(
|
|
2881
|
+
se.prototype._read = function(C) {
|
|
2882
2882
|
throw new T("_read()");
|
|
2883
|
-
}, se.prototype.pipe = function(
|
|
2883
|
+
}, se.prototype.pipe = function(C, j) {
|
|
2884
2884
|
let _e = this, Se = this._readableState;
|
|
2885
|
-
Se.pipes.length === 1 && (Se.multiAwaitDrain || (Se.multiAwaitDrain = !0, Se.awaitDrainWriters = new d(Se.awaitDrainWriters ? [Se.awaitDrainWriters] : []))), Se.pipes.push(
|
|
2886
|
-
let Ee = (!j || j.end !== !1) &&
|
|
2887
|
-
Se.endEmitted ? t.nextTick(Ee) : _e.once("end", Ee),
|
|
2885
|
+
Se.pipes.length === 1 && (Se.multiAwaitDrain || (Se.multiAwaitDrain = !0, Se.awaitDrainWriters = new d(Se.awaitDrainWriters ? [Se.awaitDrainWriters] : []))), Se.pipes.push(C), v("pipe count=%d opts=%j", Se.pipes.length, j);
|
|
2886
|
+
let Ee = (!j || j.end !== !1) && C !== t.stdout && C !== t.stderr ? $e : wt;
|
|
2887
|
+
Se.endEmitted ? t.nextTick(Ee) : _e.once("end", Ee), C.on("unpipe", je);
|
|
2888
2888
|
function je(Ze, rt) {
|
|
2889
2889
|
v("onunpipe"), Ze === _e && rt && rt.hasUnpiped === !1 && (rt.hasUnpiped = !0, $t());
|
|
2890
2890
|
}
|
|
2891
2891
|
function $e() {
|
|
2892
|
-
v("onend"),
|
|
2892
|
+
v("onend"), C.end();
|
|
2893
2893
|
}
|
|
2894
2894
|
let Ve, Ft = !1;
|
|
2895
2895
|
function $t() {
|
|
2896
|
-
v("cleanup"),
|
|
2896
|
+
v("cleanup"), C.removeListener("close", Xe), C.removeListener("finish", ft), Ve && C.removeListener("drain", Ve), C.removeListener("error", vt), C.removeListener("unpipe", je), _e.removeListener("end", $e), _e.removeListener("end", wt), _e.removeListener("data", Zt), Ft = !0, Ve && Se.awaitDrainWriters && (!C._writableState || C._writableState.needDrain) && Ve();
|
|
2897
2897
|
}
|
|
2898
2898
|
function Wt() {
|
|
2899
|
-
Ft || (Se.pipes.length === 1 && Se.pipes[0] ===
|
|
2899
|
+
Ft || (Se.pipes.length === 1 && Se.pipes[0] === C ? (v("false write response, pause", 0), Se.awaitDrainWriters = C, Se.multiAwaitDrain = !1) : Se.pipes.length > 1 && Se.pipes.includes(C) && (v("false write response, pause", Se.awaitDrainWriters.size), Se.awaitDrainWriters.add(C)), _e.pause()), Ve || (Ve = xe(_e, C), C.on("drain", Ve));
|
|
2900
2900
|
}
|
|
2901
2901
|
_e.on("data", Zt);
|
|
2902
2902
|
function Zt(Ze) {
|
|
2903
2903
|
v("ondata");
|
|
2904
|
-
let rt =
|
|
2904
|
+
let rt = C.write(Ze);
|
|
2905
2905
|
v("dest.write", rt), rt === !1 && Wt();
|
|
2906
2906
|
}
|
|
2907
2907
|
function vt(Ze) {
|
|
2908
|
-
if (v("onerror", Ze), wt(),
|
|
2909
|
-
let rt =
|
|
2910
|
-
rt && !rt.errorEmitted ? P(
|
|
2908
|
+
if (v("onerror", Ze), wt(), C.removeListener("error", vt), C.listenerCount("error") === 0) {
|
|
2909
|
+
let rt = C._writableState || C._readableState;
|
|
2910
|
+
rt && !rt.errorEmitted ? P(C, Ze) : C.emit("error", Ze);
|
|
2911
2911
|
}
|
|
2912
2912
|
}
|
|
2913
|
-
k(
|
|
2913
|
+
k(C, "error", vt);
|
|
2914
2914
|
function Xe() {
|
|
2915
|
-
|
|
2915
|
+
C.removeListener("finish", ft), wt();
|
|
2916
2916
|
}
|
|
2917
|
-
|
|
2917
|
+
C.once("close", Xe);
|
|
2918
2918
|
function ft() {
|
|
2919
|
-
v("onfinish"),
|
|
2919
|
+
v("onfinish"), C.removeListener("close", Xe), wt();
|
|
2920
2920
|
}
|
|
2921
|
-
|
|
2921
|
+
C.once("finish", ft);
|
|
2922
2922
|
function wt() {
|
|
2923
|
-
v("unpipe"), _e.unpipe(
|
|
2923
|
+
v("unpipe"), _e.unpipe(C);
|
|
2924
2924
|
}
|
|
2925
|
-
return
|
|
2925
|
+
return C.emit("pipe", _e), C.writableNeedDrain === !0 ? Wt() : Se.flowing || (v("pipe resume"), _e.resume()), C;
|
|
2926
2926
|
};
|
|
2927
|
-
function xe(
|
|
2927
|
+
function xe(C, j) {
|
|
2928
2928
|
return function() {
|
|
2929
|
-
let _e =
|
|
2930
|
-
_e.awaitDrainWriters === j ? (v("pipeOnDrain", 1), _e.awaitDrainWriters = null) : _e.multiAwaitDrain && (v("pipeOnDrain", _e.awaitDrainWriters.size), _e.awaitDrainWriters.delete(j)), (!_e.awaitDrainWriters || _e.awaitDrainWriters.size === 0) &&
|
|
2929
|
+
let _e = C._readableState;
|
|
2930
|
+
_e.awaitDrainWriters === j ? (v("pipeOnDrain", 1), _e.awaitDrainWriters = null) : _e.multiAwaitDrain && (v("pipeOnDrain", _e.awaitDrainWriters.size), _e.awaitDrainWriters.delete(j)), (!_e.awaitDrainWriters || _e.awaitDrainWriters.size === 0) && C.listenerCount("data") && C.resume();
|
|
2931
2931
|
};
|
|
2932
2932
|
}
|
|
2933
|
-
se.prototype.unpipe = function(
|
|
2933
|
+
se.prototype.unpipe = function(C) {
|
|
2934
2934
|
let j = this._readableState, _e = { hasUnpiped: !1 };
|
|
2935
2935
|
if (j.pipes.length === 0) return this;
|
|
2936
|
-
if (!
|
|
2936
|
+
if (!C) {
|
|
2937
2937
|
let Ee = j.pipes;
|
|
2938
2938
|
j.pipes = [], this.pause();
|
|
2939
2939
|
for (let je = 0; je < Ee.length; je++) Ee[je].emit("unpipe", this, { hasUnpiped: !1 });
|
|
2940
2940
|
return this;
|
|
2941
2941
|
}
|
|
2942
|
-
let Se = r(j.pipes,
|
|
2943
|
-
return Se === -1 ? this : (j.pipes.splice(Se, 1), j.pipes.length === 0 && this.pause(),
|
|
2944
|
-
}, se.prototype.on = function(
|
|
2945
|
-
let _e = y.prototype.on.call(this,
|
|
2946
|
-
return
|
|
2947
|
-
}, se.prototype.addListener = se.prototype.on, se.prototype.removeListener = function(
|
|
2948
|
-
let _e = y.prototype.removeListener.call(this,
|
|
2949
|
-
return
|
|
2950
|
-
}, se.prototype.off = se.prototype.removeListener, se.prototype.removeAllListeners = function(
|
|
2942
|
+
let Se = r(j.pipes, C);
|
|
2943
|
+
return Se === -1 ? this : (j.pipes.splice(Se, 1), j.pipes.length === 0 && this.pause(), C.emit("unpipe", this, _e), this);
|
|
2944
|
+
}, se.prototype.on = function(C, j) {
|
|
2945
|
+
let _e = y.prototype.on.call(this, C, j), Se = this._readableState;
|
|
2946
|
+
return C === "data" ? (Se.readableListening = this.listenerCount("readable") > 0, Se.flowing !== !1 && this.resume()) : C === "readable" && !Se.endEmitted && !Se.readableListening && (Se.readableListening = Se.needReadable = !0, Se.flowing = !1, Se.emittedReadable = !1, v("on readable", Se.length, Se.reading), Se.length ? he(this) : Se.reading || t.nextTick(Ie, this)), _e;
|
|
2947
|
+
}, se.prototype.addListener = se.prototype.on, se.prototype.removeListener = function(C, j) {
|
|
2948
|
+
let _e = y.prototype.removeListener.call(this, C, j);
|
|
2949
|
+
return C === "readable" && t.nextTick(Ae, this), _e;
|
|
2950
|
+
}, se.prototype.off = se.prototype.removeListener, se.prototype.removeAllListeners = function(C) {
|
|
2951
2951
|
let j = y.prototype.removeAllListeners.apply(this, arguments);
|
|
2952
|
-
return (
|
|
2952
|
+
return (C === "readable" || C === void 0) && t.nextTick(Ae, this), j;
|
|
2953
2953
|
};
|
|
2954
|
-
function Ae(
|
|
2955
|
-
let j =
|
|
2956
|
-
j.readableListening =
|
|
2954
|
+
function Ae(C) {
|
|
2955
|
+
let j = C._readableState;
|
|
2956
|
+
j.readableListening = C.listenerCount("readable") > 0, j.resumeScheduled && j[K] === !1 ? j.flowing = !0 : C.listenerCount("data") > 0 ? C.resume() : j.readableListening || (j.flowing = null);
|
|
2957
2957
|
}
|
|
2958
|
-
function Ie(
|
|
2959
|
-
v("readable nexttick read 0"),
|
|
2958
|
+
function Ie(C) {
|
|
2959
|
+
v("readable nexttick read 0"), C.read(0);
|
|
2960
2960
|
}
|
|
2961
2961
|
se.prototype.resume = function() {
|
|
2962
|
-
let
|
|
2963
|
-
return
|
|
2962
|
+
let C = this._readableState;
|
|
2963
|
+
return C.flowing || (v("resume"), C.flowing = !C.readableListening, Ce(this, C)), C[K] = !1, this;
|
|
2964
2964
|
};
|
|
2965
|
-
function
|
|
2966
|
-
j.resumeScheduled || (j.resumeScheduled = !0, t.nextTick(Ge,
|
|
2965
|
+
function Ce(C, j) {
|
|
2966
|
+
j.resumeScheduled || (j.resumeScheduled = !0, t.nextTick(Ge, C, j));
|
|
2967
2967
|
}
|
|
2968
|
-
function Ge(
|
|
2969
|
-
v("resume", j.reading), j.reading ||
|
|
2968
|
+
function Ge(C, j) {
|
|
2969
|
+
v("resume", j.reading), j.reading || C.read(0), j.resumeScheduled = !1, C.emit("resume"), Ye(C), j.flowing && !j.reading && C.read(0);
|
|
2970
2970
|
}
|
|
2971
2971
|
se.prototype.pause = function() {
|
|
2972
2972
|
return v("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (v("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState[K] = !0, this;
|
|
2973
2973
|
};
|
|
2974
|
-
function Ye(
|
|
2975
|
-
let j =
|
|
2976
|
-
for (v("flow", j.flowing); j.flowing &&
|
|
2974
|
+
function Ye(C) {
|
|
2975
|
+
let j = C._readableState;
|
|
2976
|
+
for (v("flow", j.flowing); j.flowing && C.read() !== null; ) ;
|
|
2977
2977
|
}
|
|
2978
|
-
se.prototype.wrap = function(
|
|
2978
|
+
se.prototype.wrap = function(C) {
|
|
2979
2979
|
let j = !1;
|
|
2980
|
-
|
|
2981
|
-
!this.push(Se) &&
|
|
2982
|
-
}),
|
|
2980
|
+
C.on("data", (Se) => {
|
|
2981
|
+
!this.push(Se) && C.pause && (j = !0, C.pause());
|
|
2982
|
+
}), C.on("end", () => {
|
|
2983
2983
|
this.push(null);
|
|
2984
|
-
}),
|
|
2984
|
+
}), C.on("error", (Se) => {
|
|
2985
2985
|
P(this, Se);
|
|
2986
|
-
}),
|
|
2986
|
+
}), C.on("close", () => {
|
|
2987
2987
|
this.destroy();
|
|
2988
|
-
}),
|
|
2988
|
+
}), C.on("destroy", () => {
|
|
2989
2989
|
this.destroy();
|
|
2990
2990
|
}), this._read = () => {
|
|
2991
|
-
j &&
|
|
2991
|
+
j && C.resume && (j = !1, C.resume());
|
|
2992
2992
|
};
|
|
2993
|
-
let _e = o(
|
|
2993
|
+
let _e = o(C);
|
|
2994
2994
|
for (let Se = 1; Se < _e.length; Se++) {
|
|
2995
2995
|
let Ee = _e[Se];
|
|
2996
|
-
this[Ee] === void 0 && typeof
|
|
2996
|
+
this[Ee] === void 0 && typeof C[Ee] == "function" && (this[Ee] = C[Ee].bind(C));
|
|
2997
2997
|
}
|
|
2998
2998
|
return this;
|
|
2999
2999
|
}, se.prototype[b] = function() {
|
|
3000
3000
|
return Ue(this);
|
|
3001
|
-
}, se.prototype.iterator = function(
|
|
3002
|
-
return
|
|
3001
|
+
}, se.prototype.iterator = function(C) {
|
|
3002
|
+
return C !== void 0 && Y(C, "options"), Ue(this, C);
|
|
3003
3003
|
};
|
|
3004
|
-
function Ue(
|
|
3005
|
-
typeof
|
|
3006
|
-
let _e = Qe(
|
|
3007
|
-
return _e.stream =
|
|
3004
|
+
function Ue(C, j) {
|
|
3005
|
+
typeof C.read != "function" && (C = se.wrap(C, { objectMode: !0 }));
|
|
3006
|
+
let _e = Qe(C, j);
|
|
3007
|
+
return _e.stream = C, _e;
|
|
3008
3008
|
}
|
|
3009
|
-
async function* Qe(
|
|
3009
|
+
async function* Qe(C, j) {
|
|
3010
3010
|
let _e = Z;
|
|
3011
3011
|
function Se($e) {
|
|
3012
|
-
this ===
|
|
3012
|
+
this === C ? (_e(), _e = Z) : _e = $e;
|
|
3013
3013
|
}
|
|
3014
|
-
|
|
3015
|
-
let Ee, je = E(
|
|
3016
|
-
Ee = $e ?
|
|
3014
|
+
C.on("readable", Se);
|
|
3015
|
+
let Ee, je = E(C, { writable: !1 }, ($e) => {
|
|
3016
|
+
Ee = $e ? O(Ee, $e) : null, _e(), _e = Z;
|
|
3017
3017
|
});
|
|
3018
3018
|
try {
|
|
3019
3019
|
for (; ; ) {
|
|
3020
|
-
let $e =
|
|
3020
|
+
let $e = C.destroyed ? null : C.read();
|
|
3021
3021
|
if ($e !== null) yield $e;
|
|
3022
3022
|
else {
|
|
3023
3023
|
if (Ee) throw Ee;
|
|
@@ -3026,16 +3026,16 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
3026
3026
|
}
|
|
3027
3027
|
}
|
|
3028
3028
|
} catch ($e) {
|
|
3029
|
-
throw Ee =
|
|
3029
|
+
throw Ee = O(Ee, $e), Ee;
|
|
3030
3030
|
} finally {
|
|
3031
|
-
(Ee || j?.destroyOnReturn !== !1) && (Ee === void 0 ||
|
|
3031
|
+
(Ee || j?.destroyOnReturn !== !1) && (Ee === void 0 || C._readableState.autoDestroy) ? S.destroyer(C, null) : (C.off("readable", Se), je());
|
|
3032
3032
|
}
|
|
3033
3033
|
}
|
|
3034
3034
|
s(se.prototype, { readable: { __proto__: null, get() {
|
|
3035
|
-
let
|
|
3036
|
-
return !!
|
|
3037
|
-
}, set(
|
|
3038
|
-
this._readableState && (this._readableState.readable = !!
|
|
3035
|
+
let C = this._readableState;
|
|
3036
|
+
return !!C && C.readable !== !1 && !C.destroyed && !C.errorEmitted && !C.endEmitted;
|
|
3037
|
+
}, set(C) {
|
|
3038
|
+
this._readableState && (this._readableState.readable = !!C);
|
|
3039
3039
|
} }, readableDidRead: { __proto__: null, enumerable: !1, get: function() {
|
|
3040
3040
|
return this._readableState.dataEmitted;
|
|
3041
3041
|
} }, readableAborted: { __proto__: null, enumerable: !1, get: function() {
|
|
@@ -3046,8 +3046,8 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
3046
3046
|
return this._readableState && this._readableState.buffer;
|
|
3047
3047
|
} }, readableFlowing: { __proto__: null, enumerable: !1, get: function() {
|
|
3048
3048
|
return this._readableState.flowing;
|
|
3049
|
-
}, set: function(
|
|
3050
|
-
this._readableState && (this._readableState.flowing =
|
|
3049
|
+
}, set: function(C) {
|
|
3050
|
+
this._readableState && (this._readableState.flowing = C);
|
|
3051
3051
|
} }, readableLength: { __proto__: null, enumerable: !1, get() {
|
|
3052
3052
|
return this._readableState.length;
|
|
3053
3053
|
} }, readableObjectMode: { __proto__: null, enumerable: !1, get() {
|
|
@@ -3060,60 +3060,60 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
3060
3060
|
return this._readableState ? this._readableState.closed : !1;
|
|
3061
3061
|
} }, destroyed: { __proto__: null, enumerable: !1, get() {
|
|
3062
3062
|
return this._readableState ? this._readableState.destroyed : !1;
|
|
3063
|
-
}, set(
|
|
3064
|
-
this._readableState && (this._readableState.destroyed =
|
|
3063
|
+
}, set(C) {
|
|
3064
|
+
this._readableState && (this._readableState.destroyed = C);
|
|
3065
3065
|
} }, readableEnded: { __proto__: null, enumerable: !1, get() {
|
|
3066
3066
|
return this._readableState ? this._readableState.endEmitted : !1;
|
|
3067
3067
|
} } }), s(ve.prototype, { pipesCount: { __proto__: null, get() {
|
|
3068
3068
|
return this.pipes.length;
|
|
3069
3069
|
} }, paused: { __proto__: null, get() {
|
|
3070
3070
|
return this[K] !== !1;
|
|
3071
|
-
}, set(
|
|
3072
|
-
this[K] = !!
|
|
3071
|
+
}, set(C) {
|
|
3072
|
+
this[K] = !!C;
|
|
3073
3073
|
} } }), se._fromList = Tt;
|
|
3074
|
-
function Tt(
|
|
3074
|
+
function Tt(C, j) {
|
|
3075
3075
|
if (j.length === 0) return null;
|
|
3076
3076
|
let _e;
|
|
3077
|
-
return j.objectMode ? _e = j.buffer.shift() : !
|
|
3077
|
+
return j.objectMode ? _e = j.buffer.shift() : !C || C >= j.length ? (j.decoder ? _e = j.buffer.join("") : j.buffer.length === 1 ? _e = j.buffer.first() : _e = j.buffer.concat(j.length), j.buffer.clear()) : _e = j.buffer.consume(C, j.decoder), _e;
|
|
3078
3078
|
}
|
|
3079
|
-
function Je(
|
|
3080
|
-
let j =
|
|
3081
|
-
v("endReadable", j.endEmitted), j.endEmitted || (j.ended = !0, t.nextTick(ze, j,
|
|
3079
|
+
function Je(C) {
|
|
3080
|
+
let j = C._readableState;
|
|
3081
|
+
v("endReadable", j.endEmitted), j.endEmitted || (j.ended = !0, t.nextTick(ze, j, C));
|
|
3082
3082
|
}
|
|
3083
|
-
function ze(
|
|
3084
|
-
if (v("endReadableNT",
|
|
3085
|
-
if (
|
|
3086
|
-
else if (
|
|
3083
|
+
function ze(C, j) {
|
|
3084
|
+
if (v("endReadableNT", C.endEmitted, C.length), !C.errored && !C.closeEmitted && !C.endEmitted && C.length === 0) {
|
|
3085
|
+
if (C.endEmitted = !0, j.emit("end"), j.writable && j.allowHalfOpen === !1) t.nextTick(Xt, j);
|
|
3086
|
+
else if (C.autoDestroy) {
|
|
3087
3087
|
let _e = j._writableState;
|
|
3088
3088
|
(!_e || _e.autoDestroy && (_e.finished || _e.writable === !1)) && j.destroy();
|
|
3089
3089
|
}
|
|
3090
3090
|
}
|
|
3091
3091
|
}
|
|
3092
|
-
function Xt(
|
|
3093
|
-
|
|
3092
|
+
function Xt(C) {
|
|
3093
|
+
C.writable && !C.writableEnded && !C.destroyed && C.end();
|
|
3094
3094
|
}
|
|
3095
|
-
se.from = function(
|
|
3096
|
-
return F(se,
|
|
3095
|
+
se.from = function(C, j) {
|
|
3096
|
+
return F(se, C, j);
|
|
3097
3097
|
};
|
|
3098
|
-
var
|
|
3098
|
+
var Ct;
|
|
3099
3099
|
function Dt() {
|
|
3100
|
-
return
|
|
3100
|
+
return Ct === void 0 && (Ct = {}), Ct;
|
|
3101
3101
|
}
|
|
3102
|
-
se.fromWeb = function(
|
|
3103
|
-
return Dt().newStreamReadableFromReadableStream(
|
|
3104
|
-
}, se.toWeb = function(
|
|
3105
|
-
return Dt().newReadableStreamFromStreamReadable(
|
|
3106
|
-
}, se.wrap = function(
|
|
3102
|
+
se.fromWeb = function(C, j) {
|
|
3103
|
+
return Dt().newStreamReadableFromReadableStream(C, j);
|
|
3104
|
+
}, se.toWeb = function(C, j) {
|
|
3105
|
+
return Dt().newReadableStreamFromStreamReadable(C, j);
|
|
3106
|
+
}, se.wrap = function(C, j) {
|
|
3107
3107
|
var _e, Se;
|
|
3108
|
-
return new se({ objectMode: (_e = (Se =
|
|
3109
|
-
S.destroyer(
|
|
3110
|
-
} }).wrap(
|
|
3108
|
+
return new se({ objectMode: (_e = (Se = C.readableObjectMode) !== null && Se !== void 0 ? Se : C.objectMode) !== null && _e !== void 0 ? _e : !0, ...j, destroy(Ee, je) {
|
|
3109
|
+
S.destroyer(C, Ee), je(Ee);
|
|
3110
|
+
} }).wrap(C);
|
|
3111
3111
|
};
|
|
3112
3112
|
}), Qi = pe((c, e) => {
|
|
3113
3113
|
le(), ue(), ce();
|
|
3114
3114
|
var t = At(), { ArrayPrototypeSlice: r, Error: a, FunctionPrototypeSymbolHasInstance: n, ObjectDefineProperty: i, ObjectDefineProperties: s, ObjectSetPrototypeOf: o, StringPrototypeToLowerCase: l, Symbol: u, SymbolHasInstance: d } = Re();
|
|
3115
3115
|
e.exports = Y, Y.WritableState = N;
|
|
3116
|
-
var { EventEmitter: p } = (xt(),
|
|
3116
|
+
var { EventEmitter: p } = (xt(), Oe(bt)), b = Yi().Stream, { Buffer: f } = (Ne(), Oe(Le)), g = Nt(), { addAbortSignal: y } = Mr(), { getHighWaterMark: k, getDefaultHighWaterMark: m } = Rr(), { ERR_INVALID_ARG_TYPE: w, ERR_METHOD_NOT_IMPLEMENTED: E, ERR_MULTIPLE_CALLBACK: v, ERR_STREAM_CANNOT_PIPE: x, ERR_STREAM_DESTROYED: S, ERR_STREAM_ALREADY_FINISHED: I, ERR_STREAM_NULL_VALUES: M, ERR_STREAM_WRITE_AFTER_END: O, ERR_UNKNOWN_ENCODING: B } = We().codes, { errorOrDestroy: T } = g;
|
|
3117
3117
|
o(Y.prototype, b.prototype), o(Y, b);
|
|
3118
3118
|
function W() {
|
|
3119
3119
|
}
|
|
@@ -3158,7 +3158,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
3158
3158
|
else if (b._isUint8Array($)) $ = b._uint8ArrayToBuffer($), ee = "buffer";
|
|
3159
3159
|
else throw new w("chunk", ["string", "Buffer", "Uint8Array"], $);
|
|
3160
3160
|
let ye;
|
|
3161
|
-
return de.ending ? ye = new
|
|
3161
|
+
return de.ending ? ye = new O() : de.destroyed && (ye = new S("write")), ye ? (t.nextTick(fe, ye), T(R, ye, !0), ye) : (de.pendingcb++, re(R, de, $, ee, fe));
|
|
3162
3162
|
}
|
|
3163
3163
|
Y.prototype.write = function(R, $, ee) {
|
|
3164
3164
|
return K(this, R, $, ee) === !0;
|
|
@@ -3341,11 +3341,11 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
3341
3341
|
};
|
|
3342
3342
|
}), Nl = pe((c, e) => {
|
|
3343
3343
|
le(), ue(), ce();
|
|
3344
|
-
var t = At(), r = (Ne(),
|
|
3344
|
+
var t = At(), r = (Ne(), Oe(Le)), { isReadable: a, isWritable: n, isIterable: i, isNodeStream: s, isReadableNodeStream: o, isWritableNodeStream: l, isDuplexNodeStream: u, isReadableStream: d, isWritableStream: p } = ct(), b = yt(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: g, ERR_INVALID_RETURN_VALUE: y } } = We(), { destroyer: k } = Nt(), m = at(), w = jr(), E = Qi(), { createDeferredPromise: v } = qe(), x = zs(), S = globalThis.Blob || r.Blob, I = typeof S < "u" ? function(D) {
|
|
3345
3345
|
return D instanceof S;
|
|
3346
3346
|
} : function(D) {
|
|
3347
3347
|
return !1;
|
|
3348
|
-
}, M = globalThis.AbortController || Yt().AbortController, { FunctionPrototypeCall:
|
|
3348
|
+
}, M = globalThis.AbortController || Yt().AbortController, { FunctionPrototypeCall: O } = Re(), B = class extends m {
|
|
3349
3349
|
constructor(D) {
|
|
3350
3350
|
super(D), D?.readable === !1 && (this._readableState.readable = !1, this._readableState.ended = !0, this._readableState.endEmitted = !0), D?.writable === !1 && (this._writableState.writable = !1, this._writableState.ending = !0, this._writableState.ended = !0, this._writableState.finished = !0);
|
|
3351
3351
|
}
|
|
@@ -3362,7 +3362,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
3362
3362
|
if (i(K)) return x(B, K, { objectMode: !0, write: re, final: F, destroy: Z });
|
|
3363
3363
|
let P = K?.then;
|
|
3364
3364
|
if (typeof P == "function") {
|
|
3365
|
-
let J, be =
|
|
3365
|
+
let J, be = O(P, K, (te) => {
|
|
3366
3366
|
if (te != null) throw new y("nully", "body", te);
|
|
3367
3367
|
}, (te) => {
|
|
3368
3368
|
k(J, te);
|
|
@@ -3389,7 +3389,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
3389
3389
|
let Y = N?.then;
|
|
3390
3390
|
if (typeof Y == "function") {
|
|
3391
3391
|
let K;
|
|
3392
|
-
return
|
|
3392
|
+
return O(Y, N, (re) => {
|
|
3393
3393
|
re != null && K.push(re), K.push(null);
|
|
3394
3394
|
}, (re) => {
|
|
3395
3395
|
k(K, re);
|
|
@@ -3554,7 +3554,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
3554
3554
|
};
|
|
3555
3555
|
}), Ji = pe((c, e) => {
|
|
3556
3556
|
le(), ue(), ce();
|
|
3557
|
-
var t = At(), { ArrayIsArray: r, Promise: a, SymbolAsyncIterator: n, SymbolDispose: i } = Re(), s = yt(), { once: o } = qe(), l = Nt(), u = at(), { aggregateTwoErrors: d, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: b, ERR_MISSING_ARGS: f, ERR_STREAM_DESTROYED: g, ERR_STREAM_PREMATURE_CLOSE: y }, AbortError: k } = We(), { validateFunction: m, validateAbortSignal: w } = Qt(), { isIterable: E, isReadable: v, isReadableNodeStream: x, isNodeStream: S, isTransformStream: I, isWebStream: M, isReadableStream:
|
|
3557
|
+
var t = At(), { ArrayIsArray: r, Promise: a, SymbolAsyncIterator: n, SymbolDispose: i } = Re(), s = yt(), { once: o } = qe(), l = Nt(), u = at(), { aggregateTwoErrors: d, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: b, ERR_MISSING_ARGS: f, ERR_STREAM_DESTROYED: g, ERR_STREAM_PREMATURE_CLOSE: y }, AbortError: k } = We(), { validateFunction: m, validateAbortSignal: w } = Qt(), { isIterable: E, isReadable: v, isReadableNodeStream: x, isNodeStream: S, isTransformStream: I, isWebStream: M, isReadableStream: O, isReadableFinished: B } = ct(), T = globalThis.AbortController || Yt().AbortController, W, D, N;
|
|
3558
3558
|
function ae(te, we, V) {
|
|
3559
3559
|
let L = !1;
|
|
3560
3560
|
te.on("close", () => {
|
|
@@ -3675,7 +3675,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
3675
3675
|
U.destroy(z), t.nextTick(fe, z);
|
|
3676
3676
|
});
|
|
3677
3677
|
else if (E(ye, !0)) ee++, F(ye, U, fe, { end: _ });
|
|
3678
|
-
else if (
|
|
3678
|
+
else if (O(ye) || I(ye)) {
|
|
3679
3679
|
let z = ye.readable || ye;
|
|
3680
3680
|
ee++, F(z, U, fe, { end: _ });
|
|
3681
3681
|
} else throw new b("AsyncIterable or Promise", "destination", ye);
|
|
@@ -3688,7 +3688,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
3688
3688
|
ee += 2;
|
|
3689
3689
|
let U = be(ye, se, fe, { end: _ });
|
|
3690
3690
|
v(se) && A && G.push(U);
|
|
3691
|
-
} else if (I(ye) ||
|
|
3691
|
+
} else if (I(ye) || O(ye)) {
|
|
3692
3692
|
let U = ye.readable || ye;
|
|
3693
3693
|
ee++, F(U, se, fe, { end: _ });
|
|
3694
3694
|
} else if (E(ye)) ee++, F(ye, se, fe, { end: _ });
|
|
@@ -3696,7 +3696,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
3696
3696
|
ye = se;
|
|
3697
3697
|
} else if (M(se)) {
|
|
3698
3698
|
if (x(ye)) ee++, Z(K(ye), se, fe, { end: _ });
|
|
3699
|
-
else if (
|
|
3699
|
+
else if (O(ye) || E(ye)) ee++, Z(ye, se, fe, { end: _ });
|
|
3700
3700
|
else if (I(ye)) ee++, Z(ye.readable, se, fe, { end: _ });
|
|
3701
3701
|
else throw new p("val", ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"], ye);
|
|
3702
3702
|
ye = se;
|
|
@@ -3738,10 +3738,10 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
3738
3738
|
let m, w, E, v, x;
|
|
3739
3739
|
function S(T) {
|
|
3740
3740
|
let W = v;
|
|
3741
|
-
v = null, W ? W(T) : T ? x.destroy(T) : !B && !
|
|
3741
|
+
v = null, W ? W(T) : T ? x.destroy(T) : !B && !O && x.destroy();
|
|
3742
3742
|
}
|
|
3743
|
-
let I = y[0], M = t(y, S),
|
|
3744
|
-
if (x = new r({ writableObjectMode: !!(I != null && I.writableObjectMode), readableObjectMode: !!(M != null && M.readableObjectMode), writable:
|
|
3743
|
+
let I = y[0], M = t(y, S), O = !!(s(I) || u(I) || l(I)), B = !!(i(M) || d(M) || l(M));
|
|
3744
|
+
if (x = new r({ writableObjectMode: !!(I != null && I.writableObjectMode), readableObjectMode: !!(M != null && M.readableObjectMode), writable: O, readable: B }), O) {
|
|
3745
3745
|
if (n(I)) x._write = function(W, D, N) {
|
|
3746
3746
|
I.write(W, D) ? N() : m = N;
|
|
3747
3747
|
}, x._final = function(W) {
|
|
@@ -3818,7 +3818,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
3818
3818
|
};
|
|
3819
3819
|
}), Ul = pe((c, e) => {
|
|
3820
3820
|
le(), ue(), ce();
|
|
3821
|
-
var t = globalThis.AbortController || Yt().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: a, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: i }, AbortError: s } = We(), { validateAbortSignal: o, validateInteger: l, validateObject: u } = Qt(), d = Re().Symbol("kWeak"), p = Re().Symbol("kResistStopPropagation"), { finished: b } = yt(), f = Gs(), { addAbortSignalNoValidate: g } = Mr(), { isWritable: y, isNodeStream: k } = ct(), { deprecate: m } = qe(), { ArrayPrototypePush: w, Boolean: E, MathFloor: v, Number: x, NumberIsNaN: S, Promise: I, PromiseReject: M, PromiseResolve:
|
|
3821
|
+
var t = globalThis.AbortController || Yt().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: a, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: i }, AbortError: s } = We(), { validateAbortSignal: o, validateInteger: l, validateObject: u } = Qt(), d = Re().Symbol("kWeak"), p = Re().Symbol("kResistStopPropagation"), { finished: b } = yt(), f = Gs(), { addAbortSignalNoValidate: g } = Mr(), { isWritable: y, isNodeStream: k } = ct(), { deprecate: m } = qe(), { ArrayPrototypePush: w, Boolean: E, MathFloor: v, Number: x, NumberIsNaN: S, Promise: I, PromiseReject: M, PromiseResolve: O, PromisePrototypeThen: B, Symbol: T } = Re(), W = T("kEmpty"), D = T("kEof");
|
|
3822
3822
|
function N(H, G) {
|
|
3823
3823
|
if (G != null && u(G, "options"), G?.signal != null && o(G.signal, "options.signal"), k(H) && !y(H)) throw new r("stream", H, "must be writable");
|
|
3824
3824
|
let Q = f(this, H);
|
|
@@ -3848,7 +3848,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
3848
3848
|
if (oe.aborted) throw new s();
|
|
3849
3849
|
try {
|
|
3850
3850
|
if (h = H(h, ee), h === W) continue;
|
|
3851
|
-
h =
|
|
3851
|
+
h = O(h);
|
|
3852
3852
|
} catch (_) {
|
|
3853
3853
|
h = M(_);
|
|
3854
3854
|
}
|
|
@@ -4013,7 +4013,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
4013
4013
|
e.exports = { finished: o, pipeline: l };
|
|
4014
4014
|
}), Qs = pe((c, e) => {
|
|
4015
4015
|
le(), ue(), ce();
|
|
4016
|
-
var { Buffer: t } = (Ne(),
|
|
4016
|
+
var { Buffer: t } = (Ne(), Oe(Le)), { ObjectDefineProperty: r, ObjectKeys: a, ReflectApply: n } = Re(), { promisify: { custom: i } } = qe(), { streamReturningOperators: s, promiseReturningOperators: o } = Ul(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: l } } = We(), u = Gs(), { setDefaultHighWaterMark: d, getDefaultHighWaterMark: p } = Rr(), { pipeline: b } = Ji(), { destroyer: f } = Nt(), g = yt(), y = Ys(), k = ct(), m = e.exports = Yi().Stream;
|
|
4017
4017
|
m.isDestroyed = k.isDestroyed, m.isDisturbed = k.isDisturbed, m.isErrored = k.isErrored, m.isReadable = k.isReadable, m.isWritable = k.isWritable, m.Readable = jr();
|
|
4018
4018
|
for (let E of a(s)) {
|
|
4019
4019
|
let v = function(...S) {
|
|
@@ -4061,7 +4061,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
4061
4061
|
};
|
|
4062
4062
|
}), Dl = pe((c, e) => {
|
|
4063
4063
|
le(), ue(), ce();
|
|
4064
|
-
var { Buffer: t } = (Ne(),
|
|
4064
|
+
var { Buffer: t } = (Ne(), Oe(Le)), r = /* @__PURE__ */ Symbol.for("BufferList");
|
|
4065
4065
|
function a(n) {
|
|
4066
4066
|
if (!(this instanceof a)) return new a(n);
|
|
4067
4067
|
a._init.call(this, n);
|
|
@@ -4225,7 +4225,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
4225
4225
|
e.exports = t;
|
|
4226
4226
|
}), Js = pe((c, e) => {
|
|
4227
4227
|
le(), ue(), ce();
|
|
4228
|
-
var t = e.exports, { Buffer: r } = (Ne(),
|
|
4228
|
+
var t = e.exports, { Buffer: r } = (Ne(), Oe(Le));
|
|
4229
4229
|
t.types = { 0: "reserved", 1: "connect", 2: "connack", 3: "publish", 4: "puback", 5: "pubrec", 6: "pubrel", 7: "pubcomp", 8: "subscribe", 9: "suback", 10: "unsubscribe", 11: "unsuback", 12: "pingreq", 13: "pingresp", 14: "disconnect", 15: "auth" }, t.requiredHeaderFlags = { 1: 0, 2: 0, 4: 0, 5: 0, 6: 2, 7: 0, 8: 2, 9: 0, 10: 2, 11: 0, 12: 0, 13: 0, 14: 0, 15: 0 }, t.requiredHeaderFlagsErrors = {};
|
|
4230
4230
|
for (let n in t.requiredHeaderFlags) {
|
|
4231
4231
|
let i = t.requiredHeaderFlags[n];
|
|
@@ -4343,10 +4343,10 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
4343
4343
|
w[0] = w[0].replace(/%([a-zA-Z%])/g, (I, M) => {
|
|
4344
4344
|
if (I === "%%") return "%";
|
|
4345
4345
|
S++;
|
|
4346
|
-
let
|
|
4347
|
-
if (typeof
|
|
4346
|
+
let O = n.formatters[M];
|
|
4347
|
+
if (typeof O == "function") {
|
|
4348
4348
|
let B = w[S];
|
|
4349
|
-
I =
|
|
4349
|
+
I = O.call(E, B), w.splice(S, 1), S--;
|
|
4350
4350
|
}
|
|
4351
4351
|
return I;
|
|
4352
4352
|
}), n.formatArgs.call(E, w), (E.log || n.log).apply(E, w);
|
|
@@ -4445,7 +4445,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
4445
4445
|
};
|
|
4446
4446
|
}), Hl = pe((c, e) => {
|
|
4447
4447
|
le(), ue(), ce();
|
|
4448
|
-
var t = Fl(), { EventEmitter: r } = (xt(),
|
|
4448
|
+
var t = Fl(), { EventEmitter: r } = (xt(), Oe(bt)), a = $l(), n = Js(), i = lt()("mqtt-packet:parser"), s = class ri extends r {
|
|
4449
4449
|
constructor() {
|
|
4450
4450
|
super(), this.parser = this.constructor.parser;
|
|
4451
4451
|
}
|
|
@@ -4798,7 +4798,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
4798
4798
|
e.exports = s;
|
|
4799
4799
|
}), zl = pe((c, e) => {
|
|
4800
4800
|
le(), ue(), ce();
|
|
4801
|
-
var { Buffer: t } = (Ne(),
|
|
4801
|
+
var { Buffer: t } = (Ne(), Oe(Le)), r = 65536, a = {}, n = t.isBuffer(t.from([1, 2]).subarray(0, 1));
|
|
4802
4802
|
function i(u) {
|
|
4803
4803
|
let d = t.allocUnsafe(2);
|
|
4804
4804
|
return d.writeUInt8(u >> 8, 0), d.writeUInt8(u & 255, 1), d;
|
|
@@ -4848,7 +4848,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
4848
4848
|
}
|
|
4849
4849
|
}), Xs = pe((c, e) => {
|
|
4850
4850
|
le(), ue(), ce();
|
|
4851
|
-
var t = Js(), { Buffer: r } = (Ne(),
|
|
4851
|
+
var t = Js(), { Buffer: r } = (Ne(), Oe(Le)), a = r.allocUnsafe(0), n = r.from([0]), i = zl(), s = Kl().nextTick, o = lt()("mqtt-packet:writeToStream"), l = i.cache, u = i.generateNumber, d = i.generateCache, p = i.genBufVariableByteInt, b = i.generate4ByteBuffer, f = Y, g = !0;
|
|
4852
4852
|
function y(V, L, ne) {
|
|
4853
4853
|
switch (o("generate called"), L.cork && (L.cork(), s(k, L)), g && (g = !1, d()), o("generate: packet.cmd: %s", V.cmd), V.cmd) {
|
|
4854
4854
|
case "connect":
|
|
@@ -4872,7 +4872,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
4872
4872
|
return M(V, L, ne);
|
|
4873
4873
|
case "pingreq":
|
|
4874
4874
|
case "pingresp":
|
|
4875
|
-
return
|
|
4875
|
+
return O(V, L);
|
|
4876
4876
|
case "disconnect":
|
|
4877
4877
|
return B(V, L, ne);
|
|
4878
4878
|
case "auth":
|
|
@@ -5043,7 +5043,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
5043
5043
|
}
|
|
5044
5044
|
return L.write(t.ACKS[$][ee][me][0]), D(L, fe), f(L, Q), de !== null && de.write(), H === 5 && L.write(r.from(oe)), !0;
|
|
5045
5045
|
}
|
|
5046
|
-
function
|
|
5046
|
+
function O(V, L, ne) {
|
|
5047
5047
|
return L.write(t.EMPTY[V.cmd]);
|
|
5048
5048
|
}
|
|
5049
5049
|
function B(V, L, ne) {
|
|
@@ -5231,7 +5231,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
5231
5231
|
e.exports = y;
|
|
5232
5232
|
}), Vl = pe((c, e) => {
|
|
5233
5233
|
le(), ue(), ce();
|
|
5234
|
-
var t = Xs(), { EventEmitter: r } = (xt(),
|
|
5234
|
+
var t = Xs(), { EventEmitter: r } = (xt(), Oe(bt)), { Buffer: a } = (Ne(), Oe(Le));
|
|
5235
5235
|
function n(s, o) {
|
|
5236
5236
|
let l = new i();
|
|
5237
5237
|
return t(s, l, o), l.concat();
|
|
@@ -5260,7 +5260,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
5260
5260
|
}), Yl = pe((c, e) => {
|
|
5261
5261
|
le(), ue(), ce(), e.exports = r;
|
|
5262
5262
|
function t(n) {
|
|
5263
|
-
return n instanceof
|
|
5263
|
+
return n instanceof Cr ? Cr.from(n) : new n.constructor(n.buffer.slice(), n.byteOffset, n.length);
|
|
5264
5264
|
}
|
|
5265
5265
|
function r(n) {
|
|
5266
5266
|
if (n = n || {}, n.circles) return a(n);
|
|
@@ -5631,7 +5631,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
5631
5631
|
#h;
|
|
5632
5632
|
#g;
|
|
5633
5633
|
#m;
|
|
5634
|
-
#
|
|
5634
|
+
#O;
|
|
5635
5635
|
#P;
|
|
5636
5636
|
ttl;
|
|
5637
5637
|
ttlResolution;
|
|
@@ -5670,7 +5670,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
5670
5670
|
return f.#a;
|
|
5671
5671
|
}, get tail() {
|
|
5672
5672
|
return f.#o;
|
|
5673
|
-
}, free: f.#y, isBackgroundFetch: (g) => f.#t(g), backgroundFetch: (g, y, k, m) => f.#j(g, y, k, m), moveToTail: (g) => f.#
|
|
5673
|
+
}, free: f.#y, isBackgroundFetch: (g) => f.#t(g), backgroundFetch: (g, y, k, m) => f.#j(g, y, k, m), moveToTail: (g) => f.#C(g), indexes: (g) => f.#k(g), rindexes: (g) => f.#S(g), isStale: (g) => f.#p(g) };
|
|
5674
5674
|
}
|
|
5675
5675
|
get max() {
|
|
5676
5676
|
return this.#l;
|
|
@@ -5685,7 +5685,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
5685
5685
|
return this.#i;
|
|
5686
5686
|
}
|
|
5687
5687
|
get fetchMethod() {
|
|
5688
|
-
return this.#
|
|
5688
|
+
return this.#O;
|
|
5689
5689
|
}
|
|
5690
5690
|
get memoMethod() {
|
|
5691
5691
|
return this.#P;
|
|
@@ -5697,17 +5697,17 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
5697
5697
|
return this.#m;
|
|
5698
5698
|
}
|
|
5699
5699
|
constructor(f) {
|
|
5700
|
-
let { max: g = 0, ttl: y, ttlResolution: k = 1, ttlAutopurge: m, updateAgeOnGet: w, updateAgeOnHas: E, allowStale: v, dispose: x, disposeAfter: S, noDisposeOnSet: I, noUpdateTTL: M, maxSize:
|
|
5700
|
+
let { max: g = 0, ttl: y, ttlResolution: k = 1, ttlAutopurge: m, updateAgeOnGet: w, updateAgeOnHas: E, allowStale: v, dispose: x, disposeAfter: S, noDisposeOnSet: I, noUpdateTTL: M, maxSize: O = 0, maxEntrySize: B = 0, sizeCalculation: T, fetchMethod: W, memoMethod: D, noDeleteOnFetchRejection: N, noDeleteOnStaleGet: ae, allowStaleOnFetchRejection: Y, allowStaleOnFetchAbort: K, ignoreFetchAbort: re } = f;
|
|
5701
5701
|
if (g !== 0 && !o(g)) throw new TypeError("max option must be a nonnegative integer");
|
|
5702
5702
|
let F = g ? l(g) : Array;
|
|
5703
5703
|
if (!F) throw new Error("invalid max value: " + g);
|
|
5704
|
-
if (this.#l = g, this.#h =
|
|
5704
|
+
if (this.#l = g, this.#h = O, this.maxEntrySize = B || this.#h, this.sizeCalculation = T, this.sizeCalculation) {
|
|
5705
5705
|
if (!this.#h && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
5706
5706
|
if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
|
|
5707
5707
|
}
|
|
5708
5708
|
if (D !== void 0 && typeof D != "function") throw new TypeError("memoMethod must be a function if defined");
|
|
5709
5709
|
if (this.#P = D, W !== void 0 && typeof W != "function") throw new TypeError("fetchMethod must be a function if specified");
|
|
5710
|
-
if (this.#
|
|
5710
|
+
if (this.#O = W, this.#A = !!W, this.#n = /* @__PURE__ */ new Map(), this.#r = new Array(g).fill(void 0), this.#e = new Array(g).fill(void 0), this.#c = new F(g), this.#f = new F(g), this.#a = 0, this.#o = 0, this.#y = d.create(g), this.#i = 0, this.#b = 0, typeof x == "function" && (this.#g = x), typeof S == "function" ? (this.#m = S, this.#s = []) : (this.#m = void 0, this.#s = void 0), this.#_ = !!this.#g, this.#u = !!this.#m, this.noDisposeOnSet = !!I, this.noUpdateTTL = !!M, this.noDeleteOnFetchRejection = !!N, this.allowStaleOnFetchRejection = !!Y, this.allowStaleOnFetchAbort = !!K, this.ignoreFetchAbort = !!re, this.maxEntrySize !== 0) {
|
|
5711
5711
|
if (this.#h !== 0 && !o(this.#h)) throw new TypeError("maxSize must be a positive integer if specified");
|
|
5712
5712
|
if (!o(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
5713
5713
|
this.#$();
|
|
@@ -5907,24 +5907,24 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
5907
5907
|
let I = this.#i === 0 ? void 0 : this.#n.get(f);
|
|
5908
5908
|
if (I === void 0) I = this.#i === 0 ? this.#o : this.#y.length !== 0 ? this.#y.pop() : this.#i === this.#l ? this.#R(!1) : this.#i, this.#r[I] = f, this.#e[I] = g, this.#n.set(f, I), this.#c[this.#o] = I, this.#f[I] = this.#o, this.#o = I, this.#i++, this.#M(I, S, v), v && (v.set = "add"), x = !1;
|
|
5909
5909
|
else {
|
|
5910
|
-
this.#
|
|
5910
|
+
this.#C(I);
|
|
5911
5911
|
let M = this.#e[I];
|
|
5912
5912
|
if (g !== M) {
|
|
5913
5913
|
if (this.#A && this.#t(M)) {
|
|
5914
5914
|
M.__abortController.abort(new Error("replaced"));
|
|
5915
|
-
let { __staleWhileFetching:
|
|
5916
|
-
|
|
5915
|
+
let { __staleWhileFetching: O } = M;
|
|
5916
|
+
O !== void 0 && !w && (this.#_ && this.#g?.(O, f, "set"), this.#u && this.#s?.push([O, f, "set"]));
|
|
5917
5917
|
} else w || (this.#_ && this.#g?.(M, f, "set"), this.#u && this.#s?.push([M, f, "set"]));
|
|
5918
5918
|
if (this.#T(I), this.#M(I, S, v), this.#e[I] = g, v) {
|
|
5919
5919
|
v.set = "replace";
|
|
5920
|
-
let
|
|
5921
|
-
|
|
5920
|
+
let O = M && this.#t(M) ? M.__staleWhileFetching : M;
|
|
5921
|
+
O !== void 0 && (v.oldValue = O);
|
|
5922
5922
|
}
|
|
5923
5923
|
} else v && (v.set = "update");
|
|
5924
5924
|
}
|
|
5925
5925
|
if (k !== 0 && !this.#d && this.#L(), this.#d && (x || this.#N(I, k, m), v && this.#x(v, I)), !w && this.#u && this.#s) {
|
|
5926
|
-
let M = this.#s,
|
|
5927
|
-
for (;
|
|
5926
|
+
let M = this.#s, O;
|
|
5927
|
+
for (; O = M?.shift(); ) this.#m?.(...O);
|
|
5928
5928
|
}
|
|
5929
5929
|
return this;
|
|
5930
5930
|
}
|
|
@@ -5971,20 +5971,20 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
5971
5971
|
let v = { signal: w.signal, options: y, context: k }, x = (T, W = !1) => {
|
|
5972
5972
|
let { aborted: D } = w.signal, N = y.ignoreFetchAbort && T !== void 0;
|
|
5973
5973
|
if (y.status && (D && !W ? (y.status.fetchAborted = !0, y.status.fetchError = w.signal.reason, N && (y.status.fetchAbortIgnored = !0)) : y.status.fetchResolved = !0), D && !N && !W) return I(w.signal.reason);
|
|
5974
|
-
let ae =
|
|
5975
|
-
return this.#e[g] ===
|
|
5974
|
+
let ae = O;
|
|
5975
|
+
return this.#e[g] === O && (T === void 0 ? ae.__staleWhileFetching ? this.#e[g] = ae.__staleWhileFetching : this.#E(f, "fetch") : (y.status && (y.status.fetchUpdated = !0), this.set(f, T, v.options))), T;
|
|
5976
5976
|
}, S = (T) => (y.status && (y.status.fetchRejected = !0, y.status.fetchError = T), I(T)), I = (T) => {
|
|
5977
|
-
let { aborted: W } = w.signal, D = W && y.allowStaleOnFetchAbort, N = D || y.allowStaleOnFetchRejection, ae = N || y.noDeleteOnFetchRejection, Y =
|
|
5978
|
-
if (this.#e[g] ===
|
|
5977
|
+
let { aborted: W } = w.signal, D = W && y.allowStaleOnFetchAbort, N = D || y.allowStaleOnFetchRejection, ae = N || y.noDeleteOnFetchRejection, Y = O;
|
|
5978
|
+
if (this.#e[g] === O && (!ae || Y.__staleWhileFetching === void 0 ? this.#E(f, "fetch") : D || (this.#e[g] = Y.__staleWhileFetching)), N) return y.status && Y.__staleWhileFetching !== void 0 && (y.status.returnedStale = !0), Y.__staleWhileFetching;
|
|
5979
5979
|
if (Y.__returned === Y) throw T;
|
|
5980
5980
|
}, M = (T, W) => {
|
|
5981
|
-
let D = this.#
|
|
5981
|
+
let D = this.#O?.(f, m, v);
|
|
5982
5982
|
D && D instanceof Promise && D.then((N) => T(N === void 0 ? void 0 : N), W), w.signal.addEventListener("abort", () => {
|
|
5983
5983
|
(!y.ignoreFetchAbort || y.allowStaleOnFetchAbort) && (T(void 0), y.allowStaleOnFetchAbort && (T = (N) => x(N, !0)));
|
|
5984
5984
|
});
|
|
5985
5985
|
};
|
|
5986
5986
|
y.status && (y.status.fetchDispatched = !0);
|
|
5987
|
-
let
|
|
5987
|
+
let O = new Promise(M).then(x, S), B = Object.assign(O, { __abortController: w, __staleWhileFetching: m, __returned: void 0 });
|
|
5988
5988
|
return g === void 0 ? (this.set(f, B, { ...v.options, status: void 0 }), g = this.#n.get(f)) : this.#e[g] = B, B;
|
|
5989
5989
|
}
|
|
5990
5990
|
#t(f) {
|
|
@@ -5993,9 +5993,9 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
5993
5993
|
return !!g && g instanceof Promise && g.hasOwnProperty("__staleWhileFetching") && g.__abortController instanceof n;
|
|
5994
5994
|
}
|
|
5995
5995
|
async fetch(f, g = {}) {
|
|
5996
|
-
let { allowStale: y = this.allowStale, updateAgeOnGet: k = this.updateAgeOnGet, noDeleteOnStaleGet: m = this.noDeleteOnStaleGet, ttl: w = this.ttl, noDisposeOnSet: E = this.noDisposeOnSet, size: v = 0, sizeCalculation: x = this.sizeCalculation, noUpdateTTL: S = this.noUpdateTTL, noDeleteOnFetchRejection: I = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: M = this.allowStaleOnFetchRejection, ignoreFetchAbort:
|
|
5996
|
+
let { allowStale: y = this.allowStale, updateAgeOnGet: k = this.updateAgeOnGet, noDeleteOnStaleGet: m = this.noDeleteOnStaleGet, ttl: w = this.ttl, noDisposeOnSet: E = this.noDisposeOnSet, size: v = 0, sizeCalculation: x = this.sizeCalculation, noUpdateTTL: S = this.noUpdateTTL, noDeleteOnFetchRejection: I = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: M = this.allowStaleOnFetchRejection, ignoreFetchAbort: O = this.ignoreFetchAbort, allowStaleOnFetchAbort: B = this.allowStaleOnFetchAbort, context: T, forceRefresh: W = !1, status: D, signal: N } = g;
|
|
5997
5997
|
if (!this.#A) return D && (D.fetch = "get"), this.get(f, { allowStale: y, updateAgeOnGet: k, noDeleteOnStaleGet: m, status: D });
|
|
5998
|
-
let ae = { allowStale: y, updateAgeOnGet: k, noDeleteOnStaleGet: m, ttl: w, noDisposeOnSet: E, size: v, sizeCalculation: x, noUpdateTTL: S, noDeleteOnFetchRejection: I, allowStaleOnFetchRejection: M, allowStaleOnFetchAbort: B, ignoreFetchAbort:
|
|
5998
|
+
let ae = { allowStale: y, updateAgeOnGet: k, noDeleteOnStaleGet: m, ttl: w, noDisposeOnSet: E, size: v, sizeCalculation: x, noUpdateTTL: S, noDeleteOnFetchRejection: I, allowStaleOnFetchRejection: M, allowStaleOnFetchAbort: B, ignoreFetchAbort: O, status: D, signal: N }, Y = this.#n.get(f);
|
|
5999
5999
|
if (Y === void 0) {
|
|
6000
6000
|
D && (D.fetch = "miss");
|
|
6001
6001
|
let K = this.#j(f, Y, ae, T);
|
|
@@ -6007,7 +6007,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
6007
6007
|
return D && (D.fetch = "inflight", P && (D.returnedStale = !0)), P ? K.__staleWhileFetching : K.__returned = K;
|
|
6008
6008
|
}
|
|
6009
6009
|
let re = this.#p(Y);
|
|
6010
|
-
if (!W && !re) return D && (D.fetch = "hit"), this.#
|
|
6010
|
+
if (!W && !re) return D && (D.fetch = "hit"), this.#C(Y), k && this.#I(Y), D && this.#x(D, Y), K;
|
|
6011
6011
|
let F = this.#j(f, Y, ae, T), Z = F.__staleWhileFetching !== void 0 && y;
|
|
6012
6012
|
return D && (D.fetch = re ? "stale" : "refresh", Z && re && (D.returnedStale = !0)), Z ? F.__staleWhileFetching : F.__returned = F;
|
|
6013
6013
|
}
|
|
@@ -6029,13 +6029,13 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
6029
6029
|
let { allowStale: y = this.allowStale, updateAgeOnGet: k = this.updateAgeOnGet, noDeleteOnStaleGet: m = this.noDeleteOnStaleGet, status: w } = g, E = this.#n.get(f);
|
|
6030
6030
|
if (E !== void 0) {
|
|
6031
6031
|
let v = this.#e[E], x = this.#t(v);
|
|
6032
|
-
return w && this.#x(w, E), this.#p(E) ? (w && (w.get = "stale"), x ? (w && y && v.__staleWhileFetching !== void 0 && (w.returnedStale = !0), y ? v.__staleWhileFetching : void 0) : (m || this.#E(f, "expire"), w && y && (w.returnedStale = !0), y ? v : void 0)) : (w && (w.get = "hit"), x ? v.__staleWhileFetching : (this.#
|
|
6032
|
+
return w && this.#x(w, E), this.#p(E) ? (w && (w.get = "stale"), x ? (w && y && v.__staleWhileFetching !== void 0 && (w.returnedStale = !0), y ? v.__staleWhileFetching : void 0) : (m || this.#E(f, "expire"), w && y && (w.returnedStale = !0), y ? v : void 0)) : (w && (w.get = "hit"), x ? v.__staleWhileFetching : (this.#C(E), k && this.#I(E), v));
|
|
6033
6033
|
} else w && (w.get = "miss");
|
|
6034
6034
|
}
|
|
6035
6035
|
#D(f, g) {
|
|
6036
6036
|
this.#f[g] = f, this.#c[f] = g;
|
|
6037
6037
|
}
|
|
6038
|
-
#
|
|
6038
|
+
#C(f) {
|
|
6039
6039
|
f !== this.#o && (f === this.#a ? this.#a = this.#c[f] : this.#D(this.#f[f], this.#c[f]), this.#D(this.#o, f), this.#o = f);
|
|
6040
6040
|
}
|
|
6041
6041
|
delete(f) {
|
|
@@ -7728,7 +7728,7 @@ var zt, ti, Pt, Ds, Fs, $s, Ws, qs, Hs, xt = He(() => {
|
|
|
7728
7728
|
return n && n.__esModule ? n : { default: n };
|
|
7729
7729
|
};
|
|
7730
7730
|
Object.defineProperty(c, "__esModule", { value: !0 }), c.TypedEventEmitter = void 0;
|
|
7731
|
-
var t = e((xt(),
|
|
7731
|
+
var t = e((xt(), Oe(bt))), r = Ut(), a = class {
|
|
7732
7732
|
};
|
|
7733
7733
|
c.TypedEventEmitter = a, (0, r.applyMixin)(a, t.default);
|
|
7734
7734
|
}), Nr = pe((c, e) => {
|
|
@@ -7862,7 +7862,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7862
7862
|
}, l = /* @__PURE__ */ new WeakMap(), u = a(l), d = o(u, l), p = r(d);
|
|
7863
7863
|
t.addUniqueNumber = p, t.generateUniqueNumber = d;
|
|
7864
7864
|
});
|
|
7865
|
-
}),
|
|
7865
|
+
}), Cc = pe((c, e) => {
|
|
7866
7866
|
le(), ue(), ce();
|
|
7867
7867
|
function t(a, n, i, s, o, l, u) {
|
|
7868
7868
|
try {
|
|
@@ -7921,8 +7921,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7921
7921
|
function l(k, m, w, E) {
|
|
7922
7922
|
var v = m && m.prototype instanceof d ? m : d, x = Object.create(v.prototype);
|
|
7923
7923
|
return t(x, "_invoke", (function(S, I, M) {
|
|
7924
|
-
var
|
|
7925
|
-
return
|
|
7924
|
+
var O, B, T, W = 0, D = M || [], N = !1, ae = { p: 0, n: 0, v: a, a: Y, f: Y.bind(a, 4), d: function(K, re) {
|
|
7925
|
+
return O = K, B = 0, T = a, ae.n = re, u;
|
|
7926
7926
|
} };
|
|
7927
7927
|
function Y(K, re) {
|
|
7928
7928
|
for (B = K, T = re, n = 0; !N && W && !F && n < D.length; n++) {
|
|
@@ -7935,18 +7935,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7935
7935
|
return function(K, re, F) {
|
|
7936
7936
|
if (W > 1) throw TypeError("Generator is already running");
|
|
7937
7937
|
for (N && re === 1 && Y(re, F), B = re, T = F; (n = B < 2 ? a : T) || !N; ) {
|
|
7938
|
-
|
|
7938
|
+
O || (B ? B < 3 ? (B > 1 && (ae.n = -1), Y(B, T)) : ae.n = T : ae.v = T);
|
|
7939
7939
|
try {
|
|
7940
|
-
if (W = 2,
|
|
7941
|
-
if (B || (K = "next"), n =
|
|
7942
|
-
if (!(n = n.call(
|
|
7940
|
+
if (W = 2, O) {
|
|
7941
|
+
if (B || (K = "next"), n = O[K]) {
|
|
7942
|
+
if (!(n = n.call(O, T))) throw TypeError("iterator result is not an object");
|
|
7943
7943
|
if (!n.done) return n;
|
|
7944
7944
|
T = n.value, B < 2 && (B = 0);
|
|
7945
|
-
} else B === 1 && (n =
|
|
7946
|
-
|
|
7945
|
+
} else B === 1 && (n = O.return) && n.call(O), B < 2 && (T = TypeError("The iterator does not provide a '" + K + "' method"), B = 1);
|
|
7946
|
+
O = a;
|
|
7947
7947
|
} else if ((n = (N = ae.n < 0) ? T : S.call(I, ae)) !== u) break;
|
|
7948
7948
|
} catch (Z) {
|
|
7949
|
-
|
|
7949
|
+
O = a, B = 1, T = Z;
|
|
7950
7950
|
} finally {
|
|
7951
7951
|
W = 1;
|
|
7952
7952
|
}
|
|
@@ -8018,7 +8018,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8018
8018
|
return new r(t().w(n, i, s, o), l || Promise);
|
|
8019
8019
|
}
|
|
8020
8020
|
e.exports = a, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8021
|
-
}),
|
|
8021
|
+
}), Oc = pe((c, e) => {
|
|
8022
8022
|
le(), ue(), ce();
|
|
8023
8023
|
var t = Sa();
|
|
8024
8024
|
function r(a, n, i, s, o) {
|
|
@@ -8056,7 +8056,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8056
8056
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8057
8057
|
}), Rc = pe((c, e) => {
|
|
8058
8058
|
le(), ue(), ce();
|
|
8059
|
-
var t = va(), r = _a(), a =
|
|
8059
|
+
var t = va(), r = _a(), a = Oc(), n = Sa(), i = ka(), s = Pc(), o = Mc();
|
|
8060
8060
|
function l() {
|
|
8061
8061
|
var u = r(), d = u.m(l), p = (Object.getPrototypeOf ? Object.getPrototypeOf(d) : d.__proto__).constructor;
|
|
8062
8062
|
function b(y) {
|
|
@@ -8114,7 +8114,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8114
8114
|
}
|
|
8115
8115
|
}), Lc = pe((c, e) => {
|
|
8116
8116
|
le(), ue(), ce(), (function(t, r) {
|
|
8117
|
-
typeof c == "object" && typeof e < "u" ? r(c, kc(), Tc(), ya(),
|
|
8117
|
+
typeof c == "object" && typeof e < "u" ? r(c, kc(), Tc(), ya(), Cc(), jc()) : typeof define == "function" && define.amd ? define(["exports", "@babel/runtime/helpers/defineProperty", "@babel/runtime/helpers/slicedToArray", "fast-unique-numbers", "@babel/runtime/helpers/asyncToGenerator", "@babel/runtime/regenerator"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.brokerFactory = {}, t._defineProperty, t._slicedToArray, t.fastUniqueNumbers, t._asyncToGenerator, t._regeneratorRuntime));
|
|
8118
8118
|
})(c, function(t, r, a, n, i, s) {
|
|
8119
8119
|
var o = function(m) {
|
|
8120
8120
|
return typeof m.start == "function";
|
|
@@ -8145,15 +8145,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8145
8145
|
var E = w.call;
|
|
8146
8146
|
return i(s.mark(function v() {
|
|
8147
8147
|
var x, S, I, M;
|
|
8148
|
-
return s.wrap(function(
|
|
8149
|
-
for (; ; ) switch (
|
|
8148
|
+
return s.wrap(function(O) {
|
|
8149
|
+
for (; ; ) switch (O.prev = O.next) {
|
|
8150
8150
|
case 0:
|
|
8151
|
-
return x = new MessageChannel(), S = x.port1, I = x.port2,
|
|
8151
|
+
return x = new MessageChannel(), S = x.port1, I = x.port2, O.next = 1, E("connect", { port: S }, [S]);
|
|
8152
8152
|
case 1:
|
|
8153
|
-
return M =
|
|
8153
|
+
return M = O.sent, l.set(I, M), O.abrupt("return", I);
|
|
8154
8154
|
case 2:
|
|
8155
8155
|
case "end":
|
|
8156
|
-
return
|
|
8156
|
+
return O.stop();
|
|
8157
8157
|
}
|
|
8158
8158
|
}, v);
|
|
8159
8159
|
}));
|
|
@@ -8234,8 +8234,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8234
8234
|
}, S = function(D, N) {
|
|
8235
8235
|
var ae = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
8236
8236
|
E.postMessage({ id: null, method: D, params: N }, ae);
|
|
8237
|
-
}, I = {}, M = 0,
|
|
8238
|
-
var B = a(
|
|
8237
|
+
}, I = {}, M = 0, O = Object.entries(w); M < O.length; M++) {
|
|
8238
|
+
var B = a(O[M], 2), T = B[0], W = B[1];
|
|
8239
8239
|
I = f(f({}, I), {}, r({}, T, W({ call: x, notify: S })));
|
|
8240
8240
|
}
|
|
8241
8241
|
return f({}, I);
|
|
@@ -8489,17 +8489,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8489
8489
|
I[3](null, 0);
|
|
8490
8490
|
}, this.options.writeCache || (n.default.writeToStream.cacheNumbers = !1), this.streamBuilder = x, this.messageIdProvider = typeof this.options.messageIdProvider > "u" ? new p.default() : this.options.messageIdProvider, this.outgoingStore = S.outgoingStore || new u.default(), this.incomingStore = S.incomingStore || new u.default(), this.queueQoSZero = S.queueQoSZero === void 0 ? !0 : S.queueQoSZero, this._resubscribeTopics = {}, this.messageIdToTopic = {}, this.keepaliveManager = null, this.connected = !1, this.disconnecting = !1, this.reconnecting = !1, this.queue = [], this.connackTimer = null, this.reconnectTimer = null, this._storeProcessing = !1, this._packetIdsDuringStoreProcessing = {}, this._storeProcessingQueue = [], this.outgoing = {}, this._firstConnection = !0, S.properties && S.properties.topicAliasMaximum > 0 && (S.properties.topicAliasMaximum > 65535 ? this.log("MqttClient :: options.properties.topicAliasMaximum is out of range") : this.topicAliasRecv = new b.default(S.properties.topicAliasMaximum)), this.on("connect", () => {
|
|
8491
8491
|
let { queue: I } = this, M = () => {
|
|
8492
|
-
let
|
|
8493
|
-
this.log("deliver :: entry %o",
|
|
8492
|
+
let O = I.shift();
|
|
8493
|
+
this.log("deliver :: entry %o", O);
|
|
8494
8494
|
let B = null;
|
|
8495
|
-
if (!
|
|
8495
|
+
if (!O) {
|
|
8496
8496
|
this._resubscribe();
|
|
8497
8497
|
return;
|
|
8498
8498
|
}
|
|
8499
|
-
B =
|
|
8499
|
+
B = O.packet, this.log("deliver :: call _sendPacket for %o", B);
|
|
8500
8500
|
let T = !0;
|
|
8501
8501
|
B.messageId && B.messageId !== 0 && (this.messageIdProvider.register(B.messageId) || (T = !1)), T ? this._sendPacket(B, (W) => {
|
|
8502
|
-
|
|
8502
|
+
O.cb && O.cb(W), M();
|
|
8503
8503
|
}) : (this.log("messageId: %d has already used. The message is skipped and removed.", B.messageId), M());
|
|
8504
8504
|
};
|
|
8505
8505
|
this.log("connect :: sending queued packets"), M();
|
|
@@ -8524,7 +8524,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8524
8524
|
this.log("connect :: calling method to clear reconnect"), this._clearReconnect(), this.disconnected && !this.reconnecting && (this.incomingStore = this.options.incomingStore || new u.default(), this.outgoingStore = this.options.outgoingStore || new u.default(), this.disconnecting = !1, this.disconnected = !1), this.log("connect :: using streamBuilder provided to client to create stream"), this.stream = this.streamBuilder(this), S.on("packet", (D) => {
|
|
8525
8525
|
this.log("parser :: on packet push to packets array."), M.push(D);
|
|
8526
8526
|
});
|
|
8527
|
-
let
|
|
8527
|
+
let O = () => {
|
|
8528
8528
|
this.log("work :: getting next packet in queue");
|
|
8529
8529
|
let D = M.shift();
|
|
8530
8530
|
if (D) this.log("work :: packet pulled from queue"), (0, d.default)(this, D, B);
|
|
@@ -8534,14 +8534,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8534
8534
|
I = null, this.log("work :: done flag is %s", !!N), N && N();
|
|
8535
8535
|
}
|
|
8536
8536
|
}, B = () => {
|
|
8537
|
-
if (M.length) (0, f.nextTick)(
|
|
8537
|
+
if (M.length) (0, f.nextTick)(O);
|
|
8538
8538
|
else {
|
|
8539
8539
|
let D = I;
|
|
8540
8540
|
I = null, D();
|
|
8541
8541
|
}
|
|
8542
8542
|
};
|
|
8543
8543
|
x._write = (D, N, ae) => {
|
|
8544
|
-
I = ae, this.log("writable stream :: parsing buffer"), S.parse(D),
|
|
8544
|
+
I = ae, this.log("writable stream :: parsing buffer"), S.parse(D), O();
|
|
8545
8545
|
};
|
|
8546
8546
|
let T = (D) => {
|
|
8547
8547
|
this.log("streamErrorHandler :: error", D.message), D.code ? (this.log("streamErrorHandler :: emitting error"), this.emit("error", D)) : this.noop(D);
|
|
@@ -8563,7 +8563,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8563
8563
|
}
|
|
8564
8564
|
publish(x, S, I, M) {
|
|
8565
8565
|
this.log("publish :: message `%s` to topic `%s`", S, x);
|
|
8566
|
-
let { options:
|
|
8566
|
+
let { options: O } = this;
|
|
8567
8567
|
typeof I == "function" && (M = I, I = null), I = I || {}, I = { qos: 0, retain: !1, dup: !1, ...I };
|
|
8568
8568
|
let { qos: B, retain: T, dup: W, properties: D, cbStorePut: N } = I;
|
|
8569
8569
|
if (this._checkDisconnecting(M)) return this;
|
|
@@ -8571,7 +8571,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8571
8571
|
let Y = 0;
|
|
8572
8572
|
if ((B === 1 || B === 2) && (Y = this._nextId(), Y === null)) return this.log("No messageId left"), !1;
|
|
8573
8573
|
let K = { cmd: "publish", topic: x, payload: S, qos: B, retain: T, messageId: Y, dup: W };
|
|
8574
|
-
switch (
|
|
8574
|
+
switch (O.protocolVersion === 5 && (K.properties = D), this.log("publish :: qos", B), B) {
|
|
8575
8575
|
case 1:
|
|
8576
8576
|
case 2:
|
|
8577
8577
|
this.outgoing[K.messageId] = { volatile: !1, cb: M || this.noop }, this.log("MqttClient:publish: packet cmd: %s", K.cmd), this._sendPacket(K, void 0, N);
|
|
@@ -8585,24 +8585,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8585
8585
|
return (this._storeProcessing || this._storeProcessingQueue.length > 0 || !ae()) && this._storeProcessingQueue.push({ invoke: ae, cbStorePut: I.cbStorePut, callback: M }), this;
|
|
8586
8586
|
}
|
|
8587
8587
|
publishAsync(x, S, I) {
|
|
8588
|
-
return new Promise((M,
|
|
8588
|
+
return new Promise((M, O) => {
|
|
8589
8589
|
this.publish(x, S, I, (B, T) => {
|
|
8590
|
-
B ?
|
|
8590
|
+
B ? O(B) : M(T);
|
|
8591
8591
|
});
|
|
8592
8592
|
});
|
|
8593
8593
|
}
|
|
8594
8594
|
subscribe(x, S, I) {
|
|
8595
8595
|
let M = this.options.protocolVersion;
|
|
8596
8596
|
typeof S == "function" && (I = S), I = I || this.noop;
|
|
8597
|
-
let
|
|
8598
|
-
typeof x == "string" ? (x = [x], B = x) : Array.isArray(x) ? B = x : typeof x == "object" && (
|
|
8597
|
+
let O = !1, B = [];
|
|
8598
|
+
typeof x == "string" ? (x = [x], B = x) : Array.isArray(x) ? B = x : typeof x == "object" && (O = x.resubscribe, delete x.resubscribe, B = Object.keys(x));
|
|
8599
8599
|
let T = l.validateTopics(B);
|
|
8600
8600
|
if (T !== null) return m(I, new Error(`Invalid topic ${T}`)), this;
|
|
8601
8601
|
if (this._checkDisconnecting(I)) return this.log("subscribe: discconecting true"), this;
|
|
8602
8602
|
let W = { qos: 0 };
|
|
8603
8603
|
M === 5 && (W.nl = !1, W.rap = !1, W.rh = 0), S = { ...W, ...S };
|
|
8604
8604
|
let { properties: D } = S, N = [], ae = (re, F) => {
|
|
8605
|
-
if (F = F || S, !Object.prototype.hasOwnProperty.call(this._resubscribeTopics, re) || this._resubscribeTopics[re].qos < F.qos ||
|
|
8605
|
+
if (F = F || S, !Object.prototype.hasOwnProperty.call(this._resubscribeTopics, re) || this._resubscribeTopics[re].qos < F.qos || O) {
|
|
8606
8606
|
let Z = { topic: re, qos: F.qos };
|
|
8607
8607
|
M === 5 && (Z.nl = F.nl, Z.rap = F.rap, Z.rh = F.rh, Z.properties = D), this.log("subscribe: pushing topic `%s` and qos `%s` to subs list", Z.topic, Z.qos), N.push(Z);
|
|
8608
8608
|
}
|
|
@@ -8651,8 +8651,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8651
8651
|
}
|
|
8652
8652
|
subscribeAsync(x, S) {
|
|
8653
8653
|
return new Promise((I, M) => {
|
|
8654
|
-
this.subscribe(x, S, (
|
|
8655
|
-
|
|
8654
|
+
this.subscribe(x, S, (O, B) => {
|
|
8655
|
+
O ? M(O) : I(B);
|
|
8656
8656
|
});
|
|
8657
8657
|
});
|
|
8658
8658
|
}
|
|
@@ -8661,7 +8661,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8661
8661
|
let M = l.validateTopics(x);
|
|
8662
8662
|
if (M !== null) return m(I, new Error(`Invalid topic ${M}`)), this;
|
|
8663
8663
|
if (this._checkDisconnecting(I)) return this;
|
|
8664
|
-
let
|
|
8664
|
+
let O = () => {
|
|
8665
8665
|
let B = this._nextId();
|
|
8666
8666
|
if (B === null) return this.log("No messageId left"), !1;
|
|
8667
8667
|
let T = { cmd: "unsubscribe", messageId: B, unsubscriptions: [] };
|
|
@@ -8669,12 +8669,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8669
8669
|
delete this._resubscribeTopics[W];
|
|
8670
8670
|
}), typeof S == "object" && S.properties && (T.properties = S.properties), this.outgoing[T.messageId] = { volatile: !0, cb: I }, this.log("unsubscribe: call _sendPacket"), this._sendPacket(T), !0;
|
|
8671
8671
|
};
|
|
8672
|
-
return (this._storeProcessing || this._storeProcessingQueue.length > 0 || !
|
|
8672
|
+
return (this._storeProcessing || this._storeProcessingQueue.length > 0 || !O()) && this._storeProcessingQueue.push({ invoke: O, callback: I }), this;
|
|
8673
8673
|
}
|
|
8674
8674
|
unsubscribeAsync(x, S) {
|
|
8675
8675
|
return new Promise((I, M) => {
|
|
8676
|
-
this.unsubscribe(x, S, (
|
|
8677
|
-
|
|
8676
|
+
this.unsubscribe(x, S, (O, B) => {
|
|
8677
|
+
O ? M(O) : I(B);
|
|
8678
8678
|
});
|
|
8679
8679
|
});
|
|
8680
8680
|
}
|
|
@@ -8689,17 +8689,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8689
8689
|
}
|
|
8690
8690
|
});
|
|
8691
8691
|
}), this._deferredReconnect ? this._deferredReconnect() : (this.options.reconnectPeriod === 0 || this.options.manualConnect) && (this.disconnecting = !1);
|
|
8692
|
-
},
|
|
8692
|
+
}, O = () => {
|
|
8693
8693
|
this.log("end :: (%s) :: finish :: calling _cleanUp with force %s", this.options.clientId, x), this._cleanUp(x, () => {
|
|
8694
8694
|
this.log("end :: finish :: calling process.nextTick on closeStores"), (0, f.nextTick)(M);
|
|
8695
8695
|
}, S);
|
|
8696
8696
|
};
|
|
8697
|
-
return this.disconnecting ? (I(), this) : (this._clearReconnect(), this.disconnecting = !0, !x && Object.keys(this.outgoing).length > 0 ? (this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty", this.options.clientId), this.once("outgoingEmpty", setTimeout.bind(null,
|
|
8697
|
+
return this.disconnecting ? (I(), this) : (this._clearReconnect(), this.disconnecting = !0, !x && Object.keys(this.outgoing).length > 0 ? (this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty", this.options.clientId), this.once("outgoingEmpty", setTimeout.bind(null, O, 10))) : (this.log("end :: (%s) :: immediately calling finish", this.options.clientId), O()), this);
|
|
8698
8698
|
}
|
|
8699
8699
|
endAsync(x, S) {
|
|
8700
8700
|
return new Promise((I, M) => {
|
|
8701
|
-
this.end(x, S, (
|
|
8702
|
-
|
|
8701
|
+
this.end(x, S, (O) => {
|
|
8702
|
+
O ? M(O) : I();
|
|
8703
8703
|
});
|
|
8704
8704
|
});
|
|
8705
8705
|
}
|
|
@@ -8772,8 +8772,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8772
8772
|
}
|
|
8773
8773
|
_storeAndSend(x, S, I) {
|
|
8774
8774
|
this.log("storeAndSend :: store packet with cmd %s to outgoingStore", x.cmd);
|
|
8775
|
-
let M = x,
|
|
8776
|
-
if (M.cmd === "publish" && (M = (0, s.default)(x),
|
|
8775
|
+
let M = x, O;
|
|
8776
|
+
if (M.cmd === "publish" && (M = (0, s.default)(x), O = this._removeTopicAliasAndRecoverTopicName(M), O)) return S && S(O);
|
|
8777
8777
|
this.outgoingStore.put(M, (B) => {
|
|
8778
8778
|
if (B) return S && S(B);
|
|
8779
8779
|
I(), this._writePacket(x, S);
|
|
@@ -8800,9 +8800,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8800
8800
|
}
|
|
8801
8801
|
_sendPacket(x, S, I, M) {
|
|
8802
8802
|
this.log("_sendPacket :: (%s) :: start", this.options.clientId), I = I || this.noop, S = S || this.noop;
|
|
8803
|
-
let
|
|
8804
|
-
if (
|
|
8805
|
-
S(
|
|
8803
|
+
let O = this._applyTopicAlias(x);
|
|
8804
|
+
if (O) {
|
|
8805
|
+
S(O);
|
|
8806
8806
|
return;
|
|
8807
8807
|
}
|
|
8808
8808
|
if (!this.connected) {
|
|
@@ -8846,8 +8846,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8846
8846
|
let B = this._removeTopicAliasAndRecoverTopicName(M);
|
|
8847
8847
|
if (B) return S && S(B);
|
|
8848
8848
|
}
|
|
8849
|
-
let
|
|
8850
|
-
|
|
8849
|
+
let O = M.qos || 0;
|
|
8850
|
+
O === 0 && this.queueQoSZero || M.cmd !== "publish" ? this.queue.push({ packet: M, cb: S }) : O > 0 ? (S = this.outgoing[M.messageId] ? this.outgoing[M.messageId].cb : null, this.outgoingStore.put(M, (B) => {
|
|
8851
8851
|
if (B) return S && S(B);
|
|
8852
8852
|
I();
|
|
8853
8853
|
})) : S && S(new Error("No connection to broker"));
|
|
@@ -8891,12 +8891,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8891
8891
|
this.connackPacket = x, this.messageIdProvider.clear(), this._setupKeepaliveManager(), this.connected = !0;
|
|
8892
8892
|
let S = () => {
|
|
8893
8893
|
let I = this.outgoingStore.createStream(), M = () => {
|
|
8894
|
-
I.destroy(), I = null, this._flushStoreProcessingQueue(),
|
|
8895
|
-
},
|
|
8894
|
+
I.destroy(), I = null, this._flushStoreProcessingQueue(), O();
|
|
8895
|
+
}, O = () => {
|
|
8896
8896
|
this._storeProcessing = !1, this._packetIdsDuringStoreProcessing = {};
|
|
8897
8897
|
};
|
|
8898
8898
|
this.once("close", M), I.on("error", (T) => {
|
|
8899
|
-
|
|
8899
|
+
O(), this._flushStoreProcessingQueue(), this.removeListener("close", M), this.emit("error", T);
|
|
8900
8900
|
});
|
|
8901
8901
|
let B = () => {
|
|
8902
8902
|
if (!I) return;
|
|
@@ -8919,7 +8919,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8919
8919
|
T = !1;
|
|
8920
8920
|
break;
|
|
8921
8921
|
}
|
|
8922
|
-
this.removeListener("close", M), T ? (
|
|
8922
|
+
this.removeListener("close", M), T ? (O(), this._invokeAllStoreProcessingQueue(), this.emit("connect", x)) : S();
|
|
8923
8923
|
}), B();
|
|
8924
8924
|
};
|
|
8925
8925
|
S();
|
|
@@ -8975,48 +8975,48 @@ function Fc() {
|
|
|
8975
8975
|
if (oi) return sr;
|
|
8976
8976
|
oi = !0;
|
|
8977
8977
|
let c = 2147483647, e = 36, t = 1, r = 26, a = 38, n = 700, i = 72, s = 128, o = "-", l = /^xn--/, u = /[^\0-\x7F]/, d = /[\x2E\u3002\uFF0E\uFF61]/g, p = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, b = e - t, f = Math.floor, g = String.fromCharCode;
|
|
8978
|
-
function y(
|
|
8979
|
-
throw new RangeError(p[
|
|
8978
|
+
function y(O) {
|
|
8979
|
+
throw new RangeError(p[O]);
|
|
8980
8980
|
}
|
|
8981
|
-
function k(
|
|
8982
|
-
let T = [], W =
|
|
8983
|
-
for (; W--; ) T[W] = B(
|
|
8981
|
+
function k(O, B) {
|
|
8982
|
+
let T = [], W = O.length;
|
|
8983
|
+
for (; W--; ) T[W] = B(O[W]);
|
|
8984
8984
|
return T;
|
|
8985
8985
|
}
|
|
8986
|
-
function m(
|
|
8987
|
-
let T =
|
|
8988
|
-
T.length > 1 && (W = T[0] + "@",
|
|
8989
|
-
let D =
|
|
8986
|
+
function m(O, B) {
|
|
8987
|
+
let T = O.split("@"), W = "";
|
|
8988
|
+
T.length > 1 && (W = T[0] + "@", O = T[1]), O = O.replace(d, ".");
|
|
8989
|
+
let D = O.split("."), N = k(D, B).join(".");
|
|
8990
8990
|
return W + N;
|
|
8991
8991
|
}
|
|
8992
|
-
function w(
|
|
8993
|
-
let B = [], T = 0, W =
|
|
8992
|
+
function w(O) {
|
|
8993
|
+
let B = [], T = 0, W = O.length;
|
|
8994
8994
|
for (; T < W; ) {
|
|
8995
|
-
let D =
|
|
8995
|
+
let D = O.charCodeAt(T++);
|
|
8996
8996
|
if (D >= 55296 && D <= 56319 && T < W) {
|
|
8997
|
-
let N =
|
|
8997
|
+
let N = O.charCodeAt(T++);
|
|
8998
8998
|
(N & 64512) == 56320 ? B.push(((D & 1023) << 10) + (N & 1023) + 65536) : (B.push(D), T--);
|
|
8999
8999
|
} else B.push(D);
|
|
9000
9000
|
}
|
|
9001
9001
|
return B;
|
|
9002
9002
|
}
|
|
9003
|
-
let E = (
|
|
9004
|
-
return
|
|
9005
|
-
}, x = function(
|
|
9006
|
-
return
|
|
9007
|
-
}, S = function(
|
|
9003
|
+
let E = (O) => String.fromCodePoint(...O), v = function(O) {
|
|
9004
|
+
return O >= 48 && O < 58 ? 26 + (O - 48) : O >= 65 && O < 91 ? O - 65 : O >= 97 && O < 123 ? O - 97 : e;
|
|
9005
|
+
}, x = function(O, B) {
|
|
9006
|
+
return O + 22 + 75 * (O < 26) - ((B != 0) << 5);
|
|
9007
|
+
}, S = function(O, B, T) {
|
|
9008
9008
|
let W = 0;
|
|
9009
|
-
for (
|
|
9010
|
-
return f(W + (b + 1) *
|
|
9011
|
-
}, I = function(
|
|
9012
|
-
let B = [], T =
|
|
9009
|
+
for (O = T ? f(O / n) : O >> 1, O += f(O / B); O > b * r >> 1; W += e) O = f(O / b);
|
|
9010
|
+
return f(W + (b + 1) * O / (O + a));
|
|
9011
|
+
}, I = function(O) {
|
|
9012
|
+
let B = [], T = O.length, W = 0, D = s, N = i, ae = O.lastIndexOf(o);
|
|
9013
9013
|
ae < 0 && (ae = 0);
|
|
9014
|
-
for (let Y = 0; Y < ae; ++Y)
|
|
9014
|
+
for (let Y = 0; Y < ae; ++Y) O.charCodeAt(Y) >= 128 && y("not-basic"), B.push(O.charCodeAt(Y));
|
|
9015
9015
|
for (let Y = ae > 0 ? ae + 1 : 0; Y < T; ) {
|
|
9016
9016
|
let K = W;
|
|
9017
9017
|
for (let F = 1, Z = e; ; Z += e) {
|
|
9018
9018
|
Y >= T && y("invalid-input");
|
|
9019
|
-
let P = v(
|
|
9019
|
+
let P = v(O.charCodeAt(Y++));
|
|
9020
9020
|
P >= e && y("invalid-input"), P > f((c - W) / F) && y("overflow"), W += P * F;
|
|
9021
9021
|
let J = Z <= N ? t : Z >= N + r ? r : Z - N;
|
|
9022
9022
|
if (P < J) break;
|
|
@@ -9027,18 +9027,18 @@ function Fc() {
|
|
|
9027
9027
|
N = S(W - K, re, K == 0), f(W / re) > c - D && y("overflow"), D += f(W / re), W %= re, B.splice(W++, 0, D);
|
|
9028
9028
|
}
|
|
9029
9029
|
return String.fromCodePoint(...B);
|
|
9030
|
-
}, M = function(
|
|
9030
|
+
}, M = function(O) {
|
|
9031
9031
|
let B = [];
|
|
9032
|
-
|
|
9033
|
-
let T =
|
|
9034
|
-
for (let K of
|
|
9032
|
+
O = w(O);
|
|
9033
|
+
let T = O.length, W = s, D = 0, N = i;
|
|
9034
|
+
for (let K of O) K < 128 && B.push(g(K));
|
|
9035
9035
|
let ae = B.length, Y = ae;
|
|
9036
9036
|
for (ae && B.push(o); Y < T; ) {
|
|
9037
9037
|
let K = c;
|
|
9038
|
-
for (let F of
|
|
9038
|
+
for (let F of O) F >= W && F < K && (K = F);
|
|
9039
9039
|
let re = Y + 1;
|
|
9040
9040
|
K - W > f((c - D) / re) && y("overflow"), D += (K - W) * re, W = K;
|
|
9041
|
-
for (let F of
|
|
9041
|
+
for (let F of O) if (F < W && ++D > c && y("overflow"), F === W) {
|
|
9042
9042
|
let Z = D;
|
|
9043
9043
|
for (let P = e; ; P += e) {
|
|
9044
9044
|
let J = P <= N ? t : P >= N + r ? r : P - N;
|
|
@@ -9052,12 +9052,12 @@ function Fc() {
|
|
|
9052
9052
|
}
|
|
9053
9053
|
return B.join("");
|
|
9054
9054
|
};
|
|
9055
|
-
return sr = { version: "2.3.1", ucs2: { decode: w, encode: E }, decode: I, encode: M, toASCII: function(
|
|
9056
|
-
return m(
|
|
9055
|
+
return sr = { version: "2.3.1", ucs2: { decode: w, encode: E }, decode: I, encode: M, toASCII: function(O) {
|
|
9056
|
+
return m(O, function(B) {
|
|
9057
9057
|
return u.test(B) ? "xn--" + M(B) : B;
|
|
9058
9058
|
});
|
|
9059
|
-
}, toUnicode: function(
|
|
9060
|
-
return m(
|
|
9059
|
+
}, toUnicode: function(O) {
|
|
9060
|
+
return m(O, function(B) {
|
|
9061
9061
|
return l.test(B) ? I(B.slice(4).toLowerCase()) : B;
|
|
9062
9062
|
});
|
|
9063
9063
|
} }, sr;
|
|
@@ -9213,13 +9213,13 @@ function Bt() {
|
|
|
9213
9213
|
Z && g && (re = g(Z.prototype));
|
|
9214
9214
|
}
|
|
9215
9215
|
return m[K] = re, re;
|
|
9216
|
-
}, v = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, x = Zi(), S = Jc(), I = x.call(Function.call, Array.prototype.concat), M = x.call(Function.apply, Array.prototype.splice),
|
|
9216
|
+
}, v = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, x = Zi(), S = Jc(), I = x.call(Function.call, Array.prototype.concat), M = x.call(Function.apply, Array.prototype.splice), O = x.call(Function.call, String.prototype.replace), B = x.call(Function.call, String.prototype.slice), T = x.call(Function.call, RegExp.prototype.exec), W = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, D = /\\(\\)?/g, N = function(Y) {
|
|
9217
9217
|
var K = B(Y, 0, 1), re = B(Y, -1);
|
|
9218
9218
|
if (K === "%" && re !== "%") throw new n("invalid intrinsic syntax, expected closing `%`");
|
|
9219
9219
|
if (re === "%" && K !== "%") throw new n("invalid intrinsic syntax, expected opening `%`");
|
|
9220
9220
|
var F = [];
|
|
9221
|
-
return
|
|
9222
|
-
F[F.length] = J ?
|
|
9221
|
+
return O(Y, W, function(Z, P, J, be) {
|
|
9222
|
+
F[F.length] = J ? O(be, D, "$1") : P || Z;
|
|
9223
9223
|
}), F;
|
|
9224
9224
|
}, ae = function(Y, K) {
|
|
9225
9225
|
var re = Y, F;
|
|
@@ -9267,8 +9267,8 @@ function eo() {
|
|
|
9267
9267
|
return dr = e, dr;
|
|
9268
9268
|
}
|
|
9269
9269
|
function Aa() {
|
|
9270
|
-
if (
|
|
9271
|
-
|
|
9270
|
+
if (Ci) return pr;
|
|
9271
|
+
Ci = !0;
|
|
9272
9272
|
var c = Bt(), e = c("%Object.getOwnPropertyDescriptor%", !0);
|
|
9273
9273
|
if (e) try {
|
|
9274
9274
|
e([], "length");
|
|
@@ -9278,8 +9278,8 @@ function Aa() {
|
|
|
9278
9278
|
return pr = e, pr;
|
|
9279
9279
|
}
|
|
9280
9280
|
function Xc() {
|
|
9281
|
-
if (
|
|
9282
|
-
|
|
9281
|
+
if (Oi) return gr;
|
|
9282
|
+
Oi = !0;
|
|
9283
9283
|
var c = eo(), e = xa(), t = Jt(), r = Aa();
|
|
9284
9284
|
return gr = function(a, n, i) {
|
|
9285
9285
|
if (!a || typeof a != "object" && typeof a != "function") throw new t("`obj` must be an object or a function`");
|
|
@@ -9347,8 +9347,8 @@ function ru() {
|
|
|
9347
9347
|
return typeof n == "function" && t(r, ".prototype.") > -1 ? e(n) : n;
|
|
9348
9348
|
}, yr;
|
|
9349
9349
|
}
|
|
9350
|
-
var si, ai, li, ci, ui, hi, fi, di, pi, gi, mi, bi, yi, vi, wi, _i, ar, ki, lr, Si, cr, Ei, ur, xi, hr, Ai, fr, Ii, dr, Ti, pr,
|
|
9351
|
-
le(), ue(), ce(), si = {}, ai = !1, li = {}, ci = !1, ui = {}, hi = !1, fi = {}, di = !1, pi = {}, gi = !1, mi = {}, bi = !1, yi = {}, vi = !1, wi = {}, _i = !1, ar = {}, ki = !1, lr = {}, Si = !1, cr = {}, Ei = !1, ur = {}, xi = !1, hr = {}, Ai = !1, fr = {}, Ii = !1, dr = {}, Ti = !1, pr = {},
|
|
9350
|
+
var si, ai, li, ci, ui, hi, fi, di, pi, gi, mi, bi, yi, vi, wi, _i, ar, ki, lr, Si, cr, Ei, ur, xi, hr, Ai, fr, Ii, dr, Ti, pr, Ci, gr, Oi, mr, Pi, br, Mi, Mt, Ri, yr, ji, nu = He(() => {
|
|
9351
|
+
le(), ue(), ce(), si = {}, ai = !1, li = {}, ci = !1, ui = {}, hi = !1, fi = {}, di = !1, pi = {}, gi = !1, mi = {}, bi = !1, yi = {}, vi = !1, wi = {}, _i = !1, ar = {}, ki = !1, lr = {}, Si = !1, cr = {}, Ei = !1, ur = {}, xi = !1, hr = {}, Ai = !1, fr = {}, Ii = !1, dr = {}, Ti = !1, pr = {}, Ci = !1, gr = {}, Oi = !1, mr = {}, Pi = !1, br = {}, Mi = !1, Mt = {}, Ri = !1, yr = {}, ji = !1;
|
|
9352
9352
|
});
|
|
9353
9353
|
function to(c) {
|
|
9354
9354
|
throw new Error("Node.js process " + c + " is not supported by JSPM core outside of Node.js");
|
|
@@ -9408,7 +9408,7 @@ function dt() {
|
|
|
9408
9408
|
function du(c) {
|
|
9409
9409
|
return [];
|
|
9410
9410
|
}
|
|
9411
|
-
var tt, Et, kt, Gt, uo, ho, fo, po, go, mo, bo, yo, vo, wo, _o, ko, So, Eo, xo, Ao, Io, To,
|
|
9411
|
+
var tt, Et, kt, Gt, uo, ho, fo, po, go, mo, bo, yo, vo, wo, _o, ko, So, Eo, xo, Ao, Io, To, Co, Oo, Po, er, Mo, Ro, jo, Lo, No, Uo, Bo, Do, Fo, $o, Wo, qo, Ho, zo, Ko, Vo, Go, Yo, Qo, Jo, Xo, Zo, es, ts, rs, st, $r, vr, ns, is, os, ss, as, ls, cs, us, hs, fs, ds, ro, Ca = He(() => {
|
|
9412
9412
|
le(), ue(), ce(), tt = [], Et = !1, Gt = -1, Ta.prototype.run = function() {
|
|
9413
9413
|
this.fun.apply(null, this.array);
|
|
9414
9414
|
}, uo = "browser", ho = "x64", fo = "browser", po = { PATH: "/usr/bin", LANG: navigator.language + ".UTF-8", PWD: "/", HOME: "/home", TMP: "/tmp" }, go = ["/usr/bin/node"], mo = [], bo = "v16.8.0", yo = {}, vo = function(c, e) {
|
|
@@ -9420,12 +9420,12 @@ var tt, Et, kt, Gt, uo, ho, fo, po, go, mo, bo, yo, vo, wo, _o, ko, So, Eo, xo,
|
|
|
9420
9420
|
}, ko = function() {
|
|
9421
9421
|
return "/";
|
|
9422
9422
|
}, So = function(c) {
|
|
9423
|
-
}, Eo = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, xo = De, Ao = [], Io = {}, To = !1,
|
|
9423
|
+
}, Eo = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, xo = De, Ao = [], Io = {}, To = !1, Co = {}, Oo = De, Po = De, er = function() {
|
|
9424
9424
|
return {};
|
|
9425
9425
|
}, Mo = er, Ro = er, jo = De, Lo = De, No = De, Uo = {}, Bo = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, Do = De, Fo = De, $o = De, Wo = De, qo = De, Ho = De, zo = De, Ko = void 0, Vo = void 0, Go = void 0, Yo = De, Qo = 2, Jo = 1, Xo = "/bin/usr/node", Zo = 9229, es = "node", ts = [], rs = De, st = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, st.now === void 0 && ($r = Date.now(), st.timing && st.timing.navigationStart && ($r = st.timing.navigationStart), st.now = () => Date.now() - $r), vr = 1e9, Fr.bigint = function(c) {
|
|
9426
9426
|
var e = Fr(c);
|
|
9427
9427
|
return typeof BigInt > "u" ? e[0] * vr + e[1] : BigInt(e[0] * vr) + BigInt(e[1]);
|
|
9428
|
-
}, ns = 10, is = {}, os = 0, ss = dt, as = dt, ls = dt, cs = dt, us = dt, hs = De, fs = dt, ds = dt, ro = { version: bo, versions: yo, arch: ho, platform: fo, release: Eo, _rawDebug: xo, moduleLoadList: Ao, binding: wo, _linkedBinding: su, _events: is, _eventsCount: os, _maxListeners: ns, on: dt, addListener: ss, once: as, off: ls, removeListener: cs, removeAllListeners: us, emit: hs, prependListener: fs, prependOnceListener: ds, listeners: du, domain: Io, _exiting: To, config:
|
|
9428
|
+
}, ns = 10, is = {}, os = 0, ss = dt, as = dt, ls = dt, cs = dt, us = dt, hs = De, fs = dt, ds = dt, ro = { version: bo, versions: yo, arch: ho, platform: fo, release: Eo, _rawDebug: xo, moduleLoadList: Ao, binding: wo, _linkedBinding: su, _events: is, _eventsCount: os, _maxListeners: ns, on: dt, addListener: ss, once: as, off: ls, removeListener: cs, removeAllListeners: us, emit: hs, prependListener: fs, prependOnceListener: ds, listeners: du, domain: Io, _exiting: To, config: Co, dlopen: au, uptime: fu, _getActiveRequests: lu, _getActiveHandles: cu, reallyExit: Oo, _kill: Po, cpuUsage: er, resourceUsage: Mo, memoryUsage: Ro, kill: jo, exit: Lo, openStdin: No, allowedNodeEnvironmentFlags: Uo, assert: uu, features: Bo, _fatalExceptions: Do, setUncaughtExceptionCaptureCallback: Fo, hasUncaughtExceptionCaptureCallback: hu, emitWarning: vo, nextTick: ou, _tickCallback: $o, _debugProcess: Wo, _debugEnd: qo, _startProfilerIdleNotifier: Ho, _stopProfilerIdleNotifier: zo, stdout: Ko, stdin: Go, stderr: Vo, abort: Yo, umask: _o, chdir: So, cwd: ko, env: po, title: uo, argv: go, execArgv: mo, pid: Qo, ppid: Jo, execPath: Xo, debugPort: Zo, hrtime: Fr, argv0: es, _preload_modules: ts, setSourceMapsEnabled: rs };
|
|
9429
9429
|
});
|
|
9430
9430
|
function pu() {
|
|
9431
9431
|
if (Li) return wr;
|
|
@@ -9579,41 +9579,41 @@ function pu() {
|
|
|
9579
9579
|
return a.posix = a, wr = a, wr;
|
|
9580
9580
|
}
|
|
9581
9581
|
var wr, Li, Ni, gu = He(() => {
|
|
9582
|
-
le(), ue(), ce(),
|
|
9583
|
-
}),
|
|
9584
|
-
Lt(
|
|
9582
|
+
le(), ue(), ce(), Ca(), wr = {}, Li = !1, Ni = pu();
|
|
9583
|
+
}), Oa = {};
|
|
9584
|
+
Lt(Oa, { URL: () => Fa, Url: () => La, default: () => Fe, fileURLToPath: () => Ma, format: () => Na, parse: () => Da, pathToFileURL: () => Ra, resolve: () => Ua, resolveObject: () => Ba });
|
|
9585
9585
|
function mu() {
|
|
9586
9586
|
if (Ui) return _r;
|
|
9587
9587
|
Ui = !0;
|
|
9588
|
-
var c = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = c && e && typeof e.get == "function" ? e.get : null, r = c && Map.prototype.forEach, a = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && a ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, i = a && n && typeof n.get == "function" ? n.get : null, s = a && Set.prototype.forEach, o = typeof WeakMap == "function" && WeakMap.prototype, l = o ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, d = u ? WeakSet.prototype.has : null, p = typeof WeakRef == "function" && WeakRef.prototype, b = p ? WeakRef.prototype.deref : null, f = Boolean.prototype.valueOf, g = Object.prototype.toString, y = Function.prototype.toString, k = String.prototype.match, m = String.prototype.slice, w = String.prototype.replace, E = String.prototype.toUpperCase, v = String.prototype.toLowerCase, x = RegExp.prototype.test, S = Array.prototype.concat, I = Array.prototype.join, M = Array.prototype.slice,
|
|
9588
|
+
var c = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = c && e && typeof e.get == "function" ? e.get : null, r = c && Map.prototype.forEach, a = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && a ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, i = a && n && typeof n.get == "function" ? n.get : null, s = a && Set.prototype.forEach, o = typeof WeakMap == "function" && WeakMap.prototype, l = o ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, d = u ? WeakSet.prototype.has : null, p = typeof WeakRef == "function" && WeakRef.prototype, b = p ? WeakRef.prototype.deref : null, f = Boolean.prototype.valueOf, g = Object.prototype.toString, y = Function.prototype.toString, k = String.prototype.match, m = String.prototype.slice, w = String.prototype.replace, E = String.prototype.toUpperCase, v = String.prototype.toLowerCase, x = RegExp.prototype.test, S = Array.prototype.concat, I = Array.prototype.join, M = Array.prototype.slice, O = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, T = Object.getOwnPropertySymbols, W = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, D = typeof Symbol == "function" && typeof Symbol.iterator == "object", N = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === D || !0) ? Symbol.toStringTag : null, ae = Object.prototype.propertyIsEnumerable, Y = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(z) {
|
|
9589
9589
|
return z.__proto__;
|
|
9590
9590
|
} : null);
|
|
9591
9591
|
function K(z, ie) {
|
|
9592
9592
|
if (z === 1 / 0 || z === -1 / 0 || z !== z || z && z > -1e3 && z < 1e3 || x.call(/e/, ie)) return ie;
|
|
9593
9593
|
var xe = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
9594
9594
|
if (typeof z == "number") {
|
|
9595
|
-
var Ae = z < 0 ? -
|
|
9595
|
+
var Ae = z < 0 ? -O(-z) : O(z);
|
|
9596
9596
|
if (Ae !== z) {
|
|
9597
|
-
var Ie = String(Ae),
|
|
9598
|
-
return w.call(Ie, xe, "$&_") + "." + w.call(w.call(
|
|
9597
|
+
var Ie = String(Ae), Ce = m.call(ie, Ie.length + 1);
|
|
9598
|
+
return w.call(Ie, xe, "$&_") + "." + w.call(w.call(Ce, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
9599
9599
|
}
|
|
9600
9600
|
}
|
|
9601
9601
|
return w.call(ie, xe, "$&_");
|
|
9602
9602
|
}
|
|
9603
9603
|
var re = ja, F = re.custom, Z = G(F) ? F : null;
|
|
9604
9604
|
_r = function z(ie, xe, Ae, Ie) {
|
|
9605
|
-
var
|
|
9606
|
-
if (oe(
|
|
9607
|
-
if (oe(
|
|
9608
|
-
var Ge = oe(
|
|
9605
|
+
var Ce = xe || {};
|
|
9606
|
+
if (oe(Ce, "quoteStyle") && Ce.quoteStyle !== "single" && Ce.quoteStyle !== "double") throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
9607
|
+
if (oe(Ce, "maxStringLength") && (typeof Ce.maxStringLength == "number" ? Ce.maxStringLength < 0 && Ce.maxStringLength !== 1 / 0 : Ce.maxStringLength !== null)) throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
9608
|
+
var Ge = oe(Ce, "customInspect") ? Ce.customInspect : !0;
|
|
9609
9609
|
if (typeof Ge != "boolean" && Ge !== "symbol") throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
9610
|
-
if (oe(
|
|
9611
|
-
if (oe(
|
|
9612
|
-
var Ye =
|
|
9610
|
+
if (oe(Ce, "indent") && Ce.indent !== null && Ce.indent !== " " && !(parseInt(Ce.indent, 10) === Ce.indent && Ce.indent > 0)) throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
9611
|
+
if (oe(Ce, "numericSeparator") && typeof Ce.numericSeparator != "boolean") throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
9612
|
+
var Ye = Ce.numericSeparator;
|
|
9613
9613
|
if (typeof ie > "u") return "undefined";
|
|
9614
9614
|
if (ie === null) return "null";
|
|
9615
9615
|
if (typeof ie == "boolean") return ie ? "true" : "false";
|
|
9616
|
-
if (typeof ie == "string") return se(ie,
|
|
9616
|
+
if (typeof ie == "string") return se(ie, Ce);
|
|
9617
9617
|
if (typeof ie == "number") {
|
|
9618
9618
|
if (ie === 0) return 1 / 0 / ie > 0 ? "0" : "-0";
|
|
9619
9619
|
var Ue = String(ie);
|
|
@@ -9623,29 +9623,29 @@ function mu() {
|
|
|
9623
9623
|
var Qe = String(ie) + "n";
|
|
9624
9624
|
return Ye ? K(ie, Qe) : Qe;
|
|
9625
9625
|
}
|
|
9626
|
-
var Tt = typeof
|
|
9626
|
+
var Tt = typeof Ce.depth > "u" ? 5 : Ce.depth;
|
|
9627
9627
|
if (typeof Ae > "u" && (Ae = 0), Ae >= Tt && Tt > 0 && typeof ie == "object") return be(ie) ? "[Array]" : "[Object]";
|
|
9628
|
-
var Je = X(
|
|
9628
|
+
var Je = X(Ce, Ae);
|
|
9629
9629
|
if (typeof Ie > "u") Ie = [];
|
|
9630
9630
|
else if (ee(Ie, ie) >= 0) return "[Circular]";
|
|
9631
9631
|
function ze(Xe, ft, wt) {
|
|
9632
9632
|
if (ft && (Ie = M.call(Ie), Ie.push(ft)), wt) {
|
|
9633
|
-
var Ze = { depth:
|
|
9634
|
-
return oe(
|
|
9633
|
+
var Ze = { depth: Ce.depth };
|
|
9634
|
+
return oe(Ce, "quoteStyle") && (Ze.quoteStyle = Ce.quoteStyle), z(Xe, Ze, Ae + 1, Ie);
|
|
9635
9635
|
}
|
|
9636
|
-
return z(Xe,
|
|
9636
|
+
return z(Xe, Ce, Ae + 1, Ie);
|
|
9637
9637
|
}
|
|
9638
9638
|
if (typeof ie == "function" && !we(ie)) {
|
|
9639
|
-
var Xt = $(ie),
|
|
9640
|
-
return "[Function" + (Xt ? ": " + Xt : " (anonymous)") + "]" + (
|
|
9639
|
+
var Xt = $(ie), Ct = ke(ie, ze);
|
|
9640
|
+
return "[Function" + (Xt ? ": " + Xt : " (anonymous)") + "]" + (Ct.length > 0 ? " { " + I.call(Ct, ", ") + " }" : "");
|
|
9641
9641
|
}
|
|
9642
9642
|
if (G(ie)) {
|
|
9643
9643
|
var Dt = D ? w.call(String(ie), /^(Symbol\(.*\))_[^)]*$/, "$1") : W.call(ie);
|
|
9644
9644
|
return typeof ie == "object" && !D ? h(Dt) : Dt;
|
|
9645
9645
|
}
|
|
9646
9646
|
if (ve(ie)) {
|
|
9647
|
-
for (var
|
|
9648
|
-
return
|
|
9647
|
+
for (var C = "<" + v.call(String(ie.nodeName)), j = ie.attributes || [], _e = 0; _e < j.length; _e++) C += " " + j[_e].name + "=" + P(J(j[_e].value), "double", Ce);
|
|
9648
|
+
return C += ">", ie.childNodes && ie.childNodes.length && (C += "..."), C += "</" + v.call(String(ie.nodeName)) + ">", C;
|
|
9649
9649
|
}
|
|
9650
9650
|
if (be(ie)) {
|
|
9651
9651
|
if (ie.length === 0) return "[]";
|
|
@@ -9866,13 +9866,13 @@ function mu() {
|
|
|
9866
9866
|
Ae.length = z.length;
|
|
9867
9867
|
for (var Ie = 0; Ie < z.length; Ie++) Ae[Ie] = oe(z, Ie) ? ie(z[Ie], z) : "";
|
|
9868
9868
|
}
|
|
9869
|
-
var
|
|
9869
|
+
var Ce = typeof T == "function" ? T(z) : [], Ge;
|
|
9870
9870
|
if (D) {
|
|
9871
9871
|
Ge = {};
|
|
9872
|
-
for (var Ye = 0; Ye <
|
|
9872
|
+
for (var Ye = 0; Ye < Ce.length; Ye++) Ge["$" + Ce[Ye]] = Ce[Ye];
|
|
9873
9873
|
}
|
|
9874
9874
|
for (var Ue in z) oe(z, Ue) && (xe && String(Number(Ue)) === Ue && Ue < z.length || D && Ge["$" + Ue] instanceof Symbol || (x.call(/[^\w$]/, Ue) ? Ae.push(ie(Ue, z) + ": " + ie(z[Ue], z)) : Ae.push(Ue + ": " + ie(z[Ue], z))));
|
|
9875
|
-
if (typeof T == "function") for (var Qe = 0; Qe <
|
|
9875
|
+
if (typeof T == "function") for (var Qe = 0; Qe < Ce.length; Qe++) ae.call(z, Ce[Qe]) && Ae.push("[" + ie(Ce[Qe]) + "]: " + ie(z[Ce[Qe]], z));
|
|
9876
9876
|
return Ae;
|
|
9877
9877
|
}
|
|
9878
9878
|
return _r;
|
|
@@ -9978,10 +9978,10 @@ function Pa() {
|
|
|
9978
9978
|
return "%26%23" + parseInt(T.slice(2), 16) + "%3B";
|
|
9979
9979
|
});
|
|
9980
9980
|
for (var x = "", S = 0; S < v.length; S += l) {
|
|
9981
|
-
for (var I = v.length >= l ? v.slice(S, S + l) : v, M = [],
|
|
9982
|
-
var B = I.charCodeAt(
|
|
9981
|
+
for (var I = v.length >= l ? v.slice(S, S + l) : v, M = [], O = 0; O < I.length; ++O) {
|
|
9982
|
+
var B = I.charCodeAt(O);
|
|
9983
9983
|
if (B === 45 || B === 46 || B === 95 || B === 126 || B >= 48 && B <= 57 || B >= 65 && B <= 90 || B >= 97 && B <= 122 || E === c.RFC1738 && (B === 40 || B === 41)) {
|
|
9984
|
-
M[M.length] = I.charAt(
|
|
9984
|
+
M[M.length] = I.charAt(O);
|
|
9985
9985
|
continue;
|
|
9986
9986
|
}
|
|
9987
9987
|
if (B < 128) {
|
|
@@ -9996,7 +9996,7 @@ function Pa() {
|
|
|
9996
9996
|
M[M.length] = r[224 | B >> 12] + r[128 | B >> 6 & 63] + r[128 | B & 63];
|
|
9997
9997
|
continue;
|
|
9998
9998
|
}
|
|
9999
|
-
|
|
9999
|
+
O += 1, B = 65536 + ((B & 1023) << 10 | I.charCodeAt(O) & 1023), M[M.length] = r[240 | B >> 18] + r[128 | B >> 12 & 63] + r[128 | B >> 6 & 63] + r[128 | B & 63];
|
|
10000
10000
|
}
|
|
10001
10001
|
x += M.join("");
|
|
10002
10002
|
}
|
|
@@ -10037,7 +10037,7 @@ function yu() {
|
|
|
10037
10037
|
return o.call(g);
|
|
10038
10038
|
}, skipNulls: !1, strictNullHandling: !1 }, d = function(g) {
|
|
10039
10039
|
return typeof g == "string" || typeof g == "number" || typeof g == "boolean" || typeof g == "symbol" || typeof g == "bigint";
|
|
10040
|
-
}, p = {}, b = function g(y, k, m, w, E, v, x, S, I, M,
|
|
10040
|
+
}, p = {}, b = function g(y, k, m, w, E, v, x, S, I, M, O, B, T, W, D, N, ae, Y) {
|
|
10041
10041
|
for (var K = y, re = Y, F = 0, Z = !1; (re = re.get(p)) !== void 0 && !Z; ) {
|
|
10042
10042
|
var P = re.get(y);
|
|
10043
10043
|
if (F += 1, typeof P < "u") {
|
|
@@ -10066,7 +10066,7 @@ function yu() {
|
|
|
10066
10066
|
else if (n(M)) te = M;
|
|
10067
10067
|
else {
|
|
10068
10068
|
var we = Object.keys(K);
|
|
10069
|
-
te =
|
|
10069
|
+
te = O ? we.sort(O) : we;
|
|
10070
10070
|
}
|
|
10071
10071
|
var V = S ? k.replace(/\./g, "%2E") : k, L = w && n(K) && K.length === 1 ? V + "[]" : V;
|
|
10072
10072
|
if (E && n(K) && K.length === 0) return L + "[]";
|
|
@@ -10076,7 +10076,7 @@ function yu() {
|
|
|
10076
10076
|
var Q = B && S ? H.replace(/\./g, "%2E") : H, me = n(K) ? typeof m == "function" ? m(L, Q) : L : L + (B ? "." + Q : "[" + Q + "]");
|
|
10077
10077
|
Y.set(y, F);
|
|
10078
10078
|
var oe = c();
|
|
10079
|
-
oe.set(p, Y), s(be, g(G, me, m, w, E, v, x, S, m === "comma" && N && n(K) ? null : I, M,
|
|
10079
|
+
oe.set(p, Y), s(be, g(G, me, m, w, E, v, x, S, m === "comma" && N && n(K) ? null : I, M, O, B, T, W, D, N, ae, oe));
|
|
10080
10080
|
}
|
|
10081
10081
|
}
|
|
10082
10082
|
return be;
|
|
@@ -10107,8 +10107,8 @@ function yu() {
|
|
|
10107
10107
|
var x = a[m.arrayFormat], S = x === "comma" && m.commaRoundTrip;
|
|
10108
10108
|
w || (w = Object.keys(k)), m.sort && w.sort(m.sort);
|
|
10109
10109
|
for (var I = c(), M = 0; M < w.length; ++M) {
|
|
10110
|
-
var
|
|
10111
|
-
m.skipNulls && k[
|
|
10110
|
+
var O = w[M];
|
|
10111
|
+
m.skipNulls && k[O] === null || s(v, b(k[O], O, x, S, m.allowEmptyArrays, m.strictNullHandling, m.skipNulls, m.encodeDotInKeys, m.encode ? m.encoder : null, m.filter, m.sort, m.allowDots, m.serializeDate, m.format, m.formatter, m.encodeValuesOnly, m.charset, I));
|
|
10112
10112
|
}
|
|
10113
10113
|
var B = v.join(m.delimiter), T = m.addQueryPrefix === !0 ? "?" : "";
|
|
10114
10114
|
return m.charsetSentinel && (m.charset === "iso-8859-1" ? T += "utf8=%26%2310003%3B&" : T += "utf8=%E2%9C%93&"), B.length > 0 ? T + B : "";
|
|
@@ -10133,8 +10133,8 @@ function vu() {
|
|
|
10133
10133
|
S === -1 ? (I = b.decoder(v, r.decoder, E, "key"), M = b.strictNullHandling ? null : "") : (I = b.decoder(v.slice(0, S), r.decoder, E, "key"), M = c.maybeMap(n(v.slice(S + 1), b), function(B) {
|
|
10134
10134
|
return b.decoder(B, r.decoder, E, "value");
|
|
10135
10135
|
})), M && b.interpretNumericEntities && E === "iso-8859-1" && (M = a(M)), v.indexOf("[]=") > -1 && (M = t(M) ? [M] : M);
|
|
10136
|
-
var
|
|
10137
|
-
|
|
10136
|
+
var O = e.call(f, I);
|
|
10137
|
+
O && b.duplicates === "combine" ? f[I] = c.combine(f[I], M) : (!O || b.duplicates === "last") && (f[I] = M);
|
|
10138
10138
|
}
|
|
10139
10139
|
return f;
|
|
10140
10140
|
}, l = function(p, b, f, g) {
|
|
@@ -10209,8 +10209,8 @@ function _u() {
|
|
|
10209
10209
|
}
|
|
10210
10210
|
e.prototype.parse = function(v, x, S) {
|
|
10211
10211
|
if (typeof v != "string") throw new TypeError("Parameter 'url' must be a string, not " + typeof v);
|
|
10212
|
-
var I = v.indexOf("?"), M = I !== -1 && I < v.indexOf("#") ? "?" : "#",
|
|
10213
|
-
|
|
10212
|
+
var I = v.indexOf("?"), M = I !== -1 && I < v.indexOf("#") ? "?" : "#", O = v.split(M), B = /\\/g;
|
|
10213
|
+
O[0] = O[0].replace(B, "/"), v = O.join(M);
|
|
10214
10214
|
var T = v;
|
|
10215
10215
|
if (T = T.trim(), !S && v.split("#").length === 1) {
|
|
10216
10216
|
var W = a.exec(T);
|
|
@@ -10276,9 +10276,9 @@ function _u() {
|
|
|
10276
10276
|
e.prototype.format = function() {
|
|
10277
10277
|
var v = this.auth || "";
|
|
10278
10278
|
v && (v = encodeURIComponent(v), v = v.replace(/%3A/i, ":"), v += "@");
|
|
10279
|
-
var x = this.protocol || "", S = this.pathname || "", I = this.hash || "", M = !1,
|
|
10280
|
-
this.host ? M = v + this.host : this.hostname && (M = v + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (M += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (
|
|
10281
|
-
var B = this.search ||
|
|
10279
|
+
var x = this.protocol || "", S = this.pathname || "", I = this.hash || "", M = !1, O = "";
|
|
10280
|
+
this.host ? M = v + this.host : this.hostname && (M = v + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (M += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (O = y.stringify(this.query, { arrayFormat: "repeat", addQueryPrefix: !1 }));
|
|
10281
|
+
var B = this.search || O && "?" + O || "";
|
|
10282
10282
|
return x && x.substr(-1) !== ":" && (x += ":"), this.slashes || (!x || g[x]) && M !== !1 ? (M = "//" + (M || ""), S && S.charAt(0) !== "/" && (S = "/" + S)) : M || (M = ""), I && I.charAt(0) !== "#" && (I = "#" + I), B && B.charAt(0) !== "?" && (B = "?" + B), S = S.replace(/[?#]/g, function(T) {
|
|
10283
10283
|
return encodeURIComponent(T);
|
|
10284
10284
|
}), B = B.replace("#", "%23"), x + M + S + B + I;
|
|
@@ -10298,8 +10298,8 @@ function _u() {
|
|
|
10298
10298
|
x.parse(v, !1, !0), v = x;
|
|
10299
10299
|
}
|
|
10300
10300
|
for (var S = new e(), I = Object.keys(this), M = 0; M < I.length; M++) {
|
|
10301
|
-
var
|
|
10302
|
-
S[
|
|
10301
|
+
var O = I[M];
|
|
10302
|
+
S[O] = this[O];
|
|
10303
10303
|
}
|
|
10304
10304
|
if (S.hash = v.hash, v.href === "") return S.href = S.format(), S;
|
|
10305
10305
|
if (v.slashes && !v.protocol) {
|
|
@@ -10358,7 +10358,7 @@ function Ma(c) {
|
|
|
10358
10358
|
if (typeof c == "string") c = new URL(c);
|
|
10359
10359
|
else if (!(c instanceof URL)) throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");
|
|
10360
10360
|
if (c.protocol !== "file:") throw new Deno.errors.InvalidData("invalid url scheme");
|
|
10361
|
-
return
|
|
10361
|
+
return Or ? ku(c) : Su(c);
|
|
10362
10362
|
}
|
|
10363
10363
|
function ku(c) {
|
|
10364
10364
|
let e = c.hostname, t = c.pathname;
|
|
@@ -10384,20 +10384,20 @@ function Su(c) {
|
|
|
10384
10384
|
}
|
|
10385
10385
|
function Ra(c) {
|
|
10386
10386
|
let e = Ni.resolve(c), t = c.charCodeAt(c.length - 1);
|
|
10387
|
-
(t === Wa ||
|
|
10387
|
+
(t === Wa || Or && t === $a) && e[e.length - 1] !== Ni.sep && (e += "/");
|
|
10388
10388
|
let r = new URL("file://");
|
|
10389
|
-
return e.includes("%") && (e = e.replace(Ka, "%25")), !
|
|
10389
|
+
return e.includes("%") && (e = e.replace(Ka, "%25")), !Or && e.includes("\\") && (e = e.replace(Va, "%5C")), e.includes(`
|
|
10390
10390
|
`) && (e = e.replace(Ga, "%0A")), e.includes("\r") && (e = e.replace(Ya, "%0D")), e.includes(" ") && (e = e.replace(Qa, "%09")), r.pathname = e, r;
|
|
10391
10391
|
}
|
|
10392
|
-
var ja, _r, Ui, kr, Sr, Bi, Er, Di, xr, Fi, Ar, $i, Ir, Wi, Tr, qi, mt, Hi, Fe, ps, La, Na, Ua, Ba, Da, Fa, $a, Wa, qa, Ha,
|
|
10393
|
-
le(), ue(), ce(), $c(), nu(), gu(),
|
|
10392
|
+
var ja, _r, Ui, kr, Sr, Bi, Er, Di, xr, Fi, Ar, $i, Ir, Wi, Tr, qi, mt, Hi, Fe, ps, La, Na, Ua, Ba, Da, Fa, $a, Wa, qa, Ha, Or, za, Ka, Va, Ga, Ya, Qa, Eu = He(() => {
|
|
10393
|
+
le(), ue(), ce(), $c(), nu(), gu(), Ca(), ja = Object.freeze(/* @__PURE__ */ Object.create(null)), _r = {}, Ui = !1, kr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, Sr = {}, Bi = !1, Er = {}, Di = !1, xr = {}, Fi = !1, Ar = {}, $i = !1, Ir = {}, Wi = !1, Tr = {}, qi = !1, mt = {}, Hi = !1, Fe = _u(), Fe.parse, Fe.resolve, Fe.resolveObject, Fe.format, Fe.Url, ps = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, Fe.URL = typeof URL < "u" ? URL : null, Fe.pathToFileURL = Ra, Fe.fileURLToPath = Ma, La = Fe.Url, Na = Fe.format, Ua = Fe.resolve, Ba = Fe.resolveObject, Da = Fe.parse, Fa = Fe.URL, $a = 92, Wa = 47, qa = 97, Ha = 122, Or = ps === "win32", za = /\//g, Ka = /%/g, Va = /\\/g, Ga = /\n/g, Ya = /\r/g, Qa = /\t/g;
|
|
10394
10394
|
}), xu = pe((c, e) => {
|
|
10395
10395
|
le(), ue(), ce(), e.exports = function() {
|
|
10396
10396
|
throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object");
|
|
10397
10397
|
};
|
|
10398
10398
|
}), io = pe((c) => {
|
|
10399
10399
|
le(), ue(), ce(), Object.defineProperty(c, "__esModule", { value: !0 }), c.BufferedDuplex = void 0, c.writev = r;
|
|
10400
|
-
var e = It(), t = (Ne(),
|
|
10400
|
+
var e = It(), t = (Ne(), Oe(Le));
|
|
10401
10401
|
function r(n, i) {
|
|
10402
10402
|
let s = new Array(n.length);
|
|
10403
10403
|
for (let o = 0; o < n.length; o++) typeof n[o].chunk == "string" ? s[o] = t.Buffer.from(n[o].chunk, "utf8") : s[o] = n[o].chunk;
|
|
@@ -10445,7 +10445,7 @@ var ja, _r, Ui, kr, Sr, Bi, Er, Di, xr, Fi, Ar, $i, Ir, Wi, Tr, qi, mt, Hi, Fe,
|
|
|
10445
10445
|
return k && k.__esModule ? k : { default: k };
|
|
10446
10446
|
};
|
|
10447
10447
|
Object.defineProperty(c, "__esModule", { value: !0 }), c.streamBuilder = c.browserStreamBuilder = void 0;
|
|
10448
|
-
var t = (Ne(),
|
|
10448
|
+
var t = (Ne(), Oe(Le)), r = e(xu()), a = e(lt()), n = It(), i = e(Ur()), s = io(), o = (0, a.default)("mqttjs:ws"), l = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"];
|
|
10449
10449
|
function u(k, m) {
|
|
10450
10450
|
let w = `${k.protocol}://${k.hostname}:${k.port}${k.path}`;
|
|
10451
10451
|
return typeof k.transformWsUrl == "function" && (w = k.transformWsUrl(w, k, m)), w;
|
|
@@ -10488,13 +10488,13 @@ var ja, _r, Ui, kr, Sr, Bi, Er, Di, xr, Fi, Ar, $i, Ir, Wi, Tr, qi, mt, Hi, Fe,
|
|
|
10488
10488
|
c.streamBuilder = g;
|
|
10489
10489
|
var y = (k, m) => {
|
|
10490
10490
|
o("browserStreamBuilder");
|
|
10491
|
-
let w, E = p(m).browserBufferSize || 1024 * 512, v = m.browserBufferTimeout || 1e3, x = !m.objectMode, S = f(k, m), I =
|
|
10491
|
+
let w, E = p(m).browserBufferSize || 1024 * 512, v = m.browserBufferTimeout || 1e3, x = !m.objectMode, S = f(k, m), I = O(m, N, ae);
|
|
10492
10492
|
m.objectMode || (I._writev = s.writev.bind(I)), I.on("close", () => {
|
|
10493
10493
|
S.close();
|
|
10494
10494
|
});
|
|
10495
10495
|
let M = typeof S.addEventListener < "u";
|
|
10496
10496
|
S.readyState === S.OPEN ? (w = I, w.socket = S) : (w = new s.BufferedDuplex(m, I, S), M ? S.addEventListener("open", B) : S.onopen = B), M ? (S.addEventListener("close", T), S.addEventListener("error", W), S.addEventListener("message", D)) : (S.onclose = T, S.onerror = W, S.onmessage = D);
|
|
10497
|
-
function
|
|
10497
|
+
function O(Y, K, re) {
|
|
10498
10498
|
let F = new n.Transform({ objectMode: Y.objectMode });
|
|
10499
10499
|
return F._write = K, F._flush = re, F;
|
|
10500
10500
|
}
|
|
@@ -10548,7 +10548,7 @@ var Ja, Xa = He(() => {
|
|
|
10548
10548
|
return s && s.__esModule ? s : { default: s };
|
|
10549
10549
|
};
|
|
10550
10550
|
Object.defineProperty(c, "__esModule", { value: !0 });
|
|
10551
|
-
var t = e((Xa(),
|
|
10551
|
+
var t = e((Xa(), Oe(oo))), r = e(lt()), a = e(Za()), n = (0, r.default)("mqttjs:tcp"), i = (s, o) => {
|
|
10552
10552
|
if (o.port = o.port || 1883, o.hostname = o.hostname || o.host || "localhost", o.socksProxy) return (0, a.default)(o.hostname, o.port, o.socksProxy, { timeout: o.socksTimeout });
|
|
10553
10553
|
let { port: l, path: u } = o, d = o.hostname;
|
|
10554
10554
|
return n("port %d and host %s", l, d), t.default.createConnection({ port: l, host: d, path: u });
|
|
@@ -10564,7 +10564,7 @@ var tl, Au = He(() => {
|
|
|
10564
10564
|
return l && l.__esModule ? l : { default: l };
|
|
10565
10565
|
};
|
|
10566
10566
|
Object.defineProperty(c, "__esModule", { value: !0 });
|
|
10567
|
-
var t = (Au(),
|
|
10567
|
+
var t = (Au(), Oe(el)), r = e((Xa(), Oe(oo))), a = e(lt()), n = e(Za()), i = (0, a.default)("mqttjs:tls");
|
|
10568
10568
|
function s(l) {
|
|
10569
10569
|
let { host: u, port: d, socksProxy: p, ...b } = l;
|
|
10570
10570
|
if (p !== void 0) {
|
|
@@ -10587,7 +10587,7 @@ var tl, Au = He(() => {
|
|
|
10587
10587
|
c.default = o;
|
|
10588
10588
|
}), bs = pe((c) => {
|
|
10589
10589
|
le(), ue(), ce(), Object.defineProperty(c, "__esModule", { value: !0 });
|
|
10590
|
-
var e = (Ne(),
|
|
10590
|
+
var e = (Ne(), Oe(Le)), t = It(), r = io(), a, n, i;
|
|
10591
10591
|
function s() {
|
|
10592
10592
|
let p = new t.Transform();
|
|
10593
10593
|
return p._write = (b, f, g) => {
|
|
@@ -10642,7 +10642,7 @@ var tl, Au = He(() => {
|
|
|
10642
10642
|
c.default = d;
|
|
10643
10643
|
}), ys = pe((c) => {
|
|
10644
10644
|
le(), ue(), ce(), Object.defineProperty(c, "__esModule", { value: !0 });
|
|
10645
|
-
var e = (Ne(),
|
|
10645
|
+
var e = (Ne(), Oe(Le)), t = It(), r = io(), a, n, i, s = !1;
|
|
10646
10646
|
function o() {
|
|
10647
10647
|
let b = new t.Transform();
|
|
10648
10648
|
return b._write = (f, g, y) => {
|
|
@@ -10701,7 +10701,7 @@ var tl, Au = He(() => {
|
|
|
10701
10701
|
return d && d.__esModule ? d : { default: d };
|
|
10702
10702
|
};
|
|
10703
10703
|
Object.defineProperty(c, "__esModule", { value: !0 }), c.connectAsync = u;
|
|
10704
|
-
var t = e(lt()), r = e((Eu(),
|
|
10704
|
+
var t = e(lt()), r = e((Eu(), Oe(Oa))), a = e(ni()), n = e(Ur());
|
|
10705
10705
|
typeof Pe?.nextTick != "function" && (Pe.nextTick = setImmediate);
|
|
10706
10706
|
var i = (0, t.default)("mqttjs"), s = null;
|
|
10707
10707
|
function o(d) {
|
|
@@ -10858,8 +10858,8 @@ var tl, Au = He(() => {
|
|
|
10858
10858
|
var n = r(vs());
|
|
10859
10859
|
c.default = n, a(vs(), c);
|
|
10860
10860
|
});
|
|
10861
|
-
const
|
|
10862
|
-
const
|
|
10861
|
+
const Cu = Tu();
|
|
10862
|
+
const Ou = {
|
|
10863
10863
|
inbound: "apps/{appId}/users/{userId}/messages/{conversationId}/clientadded",
|
|
10864
10864
|
inboundUpdate: "apps/{appId}/users/{userId}/messages/{conversationId}/{messageId}/update",
|
|
10865
10865
|
outbound: "apps/{appId}/outgoing/users/{userId}/messages/{conversationId}/outgoing",
|
|
@@ -10895,7 +10895,7 @@ class ju {
|
|
|
10895
10895
|
inboundRegex;
|
|
10896
10896
|
inboundUpdateRegex;
|
|
10897
10897
|
constructor(e) {
|
|
10898
|
-
this.config = e, this.currentToken = e.jwtToken, this.appId = e.appId ?? "tilechat", this.clientId = e.clientId ?? `aikaara_${e.userId}_${Date.now()}`, this.topics = { ...
|
|
10898
|
+
this.config = e, this.currentToken = e.jwtToken, this.appId = e.appId ?? "tilechat", this.clientId = e.clientId ?? `aikaara_${e.userId}_${Date.now()}`, this.topics = { ...Ou, ...e.topicTemplates ?? {} }, this.maxReconnectAttempts = e.maxReconnectAttempts ?? 10, this.reconnectMaxDelayMs = e.reconnectMaxDelayMs ?? 3e4, this.inboundRegex = this.buildTopicRegex(
|
|
10899
10899
|
this.topics.inbound,
|
|
10900
10900
|
["conversationId"]
|
|
10901
10901
|
), this.inboundUpdateRegex = this.buildTopicRegex(
|
|
@@ -10925,7 +10925,7 @@ class ju {
|
|
|
10925
10925
|
qos: 0,
|
|
10926
10926
|
retain: !1
|
|
10927
10927
|
}), new Promise((a, n) => {
|
|
10928
|
-
this.client =
|
|
10928
|
+
this.client = Cu.connect(this.config.mqttEndpoint, r), this.client.on("connect", () => {
|
|
10929
10929
|
if (this.reconnectAttempt = 0, this.debugLog("CONNECT", { endpoint: this.config.mqttEndpoint, clientId: this.clientId }), this.notifyStateChange(!0), this.config.enablePresence !== !1) {
|
|
10930
10930
|
const i = this.config.presencePayloadConnected ?? { connected: !0 };
|
|
10931
10931
|
this.client.publish(e, JSON.stringify(i), { qos: 0, retain: !1 }), this.debugLog("PUBLISH", { topic: e, payload: i });
|
|
@@ -14265,7 +14265,7 @@ async function Th(c, e) {
|
|
|
14265
14265
|
const t = c.key ?? c.name;
|
|
14266
14266
|
switch (c.source) {
|
|
14267
14267
|
case "cookie":
|
|
14268
|
-
return
|
|
14268
|
+
return Ch(t);
|
|
14269
14269
|
case "localStorage":
|
|
14270
14270
|
return nr(() => window.localStorage.getItem(t) ?? void 0);
|
|
14271
14271
|
case "sessionStorage":
|
|
@@ -14273,7 +14273,7 @@ async function Th(c, e) {
|
|
|
14273
14273
|
case "url_param":
|
|
14274
14274
|
return nr(() => new URL(window.location.href).searchParams.get(t) ?? void 0);
|
|
14275
14275
|
case "header_meta":
|
|
14276
|
-
return nr(() => document.querySelector(`meta[name="${
|
|
14276
|
+
return nr(() => document.querySelector(`meta[name="${Oh(t)}"]`)?.content ?? void 0);
|
|
14277
14277
|
case "callback": {
|
|
14278
14278
|
const r = e?.[c.name];
|
|
14279
14279
|
if (!r) return;
|
|
@@ -14284,7 +14284,7 @@ async function Th(c, e) {
|
|
|
14284
14284
|
return;
|
|
14285
14285
|
}
|
|
14286
14286
|
}
|
|
14287
|
-
function
|
|
14287
|
+
function Ch(c) {
|
|
14288
14288
|
if (typeof document > "u") return;
|
|
14289
14289
|
const e = encodeURIComponent(c), t = document.cookie ? document.cookie.split("; ") : [];
|
|
14290
14290
|
for (const r of t) {
|
|
@@ -14306,7 +14306,7 @@ function nr(c) {
|
|
|
14306
14306
|
return;
|
|
14307
14307
|
}
|
|
14308
14308
|
}
|
|
14309
|
-
function
|
|
14309
|
+
function Oh(c) {
|
|
14310
14310
|
return c.replace(/["\\]/g, "\\$&");
|
|
14311
14311
|
}
|
|
14312
14312
|
const Ph = 1800;
|
|
@@ -14852,7 +14852,9 @@ async function ef(c) {
|
|
|
14852
14852
|
}
|
|
14853
14853
|
if (window.__aikaara_descriptor__ = {
|
|
14854
14854
|
templates: a.templates,
|
|
14855
|
-
components: a.components
|
|
14855
|
+
components: a.components,
|
|
14856
|
+
razorpay: a.razorpay,
|
|
14857
|
+
title: a.title
|
|
14856
14858
|
}, !a.auth)
|
|
14857
14859
|
throw new Error(
|
|
14858
14860
|
`mountFromSlug: widget_configs/${c.slug} descriptor must include "auth" block`
|
|
@@ -14889,7 +14891,13 @@ async function ef(c) {
|
|
|
14889
14891
|
slug: c.slug,
|
|
14890
14892
|
identity: c.user.identity
|
|
14891
14893
|
});
|
|
14892
|
-
const d = new Ah(a.auth, l), p = await d.get(), b = p.fullName || s || i
|
|
14894
|
+
const d = new Ah(a.auth, l), p = await d.get(), b = p.fullName || s || i;
|
|
14895
|
+
window.__aikaara_runtime__ = {
|
|
14896
|
+
getChatJwt: async () => (await d.get()).token,
|
|
14897
|
+
identity: c.user.identity,
|
|
14898
|
+
slug: c.slug
|
|
14899
|
+
};
|
|
14900
|
+
const f = u && a.sso?.autoRefresh ? async () => {
|
|
14893
14901
|
try {
|
|
14894
14902
|
return await u.refresh(), d.reset(), (await d.get()).token;
|
|
14895
14903
|
} catch (w) {
|