@aikaara/chat-sdk 1.4.11 → 1.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AikaaraLinkButton-Cl0EObu4.cjs → AikaaraLinkButton-BzBwqFjq.cjs} +1 -1
- package/dist/{AikaaraLinkButton-C0To_3Ln.mjs → AikaaraLinkButton-DFB47cz9.mjs} +1 -1
- package/dist/{MountTenant-NmqOsuTJ.mjs → MountTenant-DxIOkIIJ.mjs} +794 -797
- package/dist/{MountTenant-CsY3-a9k.cjs → MountTenant-yBeE7wkd.cjs} +28 -28
- package/dist/cdn/aikaara-chat.iife.js +51 -51
- package/dist/headless.cjs +1 -1
- package/dist/headless.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class Ll {
|
|
2
2
|
identifier;
|
|
3
3
|
callbacks = {};
|
|
4
4
|
sendFn;
|
|
@@ -63,7 +63,7 @@ class bo {
|
|
|
63
63
|
this.ws && (this.ws.onclose = null, this.ws.close(), this.ws = null), this.subscriptions.forEach((e) => e._notifyDisconnected()), this.subscriptions.clear();
|
|
64
64
|
}
|
|
65
65
|
subscribe(e) {
|
|
66
|
-
const t = JSON.stringify(e), r = new
|
|
66
|
+
const t = JSON.stringify(e), r = new Ll(t, (o) => {
|
|
67
67
|
this.send({
|
|
68
68
|
command: "message",
|
|
69
69
|
identifier: t,
|
|
@@ -163,8 +163,8 @@ class qs {
|
|
|
163
163
|
this.handlers.clear();
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
const
|
|
167
|
-
class
|
|
166
|
+
const jl = 1e3, Nl = 10, Ul = 400, Bl = 600, yo = "#6366f1", Dl = 12, Fl = "system-ui, -apple-system, sans-serif", vo = "Type a message...", $l = "bottom-right", ql = "light", Hl = { x: 20, y: 20 }, zr = "aikaara_conversation_id";
|
|
167
|
+
class Wl extends qs {
|
|
168
168
|
client;
|
|
169
169
|
config;
|
|
170
170
|
state = "disconnected";
|
|
@@ -221,13 +221,13 @@ class zl extends qs {
|
|
|
221
221
|
this.state !== e && (this.state = e, this.emit("connection:state", e));
|
|
222
222
|
}
|
|
223
223
|
scheduleReconnect() {
|
|
224
|
-
const e = this.config.maxReconnectAttempts ??
|
|
224
|
+
const e = this.config.maxReconnectAttempts ?? Nl;
|
|
225
225
|
if (this.reconnectAttempt >= e) {
|
|
226
226
|
this.emit("error", new Error("Max reconnection attempts reached"));
|
|
227
227
|
return;
|
|
228
228
|
}
|
|
229
229
|
this.setState("reconnecting");
|
|
230
|
-
const r = (this.config.reconnectInterval ??
|
|
230
|
+
const r = (this.config.reconnectInterval ?? jl) * Math.pow(2, this.reconnectAttempt);
|
|
231
231
|
this.reconnectAttempt++, this.reconnectTimer = setTimeout(async () => {
|
|
232
232
|
try {
|
|
233
233
|
const o = this.buildWsUrl(this.config.baseUrl, this.config.userToken);
|
|
@@ -247,7 +247,7 @@ class zl extends qs {
|
|
|
247
247
|
return `${e.replace(/^http/, "ws")}/cable?token=${t}`;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
class
|
|
250
|
+
class zl {
|
|
251
251
|
baseUrl;
|
|
252
252
|
apiKey;
|
|
253
253
|
authToken;
|
|
@@ -354,7 +354,7 @@ class Vl {
|
|
|
354
354
|
return r && (n.body = JSON.stringify(r)), fetch(e, n);
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
class
|
|
357
|
+
class Vl {
|
|
358
358
|
_messages = [];
|
|
359
359
|
optimisticCounter = 0;
|
|
360
360
|
get messages() {
|
|
@@ -512,7 +512,7 @@ function Hs(a) {
|
|
|
512
512
|
const r = e.payload?.elements?.[0]?.action?.url;
|
|
513
513
|
return typeof r == "string" ? r : void 0;
|
|
514
514
|
}
|
|
515
|
-
class
|
|
515
|
+
class Gl {
|
|
516
516
|
_conversationId;
|
|
517
517
|
persist;
|
|
518
518
|
constructor(e, t = !0) {
|
|
@@ -546,23 +546,23 @@ class Kl {
|
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
var to = Object.defineProperty,
|
|
549
|
+
var to = Object.defineProperty, Kl = Object.getOwnPropertyDescriptor, Yl = Object.getOwnPropertyNames, Jl = Object.prototype.hasOwnProperty, Ve = (a, e) => () => (a && (e = a(a = 0)), e), pe = (a, e) => () => (e || a((e = { exports: {} }).exports, e), e.exports), Ft = (a, e) => {
|
|
550
550
|
for (var t in e) to(a, t, { get: e[t], enumerable: !0 });
|
|
551
|
-
},
|
|
552
|
-
if (e && typeof e == "object" || typeof e == "function") for (let o of
|
|
551
|
+
}, Ql = (a, e, t, r) => {
|
|
552
|
+
if (e && typeof e == "object" || typeof e == "function") for (let o of Yl(e)) !Jl.call(a, o) && o !== t && to(a, o, { get: () => e[o], enumerable: !(r = Kl(e, o)) || r.enumerable });
|
|
553
553
|
return a;
|
|
554
|
-
}, Pe = (a) =>
|
|
554
|
+
}, Pe = (a) => Ql(to({}, "__esModule", { value: !0 }), a), le = Ve(() => {
|
|
555
555
|
}), Re = {};
|
|
556
|
-
Ft(Re, { _debugEnd: () => Ln, _debugProcess: () => Rn, _events: () => Yn, _eventsCount: () =>
|
|
556
|
+
Ft(Re, { _debugEnd: () => Ln, _debugProcess: () => Rn, _events: () => Yn, _eventsCount: () => Jn, _exiting: () => vn, _fatalExceptions: () => On, _getActiveHandles: () => Js, _getActiveRequests: () => Ys, _kill: () => kn, _linkedBinding: () => Gs, _maxListeners: () => Kn, _preload_modules: () => Vn, _rawDebug: () => gn, _startProfilerIdleNotifier: () => jn, _stopProfilerIdleNotifier: () => Nn, _tickCallback: () => Mn, abort: () => Fn, addListener: () => Qn, allowedNodeEnvironmentFlags: () => Tn, arch: () => tn, argv: () => on, argv0: () => zn, assert: () => Qs, binding: () => un, browser: () => mn, chdir: () => fn, config: () => wn, cpuUsage: () => Kt, cwd: () => dn, debugPort: () => Wn, default: () => no, dlopen: () => Ks, domain: () => yn, emit: () => ri, emitWarning: () => cn, env: () => nn, execArgv: () => sn, execPath: () => Hn, exit: () => An, features: () => Cn, hasUncaughtExceptionCaptureCallback: () => Xs, hrtime: () => ur, kill: () => En, listeners: () => ea, memoryUsage: () => Sn, moduleLoadList: () => bn, nextTick: () => zs, off: () => Zn, on: () => st, once: () => Xn, openStdin: () => In, pid: () => $n, platform: () => rn, ppid: () => qn, prependListener: () => ni, prependOnceListener: () => ii, reallyExit: () => _n, release: () => pn, removeAllListeners: () => ti, removeListener: () => ei, resourceUsage: () => xn, setSourceMapsEnabled: () => Gn, setUncaughtExceptionCaptureCallback: () => Pn, stderr: () => Bn, stdin: () => Dn, stdout: () => Un, title: () => en, umask: () => hn, uptime: () => Zs, version: () => an, versions: () => ln });
|
|
557
557
|
function ro(a) {
|
|
558
558
|
throw new Error("Node.js process " + a + " is not supported by JSPM core outside of Node.js");
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function Xl() {
|
|
561
561
|
!It || !Et || (It = !1, Et.length ? nt = Et.concat(nt) : Xt = -1, nt.length && Ws());
|
|
562
562
|
}
|
|
563
563
|
function Ws() {
|
|
564
564
|
if (!It) {
|
|
565
|
-
var a = setTimeout(
|
|
565
|
+
var a = setTimeout(Xl, 0);
|
|
566
566
|
It = !0;
|
|
567
567
|
for (var e = nt.length; e; ) {
|
|
568
568
|
for (Et = nt, nt = []; ++Xt < e; ) Et && Et[Xt].run();
|
|
@@ -590,10 +590,10 @@ function Ks(a) {
|
|
|
590
590
|
function Ys() {
|
|
591
591
|
return [];
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Js() {
|
|
594
594
|
return [];
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Qs(a, e) {
|
|
597
597
|
if (!a) throw new Error(e || "assertion error");
|
|
598
598
|
}
|
|
599
599
|
function Xs() {
|
|
@@ -612,7 +612,7 @@ function st() {
|
|
|
612
612
|
function ea(a) {
|
|
613
613
|
return [];
|
|
614
614
|
}
|
|
615
|
-
var nt, It, Et, Xt, en, tn, rn, nn, on, sn, an, ln, cn, un, hn, dn, fn, pn, mn, gn, bn, yn, vn, wn, _n, kn, Kt, xn, Sn, En, An, In, Tn, Cn, On, Pn, Mn, Rn, Ln, jn, Nn, Un, Bn, Dn, Fn, $n, qn, Hn, Wn, zn, Vn, Gn, lt, Vr, hr, Kn, Yn,
|
|
615
|
+
var nt, It, Et, Xt, en, tn, rn, nn, on, sn, an, ln, cn, un, hn, dn, fn, pn, mn, gn, bn, yn, vn, wn, _n, kn, Kt, xn, Sn, En, An, In, Tn, Cn, On, Pn, Mn, Rn, Ln, jn, Nn, Un, Bn, Dn, Fn, $n, qn, Hn, Wn, zn, Vn, Gn, lt, Vr, hr, Kn, Yn, Jn, Qn, Xn, Zn, ei, ti, ri, ni, ii, no, Zl = Ve(() => {
|
|
616
616
|
le(), ue(), ce(), nt = [], It = !1, Xt = -1, Vs.prototype.run = function() {
|
|
617
617
|
this.fun.apply(null, this.array);
|
|
618
618
|
}, en = "browser", tn = "x64", rn = "browser", nn = { PATH: "/usr/bin", LANG: typeof navigator < "u" ? navigator.language + ".UTF-8" : void 0, PWD: "/", HOME: "/home", TMP: "/tmp" }, on = ["/usr/bin/node"], sn = [], an = "v16.8.0", ln = {}, cn = function(a, e) {
|
|
@@ -629,11 +629,11 @@ var nt, It, Et, Xt, en, tn, rn, nn, on, sn, an, ln, cn, un, hn, dn, fn, pn, mn,
|
|
|
629
629
|
}, xn = Kt, Sn = Kt, En = Fe, An = Fe, In = Fe, Tn = {}, Cn = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, On = Fe, Pn = Fe, Mn = Fe, Rn = Fe, Ln = Fe, jn = Fe, Nn = Fe, Un = void 0, Bn = void 0, Dn = void 0, Fn = Fe, $n = 2, qn = 1, Hn = "/bin/usr/node", Wn = 9229, zn = "node", Vn = [], Gn = Fe, lt = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, lt.now === void 0 && (Vr = Date.now(), lt.timing && lt.timing.navigationStart && (Vr = lt.timing.navigationStart), lt.now = () => Date.now() - Vr), hr = 1e9, ur.bigint = function(a) {
|
|
630
630
|
var e = ur(a);
|
|
631
631
|
return typeof BigInt > "u" ? e[0] * hr + e[1] : BigInt(e[0] * hr) + BigInt(e[1]);
|
|
632
|
-
}, Kn = 10, Yn = {},
|
|
632
|
+
}, Kn = 10, Yn = {}, Jn = 0, Qn = st, Xn = st, Zn = st, ei = st, ti = st, ri = Fe, ni = st, ii = st, no = { version: an, versions: ln, arch: tn, platform: rn, browser: mn, release: pn, _rawDebug: gn, moduleLoadList: bn, binding: un, _linkedBinding: Gs, _events: Yn, _eventsCount: Jn, _maxListeners: Kn, on: st, addListener: Qn, once: Xn, off: Zn, removeListener: ei, removeAllListeners: ti, emit: ri, prependListener: ni, prependOnceListener: ii, listeners: ea, domain: yn, _exiting: vn, config: wn, dlopen: Ks, uptime: Zs, _getActiveRequests: Ys, _getActiveHandles: Js, reallyExit: _n, _kill: kn, cpuUsage: Kt, resourceUsage: xn, memoryUsage: Sn, kill: En, exit: An, openStdin: In, allowedNodeEnvironmentFlags: Tn, assert: Qs, features: Cn, _fatalExceptions: On, setUncaughtExceptionCaptureCallback: Pn, hasUncaughtExceptionCaptureCallback: Xs, emitWarning: cn, nextTick: zs, _tickCallback: Mn, _debugProcess: Rn, _debugEnd: Ln, _startProfilerIdleNotifier: jn, _stopProfilerIdleNotifier: Nn, stdout: Un, stdin: Dn, stderr: Bn, abort: Fn, umask: hn, chdir: fn, cwd: dn, env: nn, title: en, argv: on, execArgv: sn, pid: $n, ppid: qn, execPath: Hn, debugPort: Wn, hrtime: ur, argv0: zn, _preload_modules: Vn, setSourceMapsEnabled: Gn };
|
|
633
633
|
}), ce = Ve(() => {
|
|
634
|
-
|
|
634
|
+
Zl();
|
|
635
635
|
});
|
|
636
|
-
function
|
|
636
|
+
function ec() {
|
|
637
637
|
if (oi) return Lt;
|
|
638
638
|
oi = !0, Lt.byteLength = s, Lt.toByteArray = c, Lt.fromByteArray = p;
|
|
639
639
|
for (var a = [], e = [], t = typeof Uint8Array < "u" ? Uint8Array : Array, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", o = 0, n = r.length; o < n; ++o) a[o] = r[o], e[r.charCodeAt(o)] = o;
|
|
@@ -671,7 +671,7 @@ function tc() {
|
|
|
671
671
|
}
|
|
672
672
|
return Lt;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function tc() {
|
|
675
675
|
return si ? Yt : (si = !0, Yt.read = function(a, e, t, r, o) {
|
|
676
676
|
var n, i, s = o * 8 - r - 1, l = (1 << s) - 1, c = l >> 1, u = -7, h = t ? o - 1 : 0, p = t ? -1 : 1, b = a[e + h];
|
|
677
677
|
for (h += p, n = b & (1 << -u) - 1, b >>= -u, u += s; u > 0; n = n * 256 + a[e + h], h += p, u -= 8) ;
|
|
@@ -689,10 +689,10 @@ function rc() {
|
|
|
689
689
|
a[t + b - f] |= g * 128;
|
|
690
690
|
}, Yt);
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function rc() {
|
|
693
693
|
if (ai) return bt;
|
|
694
694
|
ai = !0;
|
|
695
|
-
let a =
|
|
695
|
+
let a = ec(), e = tc(), t = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
|
|
696
696
|
bt.Buffer = i, bt.SlowBuffer = w, bt.INSPECT_MAX_BYTES = 50;
|
|
697
697
|
let r = 2147483647;
|
|
698
698
|
bt.kMaxLength = r, i.TYPED_ARRAY_SUPPORT = o(), !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.");
|
|
@@ -1131,13 +1131,13 @@ function nc() {
|
|
|
1131
1131
|
}, i.prototype.readUint32BE = i.prototype.readUInt32BE = function(d, k) {
|
|
1132
1132
|
return d = d >>> 0, k || F(d, 4, this.length), this[d] * 16777216 + (this[d + 1] << 16 | this[d + 2] << 8 | this[d + 3]);
|
|
1133
1133
|
}, i.prototype.readBigUInt64LE = se(function(d) {
|
|
1134
|
-
d = d >>> 0,
|
|
1134
|
+
d = d >>> 0, J(d, "offset");
|
|
1135
1135
|
let k = this[d], A = this[d + 7];
|
|
1136
1136
|
(k === void 0 || A === void 0) && ge(d, this.length - 8);
|
|
1137
1137
|
let B = k + this[++d] * 2 ** 8 + this[++d] * 2 ** 16 + this[++d] * 2 ** 24, X = this[++d] + this[++d] * 2 ** 8 + this[++d] * 2 ** 16 + A * 2 ** 24;
|
|
1138
1138
|
return BigInt(B) + (BigInt(X) << BigInt(32));
|
|
1139
1139
|
}), i.prototype.readBigUInt64BE = se(function(d) {
|
|
1140
|
-
d = d >>> 0,
|
|
1140
|
+
d = d >>> 0, J(d, "offset");
|
|
1141
1141
|
let k = this[d], A = this[d + 7];
|
|
1142
1142
|
(k === void 0 || A === void 0) && ge(d, this.length - 8);
|
|
1143
1143
|
let B = k * 2 ** 24 + this[++d] * 2 ** 16 + this[++d] * 2 ** 8 + this[++d], X = this[++d] * 2 ** 24 + this[++d] * 2 ** 16 + this[++d] * 2 ** 8 + A;
|
|
@@ -1167,13 +1167,13 @@ function nc() {
|
|
|
1167
1167
|
}, i.prototype.readInt32BE = function(d, k) {
|
|
1168
1168
|
return d = d >>> 0, k || F(d, 4, this.length), this[d] << 24 | this[d + 1] << 16 | this[d + 2] << 8 | this[d + 3];
|
|
1169
1169
|
}, i.prototype.readBigInt64LE = se(function(d) {
|
|
1170
|
-
d = d >>> 0,
|
|
1170
|
+
d = d >>> 0, J(d, "offset");
|
|
1171
1171
|
let k = this[d], A = this[d + 7];
|
|
1172
1172
|
(k === void 0 || A === void 0) && ge(d, this.length - 8);
|
|
1173
1173
|
let B = this[d + 4] + this[d + 5] * 2 ** 8 + this[d + 6] * 2 ** 16 + (A << 24);
|
|
1174
1174
|
return (BigInt(B) << BigInt(32)) + BigInt(k + this[++d] * 2 ** 8 + this[++d] * 2 ** 16 + this[++d] * 2 ** 24);
|
|
1175
1175
|
}), i.prototype.readBigInt64BE = se(function(d) {
|
|
1176
|
-
d = d >>> 0,
|
|
1176
|
+
d = d >>> 0, J(d, "offset");
|
|
1177
1177
|
let k = this[d], A = this[d + 7];
|
|
1178
1178
|
(k === void 0 || A === void 0) && ge(d, this.length - 8);
|
|
1179
1179
|
let B = (k << 24) + this[++d] * 2 ** 16 + this[++d] * 2 ** 8 + this[++d];
|
|
@@ -1226,7 +1226,7 @@ function nc() {
|
|
|
1226
1226
|
let ke = Number(k >> BigInt(32) & BigInt(4294967295));
|
|
1227
1227
|
return d[A++] = ke, ke = ke >> 8, d[A++] = ke, ke = ke >> 8, d[A++] = ke, ke = ke >> 8, d[A++] = ke, A;
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1229
|
+
function Q(d, k, A, B, X) {
|
|
1230
1230
|
K(k, B, X, d, A, 7);
|
|
1231
1231
|
let he = Number(k & BigInt(4294967295));
|
|
1232
1232
|
d[A + 7] = he, he = he >> 8, d[A + 6] = he, he = he >> 8, d[A + 5] = he, he = he >> 8, d[A + 4] = he;
|
|
@@ -1236,7 +1236,7 @@ function nc() {
|
|
|
1236
1236
|
i.prototype.writeBigUInt64LE = se(function(d, k = 0) {
|
|
1237
1237
|
return M(this, d, k, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1238
1238
|
}), i.prototype.writeBigUInt64BE = se(function(d, k = 0) {
|
|
1239
|
-
return
|
|
1239
|
+
return Q(this, d, k, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1240
1240
|
}), i.prototype.writeIntLE = function(d, k, A, B) {
|
|
1241
1241
|
if (d = +d, k = k >>> 0, !B) {
|
|
1242
1242
|
let z = Math.pow(2, 8 * A - 1);
|
|
@@ -1266,7 +1266,7 @@ function nc() {
|
|
|
1266
1266
|
}, i.prototype.writeBigInt64LE = se(function(d, k = 0) {
|
|
1267
1267
|
return M(this, d, k, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1268
1268
|
}), i.prototype.writeBigInt64BE = se(function(d, k = 0) {
|
|
1269
|
-
return
|
|
1269
|
+
return Q(this, d, k, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1270
1270
|
});
|
|
1271
1271
|
function be(d, k, A, B, X, he) {
|
|
1272
1272
|
if (A + B > d.length) throw new RangeError("Index out of range");
|
|
@@ -1348,7 +1348,7 @@ function nc() {
|
|
|
1348
1348
|
return `${d.slice(0, A)}${k}`;
|
|
1349
1349
|
}
|
|
1350
1350
|
function W(d, k, A) {
|
|
1351
|
-
|
|
1351
|
+
J(k, "offset"), (d[k] === void 0 || d[k + A] === void 0) && ge(k, d.length - (A + 1));
|
|
1352
1352
|
}
|
|
1353
1353
|
function K(d, k, A, B, X, he) {
|
|
1354
1354
|
if (d > A || d < k) {
|
|
@@ -1357,11 +1357,11 @@ function nc() {
|
|
|
1357
1357
|
}
|
|
1358
1358
|
W(B, X, he);
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1360
|
+
function J(d, k) {
|
|
1361
1361
|
if (typeof d != "number") throw new G.ERR_INVALID_ARG_TYPE(k, "number", d);
|
|
1362
1362
|
}
|
|
1363
1363
|
function ge(d, k, A) {
|
|
1364
|
-
throw Math.floor(d) !== d ? (
|
|
1364
|
+
throw Math.floor(d) !== d ? (J(d, A), new G.ERR_OUT_OF_RANGE("offset", "an integer", d)) : k < 0 ? new G.ERR_BUFFER_OUT_OF_BOUNDS() : new G.ERR_OUT_OF_RANGE("offset", `>= 0 and <= ${k}`, d);
|
|
1365
1365
|
}
|
|
1366
1366
|
let oe = /[^+/0-9A-Za-z-_]/g;
|
|
1367
1367
|
function R(d) {
|
|
@@ -1447,12 +1447,12 @@ function nc() {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
return bt;
|
|
1449
1449
|
}
|
|
1450
|
-
var Lt, oi, Yt, si, bt, ai,
|
|
1450
|
+
var Lt, oi, Yt, si, bt, ai, nc = Ve(() => {
|
|
1451
1451
|
le(), ue(), ce(), Lt = {}, oi = !1, Yt = {}, si = !1, bt = {}, ai = !1;
|
|
1452
1452
|
}), Ue = {};
|
|
1453
1453
|
Ft(Ue, { Buffer: () => Nr, INSPECT_MAX_BYTES: () => ta, default: () => at, kMaxLength: () => ra });
|
|
1454
1454
|
var at, Nr, ta, ra, Be = Ve(() => {
|
|
1455
|
-
le(), ue(), ce(),
|
|
1455
|
+
le(), ue(), ce(), nc(), at = rc(), at.Buffer, at.SlowBuffer, at.INSPECT_MAX_BYTES, at.kMaxLength, Nr = at.Buffer, ta = at.INSPECT_MAX_BYTES, ra = at.kMaxLength;
|
|
1456
1456
|
}), ue = Ve(() => {
|
|
1457
1457
|
Be();
|
|
1458
1458
|
}), je = pe((a, e) => {
|
|
@@ -1699,8 +1699,8 @@ var at, Nr, ta, ra, Be = Ve(() => {
|
|
|
1699
1699
|
e.exports = t, e.exports.AbortSignal = r, e.exports.default = t;
|
|
1700
1700
|
}), wt = {};
|
|
1701
1701
|
Ft(wt, { EventEmitter: () => ia, default: () => jt, defaultMaxListeners: () => oa, init: () => sa, listenerCount: () => aa, on: () => la, once: () => ca });
|
|
1702
|
-
function
|
|
1703
|
-
if (li) return
|
|
1702
|
+
function ic() {
|
|
1703
|
+
if (li) return Jt;
|
|
1704
1704
|
li = !0;
|
|
1705
1705
|
var a = typeof Reflect == "object" ? Reflect : null, e = a && typeof a.apply == "function" ? a.apply : function(x, v, E) {
|
|
1706
1706
|
return Function.prototype.apply.call(x, v, E);
|
|
@@ -1719,7 +1719,7 @@ function oc() {
|
|
|
1719
1719
|
function n() {
|
|
1720
1720
|
n.init.call(this);
|
|
1721
1721
|
}
|
|
1722
|
-
|
|
1722
|
+
Jt = n, Jt.once = w, n.EventEmitter = n, n.prototype._events = void 0, n.prototype._eventsCount = 0, n.prototype._maxListeners = void 0;
|
|
1723
1723
|
var i = 10;
|
|
1724
1724
|
function s(x) {
|
|
1725
1725
|
if (typeof x != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof x);
|
|
@@ -1868,10 +1868,10 @@ function oc() {
|
|
|
1868
1868
|
});
|
|
1869
1869
|
else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof x);
|
|
1870
1870
|
}
|
|
1871
|
-
return
|
|
1871
|
+
return Jt;
|
|
1872
1872
|
}
|
|
1873
|
-
var
|
|
1874
|
-
le(), ue(), ce(),
|
|
1873
|
+
var Jt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
1874
|
+
le(), ue(), ce(), Jt = {}, li = !1, jt = ic(), jt.once, jt.once = function(a, e) {
|
|
1875
1875
|
return new Promise((t, r) => {
|
|
1876
1876
|
function o(...i) {
|
|
1877
1877
|
n !== void 0 && a.removeListener("error", n), t(i);
|
|
@@ -2014,7 +2014,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2014
2014
|
function M(H, me, ve) {
|
|
2015
2015
|
return H == null || !h(H, me) ? ve : H[me];
|
|
2016
2016
|
}
|
|
2017
|
-
var
|
|
2017
|
+
var Q = y((H, me, ve = null) => {
|
|
2018
2018
|
let se = M(ve, "allowArray", !1), Te = M(ve, "allowFunction", !1);
|
|
2019
2019
|
if (!M(ve, "nullable", !1) && H === null || !se && t(H) || typeof H != "object" && (!Te || typeof H != "function")) throw new m(me, "Object", H);
|
|
2020
2020
|
}), be = y((H, me) => {
|
|
@@ -2052,7 +2052,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2052
2052
|
let ve = E(me), se = H.length;
|
|
2053
2053
|
if (ve === "hex" && se % 2 !== 0) throw new _("encoding", me, `is invalid for data of length ${se}`);
|
|
2054
2054
|
}
|
|
2055
|
-
function
|
|
2055
|
+
function J(H, me = "Port", ve = !0) {
|
|
2056
2056
|
if (typeof H != "number" && typeof H != "string" || typeof H == "string" && g(H).length === 0 || +H !== +H >>> 0 || H > 65535 || H === 0 && !ve) throw new w(me, H, ve);
|
|
2057
2057
|
return H | 0;
|
|
2058
2058
|
}
|
|
@@ -2085,7 +2085,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
throw new _("hints", H, 'must be an array or string of format "</styles.css>; rel=preload; as=style"');
|
|
2087
2087
|
}
|
|
2088
|
-
e.exports = { isInt32: P, isUint32: N, parseFileMode: D, validateArray: te, validateStringArray: we, validateBooleanArray: G, validateAbortSignalArray: j, validateBoolean: Z, validateBuffer: W, validateDictionary: be, validateEncoding: K, validateFunction: oe, validateInt32: ae, validateInteger: U, validateNumber: re, validateObject:
|
|
2088
|
+
e.exports = { isInt32: P, isUint32: N, parseFileMode: D, validateArray: te, validateStringArray: we, validateBooleanArray: G, validateAbortSignalArray: j, validateBoolean: Z, validateBuffer: W, validateDictionary: be, validateEncoding: K, validateFunction: oe, validateInt32: ae, validateInteger: U, validateNumber: re, validateObject: Q, validateOneOf: F, validatePlainFunction: R, validatePort: J, validateSignalName: ne, validateString: V, validateUint32: Y, validateUndefined: $, validateUnion: ee, validateAbortSignal: ge, validateLinkHeaderValue: ye };
|
|
2089
2089
|
}), Ot = pe((a, e) => {
|
|
2090
2090
|
le(), ue(), ce();
|
|
2091
2091
|
var t = e.exports = {}, r, o;
|
|
@@ -2175,13 +2175,13 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2175
2175
|
}), dt = pe((a, e) => {
|
|
2176
2176
|
le(), ue(), ce();
|
|
2177
2177
|
var { SymbolAsyncIterator: t, SymbolIterator: r, SymbolFor: o } = je(), n = o("nodejs.stream.destroyed"), i = o("nodejs.stream.errored"), s = o("nodejs.stream.readable"), l = o("nodejs.stream.writable"), c = o("nodejs.stream.disturbed"), u = o("nodejs.webstream.isClosedPromise"), h = o("nodejs.webstream.controllerErrorFunction");
|
|
2178
|
-
function p(M,
|
|
2178
|
+
function p(M, Q = !1) {
|
|
2179
2179
|
var be;
|
|
2180
|
-
return !!(M && typeof M.pipe == "function" && typeof M.on == "function" && (!
|
|
2180
|
+
return !!(M && typeof M.pipe == "function" && typeof M.on == "function" && (!Q || typeof M.pause == "function" && typeof M.resume == "function") && (!M._writableState || ((be = M._readableState) === null || be === void 0 ? void 0 : be.readable) !== !1) && (!M._writableState || M._readableState));
|
|
2181
2181
|
}
|
|
2182
2182
|
function b(M) {
|
|
2183
|
-
var
|
|
2184
|
-
return !!(M && typeof M.write == "function" && typeof M.on == "function" && (!M._readableState || ((
|
|
2183
|
+
var Q;
|
|
2184
|
+
return !!(M && typeof M.write == "function" && typeof M.on == "function" && (!M._readableState || ((Q = M._writableState) === null || Q === void 0 ? void 0 : Q.writable) !== !1));
|
|
2185
2185
|
}
|
|
2186
2186
|
function f(M) {
|
|
2187
2187
|
return !!(M && typeof M.pipe == "function" && M._readableState && typeof M.on == "function" && typeof M.write == "function");
|
|
@@ -2201,36 +2201,36 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2201
2201
|
function _(M) {
|
|
2202
2202
|
return y(M) || w(M) || m(M);
|
|
2203
2203
|
}
|
|
2204
|
-
function x(M,
|
|
2205
|
-
return M == null ? !1 :
|
|
2204
|
+
function x(M, Q) {
|
|
2205
|
+
return M == null ? !1 : Q === !0 ? typeof M[t] == "function" : Q === !1 ? typeof M[r] == "function" : typeof M[t] == "function" || typeof M[r] == "function";
|
|
2206
2206
|
}
|
|
2207
2207
|
function v(M) {
|
|
2208
2208
|
if (!g(M)) return null;
|
|
2209
|
-
let
|
|
2209
|
+
let Q = M._writableState, be = M._readableState, te = Q || be;
|
|
2210
2210
|
return !!(M.destroyed || M[n] || te != null && te.destroyed);
|
|
2211
2211
|
}
|
|
2212
2212
|
function E(M) {
|
|
2213
2213
|
if (!b(M)) return null;
|
|
2214
2214
|
if (M.writableEnded === !0) return !0;
|
|
2215
|
-
let
|
|
2216
|
-
return
|
|
2215
|
+
let Q = M._writableState;
|
|
2216
|
+
return Q != null && Q.errored ? !1 : typeof Q?.ended != "boolean" ? null : Q.ended;
|
|
2217
2217
|
}
|
|
2218
|
-
function S(M,
|
|
2218
|
+
function S(M, Q) {
|
|
2219
2219
|
if (!b(M)) return null;
|
|
2220
2220
|
if (M.writableFinished === !0) return !0;
|
|
2221
2221
|
let be = M._writableState;
|
|
2222
|
-
return be != null && be.errored ? !1 : typeof be?.finished != "boolean" ? null : !!(be.finished ||
|
|
2222
|
+
return be != null && be.errored ? !1 : typeof be?.finished != "boolean" ? null : !!(be.finished || Q === !1 && be.ended === !0 && be.length === 0);
|
|
2223
2223
|
}
|
|
2224
2224
|
function I(M) {
|
|
2225
2225
|
if (!p(M)) return null;
|
|
2226
2226
|
if (M.readableEnded === !0) return !0;
|
|
2227
|
-
let
|
|
2228
|
-
return !
|
|
2227
|
+
let Q = M._readableState;
|
|
2228
|
+
return !Q || Q.errored ? !1 : typeof Q?.ended != "boolean" ? null : Q.ended;
|
|
2229
2229
|
}
|
|
2230
|
-
function O(M,
|
|
2230
|
+
function O(M, Q) {
|
|
2231
2231
|
if (!p(M)) return null;
|
|
2232
2232
|
let be = M._readableState;
|
|
2233
|
-
return be != null && be.errored ? !1 : typeof be?.endEmitted != "boolean" ? null : !!(be.endEmitted ||
|
|
2233
|
+
return be != null && be.errored ? !1 : typeof be?.endEmitted != "boolean" ? null : !!(be.endEmitted || Q === !1 && be.ended === !0 && be.length === 0);
|
|
2234
2234
|
}
|
|
2235
2235
|
function P(M) {
|
|
2236
2236
|
return M && M[s] != null ? M[s] : typeof M?.readable != "boolean" ? null : v(M) ? !1 : p(M) && M.readable && !O(M);
|
|
@@ -2238,22 +2238,22 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2238
2238
|
function N(M) {
|
|
2239
2239
|
return M && M[l] != null ? M[l] : typeof M?.writable != "boolean" ? null : v(M) ? !1 : b(M) && M.writable && !E(M);
|
|
2240
2240
|
}
|
|
2241
|
-
function T(M,
|
|
2242
|
-
return g(M) ? v(M) ? !0 : !(
|
|
2241
|
+
function T(M, Q) {
|
|
2242
|
+
return g(M) ? v(M) ? !0 : !(Q?.readable !== !1 && P(M) || Q?.writable !== !1 && N(M)) : null;
|
|
2243
2243
|
}
|
|
2244
2244
|
function q(M) {
|
|
2245
|
-
var
|
|
2246
|
-
return g(M) ? M.writableErrored ? M.writableErrored : (
|
|
2245
|
+
var Q, be;
|
|
2246
|
+
return g(M) ? M.writableErrored ? M.writableErrored : (Q = (be = M._writableState) === null || be === void 0 ? void 0 : be.errored) !== null && Q !== void 0 ? Q : null : null;
|
|
2247
2247
|
}
|
|
2248
2248
|
function D(M) {
|
|
2249
|
-
var
|
|
2250
|
-
return g(M) ? M.readableErrored ? M.readableErrored : (
|
|
2249
|
+
var Q, be;
|
|
2250
|
+
return g(M) ? M.readableErrored ? M.readableErrored : (Q = (be = M._readableState) === null || be === void 0 ? void 0 : be.errored) !== null && Q !== void 0 ? Q : null : null;
|
|
2251
2251
|
}
|
|
2252
2252
|
function U(M) {
|
|
2253
2253
|
if (!g(M)) return null;
|
|
2254
2254
|
if (typeof M.closed == "boolean") return M.closed;
|
|
2255
|
-
let
|
|
2256
|
-
return typeof
|
|
2255
|
+
let Q = M._writableState, be = M._readableState;
|
|
2256
|
+
return typeof Q?.closed == "boolean" || typeof be?.closed == "boolean" ? Q?.closed || be?.closed : typeof M._closed == "boolean" && ae(M) ? M._closed : null;
|
|
2257
2257
|
}
|
|
2258
2258
|
function ae(M) {
|
|
2259
2259
|
return typeof M._closed == "boolean" && typeof M._defaultKeepAlive == "boolean" && typeof M._removedConnection == "boolean" && typeof M._removedContLen == "boolean";
|
|
@@ -2262,21 +2262,21 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2262
2262
|
return typeof M._sent100 == "boolean" && ae(M);
|
|
2263
2263
|
}
|
|
2264
2264
|
function V(M) {
|
|
2265
|
-
var
|
|
2266
|
-
return typeof M._consuming == "boolean" && typeof M._dumped == "boolean" && ((
|
|
2265
|
+
var Q;
|
|
2266
|
+
return typeof M._consuming == "boolean" && typeof M._dumped == "boolean" && ((Q = M.req) === null || Q === void 0 ? void 0 : Q.upgradeOrConnect) === void 0;
|
|
2267
2267
|
}
|
|
2268
2268
|
function re(M) {
|
|
2269
2269
|
if (!g(M)) return null;
|
|
2270
|
-
let
|
|
2270
|
+
let Q = M._writableState, be = M._readableState, te = Q || be;
|
|
2271
2271
|
return !te && Y(M) || !!(te && te.autoDestroy && te.emitClose && te.closed === !1);
|
|
2272
2272
|
}
|
|
2273
2273
|
function F(M) {
|
|
2274
|
-
var
|
|
2275
|
-
return !!(M && ((
|
|
2274
|
+
var Q;
|
|
2275
|
+
return !!(M && ((Q = M[c]) !== null && Q !== void 0 ? Q : M.readableDidRead || M.readableAborted));
|
|
2276
2276
|
}
|
|
2277
2277
|
function Z(M) {
|
|
2278
|
-
var
|
|
2279
|
-
return !!(M && ((
|
|
2278
|
+
var Q, be, te, we, G, j, ne, W, K, J;
|
|
2279
|
+
return !!(M && ((Q = (be = (te = (we = (G = (j = M[i]) !== null && j !== void 0 ? j : M.readableErrored) !== null && G !== void 0 ? G : M.writableErrored) !== null && we !== void 0 ? we : (ne = M._readableState) === null || ne === void 0 ? void 0 : ne.errorEmitted) !== null && te !== void 0 ? te : (W = M._writableState) === null || W === void 0 ? void 0 : W.errorEmitted) !== null && be !== void 0 ? be : (K = M._readableState) === null || K === void 0 ? void 0 : K.errored) !== null && Q !== void 0 ? Q : !((J = M._writableState) === null || J === void 0) && J.errored));
|
|
2280
2280
|
}
|
|
2281
2281
|
e.exports = { isDestroyed: v, kIsDestroyed: n, isDisturbed: F, kIsDisturbed: c, isErrored: Z, kIsErrored: i, isReadable: P, kIsReadable: s, kIsClosedPromise: u, kControllerErrorFunction: h, kIsWritable: l, isClosed: U, isDuplexNodeStream: f, isFinished: T, isIterable: x, isReadableNodeStream: p, isReadableStream: y, isReadableEnded: I, isReadableFinished: O, isReadableErrored: D, isNodeStream: g, isWebStream: _, isWritable: N, isWritableNodeStream: b, isWritableStream: w, isWritableEnded: E, isWritableFinished: S, isWritableErrored: q, isServerRequest: V, isServerResponse: Y, willEmitClose: re, isTransformStream: m };
|
|
2282
2282
|
}), _t = pe((a, e) => {
|
|
@@ -2288,12 +2288,12 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2288
2288
|
var ae = () => {
|
|
2289
2289
|
};
|
|
2290
2290
|
function Y(F, Z, M) {
|
|
2291
|
-
var
|
|
2291
|
+
var Q, be;
|
|
2292
2292
|
if (arguments.length === 2 ? (M = Z, Z = s) : Z == null ? Z = s : h(Z, "options"), u(M, "callback"), c(Z.signal, "options.signal"), M = l(M), _(F) || I(F)) return V(F, Z, M);
|
|
2293
2293
|
if (!N(F)) throw new n("stream", ["ReadableStream", "WritableStream", "Stream"], F);
|
|
2294
|
-
let te = (
|
|
2295
|
-
F.writable ||
|
|
2296
|
-
}, W = T(F) && m(F) === te && S(F) === we, K = O(F, !1),
|
|
2294
|
+
let te = (Q = Z.readable) !== null && Q !== void 0 ? Q : m(F), we = (be = Z.writable) !== null && be !== void 0 ? be : S(F), G = F._writableState, j = F._readableState, ne = () => {
|
|
2295
|
+
F.writable || J();
|
|
2296
|
+
}, W = T(F) && m(F) === te && S(F) === we, K = O(F, !1), J = () => {
|
|
2297
2297
|
K = !0, F.destroyed && (W = !1), !(W && (!F.readable || te)) && (!te || ge) && M.call(F);
|
|
2298
2298
|
}, ge = x(F, !1), oe = () => {
|
|
2299
2299
|
ge = !0, F.destroyed && (W = !1), !(W && (!F.writable || we)) && (!we || K) && M.call(F);
|
|
@@ -2312,11 +2312,11 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2312
2312
|
if (H && typeof H != "boolean") return M.call(F, H);
|
|
2313
2313
|
M.call(F);
|
|
2314
2314
|
}, fe = () => {
|
|
2315
|
-
F.req.on("finish",
|
|
2315
|
+
F.req.on("finish", J);
|
|
2316
2316
|
};
|
|
2317
|
-
U(F) ? (F.on("complete",
|
|
2317
|
+
U(F) ? (F.on("complete", J), W || F.on("abort", ee), F.req ? fe() : F.on("request", fe)) : we && !G && (F.on("end", ne), F.on("close", ne)), !W && typeof F.aborted == "boolean" && F.on("aborted", ee), F.on("end", oe), F.on("finish", J), Z.error !== !1 && F.on("error", R), F.on("close", ee), $ ? t.nextTick(ee) : G != null && G.errorEmitted || j != null && j.errorEmitted ? W || t.nextTick(de) : (!te && (!W || w(F)) && (K || E(F) === !1) || !we && (!W || E(F)) && (ge || w(F) === !1) || j && F.req && F.aborted) && t.nextTick(de);
|
|
2318
2318
|
let ye = () => {
|
|
2319
|
-
M = ae, F.removeListener("aborted", ee), F.removeListener("complete",
|
|
2319
|
+
M = ae, F.removeListener("aborted", ee), F.removeListener("complete", J), F.removeListener("abort", ee), F.removeListener("request", fe), F.req && F.req.removeListener("finish", J), F.removeListener("end", ne), F.removeListener("close", ne), F.removeListener("finish", J), F.removeListener("end", oe), F.removeListener("error", R), F.removeListener("close", ee);
|
|
2320
2320
|
};
|
|
2321
2321
|
if (Z.signal && !$) {
|
|
2322
2322
|
let H = () => {
|
|
@@ -2335,9 +2335,9 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2335
2335
|
return ye;
|
|
2336
2336
|
}
|
|
2337
2337
|
function V(F, Z, M) {
|
|
2338
|
-
let
|
|
2338
|
+
let Q = !1, be = ae;
|
|
2339
2339
|
if (Z.signal) if (be = () => {
|
|
2340
|
-
|
|
2340
|
+
Q = !0, M.call(F, new r(void 0, { cause: Z.signal.reason }));
|
|
2341
2341
|
}, Z.signal.aborted) t.nextTick(be);
|
|
2342
2342
|
else {
|
|
2343
2343
|
D = D || ze().addAbortListener;
|
|
@@ -2347,16 +2347,16 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2347
2347
|
});
|
|
2348
2348
|
}
|
|
2349
2349
|
let te = (...we) => {
|
|
2350
|
-
|
|
2350
|
+
Q || t.nextTick(() => M.apply(F, we));
|
|
2351
2351
|
};
|
|
2352
2352
|
return f(F[q].promise, te, te), ae;
|
|
2353
2353
|
}
|
|
2354
2354
|
function re(F, Z) {
|
|
2355
2355
|
var M;
|
|
2356
|
-
let
|
|
2357
|
-
return Z === null && (Z = s), (M = Z) !== null && M !== void 0 && M.cleanup && (p(Z.cleanup, "cleanup"),
|
|
2356
|
+
let Q = !1;
|
|
2357
|
+
return Z === null && (Z = s), (M = Z) !== null && M !== void 0 && M.cleanup && (p(Z.cleanup, "cleanup"), Q = Z.cleanup), new b((be, te) => {
|
|
2358
2358
|
let we = Y(F, Z, (G) => {
|
|
2359
|
-
|
|
2359
|
+
Q && we(), G ? te(G) : be();
|
|
2360
2360
|
});
|
|
2361
2361
|
});
|
|
2362
2362
|
}
|
|
@@ -2507,7 +2507,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2507
2507
|
}
|
|
2508
2508
|
return b;
|
|
2509
2509
|
};
|
|
2510
|
-
}),
|
|
2510
|
+
}), oc = pe((a, e) => {
|
|
2511
2511
|
le(), ue(), ce();
|
|
2512
2512
|
var { StringPrototypeSlice: t, SymbolIterator: r, TypedArrayPrototypeSet: o, Uint8Array: n } = je(), { Buffer: i } = (Be(), Pe(Ue)), { inspect: s } = ze();
|
|
2513
2513
|
e.exports = class {
|
|
@@ -2610,7 +2610,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2610
2610
|
return c(p.objectMode);
|
|
2611
2611
|
}
|
|
2612
2612
|
e.exports = { getHighWaterMark: h, getDefaultHighWaterMark: c, setDefaultHighWaterMark: u };
|
|
2613
|
-
}),
|
|
2613
|
+
}), sc = pe((a, e) => {
|
|
2614
2614
|
le(), ue(), ce();
|
|
2615
2615
|
var t = (Be(), Pe(Ue)), r = t.Buffer;
|
|
2616
2616
|
function o(i, s) {
|
|
@@ -2634,9 +2634,9 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2634
2634
|
if (typeof i != "number") throw new TypeError("Argument must be a number");
|
|
2635
2635
|
return t.SlowBuffer(i);
|
|
2636
2636
|
};
|
|
2637
|
-
}),
|
|
2637
|
+
}), ac = pe((a) => {
|
|
2638
2638
|
le(), ue(), ce();
|
|
2639
|
-
var e =
|
|
2639
|
+
var e = sc().Buffer, t = e.isEncoding || function(m) {
|
|
2640
2640
|
switch (m = "" + m, m && m.toLowerCase()) {
|
|
2641
2641
|
case "hex":
|
|
2642
2642
|
case "utf8":
|
|
@@ -2835,10 +2835,10 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2835
2835
|
e.exports = se, se.ReadableState = ve;
|
|
2836
2836
|
var { EventEmitter: g } = (Ct(), Pe(wt)), { Stream: y, prependListener: w } = io(), { Buffer: m } = (Be(), Pe(Ue)), { addAbortSignal: _ } = Dr(), x = _t(), v = ze().debuglog("stream", (C) => {
|
|
2837
2837
|
v = C;
|
|
2838
|
-
}), E =
|
|
2838
|
+
}), E = oc(), S = $t(), { getHighWaterMark: I, getDefaultHighWaterMark: O } = Fr(), { aggregateTwoErrors: P, codes: { ERR_INVALID_ARG_TYPE: N, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: q, ERR_STREAM_PUSH_AFTER_EOF: D, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: U }, AbortError: ae } = We(), { validateObject: Y } = tr(), V = f("kPaused"), { StringDecoder: re } = ac(), F = ua();
|
|
2839
2839
|
c(se.prototype, y.prototype), c(se, y);
|
|
2840
2840
|
var Z = () => {
|
|
2841
|
-
}, { errorOrDestroy: M } = S,
|
|
2841
|
+
}, { errorOrDestroy: M } = S, Q = 1, be = 2, te = 4, we = 8, G = 16, j = 32, ne = 64, W = 128, K = 256, J = 512, ge = 1024, oe = 2048, R = 4096, $ = 8192, ee = 16384, de = 32768, fe = 65536, ye = 1 << 17, H = 1 << 18;
|
|
2842
2842
|
function me(C) {
|
|
2843
2843
|
return { enumerable: !1, get() {
|
|
2844
2844
|
return (this.state & C) !== 0;
|
|
@@ -2846,9 +2846,9 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2846
2846
|
L ? this.state |= C : this.state &= ~C;
|
|
2847
2847
|
} };
|
|
2848
2848
|
}
|
|
2849
|
-
s(ve.prototype, { objectMode: me(
|
|
2849
|
+
s(ve.prototype, { objectMode: me(Q), ended: me(be), endEmitted: me(te), reading: me(we), constructed: me(G), sync: me(j), needReadable: me(ne), emittedReadable: me(W), readableListening: me(K), resumeScheduled: me(J), errorEmitted: me(ge), emitClose: me(oe), autoDestroy: me(R), destroyed: me($), closed: me(ee), closeEmitted: me(de), multiAwaitDrain: me(fe), readingMore: me(ye), dataEmitted: me(H) });
|
|
2850
2850
|
function ve(C, L, _e) {
|
|
2851
|
-
typeof _e != "boolean" && (_e = L instanceof ut()), this.state = oe | R | G | j, C && C.objectMode && (this.state |=
|
|
2851
|
+
typeof _e != "boolean" && (_e = L instanceof ut()), this.state = oe | R | G | j, C && C.objectMode && (this.state |= Q), _e && C && C.readableObjectMode && (this.state |= Q), this.highWaterMark = C ? I(this, C, "readableHighWaterMark", _e) : O(!1), this.buffer = new E(), this.length = 0, this.pipes = [], this.flowing = null, this[V] = 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);
|
|
2852
2852
|
}
|
|
2853
2853
|
function se(C) {
|
|
2854
2854
|
if (!(this instanceof se)) return new se(C);
|
|
@@ -2872,9 +2872,9 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2872
2872
|
function Te(C, L, _e, xe) {
|
|
2873
2873
|
v("readableAddChunk", L);
|
|
2874
2874
|
let Se = C._readableState, Ne;
|
|
2875
|
-
if ((Se.state &
|
|
2875
|
+
if ((Se.state & Q) === 0 && (typeof L == "string" ? (_e = _e || Se.defaultEncoding, Se.encoding !== _e && (xe && Se.encoding ? L = m.from(L, _e).toString(Se.encoding) : (L = m.from(L, _e), _e = ""))) : L instanceof m ? _e = "" : y._isUint8Array(L) ? (L = y._uint8ArrayToBuffer(L), _e = "") : L != null && (Ne = new N("chunk", ["string", "Buffer", "Uint8Array"], L))), Ne) M(C, Ne);
|
|
2876
2876
|
else if (L === null) Se.state &= ~we, X(C, Se);
|
|
2877
|
-
else if ((Se.state &
|
|
2877
|
+
else if ((Se.state & Q) !== 0 || L && L.length > 0) if (xe) if ((Se.state & te) !== 0) M(C, new U());
|
|
2878
2878
|
else {
|
|
2879
2879
|
if (Se.destroyed || Se.errored) return !1;
|
|
2880
2880
|
d(C, Se, L, !0);
|
|
@@ -2906,7 +2906,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2906
2906
|
return C--, C |= C >>> 1, C |= C >>> 2, C |= C >>> 4, C |= C >>> 8, C |= C >>> 16, C++, C;
|
|
2907
2907
|
}
|
|
2908
2908
|
function B(C, L) {
|
|
2909
|
-
return C <= 0 || L.length === 0 && L.ended ? 0 : (L.state &
|
|
2909
|
+
return C <= 0 || L.length === 0 && L.ended ? 0 : (L.state & Q) !== 0 ? 1 : n(C) ? L.flowing && L.length ? L.buffer.first().length : L.length : C <= L.length ? C : L.ended ? L.length : 0;
|
|
2910
2910
|
}
|
|
2911
2911
|
se.prototype.read = function(C) {
|
|
2912
2912
|
v("read", C), C === void 0 ? C = NaN : o(C) || (C = i(C, 10));
|
|
@@ -2967,12 +2967,12 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
2967
2967
|
function He() {
|
|
2968
2968
|
v("onend"), C.end();
|
|
2969
2969
|
}
|
|
2970
|
-
let
|
|
2970
|
+
let Je, zt = !1;
|
|
2971
2971
|
function Vt() {
|
|
2972
|
-
v("cleanup"), C.removeListener("close", tt), C.removeListener("finish", mt),
|
|
2972
|
+
v("cleanup"), C.removeListener("close", tt), C.removeListener("finish", mt), Je && C.removeListener("drain", Je), C.removeListener("error", kt), C.removeListener("unpipe", Ne), _e.removeListener("end", He), _e.removeListener("end", xt), _e.removeListener("data", ir), zt = !0, Je && xe.awaitDrainWriters && (!C._writableState || C._writableState.needDrain) && Je();
|
|
2973
2973
|
}
|
|
2974
2974
|
function Gt() {
|
|
2975
|
-
zt || (xe.pipes.length === 1 && xe.pipes[0] === C ? (v("false write response, pause", 0), xe.awaitDrainWriters = C, xe.multiAwaitDrain = !1) : xe.pipes.length > 1 && xe.pipes.includes(C) && (v("false write response, pause", xe.awaitDrainWriters.size), xe.awaitDrainWriters.add(C)), _e.pause()),
|
|
2975
|
+
zt || (xe.pipes.length === 1 && xe.pipes[0] === C ? (v("false write response, pause", 0), xe.awaitDrainWriters = C, xe.multiAwaitDrain = !1) : xe.pipes.length > 1 && xe.pipes.includes(C) && (v("false write response, pause", xe.awaitDrainWriters.size), xe.awaitDrainWriters.add(C)), _e.pause()), Je || (Je = Ee(_e, C), C.on("drain", Je));
|
|
2976
2976
|
}
|
|
2977
2977
|
_e.on("data", ir);
|
|
2978
2978
|
function ir(rt) {
|
|
@@ -3039,9 +3039,9 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3039
3039
|
return C.flowing || (v("resume"), C.flowing = !C.readableListening, Ce(this, C)), C[V] = !1, this;
|
|
3040
3040
|
};
|
|
3041
3041
|
function Ce(C, L) {
|
|
3042
|
-
L.resumeScheduled || (L.resumeScheduled = !0, t.nextTick(
|
|
3042
|
+
L.resumeScheduled || (L.resumeScheduled = !0, t.nextTick(Qe, C, L));
|
|
3043
3043
|
}
|
|
3044
|
-
function
|
|
3044
|
+
function Qe(C, L) {
|
|
3045
3045
|
v("resume", L.reading), L.reading || C.read(0), L.resumeScheduled = !1, C.emit("resume"), Xe(C), L.flowing && !L.reading && C.read(0);
|
|
3046
3046
|
}
|
|
3047
3047
|
se.prototype.pause = function() {
|
|
@@ -3265,9 +3265,9 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3265
3265
|
T(R, new v());
|
|
3266
3266
|
return;
|
|
3267
3267
|
}
|
|
3268
|
-
ee.writing = !1, ee.writecb = null, ee.length -= ee.writelen, ee.writelen = 0, $ ? ($.stack, ee.errored || (ee.errored = $), R._readableState && !R._readableState.errored && (R._readableState.errored = $), de ? t.nextTick(Z, R, ee, $, fe) : Z(R, ee, $, fe)) : (ee.buffered.length > ee.bufferedIndex && we(R, ee), de ? ee.afterWriteTickInfo !== null && ee.afterWriteTickInfo.cb === fe ? ee.afterWriteTickInfo.count++ : (ee.afterWriteTickInfo = { count: 1, cb: fe, stream: R, state: ee }, t.nextTick(
|
|
3268
|
+
ee.writing = !1, ee.writecb = null, ee.length -= ee.writelen, ee.writelen = 0, $ ? ($.stack, ee.errored || (ee.errored = $), R._readableState && !R._readableState.errored && (R._readableState.errored = $), de ? t.nextTick(Z, R, ee, $, fe) : Z(R, ee, $, fe)) : (ee.buffered.length > ee.bufferedIndex && we(R, ee), de ? ee.afterWriteTickInfo !== null && ee.afterWriteTickInfo.cb === fe ? ee.afterWriteTickInfo.count++ : (ee.afterWriteTickInfo = { count: 1, cb: fe, stream: R, state: ee }, t.nextTick(Q, ee.afterWriteTickInfo)) : be(R, ee, 1, fe));
|
|
3269
3269
|
}
|
|
3270
|
-
function
|
|
3270
|
+
function Q({ stream: R, state: $, count: ee, cb: de }) {
|
|
3271
3271
|
return $.afterWriteTickInfo = null, be(R, $, ee, de);
|
|
3272
3272
|
}
|
|
3273
3273
|
function be(R, $, ee, de) {
|
|
@@ -3397,10 +3397,10 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3397
3397
|
} }, writableAborted: { __proto__: null, enumerable: !1, get: function() {
|
|
3398
3398
|
return !!(this._writableState.writable !== !1 && (this._writableState.destroyed || this._writableState.errored) && !this._writableState.finished);
|
|
3399
3399
|
} } });
|
|
3400
|
-
var
|
|
3400
|
+
var J = g.destroy;
|
|
3401
3401
|
Y.prototype.destroy = function(R, $) {
|
|
3402
3402
|
let ee = this._writableState;
|
|
3403
|
-
return !ee.destroyed && (ee.bufferedIndex < ee.buffered.length || ee[D].length) && t.nextTick(te, ee),
|
|
3403
|
+
return !ee.destroyed && (ee.bufferedIndex < ee.buffered.length || ee[D].length) && t.nextTick(te, ee), J.call(this, R, $), this;
|
|
3404
3404
|
}, Y.prototype._undestroy = g.undestroy, Y.prototype._destroy = function(R, $) {
|
|
3405
3405
|
$(R);
|
|
3406
3406
|
}, Y.prototype[p.captureRejectionSymbol] = function(R) {
|
|
@@ -3415,7 +3415,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3415
3415
|
}, Y.toWeb = function(R) {
|
|
3416
3416
|
return oe().newWritableStreamFromStreamWritable(R);
|
|
3417
3417
|
};
|
|
3418
|
-
}),
|
|
3418
|
+
}), lc = pe((a, e) => {
|
|
3419
3419
|
le(), ue(), ce();
|
|
3420
3420
|
var t = Ot(), r = (Be(), Pe(Ue)), { isReadable: o, isWritable: n, isIterable: i, isNodeStream: s, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: h, isWritableStream: p } = dt(), b = _t(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: g, ERR_INVALID_RETURN_VALUE: y } } = We(), { destroyer: w } = $t(), m = ut(), _ = $r(), x = oo(), { createDeferredPromise: v } = ze(), E = ua(), S = globalThis.Blob || r.Blob, I = typeof S < "u" ? function(D) {
|
|
3421
3421
|
return D instanceof S;
|
|
@@ -3438,12 +3438,12 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3438
3438
|
if (i(V)) return E(N, V, { objectMode: !0, write: re, final: F, destroy: Z });
|
|
3439
3439
|
let M = V?.then;
|
|
3440
3440
|
if (typeof M == "function") {
|
|
3441
|
-
let
|
|
3441
|
+
let Q, be = P(M, V, (te) => {
|
|
3442
3442
|
if (te != null) throw new y("nully", "body", te);
|
|
3443
3443
|
}, (te) => {
|
|
3444
|
-
w(
|
|
3444
|
+
w(Q, te);
|
|
3445
3445
|
});
|
|
3446
|
-
return
|
|
3446
|
+
return Q = new N({ objectMode: !0, readable: !1, write: re, final(te) {
|
|
3447
3447
|
F(async () => {
|
|
3448
3448
|
try {
|
|
3449
3449
|
await be, t.nextTick(te, null);
|
|
@@ -3496,16 +3496,16 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3496
3496
|
} };
|
|
3497
3497
|
}
|
|
3498
3498
|
function q(D) {
|
|
3499
|
-
let U = D.readable && typeof D.readable.read != "function" ? _.wrap(D.readable) : D.readable, ae = D.writable, Y = !!o(U), V = !!n(ae), re, F, Z, M,
|
|
3499
|
+
let U = D.readable && typeof D.readable.read != "function" ? _.wrap(D.readable) : D.readable, ae = D.writable, Y = !!o(U), V = !!n(ae), re, F, Z, M, Q;
|
|
3500
3500
|
function be(te) {
|
|
3501
3501
|
let we = M;
|
|
3502
|
-
M = null, we ? we(te) : te &&
|
|
3502
|
+
M = null, we ? we(te) : te && Q.destroy(te);
|
|
3503
3503
|
}
|
|
3504
|
-
return
|
|
3504
|
+
return Q = new N({ readableObjectMode: !!(U != null && U.readableObjectMode), writableObjectMode: !!(ae != null && ae.writableObjectMode), readable: Y, writable: V }), V && (b(ae, (te) => {
|
|
3505
3505
|
V = !1, te && w(U, te), be(te);
|
|
3506
|
-
}),
|
|
3506
|
+
}), Q._write = function(te, we, G) {
|
|
3507
3507
|
ae.write(te, we) ? G() : re = G;
|
|
3508
|
-
},
|
|
3508
|
+
}, Q._final = function(te) {
|
|
3509
3509
|
ae.end(), F = te;
|
|
3510
3510
|
}, ae.on("drain", function() {
|
|
3511
3511
|
if (re) {
|
|
@@ -3525,19 +3525,19 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3525
3525
|
Z = null, te();
|
|
3526
3526
|
}
|
|
3527
3527
|
}), U.on("end", function() {
|
|
3528
|
-
|
|
3529
|
-
}),
|
|
3528
|
+
Q.push(null);
|
|
3529
|
+
}), Q._read = function() {
|
|
3530
3530
|
for (; ; ) {
|
|
3531
3531
|
let te = U.read();
|
|
3532
3532
|
if (te === null) {
|
|
3533
|
-
Z =
|
|
3533
|
+
Z = Q._read;
|
|
3534
3534
|
return;
|
|
3535
3535
|
}
|
|
3536
|
-
if (!
|
|
3536
|
+
if (!Q.push(te)) return;
|
|
3537
3537
|
}
|
|
3538
|
-
}),
|
|
3538
|
+
}), Q._destroy = function(te, we) {
|
|
3539
3539
|
!te && M !== null && (te = new f()), Z = null, re = null, F = null, M === null ? we(te) : (M = we, w(ae, te), w(U, te));
|
|
3540
|
-
},
|
|
3540
|
+
}, Q;
|
|
3541
3541
|
}
|
|
3542
3542
|
}), ut = pe((a, e) => {
|
|
3543
3543
|
le(), ue(), ce();
|
|
@@ -3572,7 +3572,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3572
3572
|
};
|
|
3573
3573
|
var h;
|
|
3574
3574
|
l.from = function(p) {
|
|
3575
|
-
return h || (h =
|
|
3575
|
+
return h || (h = lc()), h(p, "body");
|
|
3576
3576
|
};
|
|
3577
3577
|
}), ha = pe((a, e) => {
|
|
3578
3578
|
le(), ue(), ce();
|
|
@@ -3660,7 +3660,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3660
3660
|
let R = W;
|
|
3661
3661
|
W = null, R();
|
|
3662
3662
|
}
|
|
3663
|
-
},
|
|
3663
|
+
}, J = () => new o((oe, R) => {
|
|
3664
3664
|
ne ? R(ne) : W = () => {
|
|
3665
3665
|
ne ? R(ne) : oe();
|
|
3666
3666
|
};
|
|
@@ -3668,9 +3668,9 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3668
3668
|
we.on("drain", K);
|
|
3669
3669
|
let ge = s(we, { readable: !1 }, K);
|
|
3670
3670
|
try {
|
|
3671
|
-
we.writableNeedDrain && await
|
|
3672
|
-
for await (let oe of te) we.write(oe) || await
|
|
3673
|
-
j && (we.end(), await
|
|
3671
|
+
we.writableNeedDrain && await J();
|
|
3672
|
+
for await (let oe of te) we.write(oe) || await J();
|
|
3673
|
+
j && (we.end(), await J()), G();
|
|
3674
3674
|
} catch (oe) {
|
|
3675
3675
|
G(ne !== oe ? h(ne, oe) : oe);
|
|
3676
3676
|
} finally {
|
|
@@ -3693,18 +3693,18 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3693
3693
|
}
|
|
3694
3694
|
}
|
|
3695
3695
|
function M(...te) {
|
|
3696
|
-
return
|
|
3696
|
+
return Q(te, l(Y(te)));
|
|
3697
3697
|
}
|
|
3698
|
-
function
|
|
3698
|
+
function Q(te, we, G) {
|
|
3699
3699
|
if (te.length === 1 && r(te[0]) && (te = te[0]), te.length < 2) throw new f("streams");
|
|
3700
3700
|
let j = new T(), ne = j.signal, W = G?.signal, K = [];
|
|
3701
3701
|
_(W, "options.signal");
|
|
3702
|
-
function
|
|
3702
|
+
function J() {
|
|
3703
3703
|
fe(new w());
|
|
3704
3704
|
}
|
|
3705
3705
|
U = U || ze().addAbortListener;
|
|
3706
3706
|
let ge;
|
|
3707
|
-
W && (ge = U(W,
|
|
3707
|
+
W && (ge = U(W, J));
|
|
3708
3708
|
let oe, R, $ = [], ee = 0;
|
|
3709
3709
|
function de(ve) {
|
|
3710
3710
|
fe(ve, --ee === 0);
|
|
@@ -3778,7 +3778,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3778
3778
|
ye = se;
|
|
3779
3779
|
} else ye = u.from(se);
|
|
3780
3780
|
}
|
|
3781
|
-
return (ne != null && ne.aborted || W != null && W.aborted) && t.nextTick(
|
|
3781
|
+
return (ne != null && ne.aborted || W != null && W.aborted) && t.nextTick(J), ye;
|
|
3782
3782
|
}
|
|
3783
3783
|
function be(te, we, G, { end: j }) {
|
|
3784
3784
|
let ne = !1;
|
|
@@ -3795,7 +3795,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3795
3795
|
W && W.code === "ERR_STREAM_PREMATURE_CLOSE" && K && K.ended && !K.errored && !K.errorEmitted ? te.once("end", G).once("error", G) : G(W);
|
|
3796
3796
|
}), s(we, { readable: !1, writable: !0 }, G);
|
|
3797
3797
|
}
|
|
3798
|
-
e.exports = { pipelineImpl:
|
|
3798
|
+
e.exports = { pipelineImpl: Q, pipeline: M };
|
|
3799
3799
|
}), fa = pe((a, e) => {
|
|
3800
3800
|
le(), ue(), ce();
|
|
3801
3801
|
var { pipeline: t } = so(), r = ut(), { destroyer: o } = $t(), { isNodeStream: n, isReadable: i, isWritable: s, isWebStream: l, isTransformStream: c, isWritableStream: u, isReadableStream: h } = dt(), { AbortError: p, codes: { ERR_INVALID_ARG_VALUE: b, ERR_MISSING_ARGS: f } } = We(), g = _t();
|
|
@@ -3892,21 +3892,21 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3892
3892
|
!T && v !== null && (T = new p()), x = null, m = null, _ = null, v === null ? q(T) : (v = q, n(O) && o(O, T));
|
|
3893
3893
|
}, E;
|
|
3894
3894
|
};
|
|
3895
|
-
}),
|
|
3895
|
+
}), cc = pe((a, e) => {
|
|
3896
3896
|
le(), ue(), ce();
|
|
3897
3897
|
var t = globalThis.AbortController || er().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: o, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: i }, AbortError: s } = We(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = tr(), h = je().Symbol("kWeak"), p = je().Symbol("kResistStopPropagation"), { finished: b } = _t(), f = fa(), { addAbortSignalNoValidate: g } = Dr(), { isWritable: y, isNodeStream: w } = dt(), { deprecate: m } = ze(), { ArrayPrototypePush: _, Boolean: x, MathFloor: v, Number: E, NumberIsNaN: S, Promise: I, PromiseReject: O, PromiseResolve: P, PromisePrototypeThen: N, Symbol: T } = je(), q = T("kEmpty"), D = T("kEof");
|
|
3898
3898
|
function U(W, K) {
|
|
3899
3899
|
if (K != null && u(K, "options"), K?.signal != null && l(K.signal, "options.signal"), w(W) && !y(W)) throw new r("stream", W, "must be writable");
|
|
3900
|
-
let
|
|
3901
|
-
return K != null && K.signal && g(K.signal,
|
|
3900
|
+
let J = f(this, W);
|
|
3901
|
+
return K != null && K.signal && g(K.signal, J), J;
|
|
3902
3902
|
}
|
|
3903
3903
|
function ae(W, K) {
|
|
3904
3904
|
if (typeof W != "function") throw new o("fn", ["Function", "AsyncFunction"], W);
|
|
3905
3905
|
K != null && u(K, "options"), K?.signal != null && l(K.signal, "options.signal");
|
|
3906
|
-
let
|
|
3907
|
-
K?.concurrency != null && (
|
|
3908
|
-
let ge =
|
|
3909
|
-
return K?.highWaterMark != null && (ge = v(K.highWaterMark)), c(
|
|
3906
|
+
let J = 1;
|
|
3907
|
+
K?.concurrency != null && (J = v(K.concurrency));
|
|
3908
|
+
let ge = J - 1;
|
|
3909
|
+
return K?.highWaterMark != null && (ge = v(K.highWaterMark)), c(J, "options.concurrency", 1), c(ge, "options.highWaterMark", 0), ge += J, (async function* () {
|
|
3910
3910
|
let oe = ze().AbortSignalAny([K?.signal].filter(x)), R = this, $ = [], ee = { signal: oe }, de, fe, ye = !1, H = 0;
|
|
3911
3911
|
function me() {
|
|
3912
3912
|
ye = !0, ve();
|
|
@@ -3915,7 +3915,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3915
3915
|
H -= 1, se();
|
|
3916
3916
|
}
|
|
3917
3917
|
function se() {
|
|
3918
|
-
fe && !ye && H <
|
|
3918
|
+
fe && !ye && H < J && $.length < ge && (fe(), fe = null);
|
|
3919
3919
|
}
|
|
3920
3920
|
async function Te() {
|
|
3921
3921
|
try {
|
|
@@ -3928,7 +3928,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3928
3928
|
} catch (k) {
|
|
3929
3929
|
d = O(k);
|
|
3930
3930
|
}
|
|
3931
|
-
H += 1, N(d, ve, me), $.push(d), de && (de(), de = null), !ye && ($.length >= ge || H >=
|
|
3931
|
+
H += 1, N(d, ve, me), $.push(d), de && (de(), de = null), !ye && ($.length >= ge || H >= J) && await new I((k) => {
|
|
3932
3932
|
fe = k;
|
|
3933
3933
|
});
|
|
3934
3934
|
}
|
|
@@ -3962,65 +3962,65 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
3962
3962
|
return W != null && u(W, "options"), W?.signal != null && l(W.signal, "options.signal"), (async function* () {
|
|
3963
3963
|
let K = 0;
|
|
3964
3964
|
for await (let ge of this) {
|
|
3965
|
-
var
|
|
3966
|
-
if (W != null && (
|
|
3965
|
+
var J;
|
|
3966
|
+
if (W != null && (J = W.signal) !== null && J !== void 0 && J.aborted) throw new s({ cause: W.signal.reason });
|
|
3967
3967
|
yield [K++, ge];
|
|
3968
3968
|
}
|
|
3969
3969
|
}).call(this);
|
|
3970
3970
|
}
|
|
3971
3971
|
async function V(W, K = void 0) {
|
|
3972
|
-
for await (let
|
|
3972
|
+
for await (let J of M.call(this, W, K)) return !0;
|
|
3973
3973
|
return !1;
|
|
3974
3974
|
}
|
|
3975
3975
|
async function re(W, K = void 0) {
|
|
3976
3976
|
if (typeof W != "function") throw new o("fn", ["Function", "AsyncFunction"], W);
|
|
3977
|
-
return !await V.call(this, async (...
|
|
3977
|
+
return !await V.call(this, async (...J) => !await W(...J), K);
|
|
3978
3978
|
}
|
|
3979
3979
|
async function F(W, K) {
|
|
3980
|
-
for await (let
|
|
3980
|
+
for await (let J of M.call(this, W, K)) return J;
|
|
3981
3981
|
}
|
|
3982
3982
|
async function Z(W, K) {
|
|
3983
3983
|
if (typeof W != "function") throw new o("fn", ["Function", "AsyncFunction"], W);
|
|
3984
|
-
async function
|
|
3984
|
+
async function J(ge, oe) {
|
|
3985
3985
|
return await W(ge, oe), q;
|
|
3986
3986
|
}
|
|
3987
|
-
for await (let ge of ae.call(this,
|
|
3987
|
+
for await (let ge of ae.call(this, J, K)) ;
|
|
3988
3988
|
}
|
|
3989
3989
|
function M(W, K) {
|
|
3990
3990
|
if (typeof W != "function") throw new o("fn", ["Function", "AsyncFunction"], W);
|
|
3991
|
-
async function
|
|
3991
|
+
async function J(ge, oe) {
|
|
3992
3992
|
return await W(ge, oe) ? ge : q;
|
|
3993
3993
|
}
|
|
3994
|
-
return ae.call(this,
|
|
3994
|
+
return ae.call(this, J, K);
|
|
3995
3995
|
}
|
|
3996
|
-
var
|
|
3996
|
+
var Q = class extends n {
|
|
3997
3997
|
constructor() {
|
|
3998
3998
|
super("reduce"), this.message = "Reduce of an empty stream requires an initial value";
|
|
3999
3999
|
}
|
|
4000
4000
|
};
|
|
4001
|
-
async function be(W, K,
|
|
4001
|
+
async function be(W, K, J) {
|
|
4002
4002
|
var ge;
|
|
4003
4003
|
if (typeof W != "function") throw new o("reducer", ["Function", "AsyncFunction"], W);
|
|
4004
|
-
|
|
4004
|
+
J != null && u(J, "options"), J?.signal != null && l(J.signal, "options.signal");
|
|
4005
4005
|
let oe = arguments.length > 1;
|
|
4006
|
-
if (
|
|
4007
|
-
let fe = new s(void 0, { cause:
|
|
4006
|
+
if (J != null && (ge = J.signal) !== null && ge !== void 0 && ge.aborted) {
|
|
4007
|
+
let fe = new s(void 0, { cause: J.signal.reason });
|
|
4008
4008
|
throw this.once("error", () => {
|
|
4009
4009
|
}), await b(this.destroy(fe)), fe;
|
|
4010
4010
|
}
|
|
4011
4011
|
let R = new t(), $ = R.signal;
|
|
4012
|
-
if (
|
|
4012
|
+
if (J != null && J.signal) {
|
|
4013
4013
|
let fe = { once: !0, [h]: this, [p]: !0 };
|
|
4014
|
-
|
|
4014
|
+
J.signal.addEventListener("abort", () => R.abort(), fe);
|
|
4015
4015
|
}
|
|
4016
4016
|
let ee = !1;
|
|
4017
4017
|
try {
|
|
4018
4018
|
for await (let fe of this) {
|
|
4019
4019
|
var de;
|
|
4020
|
-
if (ee = !0,
|
|
4020
|
+
if (ee = !0, J != null && (de = J.signal) !== null && de !== void 0 && de.aborted) throw new s();
|
|
4021
4021
|
oe ? K = await W(K, fe, { signal: $ }) : (K = fe, oe = !0);
|
|
4022
4022
|
}
|
|
4023
|
-
if (!ee && !oe) throw new
|
|
4023
|
+
if (!ee && !oe) throw new Q();
|
|
4024
4024
|
} finally {
|
|
4025
4025
|
R.abort();
|
|
4026
4026
|
}
|
|
@@ -4030,16 +4030,16 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4030
4030
|
W != null && u(W, "options"), W?.signal != null && l(W.signal, "options.signal");
|
|
4031
4031
|
let K = [];
|
|
4032
4032
|
for await (let ge of this) {
|
|
4033
|
-
var
|
|
4034
|
-
if (W != null && (
|
|
4033
|
+
var J;
|
|
4034
|
+
if (W != null && (J = W.signal) !== null && J !== void 0 && J.aborted) throw new s(void 0, { cause: W.signal.reason });
|
|
4035
4035
|
_(K, ge);
|
|
4036
4036
|
}
|
|
4037
4037
|
return K;
|
|
4038
4038
|
}
|
|
4039
4039
|
function we(W, K) {
|
|
4040
|
-
let
|
|
4040
|
+
let J = ae.call(this, W, K);
|
|
4041
4041
|
return (async function* () {
|
|
4042
|
-
for await (let ge of
|
|
4042
|
+
for await (let ge of J) yield* ge;
|
|
4043
4043
|
}).call(this);
|
|
4044
4044
|
}
|
|
4045
4045
|
function G(W) {
|
|
@@ -4049,8 +4049,8 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4049
4049
|
}
|
|
4050
4050
|
function j(W, K = void 0) {
|
|
4051
4051
|
return K != null && u(K, "options"), K?.signal != null && l(K.signal, "options.signal"), W = G(W), (async function* () {
|
|
4052
|
-
var
|
|
4053
|
-
if (K != null && (
|
|
4052
|
+
var J;
|
|
4053
|
+
if (K != null && (J = K.signal) !== null && J !== void 0 && J.aborted) throw new s();
|
|
4054
4054
|
for await (let oe of this) {
|
|
4055
4055
|
var ge;
|
|
4056
4056
|
if (K != null && (ge = K.signal) !== null && ge !== void 0 && ge.aborted) throw new s();
|
|
@@ -4060,8 +4060,8 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4060
4060
|
}
|
|
4061
4061
|
function ne(W, K = void 0) {
|
|
4062
4062
|
return K != null && u(K, "options"), K?.signal != null && l(K.signal, "options.signal"), W = G(W), (async function* () {
|
|
4063
|
-
var
|
|
4064
|
-
if (K != null && (
|
|
4063
|
+
var J;
|
|
4064
|
+
if (K != null && (J = K.signal) !== null && J !== void 0 && J.aborted) throw new s();
|
|
4065
4065
|
for await (let oe of this) {
|
|
4066
4066
|
var ge;
|
|
4067
4067
|
if (K != null && (ge = K.signal) !== null && ge !== void 0 && ge.aborted) throw new s();
|
|
@@ -4089,7 +4089,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4089
4089
|
e.exports = { finished: l, pipeline: c };
|
|
4090
4090
|
}), ma = pe((a, e) => {
|
|
4091
4091
|
le(), ue(), ce();
|
|
4092
|
-
var { Buffer: t } = (Be(), Pe(Ue)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = je(), { promisify: { custom: i } } = ze(), { streamReturningOperators: s, promiseReturningOperators: l } =
|
|
4092
|
+
var { Buffer: t } = (Be(), Pe(Ue)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = je(), { promisify: { custom: i } } = ze(), { streamReturningOperators: s, promiseReturningOperators: l } = cc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = We(), u = fa(), { setDefaultHighWaterMark: h, getDefaultHighWaterMark: p } = Fr(), { pipeline: b } = so(), { destroyer: f } = $t(), g = _t(), y = pa(), w = dt(), m = e.exports = io().Stream;
|
|
4093
4093
|
m.isDestroyed = w.isDestroyed, m.isDisturbed = w.isDisturbed, m.isErrored = w.isErrored, m.isReadable = w.isReadable, m.isWritable = w.isWritable, m.Readable = $r();
|
|
4094
4094
|
for (let x of o(s)) {
|
|
4095
4095
|
let v = function(...S) {
|
|
@@ -4124,7 +4124,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4124
4124
|
e.exports = t.Readable, e.exports._uint8ArrayToBuffer = t._uint8ArrayToBuffer, e.exports._isUint8Array = t._isUint8Array, e.exports.isDisturbed = t.isDisturbed, e.exports.isErrored = t.isErrored, e.exports.isReadable = t.isReadable, e.exports.Readable = t.Readable, e.exports.Writable = t.Writable, e.exports.Duplex = t.Duplex, e.exports.Transform = t.Transform, e.exports.PassThrough = t.PassThrough, e.exports.addAbortSignal = t.addAbortSignal, e.exports.finished = t.finished, e.exports.destroy = t.destroy, e.exports.destroy = o, e.exports.pipeline = t.pipeline, e.exports.compose = t.compose, Object.defineProperty(t, "promises", { configurable: !0, enumerable: !0, get() {
|
|
4125
4125
|
return r;
|
|
4126
4126
|
} }), e.exports.Stream = t.Stream, e.exports.default = e.exports;
|
|
4127
|
-
}),
|
|
4127
|
+
}), uc = pe((a, e) => {
|
|
4128
4128
|
le(), ue(), ce(), typeof Object.create == "function" ? e.exports = function(t, r) {
|
|
4129
4129
|
r && (t.super_ = r, t.prototype = Object.create(r.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }));
|
|
4130
4130
|
} : e.exports = function(t, r) {
|
|
@@ -4135,7 +4135,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4135
4135
|
o.prototype = r.prototype, t.prototype = new o(), t.prototype.constructor = t;
|
|
4136
4136
|
}
|
|
4137
4137
|
};
|
|
4138
|
-
}),
|
|
4138
|
+
}), hc = pe((a, e) => {
|
|
4139
4139
|
le(), ue(), ce();
|
|
4140
4140
|
var { Buffer: t } = (Be(), Pe(Ue)), r = /* @__PURE__ */ Symbol.for("BufferList");
|
|
4141
4141
|
function o(n) {
|
|
@@ -4259,9 +4259,9 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4259
4259
|
}, o.isBufferList = function(n) {
|
|
4260
4260
|
return n != null && n[r];
|
|
4261
4261
|
}, e.exports = o;
|
|
4262
|
-
}),
|
|
4262
|
+
}), dc = pe((a, e) => {
|
|
4263
4263
|
le(), ue(), ce();
|
|
4264
|
-
var t = Pt().Duplex, r =
|
|
4264
|
+
var t = Pt().Duplex, r = uc(), o = hc();
|
|
4265
4265
|
function n(i) {
|
|
4266
4266
|
if (!(this instanceof n)) return new n(i);
|
|
4267
4267
|
if (typeof i == "function") {
|
|
@@ -4291,7 +4291,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4291
4291
|
}, n.prototype._isBufferList = function(i) {
|
|
4292
4292
|
return i instanceof n || i instanceof o || n.isBufferList(i);
|
|
4293
4293
|
}, n.isBufferList = o.isBufferList, e.exports = n, e.exports.BufferListStream = n, e.exports.BufferList = o;
|
|
4294
|
-
}),
|
|
4294
|
+
}), fc = pe((a, e) => {
|
|
4295
4295
|
le(), ue(), ce();
|
|
4296
4296
|
var t = class {
|
|
4297
4297
|
constructor() {
|
|
@@ -4325,7 +4325,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4325
4325
|
})));
|
|
4326
4326
|
}
|
|
4327
4327
|
t.PUBLISH_HEADER = o("publish"), t.SUBSCRIBE_HEADER = o("subscribe"), t.SUBSCRIBE_OPTIONS_QOS_MASK = 3, t.SUBSCRIBE_OPTIONS_NL_MASK = 1, t.SUBSCRIBE_OPTIONS_NL_SHIFT = 2, t.SUBSCRIBE_OPTIONS_RAP_MASK = 1, t.SUBSCRIBE_OPTIONS_RAP_SHIFT = 3, t.SUBSCRIBE_OPTIONS_RH_MASK = 3, t.SUBSCRIBE_OPTIONS_RH_SHIFT = 4, t.SUBSCRIBE_OPTIONS_RH = [0, 16, 32], t.SUBSCRIBE_OPTIONS_NL = 4, t.SUBSCRIBE_OPTIONS_RAP = 8, t.SUBSCRIBE_OPTIONS_QOS = [0, 1, 2], t.UNSUBSCRIBE_HEADER = o("unsubscribe"), t.ACKS = { unsuback: o("unsuback"), puback: o("puback"), pubcomp: o("pubcomp"), pubrel: o("pubrel"), pubrec: o("pubrec") }, t.SUBACK_HEADER = r.from([t.codes.suback << t.CMD_SHIFT]), t.VERSION3 = r.from([3]), t.VERSION4 = r.from([4]), t.VERSION5 = r.from([5]), t.VERSION131 = r.from([131]), t.VERSION132 = r.from([132]), t.QOS = [0, 1, 2].map((n) => r.from([n])), t.EMPTY = { pingreq: r.from([t.codes.pingreq << 4, 0]), pingresp: r.from([t.codes.pingresp << 4, 0]), disconnect: r.from([t.codes.disconnect << 4, 0]) }, t.MQTT5_PUBACK_PUBREC_CODES = { 0: "Success", 16: "No matching subscribers", 128: "Unspecified error", 131: "Implementation specific error", 135: "Not authorized", 144: "Topic Name invalid", 145: "Packet identifier in use", 151: "Quota exceeded", 153: "Payload format invalid" }, t.MQTT5_PUBREL_PUBCOMP_CODES = { 0: "Success", 146: "Packet Identifier not found" }, t.MQTT5_SUBACK_CODES = { 0: "Granted QoS 0", 1: "Granted QoS 1", 2: "Granted QoS 2", 128: "Unspecified error", 131: "Implementation specific error", 135: "Not authorized", 143: "Topic Filter invalid", 145: "Packet Identifier in use", 151: "Quota exceeded", 158: "Shared Subscriptions not supported", 161: "Subscription Identifiers not supported", 162: "Wildcard Subscriptions not supported" }, t.MQTT5_UNSUBACK_CODES = { 0: "Success", 17: "No subscription existed", 128: "Unspecified error", 131: "Implementation specific error", 135: "Not authorized", 143: "Topic Filter invalid", 145: "Packet Identifier in use" }, t.MQTT5_DISCONNECT_CODES = { 0: "Normal disconnection", 4: "Disconnect with Will Message", 128: "Unspecified error", 129: "Malformed Packet", 130: "Protocol Error", 131: "Implementation specific error", 135: "Not authorized", 137: "Server busy", 139: "Server shutting down", 141: "Keep Alive timeout", 142: "Session taken over", 143: "Topic Filter invalid", 144: "Topic Name invalid", 147: "Receive Maximum exceeded", 148: "Topic Alias invalid", 149: "Packet too large", 150: "Message rate too high", 151: "Quota exceeded", 152: "Administrative action", 153: "Payload format invalid", 154: "Retain not supported", 155: "QoS not supported", 156: "Use another server", 157: "Server moved", 158: "Shared Subscriptions not supported", 159: "Connection rate exceeded", 160: "Maximum connect time", 161: "Subscription Identifiers not supported", 162: "Wildcard Subscriptions not supported" }, t.MQTT5_AUTH_CODES = { 0: "Success", 24: "Continue authentication", 25: "Re-authenticate" };
|
|
4328
|
-
}),
|
|
4328
|
+
}), pc = pe((a, e) => {
|
|
4329
4329
|
le(), ue(), ce();
|
|
4330
4330
|
var t = 1e3, r = t * 60, o = r * 60, n = o * 24, i = n * 7, s = n * 365.25;
|
|
4331
4331
|
e.exports = function(p, b) {
|
|
@@ -4397,10 +4397,10 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4397
4397
|
var y = b >= f * 1.5;
|
|
4398
4398
|
return Math.round(p / f) + " " + g + (y ? "s" : "");
|
|
4399
4399
|
}
|
|
4400
|
-
}),
|
|
4400
|
+
}), mc = pe((a, e) => {
|
|
4401
4401
|
le(), ue(), ce();
|
|
4402
4402
|
function t(r) {
|
|
4403
|
-
n.debug = n, n.default = n, n.coerce = h, n.disable = c, n.enable = s, n.enabled = u, n.humanize =
|
|
4403
|
+
n.debug = n, n.default = n, n.coerce = h, n.disable = c, n.enable = s, n.enabled = u, n.humanize = pc(), n.destroy = p, Object.keys(r).forEach((b) => {
|
|
4404
4404
|
n[b] = r[b];
|
|
4405
4405
|
}), n.names = [], n.skips = [], n.formatters = {};
|
|
4406
4406
|
function o(b) {
|
|
@@ -4510,7 +4510,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4510
4510
|
} catch {
|
|
4511
4511
|
}
|
|
4512
4512
|
}
|
|
4513
|
-
e.exports =
|
|
4513
|
+
e.exports = mc()(a);
|
|
4514
4514
|
var { formatters: s } = e.exports;
|
|
4515
4515
|
s.j = function(l) {
|
|
4516
4516
|
try {
|
|
@@ -4519,9 +4519,9 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4519
4519
|
return "[UnexpectedJSONParseError]: " + c.message;
|
|
4520
4520
|
}
|
|
4521
4521
|
};
|
|
4522
|
-
}),
|
|
4522
|
+
}), gc = pe((a, e) => {
|
|
4523
4523
|
le(), ue(), ce();
|
|
4524
|
-
var t =
|
|
4524
|
+
var t = dc(), { EventEmitter: r } = (Ct(), Pe(wt)), o = fc(), n = ga(), i = ht()("mqtt-packet:parser"), s = class ci extends r {
|
|
4525
4525
|
constructor() {
|
|
4526
4526
|
super(), this.parser = this.constructor.parser;
|
|
4527
4527
|
}
|
|
@@ -4872,7 +4872,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4872
4872
|
}
|
|
4873
4873
|
};
|
|
4874
4874
|
e.exports = s;
|
|
4875
|
-
}),
|
|
4875
|
+
}), bc = pe((a, e) => {
|
|
4876
4876
|
le(), ue(), ce();
|
|
4877
4877
|
var { Buffer: t } = (Be(), Pe(Ue)), r = 65536, o = {}, n = t.isBuffer(t.from([1, 2]).subarray(0, 1));
|
|
4878
4878
|
function i(u) {
|
|
@@ -4894,7 +4894,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4894
4894
|
return h.writeUInt32BE(u, 0), h;
|
|
4895
4895
|
}
|
|
4896
4896
|
e.exports = { cache: o, generateCache: s, generateNumber: i, genBufVariableByteInt: l, generate4ByteBuffer: c };
|
|
4897
|
-
}),
|
|
4897
|
+
}), yc = pe((a, e) => {
|
|
4898
4898
|
le(), ue(), ce(), typeof Re > "u" || !Re.version || Re.version.indexOf("v0.") === 0 || Re.version.indexOf("v1.") === 0 && Re.version.indexOf("v1.8.") !== 0 ? e.exports = { nextTick: t } : e.exports = Re;
|
|
4899
4899
|
function t(r, o, n, i) {
|
|
4900
4900
|
if (typeof r != "function") throw new TypeError('"callback" argument must be a function');
|
|
@@ -4924,7 +4924,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4924
4924
|
}
|
|
4925
4925
|
}), ba = pe((a, e) => {
|
|
4926
4926
|
le(), ue(), ce();
|
|
4927
|
-
var t = ga(), { Buffer: r } = (Be(), Pe(Ue)), o = r.allocUnsafe(0), n = r.from([0]), i =
|
|
4927
|
+
var t = ga(), { Buffer: r } = (Be(), Pe(Ue)), o = r.allocUnsafe(0), n = r.from([0]), i = bc(), s = yc().nextTick, l = ht()("mqtt-packet:writeToStream"), c = i.cache, u = i.generateNumber, h = i.generateCache, p = i.genBufVariableByteInt, b = i.generate4ByteBuffer, f = Y, g = !0;
|
|
4928
4928
|
function y(G, j, ne) {
|
|
4929
4929
|
switch (l("generate called"), j.cork && (j.cork(), s(w, j)), g && (g = !1, h()), l("generate: packet.cmd: %s", G.cmd), G.cmd) {
|
|
4930
4930
|
case "connect":
|
|
@@ -4966,20 +4966,20 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4966
4966
|
G.uncork();
|
|
4967
4967
|
}
|
|
4968
4968
|
function m(G, j, ne) {
|
|
4969
|
-
let W = G || {}, K = W.protocolId || "MQTT",
|
|
4969
|
+
let W = G || {}, K = W.protocolId || "MQTT", J = W.protocolVersion || 4, ge = W.will, oe = W.clean, R = W.keepalive || 0, $ = W.clientId || "", ee = W.username, de = W.password, fe = W.properties;
|
|
4970
4970
|
oe === void 0 && (oe = !0);
|
|
4971
4971
|
let ye = 0;
|
|
4972
4972
|
if (typeof K != "string" && !r.isBuffer(K)) return j.destroy(new Error("Invalid protocolId")), !1;
|
|
4973
|
-
if (ye += K.length + 2,
|
|
4974
|
-
if (ye += 1, (typeof $ == "string" || r.isBuffer($)) && ($ ||
|
|
4973
|
+
if (ye += K.length + 2, J !== 3 && J !== 4 && J !== 5) return j.destroy(new Error("Invalid protocol version")), !1;
|
|
4974
|
+
if (ye += 1, (typeof $ == "string" || r.isBuffer($)) && ($ || J >= 4) && ($ || oe)) ye += r.byteLength($) + 2;
|
|
4975
4975
|
else {
|
|
4976
|
-
if (
|
|
4976
|
+
if (J < 4) return j.destroy(new Error("clientId must be supplied before 3.1.1")), !1;
|
|
4977
4977
|
if (oe * 1 === 0) return j.destroy(new Error("clientId must be given if cleanSession set to 0")), !1;
|
|
4978
4978
|
}
|
|
4979
4979
|
if (typeof R != "number" || R < 0 || R > 65535 || R % 1 !== 0) return j.destroy(new Error("Invalid keepalive")), !1;
|
|
4980
4980
|
ye += 2, ye += 1;
|
|
4981
4981
|
let H, me;
|
|
4982
|
-
if (
|
|
4982
|
+
if (J === 5) {
|
|
4983
4983
|
if (H = Z(j, fe), !H) return !1;
|
|
4984
4984
|
ye += H.length;
|
|
4985
4985
|
}
|
|
@@ -4988,7 +4988,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
4988
4988
|
if (!ge.topic || typeof ge.topic != "string") return j.destroy(new Error("Invalid will topic")), !1;
|
|
4989
4989
|
if (ye += r.byteLength(ge.topic) + 2, ye += 2, ge.payload) if (ge.payload.length >= 0) typeof ge.payload == "string" ? ye += r.byteLength(ge.payload) : ye += ge.payload.length;
|
|
4990
4990
|
else return j.destroy(new Error("Invalid will payload")), !1;
|
|
4991
|
-
if (me = {},
|
|
4991
|
+
if (me = {}, J === 5) {
|
|
4992
4992
|
if (me = Z(j, ge.properties), !me) return !1;
|
|
4993
4993
|
ye += me.length;
|
|
4994
4994
|
}
|
|
@@ -5001,48 +5001,48 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5001
5001
|
if (we(de)) ye += te(de) + 2;
|
|
5002
5002
|
else return j.destroy(new Error("Invalid password")), !1;
|
|
5003
5003
|
}
|
|
5004
|
-
j.write(t.CONNECT_HEADER), D(j, ye), F(j, K), W.bridgeMode && (
|
|
5004
|
+
j.write(t.CONNECT_HEADER), D(j, ye), F(j, K), W.bridgeMode && (J += 128), j.write(J === 131 ? t.VERSION131 : J === 132 ? t.VERSION132 : J === 4 ? t.VERSION4 : J === 5 ? t.VERSION5 : t.VERSION3);
|
|
5005
5005
|
let se = 0;
|
|
5006
|
-
return se |= ee != null ? t.USERNAME_MASK : 0, se |= de != null ? t.PASSWORD_MASK : 0, se |= ge && ge.retain ? t.WILL_RETAIN_MASK : 0, se |= ge && ge.qos ? ge.qos << t.WILL_QOS_SHIFT : 0, se |= ge ? t.WILL_FLAG_MASK : 0, se |= oe ? t.CLEAN_SESSION_MASK : 0, j.write(r.from([se])), f(j, R),
|
|
5006
|
+
return se |= ee != null ? t.USERNAME_MASK : 0, se |= de != null ? t.PASSWORD_MASK : 0, se |= ge && ge.retain ? t.WILL_RETAIN_MASK : 0, se |= ge && ge.qos ? ge.qos << t.WILL_QOS_SHIFT : 0, se |= ge ? t.WILL_FLAG_MASK : 0, se |= oe ? t.CLEAN_SESSION_MASK : 0, j.write(r.from([se])), f(j, R), J === 5 && H.write(), F(j, $), ge && (J === 5 && me.write(), U(j, ge.topic), F(j, ge.payload)), ee != null && F(j, ee), de != null && F(j, de), !0;
|
|
5007
5007
|
}
|
|
5008
5008
|
function _(G, j, ne) {
|
|
5009
|
-
let W = ne ? ne.protocolVersion : 4, K = G || {},
|
|
5010
|
-
if (typeof
|
|
5009
|
+
let W = ne ? ne.protocolVersion : 4, K = G || {}, J = W === 5 ? K.reasonCode : K.returnCode, ge = K.properties, oe = 2;
|
|
5010
|
+
if (typeof J != "number") return j.destroy(new Error("Invalid return code")), !1;
|
|
5011
5011
|
let R = null;
|
|
5012
5012
|
if (W === 5) {
|
|
5013
5013
|
if (R = Z(j, ge), !R) return !1;
|
|
5014
5014
|
oe += R.length;
|
|
5015
5015
|
}
|
|
5016
|
-
return j.write(t.CONNACK_HEADER), D(j, oe), j.write(K.sessionPresent ? t.SESSIONPRESENT_HEADER : n), j.write(r.from([
|
|
5016
|
+
return j.write(t.CONNACK_HEADER), D(j, oe), j.write(K.sessionPresent ? t.SESSIONPRESENT_HEADER : n), j.write(r.from([J])), R?.write(), !0;
|
|
5017
5017
|
}
|
|
5018
5018
|
function x(G, j, ne) {
|
|
5019
5019
|
l("publish: packet: %o", G);
|
|
5020
|
-
let W = ne ? ne.protocolVersion : 4, K = G || {},
|
|
5020
|
+
let W = ne ? ne.protocolVersion : 4, K = G || {}, J = K.qos || 0, ge = K.retain ? t.RETAIN_MASK : 0, oe = K.topic, R = K.payload || o, $ = K.messageId, ee = K.properties, de = 0;
|
|
5021
5021
|
if (typeof oe == "string") de += r.byteLength(oe) + 2;
|
|
5022
5022
|
else if (r.isBuffer(oe)) de += oe.length + 2;
|
|
5023
5023
|
else return j.destroy(new Error("Invalid topic")), !1;
|
|
5024
|
-
if (r.isBuffer(R) ? de += R.length : de += r.byteLength(R),
|
|
5025
|
-
|
|
5024
|
+
if (r.isBuffer(R) ? de += R.length : de += r.byteLength(R), J && typeof $ != "number") return j.destroy(new Error("Invalid messageId")), !1;
|
|
5025
|
+
J && (de += 2);
|
|
5026
5026
|
let fe = null;
|
|
5027
5027
|
if (W === 5) {
|
|
5028
5028
|
if (fe = Z(j, ee), !fe) return !1;
|
|
5029
5029
|
de += fe.length;
|
|
5030
5030
|
}
|
|
5031
|
-
return j.write(t.PUBLISH_HEADER[
|
|
5031
|
+
return j.write(t.PUBLISH_HEADER[J][K.dup ? 1 : 0][ge ? 1 : 0]), D(j, de), f(j, te(oe)), j.write(oe), J > 0 && f(j, $), fe?.write(), l("publish: payload: %o", R), j.write(R);
|
|
5032
5032
|
}
|
|
5033
5033
|
function v(G, j, ne) {
|
|
5034
|
-
let W = ne ? ne.protocolVersion : 4, K = G || {},
|
|
5035
|
-
if (
|
|
5034
|
+
let W = ne ? ne.protocolVersion : 4, K = G || {}, J = K.cmd || "puback", ge = K.messageId, oe = K.dup && J === "pubrel" ? t.DUP_MASK : 0, R = 0, $ = K.reasonCode, ee = K.properties, de = W === 5 ? 3 : 2;
|
|
5035
|
+
if (J === "pubrel" && (R = 1), typeof ge != "number") return j.destroy(new Error("Invalid messageId")), !1;
|
|
5036
5036
|
let fe = null;
|
|
5037
5037
|
if (W === 5 && typeof ee == "object") {
|
|
5038
5038
|
if (fe = M(j, ee, ne, de), !fe) return !1;
|
|
5039
5039
|
de += fe.length;
|
|
5040
5040
|
}
|
|
5041
|
-
return j.write(t.ACKS[
|
|
5041
|
+
return j.write(t.ACKS[J][R][oe][0]), de === 3 && (de += $ !== 0 ? 1 : -1), D(j, de), f(j, ge), W === 5 && de !== 2 && j.write(r.from([$])), fe !== null ? fe.write() : de === 4 && j.write(r.from([0])), !0;
|
|
5042
5042
|
}
|
|
5043
5043
|
function E(G, j, ne) {
|
|
5044
5044
|
l("subscribe: packet: ");
|
|
5045
|
-
let W = ne ? ne.protocolVersion : 4, K = G || {},
|
|
5045
|
+
let W = ne ? ne.protocolVersion : 4, K = G || {}, J = K.dup ? t.DUP_MASK : 0, ge = K.messageId, oe = K.subscriptions, R = K.properties, $ = 0;
|
|
5046
5046
|
if (typeof ge != "number") return j.destroy(new Error("Invalid messageId")), !1;
|
|
5047
5047
|
$ += 2;
|
|
5048
5048
|
let ee = null;
|
|
@@ -5063,7 +5063,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5063
5063
|
$ += r.byteLength(ye) + 2 + 1;
|
|
5064
5064
|
}
|
|
5065
5065
|
else return j.destroy(new Error("Invalid subscriptions")), !1;
|
|
5066
|
-
l("subscribe: writing to stream: %o", t.SUBSCRIBE_HEADER), j.write(t.SUBSCRIBE_HEADER[1][
|
|
5066
|
+
l("subscribe: writing to stream: %o", t.SUBSCRIBE_HEADER), j.write(t.SUBSCRIBE_HEADER[1][J ? 1 : 0][0]), D(j, $), f(j, ge), ee !== null && ee.write();
|
|
5067
5067
|
let de = !0;
|
|
5068
5068
|
for (let fe of oe) {
|
|
5069
5069
|
let ye = fe.topic, H = fe.qos, me = +fe.nl, ve = +fe.rap, se = fe.rh, Te;
|
|
@@ -5072,8 +5072,8 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5072
5072
|
return de;
|
|
5073
5073
|
}
|
|
5074
5074
|
function S(G, j, ne) {
|
|
5075
|
-
let W = ne ? ne.protocolVersion : 4, K = G || {},
|
|
5076
|
-
if (typeof
|
|
5075
|
+
let W = ne ? ne.protocolVersion : 4, K = G || {}, J = K.messageId, ge = K.granted, oe = K.properties, R = 0;
|
|
5076
|
+
if (typeof J != "number") return j.destroy(new Error("Invalid messageId")), !1;
|
|
5077
5077
|
if (R += 2, typeof ge == "object" && ge.length) for (let ee = 0; ee < ge.length; ee += 1) {
|
|
5078
5078
|
if (typeof ge[ee] != "number") return j.destroy(new Error("Invalid qos vector")), !1;
|
|
5079
5079
|
R += 1;
|
|
@@ -5084,11 +5084,11 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5084
5084
|
if ($ = M(j, oe, ne, R), !$) return !1;
|
|
5085
5085
|
R += $.length;
|
|
5086
5086
|
}
|
|
5087
|
-
return j.write(t.SUBACK_HEADER), D(j, R), f(j,
|
|
5087
|
+
return j.write(t.SUBACK_HEADER), D(j, R), f(j, J), $ !== null && $.write(), j.write(r.from(ge));
|
|
5088
5088
|
}
|
|
5089
5089
|
function I(G, j, ne) {
|
|
5090
|
-
let W = ne ? ne.protocolVersion : 4, K = G || {},
|
|
5091
|
-
if (typeof
|
|
5090
|
+
let W = ne ? ne.protocolVersion : 4, K = G || {}, J = K.messageId, ge = K.dup ? t.DUP_MASK : 0, oe = K.unsubscriptions, R = K.properties, $ = 0;
|
|
5091
|
+
if (typeof J != "number") return j.destroy(new Error("Invalid messageId")), !1;
|
|
5092
5092
|
if ($ += 2, typeof oe == "object" && oe.length) for (let fe = 0; fe < oe.length; fe += 1) {
|
|
5093
5093
|
if (typeof oe[fe] != "string") return j.destroy(new Error("Invalid unsubscriptions")), !1;
|
|
5094
5094
|
$ += r.byteLength(oe[fe]) + 2;
|
|
@@ -5099,14 +5099,14 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5099
5099
|
if (ee = Z(j, R), !ee) return !1;
|
|
5100
5100
|
$ += ee.length;
|
|
5101
5101
|
}
|
|
5102
|
-
j.write(t.UNSUBSCRIBE_HEADER[1][ge ? 1 : 0][0]), D(j, $), f(j,
|
|
5102
|
+
j.write(t.UNSUBSCRIBE_HEADER[1][ge ? 1 : 0][0]), D(j, $), f(j, J), ee !== null && ee.write();
|
|
5103
5103
|
let de = !0;
|
|
5104
5104
|
for (let fe = 0; fe < oe.length; fe++) de = U(j, oe[fe]);
|
|
5105
5105
|
return de;
|
|
5106
5106
|
}
|
|
5107
5107
|
function O(G, j, ne) {
|
|
5108
|
-
let W = ne ? ne.protocolVersion : 4, K = G || {},
|
|
5109
|
-
if (typeof
|
|
5108
|
+
let W = ne ? ne.protocolVersion : 4, K = G || {}, J = K.messageId, ge = K.dup ? t.DUP_MASK : 0, oe = K.granted, R = K.properties, $ = K.cmd, ee = 0, de = 2;
|
|
5109
|
+
if (typeof J != "number") return j.destroy(new Error("Invalid messageId")), !1;
|
|
5110
5110
|
if (W === 5) if (typeof oe == "object" && oe.length) for (let ye = 0; ye < oe.length; ye += 1) {
|
|
5111
5111
|
if (typeof oe[ye] != "number") return j.destroy(new Error("Invalid qos vector")), !1;
|
|
5112
5112
|
de += 1;
|
|
@@ -5117,24 +5117,24 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5117
5117
|
if (fe = M(j, R, ne, de), !fe) return !1;
|
|
5118
5118
|
de += fe.length;
|
|
5119
5119
|
}
|
|
5120
|
-
return j.write(t.ACKS[$][ee][ge][0]), D(j, de), f(j,
|
|
5120
|
+
return j.write(t.ACKS[$][ee][ge][0]), D(j, de), f(j, J), fe !== null && fe.write(), W === 5 && j.write(r.from(oe)), !0;
|
|
5121
5121
|
}
|
|
5122
5122
|
function P(G, j, ne) {
|
|
5123
5123
|
return j.write(t.EMPTY[G.cmd]);
|
|
5124
5124
|
}
|
|
5125
5125
|
function N(G, j, ne) {
|
|
5126
|
-
let W = ne ? ne.protocolVersion : 4, K = G || {},
|
|
5126
|
+
let W = ne ? ne.protocolVersion : 4, K = G || {}, J = K.reasonCode, ge = K.properties, oe = W === 5 ? 1 : 0, R = null;
|
|
5127
5127
|
if (W === 5) {
|
|
5128
5128
|
if (R = M(j, ge, ne, oe), !R) return !1;
|
|
5129
5129
|
oe += R.length;
|
|
5130
5130
|
}
|
|
5131
|
-
return j.write(r.from([t.codes.disconnect << 4])), D(j, oe), W === 5 && j.write(r.from([
|
|
5131
|
+
return j.write(r.from([t.codes.disconnect << 4])), D(j, oe), W === 5 && j.write(r.from([J])), R !== null && R.write(), !0;
|
|
5132
5132
|
}
|
|
5133
5133
|
function T(G, j, ne) {
|
|
5134
|
-
let W = ne ? ne.protocolVersion : 4, K = G || {},
|
|
5134
|
+
let W = ne ? ne.protocolVersion : 4, K = G || {}, J = K.reasonCode, ge = K.properties, oe = W === 5 ? 1 : 0;
|
|
5135
5135
|
W !== 5 && j.destroy(new Error("Invalid mqtt version for auth packet"));
|
|
5136
5136
|
let R = M(j, ge, ne, oe);
|
|
5137
|
-
return R ? (oe += R.length, j.write(r.from([t.codes.auth << 4])), D(j, oe), j.write(r.from([
|
|
5137
|
+
return R ? (oe += R.length, j.write(r.from([t.codes.auth << 4])), D(j, oe), j.write(r.from([J])), R !== null && R.write(), !0) : !1;
|
|
5138
5138
|
}
|
|
5139
5139
|
var q = {};
|
|
5140
5140
|
function D(G, j) {
|
|
@@ -5168,70 +5168,70 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5168
5168
|
be(G, {}, 0);
|
|
5169
5169
|
} };
|
|
5170
5170
|
let ne = 0;
|
|
5171
|
-
function W(K,
|
|
5171
|
+
function W(K, J) {
|
|
5172
5172
|
let ge = t.propertiesTypes[K], oe = 0;
|
|
5173
5173
|
switch (ge) {
|
|
5174
5174
|
case "byte": {
|
|
5175
|
-
if (typeof
|
|
5175
|
+
if (typeof J != "boolean") return G.destroy(new Error(`Invalid ${K}: ${J}`)), !1;
|
|
5176
5176
|
oe += 2;
|
|
5177
5177
|
break;
|
|
5178
5178
|
}
|
|
5179
5179
|
case "int8": {
|
|
5180
|
-
if (typeof
|
|
5180
|
+
if (typeof J != "number" || J < 0 || J > 255) return G.destroy(new Error(`Invalid ${K}: ${J}`)), !1;
|
|
5181
5181
|
oe += 2;
|
|
5182
5182
|
break;
|
|
5183
5183
|
}
|
|
5184
5184
|
case "binary": {
|
|
5185
|
-
if (
|
|
5186
|
-
oe += 1 + r.byteLength(
|
|
5185
|
+
if (J && J === null) return G.destroy(new Error(`Invalid ${K}: ${J}`)), !1;
|
|
5186
|
+
oe += 1 + r.byteLength(J) + 2;
|
|
5187
5187
|
break;
|
|
5188
5188
|
}
|
|
5189
5189
|
case "int16": {
|
|
5190
|
-
if (typeof
|
|
5190
|
+
if (typeof J != "number" || J < 0 || J > 65535) return G.destroy(new Error(`Invalid ${K}: ${J}`)), !1;
|
|
5191
5191
|
oe += 3;
|
|
5192
5192
|
break;
|
|
5193
5193
|
}
|
|
5194
5194
|
case "int32": {
|
|
5195
|
-
if (typeof
|
|
5195
|
+
if (typeof J != "number" || J < 0 || J > 4294967295) return G.destroy(new Error(`Invalid ${K}: ${J}`)), !1;
|
|
5196
5196
|
oe += 5;
|
|
5197
5197
|
break;
|
|
5198
5198
|
}
|
|
5199
5199
|
case "var": {
|
|
5200
|
-
if (typeof
|
|
5201
|
-
oe += 1 + r.byteLength(p(
|
|
5200
|
+
if (typeof J != "number" || J < 0 || J > 268435455) return G.destroy(new Error(`Invalid ${K}: ${J}`)), !1;
|
|
5201
|
+
oe += 1 + r.byteLength(p(J));
|
|
5202
5202
|
break;
|
|
5203
5203
|
}
|
|
5204
5204
|
case "string": {
|
|
5205
|
-
if (typeof
|
|
5206
|
-
oe += 3 + r.byteLength(
|
|
5205
|
+
if (typeof J != "string") return G.destroy(new Error(`Invalid ${K}: ${J}`)), !1;
|
|
5206
|
+
oe += 3 + r.byteLength(J.toString());
|
|
5207
5207
|
break;
|
|
5208
5208
|
}
|
|
5209
5209
|
case "pair": {
|
|
5210
|
-
if (typeof
|
|
5211
|
-
oe += Object.getOwnPropertyNames(
|
|
5212
|
-
let ee =
|
|
5213
|
-
return Array.isArray(ee) ? R += ee.reduce((de, fe) => (de += 3 + r.byteLength($.toString()) + 2 + r.byteLength(fe.toString()), de), 0) : R += 3 + r.byteLength($.toString()) + 2 + r.byteLength(
|
|
5210
|
+
if (typeof J != "object") return G.destroy(new Error(`Invalid ${K}: ${J}`)), !1;
|
|
5211
|
+
oe += Object.getOwnPropertyNames(J).reduce((R, $) => {
|
|
5212
|
+
let ee = J[$];
|
|
5213
|
+
return Array.isArray(ee) ? R += ee.reduce((de, fe) => (de += 3 + r.byteLength($.toString()) + 2 + r.byteLength(fe.toString()), de), 0) : R += 3 + r.byteLength($.toString()) + 2 + r.byteLength(J[$].toString()), R;
|
|
5214
5214
|
}, 0);
|
|
5215
5215
|
break;
|
|
5216
5216
|
}
|
|
5217
5217
|
default:
|
|
5218
|
-
return G.destroy(new Error(`Invalid property ${K}: ${
|
|
5218
|
+
return G.destroy(new Error(`Invalid property ${K}: ${J}`)), !1;
|
|
5219
5219
|
}
|
|
5220
5220
|
return oe;
|
|
5221
5221
|
}
|
|
5222
5222
|
if (j) for (let K in j) {
|
|
5223
|
-
let
|
|
5223
|
+
let J = 0, ge = 0, oe = j[K];
|
|
5224
5224
|
if (oe !== void 0) {
|
|
5225
5225
|
if (Array.isArray(oe)) for (let R = 0; R < oe.length; R++) {
|
|
5226
5226
|
if (ge = W(K, oe[R]), !ge) return !1;
|
|
5227
|
-
|
|
5227
|
+
J += ge;
|
|
5228
5228
|
}
|
|
5229
5229
|
else {
|
|
5230
5230
|
if (ge = W(K, oe), !ge) return !1;
|
|
5231
|
-
|
|
5231
|
+
J = ge;
|
|
5232
5232
|
}
|
|
5233
|
-
if (!
|
|
5234
|
-
ne +=
|
|
5233
|
+
if (!J) return !1;
|
|
5234
|
+
ne += J;
|
|
5235
5235
|
}
|
|
5236
5236
|
}
|
|
5237
5237
|
return { length: r.byteLength(p(ne)) + ne, write() {
|
|
@@ -5239,15 +5239,15 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5239
5239
|
} };
|
|
5240
5240
|
}
|
|
5241
5241
|
function M(G, j, ne, W) {
|
|
5242
|
-
let K = ["reasonString", "userProperties"],
|
|
5243
|
-
if (
|
|
5242
|
+
let K = ["reasonString", "userProperties"], J = ne && ne.properties && ne.properties.maximumPacketSize ? ne.properties.maximumPacketSize : 0, ge = Z(G, j);
|
|
5243
|
+
if (J) for (; W + ge.length > J; ) {
|
|
5244
5244
|
let oe = K.shift();
|
|
5245
5245
|
if (oe && j[oe]) delete j[oe], ge = Z(G, j);
|
|
5246
5246
|
else return !1;
|
|
5247
5247
|
}
|
|
5248
5248
|
return ge;
|
|
5249
5249
|
}
|
|
5250
|
-
function
|
|
5250
|
+
function Q(G, j, ne) {
|
|
5251
5251
|
switch (t.propertiesTypes[j]) {
|
|
5252
5252
|
case "byte": {
|
|
5253
5253
|
G.write(r.from([t.properties[j]])), G.write(r.from([+ne]));
|
|
@@ -5280,8 +5280,8 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5280
5280
|
case "pair": {
|
|
5281
5281
|
Object.getOwnPropertyNames(ne).forEach((W) => {
|
|
5282
5282
|
let K = ne[W];
|
|
5283
|
-
Array.isArray(K) ? K.forEach((
|
|
5284
|
-
G.write(r.from([t.properties[j]])), ae(G, W.toString(),
|
|
5283
|
+
Array.isArray(K) ? K.forEach((J) => {
|
|
5284
|
+
G.write(r.from([t.properties[j]])), ae(G, W.toString(), J.toString());
|
|
5285
5285
|
}) : (G.write(r.from([t.properties[j]])), ae(G, W.toString(), K.toString()));
|
|
5286
5286
|
});
|
|
5287
5287
|
break;
|
|
@@ -5294,8 +5294,8 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5294
5294
|
D(G, ne);
|
|
5295
5295
|
for (let W in j) if (Object.prototype.hasOwnProperty.call(j, W) && j[W] != null) {
|
|
5296
5296
|
let K = j[W];
|
|
5297
|
-
if (Array.isArray(K)) for (let
|
|
5298
|
-
else
|
|
5297
|
+
if (Array.isArray(K)) for (let J = 0; J < K.length; J++) Q(G, W, K[J]);
|
|
5298
|
+
else Q(G, W, K);
|
|
5299
5299
|
}
|
|
5300
5300
|
}
|
|
5301
5301
|
function te(G) {
|
|
@@ -5305,7 +5305,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5305
5305
|
return typeof G == "string" || G instanceof r;
|
|
5306
5306
|
}
|
|
5307
5307
|
e.exports = y;
|
|
5308
|
-
}),
|
|
5308
|
+
}), vc = pe((a, e) => {
|
|
5309
5309
|
le(), ue(), ce();
|
|
5310
5310
|
var t = ba(), { EventEmitter: r } = (Ct(), Pe(wt)), { Buffer: o } = (Be(), Pe(Ue));
|
|
5311
5311
|
function n(s, l) {
|
|
@@ -5331,9 +5331,9 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5331
5331
|
}
|
|
5332
5332
|
};
|
|
5333
5333
|
e.exports = n;
|
|
5334
|
-
}),
|
|
5335
|
-
le(), ue(), ce(), a.parser =
|
|
5336
|
-
}),
|
|
5334
|
+
}), wc = pe((a) => {
|
|
5335
|
+
le(), ue(), ce(), a.parser = gc().parser, a.generate = vc(), a.writeToStream = ba();
|
|
5336
|
+
}), _c = pe((a, e) => {
|
|
5337
5337
|
le(), ue(), ce(), e.exports = r;
|
|
5338
5338
|
function t(n) {
|
|
5339
5339
|
return n instanceof Nr ? Nr.from(n) : new n.constructor(n.buffer.slice(), n.byteOffset, n.length);
|
|
@@ -5433,8 +5433,8 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5433
5433
|
return i.pop(), s.pop(), f;
|
|
5434
5434
|
}
|
|
5435
5435
|
}
|
|
5436
|
-
}),
|
|
5437
|
-
le(), ue(), ce(), e.exports =
|
|
5436
|
+
}), kc = pe((a, e) => {
|
|
5437
|
+
le(), ue(), ce(), e.exports = _c()();
|
|
5438
5438
|
}), ya = pe((a) => {
|
|
5439
5439
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 }), a.validateTopic = e, a.validateTopics = t;
|
|
5440
5440
|
function e(r) {
|
|
@@ -5486,7 +5486,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5486
5486
|
}
|
|
5487
5487
|
};
|
|
5488
5488
|
a.default = o;
|
|
5489
|
-
}),
|
|
5489
|
+
}), xc = pe((a) => {
|
|
5490
5490
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 });
|
|
5491
5491
|
var e = [0, 16, 128, 131, 135, 144, 145, 151, 153], t = (r, o, n) => {
|
|
5492
5492
|
r.log("handlePublish: packet %o", o), n = typeof n < "u" ? n : r.noop;
|
|
@@ -5541,7 +5541,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5541
5541
|
}
|
|
5542
5542
|
};
|
|
5543
5543
|
a.default = t;
|
|
5544
|
-
}),
|
|
5544
|
+
}), Sc = pe((a, e) => {
|
|
5545
5545
|
e.exports = { version: "5.15.0" };
|
|
5546
5546
|
}), qt = pe((a) => {
|
|
5547
5547
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 }), a.MQTTJS_VERSION = a.nextTick = a.ErrorWithSubackPacket = a.ErrorWithReasonCode = void 0, a.applyMixin = r;
|
|
@@ -5570,7 +5570,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5570
5570
|
}
|
|
5571
5571
|
a.nextTick = typeof Re?.nextTick == "function" ? Re.nextTick : (o) => {
|
|
5572
5572
|
setTimeout(o, 0);
|
|
5573
|
-
}, a.MQTTJS_VERSION =
|
|
5573
|
+
}, a.MQTTJS_VERSION = Sc().version;
|
|
5574
5574
|
}), qr = pe((a) => {
|
|
5575
5575
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 }), a.ReasonCodes = void 0;
|
|
5576
5576
|
var e = qt();
|
|
@@ -5624,7 +5624,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5624
5624
|
r.disconnecting && Object.keys(r.outgoing).length === 0 && r.emit("outgoingEmpty");
|
|
5625
5625
|
};
|
|
5626
5626
|
a.default = t;
|
|
5627
|
-
}),
|
|
5627
|
+
}), Ec = pe((a) => {
|
|
5628
5628
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 });
|
|
5629
5629
|
var e = qt(), t = qr(), r = (o, n) => {
|
|
5630
5630
|
let { options: i } = o, s = i.protocolVersion, l = s === 5 ? n.reasonCode : n.returnCode;
|
|
@@ -5646,7 +5646,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5646
5646
|
});
|
|
5647
5647
|
};
|
|
5648
5648
|
a.default = r;
|
|
5649
|
-
}),
|
|
5649
|
+
}), Ac = pe((a) => {
|
|
5650
5650
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 }), a.LRUCache = void 0;
|
|
5651
5651
|
var e = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, t = /* @__PURE__ */ new Set(), r = typeof Re == "object" && Re ? Re : {}, o = (b, f, g, y) => {
|
|
5652
5652
|
typeof r.emitWarning == "function" ? r.emitWarning(b, f, g, y) : console.error(`[${g}] ${f}: ${b}`);
|
|
@@ -5681,19 +5681,19 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
5681
5681
|
constructor(b) {
|
|
5682
5682
|
super(b), this.fill(0);
|
|
5683
5683
|
}
|
|
5684
|
-
}, h = class
|
|
5684
|
+
}, h = class Qt {
|
|
5685
5685
|
heap;
|
|
5686
5686
|
length;
|
|
5687
5687
|
static #l = !1;
|
|
5688
5688
|
static create(f) {
|
|
5689
5689
|
let g = c(f);
|
|
5690
5690
|
if (!g) return [];
|
|
5691
|
-
|
|
5692
|
-
let y = new
|
|
5693
|
-
return
|
|
5691
|
+
Qt.#l = !0;
|
|
5692
|
+
let y = new Qt(f, g);
|
|
5693
|
+
return Qt.#l = !1, y;
|
|
5694
5694
|
}
|
|
5695
5695
|
constructor(f, g) {
|
|
5696
|
-
if (!
|
|
5696
|
+
if (!Qt.#l) throw new TypeError("instantiate Stack using Stack.create(n)");
|
|
5697
5697
|
this.heap = new g(f), this.length = 0;
|
|
5698
5698
|
}
|
|
5699
5699
|
push(f) {
|
|
@@ -6190,7 +6190,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
6190
6190
|
var r = class extends t {
|
|
6191
6191
|
};
|
|
6192
6192
|
a.Container = r;
|
|
6193
|
-
}),
|
|
6193
|
+
}), Ic = pe((a) => {
|
|
6194
6194
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
6195
6195
|
var e = ft(), t = class extends e.Base {
|
|
6196
6196
|
constructor(o = []) {
|
|
@@ -6214,7 +6214,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
6214
6214
|
}
|
|
6215
6215
|
}, r = t;
|
|
6216
6216
|
a.default = r;
|
|
6217
|
-
}),
|
|
6217
|
+
}), Tc = pe((a) => {
|
|
6218
6218
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
6219
6219
|
var e = ft(), t = class extends e.Base {
|
|
6220
6220
|
constructor(o = []) {
|
|
@@ -6246,7 +6246,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
6246
6246
|
}
|
|
6247
6247
|
}, r = t;
|
|
6248
6248
|
a.default = r;
|
|
6249
|
-
}),
|
|
6249
|
+
}), Cc = pe((a) => {
|
|
6250
6250
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
6251
6251
|
var e = ft(), t = class extends e.Base {
|
|
6252
6252
|
constructor(o = [], n = function(s, l) {
|
|
@@ -6344,7 +6344,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
6344
6344
|
}
|
|
6345
6345
|
};
|
|
6346
6346
|
a.RandomIterator = r;
|
|
6347
|
-
}),
|
|
6347
|
+
}), Oc = pe((a) => {
|
|
6348
6348
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
6349
6349
|
var e = r(ao()), t = xa();
|
|
6350
6350
|
function r(s) {
|
|
@@ -6445,7 +6445,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
6445
6445
|
}
|
|
6446
6446
|
}, i = n;
|
|
6447
6447
|
a.default = i;
|
|
6448
|
-
}),
|
|
6448
|
+
}), Pc = pe((a) => {
|
|
6449
6449
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
6450
6450
|
var e = o(ao()), t = ft(), r = pt();
|
|
6451
6451
|
function o(l) {
|
|
@@ -6630,7 +6630,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
6630
6630
|
}
|
|
6631
6631
|
}, s = i;
|
|
6632
6632
|
a.default = s;
|
|
6633
|
-
}),
|
|
6633
|
+
}), Mc = pe((a) => {
|
|
6634
6634
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
6635
6635
|
var e = r(ao()), t = xa();
|
|
6636
6636
|
function r(s) {
|
|
@@ -6815,7 +6815,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
6815
6815
|
}
|
|
6816
6816
|
}, i = n;
|
|
6817
6817
|
a.default = i;
|
|
6818
|
-
}),
|
|
6818
|
+
}), Rc = pe((a) => {
|
|
6819
6819
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.TreeNodeEnableIndex = a.TreeNode = void 0;
|
|
6820
6820
|
var e = class {
|
|
6821
6821
|
constructor(r, o) {
|
|
@@ -6872,7 +6872,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
6872
6872
|
a.TreeNodeEnableIndex = t;
|
|
6873
6873
|
}), Ia = pe((a) => {
|
|
6874
6874
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
6875
|
-
var e =
|
|
6875
|
+
var e = Rc(), t = ft(), r = pt(), o = class extends t.Container {
|
|
6876
6876
|
constructor(i = function(l, c) {
|
|
6877
6877
|
return l < c ? -1 : l > c ? 1 : 0;
|
|
6878
6878
|
}, s = !1) {
|
|
@@ -7150,7 +7150,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7150
7150
|
}
|
|
7151
7151
|
}, o = r;
|
|
7152
7152
|
a.default = o;
|
|
7153
|
-
}),
|
|
7153
|
+
}), Lc = pe((a) => {
|
|
7154
7154
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
7155
7155
|
var e = o(Ia()), t = o(Ta()), r = pt();
|
|
7156
7156
|
function o(l) {
|
|
@@ -7229,7 +7229,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7229
7229
|
}
|
|
7230
7230
|
}, s = i;
|
|
7231
7231
|
a.default = s;
|
|
7232
|
-
}),
|
|
7232
|
+
}), jc = pe((a) => {
|
|
7233
7233
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
7234
7234
|
var e = o(Ia()), t = o(Ta()), r = pt();
|
|
7235
7235
|
function o(l) {
|
|
@@ -7407,7 +7407,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7407
7407
|
}
|
|
7408
7408
|
};
|
|
7409
7409
|
a.HashContainer = i;
|
|
7410
|
-
}),
|
|
7410
|
+
}), Nc = pe((a) => {
|
|
7411
7411
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
7412
7412
|
var e = Ma(), t = pt(), r = class Ra extends e.HashContainerIterator {
|
|
7413
7413
|
constructor(s, l, c, u) {
|
|
@@ -7470,7 +7470,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7470
7470
|
}
|
|
7471
7471
|
}, n = o;
|
|
7472
7472
|
a.default = n;
|
|
7473
|
-
}),
|
|
7473
|
+
}), Uc = pe((a) => {
|
|
7474
7474
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
7475
7475
|
var e = Ma(), t = o(Pa()), r = pt();
|
|
7476
7476
|
function o(l) {
|
|
@@ -7553,7 +7553,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7553
7553
|
}
|
|
7554
7554
|
}, s = i;
|
|
7555
7555
|
a.default = s;
|
|
7556
|
-
}),
|
|
7556
|
+
}), Bc = pe((a) => {
|
|
7557
7557
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), Object.defineProperty(a, "Deque", { enumerable: !0, get: function() {
|
|
7558
7558
|
return i.default;
|
|
7559
7559
|
} }), Object.defineProperty(a, "HashMap", { enumerable: !0, get: function() {
|
|
@@ -7575,13 +7575,13 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7575
7575
|
} }), Object.defineProperty(a, "Vector", { enumerable: !0, get: function() {
|
|
7576
7576
|
return o.default;
|
|
7577
7577
|
} });
|
|
7578
|
-
var e = h(
|
|
7578
|
+
var e = h(Ic()), t = h(Tc()), r = h(Cc()), o = h(Oc()), n = h(Pc()), i = h(Mc()), s = h(Lc()), l = h(jc()), c = h(Nc()), u = h(Uc());
|
|
7579
7579
|
function h(p) {
|
|
7580
7580
|
return p && p.t ? p : { default: p };
|
|
7581
7581
|
}
|
|
7582
|
-
}),
|
|
7582
|
+
}), Dc = pe((a, e) => {
|
|
7583
7583
|
le(), ue(), ce();
|
|
7584
|
-
var t =
|
|
7584
|
+
var t = Bc().OrderedSet, r = ht()("number-allocator:trace"), o = ht()("number-allocator:error");
|
|
7585
7585
|
function n(s, l) {
|
|
7586
7586
|
this.low = s, this.high = l;
|
|
7587
7587
|
}
|
|
@@ -7642,11 +7642,11 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7642
7642
|
}, e.exports = i;
|
|
7643
7643
|
}), ja = pe((a, e) => {
|
|
7644
7644
|
le(), ue(), ce();
|
|
7645
|
-
var t =
|
|
7645
|
+
var t = Dc();
|
|
7646
7646
|
e.exports.NumberAllocator = t;
|
|
7647
|
-
}),
|
|
7647
|
+
}), Fc = pe((a) => {
|
|
7648
7648
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 });
|
|
7649
|
-
var e =
|
|
7649
|
+
var e = Ac(), t = ja(), r = class {
|
|
7650
7650
|
aliasToTopic;
|
|
7651
7651
|
topicToAlias;
|
|
7652
7652
|
max;
|
|
@@ -7675,13 +7675,13 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7675
7675
|
}
|
|
7676
7676
|
};
|
|
7677
7677
|
a.default = r;
|
|
7678
|
-
}),
|
|
7678
|
+
}), $c = pe((a) => {
|
|
7679
7679
|
le(), ue(), ce();
|
|
7680
7680
|
var e = a && a.__importDefault || function(i) {
|
|
7681
7681
|
return i && i.__esModule ? i : { default: i };
|
|
7682
7682
|
};
|
|
7683
7683
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
7684
|
-
var t = qr(), r = e(
|
|
7684
|
+
var t = qr(), r = e(Fc()), o = qt(), n = (i, s) => {
|
|
7685
7685
|
i.log("_handleConnack");
|
|
7686
7686
|
let { options: l } = i, c = l.protocolVersion === 5 ? s.reasonCode : s.returnCode;
|
|
7687
7687
|
if (clearTimeout(i.connackTimer), delete i.topicAliasSend, s.properties) {
|
|
@@ -7701,7 +7701,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7701
7701
|
}
|
|
7702
7702
|
};
|
|
7703
7703
|
a.default = n;
|
|
7704
|
-
}),
|
|
7704
|
+
}), qc = pe((a) => {
|
|
7705
7705
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 });
|
|
7706
7706
|
var e = (t, r, o) => {
|
|
7707
7707
|
t.log("handling pubrel packet");
|
|
@@ -7714,13 +7714,13 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7714
7714
|
});
|
|
7715
7715
|
};
|
|
7716
7716
|
a.default = e;
|
|
7717
|
-
}),
|
|
7717
|
+
}), Hc = pe((a) => {
|
|
7718
7718
|
le(), ue(), ce();
|
|
7719
7719
|
var e = a && a.__importDefault || function(l) {
|
|
7720
7720
|
return l && l.__esModule ? l : { default: l };
|
|
7721
7721
|
};
|
|
7722
7722
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
7723
|
-
var t = e(
|
|
7723
|
+
var t = e(xc()), r = e(Ec()), o = e($c()), n = e(qr()), i = e(qc()), s = (l, c, u) => {
|
|
7724
7724
|
let { options: h } = l;
|
|
7725
7725
|
if (h.protocolVersion === 5 && h.properties && h.properties.maximumPacketSize && h.properties.maximumPacketSize < c.length) return l.emit("error", new Error(`exceeding packets size ${c.cmd}`)), l.end({ reasonCode: 149, properties: { reasonString: "Maximum packet size was exceeded" } }), l;
|
|
7726
7726
|
switch (l.log("_handlePacket :: emitting packetreceive"), l.emit("packetreceive", c), c.cmd) {
|
|
@@ -7778,7 +7778,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7778
7778
|
}
|
|
7779
7779
|
};
|
|
7780
7780
|
a.default = e;
|
|
7781
|
-
}),
|
|
7781
|
+
}), Wc = pe((a) => {
|
|
7782
7782
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 });
|
|
7783
7783
|
var e = class {
|
|
7784
7784
|
aliasToTopic;
|
|
@@ -7798,7 +7798,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7798
7798
|
}
|
|
7799
7799
|
};
|
|
7800
7800
|
a.default = e;
|
|
7801
|
-
}),
|
|
7801
|
+
}), zc = pe((a) => {
|
|
7802
7802
|
le(), ue(), ce();
|
|
7803
7803
|
var e = a && a.__importDefault || function(n) {
|
|
7804
7804
|
return n && n.__esModule ? n : { default: n };
|
|
@@ -7818,7 +7818,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7818
7818
|
}, e.exports.__esModule = !0, e.exports.default = e.exports, t(r);
|
|
7819
7819
|
}
|
|
7820
7820
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7821
|
-
}),
|
|
7821
|
+
}), Vc = pe((a, e) => {
|
|
7822
7822
|
le(), ue(), ce();
|
|
7823
7823
|
var t = Hr().default;
|
|
7824
7824
|
function r(o, n) {
|
|
@@ -7832,22 +7832,22 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7832
7832
|
return (n === "string" ? String : Number)(o);
|
|
7833
7833
|
}
|
|
7834
7834
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7835
|
-
}),
|
|
7835
|
+
}), Gc = pe((a, e) => {
|
|
7836
7836
|
le(), ue(), ce();
|
|
7837
|
-
var t = Hr().default, r =
|
|
7837
|
+
var t = Hr().default, r = Vc();
|
|
7838
7838
|
function o(n) {
|
|
7839
7839
|
var i = r(n, "string");
|
|
7840
7840
|
return t(i) == "symbol" ? i : i + "";
|
|
7841
7841
|
}
|
|
7842
7842
|
e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7843
|
-
}),
|
|
7843
|
+
}), Kc = pe((a, e) => {
|
|
7844
7844
|
le(), ue(), ce();
|
|
7845
|
-
var t =
|
|
7845
|
+
var t = Gc();
|
|
7846
7846
|
function r(o, n, i) {
|
|
7847
7847
|
return (n = t(n)) in o ? Object.defineProperty(o, n, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : o[n] = i, o;
|
|
7848
7848
|
}
|
|
7849
7849
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7850
|
-
}),
|
|
7850
|
+
}), Yc = pe((a, e) => {
|
|
7851
7851
|
le(), ue(), ce();
|
|
7852
7852
|
function t(r) {
|
|
7853
7853
|
if (Array.isArray(r)) return r;
|
|
@@ -7877,7 +7877,7 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7877
7877
|
}
|
|
7878
7878
|
}
|
|
7879
7879
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7880
|
-
}),
|
|
7880
|
+
}), Qc = pe((a, e) => {
|
|
7881
7881
|
le(), ue(), ce();
|
|
7882
7882
|
function t(r, o) {
|
|
7883
7883
|
(o == null || o > r.length) && (o = r.length);
|
|
@@ -7885,9 +7885,9 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7885
7885
|
return i;
|
|
7886
7886
|
}
|
|
7887
7887
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7888
|
-
}),
|
|
7888
|
+
}), Xc = pe((a, e) => {
|
|
7889
7889
|
le(), ue(), ce();
|
|
7890
|
-
var t =
|
|
7890
|
+
var t = Qc();
|
|
7891
7891
|
function r(o, n) {
|
|
7892
7892
|
if (o) {
|
|
7893
7893
|
if (typeof o == "string") return t(o, n);
|
|
@@ -7896,16 +7896,16 @@ var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
|
7896
7896
|
}
|
|
7897
7897
|
}
|
|
7898
7898
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7899
|
-
}),
|
|
7899
|
+
}), Zc = pe((a, e) => {
|
|
7900
7900
|
le(), ue(), ce();
|
|
7901
7901
|
function t() {
|
|
7902
7902
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7903
7903
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
7904
7904
|
}
|
|
7905
7905
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7906
|
-
}),
|
|
7906
|
+
}), eu = pe((a, e) => {
|
|
7907
7907
|
le(), ue(), ce();
|
|
7908
|
-
var t =
|
|
7908
|
+
var t = Yc(), r = Jc(), o = Xc(), n = Zc();
|
|
7909
7909
|
function i(s, l) {
|
|
7910
7910
|
return t(s) || r(s, l) || o(s, l) || n();
|
|
7911
7911
|
}
|
|
@@ -7938,7 +7938,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7938
7938
|
}, c = /* @__PURE__ */ new WeakMap(), u = o(c), h = l(u, c), p = r(h);
|
|
7939
7939
|
t.addUniqueNumber = p, t.generateUniqueNumber = h;
|
|
7940
7940
|
});
|
|
7941
|
-
}),
|
|
7941
|
+
}), tu = pe((a, e) => {
|
|
7942
7942
|
le(), ue(), ce();
|
|
7943
7943
|
function t(o, n, i, s, l, c, u) {
|
|
7944
7944
|
try {
|
|
@@ -8002,8 +8002,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8002
8002
|
} };
|
|
8003
8003
|
function Y(V, re) {
|
|
8004
8004
|
for (N = V, T = re, n = 0; !U && q && !F && n < D.length; n++) {
|
|
8005
|
-
var F, Z = D[n], M = ae.p,
|
|
8006
|
-
V > 3 ? (F =
|
|
8005
|
+
var F, Z = D[n], M = ae.p, Q = Z[2];
|
|
8006
|
+
V > 3 ? (F = Q === re) && (T = Z[(N = Z[4]) ? 5 : (N = 3, 3)], Z[4] = Z[5] = o) : Z[0] <= M && ((F = V < 2 && M < Z[1]) ? (N = 0, ae.v = re, ae.n = Z[1]) : M < Q && (F = V < 3 || Z[0] > re || re > Q) && (Z[4] = V, Z[5] = re, ae.n = Q, N = 0));
|
|
8007
8007
|
}
|
|
8008
8008
|
if (F || V > 1) return u;
|
|
8009
8009
|
throw U = !0, re;
|
|
@@ -8094,7 +8094,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8094
8094
|
return new r(t().w(n, i, s, l), c || Promise);
|
|
8095
8095
|
}
|
|
8096
8096
|
e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8097
|
-
}),
|
|
8097
|
+
}), ru = pe((a, e) => {
|
|
8098
8098
|
le(), ue(), ce();
|
|
8099
8099
|
var t = qa();
|
|
8100
8100
|
function r(o, n, i, s, l) {
|
|
@@ -8104,7 +8104,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8104
8104
|
});
|
|
8105
8105
|
}
|
|
8106
8106
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8107
|
-
}),
|
|
8107
|
+
}), nu = pe((a, e) => {
|
|
8108
8108
|
le(), ue(), ce();
|
|
8109
8109
|
function t(r) {
|
|
8110
8110
|
var o = Object(r), n = [];
|
|
@@ -8115,7 +8115,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8115
8115
|
};
|
|
8116
8116
|
}
|
|
8117
8117
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8118
|
-
}),
|
|
8118
|
+
}), iu = pe((a, e) => {
|
|
8119
8119
|
le(), ue(), ce();
|
|
8120
8120
|
var t = Hr().default;
|
|
8121
8121
|
function r(o) {
|
|
@@ -8130,9 +8130,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8130
8130
|
throw new TypeError(t(o) + " is not iterable");
|
|
8131
8131
|
}
|
|
8132
8132
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8133
|
-
}),
|
|
8133
|
+
}), ou = pe((a, e) => {
|
|
8134
8134
|
le(), ue(), ce();
|
|
8135
|
-
var t = Ba(), r = Fa(), o =
|
|
8135
|
+
var t = Ba(), r = Fa(), o = ru(), n = qa(), i = $a(), s = nu(), l = iu();
|
|
8136
8136
|
function c() {
|
|
8137
8137
|
var u = r(), h = u.m(c), p = (Object.getPrototypeOf ? Object.getPrototypeOf(h) : h.__proto__).constructor;
|
|
8138
8138
|
function b(y) {
|
|
@@ -8179,18 +8179,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8179
8179
|
}, e.exports.__esModule = !0, e.exports.default = e.exports)();
|
|
8180
8180
|
}
|
|
8181
8181
|
e.exports = c, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8182
|
-
}),
|
|
8182
|
+
}), su = pe((a, e) => {
|
|
8183
8183
|
le(), ue(), ce();
|
|
8184
|
-
var t =
|
|
8184
|
+
var t = ou()();
|
|
8185
8185
|
e.exports = t;
|
|
8186
8186
|
try {
|
|
8187
8187
|
regeneratorRuntime = t;
|
|
8188
8188
|
} catch {
|
|
8189
8189
|
typeof globalThis == "object" ? globalThis.regeneratorRuntime = t : Function("r", "regeneratorRuntime = r")(t);
|
|
8190
8190
|
}
|
|
8191
|
-
}),
|
|
8191
|
+
}), au = pe((a, e) => {
|
|
8192
8192
|
le(), ue(), ce(), (function(t, r) {
|
|
8193
|
-
typeof a == "object" && typeof e < "u" ? r(a,
|
|
8193
|
+
typeof a == "object" && typeof e < "u" ? r(a, Kc(), eu(), Ua(), tu(), su()) : 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));
|
|
8194
8194
|
})(a, function(t, r, o, n, i, s) {
|
|
8195
8195
|
var l = function(m) {
|
|
8196
8196
|
return typeof m.start == "function";
|
|
@@ -8319,9 +8319,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8319
8319
|
};
|
|
8320
8320
|
t.createBroker = w;
|
|
8321
8321
|
});
|
|
8322
|
-
}),
|
|
8322
|
+
}), lu = pe((a, e) => {
|
|
8323
8323
|
le(), ue(), ce(), (function(t, r) {
|
|
8324
|
-
typeof a == "object" && typeof e < "u" ? r(a, Hr(),
|
|
8324
|
+
typeof a == "object" && typeof e < "u" ? r(a, Hr(), au(), Ua()) : typeof define == "function" && define.amd ? define(["exports", "@babel/runtime/helpers/typeof", "broker-factory", "fast-unique-numbers"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.workerTimersBroker = {}, t._typeof, t.brokerFactory, t.fastUniqueNumbers));
|
|
8325
8325
|
})(a, function(t, r, o, n) {
|
|
8326
8326
|
var i = /* @__PURE__ */ new Map([[0, null]]), s = /* @__PURE__ */ new Map([[0, null]]), l = o.createBroker({ clearInterval: function(u) {
|
|
8327
8327
|
var h = u.call;
|
|
@@ -8369,9 +8369,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8369
8369
|
};
|
|
8370
8370
|
t.load = c, t.wrap = l;
|
|
8371
8371
|
});
|
|
8372
|
-
}),
|
|
8372
|
+
}), cu = pe((a, e) => {
|
|
8373
8373
|
le(), ue(), ce(), (function(t, r) {
|
|
8374
|
-
typeof a == "object" && typeof e < "u" ? r(a,
|
|
8374
|
+
typeof a == "object" && typeof e < "u" ? r(a, lu()) : typeof define == "function" && define.amd ? define(["exports", "worker-timers-broker"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.workerTimers = {}, t.workerTimersBroker));
|
|
8375
8375
|
})(a, function(t, r) {
|
|
8376
8376
|
var o = function(h, p) {
|
|
8377
8377
|
var b = null;
|
|
@@ -8399,7 +8399,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8399
8399
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 }), a.isReactNativeBrowser = a.isWebWorker = void 0;
|
|
8400
8400
|
var e = () => typeof window < "u" ? typeof navigator < "u" && navigator.userAgent?.toLowerCase().indexOf(" electron/") > -1 && Re?.versions ? !Object.prototype.hasOwnProperty.call(Re.versions, "electron") : typeof window.document < "u" : !1, t = () => !!(typeof self == "object" && self?.constructor?.name?.includes("WorkerGlobalScope") && typeof Deno > "u"), r = () => typeof navigator < "u" && navigator.product === "ReactNative", o = e() || t() || r();
|
|
8401
8401
|
a.isWebWorker = t(), a.isReactNativeBrowser = r(), a.default = o;
|
|
8402
|
-
}),
|
|
8402
|
+
}), uu = pe((a) => {
|
|
8403
8403
|
le(), ue(), ce();
|
|
8404
8404
|
var e = a && a.__createBinding || (Object.create ? function(c, u, h, p) {
|
|
8405
8405
|
p === void 0 && (p = h);
|
|
@@ -8429,7 +8429,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8429
8429
|
};
|
|
8430
8430
|
})();
|
|
8431
8431
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
8432
|
-
var o =
|
|
8432
|
+
var o = cu(), n = r(Wr()), i = { set: o.setInterval, clear: o.clearInterval }, s = { set: (c, u) => setInterval(c, u), clear: (c) => clearInterval(c) }, l = (c) => {
|
|
8433
8433
|
switch (c) {
|
|
8434
8434
|
case "native":
|
|
8435
8435
|
return s;
|
|
@@ -8446,7 +8446,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8446
8446
|
return o && o.__esModule ? o : { default: o };
|
|
8447
8447
|
};
|
|
8448
8448
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
8449
|
-
var t = e(
|
|
8449
|
+
var t = e(uu()), r = class {
|
|
8450
8450
|
_keepalive;
|
|
8451
8451
|
timerId;
|
|
8452
8452
|
timer;
|
|
@@ -8519,7 +8519,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8519
8519
|
return v && v.__esModule ? v : { default: v };
|
|
8520
8520
|
};
|
|
8521
8521
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
8522
|
-
var n = o(
|
|
8522
|
+
var n = o(wc()), i = Pt(), s = o(kc()), l = o(ht()), c = r(ya()), u = o(va()), h = o(Hc()), p = o(Na()), b = o(Wc()), f = qt(), g = zc(), y = o(Ha()), w = r(Wr()), m = globalThis.setImmediate || ((...v) => {
|
|
8523
8523
|
let E = v.shift();
|
|
8524
8524
|
(0, f.nextTick)(() => {
|
|
8525
8525
|
E(...v);
|
|
@@ -8692,30 +8692,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8692
8692
|
let Z = { cmd: "subscribe", subscriptions: re, messageId: F };
|
|
8693
8693
|
if (D && (Z.properties = D), this.options.resubscribe) {
|
|
8694
8694
|
this.log("subscribe :: resubscribe true");
|
|
8695
|
-
let
|
|
8695
|
+
let Q = [];
|
|
8696
8696
|
re.forEach((be) => {
|
|
8697
8697
|
if (this.options.reconnectPeriod > 0) {
|
|
8698
8698
|
let te = { qos: be.qos };
|
|
8699
|
-
O === 5 && (te.nl = be.nl || !1, te.rap = be.rap || !1, te.rh = be.rh || 0, te.properties = be.properties), this._resubscribeTopics[be.topic] = te,
|
|
8699
|
+
O === 5 && (te.nl = be.nl || !1, te.rap = be.rap || !1, te.rh = be.rh || 0, te.properties = be.properties), this._resubscribeTopics[be.topic] = te, Q.push(be.topic);
|
|
8700
8700
|
}
|
|
8701
|
-
}), this.messageIdToTopic[Z.messageId] =
|
|
8701
|
+
}), this.messageIdToTopic[Z.messageId] = Q;
|
|
8702
8702
|
}
|
|
8703
|
-
let M = new Promise((
|
|
8703
|
+
let M = new Promise((Q, be) => {
|
|
8704
8704
|
this.outgoing[Z.messageId] = { volatile: !0, cb(te, we) {
|
|
8705
8705
|
if (!te) {
|
|
8706
8706
|
let { granted: G } = we;
|
|
8707
8707
|
for (let j = 0; j < G.length; j += 1) re[j].qos = G[j];
|
|
8708
8708
|
}
|
|
8709
|
-
te ? be(new f.ErrorWithSubackPacket(te.message, we)) :
|
|
8709
|
+
te ? be(new f.ErrorWithSubackPacket(te.message, we)) : Q(we);
|
|
8710
8710
|
} };
|
|
8711
8711
|
});
|
|
8712
8712
|
return this.log("subscribe :: call _sendPacket"), this._sendPacket(Z), M;
|
|
8713
8713
|
}, V = () => {
|
|
8714
8714
|
let re = this.options.subscribeBatchSize ?? U.length, F = [];
|
|
8715
8715
|
for (let Z = 0; Z < U.length; Z += re) {
|
|
8716
|
-
let M = U.slice(Z, Z + re),
|
|
8717
|
-
if (
|
|
8718
|
-
F.push(Y(M,
|
|
8716
|
+
let M = U.slice(Z, Z + re), Q = this._nextId();
|
|
8717
|
+
if (Q === null) return this.log("No messageId left"), !1;
|
|
8718
|
+
F.push(Y(M, Q));
|
|
8719
8719
|
}
|
|
8720
8720
|
return Promise.all(F).then((Z) => {
|
|
8721
8721
|
I(null, U, Z.at(-1));
|
|
@@ -9021,7 +9021,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9021
9021
|
}
|
|
9022
9022
|
};
|
|
9023
9023
|
a.default = x;
|
|
9024
|
-
}),
|
|
9024
|
+
}), hu = pe((a) => {
|
|
9025
9025
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 });
|
|
9026
9026
|
var e = ja(), t = class {
|
|
9027
9027
|
numberAllocator;
|
|
@@ -9047,7 +9047,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9047
9047
|
};
|
|
9048
9048
|
a.default = t;
|
|
9049
9049
|
});
|
|
9050
|
-
function
|
|
9050
|
+
function du() {
|
|
9051
9051
|
if (di) return dr;
|
|
9052
9052
|
di = !0;
|
|
9053
9053
|
let a = 2147483647, e = 36, t = 1, r = 26, o = 38, n = 700, i = 72, s = 128, l = "-", c = /^xn--/, u = /[^\0-\x7F]/, h = /[\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;
|
|
@@ -9094,9 +9094,9 @@ function fu() {
|
|
|
9094
9094
|
Y >= T && y("invalid-input");
|
|
9095
9095
|
let M = v(P.charCodeAt(Y++));
|
|
9096
9096
|
M >= e && y("invalid-input"), M > f((a - q) / F) && y("overflow"), q += M * F;
|
|
9097
|
-
let
|
|
9098
|
-
if (M <
|
|
9099
|
-
let be = e -
|
|
9097
|
+
let Q = Z <= U ? t : Z >= U + r ? r : Z - U;
|
|
9098
|
+
if (M < Q) break;
|
|
9099
|
+
let be = e - Q;
|
|
9100
9100
|
F > f(a / be) && y("overflow"), F *= be;
|
|
9101
9101
|
}
|
|
9102
9102
|
let re = N.length + 1;
|
|
@@ -9117,10 +9117,10 @@ function fu() {
|
|
|
9117
9117
|
for (let F of P) if (F < q && ++D > a && y("overflow"), F === q) {
|
|
9118
9118
|
let Z = D;
|
|
9119
9119
|
for (let M = e; ; M += e) {
|
|
9120
|
-
let
|
|
9121
|
-
if (Z <
|
|
9122
|
-
let be = Z -
|
|
9123
|
-
N.push(g(E(
|
|
9120
|
+
let Q = M <= U ? t : M >= U + r ? r : M - U;
|
|
9121
|
+
if (Z < Q) break;
|
|
9122
|
+
let be = Z - Q, te = e - Q;
|
|
9123
|
+
N.push(g(E(Q + be % te, 0))), Z = f(be / te);
|
|
9124
9124
|
}
|
|
9125
9125
|
N.push(g(E(Z, 0))), U = S(D, re, Y === ae), D = 0, ++Y;
|
|
9126
9126
|
}
|
|
@@ -9138,10 +9138,10 @@ function fu() {
|
|
|
9138
9138
|
});
|
|
9139
9139
|
} }, dr;
|
|
9140
9140
|
}
|
|
9141
|
-
var dr, di, yt,
|
|
9142
|
-
le(), ue(), ce(), dr = {}, di = !1, yt =
|
|
9141
|
+
var dr, di, yt, fu = Ve(() => {
|
|
9142
|
+
le(), ue(), ce(), dr = {}, di = !1, yt = du(), yt.decode, yt.encode, yt.toASCII, yt.toUnicode, yt.ucs2, yt.version;
|
|
9143
9143
|
});
|
|
9144
|
-
function
|
|
9144
|
+
function pu() {
|
|
9145
9145
|
return pi || (pi = !0, fi = function() {
|
|
9146
9146
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1;
|
|
9147
9147
|
if (typeof Symbol.iterator == "symbol") return !0;
|
|
@@ -9160,16 +9160,16 @@ function mu() {
|
|
|
9160
9160
|
return !0;
|
|
9161
9161
|
}), fi;
|
|
9162
9162
|
}
|
|
9163
|
-
function
|
|
9163
|
+
function mu() {
|
|
9164
9164
|
return gi || (gi = !0, mi = Error), mi;
|
|
9165
9165
|
}
|
|
9166
|
-
function
|
|
9166
|
+
function gu() {
|
|
9167
9167
|
return yi || (yi = !0, bi = EvalError), bi;
|
|
9168
9168
|
}
|
|
9169
|
-
function
|
|
9169
|
+
function bu() {
|
|
9170
9170
|
return wi || (wi = !0, vi = RangeError), vi;
|
|
9171
9171
|
}
|
|
9172
|
-
function
|
|
9172
|
+
function yu() {
|
|
9173
9173
|
return ki || (ki = !0, _i = ReferenceError), _i;
|
|
9174
9174
|
}
|
|
9175
9175
|
function Wa() {
|
|
@@ -9178,18 +9178,18 @@ function Wa() {
|
|
|
9178
9178
|
function rr() {
|
|
9179
9179
|
return Ai || (Ai = !0, Ei = TypeError), Ei;
|
|
9180
9180
|
}
|
|
9181
|
-
function
|
|
9181
|
+
function vu() {
|
|
9182
9182
|
return Ti || (Ti = !0, Ii = URIError), Ii;
|
|
9183
9183
|
}
|
|
9184
|
-
function
|
|
9184
|
+
function wu() {
|
|
9185
9185
|
if (Ci) return fr;
|
|
9186
9186
|
Ci = !0;
|
|
9187
|
-
var a = typeof Symbol < "u" && Symbol, e =
|
|
9187
|
+
var a = typeof Symbol < "u" && Symbol, e = pu();
|
|
9188
9188
|
return fr = function() {
|
|
9189
9189
|
return typeof a != "function" || typeof Symbol != "function" || typeof a("foo") != "symbol" || typeof /* @__PURE__ */ Symbol("bar") != "symbol" ? !1 : e();
|
|
9190
9190
|
}, fr;
|
|
9191
9191
|
}
|
|
9192
|
-
function
|
|
9192
|
+
function _u() {
|
|
9193
9193
|
if (Oi) return pr;
|
|
9194
9194
|
Oi = !0;
|
|
9195
9195
|
var a = { __proto__: null, foo: {} }, e = Object;
|
|
@@ -9197,7 +9197,7 @@ function ku() {
|
|
|
9197
9197
|
return { __proto__: a }.foo === a.foo && !(a instanceof e);
|
|
9198
9198
|
}, pr;
|
|
9199
9199
|
}
|
|
9200
|
-
function
|
|
9200
|
+
function ku() {
|
|
9201
9201
|
if (Pi) return mr;
|
|
9202
9202
|
Pi = !0;
|
|
9203
9203
|
var a = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, r = "[object Function]", o = function(s, l) {
|
|
@@ -9232,10 +9232,10 @@ function xu() {
|
|
|
9232
9232
|
function lo() {
|
|
9233
9233
|
if (Mi) return gr;
|
|
9234
9234
|
Mi = !0;
|
|
9235
|
-
var a =
|
|
9235
|
+
var a = ku();
|
|
9236
9236
|
return gr = Function.prototype.bind || a, gr;
|
|
9237
9237
|
}
|
|
9238
|
-
function
|
|
9238
|
+
function xu() {
|
|
9239
9239
|
if (Ri) return br;
|
|
9240
9240
|
Ri = !0;
|
|
9241
9241
|
var a = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = lo();
|
|
@@ -9244,7 +9244,7 @@ function Su() {
|
|
|
9244
9244
|
function Ht() {
|
|
9245
9245
|
if (Li) return yr;
|
|
9246
9246
|
Li = !0;
|
|
9247
|
-
var a, e =
|
|
9247
|
+
var a, e = mu(), t = gu(), r = bu(), o = yu(), n = Wa(), i = rr(), s = vu(), l = Function, c = function(Y) {
|
|
9248
9248
|
try {
|
|
9249
9249
|
return l('"use strict"; return (' + Y + ").constructor;")();
|
|
9250
9250
|
} catch {
|
|
@@ -9267,7 +9267,7 @@ function Ht() {
|
|
|
9267
9267
|
return h;
|
|
9268
9268
|
}
|
|
9269
9269
|
}
|
|
9270
|
-
})() : h, b =
|
|
9270
|
+
})() : h, b = wu()(), f = _u()(), g = Object.getPrototypeOf || (f ? function(Y) {
|
|
9271
9271
|
return Y.__proto__;
|
|
9272
9272
|
} : null), y = {}, w = typeof Uint8Array > "u" || !g ? a : g(Uint8Array), m = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? a : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? a : ArrayBuffer, "%ArrayIteratorPrototype%": b && g ? g([][Symbol.iterator]()) : a, "%AsyncFromSyncIteratorPrototype%": a, "%AsyncFunction%": y, "%AsyncGenerator%": y, "%AsyncGeneratorFunction%": y, "%AsyncIteratorPrototype%": y, "%Atomics%": typeof Atomics > "u" ? a : Atomics, "%BigInt%": typeof BigInt > "u" ? a : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? a : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? a : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? a : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": e, "%eval%": eval, "%EvalError%": t, "%Float32Array%": typeof Float32Array > "u" ? a : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? a : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? a : FinalizationRegistry, "%Function%": l, "%GeneratorFunction%": y, "%Int8Array%": typeof Int8Array > "u" ? a : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? a : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? a : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": b && g ? g(g([][Symbol.iterator]())) : a, "%JSON%": typeof JSON == "object" ? JSON : a, "%Map%": typeof Map > "u" ? a : Map, "%MapIteratorPrototype%": typeof Map > "u" || !b || !g ? a : g((/* @__PURE__ */ new Map())[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? a : Promise, "%Proxy%": typeof Proxy > "u" ? a : Proxy, "%RangeError%": r, "%ReferenceError%": o, "%Reflect%": typeof Reflect > "u" ? a : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? a : Set, "%SetIteratorPrototype%": typeof Set > "u" || !b || !g ? a : g((/* @__PURE__ */ new Set())[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? a : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": b && g ? g(""[Symbol.iterator]()) : a, "%Symbol%": b ? Symbol : a, "%SyntaxError%": n, "%ThrowTypeError%": p, "%TypedArray%": w, "%TypeError%": i, "%Uint8Array%": typeof Uint8Array > "u" ? a : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? a : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? a : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? a : Uint32Array, "%URIError%": s, "%WeakMap%": typeof WeakMap > "u" ? a : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? a : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? a : WeakSet };
|
|
9273
9273
|
if (g) try {
|
|
@@ -9289,13 +9289,13 @@ function Ht() {
|
|
|
9289
9289
|
Z && g && (re = g(Z.prototype));
|
|
9290
9290
|
}
|
|
9291
9291
|
return m[V] = re, re;
|
|
9292
|
-
}, 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"] }, E = lo(), S =
|
|
9292
|
+
}, 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"] }, E = lo(), S = xu(), I = E.call(Function.call, Array.prototype.concat), O = E.call(Function.apply, Array.prototype.splice), P = E.call(Function.call, String.prototype.replace), N = E.call(Function.call, String.prototype.slice), T = E.call(Function.call, RegExp.prototype.exec), q = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, D = /\\(\\)?/g, U = function(Y) {
|
|
9293
9293
|
var V = N(Y, 0, 1), re = N(Y, -1);
|
|
9294
9294
|
if (V === "%" && re !== "%") throw new n("invalid intrinsic syntax, expected closing `%`");
|
|
9295
9295
|
if (re === "%" && V !== "%") throw new n("invalid intrinsic syntax, expected opening `%`");
|
|
9296
9296
|
var F = [];
|
|
9297
|
-
return P(Y, q, function(Z, M,
|
|
9298
|
-
F[F.length] =
|
|
9297
|
+
return P(Y, q, function(Z, M, Q, be) {
|
|
9298
|
+
F[F.length] = Q ? P(be, D, "$1") : M || Z;
|
|
9299
9299
|
}), F;
|
|
9300
9300
|
}, ae = function(Y, V) {
|
|
9301
9301
|
var re = Y, F;
|
|
@@ -9310,25 +9310,25 @@ function Ht() {
|
|
|
9310
9310
|
if (typeof Y != "string" || Y.length === 0) throw new i("intrinsic name must be a non-empty string");
|
|
9311
9311
|
if (arguments.length > 1 && typeof V != "boolean") throw new i('"allowMissing" argument must be a boolean');
|
|
9312
9312
|
if (T(/^%?[^%]*%?$/, Y) === null) throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
9313
|
-
var re = U(Y), F = re.length > 0 ? re[0] : "", Z = ae("%" + F + "%", V), M = Z.name,
|
|
9313
|
+
var re = U(Y), F = re.length > 0 ? re[0] : "", Z = ae("%" + F + "%", V), M = Z.name, Q = Z.value, be = !1, te = Z.alias;
|
|
9314
9314
|
te && (F = te[0], O(re, I([0, 1], te)));
|
|
9315
9315
|
for (var we = 1, G = !0; we < re.length; we += 1) {
|
|
9316
9316
|
var j = re[we], ne = N(j, 0, 1), W = N(j, -1);
|
|
9317
9317
|
if ((ne === '"' || ne === "'" || ne === "`" || W === '"' || W === "'" || W === "`") && ne !== W) throw new n("property names with quotes must have matching quotes");
|
|
9318
|
-
if ((j === "constructor" || !G) && (be = !0), F += "." + j, M = "%" + F + "%", S(m, M))
|
|
9319
|
-
else if (
|
|
9320
|
-
if (!(j in
|
|
9318
|
+
if ((j === "constructor" || !G) && (be = !0), F += "." + j, M = "%" + F + "%", S(m, M)) Q = m[M];
|
|
9319
|
+
else if (Q != null) {
|
|
9320
|
+
if (!(j in Q)) {
|
|
9321
9321
|
if (!V) throw new i("base intrinsic for " + Y + " exists, but the property is not available.");
|
|
9322
9322
|
return;
|
|
9323
9323
|
}
|
|
9324
9324
|
if (u && we + 1 >= re.length) {
|
|
9325
|
-
var K = u(
|
|
9326
|
-
G = !!K, G && "get" in K && !("originalValue" in K.get) ?
|
|
9327
|
-
} else G = S(
|
|
9328
|
-
G && !be && (m[M] =
|
|
9325
|
+
var K = u(Q, j);
|
|
9326
|
+
G = !!K, G && "get" in K && !("originalValue" in K.get) ? Q = K.get : Q = Q[j];
|
|
9327
|
+
} else G = S(Q, j), Q = Q[j];
|
|
9328
|
+
G && !be && (m[M] = Q);
|
|
9329
9329
|
}
|
|
9330
9330
|
}
|
|
9331
|
-
return
|
|
9331
|
+
return Q;
|
|
9332
9332
|
}, yr;
|
|
9333
9333
|
}
|
|
9334
9334
|
function co() {
|
|
@@ -9353,7 +9353,7 @@ function za() {
|
|
|
9353
9353
|
}
|
|
9354
9354
|
return wr = e, wr;
|
|
9355
9355
|
}
|
|
9356
|
-
function
|
|
9356
|
+
function Su() {
|
|
9357
9357
|
if (Ui) return _r;
|
|
9358
9358
|
Ui = !0;
|
|
9359
9359
|
var a = co(), e = Wa(), t = rr(), r = za();
|
|
@@ -9370,7 +9370,7 @@ function Eu() {
|
|
|
9370
9370
|
else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
9371
9371
|
}, _r;
|
|
9372
9372
|
}
|
|
9373
|
-
function
|
|
9373
|
+
function Eu() {
|
|
9374
9374
|
if (Bi) return kr;
|
|
9375
9375
|
Bi = !0;
|
|
9376
9376
|
var a = co(), e = function() {
|
|
@@ -9385,10 +9385,10 @@ function Au() {
|
|
|
9385
9385
|
}
|
|
9386
9386
|
}, kr = e, kr;
|
|
9387
9387
|
}
|
|
9388
|
-
function
|
|
9388
|
+
function Au() {
|
|
9389
9389
|
if (Di) return xr;
|
|
9390
9390
|
Di = !0;
|
|
9391
|
-
var a = Ht(), e =
|
|
9391
|
+
var a = Ht(), e = Su(), t = Eu()(), r = za(), o = rr(), n = a("%Math.floor%");
|
|
9392
9392
|
return xr = function(i, s) {
|
|
9393
9393
|
if (typeof i != "function") throw new o("`fn` is not a function");
|
|
9394
9394
|
if (typeof s != "number" || s < 0 || s > 4294967295 || n(s) !== s) throw new o("`length` must be a positive 32-bit integer");
|
|
@@ -9400,10 +9400,10 @@ function Iu() {
|
|
|
9400
9400
|
return (c || u || !l) && (t ? e(i, "length", s, !0, !0) : e(i, "length", s)), i;
|
|
9401
9401
|
}, xr;
|
|
9402
9402
|
}
|
|
9403
|
-
function
|
|
9403
|
+
function Iu() {
|
|
9404
9404
|
if (Fi) return Nt;
|
|
9405
9405
|
Fi = !0;
|
|
9406
|
-
var a = lo(), e = Ht(), t =
|
|
9406
|
+
var a = lo(), e = Ht(), t = Au(), r = rr(), o = e("%Function.prototype.apply%"), n = e("%Function.prototype.call%"), i = e("%Reflect.apply%", !0) || a.call(n, o), s = co(), l = e("%Math.max%");
|
|
9407
9407
|
Nt = function(u) {
|
|
9408
9408
|
if (typeof u != "function") throw new r("a function is required");
|
|
9409
9409
|
var h = i(a, n, arguments);
|
|
@@ -9414,27 +9414,27 @@ function Tu() {
|
|
|
9414
9414
|
};
|
|
9415
9415
|
return s ? s(Nt, "apply", { value: c }) : Nt.apply = c, Nt;
|
|
9416
9416
|
}
|
|
9417
|
-
function
|
|
9417
|
+
function Tu() {
|
|
9418
9418
|
if ($i) return Sr;
|
|
9419
9419
|
$i = !0;
|
|
9420
|
-
var a = Ht(), e =
|
|
9420
|
+
var a = Ht(), e = Iu(), t = e(a("String.prototype.indexOf"));
|
|
9421
9421
|
return Sr = function(r, o) {
|
|
9422
9422
|
var n = a(r, !!o);
|
|
9423
9423
|
return typeof n == "function" && t(r, ".prototype.") > -1 ? e(n) : n;
|
|
9424
9424
|
}, Sr;
|
|
9425
9425
|
}
|
|
9426
|
-
var fi, pi, mi, gi, bi, yi, vi, wi, _i, ki, xi, Si, Ei, Ai, Ii, Ti, fr, Ci, pr, Oi, mr, Pi, gr, Mi, br, Ri, yr, Li, vr, ji, wr, Ni, _r, Ui, kr, Bi, xr, Di, Nt, Fi, Sr, $i,
|
|
9426
|
+
var fi, pi, mi, gi, bi, yi, vi, wi, _i, ki, xi, Si, Ei, Ai, Ii, Ti, fr, Ci, pr, Oi, mr, Pi, gr, Mi, br, Ri, yr, Li, vr, ji, wr, Ni, _r, Ui, kr, Bi, xr, Di, Nt, Fi, Sr, $i, Cu = Ve(() => {
|
|
9427
9427
|
le(), ue(), ce(), fi = {}, pi = !1, mi = {}, gi = !1, bi = {}, yi = !1, vi = {}, wi = !1, _i = {}, ki = !1, xi = {}, Si = !1, Ei = {}, Ai = !1, Ii = {}, Ti = !1, fr = {}, Ci = !1, pr = {}, Oi = !1, mr = {}, Pi = !1, gr = {}, Mi = !1, br = {}, Ri = !1, yr = {}, Li = !1, vr = {}, ji = !1, wr = {}, Ni = !1, _r = {}, Ui = !1, kr = {}, Bi = !1, xr = {}, Di = !1, Nt = {}, Fi = !1, Sr = {}, $i = !1;
|
|
9428
9428
|
});
|
|
9429
9429
|
function uo(a) {
|
|
9430
9430
|
throw new Error("Node.js process " + a + " is not supported by JSPM core outside of Node.js");
|
|
9431
9431
|
}
|
|
9432
|
-
function
|
|
9432
|
+
function Ou() {
|
|
9433
9433
|
!Tt || !At || (Tt = !1, At.length ? it = At.concat(it) : Zt = -1, it.length && Va());
|
|
9434
9434
|
}
|
|
9435
9435
|
function Va() {
|
|
9436
9436
|
if (!Tt) {
|
|
9437
|
-
var a = setTimeout(
|
|
9437
|
+
var a = setTimeout(Ou, 0);
|
|
9438
9438
|
Tt = !0;
|
|
9439
9439
|
for (var e = it.length; e; ) {
|
|
9440
9440
|
for (At = it, it = []; ++Zt < e; ) At && At[Zt].run();
|
|
@@ -9443,7 +9443,7 @@ function Va() {
|
|
|
9443
9443
|
At = null, Tt = !1, clearTimeout(a);
|
|
9444
9444
|
}
|
|
9445
9445
|
}
|
|
9446
|
-
function
|
|
9446
|
+
function Pu(a) {
|
|
9447
9447
|
var e = new Array(arguments.length - 1);
|
|
9448
9448
|
if (arguments.length > 1) for (var t = 1; t < arguments.length; t++) e[t - 1] = arguments[t];
|
|
9449
9449
|
it.push(new Ga(a, e)), it.length === 1 && !Tt && setTimeout(Va, 0);
|
|
@@ -9453,25 +9453,25 @@ function Ga(a, e) {
|
|
|
9453
9453
|
}
|
|
9454
9454
|
function $e() {
|
|
9455
9455
|
}
|
|
9456
|
-
function
|
|
9456
|
+
function Mu(a) {
|
|
9457
9457
|
uo("_linkedBinding");
|
|
9458
9458
|
}
|
|
9459
|
-
function
|
|
9459
|
+
function Ru(a) {
|
|
9460
9460
|
uo("dlopen");
|
|
9461
9461
|
}
|
|
9462
|
-
function
|
|
9462
|
+
function Lu() {
|
|
9463
9463
|
return [];
|
|
9464
9464
|
}
|
|
9465
|
-
function
|
|
9465
|
+
function ju() {
|
|
9466
9466
|
return [];
|
|
9467
9467
|
}
|
|
9468
|
-
function
|
|
9468
|
+
function Nu(a, e) {
|
|
9469
9469
|
if (!a) throw new Error(e || "assertion error");
|
|
9470
9470
|
}
|
|
9471
|
-
function
|
|
9471
|
+
function Uu() {
|
|
9472
9472
|
return !1;
|
|
9473
9473
|
}
|
|
9474
|
-
function
|
|
9474
|
+
function Bu() {
|
|
9475
9475
|
return ct.now() / 1e3;
|
|
9476
9476
|
}
|
|
9477
9477
|
function Gr(a) {
|
|
@@ -9481,10 +9481,10 @@ function Gr(a) {
|
|
|
9481
9481
|
function gt() {
|
|
9482
9482
|
return ho;
|
|
9483
9483
|
}
|
|
9484
|
-
function
|
|
9484
|
+
function Du(a) {
|
|
9485
9485
|
return [];
|
|
9486
9486
|
}
|
|
9487
|
-
var it, Tt, At, Zt, xo, So, Eo, Ao, Io, To, Co, Oo, Po, Mo, Ro, Lo, jo, No, Uo, Bo, Do, Fo, $o, qo, Ho, or, Wo, zo, Vo, Go, Ko, Yo,
|
|
9487
|
+
var it, Tt, At, Zt, xo, So, Eo, Ao, Io, To, Co, Oo, Po, Mo, Ro, Lo, jo, No, Uo, Bo, Do, Fo, $o, qo, Ho, or, Wo, zo, Vo, Go, Ko, Yo, Jo, Qo, Xo, Zo, es, ts, rs, ns, is, os, ss, as, ls, cs, us, hs, ds, fs, ps, ct, Kr, Er, ms, gs, bs, ys, vs, ws, _s, ks, xs, Ss, Es, ho, Ka = Ve(() => {
|
|
9488
9488
|
le(), ue(), ce(), it = [], Tt = !1, Zt = -1, Ga.prototype.run = function() {
|
|
9489
9489
|
this.fun.apply(null, this.array);
|
|
9490
9490
|
}, xo = "browser", So = "x64", Eo = "browser", Ao = { PATH: "/usr/bin", LANG: navigator.language + ".UTF-8", PWD: "/", HOME: "/home", TMP: "/tmp" }, Io = ["/usr/bin/node"], To = [], Co = "v16.8.0", Oo = {}, Po = function(a, e) {
|
|
@@ -9498,12 +9498,12 @@ var it, Tt, At, Zt, xo, So, Eo, Ao, Io, To, Co, Oo, Po, Mo, Ro, Lo, jo, No, Uo,
|
|
|
9498
9498
|
}, jo = function(a) {
|
|
9499
9499
|
}, No = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, Uo = $e, Bo = [], Do = {}, Fo = !1, $o = {}, qo = $e, Ho = $e, or = function() {
|
|
9500
9500
|
return {};
|
|
9501
|
-
}, Wo = or, zo = or, Vo = $e, Go = $e, Ko = $e, Yo = {},
|
|
9501
|
+
}, Wo = or, zo = or, Vo = $e, Go = $e, Ko = $e, Yo = {}, Jo = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, Qo = $e, Xo = $e, Zo = $e, es = $e, ts = $e, rs = $e, ns = $e, is = void 0, os = void 0, ss = void 0, as = $e, ls = 2, cs = 1, us = "/bin/usr/node", hs = 9229, ds = "node", fs = [], ps = $e, ct = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, ct.now === void 0 && (Kr = Date.now(), ct.timing && ct.timing.navigationStart && (Kr = ct.timing.navigationStart), ct.now = () => Date.now() - Kr), Er = 1e9, Gr.bigint = function(a) {
|
|
9502
9502
|
var e = Gr(a);
|
|
9503
9503
|
return typeof BigInt > "u" ? e[0] * Er + e[1] : BigInt(e[0] * Er) + BigInt(e[1]);
|
|
9504
|
-
}, ms = 10, gs = {}, bs = 0, ys = gt, vs = gt, ws = gt, _s = gt, ks = gt, xs = $e, Ss = gt, Es = gt, ho = { version: Co, versions: Oo, arch: So, platform: Eo, release: No, _rawDebug: Uo, moduleLoadList: Bo, binding: Mo, _linkedBinding:
|
|
9504
|
+
}, ms = 10, gs = {}, bs = 0, ys = gt, vs = gt, ws = gt, _s = gt, ks = gt, xs = $e, Ss = gt, Es = gt, ho = { version: Co, versions: Oo, arch: So, platform: Eo, release: No, _rawDebug: Uo, moduleLoadList: Bo, binding: Mo, _linkedBinding: Mu, _events: gs, _eventsCount: bs, _maxListeners: ms, on: gt, addListener: ys, once: vs, off: ws, removeListener: _s, removeAllListeners: ks, emit: xs, prependListener: Ss, prependOnceListener: Es, listeners: Du, domain: Do, _exiting: Fo, config: $o, dlopen: Ru, uptime: Bu, _getActiveRequests: Lu, _getActiveHandles: ju, reallyExit: qo, _kill: Ho, cpuUsage: or, resourceUsage: Wo, memoryUsage: zo, kill: Vo, exit: Go, openStdin: Ko, allowedNodeEnvironmentFlags: Yo, assert: Nu, features: Jo, _fatalExceptions: Qo, setUncaughtExceptionCaptureCallback: Xo, hasUncaughtExceptionCaptureCallback: Uu, emitWarning: Po, nextTick: Pu, _tickCallback: Zo, _debugProcess: es, _debugEnd: ts, _startProfilerIdleNotifier: rs, _stopProfilerIdleNotifier: ns, stdout: is, stdin: ss, stderr: os, abort: as, umask: Ro, chdir: jo, cwd: Lo, env: Ao, title: xo, argv: Io, execArgv: To, pid: ls, ppid: cs, execPath: us, debugPort: hs, hrtime: Gr, argv0: ds, _preload_modules: fs, setSourceMapsEnabled: ps };
|
|
9505
9505
|
});
|
|
9506
|
-
function
|
|
9506
|
+
function Fu() {
|
|
9507
9507
|
if (qi) return Ar;
|
|
9508
9508
|
qi = !0;
|
|
9509
9509
|
var a = ho;
|
|
@@ -9654,11 +9654,11 @@ function $u() {
|
|
|
9654
9654
|
}, sep: "/", delimiter: ":", win32: null, posix: null };
|
|
9655
9655
|
return o.posix = o, Ar = o, Ar;
|
|
9656
9656
|
}
|
|
9657
|
-
var Ar, qi, Hi,
|
|
9658
|
-
le(), ue(), ce(), Ka(), Ar = {}, qi = !1, Hi =
|
|
9657
|
+
var Ar, qi, Hi, $u = Ve(() => {
|
|
9658
|
+
le(), ue(), ce(), Ka(), Ar = {}, qi = !1, Hi = Fu();
|
|
9659
9659
|
}), Ya = {};
|
|
9660
|
-
Ft(Ya, { URL: () => ol, Url: () => el, default: () => qe, fileURLToPath: () =>
|
|
9661
|
-
function
|
|
9660
|
+
Ft(Ya, { URL: () => ol, Url: () => el, default: () => qe, fileURLToPath: () => Qa, format: () => tl, parse: () => il, pathToFileURL: () => Xa, resolve: () => rl, resolveObject: () => nl });
|
|
9661
|
+
function qu() {
|
|
9662
9662
|
if (Wi) return Ir;
|
|
9663
9663
|
Wi = !0;
|
|
9664
9664
|
var a = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && a ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = a && e && typeof e.get == "function" ? e.get : null, r = a && Map.prototype.forEach, o = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && o ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, i = o && n && typeof n.get == "function" ? n.get : null, s = o && Set.prototype.forEach, l = typeof WeakMap == "function" && WeakMap.prototype, c = l ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, h = 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, w = String.prototype.match, m = String.prototype.slice, _ = String.prototype.replace, x = String.prototype.toUpperCase, v = String.prototype.toLowerCase, E = RegExp.prototype.test, S = Array.prototype.concat, I = Array.prototype.join, O = Array.prototype.slice, P = Math.floor, N = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, T = Object.getOwnPropertySymbols, q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, D = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = 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) {
|
|
@@ -9681,8 +9681,8 @@ function Hu() {
|
|
|
9681
9681
|
var Ce = Ee || {};
|
|
9682
9682
|
if (oe(Ce, "quoteStyle") && Ce.quoteStyle !== "single" && Ce.quoteStyle !== "double") throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
9683
9683
|
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`');
|
|
9684
|
-
var
|
|
9685
|
-
if (typeof
|
|
9684
|
+
var Qe = oe(Ce, "customInspect") ? Ce.customInspect : !0;
|
|
9685
|
+
if (typeof Qe != "boolean" && Qe !== "symbol") throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
9686
9686
|
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`');
|
|
9687
9687
|
if (oe(Ce, "numericSeparator") && typeof Ce.numericSeparator != "boolean") throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
9688
9688
|
var Xe = Ce.numericSeparator;
|
|
@@ -9720,7 +9720,7 @@ function Hu() {
|
|
|
9720
9720
|
return typeof ie == "object" && !D ? d(Wt) : Wt;
|
|
9721
9721
|
}
|
|
9722
9722
|
if (ve(ie)) {
|
|
9723
|
-
for (var C = "<" + v.call(String(ie.nodeName)), L = ie.attributes || [], _e = 0; _e < L.length; _e++) C += " " + L[_e].name + "=" + M(
|
|
9723
|
+
for (var C = "<" + v.call(String(ie.nodeName)), L = ie.attributes || [], _e = 0; _e < L.length; _e++) C += " " + L[_e].name + "=" + M(Q(L[_e].value), "double", Ce);
|
|
9724
9724
|
return C += ">", ie.childNodes && ie.childNodes.length && (C += "..."), C += "</" + v.call(String(ie.nodeName)) + ">", C;
|
|
9725
9725
|
}
|
|
9726
9726
|
if (be(ie)) {
|
|
@@ -9732,9 +9732,9 @@ function Hu() {
|
|
|
9732
9732
|
var Se = ke(ie, Ge);
|
|
9733
9733
|
return !("cause" in Error.prototype) && "cause" in ie && !ae.call(ie, "cause") ? "{ [" + String(ie) + "] " + I.call(S.call("[cause]: " + Ge(ie.cause), Se), ", ") + " }" : Se.length === 0 ? "[" + String(ie) + "]" : "{ [" + String(ie) + "] " + I.call(Se, ", ") + " }";
|
|
9734
9734
|
}
|
|
9735
|
-
if (typeof ie == "object" &&
|
|
9735
|
+
if (typeof ie == "object" && Qe) {
|
|
9736
9736
|
if (Z && typeof ie[Z] == "function" && re) return re(ie, { depth: Mt - Ae });
|
|
9737
|
-
if (
|
|
9737
|
+
if (Qe !== "symbol" && typeof ie.inspect == "function") return ie.inspect();
|
|
9738
9738
|
}
|
|
9739
9739
|
if (de(ie)) {
|
|
9740
9740
|
var Ne = [];
|
|
@@ -9752,14 +9752,14 @@ function Hu() {
|
|
|
9752
9752
|
if (me(ie)) return k("WeakSet");
|
|
9753
9753
|
if (ye(ie)) return k("WeakRef");
|
|
9754
9754
|
if (ne(ie)) return d(Ge(Number(ie)));
|
|
9755
|
-
if (
|
|
9755
|
+
if (J(ie)) return d(Ge(N.call(ie)));
|
|
9756
9756
|
if (W(ie)) return d(f.call(ie));
|
|
9757
9757
|
if (j(ie)) return d(Ge(String(ie)));
|
|
9758
9758
|
if (typeof window < "u" && ie === window) return "{ [object Window] }";
|
|
9759
9759
|
if (typeof globalThis < "u" && ie === globalThis || typeof Tr < "u" && ie === Tr) return "{ [object globalThis] }";
|
|
9760
9760
|
if (!te(ie) && !we(ie)) {
|
|
9761
|
-
var
|
|
9762
|
-
return
|
|
9761
|
+
var Je = ke(ie, Ge), zt = Y ? Y(ie) === Object.prototype : ie instanceof Object || ie.constructor === Object, Vt = ie instanceof Object ? "" : "null prototype", Gt = !zt && U && Object(ie) === ie && U in ie ? m.call(R(ie), 8, -1) : Vt ? "Object" : "", ir = zt || typeof ie.constructor != "function" ? "" : ie.constructor.name ? ie.constructor.name + " " : "", kt = ir + (Gt || Vt ? "[" + I.call(S.call([], Gt || [], Vt || []), ": ") + "] " : "");
|
|
9762
|
+
return Je.length === 0 ? kt + "{}" : et ? kt + "{" + he(Je, et) + "}" : kt + "{ " + I.call(Je, ", ") + " }";
|
|
9763
9763
|
}
|
|
9764
9764
|
return String(ie);
|
|
9765
9765
|
};
|
|
@@ -9767,7 +9767,7 @@ function Hu() {
|
|
|
9767
9767
|
var Ae = (Ee.quoteStyle || ie) === "double" ? '"' : "'";
|
|
9768
9768
|
return Ae + z + Ae;
|
|
9769
9769
|
}
|
|
9770
|
-
function
|
|
9770
|
+
function Q(z) {
|
|
9771
9771
|
return _.call(String(z), /"/g, """);
|
|
9772
9772
|
}
|
|
9773
9773
|
function be(z) {
|
|
@@ -9801,7 +9801,7 @@ function Hu() {
|
|
|
9801
9801
|
}
|
|
9802
9802
|
return !1;
|
|
9803
9803
|
}
|
|
9804
|
-
function
|
|
9804
|
+
function J(z) {
|
|
9805
9805
|
if (!z || typeof z != "object" || !N) return !1;
|
|
9806
9806
|
try {
|
|
9807
9807
|
return N.call(z), !0;
|
|
@@ -9942,21 +9942,21 @@ function Hu() {
|
|
|
9942
9942
|
Ae.length = z.length;
|
|
9943
9943
|
for (var Ie = 0; Ie < z.length; Ie++) Ae[Ie] = oe(z, Ie) ? ie(z[Ie], z) : "";
|
|
9944
9944
|
}
|
|
9945
|
-
var Ce = typeof T == "function" ? T(z) : [],
|
|
9945
|
+
var Ce = typeof T == "function" ? T(z) : [], Qe;
|
|
9946
9946
|
if (D) {
|
|
9947
|
-
|
|
9948
|
-
for (var Xe = 0; Xe < Ce.length; Xe++)
|
|
9947
|
+
Qe = {};
|
|
9948
|
+
for (var Xe = 0; Xe < Ce.length; Xe++) Qe["$" + Ce[Xe]] = Ce[Xe];
|
|
9949
9949
|
}
|
|
9950
|
-
for (var De in z) oe(z, De) && (Ee && String(Number(De)) === De && De < z.length || D &&
|
|
9950
|
+
for (var De in z) oe(z, De) && (Ee && String(Number(De)) === De && De < z.length || D && Qe["$" + De] instanceof Symbol || (E.call(/[^\w$]/, De) ? Ae.push(ie(De, z) + ": " + ie(z[De], z)) : Ae.push(De + ": " + ie(z[De], z))));
|
|
9951
9951
|
if (typeof T == "function") for (var Ze = 0; Ze < Ce.length; Ze++) ae.call(z, Ce[Ze]) && Ae.push("[" + ie(Ce[Ze]) + "]: " + ie(z[Ce[Ze]], z));
|
|
9952
9952
|
return Ae;
|
|
9953
9953
|
}
|
|
9954
9954
|
return Ir;
|
|
9955
9955
|
}
|
|
9956
|
-
function
|
|
9956
|
+
function Hu() {
|
|
9957
9957
|
if (zi) return Cr;
|
|
9958
9958
|
zi = !0;
|
|
9959
|
-
var a = Ht(), e =
|
|
9959
|
+
var a = Ht(), e = Tu(), t = qu(), r = rr(), o = a("%WeakMap%", !0), n = a("%Map%", !0), i = e("WeakMap.prototype.get", !0), s = e("WeakMap.prototype.set", !0), l = e("WeakMap.prototype.has", !0), c = e("Map.prototype.get", !0), u = e("Map.prototype.set", !0), h = e("Map.prototype.has", !0), p = function(y, w) {
|
|
9960
9960
|
for (var m = y, _; (_ = m.next) !== null; m = _) if (_.key === w) return m.next = _.next, _.next = y.next, y.next = _, _;
|
|
9961
9961
|
}, b = function(y, w) {
|
|
9962
9962
|
var m = p(y, w);
|
|
@@ -9999,7 +9999,7 @@ function fo() {
|
|
|
9999
9999
|
return String(r);
|
|
10000
10000
|
} }, RFC1738: t.RFC1738, RFC3986: t.RFC3986 }, Or;
|
|
10001
10001
|
}
|
|
10002
|
-
function
|
|
10002
|
+
function Ja() {
|
|
10003
10003
|
if (Gi) return Pr;
|
|
10004
10004
|
Gi = !0;
|
|
10005
10005
|
var a = fo(), e = Object.prototype.hasOwnProperty, t = Array.isArray, r = (function() {
|
|
@@ -10098,10 +10098,10 @@ function Qa() {
|
|
|
10098
10098
|
};
|
|
10099
10099
|
return Pr = { arrayToObject: n, assign: s, combine: f, compact: h, decode: l, encode: u, isBuffer: b, isRegExp: p, maybeMap: g, merge: i }, Pr;
|
|
10100
10100
|
}
|
|
10101
|
-
function
|
|
10101
|
+
function Wu() {
|
|
10102
10102
|
if (Ki) return Mr;
|
|
10103
10103
|
Ki = !0;
|
|
10104
|
-
var a =
|
|
10104
|
+
var a = Hu(), e = Ja(), t = fo(), r = Object.prototype.hasOwnProperty, o = { brackets: function(g) {
|
|
10105
10105
|
return g + "[]";
|
|
10106
10106
|
}, comma: "comma", indices: function(g, y) {
|
|
10107
10107
|
return g + "[" + y + "]";
|
|
@@ -10130,8 +10130,8 @@ function zu() {
|
|
|
10130
10130
|
}
|
|
10131
10131
|
if (h(V) || e.isBuffer(V)) {
|
|
10132
10132
|
if (I) {
|
|
10133
|
-
var
|
|
10134
|
-
return [D(
|
|
10133
|
+
var Q = U ? w : I(w, u.encoder, ae, "key", q);
|
|
10134
|
+
return [D(Q) + "=" + D(I(V, u.encoder, ae, "value", q))];
|
|
10135
10135
|
}
|
|
10136
10136
|
return [D(w) + "=" + D(String(V))];
|
|
10137
10137
|
}
|
|
@@ -10149,7 +10149,7 @@ function zu() {
|
|
|
10149
10149
|
for (var ne = 0; ne < te.length; ++ne) {
|
|
10150
10150
|
var W = te[ne], K = typeof W == "object" && typeof W.value < "u" ? W.value : V[W];
|
|
10151
10151
|
if (!(E && K === null)) {
|
|
10152
|
-
var
|
|
10152
|
+
var J = N && S ? W.replace(/\./g, "%2E") : W, ge = n(V) ? typeof m == "function" ? m(j, J) : j : j + (N ? "." + J : "[" + J + "]");
|
|
10153
10153
|
Y.set(y, F);
|
|
10154
10154
|
var oe = a();
|
|
10155
10155
|
oe.set(p, Y), s(be, g(K, ge, m, _, x, v, E, S, m === "comma" && U && n(V) ? null : I, O, P, N, T, q, D, U, ae, oe));
|
|
@@ -10190,10 +10190,10 @@ function zu() {
|
|
|
10190
10190
|
return m.charsetSentinel && (m.charset === "iso-8859-1" ? T += "utf8=%26%2310003%3B&" : T += "utf8=%E2%9C%93&"), N.length > 0 ? T + N : "";
|
|
10191
10191
|
}, Mr;
|
|
10192
10192
|
}
|
|
10193
|
-
function
|
|
10193
|
+
function zu() {
|
|
10194
10194
|
if (Yi) return Rr;
|
|
10195
10195
|
Yi = !0;
|
|
10196
|
-
var a =
|
|
10196
|
+
var a = Ja(), e = Object.prototype.hasOwnProperty, t = Array.isArray, r = { allowDots: !1, allowEmptyArrays: !1, allowPrototypes: !1, allowSparse: !1, arrayLimit: 20, charset: "utf-8", charsetSentinel: !1, comma: !1, decodeDotInKeys: !1, decoder: a.decode, delimiter: "&", depth: 5, duplicates: "combine", ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictDepth: !1, strictNullHandling: !1 }, o = function(p) {
|
|
10197
10197
|
return p.replace(/&#(\d+);/g, function(b, f) {
|
|
10198
10198
|
return String.fromCharCode(parseInt(f, 10));
|
|
10199
10199
|
});
|
|
@@ -10263,21 +10263,21 @@ function Vu() {
|
|
|
10263
10263
|
return f.allowSparse === !0 ? y : a.compact(y);
|
|
10264
10264
|
}, Rr;
|
|
10265
10265
|
}
|
|
10266
|
-
function
|
|
10267
|
-
if (
|
|
10268
|
-
|
|
10269
|
-
var a =
|
|
10266
|
+
function Vu() {
|
|
10267
|
+
if (Ji) return Lr;
|
|
10268
|
+
Ji = !0;
|
|
10269
|
+
var a = Wu(), e = zu(), t = fo();
|
|
10270
10270
|
return Lr = { formats: t, parse: e, stringify: a }, Lr;
|
|
10271
10271
|
}
|
|
10272
|
-
function
|
|
10273
|
-
if (
|
|
10274
|
-
|
|
10272
|
+
function Gu() {
|
|
10273
|
+
if (Qi) return vt;
|
|
10274
|
+
Qi = !0;
|
|
10275
10275
|
var a = yt;
|
|
10276
10276
|
function e() {
|
|
10277
10277
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
10278
10278
|
}
|
|
10279
10279
|
var t = /^([a-z0-9.+-]+:)/i, r = /:[0-9]*$/, o = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, n = ["<", ">", '"', "`", " ", "\r", `
|
|
10280
|
-
`, " "], i = ["{", "}", "|", "\\", "^", "`"].concat(n), s = ["'"].concat(i), l = ["%", "/", "?", ";", "#"].concat(s), c = ["/", "?", "#"], u = 255, h = /^[+a-z0-9A-Z_-]{0,63}$/, p = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, b = { javascript: !0, "javascript:": !0 }, f = { javascript: !0, "javascript:": !0 }, g = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, y =
|
|
10280
|
+
`, " "], i = ["{", "}", "|", "\\", "^", "`"].concat(n), s = ["'"].concat(i), l = ["%", "/", "?", ";", "#"].concat(s), c = ["/", "?", "#"], u = 255, h = /^[+a-z0-9A-Z_-]{0,63}$/, p = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, b = { javascript: !0, "javascript:": !0 }, f = { javascript: !0, "javascript:": !0 }, g = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, y = Vu();
|
|
10281
10281
|
function w(v, E, S) {
|
|
10282
10282
|
if (v && typeof v == "object" && v instanceof e) return v;
|
|
10283
10283
|
var I = new e();
|
|
@@ -10315,20 +10315,20 @@ function Ku() {
|
|
|
10315
10315
|
}
|
|
10316
10316
|
Y === -1 && (Y = T.length), this.host = T.slice(0, Y), T = T.slice(Y), this.parseHost(), this.hostname = this.hostname || "";
|
|
10317
10317
|
var M = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
10318
|
-
if (!M) for (var
|
|
10319
|
-
var te =
|
|
10318
|
+
if (!M) for (var Q = this.hostname.split(/\./), V = 0, be = Q.length; V < be; V++) {
|
|
10319
|
+
var te = Q[V];
|
|
10320
10320
|
if (te && !te.match(h)) {
|
|
10321
10321
|
for (var we = "", G = 0, j = te.length; G < j; G++) te.charCodeAt(G) > 127 ? we += "x" : we += te[G];
|
|
10322
10322
|
if (!we.match(h)) {
|
|
10323
|
-
var ne =
|
|
10323
|
+
var ne = Q.slice(0, V), W = Q.slice(V + 1), K = te.match(p);
|
|
10324
10324
|
K && (ne.push(K[1]), W.unshift(K[2])), W.length && (T = "/" + W.join(".") + T), this.hostname = ne.join(".");
|
|
10325
10325
|
break;
|
|
10326
10326
|
}
|
|
10327
10327
|
}
|
|
10328
10328
|
}
|
|
10329
10329
|
this.hostname.length > u ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), M || (this.hostname = a.toASCII(this.hostname));
|
|
10330
|
-
var
|
|
10331
|
-
this.host = ge +
|
|
10330
|
+
var J = this.port ? ":" + this.port : "", ge = this.hostname || "";
|
|
10331
|
+
this.host = ge + J, this.href += this.host, M && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), T[0] !== "/" && (T = "/" + T));
|
|
10332
10332
|
}
|
|
10333
10333
|
if (!b[U]) for (var V = 0, be = s.length; V < be; V++) {
|
|
10334
10334
|
var oe = s[V];
|
|
@@ -10341,8 +10341,8 @@ function Ku() {
|
|
|
10341
10341
|
$ !== -1 && (this.hash = T.substr($), T = T.slice(0, $));
|
|
10342
10342
|
var ee = T.indexOf("?");
|
|
10343
10343
|
if (ee !== -1 ? (this.search = T.substr(ee), this.query = T.substr(ee + 1), E && (this.query = y.parse(this.query)), T = T.slice(0, ee)) : E && (this.search = "", this.query = {}), T && (this.pathname = T), g[U] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
10344
|
-
var
|
|
10345
|
-
this.path =
|
|
10344
|
+
var J = this.pathname || "", de = this.search || "";
|
|
10345
|
+
this.path = J + de;
|
|
10346
10346
|
}
|
|
10347
10347
|
return this.href = this.format(), this;
|
|
10348
10348
|
};
|
|
@@ -10403,40 +10403,40 @@ function Ku() {
|
|
|
10403
10403
|
}
|
|
10404
10404
|
return S.slashes = S.slashes || v.slashes, S.href = S.format(), S;
|
|
10405
10405
|
}
|
|
10406
|
-
var re = S.pathname && S.pathname.charAt(0) === "/", F = v.host || v.pathname && v.pathname.charAt(0) === "/", Z = F || re || S.host && v.pathname, M = Z,
|
|
10407
|
-
if (te && (S.hostname = "", S.port = null, S.host && (
|
|
10408
|
-
else if (be.length)
|
|
10406
|
+
var re = S.pathname && S.pathname.charAt(0) === "/", F = v.host || v.pathname && v.pathname.charAt(0) === "/", Z = F || re || S.host && v.pathname, M = Z, Q = S.pathname && S.pathname.split("/") || [], be = v.pathname && v.pathname.split("/") || [], te = S.protocol && !g[S.protocol];
|
|
10407
|
+
if (te && (S.hostname = "", S.port = null, S.host && (Q[0] === "" ? Q[0] = S.host : Q.unshift(S.host)), S.host = "", v.protocol && (v.hostname = null, v.port = null, v.host && (be[0] === "" ? be[0] = v.host : be.unshift(v.host)), v.host = null), Z = Z && (be[0] === "" || Q[0] === "")), F) S.host = v.host || v.host === "" ? v.host : S.host, S.hostname = v.hostname || v.hostname === "" ? v.hostname : S.hostname, S.search = v.search, S.query = v.query, Q = be;
|
|
10408
|
+
else if (be.length) Q || (Q = []), Q.pop(), Q = Q.concat(be), S.search = v.search, S.query = v.query;
|
|
10409
10409
|
else if (v.search != null) {
|
|
10410
10410
|
if (te) {
|
|
10411
|
-
S.host =
|
|
10411
|
+
S.host = Q.shift(), S.hostname = S.host;
|
|
10412
10412
|
var we = S.host && S.host.indexOf("@") > 0 ? S.host.split("@") : !1;
|
|
10413
10413
|
we && (S.auth = we.shift(), S.hostname = we.shift(), S.host = S.hostname);
|
|
10414
10414
|
}
|
|
10415
10415
|
return S.search = v.search, S.query = v.query, (S.pathname !== null || S.search !== null) && (S.path = (S.pathname ? S.pathname : "") + (S.search ? S.search : "")), S.href = S.format(), S;
|
|
10416
10416
|
}
|
|
10417
|
-
if (!
|
|
10418
|
-
for (var G =
|
|
10419
|
-
if (!Z && !M) for (; ne--; ne)
|
|
10420
|
-
Z &&
|
|
10421
|
-
var K =
|
|
10417
|
+
if (!Q.length) return S.pathname = null, S.search ? S.path = "/" + S.search : S.path = null, S.href = S.format(), S;
|
|
10418
|
+
for (var G = Q.slice(-1)[0], j = (S.host || v.host || Q.length > 1) && (G === "." || G === "..") || G === "", ne = 0, W = Q.length; W >= 0; W--) G = Q[W], G === "." ? Q.splice(W, 1) : G === ".." ? (Q.splice(W, 1), ne++) : ne && (Q.splice(W, 1), ne--);
|
|
10419
|
+
if (!Z && !M) for (; ne--; ne) Q.unshift("..");
|
|
10420
|
+
Z && Q[0] !== "" && (!Q[0] || Q[0].charAt(0) !== "/") && Q.unshift(""), j && Q.join("/").substr(-1) !== "/" && Q.push("");
|
|
10421
|
+
var K = Q[0] === "" || Q[0] && Q[0].charAt(0) === "/";
|
|
10422
10422
|
if (te) {
|
|
10423
|
-
S.hostname = K ? "" :
|
|
10423
|
+
S.hostname = K ? "" : Q.length ? Q.shift() : "", S.host = S.hostname;
|
|
10424
10424
|
var we = S.host && S.host.indexOf("@") > 0 ? S.host.split("@") : !1;
|
|
10425
10425
|
we && (S.auth = we.shift(), S.hostname = we.shift(), S.host = S.hostname);
|
|
10426
10426
|
}
|
|
10427
|
-
return Z = Z || S.host &&
|
|
10427
|
+
return Z = Z || S.host && Q.length, Z && !K && Q.unshift(""), Q.length > 0 ? S.pathname = Q.join("/") : (S.pathname = null, S.path = null), (S.pathname !== null || S.search !== null) && (S.path = (S.pathname ? S.pathname : "") + (S.search ? S.search : "")), S.auth = v.auth || S.auth, S.slashes = S.slashes || v.slashes, S.href = S.format(), S;
|
|
10428
10428
|
}, e.prototype.parseHost = function() {
|
|
10429
10429
|
var v = this.host, E = r.exec(v);
|
|
10430
10430
|
E && (E = E[0], E !== ":" && (this.port = E.substr(1)), v = v.substr(0, v.length - E.length)), v && (this.hostname = v);
|
|
10431
10431
|
}, vt.parse = w, vt.resolve = _, vt.resolveObject = x, vt.format = m, vt.Url = e, vt;
|
|
10432
10432
|
}
|
|
10433
|
-
function
|
|
10433
|
+
function Qa(a) {
|
|
10434
10434
|
if (typeof a == "string") a = new URL(a);
|
|
10435
10435
|
else if (!(a instanceof URL)) throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");
|
|
10436
10436
|
if (a.protocol !== "file:") throw new Deno.errors.InvalidData("invalid url scheme");
|
|
10437
|
-
return Ur ?
|
|
10437
|
+
return Ur ? Ku(a) : Yu(a);
|
|
10438
10438
|
}
|
|
10439
|
-
function
|
|
10439
|
+
function Ku(a) {
|
|
10440
10440
|
let e = a.hostname, t = a.pathname;
|
|
10441
10441
|
for (let r = 0; r < t.length; r++) if (t[r] === "%") {
|
|
10442
10442
|
let o = t.codePointAt(r + 2) || 32;
|
|
@@ -10449,7 +10449,7 @@ function Yu(a) {
|
|
|
10449
10449
|
return t.slice(1);
|
|
10450
10450
|
}
|
|
10451
10451
|
}
|
|
10452
|
-
function
|
|
10452
|
+
function Yu(a) {
|
|
10453
10453
|
if (a.hostname !== "") throw new Deno.errors.InvalidData("invalid file url hostname");
|
|
10454
10454
|
let e = a.pathname;
|
|
10455
10455
|
for (let t = 0; t < e.length; t++) if (e[t] === "%") {
|
|
@@ -10465,9 +10465,9 @@ function Xa(a) {
|
|
|
10465
10465
|
return e.includes("%") && (e = e.replace(hl, "%25")), !Ur && e.includes("\\") && (e = e.replace(dl, "%5C")), e.includes(`
|
|
10466
10466
|
`) && (e = e.replace(fl, "%0A")), e.includes("\r") && (e = e.replace(pl, "%0D")), e.includes(" ") && (e = e.replace(ml, "%09")), r.pathname = e, r;
|
|
10467
10467
|
}
|
|
10468
|
-
var Za, Ir, Wi, Tr, Cr, zi, Or, Vi, Pr, Gi, Mr, Ki, Rr, Yi, Lr,
|
|
10469
|
-
le(), ue(), ce(),
|
|
10470
|
-
}),
|
|
10468
|
+
var Za, Ir, Wi, Tr, Cr, zi, Or, Vi, Pr, Gi, Mr, Ki, Rr, Yi, Lr, Ji, vt, Qi, qe, As, el, tl, rl, nl, il, ol, sl, al, ll, cl, Ur, ul, hl, dl, fl, pl, ml, Ju = Ve(() => {
|
|
10469
|
+
le(), ue(), ce(), fu(), Cu(), $u(), Ka(), Za = Object.freeze(/* @__PURE__ */ Object.create(null)), Ir = {}, Wi = !1, Tr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, Cr = {}, zi = !1, Or = {}, Vi = !1, Pr = {}, Gi = !1, Mr = {}, Ki = !1, Rr = {}, Yi = !1, Lr = {}, Ji = !1, vt = {}, Qi = !1, qe = Gu(), qe.parse, qe.resolve, qe.resolveObject, qe.format, qe.Url, As = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, qe.URL = typeof URL < "u" ? URL : null, qe.pathToFileURL = Xa, qe.fileURLToPath = Qa, el = qe.Url, tl = qe.format, rl = qe.resolve, nl = qe.resolveObject, il = qe.parse, ol = qe.URL, sl = 92, al = 47, ll = 97, cl = 122, Ur = As === "win32", ul = /\//g, hl = /%/g, dl = /\\/g, fl = /\n/g, pl = /\r/g, ml = /\t/g;
|
|
10470
|
+
}), Qu = pe((a, e) => {
|
|
10471
10471
|
le(), ue(), ce(), e.exports = function() {
|
|
10472
10472
|
throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object");
|
|
10473
10473
|
};
|
|
@@ -10521,7 +10521,7 @@ var Za, Ir, Wi, Tr, Cr, zi, Or, Vi, Pr, Gi, Mr, Ki, Rr, Yi, Lr, Qi, vt, Ji, qe,
|
|
|
10521
10521
|
return w && w.__esModule ? w : { default: w };
|
|
10522
10522
|
};
|
|
10523
10523
|
Object.defineProperty(a, "__esModule", { value: !0 }), a.streamBuilder = a.browserStreamBuilder = void 0;
|
|
10524
|
-
var t = (Be(), Pe(Ue)), r = e(
|
|
10524
|
+
var t = (Be(), Pe(Ue)), r = e(Qu()), o = e(ht()), n = Pt(), i = e(Wr()), s = po(), l = (0, o.default)("mqttjs:ws"), c = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"];
|
|
10525
10525
|
function u(w, m) {
|
|
10526
10526
|
let _ = `${w.protocol}://${w.hostname}:${w.port}${w.path}`;
|
|
10527
10527
|
return typeof w.transformWsUrl == "function" && (_ = w.transformWsUrl(_, w, m)), _;
|
|
@@ -10632,7 +10632,7 @@ var gl, bl = Ve(() => {
|
|
|
10632
10632
|
a.default = i;
|
|
10633
10633
|
}), vl = {};
|
|
10634
10634
|
Ft(vl, { default: () => wl });
|
|
10635
|
-
var wl,
|
|
10635
|
+
var wl, Xu = Ve(() => {
|
|
10636
10636
|
le(), ue(), ce(), wl = {};
|
|
10637
10637
|
}), Ts = pe((a) => {
|
|
10638
10638
|
le(), ue(), ce();
|
|
@@ -10640,7 +10640,7 @@ var wl, Zu = Ve(() => {
|
|
|
10640
10640
|
return c && c.__esModule ? c : { default: c };
|
|
10641
10641
|
};
|
|
10642
10642
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
10643
|
-
var t = (
|
|
10643
|
+
var t = (Xu(), Pe(vl)), r = e((bl(), Pe(mo))), o = e(ht()), n = e(yl()), i = (0, o.default)("mqttjs:tls");
|
|
10644
10644
|
function s(c) {
|
|
10645
10645
|
let { host: u, port: h, socksProxy: p, ...b } = c;
|
|
10646
10646
|
if (p !== void 0) {
|
|
@@ -10771,7 +10771,7 @@ var wl, Zu = Ve(() => {
|
|
|
10771
10771
|
return o = f.my, o.connectSocket({ url: y, protocols: g }), n = l(), i = new r.BufferedDuplex(f, n, o), h(), i;
|
|
10772
10772
|
};
|
|
10773
10773
|
a.default = p;
|
|
10774
|
-
}),
|
|
10774
|
+
}), Zu = pe((a) => {
|
|
10775
10775
|
le(), ue(), ce();
|
|
10776
10776
|
var e = a && a.__importDefault || function(h) {
|
|
10777
10777
|
return h && h.__esModule ? h : { default: h };
|
|
@@ -10885,11 +10885,11 @@ var wl, Zu = Ve(() => {
|
|
|
10885
10885
|
a.MqttClient = i.default;
|
|
10886
10886
|
var s = n(Na());
|
|
10887
10887
|
a.DefaultMessageIdProvider = s.default;
|
|
10888
|
-
var l = n(
|
|
10888
|
+
var l = n(hu());
|
|
10889
10889
|
a.UniqueMessageIdProvider = l.default;
|
|
10890
10890
|
var c = n(va());
|
|
10891
10891
|
a.Store = c.default;
|
|
10892
|
-
var u = r(
|
|
10892
|
+
var u = r(Zu());
|
|
10893
10893
|
a.connect = u.default, Object.defineProperty(a, "connectAsync", { enumerable: !0, get: function() {
|
|
10894
10894
|
return u.connectAsync;
|
|
10895
10895
|
} });
|
|
@@ -10899,7 +10899,7 @@ var wl, Zu = Ve(() => {
|
|
|
10899
10899
|
Object.defineProperty(a, "ReasonCodes", { enumerable: !0, get: function() {
|
|
10900
10900
|
return p.ReasonCodes;
|
|
10901
10901
|
} });
|
|
10902
|
-
}),
|
|
10902
|
+
}), eh = pe((a) => {
|
|
10903
10903
|
le(), ue(), ce();
|
|
10904
10904
|
var e = a && a.__createBinding || (Object.create ? function(i, s, l, c) {
|
|
10905
10905
|
c === void 0 && (c = l);
|
|
@@ -10934,25 +10934,25 @@ var wl, Zu = Ve(() => {
|
|
|
10934
10934
|
var n = r(Ps());
|
|
10935
10935
|
a.default = n, o(Ps(), a);
|
|
10936
10936
|
});
|
|
10937
|
-
const
|
|
10938
|
-
const
|
|
10937
|
+
const th = eh();
|
|
10938
|
+
const rh = {
|
|
10939
10939
|
inbound: "apps/{appId}/users/{userId}/messages/{conversationId}/clientadded",
|
|
10940
10940
|
inboundUpdate: "apps/{appId}/users/{userId}/messages/{conversationId}/{messageId}/update",
|
|
10941
10941
|
outbound: "apps/{appId}/outgoing/users/{userId}/messages/{conversationId}/outgoing",
|
|
10942
10942
|
presence: "apps/{appId}/users/{userId}/presence/{clientId}",
|
|
10943
10943
|
wildcardSubscribe: "apps/{appId}/users/{userId}/#"
|
|
10944
|
-
},
|
|
10944
|
+
}, nh = 300, ih = {
|
|
10945
10945
|
templateId: "7",
|
|
10946
10946
|
type: "link",
|
|
10947
10947
|
isDeepLink: !0
|
|
10948
|
-
},
|
|
10948
|
+
}, oh = {
|
|
10949
10949
|
channelType: "group",
|
|
10950
10950
|
channel: "chat21",
|
|
10951
10951
|
requestChannel: "chat21",
|
|
10952
10952
|
platform: "WEBSITE",
|
|
10953
10953
|
medium: "CHATBUDDY"
|
|
10954
10954
|
};
|
|
10955
|
-
class
|
|
10955
|
+
class sh {
|
|
10956
10956
|
client = null;
|
|
10957
10957
|
config;
|
|
10958
10958
|
currentToken;
|
|
@@ -10979,7 +10979,7 @@ class ah {
|
|
|
10979
10979
|
inboundRegex;
|
|
10980
10980
|
inboundUpdateRegex;
|
|
10981
10981
|
constructor(e) {
|
|
10982
|
-
this.config = e, this.currentToken = e.jwtToken, this.appId = e.appId ?? "tilechat", this.clientId = e.clientId ?? this.freshClientId(), this.topics = { ...
|
|
10982
|
+
this.config = e, this.currentToken = e.jwtToken, this.appId = e.appId ?? "tilechat", this.clientId = e.clientId ?? this.freshClientId(), this.topics = { ...rh, ...e.topicTemplates ?? {} }, this.maxReconnectAttempts = e.maxReconnectAttempts ?? 1 / 0, this.reconnectMaxDelayMs = e.reconnectMaxDelayMs ?? 3e4, this.inboundRegex = this.buildTopicRegex(
|
|
10983
10983
|
this.topics.inbound,
|
|
10984
10984
|
["conversationId"]
|
|
10985
10985
|
), this.inboundUpdateRegex = this.buildTopicRegex(
|
|
@@ -11031,7 +11031,7 @@ class ah {
|
|
|
11031
11031
|
() => c("connect-timeout"),
|
|
11032
11032
|
r + 500
|
|
11033
11033
|
);
|
|
11034
|
-
this.client =
|
|
11034
|
+
this.client = th.connect(this.config.mqttEndpoint, o), this.client.on("connect", () => {
|
|
11035
11035
|
if (this.connectedAt = Date.now(), s || l(() => n()), this.debugLog("CONNECT", { endpoint: this.config.mqttEndpoint, clientId: this.clientId }), this.notifyStateChange(!0), this.config.enablePresence !== !1) {
|
|
11036
11036
|
const h = this.config.presencePayloadConnected ?? { connected: !0 };
|
|
11037
11037
|
this.client.publish(e, JSON.stringify(h), { qos: 0, retain: !1 }), this.debugLog("PUBLISH", { topic: e, payload: h });
|
|
@@ -11096,9 +11096,9 @@ class ah {
|
|
|
11096
11096
|
publishFileMessage(e, t) {
|
|
11097
11097
|
if (!this.client) return;
|
|
11098
11098
|
const r = {
|
|
11099
|
-
...
|
|
11099
|
+
...ih,
|
|
11100
11100
|
...this.config.fileTemplate ?? {},
|
|
11101
|
-
...
|
|
11101
|
+
...ah(t)
|
|
11102
11102
|
}, o = {
|
|
11103
11103
|
metadata: {
|
|
11104
11104
|
contentType: "300",
|
|
@@ -11137,7 +11137,7 @@ class ah {
|
|
|
11137
11137
|
* Send a read receipt for a message. Tiledesk widgets publish
|
|
11138
11138
|
* `{"status":300}` to apps/{appId}/users/{userId}/messages/{convId}/{msgId}/update.
|
|
11139
11139
|
*/
|
|
11140
|
-
publishReadReceipt(e, t, r =
|
|
11140
|
+
publishReadReceipt(e, t, r = nh) {
|
|
11141
11141
|
if (!this.client) return;
|
|
11142
11142
|
const o = this.renderTemplate(this.topics.inboundUpdate, { conversationId: e, messageId: t });
|
|
11143
11143
|
this.client.publish(o, JSON.stringify({ status: r }), {
|
|
@@ -11268,7 +11268,7 @@ class ah {
|
|
|
11268
11268
|
this.messageHandlers.forEach((c) => c(o, l));
|
|
11269
11269
|
}
|
|
11270
11270
|
buildOutgoingEnvelope(e, t) {
|
|
11271
|
-
const r = { ...
|
|
11271
|
+
const r = { ...oh, ...this.config.messageDefaults ?? {} }, o = this.config.senderFullname ?? this.config.userName ?? this.config.userId, n = this.config.recipientFullnameResolver?.(e), i = {
|
|
11272
11272
|
projectId: this.config.projectId,
|
|
11273
11273
|
...r.departmentId ? { departmentId: r.departmentId } : {},
|
|
11274
11274
|
...this.config.userName ? { userFullname: this.config.userName } : {},
|
|
@@ -11342,16 +11342,16 @@ class ah {
|
|
|
11342
11342
|
return new RegExp(`^${r}$`);
|
|
11343
11343
|
}
|
|
11344
11344
|
}
|
|
11345
|
-
function
|
|
11345
|
+
function ah(a) {
|
|
11346
11346
|
const e = {};
|
|
11347
11347
|
for (const [t, r] of Object.entries(a))
|
|
11348
11348
|
r !== void 0 && (e[t] = r);
|
|
11349
11349
|
return e;
|
|
11350
11350
|
}
|
|
11351
|
-
function
|
|
11351
|
+
function lh(a, e) {
|
|
11352
11352
|
return (a.sender ?? "").toString() === e;
|
|
11353
11353
|
}
|
|
11354
|
-
function
|
|
11354
|
+
function ch(a, e) {
|
|
11355
11355
|
const t = (a.sender ?? "").toString(), r = e.systemSenders ?? ["metadata", "system"], o = e.botSenderPrefix ?? "bot_";
|
|
11356
11356
|
return t ? t === e.userId ? "user" : t.startsWith(o) ? "assistant" : r.includes(t) ? "system" : "agent" : "system";
|
|
11357
11357
|
}
|
|
@@ -11372,7 +11372,7 @@ function _l(a) {
|
|
|
11372
11372
|
}
|
|
11373
11373
|
return e;
|
|
11374
11374
|
}
|
|
11375
|
-
function
|
|
11375
|
+
function uh(a) {
|
|
11376
11376
|
const e = _l(a);
|
|
11377
11377
|
if (e.contentType !== "300") return null;
|
|
11378
11378
|
const t = e.payload, r = t && Array.isArray(t.elements) ? t.elements : null;
|
|
@@ -11386,10 +11386,10 @@ function hh(a) {
|
|
|
11386
11386
|
};
|
|
11387
11387
|
}
|
|
11388
11388
|
function Ms(a, e, t) {
|
|
11389
|
-
const r =
|
|
11389
|
+
const r = ch(a, t), o = _l(a), n = uh(a);
|
|
11390
11390
|
let i = "";
|
|
11391
11391
|
o.innerMessage ? i = o.innerMessage : typeof a.text == "string" && (a.text.trim().startsWith("{") ? o.contentType !== "300" && (i = a.text) : i = a.text);
|
|
11392
|
-
const s = typeof a.message_id == "string" ? a.message_id : `td_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`, l = typeof a.timestamp == "number" ? new Date(a.timestamp).toISOString() : (/* @__PURE__ */ new Date()).toISOString(), c = r === "assistant" ? "assistant" : r === "agent" ? "agent" : r === "system" ? "system" : "user", u = typeof a.status == "number" ?
|
|
11392
|
+
const s = typeof a.message_id == "string" ? a.message_id : `td_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`, l = typeof a.timestamp == "number" ? new Date(a.timestamp).toISOString() : (/* @__PURE__ */ new Date()).toISOString(), c = r === "assistant" ? "assistant" : r === "agent" ? "agent" : r === "system" ? "system" : "user", u = typeof a.status == "number" ? hh(a.status) : "delivered", h = {
|
|
11393
11393
|
id: s,
|
|
11394
11394
|
externalId: s,
|
|
11395
11395
|
conversationId: e,
|
|
@@ -11416,10 +11416,10 @@ function Ms(a, e, t) {
|
|
|
11416
11416
|
}
|
|
11417
11417
|
]), { message: h, template: o };
|
|
11418
11418
|
}
|
|
11419
|
-
function
|
|
11419
|
+
function hh(a) {
|
|
11420
11420
|
return a < 0 ? "error" : a >= 250 ? "read" : a >= 150 ? "delivered" : "sent";
|
|
11421
11421
|
}
|
|
11422
|
-
class
|
|
11422
|
+
class dh extends qs {
|
|
11423
11423
|
connection = null;
|
|
11424
11424
|
tiledesk = null;
|
|
11425
11425
|
api;
|
|
@@ -11432,7 +11432,7 @@ class fh extends qs {
|
|
|
11432
11432
|
historyAdapter;
|
|
11433
11433
|
tiledeskUnsubs = [];
|
|
11434
11434
|
constructor(e, t) {
|
|
11435
|
-
super(), this.config = e, this.mode = e.transport ?? "aikaara", this.uploadAdapter = t?.uploadAdapter ?? null, this.historyAdapter = t?.historyAdapter ?? null, this.api = new
|
|
11435
|
+
super(), this.config = e, this.mode = e.transport ?? "aikaara", this.uploadAdapter = t?.uploadAdapter ?? null, this.historyAdapter = t?.historyAdapter ?? null, this.api = new zl(e.baseUrl, e.userToken, e.apiKey, e.authToken), this.messageStore = new Vl(), this.conversationManager = new Gl(e.conversationId), this.usesAikaara() && (this.connection = new Wl(e), this.connection.on("connection:state", (r) => {
|
|
11436
11436
|
this.emit("connection:state", r), this.config.onConnectionStateChange?.(r);
|
|
11437
11437
|
}), this.connection.on("error", (r) => {
|
|
11438
11438
|
this.emit("error", r), this.config.onError?.(r);
|
|
@@ -11452,7 +11452,7 @@ class fh extends qs {
|
|
|
11452
11452
|
throw new Error("AikaaraChatClient: tiledesk transport requires `config.tiledesk` (TiledeskTransportConfig)");
|
|
11453
11453
|
if (!t?.userId)
|
|
11454
11454
|
throw new Error("AikaaraChatClient: tiledesk transport requires `config.tiledeskIdentity.userId`");
|
|
11455
|
-
this.tiledesk = new
|
|
11455
|
+
this.tiledesk = new sh({
|
|
11456
11456
|
...e,
|
|
11457
11457
|
userId: t.userId,
|
|
11458
11458
|
userName: t.userName ?? e.userName,
|
|
@@ -11647,7 +11647,7 @@ class fh extends qs {
|
|
|
11647
11647
|
systemSenders: this.config.tiledesk?.messageDefaults?.attributes?.systemSenders
|
|
11648
11648
|
});
|
|
11649
11649
|
if (this.mode === "dual" && n.role === "assistant") return;
|
|
11650
|
-
if (
|
|
11650
|
+
if (lh(e, o)) {
|
|
11651
11651
|
const c = this.messageStore.reconcileOptimistic(n);
|
|
11652
11652
|
if (c) {
|
|
11653
11653
|
this.emit("message:updated", c);
|
|
@@ -11796,12 +11796,12 @@ const Rs = {
|
|
|
11796
11796
|
doc: "application/msword",
|
|
11797
11797
|
json: "application/json"
|
|
11798
11798
|
};
|
|
11799
|
-
function
|
|
11799
|
+
function fh(a) {
|
|
11800
11800
|
const e = a.lastIndexOf(".");
|
|
11801
11801
|
return e < 0 || e === a.length - 1 ? "" : a.slice(e + 1).toLowerCase();
|
|
11802
11802
|
}
|
|
11803
|
-
function
|
|
11804
|
-
const r =
|
|
11803
|
+
function ph(a, e, t) {
|
|
11804
|
+
const r = fh(a.name || "");
|
|
11805
11805
|
if (r && e && e[r]) return e[r];
|
|
11806
11806
|
const o = a.type;
|
|
11807
11807
|
return o && o.trim().length > 0 ? o : r && Rs[r] ? Rs[r] : t;
|
|
@@ -11809,7 +11809,7 @@ function mh(a, e, t) {
|
|
|
11809
11809
|
function Yr(a, e) {
|
|
11810
11810
|
return a.replace(/\{(\w+)\}/g, (t, r) => e[r] ?? "");
|
|
11811
11811
|
}
|
|
11812
|
-
function
|
|
11812
|
+
function mh(a, e) {
|
|
11813
11813
|
const t = e.split(".");
|
|
11814
11814
|
let r = a;
|
|
11815
11815
|
for (const o of t)
|
|
@@ -11818,11 +11818,11 @@ function gh(a, e) {
|
|
|
11818
11818
|
else return "";
|
|
11819
11819
|
return typeof r == "string" ? r : "";
|
|
11820
11820
|
}
|
|
11821
|
-
function
|
|
11821
|
+
function gh(a) {
|
|
11822
11822
|
const e = a.signedUrlPath ?? "data.s3SignedUrl";
|
|
11823
11823
|
return {
|
|
11824
11824
|
async upload(t, r) {
|
|
11825
|
-
const o = t.name || `upload-${Date.now()}`, n =
|
|
11825
|
+
const o = t.name || `upload-${Date.now()}`, n = ph(
|
|
11826
11826
|
t,
|
|
11827
11827
|
a.contentTypeMap,
|
|
11828
11828
|
a.contentTypeFallback ?? "application/octet-stream"
|
|
@@ -11848,7 +11848,7 @@ function bh(a) {
|
|
|
11848
11848
|
});
|
|
11849
11849
|
if (!h.ok)
|
|
11850
11850
|
throw new Error(`Sign request failed: ${h.status}`);
|
|
11851
|
-
const p = await h.json().catch(() => ({})), b =
|
|
11851
|
+
const p = await h.json().catch(() => ({})), b = mh(p, e);
|
|
11852
11852
|
if (!b) throw new Error(`Sign response missing path "${e}"`);
|
|
11853
11853
|
const f = a.s3HostRewrite ? b.replace(/^https:\/\/[^/]+/i, a.s3HostRewrite) : b, g = await fetch(f, {
|
|
11854
11854
|
method: "PUT",
|
|
@@ -11915,9 +11915,9 @@ function kl(a) {
|
|
|
11915
11915
|
}
|
|
11916
11916
|
};
|
|
11917
11917
|
}
|
|
11918
|
-
const
|
|
11919
|
-
function
|
|
11920
|
-
const e = a.apiBase.replace(/\/$/, ""), t = a.pageSize ?? 200, r = a.pathTemplate ??
|
|
11918
|
+
const bh = "/tilechat/{userId}/conversations/{conversationId}/messages?pageSize={pageSize}";
|
|
11919
|
+
function yh(a) {
|
|
11920
|
+
const e = a.apiBase.replace(/\/$/, ""), t = a.pageSize ?? 200, r = a.pathTemplate ?? bh;
|
|
11921
11921
|
return {
|
|
11922
11922
|
async fetchMessages(o, n) {
|
|
11923
11923
|
const i = r.replace("{userId}", encodeURIComponent(n.userId)).replace("{conversationId}", encodeURIComponent(o)).replace("{appId}", encodeURIComponent(n.appId ?? "tilechat")).replace("{projectId}", encodeURIComponent(n.projectId ?? "")).replace("{pageSize}", String(t)), s = i.startsWith("http") ? i : `${e}${i.startsWith("/") ? i : `/${i}`}`, l = {
|
|
@@ -11941,7 +11941,7 @@ function vh(a) {
|
|
|
11941
11941
|
}
|
|
11942
11942
|
};
|
|
11943
11943
|
}
|
|
11944
|
-
const
|
|
11944
|
+
const vh = "^[A-Z]{5}[0-9]{4}[A-Z]$", wh = "^[A-Z]{4}[0-9]{5}[A-Z]$", _h = "^[A-Z]{4}0[A-Z0-9]{6}$", xl = "^[0-9]{6}$", kh = {
|
|
11945
11945
|
id: "house-property",
|
|
11946
11946
|
title: "House Property",
|
|
11947
11947
|
icon: "🏠",
|
|
@@ -12002,13 +12002,13 @@ const wh = "^[A-Z]{5}[0-9]{4}[A-Z]$", _h = "^[A-Z]{4}[0-9]{5}[A-Z]$", kh = "^[A-
|
|
|
12002
12002
|
showWhen: { field: "hasCoOwnedProperty", equals: !0 },
|
|
12003
12003
|
fields: [
|
|
12004
12004
|
{ id: "coOwnerName", type: "text", label: "Co-Owner Name", required: !0 },
|
|
12005
|
-
{ id: "coOwnerPan", type: "text", label: "Co-Owner PAN", required: !0, pattern:
|
|
12005
|
+
{ id: "coOwnerPan", type: "text", label: "Co-Owner PAN", required: !0, pattern: vh, maxLength: 10 },
|
|
12006
12006
|
{ id: "coOwnerShare", type: "text", label: "Co-Owner Share (%)", placeholder: "e.g. 50", maxLength: 5 }
|
|
12007
12007
|
]
|
|
12008
12008
|
}
|
|
12009
12009
|
],
|
|
12010
12010
|
submitLabel: "Save"
|
|
12011
|
-
},
|
|
12011
|
+
}, xh = {
|
|
12012
12012
|
id: "salary-hra",
|
|
12013
12013
|
title: "Salary / HRA / Allowances",
|
|
12014
12014
|
icon: "💰",
|
|
@@ -12027,7 +12027,7 @@ const wh = "^[A-Z]{5}[0-9]{4}[A-Z]$", _h = "^[A-Z]{4}[0-9]{5}[A-Z]$", kh = "^[A-
|
|
|
12027
12027
|
type: "text",
|
|
12028
12028
|
label: "TAN (Tax Deduction Account Number)",
|
|
12029
12029
|
required: !0,
|
|
12030
|
-
pattern:
|
|
12030
|
+
pattern: wh,
|
|
12031
12031
|
maxLength: 10
|
|
12032
12032
|
}
|
|
12033
12033
|
]
|
|
@@ -12047,7 +12047,7 @@ const wh = "^[A-Z]{5}[0-9]{4}[A-Z]$", _h = "^[A-Z]{4}[0-9]{5}[A-Z]$", kh = "^[A-
|
|
|
12047
12047
|
}
|
|
12048
12048
|
],
|
|
12049
12049
|
submitLabel: "Save"
|
|
12050
|
-
},
|
|
12050
|
+
}, Sh = {
|
|
12051
12051
|
id: "deductions",
|
|
12052
12052
|
title: "Deductions",
|
|
12053
12053
|
icon: "📋",
|
|
@@ -12082,7 +12082,7 @@ const wh = "^[A-Z]{5}[0-9]{4}[A-Z]$", _h = "^[A-Z]{4}[0-9]{5}[A-Z]$", kh = "^[A-
|
|
|
12082
12082
|
}
|
|
12083
12083
|
],
|
|
12084
12084
|
submitLabel: "Save"
|
|
12085
|
-
},
|
|
12085
|
+
}, Eh = {
|
|
12086
12086
|
id: "other-sources",
|
|
12087
12087
|
title: "Income from Other Sources",
|
|
12088
12088
|
icon: "💵",
|
|
@@ -12107,7 +12107,7 @@ const wh = "^[A-Z]{5}[0-9]{4}[A-Z]$", _h = "^[A-Z]{4}[0-9]{5}[A-Z]$", kh = "^[A-
|
|
|
12107
12107
|
}
|
|
12108
12108
|
],
|
|
12109
12109
|
submitLabel: "Save"
|
|
12110
|
-
},
|
|
12110
|
+
}, Ah = {
|
|
12111
12111
|
id: "capital-gains",
|
|
12112
12112
|
title: "Capital Gains",
|
|
12113
12113
|
icon: "📈",
|
|
@@ -12136,7 +12136,7 @@ const wh = "^[A-Z]{5}[0-9]{4}[A-Z]$", _h = "^[A-Z]{4}[0-9]{5}[A-Z]$", kh = "^[A-
|
|
|
12136
12136
|
}
|
|
12137
12137
|
],
|
|
12138
12138
|
submitLabel: "Save"
|
|
12139
|
-
},
|
|
12139
|
+
}, Ih = {
|
|
12140
12140
|
id: "crypto-income",
|
|
12141
12141
|
title: "Crypto Income",
|
|
12142
12142
|
icon: "🪙",
|
|
@@ -12153,7 +12153,7 @@ const wh = "^[A-Z]{5}[0-9]{4}[A-Z]$", _h = "^[A-Z]{4}[0-9]{5}[A-Z]$", kh = "^[A-
|
|
|
12153
12153
|
}
|
|
12154
12154
|
],
|
|
12155
12155
|
submitLabel: "Save"
|
|
12156
|
-
},
|
|
12156
|
+
}, Th = {
|
|
12157
12157
|
id: "business-profession",
|
|
12158
12158
|
title: "Business / Profession",
|
|
12159
12159
|
icon: "💼",
|
|
@@ -12171,7 +12171,7 @@ const wh = "^[A-Z]{5}[0-9]{4}[A-Z]$", _h = "^[A-Z]{4}[0-9]{5}[A-Z]$", kh = "^[A-
|
|
|
12171
12171
|
}
|
|
12172
12172
|
],
|
|
12173
12173
|
submitLabel: "Save"
|
|
12174
|
-
},
|
|
12174
|
+
}, Ch = {
|
|
12175
12175
|
id: "agricultural-income",
|
|
12176
12176
|
title: "Agricultural Income",
|
|
12177
12177
|
icon: "🌾",
|
|
@@ -12180,7 +12180,7 @@ const wh = "^[A-Z]{5}[0-9]{4}[A-Z]$", _h = "^[A-Z]{4}[0-9]{5}[A-Z]$", kh = "^[A-
|
|
|
12180
12180
|
{ id: "agricultureIncomeGt5Lakh", type: "yes-no", label: "Is agricultural income above ₹5,00,000?" }
|
|
12181
12181
|
],
|
|
12182
12182
|
submitLabel: "Save"
|
|
12183
|
-
},
|
|
12183
|
+
}, Oh = {
|
|
12184
12184
|
id: "exempt-income",
|
|
12185
12185
|
title: "Other Exempt Income",
|
|
12186
12186
|
icon: "🧾",
|
|
@@ -12189,7 +12189,7 @@ const wh = "^[A-Z]{5}[0-9]{4}[A-Z]$", _h = "^[A-Z]{4}[0-9]{5}[A-Z]$", kh = "^[A-
|
|
|
12189
12189
|
{ id: "exemptIncomeNature", type: "text", label: "Nature of Exempt Income", placeholder: "e.g. PPF interest, gratuity" }
|
|
12190
12190
|
],
|
|
12191
12191
|
submitLabel: "Save"
|
|
12192
|
-
},
|
|
12192
|
+
}, Ph = {
|
|
12193
12193
|
id: "tax-paid-tds",
|
|
12194
12194
|
title: "Tax Paid / TDS",
|
|
12195
12195
|
icon: "🧮",
|
|
@@ -12213,7 +12213,7 @@ const wh = "^[A-Z]{5}[0-9]{4}[A-Z]$", _h = "^[A-Z]{4}[0-9]{5}[A-Z]$", kh = "^[A-
|
|
|
12213
12213
|
}
|
|
12214
12214
|
],
|
|
12215
12215
|
submitLabel: "Save"
|
|
12216
|
-
},
|
|
12216
|
+
}, Mh = {
|
|
12217
12217
|
id: "bank-details",
|
|
12218
12218
|
title: "Personal / Bank Details",
|
|
12219
12219
|
icon: "🏦",
|
|
@@ -12224,7 +12224,7 @@ const wh = "^[A-Z]{5}[0-9]{4}[A-Z]$", _h = "^[A-Z]{4}[0-9]{5}[A-Z]$", kh = "^[A-
|
|
|
12224
12224
|
title: "Bank Account (for refund)",
|
|
12225
12225
|
fields: [
|
|
12226
12226
|
{ id: "bankAccountNumber", type: "text", label: "Bank Account Number", required: !0 },
|
|
12227
|
-
{ id: "bankIfscCode", type: "text", label: "IFSC Code", required: !0, pattern:
|
|
12227
|
+
{ id: "bankIfscCode", type: "text", label: "IFSC Code", required: !0, pattern: _h, maxLength: 11 }
|
|
12228
12228
|
]
|
|
12229
12229
|
},
|
|
12230
12230
|
{
|
|
@@ -12242,7 +12242,7 @@ const wh = "^[A-Z]{5}[0-9]{4}[A-Z]$", _h = "^[A-Z]{4}[0-9]{5}[A-Z]$", kh = "^[A-
|
|
|
12242
12242
|
}
|
|
12243
12243
|
],
|
|
12244
12244
|
submitLabel: "Save"
|
|
12245
|
-
},
|
|
12245
|
+
}, Rh = {
|
|
12246
12246
|
id: "have-a-question",
|
|
12247
12247
|
title: "I only have a question",
|
|
12248
12248
|
icon: "❓",
|
|
@@ -12258,23 +12258,23 @@ const wh = "^[A-Z]{5}[0-9]{4}[A-Z]$", _h = "^[A-Z]{4}[0-9]{5}[A-Z]$", kh = "^[A-
|
|
|
12258
12258
|
}
|
|
12259
12259
|
],
|
|
12260
12260
|
submitLabel: "Send Question"
|
|
12261
|
-
},
|
|
12262
|
-
|
|
12263
|
-
Ch,
|
|
12264
|
-
Ih,
|
|
12265
|
-
Ah,
|
|
12261
|
+
}, Lh = [
|
|
12262
|
+
xh,
|
|
12266
12263
|
Th,
|
|
12264
|
+
Ah,
|
|
12265
|
+
Eh,
|
|
12266
|
+
Ih,
|
|
12267
|
+
Ch,
|
|
12267
12268
|
Oh,
|
|
12269
|
+
kh,
|
|
12270
|
+
Sh,
|
|
12268
12271
|
Ph,
|
|
12269
|
-
xh,
|
|
12270
|
-
Eh,
|
|
12271
12272
|
Mh,
|
|
12272
|
-
Rh
|
|
12273
|
-
Lh
|
|
12273
|
+
Rh
|
|
12274
12274
|
];
|
|
12275
|
-
function
|
|
12275
|
+
function jh(a, e) {
|
|
12276
12276
|
const t = a || {}, r = {
|
|
12277
|
-
userId:
|
|
12277
|
+
userId: Bh(e.userId),
|
|
12278
12278
|
assessmentYear: e.assessmentYear,
|
|
12279
12279
|
isRevised: e.isRevised || "N"
|
|
12280
12280
|
};
|
|
@@ -12293,12 +12293,12 @@ function Nh(a, e) {
|
|
|
12293
12293
|
amount: Oe(t.immovableAssetCost)
|
|
12294
12294
|
};
|
|
12295
12295
|
Object.values(o).some((s) => s !== void 0) && (r.immovableAsset = [o]);
|
|
12296
|
-
const n =
|
|
12296
|
+
const n = Jr(t.hpDetails, Nh);
|
|
12297
12297
|
n.length && (r.hpDetails = n);
|
|
12298
|
-
const i =
|
|
12298
|
+
const i = Jr(t.salaryDetails, Uh);
|
|
12299
12299
|
if (i.length) {
|
|
12300
12300
|
r.salaryIncome = i;
|
|
12301
|
-
const s =
|
|
12301
|
+
const s = Jr(t.salaryDetails, (c) => ({
|
|
12302
12302
|
grossSalary: Oe(c.grossSalary),
|
|
12303
12303
|
employerName: Me(c.employerName)
|
|
12304
12304
|
}));
|
|
@@ -12308,13 +12308,13 @@ function Nh(a, e) {
|
|
|
12308
12308
|
}
|
|
12309
12309
|
return Br(r);
|
|
12310
12310
|
}
|
|
12311
|
-
function
|
|
12311
|
+
function Nh(a) {
|
|
12312
12312
|
const e = {
|
|
12313
12313
|
loanType: "HOME_LOAN",
|
|
12314
12314
|
loanTakenFrom: Me(a.loanTakenFrom),
|
|
12315
12315
|
bankOrInstituteName: Me(a.lenderName),
|
|
12316
12316
|
loanAccountNo: Me(a.loanAccountNumber),
|
|
12317
|
-
loanSanctionDate:
|
|
12317
|
+
loanSanctionDate: Dh(a.sanctionDate),
|
|
12318
12318
|
totalLoanAmount: Oe(a.totalLoanAmount),
|
|
12319
12319
|
interest: Oe(a.homeLoanInterest)
|
|
12320
12320
|
}, t = Object.entries(e).some(([r, o]) => r !== "loanType" && o !== void 0);
|
|
@@ -12335,7 +12335,7 @@ function Uh(a) {
|
|
|
12335
12335
|
loanDetails: t ? [e] : void 0
|
|
12336
12336
|
};
|
|
12337
12337
|
}
|
|
12338
|
-
function
|
|
12338
|
+
function Uh(a) {
|
|
12339
12339
|
return {
|
|
12340
12340
|
grossSalaryIncome: Oe(a.grossSalary),
|
|
12341
12341
|
salary: Oe(a.basicSalary),
|
|
@@ -12351,7 +12351,7 @@ function Bh(a) {
|
|
|
12351
12351
|
}
|
|
12352
12352
|
};
|
|
12353
12353
|
}
|
|
12354
|
-
function
|
|
12354
|
+
function Bh(a) {
|
|
12355
12355
|
if (a === void 0 || a === "") return;
|
|
12356
12356
|
const e = Number(a);
|
|
12357
12357
|
return Number.isFinite(e) && String(e) === String(a) ? e : a;
|
|
@@ -12369,7 +12369,7 @@ function Me(a) {
|
|
|
12369
12369
|
function Xi(a) {
|
|
12370
12370
|
return a === !0 || a === !1 ? a : void 0;
|
|
12371
12371
|
}
|
|
12372
|
-
function
|
|
12372
|
+
function Dh(a) {
|
|
12373
12373
|
const e = Me(a);
|
|
12374
12374
|
if (e)
|
|
12375
12375
|
return e.includes("T") ? e : /^\d{4}-\d{2}-\d{2}$/.test(e) ? `${e}T00:00:00Z` : e;
|
|
@@ -12377,7 +12377,7 @@ function Fh(a) {
|
|
|
12377
12377
|
function Sl(a) {
|
|
12378
12378
|
return Array.isArray(a) ? a.filter((e) => e && typeof e == "object") : [];
|
|
12379
12379
|
}
|
|
12380
|
-
function
|
|
12380
|
+
function Jr(a, e) {
|
|
12381
12381
|
return Sl(a).map((t) => Br(e(t))).filter((t) => t !== void 0);
|
|
12382
12382
|
}
|
|
12383
12383
|
function Br(a) {
|
|
@@ -12402,36 +12402,29 @@ function Ls() {
|
|
|
12402
12402
|
return console.warn(
|
|
12403
12403
|
"[smart-edit] API disabled: window.__aikaara_runtime__.getChatJwt is missing — the chat was not mounted via the SDK mountFromSlug path."
|
|
12404
12404
|
), null;
|
|
12405
|
-
const t =
|
|
12406
|
-
|
|
12407
|
-
|
|
12408
|
-
|
|
12409
|
-
|
|
12410
|
-
|
|
12411
|
-
|
|
12412
|
-
|
|
12413
|
-
|
|
12414
|
-
|
|
12415
|
-
|
|
12416
|
-
headers: Vh(r.auth?.headers),
|
|
12417
|
-
assessmentYear: r.itr?.assessmentYear || Kh(),
|
|
12405
|
+
const t = a.__aikaara_descriptor__ ?? {}, r = qh(t);
|
|
12406
|
+
if (!r)
|
|
12407
|
+
return console.warn(
|
|
12408
|
+
"[smart-edit] API disabled: could not resolve a TaxBuddy API host from the descriptor (cloud / upload / pan / leader endpoints)."
|
|
12409
|
+
), null;
|
|
12410
|
+
const o = Hh(e.slug), n = typeof o?.tenantJwt == "string" ? o.tenantJwt : "", i = e.getChatJwt, s = async () => n || await i(), l = (o && o.userId != null && o.userId !== "" ? String(o.userId) : zh(e.identity)) || void 0;
|
|
12411
|
+
return console.info("[smart-edit] API config — base:", r, "· userId:", l ?? "(none)"), {
|
|
12412
|
+
baseUrl: r,
|
|
12413
|
+
getToken: s,
|
|
12414
|
+
headers: Wh(t.auth?.headers),
|
|
12415
|
+
assessmentYear: t.itr?.assessmentYear || Vh(),
|
|
12418
12416
|
isRevised: "N",
|
|
12419
|
-
userId:
|
|
12420
|
-
submitUrl:
|
|
12421
|
-
}
|
|
12422
|
-
}
|
|
12423
|
-
function $h(a, e) {
|
|
12424
|
-
return !a || !e ? void 0 : `${a.replace(/\/+$/, "")}/api/v1/projects/by-slug/${encodeURIComponent(e)}/itr/automation-data`;
|
|
12417
|
+
userId: l,
|
|
12418
|
+
submitUrl: t.itr?.automationSubmitUrl || void 0
|
|
12419
|
+
};
|
|
12425
12420
|
}
|
|
12426
|
-
async function
|
|
12427
|
-
const e = await a.getToken(), t = a.userId
|
|
12421
|
+
async function Fh(a) {
|
|
12422
|
+
const e = await a.getToken(), t = a.userId;
|
|
12428
12423
|
if (!t)
|
|
12429
|
-
throw new Error(
|
|
12430
|
-
|
|
12431
|
-
|
|
12432
|
-
|
|
12433
|
-
isRevised: a.isRevised
|
|
12434
|
-
}), o = await fetch(`${a.baseUrl}/itr/automation/eligible?${r}`, {
|
|
12424
|
+
throw new Error(
|
|
12425
|
+
"[smart-edit] no userId for GET /itr/latest-itr (aikaara_sso identity missing)"
|
|
12426
|
+
);
|
|
12427
|
+
const r = await fetch(`${a.baseUrl}/itr/latest-itr?userId=${encodeURIComponent(t)}`, {
|
|
12435
12428
|
method: "GET",
|
|
12436
12429
|
headers: {
|
|
12437
12430
|
accept: "application/json",
|
|
@@ -12439,18 +12432,18 @@ async function qh(a) {
|
|
|
12439
12432
|
...a.headers
|
|
12440
12433
|
}
|
|
12441
12434
|
});
|
|
12442
|
-
if (!
|
|
12443
|
-
const
|
|
12444
|
-
throw new Error(`[smart-edit] GET /itr/
|
|
12435
|
+
if (!r.ok) {
|
|
12436
|
+
const o = await r.text().catch(() => "");
|
|
12437
|
+
throw new Error(`[smart-edit] GET /itr/latest-itr → ${r.status} ${o.slice(0, 200)}`);
|
|
12445
12438
|
}
|
|
12446
|
-
return
|
|
12439
|
+
return El(await r.json().catch(() => ({})));
|
|
12447
12440
|
}
|
|
12448
|
-
async function
|
|
12449
|
-
const t = await a.getToken(), r = a.userId
|
|
12441
|
+
async function $h(a, e) {
|
|
12442
|
+
const t = await a.getToken(), r = a.userId, o = jh(e, {
|
|
12450
12443
|
userId: r,
|
|
12451
12444
|
assessmentYear: a.assessmentYear,
|
|
12452
12445
|
isRevised: a.isRevised
|
|
12453
|
-
}), n = a.submitUrl || `${a.baseUrl}/itr/v1/
|
|
12446
|
+
}), n = a.submitUrl || `${a.baseUrl}/itr/v1/automation/data`, i = {
|
|
12454
12447
|
accept: "application/json",
|
|
12455
12448
|
"content-type": "application/json",
|
|
12456
12449
|
authorization: `Bearer ${t}`,
|
|
@@ -12466,22 +12459,38 @@ async function Hh(a, e) {
|
|
|
12466
12459
|
const l = await s.text().catch(() => "");
|
|
12467
12460
|
throw new Error(`[smart-edit] PUT ${n} → ${s.status} ${l.slice(0, 200)}`);
|
|
12468
12461
|
}
|
|
12469
|
-
return
|
|
12462
|
+
return El(await s.json().catch(() => ({})));
|
|
12470
12463
|
}
|
|
12471
|
-
function
|
|
12472
|
-
|
|
12473
|
-
|
|
12474
|
-
|
|
12464
|
+
function qh(a) {
|
|
12465
|
+
const e = [
|
|
12466
|
+
a.cloud?.listEndpoint,
|
|
12467
|
+
a.cloud?.downloadEndpoint,
|
|
12468
|
+
a.upload?.signEndpoint,
|
|
12469
|
+
a.login?.pan?.basicPanEndpoint,
|
|
12470
|
+
a.login?.pan?.panDetailEndpoint,
|
|
12471
|
+
a.methodPicker?.leaderAssignmentEndpoint
|
|
12472
|
+
];
|
|
12473
|
+
for (const t of e)
|
|
12474
|
+
if (!(typeof t != "string" || !t))
|
|
12475
|
+
try {
|
|
12476
|
+
const r = new URL(t);
|
|
12477
|
+
if (/(^|\.)taxbuddy\.com$/i.test(r.hostname)) return r.origin;
|
|
12478
|
+
} catch {
|
|
12479
|
+
}
|
|
12480
|
+
return null;
|
|
12475
12481
|
}
|
|
12476
|
-
function
|
|
12477
|
-
if (!a) return null;
|
|
12482
|
+
function Hh(a) {
|
|
12483
|
+
if (!a || typeof localStorage > "u") return null;
|
|
12478
12484
|
try {
|
|
12479
|
-
|
|
12485
|
+
const e = localStorage.getItem(`aikaara_sso:${a}`);
|
|
12486
|
+
if (!e) return null;
|
|
12487
|
+
const t = JSON.parse(e);
|
|
12488
|
+
return t && typeof t.identity == "object" && t.identity !== null ? t.identity : null;
|
|
12480
12489
|
} catch {
|
|
12481
12490
|
return null;
|
|
12482
12491
|
}
|
|
12483
12492
|
}
|
|
12484
|
-
function
|
|
12493
|
+
function Wh(a) {
|
|
12485
12494
|
const e = {};
|
|
12486
12495
|
if (!a) return e;
|
|
12487
12496
|
const t = /^(authorization|content-type|accept)$/i;
|
|
@@ -12489,35 +12498,23 @@ function Vh(a) {
|
|
|
12489
12498
|
!t.test(r) && typeof o == "string" && (e[r] = o);
|
|
12490
12499
|
return e;
|
|
12491
12500
|
}
|
|
12492
|
-
function
|
|
12501
|
+
function zh(a) {
|
|
12493
12502
|
if (!a) return;
|
|
12494
12503
|
const e = a.userId ?? a.id ?? a.ext_uid ?? a.extUid;
|
|
12495
12504
|
return e == null || e === "" ? void 0 : String(e);
|
|
12496
12505
|
}
|
|
12497
|
-
function El(a
|
|
12498
|
-
try {
|
|
12499
|
-
const t = a.split(".")[1];
|
|
12500
|
-
if (!t) return "";
|
|
12501
|
-
const o = JSON.parse(
|
|
12502
|
-
atob(t.replace(/-/g, "+").replace(/_/g, "/"))
|
|
12503
|
-
)[e];
|
|
12504
|
-
return o == null ? "" : String(o);
|
|
12505
|
-
} catch {
|
|
12506
|
-
return "";
|
|
12507
|
-
}
|
|
12508
|
-
}
|
|
12509
|
-
function Al(a) {
|
|
12506
|
+
function El(a) {
|
|
12510
12507
|
if (a && typeof a == "object") {
|
|
12511
12508
|
const e = a;
|
|
12512
12509
|
return e.data && typeof e.data == "object" ? e.data : e;
|
|
12513
12510
|
}
|
|
12514
12511
|
return {};
|
|
12515
12512
|
}
|
|
12516
|
-
function
|
|
12513
|
+
function Vh() {
|
|
12517
12514
|
const a = /* @__PURE__ */ new Date(), e = a.getMonth() >= 3 ? a.getFullYear() : a.getFullYear() - 1;
|
|
12518
12515
|
return `${e}-${e + 1}`;
|
|
12519
12516
|
}
|
|
12520
|
-
class
|
|
12517
|
+
class Gh {
|
|
12521
12518
|
client;
|
|
12522
12519
|
panel;
|
|
12523
12520
|
bubble;
|
|
@@ -12529,7 +12526,7 @@ class Yh {
|
|
|
12529
12526
|
isEmbed = !1;
|
|
12530
12527
|
smartEditModal = null;
|
|
12531
12528
|
constructor(e, t, r) {
|
|
12532
|
-
this.client = new
|
|
12529
|
+
this.client = new dh(e, {
|
|
12533
12530
|
uploadAdapter: r?.uploadAdapter,
|
|
12534
12531
|
historyAdapter: r?.historyAdapter
|
|
12535
12532
|
}), this.isEmbed = e.display === "embed", this.bubble = t.querySelector("aikaara-chat-bubble"), this.panel = t.querySelector(".aikaara-panel"), this.header = t.querySelector("aikaara-chat-header"), this.messageList = t.querySelector("aikaara-message-list"), this.input = t.querySelector("aikaara-chat-input"), this.errorBanner = t.querySelector("aikaara-error-banner"), e.welcomeMessage && this.messageList.setWelcomeMessage(e.welcomeMessage), e.showTimestamps !== void 0 && this.messageList.setShowTimestamps(e.showTimestamps), (e.linkHandlers || e.getLinkBearer) && this.messageList.setLinkConfig(e.linkHandlers ?? [], e.getLinkBearer), e.chatActions !== void 0 && this.header.setActions(e.chatActions), this.wireEvents();
|
|
@@ -12656,11 +12653,11 @@ class Yh {
|
|
|
12656
12653
|
*/
|
|
12657
12654
|
async openSmartEdit() {
|
|
12658
12655
|
const e = this.ensureSmartEditModal();
|
|
12659
|
-
e.open({ schemas:
|
|
12656
|
+
e.open({ schemas: Lh, data: {} });
|
|
12660
12657
|
const t = Ls();
|
|
12661
12658
|
if (!(!t || !t.baseUrl))
|
|
12662
12659
|
try {
|
|
12663
|
-
const r = await
|
|
12660
|
+
const r = await Fh(t);
|
|
12664
12661
|
e.setData(r);
|
|
12665
12662
|
} catch (r) {
|
|
12666
12663
|
console.warn("[smart-edit] fetch failed", r), this.errorBanner.show(
|
|
@@ -12692,7 +12689,7 @@ class Yh {
|
|
|
12692
12689
|
return;
|
|
12693
12690
|
}
|
|
12694
12691
|
try {
|
|
12695
|
-
await
|
|
12692
|
+
await $h(t, e);
|
|
12696
12693
|
} catch (r) {
|
|
12697
12694
|
console.warn("[smart-edit] save failed", r), this.errorBanner.show(
|
|
12698
12695
|
"Failed to save your ITR details. Please try again.",
|
|
@@ -12708,7 +12705,7 @@ class Yh {
|
|
|
12708
12705
|
}, 200)));
|
|
12709
12706
|
}
|
|
12710
12707
|
}
|
|
12711
|
-
class
|
|
12708
|
+
class Kh extends HTMLElement {
|
|
12712
12709
|
shadow;
|
|
12713
12710
|
controller = null;
|
|
12714
12711
|
_config = {};
|
|
@@ -12754,13 +12751,13 @@ class Qh extends HTMLElement {
|
|
|
12754
12751
|
apiKey: this.getAttribute("api-key") || this._config.apiKey,
|
|
12755
12752
|
title: this.getAttribute("title") || this._config.title || "Chat",
|
|
12756
12753
|
subtitle: this.getAttribute("subtitle") || this._config.subtitle,
|
|
12757
|
-
theme: this.getAttribute("theme") || this._config.theme ||
|
|
12754
|
+
theme: this.getAttribute("theme") || this._config.theme || ql,
|
|
12758
12755
|
primaryColor: this.getAttribute("primary-color") || this._config.primaryColor || yo,
|
|
12759
|
-
position: this.getAttribute("position") || this._config.position ||
|
|
12760
|
-
width: Number(this.getAttribute("width")) || this._config.width ||
|
|
12761
|
-
height: Number(this.getAttribute("height")) || this._config.height ||
|
|
12762
|
-
fontFamily: this._config.fontFamily ||
|
|
12763
|
-
borderRadius: this._config.borderRadius ??
|
|
12756
|
+
position: this.getAttribute("position") || this._config.position || $l,
|
|
12757
|
+
width: Number(this.getAttribute("width")) || this._config.width || Ul,
|
|
12758
|
+
height: Number(this.getAttribute("height")) || this._config.height || Bl,
|
|
12759
|
+
fontFamily: this._config.fontFamily || Fl,
|
|
12760
|
+
borderRadius: this._config.borderRadius ?? Dl,
|
|
12764
12761
|
placeholder: this.getAttribute("placeholder") || this._config.placeholder || vo,
|
|
12765
12762
|
welcomeMessage: this.getAttribute("welcome-message") || this._config.welcomeMessage,
|
|
12766
12763
|
avatarUrl: this.getAttribute("avatar-url") || this._config.avatarUrl,
|
|
@@ -12774,7 +12771,7 @@ class Qh extends HTMLElement {
|
|
|
12774
12771
|
chatActions: this._config.chatActions,
|
|
12775
12772
|
showBubble: this._config.showBubble ?? !0,
|
|
12776
12773
|
display: (this.getAttribute("display") || this._config.display) ?? "popup",
|
|
12777
|
-
offset: this._config.offset ||
|
|
12774
|
+
offset: this._config.offset || Hl,
|
|
12778
12775
|
conversationId: this._config.conversationId,
|
|
12779
12776
|
systemPromptId: this._config.systemPromptId,
|
|
12780
12777
|
channel: this._config.channel,
|
|
@@ -12977,7 +12974,7 @@ class Qh extends HTMLElement {
|
|
|
12977
12974
|
}
|
|
12978
12975
|
async initController() {
|
|
12979
12976
|
const e = this.getConfig(), t = e.transport ?? "aikaara";
|
|
12980
|
-
(t === "aikaara" || t === "dual") && (!e.baseUrl || !e.userToken) || (this.controller?.disconnect(), this.controller = new
|
|
12977
|
+
(t === "aikaara" || t === "dual") && (!e.baseUrl || !e.userToken) || (this.controller?.disconnect(), this.controller = new Gh(e, this.shadow, {
|
|
12981
12978
|
uploadAdapter: this._config.uploadAdapter,
|
|
12982
12979
|
historyAdapter: this._config.historyAdapter
|
|
12983
12980
|
}), await this.controller.connect());
|
|
@@ -12997,7 +12994,7 @@ class Qh extends HTMLElement {
|
|
|
12997
12994
|
}
|
|
12998
12995
|
}
|
|
12999
12996
|
}
|
|
13000
|
-
class
|
|
12997
|
+
class Yh extends HTMLElement {
|
|
13001
12998
|
shadow;
|
|
13002
12999
|
constructor() {
|
|
13003
13000
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
@@ -13050,12 +13047,12 @@ class Jh extends HTMLElement {
|
|
|
13050
13047
|
t && (t.innerHTML = e);
|
|
13051
13048
|
}
|
|
13052
13049
|
}
|
|
13053
|
-
const
|
|
13050
|
+
const Jh = [
|
|
13054
13051
|
{ id: "edit-itr", label: "Edit ITR Details", icon: "edit" }
|
|
13055
13052
|
];
|
|
13056
|
-
class
|
|
13053
|
+
class Qh extends HTMLElement {
|
|
13057
13054
|
shadow;
|
|
13058
|
-
actions =
|
|
13055
|
+
actions = Jh;
|
|
13059
13056
|
menuOpen = !1;
|
|
13060
13057
|
outsideClickHandler = null;
|
|
13061
13058
|
static get observedAttributes() {
|
|
@@ -13281,7 +13278,7 @@ class Zh extends HTMLElement {
|
|
|
13281
13278
|
this.setAttribute("status", e);
|
|
13282
13279
|
}
|
|
13283
13280
|
}
|
|
13284
|
-
const
|
|
13281
|
+
const Xh = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|pre)\b/i, Zh = /&(quot|apos|amp|lt|gt|nbsp|#\d+|#x[0-9a-f]+);/i, ed = {
|
|
13285
13282
|
""": '"',
|
|
13286
13283
|
"'": "'",
|
|
13287
13284
|
"<": "<",
|
|
@@ -13289,14 +13286,14 @@ const ed = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|p
|
|
|
13289
13286
|
"&": "&",
|
|
13290
13287
|
" ": " "
|
|
13291
13288
|
};
|
|
13292
|
-
function
|
|
13293
|
-
return a.replace(/&(quot|apos|lt|gt|nbsp);/gi, (e) =>
|
|
13289
|
+
function td(a) {
|
|
13290
|
+
return a.replace(/&(quot|apos|lt|gt|nbsp);/gi, (e) => ed[e.toLowerCase()] ?? e).replace(/&#(\d+);/g, (e, t) => String.fromCharCode(parseInt(t, 10))).replace(/&#x([0-9a-f]+);/gi, (e, t) => String.fromCharCode(parseInt(t, 16))).replace(/&/gi, "&");
|
|
13294
13291
|
}
|
|
13295
13292
|
function Ut(a) {
|
|
13296
|
-
if (
|
|
13293
|
+
if (Xh.test(a))
|
|
13297
13294
|
return a;
|
|
13298
|
-
const e =
|
|
13299
|
-
let t =
|
|
13295
|
+
const e = Zh.test(a) ? td(a) : a;
|
|
13296
|
+
let t = rd(e);
|
|
13300
13297
|
return t = t.replace(/```(\w*)\n([\s\S]*?)```/g, (r, o, n) => `<pre><code>${n.trim()}</code></pre>`), t = t.replace(/`([^`]+)`/g, "<code>$1</code>"), t = t.replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>"), t = t.replace(/\*(.+?)\*/g, "<em>$1</em>"), t = t.replace(
|
|
13301
13298
|
/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,
|
|
13302
13299
|
'<a href="$2" target="_self" rel="noopener noreferrer">$1</a>'
|
|
@@ -13308,7 +13305,7 @@ function Ut(a) {
|
|
|
13308
13305
|
}
|
|
13309
13306
|
), t = t.replace(/\n/g, "<br>"), t;
|
|
13310
13307
|
}
|
|
13311
|
-
function
|
|
13308
|
+
function rd(a) {
|
|
13312
13309
|
const e = {
|
|
13313
13310
|
"&": "&",
|
|
13314
13311
|
"<": "<",
|
|
@@ -13318,7 +13315,7 @@ function id(a) {
|
|
|
13318
13315
|
};
|
|
13319
13316
|
return a.replace(/[&<>"']/g, (t) => e[t]);
|
|
13320
13317
|
}
|
|
13321
|
-
const
|
|
13318
|
+
const nd = /* @__PURE__ */ new Set([
|
|
13322
13319
|
"p",
|
|
13323
13320
|
"br",
|
|
13324
13321
|
"hr",
|
|
@@ -13353,7 +13350,7 @@ const od = /* @__PURE__ */ new Set([
|
|
|
13353
13350
|
"tr",
|
|
13354
13351
|
"th",
|
|
13355
13352
|
"td"
|
|
13356
|
-
]),
|
|
13353
|
+
]), id = {
|
|
13357
13354
|
a: /* @__PURE__ */ new Set(["href", "target", "rel"]),
|
|
13358
13355
|
img: /* @__PURE__ */ new Set(["src", "alt", "width", "height"]),
|
|
13359
13356
|
code: /* @__PURE__ */ new Set(["class"]),
|
|
@@ -13363,29 +13360,29 @@ const od = /* @__PURE__ */ new Set([
|
|
|
13363
13360
|
};
|
|
13364
13361
|
function Bt(a) {
|
|
13365
13362
|
const e = document.createElement("template");
|
|
13366
|
-
return e.innerHTML = a,
|
|
13363
|
+
return e.innerHTML = a, Al(e.content), e.innerHTML;
|
|
13367
13364
|
}
|
|
13368
|
-
function
|
|
13365
|
+
function Al(a) {
|
|
13369
13366
|
const e = Array.from(a.childNodes);
|
|
13370
13367
|
for (const t of e)
|
|
13371
13368
|
if (t.nodeType === Node.ELEMENT_NODE) {
|
|
13372
13369
|
const r = t, o = r.tagName.toLowerCase();
|
|
13373
|
-
if (!
|
|
13370
|
+
if (!nd.has(o)) {
|
|
13374
13371
|
const s = document.createTextNode(r.textContent || "");
|
|
13375
13372
|
a.replaceChild(s, t);
|
|
13376
13373
|
continue;
|
|
13377
13374
|
}
|
|
13378
|
-
const n =
|
|
13375
|
+
const n = id[o] || /* @__PURE__ */ new Set(), i = Array.from(r.attributes);
|
|
13379
13376
|
for (const s of i)
|
|
13380
13377
|
n.has(s.name) || r.removeAttribute(s.name);
|
|
13381
13378
|
if (r.hasAttribute("href")) {
|
|
13382
13379
|
const s = r.getAttribute("href") || "";
|
|
13383
13380
|
!s.startsWith("http://") && !s.startsWith("https://") && !s.startsWith("/") && r.removeAttribute("href");
|
|
13384
13381
|
}
|
|
13385
|
-
|
|
13382
|
+
Al(t);
|
|
13386
13383
|
}
|
|
13387
13384
|
}
|
|
13388
|
-
function
|
|
13385
|
+
function od(a, e = {}) {
|
|
13389
13386
|
const { width: t = 600, height: r = 700, closeOnTypes: o } = e, n = Math.round(window.screenX + (window.outerWidth - t) / 2), i = Math.round(window.screenY + (window.outerHeight - r) / 2), s = window.open(
|
|
13390
13387
|
a,
|
|
13391
13388
|
"aikaara_popup",
|
|
@@ -13403,7 +13400,7 @@ function ad(a, e = {}) {
|
|
|
13403
13400
|
}, 500);
|
|
13404
13401
|
return s;
|
|
13405
13402
|
}
|
|
13406
|
-
function
|
|
13403
|
+
function sd(a) {
|
|
13407
13404
|
const e = Date.now() - a.getTime(), t = Math.round(e / 1e3);
|
|
13408
13405
|
if (t < 5) return "just now";
|
|
13409
13406
|
if (t < 60) return `${t}s ago`;
|
|
@@ -13414,7 +13411,7 @@ function ld(a) {
|
|
|
13414
13411
|
const n = Math.round(o / 24);
|
|
13415
13412
|
return n === 1 ? "Yesterday" : n < 7 ? `${n} d ago` : a.toLocaleDateString(void 0, { month: "short", day: "2-digit" });
|
|
13416
13413
|
}
|
|
13417
|
-
class
|
|
13414
|
+
class ad extends HTMLElement {
|
|
13418
13415
|
shadow;
|
|
13419
13416
|
container;
|
|
13420
13417
|
welcomeMessage = "";
|
|
@@ -13667,7 +13664,7 @@ class cd extends HTMLElement {
|
|
|
13667
13664
|
if (n.role === "user") {
|
|
13668
13665
|
const i = n.metadata?.attributes?.action;
|
|
13669
13666
|
if (i) {
|
|
13670
|
-
const s =
|
|
13667
|
+
const s = ld(i);
|
|
13671
13668
|
if (i.message_id && t.set(i.message_id, s), Object.keys(s).length > 0)
|
|
13672
13669
|
for (let l = o - 1; l >= 0; l--) {
|
|
13673
13670
|
const c = e[l];
|
|
@@ -13805,7 +13802,7 @@ class cd extends HTMLElement {
|
|
|
13805
13802
|
case "date":
|
|
13806
13803
|
return r;
|
|
13807
13804
|
case "relative":
|
|
13808
|
-
return
|
|
13805
|
+
return sd(t);
|
|
13809
13806
|
case "time-24":
|
|
13810
13807
|
return t.toLocaleTimeString(void 0, { hour: "2-digit", minute: "2-digit", hour12: !1 });
|
|
13811
13808
|
case "time-seconds":
|
|
@@ -13831,7 +13828,7 @@ class cd extends HTMLElement {
|
|
|
13831
13828
|
return;
|
|
13832
13829
|
}
|
|
13833
13830
|
if (o === "popup") {
|
|
13834
|
-
|
|
13831
|
+
od(e);
|
|
13835
13832
|
return;
|
|
13836
13833
|
}
|
|
13837
13834
|
const n = this.getOrCreateModal(), i = r?.title ?? t ?? "Link";
|
|
@@ -13839,7 +13836,7 @@ class cd extends HTMLElement {
|
|
|
13839
13836
|
requestAnimationFrame(() => n.show?.(e, i));
|
|
13840
13837
|
return;
|
|
13841
13838
|
}
|
|
13842
|
-
const s =
|
|
13839
|
+
const s = cd(e), l = Il(r.fetch.url, s), c = {
|
|
13843
13840
|
accept: "application/json",
|
|
13844
13841
|
...r.fetch.headers ?? {}
|
|
13845
13842
|
}, u = r.fetch.authHeader ?? "session";
|
|
@@ -13885,7 +13882,7 @@ class cd extends HTMLElement {
|
|
|
13885
13882
|
return e || (e = document.createElement("aikaara-link-modal"), document.body.appendChild(e)), e;
|
|
13886
13883
|
}
|
|
13887
13884
|
}
|
|
13888
|
-
function
|
|
13885
|
+
function ld(a) {
|
|
13889
13886
|
const e = /* @__PURE__ */ new Set(["message_id", "formAction", "requestType"]), t = {};
|
|
13890
13887
|
for (const [r, o] of Object.entries(a))
|
|
13891
13888
|
e.has(r) || (Array.isArray(o) && o.every((n) => typeof n == "string") ? t[r] = o : typeof o == "string" && (t[r] = [o]));
|
|
@@ -13895,7 +13892,7 @@ function js(a, e) {
|
|
|
13895
13892
|
const t = e.replace(/[.+^${}()|[\]\\]/g, "\\$&");
|
|
13896
13893
|
return new RegExp("^" + t.replace(/\*/g, ".*").replace(/\?/g, ".") + "$", "i").test(a);
|
|
13897
13894
|
}
|
|
13898
|
-
function
|
|
13895
|
+
function cd(a) {
|
|
13899
13896
|
try {
|
|
13900
13897
|
const e = new URL(a), t = {};
|
|
13901
13898
|
return e.searchParams.forEach((r, o) => {
|
|
@@ -13905,11 +13902,11 @@ function hd(a) {
|
|
|
13905
13902
|
return {};
|
|
13906
13903
|
}
|
|
13907
13904
|
}
|
|
13908
|
-
function
|
|
13905
|
+
function Il(a, e) {
|
|
13909
13906
|
return a.replace(/\{(\w+)\}/g, (t, r) => e[r] ?? "");
|
|
13910
13907
|
}
|
|
13911
13908
|
function Zi(a, e) {
|
|
13912
|
-
if (typeof a == "string") return
|
|
13909
|
+
if (typeof a == "string") return Il(a, e);
|
|
13913
13910
|
if (Array.isArray(a)) return a.map((t) => Zi(t, e));
|
|
13914
13911
|
if (a && typeof a == "object") {
|
|
13915
13912
|
const t = {};
|
|
@@ -13918,7 +13915,7 @@ function Zi(a, e) {
|
|
|
13918
13915
|
}
|
|
13919
13916
|
return a;
|
|
13920
13917
|
}
|
|
13921
|
-
class
|
|
13918
|
+
class ud extends HTMLElement {
|
|
13922
13919
|
shadow;
|
|
13923
13920
|
templatePayload = null;
|
|
13924
13921
|
attachments = [];
|
|
@@ -14034,7 +14031,7 @@ class dd extends HTMLElement {
|
|
|
14034
14031
|
renderAttachments() {
|
|
14035
14032
|
return this.attachments.length ? `<div class="attachments">${this.attachments.map(
|
|
14036
14033
|
(t) => `<a class="attachment" href="${Ns(t.fileUrl)}" target="_blank" rel="noopener noreferrer">
|
|
14037
|
-
📎 ${
|
|
14034
|
+
📎 ${hd(t.fileName)}
|
|
14038
14035
|
</a>`
|
|
14039
14036
|
).join("")}</div>` : "";
|
|
14040
14037
|
}
|
|
@@ -14042,10 +14039,10 @@ class dd extends HTMLElement {
|
|
|
14042
14039
|
function Ns(a) {
|
|
14043
14040
|
return String(a).replace(/[&<>"']/g, (e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]);
|
|
14044
14041
|
}
|
|
14045
|
-
function
|
|
14042
|
+
function hd(a) {
|
|
14046
14043
|
return String(a).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
14047
14044
|
}
|
|
14048
|
-
class
|
|
14045
|
+
class dd extends HTMLElement {
|
|
14049
14046
|
shadow;
|
|
14050
14047
|
textarea;
|
|
14051
14048
|
sendBtn;
|
|
@@ -14196,7 +14193,7 @@ class pd extends HTMLElement {
|
|
|
14196
14193
|
this.textarea.style.height = "auto", this.textarea.style.height = Math.min(this.textarea.scrollHeight, 120) + "px";
|
|
14197
14194
|
}
|
|
14198
14195
|
}
|
|
14199
|
-
class
|
|
14196
|
+
class fd extends HTMLElement {
|
|
14200
14197
|
shadow;
|
|
14201
14198
|
constructor() {
|
|
14202
14199
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
@@ -14245,7 +14242,7 @@ class md extends HTMLElement {
|
|
|
14245
14242
|
this.removeAttribute("visible");
|
|
14246
14243
|
}
|
|
14247
14244
|
}
|
|
14248
|
-
class
|
|
14245
|
+
class pd extends HTMLElement {
|
|
14249
14246
|
shadow;
|
|
14250
14247
|
bubble;
|
|
14251
14248
|
constructor() {
|
|
@@ -14310,7 +14307,7 @@ class gd extends HTMLElement {
|
|
|
14310
14307
|
this.bubble?.classList.remove("cursor");
|
|
14311
14308
|
}
|
|
14312
14309
|
}
|
|
14313
|
-
class
|
|
14310
|
+
class md extends HTMLElement {
|
|
14314
14311
|
shadow;
|
|
14315
14312
|
container;
|
|
14316
14313
|
dismissTimer = null;
|
|
@@ -14356,9 +14353,9 @@ class bd extends HTMLElement {
|
|
|
14356
14353
|
this.container.classList.remove("visible"), this.dismissTimer && (clearTimeout(this.dismissTimer), this.dismissTimer = null);
|
|
14357
14354
|
}
|
|
14358
14355
|
}
|
|
14359
|
-
const
|
|
14360
|
-
function
|
|
14361
|
-
const e =
|
|
14356
|
+
const Qr = /* @__PURE__ */ new Map();
|
|
14357
|
+
function Tl(a) {
|
|
14358
|
+
const e = Qr.get(a);
|
|
14362
14359
|
if (e) return e;
|
|
14363
14360
|
const t = new Promise((r, o) => {
|
|
14364
14361
|
const n = document.querySelector(`script[data-aikaara-src="${CSS.escape(a)}"]`);
|
|
@@ -14376,14 +14373,14 @@ function Cl(a) {
|
|
|
14376
14373
|
), i.addEventListener(
|
|
14377
14374
|
"error",
|
|
14378
14375
|
() => {
|
|
14379
|
-
|
|
14376
|
+
Qr.delete(a), o(new Error(`Failed to load ${a}`));
|
|
14380
14377
|
},
|
|
14381
14378
|
{ once: !0 }
|
|
14382
14379
|
), document.head.appendChild(i);
|
|
14383
14380
|
});
|
|
14384
|
-
return
|
|
14381
|
+
return Qr.set(a, t), t;
|
|
14385
14382
|
}
|
|
14386
|
-
function
|
|
14383
|
+
function gd(a, e = 5e3) {
|
|
14387
14384
|
return new Promise((t, r) => {
|
|
14388
14385
|
const o = setTimeout(() => r(new Error(`Custom element <${a}> not registered within ${e}ms`)), e);
|
|
14389
14386
|
customElements.whenDefined(a).then(() => {
|
|
@@ -14391,14 +14388,14 @@ function yd(a, e = 5e3) {
|
|
|
14391
14388
|
});
|
|
14392
14389
|
});
|
|
14393
14390
|
}
|
|
14394
|
-
const
|
|
14391
|
+
const bd = {
|
|
14395
14392
|
"aikaara-template-payment-link": () => import("./AikaaraPaymentLink-C82ApGKH.mjs").then(({ registerAikaaraPaymentLink: a }) => a())
|
|
14396
14393
|
};
|
|
14397
|
-
function
|
|
14394
|
+
function yd(a) {
|
|
14398
14395
|
const e = `template:${a}`, t = window.__aikaara_descriptor__?.components?.[e];
|
|
14399
14396
|
return t && t.kind === "iife-element" ? { render: t.tag, scriptUrl: t.scriptUrl, props: t.props } : window.__aikaara_descriptor__?.templates?.[a];
|
|
14400
14397
|
}
|
|
14401
|
-
class
|
|
14398
|
+
class vd extends HTMLElement {
|
|
14402
14399
|
shadow;
|
|
14403
14400
|
payloadData = null;
|
|
14404
14401
|
innerMessage = "";
|
|
@@ -14422,7 +14419,7 @@ class _d extends HTMLElement {
|
|
|
14422
14419
|
this.render(), this.addEventListener("template-action", (e) => {
|
|
14423
14420
|
const t = e.detail, r = this.getAttribute("message-id");
|
|
14424
14421
|
if (r && t?.attributes?.action) {
|
|
14425
|
-
const o =
|
|
14422
|
+
const o = kd(t.attributes.action);
|
|
14426
14423
|
if (Object.keys(o).length > 0)
|
|
14427
14424
|
try {
|
|
14428
14425
|
localStorage.setItem(`aikaara_form:${r}`, JSON.stringify(o));
|
|
@@ -14498,8 +14495,8 @@ class _d extends HTMLElement {
|
|
|
14498
14495
|
<slot></slot>
|
|
14499
14496
|
`; this.firstChild; ) this.removeChild(this.firstChild);
|
|
14500
14497
|
if (!e) return;
|
|
14501
|
-
const r = t ?
|
|
14502
|
-
if (n && !customElements.get(o) ? n().then(() => this.render()).catch((i) => console.warn(`[aikaara-template-renderer] native template ${o} failed to load`, i)) : r?.scriptUrl && !customElements.get(o) &&
|
|
14498
|
+
const r = t ? yd(t) : void 0, o = r?.render ?? (t ? `aikaara-template-${t}` : `aikaara-template-${e}`), n = bd[o];
|
|
14499
|
+
if (n && !customElements.get(o) ? n().then(() => this.render()).catch((i) => console.warn(`[aikaara-template-renderer] native template ${o} failed to load`, i)) : r?.scriptUrl && !customElements.get(o) && Tl(r.scriptUrl).then(() => gd(o)).then(() => this.render()).catch((i) => console.warn(`[aikaara-template-renderer] failed to lazy-load ${r.scriptUrl}`, i)), customElements.get(o)) {
|
|
14503
14500
|
const i = document.createElement(o);
|
|
14504
14501
|
if (r?.props) {
|
|
14505
14502
|
for (const [s, l] of Object.entries(r.props))
|
|
@@ -14581,7 +14578,7 @@ class _d extends HTMLElement {
|
|
|
14581
14578
|
*/
|
|
14582
14579
|
mountLinkButton(e) {
|
|
14583
14580
|
const t = this.renderGen;
|
|
14584
|
-
import("./AikaaraLinkButton-
|
|
14581
|
+
import("./AikaaraLinkButton-DFB47cz9.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: o }) => {
|
|
14585
14582
|
if (t !== this.renderGen) return;
|
|
14586
14583
|
r();
|
|
14587
14584
|
const n = document.createElement("aikaara-link-button");
|
|
@@ -14590,7 +14587,7 @@ class _d extends HTMLElement {
|
|
|
14590
14587
|
url: e.url ?? "",
|
|
14591
14588
|
openLinkInNewTab: e.openLinkInNewTab,
|
|
14592
14589
|
orderId: e.orderId,
|
|
14593
|
-
extra:
|
|
14590
|
+
extra: _d(e),
|
|
14594
14591
|
messageId: this.getAttribute("message-id") ?? void 0
|
|
14595
14592
|
}), this.appendChild(n);
|
|
14596
14593
|
});
|
|
@@ -14600,26 +14597,26 @@ class _d extends HTMLElement {
|
|
|
14600
14597
|
t.setPayload(e), this.appendChild(t);
|
|
14601
14598
|
}
|
|
14602
14599
|
}
|
|
14603
|
-
const
|
|
14600
|
+
const wd = /* @__PURE__ */ new Set([
|
|
14604
14601
|
"type",
|
|
14605
14602
|
"url",
|
|
14606
14603
|
"name",
|
|
14607
14604
|
"openLinkInNewTab",
|
|
14608
14605
|
"orderId"
|
|
14609
14606
|
]);
|
|
14610
|
-
function
|
|
14607
|
+
function _d(a) {
|
|
14611
14608
|
const e = {};
|
|
14612
14609
|
for (const [t, r] of Object.entries(a))
|
|
14613
|
-
|
|
14610
|
+
wd.has(t) || (e[t] = r);
|
|
14614
14611
|
return e;
|
|
14615
14612
|
}
|
|
14616
|
-
function
|
|
14613
|
+
function kd(a) {
|
|
14617
14614
|
const e = /* @__PURE__ */ new Set(["message_id", "formAction", "requestType", "serviceType"]), t = {};
|
|
14618
14615
|
for (const [r, o] of Object.entries(a))
|
|
14619
14616
|
e.has(r) || (Array.isArray(o) && o.every((n) => typeof n == "string") ? t[r] = o : typeof o == "string" && (t[r] = [o]));
|
|
14620
14617
|
return t;
|
|
14621
14618
|
}
|
|
14622
|
-
class
|
|
14619
|
+
class xd extends HTMLElement {
|
|
14623
14620
|
shadow;
|
|
14624
14621
|
static get observedAttributes() {
|
|
14625
14622
|
return ["text", "subtext"];
|
|
@@ -14668,7 +14665,7 @@ class Ed extends HTMLElement {
|
|
|
14668
14665
|
function Us(a) {
|
|
14669
14666
|
return String(a).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
14670
14667
|
}
|
|
14671
|
-
class
|
|
14668
|
+
class Sd extends HTMLElement {
|
|
14672
14669
|
shadow;
|
|
14673
14670
|
data = null;
|
|
14674
14671
|
selected = /* @__PURE__ */ new Set();
|
|
@@ -14830,7 +14827,7 @@ function ar(a) {
|
|
|
14830
14827
|
function Bs(a) {
|
|
14831
14828
|
return String(a).replace(/[&<>"']/g, (e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]);
|
|
14832
14829
|
}
|
|
14833
|
-
class
|
|
14830
|
+
class Ed extends HTMLElement {
|
|
14834
14831
|
shadow;
|
|
14835
14832
|
data = null;
|
|
14836
14833
|
constructor() {
|
|
@@ -14890,14 +14887,14 @@ class Id extends HTMLElement {
|
|
|
14890
14887
|
button:hover { background: var(--aikaara-submit-hover-bg, var(--aikaara-primary-hover, #4f46e5)); }
|
|
14891
14888
|
button:disabled { opacity: var(--aikaara-submit-disabled-opacity, 0.5); cursor: not-allowed; }
|
|
14892
14889
|
</style>
|
|
14893
|
-
<button type="button">${
|
|
14890
|
+
<button type="button">${Ad(e)}</button>
|
|
14894
14891
|
`, this.shadow.querySelector("button").addEventListener("click", () => this.handleClick());
|
|
14895
14892
|
}
|
|
14896
14893
|
}
|
|
14897
|
-
function
|
|
14894
|
+
function Ad(a) {
|
|
14898
14895
|
return String(a).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
14899
14896
|
}
|
|
14900
|
-
class
|
|
14897
|
+
class Id extends HTMLElement {
|
|
14901
14898
|
shadow;
|
|
14902
14899
|
data = null;
|
|
14903
14900
|
dismissed = !1;
|
|
@@ -14989,7 +14986,7 @@ class Cd extends HTMLElement {
|
|
|
14989
14986
|
function Xr(a) {
|
|
14990
14987
|
return String(a).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
14991
14988
|
}
|
|
14992
|
-
class
|
|
14989
|
+
class Td extends HTMLElement {
|
|
14993
14990
|
static get observedAttributes() {
|
|
14994
14991
|
return ["slug", "user-id", "user-name", "user-token", "department-id", "config-base", "api-key"];
|
|
14995
14992
|
}
|
|
@@ -15043,7 +15040,7 @@ class Od extends HTMLElement {
|
|
|
15043
15040
|
const l = Object.keys(n).length > 0 ? n : void 0;
|
|
15044
15041
|
return this.mountInflight = (async () => {
|
|
15045
15042
|
try {
|
|
15046
|
-
this.mounted = await
|
|
15043
|
+
this.mounted = await uf({
|
|
15047
15044
|
container: this,
|
|
15048
15045
|
slug: e,
|
|
15049
15046
|
configBase: this.getAttribute("config-base") ?? void 0,
|
|
@@ -15072,7 +15069,7 @@ class Od extends HTMLElement {
|
|
|
15072
15069
|
})(), this.mountInflight;
|
|
15073
15070
|
}
|
|
15074
15071
|
}
|
|
15075
|
-
class
|
|
15072
|
+
class Cd extends HTMLElement {
|
|
15076
15073
|
shadow;
|
|
15077
15074
|
root = null;
|
|
15078
15075
|
iframe = null;
|
|
@@ -15189,7 +15186,7 @@ class Pd extends HTMLElement {
|
|
|
15189
15186
|
});
|
|
15190
15187
|
}
|
|
15191
15188
|
}
|
|
15192
|
-
const
|
|
15189
|
+
const Od = [
|
|
15193
15190
|
{ label: "Self-filing guidance" },
|
|
15194
15191
|
{ label: "Smart tax suggestions" },
|
|
15195
15192
|
{ label: "Auto-fetch 26AS / AIS" },
|
|
@@ -15197,7 +15194,7 @@ const Md = [
|
|
|
15197
15194
|
{ label: "Dedicated tax expert" },
|
|
15198
15195
|
{ label: "End-to-end filing" },
|
|
15199
15196
|
{ label: "Document handling" }
|
|
15200
|
-
],
|
|
15197
|
+
], Pd = [
|
|
15201
15198
|
{
|
|
15202
15199
|
label: "DIY",
|
|
15203
15200
|
match: ["DIY", "DIY_SALARY"],
|
|
@@ -15220,11 +15217,11 @@ const Md = [
|
|
|
15220
15217
|
features: [!0, !0, !0, !0, !0, !0, !0]
|
|
15221
15218
|
}
|
|
15222
15219
|
];
|
|
15223
|
-
class
|
|
15220
|
+
class Md extends HTMLElement {
|
|
15224
15221
|
shadow;
|
|
15225
15222
|
data = null;
|
|
15226
|
-
columns =
|
|
15227
|
-
features =
|
|
15223
|
+
columns = Pd;
|
|
15224
|
+
features = Od;
|
|
15228
15225
|
constructor() {
|
|
15229
15226
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
15230
15227
|
}
|
|
@@ -15357,7 +15354,7 @@ function Zr(a) {
|
|
|
15357
15354
|
(e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]
|
|
15358
15355
|
);
|
|
15359
15356
|
}
|
|
15360
|
-
class
|
|
15357
|
+
class Rd extends HTMLElement {
|
|
15361
15358
|
shadow;
|
|
15362
15359
|
root = null;
|
|
15363
15360
|
schemas = [];
|
|
@@ -15448,7 +15445,7 @@ class jd extends HTMLElement {
|
|
|
15448
15445
|
`;
|
|
15449
15446
|
const r = this.shadow.querySelector(".modal-body"), o = this.schemas.map(
|
|
15450
15447
|
(i) => `
|
|
15451
|
-
<button class="chip" type="button" data-section-id="${
|
|
15448
|
+
<button class="chip" type="button" data-section-id="${jd(i.id)}">
|
|
15452
15449
|
<span class="chip-icon">${i.icon ?? "📄"}</span>
|
|
15453
15450
|
<span class="chip-label">${Fs(i.title)}</span>
|
|
15454
15451
|
</button>`
|
|
@@ -15481,7 +15478,7 @@ class jd extends HTMLElement {
|
|
|
15481
15478
|
e.classList.remove("view-picker"), e.classList.add("view-form");
|
|
15482
15479
|
const t = this.schemas.find((n) => n.id === this.activeSectionId), r = this.shadow.querySelector(".modal-header");
|
|
15483
15480
|
r.innerHTML = `
|
|
15484
|
-
<button class="icon-btn back-btn" type="button" aria-label="Back">${
|
|
15481
|
+
<button class="icon-btn back-btn" type="button" aria-label="Back">${Ld}</button>
|
|
15485
15482
|
<div class="modal-title">${Fs(t?.title ?? "Edit")}</div>
|
|
15486
15483
|
<button class="icon-btn close-btn" type="button" aria-label="Close">${Ds}</button>
|
|
15487
15484
|
`;
|
|
@@ -15657,14 +15654,14 @@ class jd extends HTMLElement {
|
|
|
15657
15654
|
`;
|
|
15658
15655
|
}
|
|
15659
15656
|
}
|
|
15660
|
-
const Ds = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>',
|
|
15661
|
-
function
|
|
15657
|
+
const Ds = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>', Ld = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/></svg>';
|
|
15658
|
+
function jd(a) {
|
|
15662
15659
|
return a.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
15663
15660
|
}
|
|
15664
15661
|
function Fs(a) {
|
|
15665
15662
|
return a.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
15666
15663
|
}
|
|
15667
|
-
class
|
|
15664
|
+
class Nd extends HTMLElement {
|
|
15668
15665
|
shadow;
|
|
15669
15666
|
schema = null;
|
|
15670
15667
|
value = {};
|
|
@@ -16067,32 +16064,32 @@ function St(a) {
|
|
|
16067
16064
|
function Ke(a) {
|
|
16068
16065
|
return a.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
16069
16066
|
}
|
|
16070
|
-
function
|
|
16067
|
+
function Ud() {
|
|
16071
16068
|
const a = [
|
|
16072
|
-
["aikaara-chat-widget",
|
|
16073
|
-
["aikaara-chat-bubble",
|
|
16074
|
-
["aikaara-chat-header",
|
|
16075
|
-
["aikaara-message-list",
|
|
16076
|
-
["aikaara-message-bubble",
|
|
16077
|
-
["aikaara-chat-input",
|
|
16078
|
-
["aikaara-typing-indicator",
|
|
16079
|
-
["aikaara-streaming-message",
|
|
16080
|
-
["aikaara-error-banner",
|
|
16081
|
-
["aikaara-template-renderer",
|
|
16082
|
-
["aikaara-system-pill",
|
|
16083
|
-
["aikaara-option-list",
|
|
16084
|
-
["aikaara-submit-action",
|
|
16085
|
-
["aikaara-modal-action",
|
|
16086
|
-
["aikaara-chat",
|
|
16087
|
-
["aikaara-link-modal",
|
|
16088
|
-
["aikaara-compare-plans",
|
|
16089
|
-
["aikaara-smart-edit-modal",
|
|
16090
|
-
["aikaara-schema-form",
|
|
16069
|
+
["aikaara-chat-widget", Kh],
|
|
16070
|
+
["aikaara-chat-bubble", Yh],
|
|
16071
|
+
["aikaara-chat-header", Qh],
|
|
16072
|
+
["aikaara-message-list", ad],
|
|
16073
|
+
["aikaara-message-bubble", ud],
|
|
16074
|
+
["aikaara-chat-input", dd],
|
|
16075
|
+
["aikaara-typing-indicator", fd],
|
|
16076
|
+
["aikaara-streaming-message", pd],
|
|
16077
|
+
["aikaara-error-banner", md],
|
|
16078
|
+
["aikaara-template-renderer", vd],
|
|
16079
|
+
["aikaara-system-pill", xd],
|
|
16080
|
+
["aikaara-option-list", Sd],
|
|
16081
|
+
["aikaara-submit-action", Ed],
|
|
16082
|
+
["aikaara-modal-action", Id],
|
|
16083
|
+
["aikaara-chat", Td],
|
|
16084
|
+
["aikaara-link-modal", Cd],
|
|
16085
|
+
["aikaara-compare-plans", Md],
|
|
16086
|
+
["aikaara-smart-edit-modal", Rd],
|
|
16087
|
+
["aikaara-schema-form", Nd]
|
|
16091
16088
|
];
|
|
16092
16089
|
for (const [e, t] of a)
|
|
16093
16090
|
customElements.get(e) || customElements.define(e, t);
|
|
16094
16091
|
}
|
|
16095
|
-
|
|
16092
|
+
Ud();
|
|
16096
16093
|
function lr(a, e, t = "") {
|
|
16097
16094
|
if (!e) return t;
|
|
16098
16095
|
const r = e.split(".");
|
|
@@ -16118,7 +16115,7 @@ function $s(a) {
|
|
|
16118
16115
|
async function Dt(a) {
|
|
16119
16116
|
return typeof a == "function" ? await a() : a;
|
|
16120
16117
|
}
|
|
16121
|
-
class
|
|
16118
|
+
class Bd {
|
|
16122
16119
|
constructor(e, t) {
|
|
16123
16120
|
this.descriptor = e, this.sessionToken = t;
|
|
16124
16121
|
}
|
|
@@ -16169,10 +16166,10 @@ class Fd {
|
|
|
16169
16166
|
return this.cache = { token: h, requestId: b, fullName: f, userId: g, expiresAt: y }, this.cache;
|
|
16170
16167
|
}
|
|
16171
16168
|
}
|
|
16172
|
-
async function
|
|
16169
|
+
async function Dd(a) {
|
|
16173
16170
|
const e = {};
|
|
16174
16171
|
for (const t of a.spec) {
|
|
16175
|
-
const r = await
|
|
16172
|
+
const r = await Fd(t, a.providers);
|
|
16176
16173
|
if (r !== void 0 && r !== "")
|
|
16177
16174
|
e[t.name] = r;
|
|
16178
16175
|
else {
|
|
@@ -16185,11 +16182,11 @@ async function $d(a) {
|
|
|
16185
16182
|
}
|
|
16186
16183
|
return e;
|
|
16187
16184
|
}
|
|
16188
|
-
async function
|
|
16185
|
+
async function Fd(a, e) {
|
|
16189
16186
|
const t = a.key ?? a.name;
|
|
16190
16187
|
switch (a.source) {
|
|
16191
16188
|
case "cookie":
|
|
16192
|
-
return
|
|
16189
|
+
return $d(t);
|
|
16193
16190
|
case "localStorage":
|
|
16194
16191
|
return cr(() => window.localStorage.getItem(t) ?? void 0);
|
|
16195
16192
|
case "sessionStorage":
|
|
@@ -16197,7 +16194,7 @@ async function qd(a, e) {
|
|
|
16197
16194
|
case "url_param":
|
|
16198
16195
|
return cr(() => new URL(window.location.href).searchParams.get(t) ?? void 0);
|
|
16199
16196
|
case "header_meta":
|
|
16200
|
-
return cr(() => document.querySelector(`meta[name="${
|
|
16197
|
+
return cr(() => document.querySelector(`meta[name="${qd(t)}"]`)?.content ?? void 0);
|
|
16201
16198
|
case "callback": {
|
|
16202
16199
|
const r = e?.[a.name];
|
|
16203
16200
|
if (!r) return;
|
|
@@ -16208,7 +16205,7 @@ async function qd(a, e) {
|
|
|
16208
16205
|
return;
|
|
16209
16206
|
}
|
|
16210
16207
|
}
|
|
16211
|
-
function
|
|
16208
|
+
function $d(a) {
|
|
16212
16209
|
if (typeof document > "u") return;
|
|
16213
16210
|
const e = encodeURIComponent(a), t = document.cookie ? document.cookie.split("; ") : [];
|
|
16214
16211
|
for (const r of t) {
|
|
@@ -16230,11 +16227,11 @@ function cr(a) {
|
|
|
16230
16227
|
return;
|
|
16231
16228
|
}
|
|
16232
16229
|
}
|
|
16233
|
-
function
|
|
16230
|
+
function qd(a) {
|
|
16234
16231
|
return a.replace(/["\\]/g, "\\$&");
|
|
16235
16232
|
}
|
|
16236
|
-
const
|
|
16237
|
-
class
|
|
16233
|
+
const Hd = 1800;
|
|
16234
|
+
class Wd {
|
|
16238
16235
|
constructor(e) {
|
|
16239
16236
|
this.opts = e, this.cache = this.loadCache();
|
|
16240
16237
|
}
|
|
@@ -16263,7 +16260,7 @@ class Vd {
|
|
|
16263
16260
|
throw new Error(
|
|
16264
16261
|
"[aikaara-chat-sdk] SsoExchangeAdapter.exchange() requires descriptor.sso.collect; v2 partner-token flow should be handled by TokenDiscoveryReader instead."
|
|
16265
16262
|
);
|
|
16266
|
-
const e = await
|
|
16263
|
+
const e = await Dd({
|
|
16267
16264
|
spec: this.opts.descriptor.collect,
|
|
16268
16265
|
providers: this.opts.providers
|
|
16269
16266
|
}), t = JSON.stringify({ credentials: e }), r = {
|
|
@@ -16301,7 +16298,7 @@ class Vd {
|
|
|
16301
16298
|
return this.cache = u, this.persistCache(u), u;
|
|
16302
16299
|
}
|
|
16303
16300
|
computeExpiry() {
|
|
16304
|
-
const e = this.opts.descriptor.cacheTtlSec ??
|
|
16301
|
+
const e = this.opts.descriptor.cacheTtlSec ?? Hd;
|
|
16305
16302
|
if (!(!this.opts.descriptor.cacheKey || e <= 0))
|
|
16306
16303
|
return Date.now() + e * 1e3;
|
|
16307
16304
|
}
|
|
@@ -16334,8 +16331,8 @@ class Vd {
|
|
|
16334
16331
|
}
|
|
16335
16332
|
}
|
|
16336
16333
|
}
|
|
16337
|
-
const
|
|
16338
|
-
async function
|
|
16334
|
+
const zd = 3e4, Vd = 2e3, Gd = 100;
|
|
16335
|
+
async function Kd(a) {
|
|
16339
16336
|
const { descriptor: e } = a, t = e.tokenSourceConfig ?? {};
|
|
16340
16337
|
switch (e.tokenSource) {
|
|
16341
16338
|
case "init": {
|
|
@@ -16344,37 +16341,37 @@ async function Qd(a) {
|
|
|
16344
16341
|
return { token: a.initToken, source: "init" };
|
|
16345
16342
|
}
|
|
16346
16343
|
case "query": {
|
|
16347
|
-
const r = typeof t.key == "string" && t.key ? t.key : "token", o =
|
|
16344
|
+
const r = typeof t.key == "string" && t.key ? t.key : "token", o = Jd(r);
|
|
16348
16345
|
if (!o) throw new Ye("query", `?${r}= not present`);
|
|
16349
16346
|
return { token: o, source: "query" };
|
|
16350
16347
|
}
|
|
16351
16348
|
case "hash": {
|
|
16352
|
-
const r = typeof t.key == "string" && t.key ? t.key : "token", o =
|
|
16349
|
+
const r = typeof t.key == "string" && t.key ? t.key : "token", o = Qd(r);
|
|
16353
16350
|
if (!o) throw new Ye("hash", `#${r}= not present`);
|
|
16354
16351
|
return { token: o, source: "hash" };
|
|
16355
16352
|
}
|
|
16356
16353
|
case "postmsg": {
|
|
16357
|
-
const r = typeof t.type == "string" ? t.type : "", o = typeof t.key == "string" && t.key ? t.key : "token", n =
|
|
16358
|
-
return { token: await
|
|
16354
|
+
const r = typeof t.type == "string" ? t.type : "", o = typeof t.key == "string" && t.key ? t.key : "token", n = rf(typeof t.origins == "string" ? t.origins : ""), i = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs : zd;
|
|
16355
|
+
return { token: await tf({ type: r, key: o, origins: n, timeoutMs: i }), source: "postmsg" };
|
|
16359
16356
|
}
|
|
16360
16357
|
case "cookie": {
|
|
16361
16358
|
const r = typeof t.name == "string" && t.name ? t.name : "";
|
|
16362
16359
|
if (!r) throw new Ye("cookie", "cookie.name not configured");
|
|
16363
|
-
const o =
|
|
16360
|
+
const o = Xd(r);
|
|
16364
16361
|
if (!o) throw new Ye("cookie", `cookie "${r}" not set`);
|
|
16365
16362
|
return { token: o, source: "cookie" };
|
|
16366
16363
|
}
|
|
16367
16364
|
case "storage": {
|
|
16368
16365
|
const r = t.store === "session" ? "session" : "local", o = typeof t.key == "string" && t.key ? t.key : "", n = typeof t.path == "string" ? t.path : "";
|
|
16369
16366
|
if (!o) throw new Ye("storage", "storage.key not configured");
|
|
16370
|
-
const i =
|
|
16367
|
+
const i = Zd(r, o, n);
|
|
16371
16368
|
if (!i) throw new Ye("storage", `${r}Storage["${o}"] not set`);
|
|
16372
16369
|
return { token: i, source: "storage" };
|
|
16373
16370
|
}
|
|
16374
16371
|
case "global": {
|
|
16375
16372
|
const r = typeof t.path == "string" ? t.path : "";
|
|
16376
16373
|
if (!r) throw new Ye("global", "global.path not configured");
|
|
16377
|
-
const o = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs :
|
|
16374
|
+
const o = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs : Vd, n = typeof t.intervalMs == "number" && t.intervalMs > 0 ? t.intervalMs : Gd, i = await ef(r, o, n);
|
|
16378
16375
|
if (!i) throw new Ye("global", `window.${r} not present`);
|
|
16379
16376
|
return { token: i, source: "global" };
|
|
16380
16377
|
}
|
|
@@ -16387,7 +16384,7 @@ async function Qd(a) {
|
|
|
16387
16384
|
}
|
|
16388
16385
|
}
|
|
16389
16386
|
}
|
|
16390
|
-
class
|
|
16387
|
+
class Yd {
|
|
16391
16388
|
constructor(e) {
|
|
16392
16389
|
this.opts = e;
|
|
16393
16390
|
}
|
|
@@ -16398,7 +16395,7 @@ class Jd {
|
|
|
16398
16395
|
/** Resolve the token. Returns cache if present. */
|
|
16399
16396
|
async get() {
|
|
16400
16397
|
if (this.cached) return this.cached;
|
|
16401
|
-
const e = await
|
|
16398
|
+
const e = await Kd(this.opts);
|
|
16402
16399
|
return this.cached = e, e;
|
|
16403
16400
|
}
|
|
16404
16401
|
/**
|
|
@@ -16415,7 +16412,7 @@ class Ye extends Error {
|
|
|
16415
16412
|
super(`[aikaara-chat-sdk] token-discovery (${e}): ${t}`), this.source = e, this.name = "TokenDiscoveryError";
|
|
16416
16413
|
}
|
|
16417
16414
|
}
|
|
16418
|
-
function
|
|
16415
|
+
function Jd(a) {
|
|
16419
16416
|
if (!(typeof window > "u"))
|
|
16420
16417
|
try {
|
|
16421
16418
|
const e = window.location.search.slice(1);
|
|
@@ -16429,7 +16426,7 @@ function Xd(a) {
|
|
|
16429
16426
|
return;
|
|
16430
16427
|
}
|
|
16431
16428
|
}
|
|
16432
|
-
function
|
|
16429
|
+
function Qd(a) {
|
|
16433
16430
|
if (!(typeof window > "u"))
|
|
16434
16431
|
try {
|
|
16435
16432
|
const e = window.location.hash.replace(/^#/, "");
|
|
@@ -16438,7 +16435,7 @@ function Zd(a) {
|
|
|
16438
16435
|
return;
|
|
16439
16436
|
}
|
|
16440
16437
|
}
|
|
16441
|
-
function
|
|
16438
|
+
function Xd(a) {
|
|
16442
16439
|
if (typeof document > "u") return;
|
|
16443
16440
|
const e = encodeURIComponent(a), t = document.cookie ? document.cookie.split("; ") : [];
|
|
16444
16441
|
for (const r of t) {
|
|
@@ -16453,7 +16450,7 @@ function ef(a) {
|
|
|
16453
16450
|
}
|
|
16454
16451
|
}
|
|
16455
16452
|
}
|
|
16456
|
-
function
|
|
16453
|
+
function Zd(a, e, t) {
|
|
16457
16454
|
if (!(typeof window > "u"))
|
|
16458
16455
|
try {
|
|
16459
16456
|
const o = (a === "session" ? window.sessionStorage : window.localStorage).getItem(e);
|
|
@@ -16465,17 +16462,17 @@ function tf(a, e, t) {
|
|
|
16465
16462
|
} catch {
|
|
16466
16463
|
return o;
|
|
16467
16464
|
}
|
|
16468
|
-
const i =
|
|
16465
|
+
const i = Cl(n, t);
|
|
16469
16466
|
return typeof i == "string" ? i : void 0;
|
|
16470
16467
|
} catch {
|
|
16471
16468
|
return;
|
|
16472
16469
|
}
|
|
16473
16470
|
}
|
|
16474
|
-
async function
|
|
16471
|
+
async function ef(a, e, t) {
|
|
16475
16472
|
if (typeof window > "u") return;
|
|
16476
16473
|
const r = Date.now() + e;
|
|
16477
16474
|
for (; Date.now() < r; ) {
|
|
16478
|
-
const o =
|
|
16475
|
+
const o = Cl(window, a);
|
|
16479
16476
|
if (typeof o == "string" && o.length > 0) return o;
|
|
16480
16477
|
if (typeof o == "function")
|
|
16481
16478
|
try {
|
|
@@ -16486,7 +16483,7 @@ async function rf(a, e, t) {
|
|
|
16486
16483
|
await new Promise((n) => setTimeout(n, t));
|
|
16487
16484
|
}
|
|
16488
16485
|
}
|
|
16489
|
-
function
|
|
16486
|
+
function tf(a) {
|
|
16490
16487
|
return new Promise((e, t) => {
|
|
16491
16488
|
if (typeof window > "u") {
|
|
16492
16489
|
t(new Ye("postmsg", "no window"));
|
|
@@ -16508,10 +16505,10 @@ function nf(a) {
|
|
|
16508
16505
|
window.addEventListener("message", n);
|
|
16509
16506
|
});
|
|
16510
16507
|
}
|
|
16511
|
-
function
|
|
16508
|
+
function rf(a) {
|
|
16512
16509
|
return a ? a.split(/[,\s]+/).map((e) => e.trim()).filter(Boolean) : [];
|
|
16513
16510
|
}
|
|
16514
|
-
function
|
|
16511
|
+
function Cl(a, e) {
|
|
16515
16512
|
if (!e) return a;
|
|
16516
16513
|
const t = e.split(".").filter(Boolean);
|
|
16517
16514
|
let r = a;
|
|
@@ -16522,7 +16519,7 @@ function Ol(a, e) {
|
|
|
16522
16519
|
return;
|
|
16523
16520
|
return r;
|
|
16524
16521
|
}
|
|
16525
|
-
function
|
|
16522
|
+
function nf() {
|
|
16526
16523
|
const a = typeof crypto < "u" ? crypto : null;
|
|
16527
16524
|
if (a?.randomUUID) return a.randomUUID();
|
|
16528
16525
|
if (a?.getRandomValues) {
|
|
@@ -16536,25 +16533,25 @@ function sf() {
|
|
|
16536
16533
|
return (e === "x" ? t : t & 3 | 8).toString(16);
|
|
16537
16534
|
});
|
|
16538
16535
|
}
|
|
16539
|
-
const
|
|
16536
|
+
const of = "aikaara_chat:requestId";
|
|
16540
16537
|
function go(a, e, t) {
|
|
16541
|
-
const r = `${
|
|
16538
|
+
const r = `${of}:${a}:${e}`;
|
|
16542
16539
|
return t ? `${r}:${t}` : r;
|
|
16543
16540
|
}
|
|
16544
|
-
function
|
|
16541
|
+
function Ol(a, e, t) {
|
|
16545
16542
|
try {
|
|
16546
16543
|
return localStorage.getItem(go(a, e, t));
|
|
16547
16544
|
} catch {
|
|
16548
16545
|
return null;
|
|
16549
16546
|
}
|
|
16550
16547
|
}
|
|
16551
|
-
function
|
|
16548
|
+
function sf(a, e, t, r) {
|
|
16552
16549
|
try {
|
|
16553
16550
|
localStorage.setItem(go(a, e, r), t);
|
|
16554
16551
|
} catch {
|
|
16555
16552
|
}
|
|
16556
16553
|
}
|
|
16557
|
-
function
|
|
16554
|
+
function hf(a, e, t) {
|
|
16558
16555
|
try {
|
|
16559
16556
|
localStorage.removeItem(go(a, e, t));
|
|
16560
16557
|
} catch {
|
|
@@ -16603,7 +16600,7 @@ async function eo(a, e, t = "before-chat") {
|
|
|
16603
16600
|
_ = x;
|
|
16604
16601
|
break;
|
|
16605
16602
|
}
|
|
16606
|
-
if (y = x.status, w = await x.text().catch(() => ""), m < c.length &&
|
|
16603
|
+
if (y = x.status, w = await x.text().catch(() => ""), m < c.length && af(y, w)) {
|
|
16607
16604
|
const E = c[m++];
|
|
16608
16605
|
console.warn(
|
|
16609
16606
|
`[aikaara-chat-sdk] preflight #${u} ${b} ${p} → ${y} (transient). Retry #${m} in ${E}ms.`
|
|
@@ -16657,7 +16654,7 @@ async function eo(a, e, t = "before-chat") {
|
|
|
16657
16654
|
}
|
|
16658
16655
|
return { captured: l };
|
|
16659
16656
|
}
|
|
16660
|
-
async function
|
|
16657
|
+
async function df(a) {
|
|
16661
16658
|
const e = a.steps ?? [];
|
|
16662
16659
|
return e.some((r) => r.trigger === "on-method-select") ? (await eo(
|
|
16663
16660
|
e,
|
|
@@ -16673,7 +16670,7 @@ async function pf(a) {
|
|
|
16673
16670
|
"on-method-select"
|
|
16674
16671
|
)).captured : {};
|
|
16675
16672
|
}
|
|
16676
|
-
function
|
|
16673
|
+
function af(a, e) {
|
|
16677
16674
|
if (a === 503 || a === 504 || a === 502) return !0;
|
|
16678
16675
|
if (a === 401 || a === 403) return e.trim().length === 0;
|
|
16679
16676
|
if (a === 500) {
|
|
@@ -16682,7 +16679,7 @@ function cf(a, e) {
|
|
|
16682
16679
|
}
|
|
16683
16680
|
return !1;
|
|
16684
16681
|
}
|
|
16685
|
-
async function
|
|
16682
|
+
async function Pl(a, e) {
|
|
16686
16683
|
const t = await fetch(a, {
|
|
16687
16684
|
method: "GET",
|
|
16688
16685
|
headers: { accept: "application/json", ...e ?? {} }
|
|
@@ -16698,10 +16695,10 @@ async function Ml(a, e) {
|
|
|
16698
16695
|
}
|
|
16699
16696
|
return r;
|
|
16700
16697
|
}
|
|
16701
|
-
function
|
|
16702
|
-
return a.replace("{projectId}", e).replace("{uuid}",
|
|
16698
|
+
function Ml(a, e) {
|
|
16699
|
+
return a.replace("{projectId}", e).replace("{uuid}", nf().replace(/-/g, ""));
|
|
16703
16700
|
}
|
|
16704
|
-
function
|
|
16701
|
+
function Rl(a) {
|
|
16705
16702
|
const e = a._preload;
|
|
16706
16703
|
if (!Array.isArray(e) || e.length === 0) return;
|
|
16707
16704
|
const t = Array.from(
|
|
@@ -16709,19 +16706,19 @@ function Ll(a) {
|
|
|
16709
16706
|
e.map((r) => r && typeof r == "object" ? r.scriptUrl : null).filter((r) => typeof r == "string" && r.length > 0)
|
|
16710
16707
|
)
|
|
16711
16708
|
);
|
|
16712
|
-
t.length !== 0 && Promise.allSettled(t.map((r) =>
|
|
16709
|
+
t.length !== 0 && Promise.allSettled(t.map((r) => Tl(r)));
|
|
16713
16710
|
}
|
|
16714
|
-
async function
|
|
16711
|
+
async function lf(a) {
|
|
16715
16712
|
const e = {
|
|
16716
|
-
...a.config ?? (a.configUrl ? await
|
|
16713
|
+
...a.config ?? (a.configUrl ? await Pl(a.configUrl, a.configHeaders) : {}),
|
|
16717
16714
|
...a.overrides ?? {}
|
|
16718
16715
|
};
|
|
16719
|
-
|
|
16716
|
+
Rl(e);
|
|
16720
16717
|
const t = e.transport ?? "tiledesk", r = e.tiledesk;
|
|
16721
16718
|
if ((t === "tiledesk" || t === "dual") && !r)
|
|
16722
16719
|
throw new Error("mount: descriptor.tiledesk is required for tiledesk/dual transport");
|
|
16723
|
-
const o = r?.projectId ?? "", n = a.identity.userId, i = a.conversationScope || void 0, s = a.forceNewConversation ? null :
|
|
16724
|
-
(a.conversationId || !s || a.forceNewConversation) && o &&
|
|
16720
|
+
const o = r?.projectId ?? "", n = a.identity.userId, i = a.conversationScope || void 0, s = a.forceNewConversation ? null : Ol(n, o, i), l = r?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", c = a.conversationId ?? s ?? Ml(l, o);
|
|
16721
|
+
(a.conversationId || !s || a.forceNewConversation) && o && sf(n, o, c, i);
|
|
16725
16722
|
const u = await a.tokenProvider(), h = a.tokenProvider, p = a.historyTokenProvider ?? h, b = r ? {
|
|
16726
16723
|
mqttEndpoint: r.mqttEndpoint,
|
|
16727
16724
|
jwtToken: u,
|
|
@@ -16753,7 +16750,7 @@ async function uf(a) {
|
|
|
16753
16750
|
endpoint: e.uploadEndpoint,
|
|
16754
16751
|
fieldName: e.uploadFieldName,
|
|
16755
16752
|
extraFields: e.uploadExtraFields
|
|
16756
|
-
}) : void 0), g = a.historyAdapter ?? (e.historyApiBase ?
|
|
16753
|
+
}) : void 0), g = a.historyAdapter ?? (e.historyApiBase ? yh({
|
|
16757
16754
|
apiBase: e.historyApiBase,
|
|
16758
16755
|
pageSize: e.historyPageSize ?? 200,
|
|
16759
16756
|
pathTemplate: e.historyPathTemplate,
|
|
@@ -16809,17 +16806,17 @@ async function uf(a) {
|
|
|
16809
16806
|
}
|
|
16810
16807
|
};
|
|
16811
16808
|
}
|
|
16812
|
-
function
|
|
16809
|
+
function cf(a) {
|
|
16813
16810
|
if (typeof a != "string") return a;
|
|
16814
16811
|
const e = document.querySelector(a);
|
|
16815
16812
|
if (!e) throw new Error(`mountFromSlug: container "${a}" not found`);
|
|
16816
16813
|
return e;
|
|
16817
16814
|
}
|
|
16818
|
-
async function
|
|
16815
|
+
async function uf(a) {
|
|
16819
16816
|
const e = (a.configBase ?? "https://api.aikaara.com").replace(/\/$/, ""), t = `${e}/api/v1/widget_configs/${encodeURIComponent(a.slug)}`;
|
|
16820
16817
|
let r = null;
|
|
16821
16818
|
try {
|
|
16822
|
-
r = await
|
|
16819
|
+
r = await Pl(t, a.configHeaders);
|
|
16823
16820
|
} catch (I) {
|
|
16824
16821
|
if (!a.fallbackConfig) throw I;
|
|
16825
16822
|
console.warn(
|
|
@@ -16832,7 +16829,7 @@ async function df(a) {
|
|
|
16832
16829
|
...r ?? {},
|
|
16833
16830
|
...a.overrides ?? {}
|
|
16834
16831
|
};
|
|
16835
|
-
if (
|
|
16832
|
+
if (Rl(o), o.templates && Object.keys(o.templates).length > 0) {
|
|
16836
16833
|
o.components = { ...o.components ?? {} };
|
|
16837
16834
|
for (const [I, O] of Object.entries(o.templates)) {
|
|
16838
16835
|
const P = `template:${I}`;
|
|
@@ -16865,7 +16862,7 @@ async function df(a) {
|
|
|
16865
16862
|
let i = null, s = a.user.id, l = a.user.name, c = "", u = a.user.token, h = null;
|
|
16866
16863
|
const p = await Dt(a.user.token).catch(() => ""), b = typeof p == "string" && p.length > 0;
|
|
16867
16864
|
if (!b && o.sso?.tokenSource) {
|
|
16868
|
-
h = new
|
|
16865
|
+
h = new Yd({
|
|
16869
16866
|
descriptor: {
|
|
16870
16867
|
provider: o.sso.provider,
|
|
16871
16868
|
flow: o.sso.flow,
|
|
@@ -16882,7 +16879,7 @@ async function df(a) {
|
|
|
16882
16879
|
u = async () => (await h.get()).token, a.user.identity && !a.user.identity.partnerToken && (a.user.identity.partnerToken = I.token);
|
|
16883
16880
|
} else if (!b && o.sso && o.sso.collect && o.sso.collect.length > 0) {
|
|
16884
16881
|
const I = `${e}/api/v1/projects/by-slug/${encodeURIComponent(a.slug)}/sso_exchange`;
|
|
16885
|
-
i = await new
|
|
16882
|
+
i = await new Wd({
|
|
16886
16883
|
descriptor: o.sso,
|
|
16887
16884
|
providers: a.user.credentialProviders,
|
|
16888
16885
|
exchangeUrl: I
|
|
@@ -16904,9 +16901,9 @@ async function df(a) {
|
|
|
16904
16901
|
}
|
|
16905
16902
|
I.captured.userId && (s = I.captured.userId), I.captured.requestId && (g = I.captured.requestId);
|
|
16906
16903
|
}
|
|
16907
|
-
const y = new
|
|
16904
|
+
const y = new Bd(o.auth, u);
|
|
16908
16905
|
if (f) {
|
|
16909
|
-
const I = o.tiledesk?.projectId ?? "", O = I ?
|
|
16906
|
+
const I = o.tiledesk?.projectId ?? "", O = I ? Ol(s, I) : null, P = o.tiledesk?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", N = O ?? (I ? Ml(P, I) : "");
|
|
16910
16907
|
y.prime(f, { requestId: N, fullName: l });
|
|
16911
16908
|
}
|
|
16912
16909
|
const w = await y.get();
|
|
@@ -16927,7 +16924,7 @@ async function df(a) {
|
|
|
16927
16924
|
} catch (I) {
|
|
16928
16925
|
return console.warn("[aikaara-chat-sdk] partner auto-refresh failed", I), null;
|
|
16929
16926
|
}
|
|
16930
|
-
} : null, x = o.upload, v = async () => `Bearer ${x && "tokenSource" in x && x.tokenSource === "chat" ? (await y.get()).token : await Dt(a.user.token)}`, E = a.hooks?.upload ?? (x && x.mode === "presigned-3step" ?
|
|
16927
|
+
} : null, x = o.upload, v = async () => `Bearer ${x && "tokenSource" in x && x.tokenSource === "chat" ? (await y.get()).token : await Dt(a.user.token)}`, E = a.hooks?.upload ?? (x && x.mode === "presigned-3step" ? gh({
|
|
16931
16928
|
...x,
|
|
16932
16929
|
authHeader: v
|
|
16933
16930
|
}) : x && x.mode === "direct" ? kl({
|
|
@@ -16935,8 +16932,8 @@ async function df(a) {
|
|
|
16935
16932
|
fieldName: x.fieldName,
|
|
16936
16933
|
extraFields: x.extraFields,
|
|
16937
16934
|
headers: async () => ({ authorization: await v() })
|
|
16938
|
-
}) : void 0), S = await
|
|
16939
|
-
container:
|
|
16935
|
+
}) : void 0), S = await lf({
|
|
16936
|
+
container: cf(a.container),
|
|
16940
16937
|
config: o,
|
|
16941
16938
|
// SSO-issued Aikaara user token, used by the ActionCable transport.
|
|
16942
16939
|
// Tiledesk-only widgets ignore this; falls back to `userId` inside `mount`.
|
|
@@ -16992,50 +16989,50 @@ async function df(a) {
|
|
|
16992
16989
|
}
|
|
16993
16990
|
export {
|
|
16994
16991
|
bo as A,
|
|
16995
|
-
|
|
16996
|
-
|
|
16997
|
-
|
|
16992
|
+
uf as B,
|
|
16993
|
+
Ll as C,
|
|
16994
|
+
lf as D,
|
|
16998
16995
|
qs as E,
|
|
16999
16996
|
_l as F,
|
|
17000
|
-
|
|
17001
|
-
|
|
17002
|
-
|
|
17003
|
-
|
|
17004
|
-
|
|
17005
|
-
|
|
17006
|
-
|
|
17007
|
-
|
|
17008
|
-
|
|
17009
|
-
|
|
17010
|
-
|
|
17011
|
-
|
|
17012
|
-
|
|
17013
|
-
|
|
17014
|
-
|
|
17015
|
-
|
|
17016
|
-
|
|
17017
|
-
|
|
17018
|
-
|
|
17019
|
-
|
|
17020
|
-
|
|
17021
|
-
|
|
17022
|
-
|
|
17023
|
-
|
|
17024
|
-
|
|
17025
|
-
|
|
17026
|
-
|
|
17027
|
-
|
|
17028
|
-
|
|
16997
|
+
df as G,
|
|
16998
|
+
od as H,
|
|
16999
|
+
Td as I,
|
|
17000
|
+
Md as J,
|
|
17001
|
+
Cd as K,
|
|
17002
|
+
Id as L,
|
|
17003
|
+
Vl as M,
|
|
17004
|
+
Sd as N,
|
|
17005
|
+
Nd as O,
|
|
17006
|
+
Rd as P,
|
|
17007
|
+
Ed as Q,
|
|
17008
|
+
xd as R,
|
|
17009
|
+
Bd as S,
|
|
17010
|
+
sh as T,
|
|
17011
|
+
vd as U,
|
|
17012
|
+
Yh as a,
|
|
17013
|
+
dh as b,
|
|
17014
|
+
Qh as c,
|
|
17015
|
+
dd as d,
|
|
17016
|
+
Kh as e,
|
|
17017
|
+
md as f,
|
|
17018
|
+
ud as g,
|
|
17019
|
+
ad as h,
|
|
17020
|
+
pd as i,
|
|
17021
|
+
fd as j,
|
|
17022
|
+
zl as k,
|
|
17023
|
+
Wl as l,
|
|
17024
|
+
Gl as m,
|
|
17025
|
+
Wd as n,
|
|
17029
17026
|
Ye as o,
|
|
17030
|
-
|
|
17031
|
-
|
|
17032
|
-
|
|
17033
|
-
|
|
17027
|
+
Yd as p,
|
|
17028
|
+
hf as q,
|
|
17029
|
+
Ud as r,
|
|
17030
|
+
Dd as s,
|
|
17034
17031
|
kl as t,
|
|
17035
|
-
|
|
17036
|
-
|
|
17037
|
-
|
|
17038
|
-
|
|
17039
|
-
|
|
17040
|
-
|
|
17032
|
+
gh as u,
|
|
17033
|
+
yh as v,
|
|
17034
|
+
Kd as w,
|
|
17035
|
+
uh as x,
|
|
17036
|
+
ch as y,
|
|
17037
|
+
lh as z
|
|
17041
17038
|
};
|